@rtkelly-labs/design-system 0.18.0 → 0.20.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 (77) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +1 -1
  3. package/dist/components/BracketText.js +3 -2
  4. package/dist/components/BracketText.js.map +1 -1
  5. package/dist/components/Button.js.map +1 -1
  6. package/dist/components/Card.js +2 -1
  7. package/dist/components/Card.js.map +1 -1
  8. package/dist/components/DataTable.js +135 -52
  9. package/dist/components/DataTable.js.map +1 -1
  10. package/dist/components/Divider.js +21 -14
  11. package/dist/components/Divider.js.map +1 -1
  12. package/dist/components/InlineAction.js +58 -0
  13. package/dist/components/InlineAction.js.map +1 -0
  14. package/dist/components/PageTitle.js +5 -1
  15. package/dist/components/PageTitle.js.map +1 -1
  16. package/dist/components/ResourceState.js +55 -0
  17. package/dist/components/ResourceState.js.map +1 -0
  18. package/dist/components/SocialIcon.js.map +1 -1
  19. package/dist/components/StatCard.js +2 -2
  20. package/dist/components/StatCard.js.map +1 -1
  21. package/dist/components/StatusPage.js.map +1 -1
  22. package/dist/components/docs/figures/ActivityGrid.js.map +1 -1
  23. package/dist/components/docs/figures/ChangeSummary.js +68 -25
  24. package/dist/components/docs/figures/ChangeSummary.js.map +1 -1
  25. package/dist/components/docs/figures/DrawingSheet.js +4 -1
  26. package/dist/components/docs/figures/DrawingSheet.js.map +1 -1
  27. package/dist/components/docs/figures/FigureFrame.js.map +1 -1
  28. package/dist/components/docs/figures/FigureSurfaceContext.js +9 -0
  29. package/dist/components/docs/figures/FigureSurfaceContext.js.map +1 -0
  30. package/dist/components/docs/figures/IndexedSection.js +8 -2
  31. package/dist/components/docs/figures/IndexedSection.js.map +1 -1
  32. package/dist/components/docs/figures/index.js.map +1 -1
  33. package/dist/components/experiments/ExperimentsView.js.map +1 -1
  34. package/dist/components/marketing/FeatureGrid.js.map +1 -1
  35. package/dist/components/marketing/Hero.js +2 -2
  36. package/dist/components/marketing/Hero.js.map +1 -1
  37. package/dist/components/marketing/PricingGrid.js.map +1 -1
  38. package/dist/components/review/ChangeBar.js +29 -0
  39. package/dist/components/review/ChangeBar.js.map +1 -0
  40. package/dist/components/review/ChangeCount.js +27 -0
  41. package/dist/components/review/ChangeCount.js.map +1 -0
  42. package/dist/components/review/ChangeIndex.js +50 -0
  43. package/dist/components/review/ChangeIndex.js.map +1 -0
  44. package/dist/components/review/DeltaValue.js +87 -0
  45. package/dist/components/review/DeltaValue.js.map +1 -0
  46. package/dist/components/review/DiffView.js +115 -0
  47. package/dist/components/review/DiffView.js.map +1 -0
  48. package/dist/components/review/KeyedDiff.js +43 -0
  49. package/dist/components/review/KeyedDiff.js.map +1 -0
  50. package/dist/components/review/ProvenanceStrip.js +17 -0
  51. package/dist/components/review/ProvenanceStrip.js.map +1 -0
  52. package/dist/components/review/PullRequestPage.js +223 -0
  53. package/dist/components/review/PullRequestPage.js.map +1 -0
  54. package/dist/components/review/ReviewReportPage.js +111 -0
  55. package/dist/components/review/ReviewReportPage.js.map +1 -0
  56. package/dist/components/review/StatusMark.js +32 -0
  57. package/dist/components/review/StatusMark.js.map +1 -0
  58. package/dist/components/review/VerdictBand.js +45 -0
  59. package/dist/components/review/VerdictBand.js.map +1 -0
  60. package/dist/components/review/diff.js +53 -0
  61. package/dist/components/review/diff.js.map +1 -0
  62. package/dist/components/review/index.js +16 -0
  63. package/dist/components/review/index.js.map +1 -0
  64. package/dist/components/review/samples.js +235 -0
  65. package/dist/components/review/samples.js.map +1 -0
  66. package/dist/components/review/vocabulary.js +51 -0
  67. package/dist/components/review/vocabulary.js.map +1 -0
  68. package/dist/components/saas/SaasLandingPage.js +10 -2
  69. package/dist/components/saas/SaasLandingPage.js.map +1 -1
  70. package/dist/hooks/usePolledResource.js +98 -0
  71. package/dist/hooks/usePolledResource.js.map +1 -0
  72. package/dist/index.d.ts +908 -26
  73. package/dist/index.js +6 -1
  74. package/dist/index.js.map +1 -1
  75. package/dist/lib/units.js +25 -0
  76. package/dist/lib/units.js.map +1 -0
  77. package/package.json +9 -3
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import react__default, { ReactNode, DetailedHTMLProps, ButtonHTMLAttributes, AnchorHTMLAttributes, HTMLAttributes, ElementType, MouseEventHandler, InputHTMLAttributes, TextareaHTMLAttributes, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, RefObject, ReactElement, SVGProps } from 'react';
2
+ import react__default, { ReactNode, DetailedHTMLProps, ButtonHTMLAttributes, AnchorHTMLAttributes, HTMLAttributes, ElementType, MouseEventHandler, InputHTMLAttributes, TextareaHTMLAttributes, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, RefObject, ReactElement, SVGProps, RefAttributes } from 'react';
3
3
  import { Table as Table$1, ColumnDef } from '@tanstack/react-table';
4
4
  import { RegisterableHotkey } from '@tanstack/react-hotkeys';
5
5
  export { ParentSize as ResponsiveChartContainer } from '@visx/responsive';
@@ -955,6 +955,49 @@ declare class Slugger {
955
955
  */
956
956
  declare function childrenToText(node: unknown): string;
957
957
 
958
+ /**
959
+ * Quantities with a unit ladder: a byte count written in the largest unit that
960
+ * keeps it under the next one.
961
+ *
962
+ * Everything here is pure and React-free, so a server component or a script
963
+ * can call it.
964
+ */
965
+ /** Options for {@link formatBytes}. */
966
+ interface FormatBytesOptions {
967
+ /**
968
+ * The step between units. `1024` (the default) labels them with IEC binary
969
+ * prefixes — `KiB`, `MiB`, `GiB`; `1000` with SI decimal prefixes — `kB`,
970
+ * `MB`, `GB`.
971
+ */
972
+ base?: 1024 | 1000;
973
+ }
974
+ /**
975
+ * `512 B`, `1.5 KiB`, `20 MiB`, `3.2 TiB`: a byte count in the largest unit
976
+ * that keeps it below the next one, whole for bytes and to one decimal above
977
+ * them, with a trailing `.0` dropped as `formatShare` and `formatTraceDuration`
978
+ * do. A space separates number and unit, as the SI and IEC conventions write
979
+ * them.
980
+ *
981
+ * **Binary by default, and labelled as binary.** The counts this formats come
982
+ * from the file system, memory and process accounting, which count in powers
983
+ * of two — and Windows and most dashboards already divide by 1024. What they
984
+ * get wrong is the label: `KB` for 1024 bytes is the JEDEC usage SI reserves
985
+ * for 1000, so the same string means two numbers 2.4% apart at `KB` and 10%
986
+ * apart at `TB`. `KiB` cannot be misread. Pass `{ base: 1000 }` for sizes
987
+ * that are decimal by nature — network transfer, storage as a vendor states it
988
+ * — and the labels become `kB`, `MB`, `GB`.
989
+ *
990
+ * The unit is chosen *after* rounding, so a value that would round up to the
991
+ * base moves to the next unit: 1023.96 KiB is `1 MiB`, never `1024 KiB`, and
992
+ * 1023.6 B is `1 KiB`. Petabytes are the top of the ladder; anything larger
993
+ * stays in them (`2048 PiB`).
994
+ *
995
+ * A negative count — a size delta — keeps its sign (`-1.5 KiB`); `-0` is
996
+ * `0 B`. `NaN` and `±Infinity` are `—`, as the other formatters here write a
997
+ * value they cannot.
998
+ */
999
+ declare function formatBytes(bytes: number, options?: FormatBytesOptions): string;
1000
+
958
1001
  interface UseCopyToClipboardResult {
959
1002
  /** True for `resetAfter` ms following a successful copy. */
960
1003
  copied: boolean;
@@ -1049,6 +1092,65 @@ interface TraceReplay {
1049
1092
  */
1050
1093
  declare function useTraceReplay(duration: number, { autoPlay, loop, speed: initialSpeed, loopDelay }?: UseTraceReplayOptions): TraceReplay;
1051
1094
 
1095
+ interface UsePolledResourceOptions {
1096
+ /**
1097
+ * What is being loaded — an id, a filter, a page number. A change of key
1098
+ * drops the previous key's data and loads afresh. The load function itself is
1099
+ * read through a ref, so a new closure on every render reloads nothing; the
1100
+ * key is what says the question changed.
1101
+ */
1102
+ key?: string | number;
1103
+ /**
1104
+ * Milliseconds between loads, counted from when the previous one settled.
1105
+ * Default `30_000`. Zero or less loads once and never polls.
1106
+ */
1107
+ intervalMs?: number;
1108
+ /** Load and poll while true. Default true. While false nothing loads, and `reload` does nothing. */
1109
+ enabled?: boolean;
1110
+ }
1111
+ interface UsePolledResourceResult<T> {
1112
+ /** The last good answer for the current key, kept when a later load fails. */
1113
+ data: T | undefined;
1114
+ /** Why the latest load failed, as a message; cleared by the next success. */
1115
+ error: string | undefined;
1116
+ /** True while a load for the current key is in flight. */
1117
+ loading: boolean;
1118
+ /** When `data` was last loaded, as epoch milliseconds — what `FreshnessIndicator` takes as `updatedAt`. */
1119
+ updatedAt: number | undefined;
1120
+ /** Load now, superseding any load in flight, and restart the poll from when it settles. */
1121
+ reload: () => void;
1122
+ }
1123
+ /**
1124
+ * Data that refreshes itself while someone is looking at it.
1125
+ *
1126
+ * Loads once on mount, then again `intervalMs` after each load settles — but
1127
+ * only while `document.visibilityState` is `visible`. A background tab costs
1128
+ * nothing. A tick that falls due while the tab is hidden is remembered, and the
1129
+ * load happens the moment the tab is shown again, so a reader returning after
1130
+ * ten minutes sees fresh data at once rather than ten-minute-old data for up to
1131
+ * another interval. A tab that is hidden and shown again *before* a tick fell
1132
+ * due does not load, so switching back and forth does not hammer the source.
1133
+ *
1134
+ * Counting the interval from when a load settles, not on a fixed clock, means a
1135
+ * load slower than the interval is never cut off by the next tick.
1136
+ *
1137
+ * ## What it guarantees
1138
+ *
1139
+ * - **The newest request wins.** Every load takes a generation number, and an
1140
+ * answer that arrives after a newer request was made is discarded. A slow
1141
+ * response for an old key can never overwrite a fast one for the new key.
1142
+ * - **A failure keeps the last good answer.** `data` survives a failed load and
1143
+ * `error` says why, so a view can show what it had with a stale warning —
1144
+ * which is what `ResourceState` renders.
1145
+ * - **A new key starts empty.** Changing `key` clears `data`, `error` and
1146
+ * `updatedAt` in the same render, so the previous key's answer is never
1147
+ * shown as though it belonged to the new one.
1148
+ *
1149
+ * Errors are normalised to a message string: the one thing a view does with a
1150
+ * failure is show it, and doing that once here saves every caller doing it.
1151
+ */
1152
+ declare function usePolledResource<T>(load: () => Promise<T>, { key, intervalMs, enabled }?: UsePolledResourceOptions): UsePolledResourceResult<T>;
1153
+
1052
1154
  interface ButtonOwnProps {
1053
1155
  /**
1054
1156
  * The label. Written in caps at the call site rather than upper-cased in
@@ -1188,6 +1290,81 @@ type ButtonProps = ButtonElementProps | ButtonLinkProps;
1188
1290
  */
1189
1291
  declare const Button: react.ForwardRefExoticComponent<(Omit<ButtonElementProps, "ref"> | Omit<ButtonLinkProps, "ref">) & react.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
1190
1292
 
1293
+ interface InlineActionOwnProps {
1294
+ /**
1295
+ * The words, in the case the surrounding text is written in. Unlike
1296
+ * `Button`'s label this is read as part of a sentence or a cell, so it is
1297
+ * not written in caps — `view output`, `retry`, `all alerts →`.
1298
+ */
1299
+ children: ReactNode;
1300
+ /**
1301
+ * How loudly it reads against the text around it. `accent` is the primary
1302
+ * accent ink with a solid underline — the one to reach for, and what a link
1303
+ * in a row of data looks like. `quiet` is secondary ink with a dotted
1304
+ * underline, for a housekeeping action beside the content it acts on —
1305
+ * `clear`, `reset`, `show all` — that should not compete with it.
1306
+ * Omitted, the tone is `accent`.
1307
+ */
1308
+ tone?: InlineActionTone;
1309
+ /**
1310
+ * Merged into the recipe's own classes. Reach for it to set the typeface or
1311
+ * size where the surrounding text does not — `font-mono` in a table of ids —
1312
+ * rather than to recolour it.
1313
+ */
1314
+ className?: string;
1315
+ }
1316
+ /** The inks an `InlineAction` may take. Named for emphasis, not for a hue. */
1317
+ type InlineActionTone = 'accent' | 'quiet';
1318
+ /**
1319
+ * The `<button>` form: an action on the current page. `href?: never` is what
1320
+ * lets the union below discriminate, exactly as it does on `Button`.
1321
+ */
1322
+ type InlineActionButtonProps = InlineActionOwnProps & Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'children'> & {
1323
+ href?: never;
1324
+ };
1325
+ /**
1326
+ * The `<a>` form: the same ink on something that navigates. Rendered through
1327
+ * `LinkProvider`, so an app's router handles an internal href.
1328
+ */
1329
+ type InlineActionLinkProps = InlineActionOwnProps & Omit<DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, 'children'> & {
1330
+ /**
1331
+ * Where it navigates — and the discriminant. Supplying it renders a link
1332
+ * through the `LinkProvider`'s component; omit it for anything that acts
1333
+ * on the current page.
1334
+ */
1335
+ href: string;
1336
+ /**
1337
+ * Not offered on the anchor form. `disabled` does nothing on an `<a>`, and
1338
+ * a link that cannot be followed is text, not a link.
1339
+ */
1340
+ disabled?: never;
1341
+ };
1342
+ type InlineActionProps = InlineActionButtonProps | InlineActionLinkProps;
1343
+ /**
1344
+ * An action that reads as a link: underlined text inside a sentence or a table
1345
+ * cell, with no box, padding or press of its own.
1346
+ *
1347
+ * `Button` is the control a screen is built around — bordered, filled, caps,
1348
+ * a 44px hit area. In a table row that is too much: one per row is a column of
1349
+ * buttons, and the row's data is lost behind them. This is the same decision
1350
+ * in the weight of the text around it, and like `Button` the element follows
1351
+ * the job rather than the look: without `href` it is a `<button type="button">`
1352
+ * that runs `onClick`; with `href` it is a link, through `LinkProvider`.
1353
+ *
1354
+ * It takes the surrounding font and size, so it is mono in a mono cell and
1355
+ * prose in a paragraph; there is no `size`. An inline target is exempt from
1356
+ * the WCAG 2.5.8 target-size minimum because its size is set by the line it
1357
+ * sits in — which is also why it belongs inline, not standing on its own as a
1358
+ * page's action.
1359
+ *
1360
+ * ```tsx
1361
+ * <InlineAction onClick={() => openRun(run.id)}>view output</InlineAction>
1362
+ * <InlineAction href={`/runs/${run.id}`}>open run</InlineAction>
1363
+ * <InlineAction tone="quiet" onClick={clear}>clear</InlineAction>
1364
+ * ```
1365
+ */
1366
+ declare const InlineAction: react.ForwardRefExoticComponent<(Omit<InlineActionButtonProps, "ref"> | Omit<InlineActionLinkProps, "ref">) & react.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
1367
+
1191
1368
  /**
1192
1369
  * The two shapes a `Card` renders.
1193
1370
  *
@@ -1196,6 +1373,12 @@ declare const Button: react.ForwardRefExoticComponent<(Omit<ButtonElementProps,
1196
1373
  * a `[ Learn More → ]` footer, carrying its own width and float classes.
1197
1374
  */
1198
1375
  type CardVariant = 'panel' | 'card';
1376
+ /**
1377
+ * How heavily the card is drawn. `strong` is the brand's 2px `border.strong` box. `quiet` is a
1378
+ * 1px `border.default` frame, for a card that sits beside or inside other boxes and should not
1379
+ * compete with the one that matters — see `docs/edge-hierarchy.md`. The accent stripe is kept.
1380
+ */
1381
+ type CardWeight = 'strong' | 'quiet';
1199
1382
  interface CardProps extends HTMLAttributes<HTMLDivElement> {
1200
1383
  /**
1201
1384
  * Card heading. With no `variant` set, its presence is also what selects the
@@ -1265,6 +1448,8 @@ interface CardProps extends HTMLAttributes<HTMLDivElement> {
1265
1448
  * already rely on it. New code should say which form it wants.
1266
1449
  */
1267
1450
  variant?: CardVariant;
1451
+ /** `strong` by default. `quiet` draws a 1px `border.default` frame and keeps the accent stripe. */
1452
+ weight?: CardWeight;
1268
1453
  }
1269
1454
  /**
1270
1455
  * A bordered container, in two forms.
@@ -1409,6 +1594,568 @@ interface ReportDetailsProps extends HTMLAttributes<HTMLDetailsElement> {
1409
1594
  }
1410
1595
  declare const ReportDetails: react.ForwardRefExoticComponent<ReportDetailsProps & react.RefAttributes<HTMLDetailsElement>>;
1411
1596
 
1597
+ /**
1598
+ * The status words a review reports, as closed vocabularies.
1599
+ *
1600
+ * Four documents, four sets of words, taken from the Diffra protocol (ADR 0004
1601
+ * and its trust reference) rather than invented here: an Assessment has an
1602
+ * outcome, a Delta and an Evidence document each have a status, and a Baseline
1603
+ * reference has a trust state. Several words share a colour, so each also has a
1604
+ * fixed glyph — a report is printed, read in greyscale and read by people who
1605
+ * cannot tell two shades apart, so the word and the glyph carry the meaning and
1606
+ * the colour only repeats it.
1607
+ *
1608
+ * Of the comparison words only `invalid` takes an intent colour. A comparison
1609
+ * describes change; whether that change is acceptable is a policy's call, so
1610
+ * `changed` is never painted as a warning and `unchanged` never as a success.
1611
+ */
1612
+ /** A policy's verdict on a Delta. `none` is the report that carries no Assessment at all. */
1613
+ type AssessmentOutcome = 'pass' | 'warn' | 'fail' | 'needs-review' | 'inconclusive' | 'none';
1614
+ /** What a comparison found. Every word but `changed` and `unchanged` means it could not compare. */
1615
+ type DeltaStatus = 'unchanged' | 'changed' | 'unavailable' | 'invalid' | 'incompatible' | 'inconclusive' | 'unsupported';
1616
+ /** Whether a producer's evidence exists and is usable. */
1617
+ type EvidenceStatus = 'produced' | 'unavailable' | 'invalid' | 'inconclusive';
1618
+ /** Whether a baseline may be compared against. Only `trusted` can satisfy a gate. */
1619
+ type TrustStatus = 'trusted' | 'candidate' | 'untrusted' | 'missing' | 'corrupt' | 'incompatible';
1620
+ /** The four vocabularies, by the document that reports them. */
1621
+ interface StatusVocabularies {
1622
+ outcome: AssessmentOutcome;
1623
+ delta: DeltaStatus;
1624
+ evidence: EvidenceStatus;
1625
+ trust: TrustStatus;
1626
+ }
1627
+ type StatusVocabulary = keyof StatusVocabularies;
1628
+ /**
1629
+ * How a status is drawn. `hollow` is a dashed, muted mark for "could not tell":
1630
+ * not an alarm, and visibly not a result either.
1631
+ */
1632
+ type StatusTone = 'success' | 'warning' | 'danger' | 'info' | 'neutral' | 'hollow';
1633
+ interface StatusAppearance {
1634
+ glyph: string;
1635
+ tone: StatusTone;
1636
+ /** The word printed, which is the status itself unless it reads badly in caps. */
1637
+ word: string;
1638
+ }
1639
+ declare const STATUS_APPEARANCE: {
1640
+ readonly [V in StatusVocabulary]: Readonly<Record<StatusVocabularies[V], StatusAppearance>>;
1641
+ };
1642
+ /** Text colour per tone. A status is meaning, so it uses intent roles and never accents. */
1643
+ declare const STATUS_TONE_TEXT: Readonly<Record<StatusTone, string>>;
1644
+ /** Looks a status up in its vocabulary. */
1645
+ declare function statusAppearance<V extends StatusVocabulary>(vocabulary: V, status: StatusVocabularies[V]): StatusAppearance;
1646
+
1647
+ /**
1648
+ * The data a line diff is drawn from, and a reader for the unified format every diff tool emits.
1649
+ *
1650
+ * Kept apart from the component so a generator — a CLI, a CI step, a report written in TSX — can
1651
+ * turn `git diff` output into `DiffHunk[]` without rendering anything.
1652
+ */
1653
+
1654
+ type DiffLineKind = 'added' | 'removed' | 'context';
1655
+ /** A review comment pinned under one line of a diff. */
1656
+ interface DiffLineComment {
1657
+ /** Who wrote it: a person's handle, or a tool's name. */
1658
+ author: string;
1659
+ /** Short annotation beside the author, such as `suggestion` or a timestamp. Pre-formatted. */
1660
+ meta?: string;
1661
+ /** The comment itself. */
1662
+ body: ReactNode;
1663
+ }
1664
+ interface DiffLine {
1665
+ /** Whether the line was added, removed, or is unchanged context. */
1666
+ kind: DiffLineKind;
1667
+ /** Line number in the baseline. Absent on an added line. */
1668
+ oldNumber?: number;
1669
+ /** Line number in the candidate. Absent on a removed line. */
1670
+ newNumber?: number;
1671
+ /** The line without its leading sign. */
1672
+ text: string;
1673
+ /** Review comments drawn under the line, in order. */
1674
+ comments?: readonly DiffLineComment[];
1675
+ }
1676
+ interface DiffHunk {
1677
+ /** The `@@ -a,b +c,d @@ …` header, as the diff printed it. */
1678
+ header: string;
1679
+ /** The hunk's lines, in file order. */
1680
+ lines: DiffLine[];
1681
+ }
1682
+ /**
1683
+ * Reads the hunks of one file's unified diff. File headers (`diff --git`, `---`, `+++`, `index`)
1684
+ * are skipped; `` is dropped. Lines before the first hunk are ignored.
1685
+ */
1686
+ declare function parseUnifiedDiff(text: string): DiffHunk[];
1687
+ /** Added and removed line counts across hunks. */
1688
+ declare function countDiff(hunks: readonly DiffHunk[]): {
1689
+ added: number;
1690
+ removed: number;
1691
+ };
1692
+ /**
1693
+ * The anchor a file's diff is reachable at: `metrics/duplication.txt` becomes
1694
+ * `diff-metrics-duplication-txt-<hash>`. The slug keeps it readable; the hash of
1695
+ * the exact path keeps it unique, since `src/foo-bar.ts` and `src/foo/bar.ts`
1696
+ * slug the same.
1697
+ */
1698
+ declare function diffAnchor(path: string): string;
1699
+
1700
+ type StatusMarkOwnProps = {
1701
+ [V in StatusVocabulary]: {
1702
+ /** Which document's words this status is from. */
1703
+ vocabulary: V;
1704
+ /** The status itself. The glyph, word and colour all follow from it. */
1705
+ status: StatusVocabularies[V];
1706
+ };
1707
+ }[StatusVocabulary];
1708
+ type StatusMarkProps = StatusMarkOwnProps & Omit<react.HTMLAttributes<HTMLSpanElement>, 'children'> & {
1709
+ /** Replaces the printed word, for a translated page. The glyph and colour stay. */
1710
+ label?: string;
1711
+ /** Additional classes for the mark. */
1712
+ className?: string;
1713
+ };
1714
+ /**
1715
+ * One status from a review's closed vocabularies — an Assessment outcome, a Delta or Evidence
1716
+ * status, or a Baseline's trust — drawn as a fixed glyph and word in a hairline mark — light enough to sit in a table cell
1717
+ * or a list row many times over.
1718
+ *
1719
+ * The colour repeats what the word says and never replaces it: `inconclusive`, `missing` and
1720
+ * `unavailable` share one dashed, muted treatment and are told apart by their words.
1721
+ */
1722
+ declare const StatusMark: react.ForwardRefExoticComponent<StatusMarkProps & react.RefAttributes<HTMLSpanElement>>;
1723
+
1724
+ interface VerdictBandProps extends Omit<react.HTMLAttributes<HTMLDivElement>, 'title'> {
1725
+ /** The Assessment's outcome, or `none` when the report carries no Assessment. */
1726
+ outcome: AssessmentOutcome;
1727
+ /** One line stating the result, read before anything else on the page. */
1728
+ title: ReactNode;
1729
+ /** One line of context under it: what was assessed, or how to get a verdict. */
1730
+ children?: ReactNode;
1731
+ /** Replaces the printed outcome word, for a translated page. */
1732
+ label?: string;
1733
+ /** Additional classes for the band. */
1734
+ className?: string;
1735
+ }
1736
+ /**
1737
+ * The verdict, first: one outcome word in a bordered mark, one line saying what it means, one
1738
+ * line of context. Sits above the provenance, the figures and everything else in a report, and
1739
+ * is the one object in the review family drawn with a strong border and an offset shadow —
1740
+ * everything around it steps down to hairlines so the verdict is the thing that stands up.
1741
+ *
1742
+ * `none` is a state of its own rather than an absence. A report built from a comparison with no
1743
+ * policy applied carries no verdict, and says so instead of leaving the reader to infer it from
1744
+ * a missing banner.
1745
+ */
1746
+ declare const VerdictBand: react.ForwardRefExoticComponent<VerdictBandProps & react.RefAttributes<HTMLDivElement>>;
1747
+
1748
+ interface ProvenanceItem {
1749
+ /** What the value is, in a few words: `Baseline commit`, `Trust`, `Comparator`. */
1750
+ label: string;
1751
+ /** The value. Digests and commits are drawn in mono and wrap anywhere rather than overflow. */
1752
+ value: ReactNode;
1753
+ /** One short line under the value, such as what a baseline role asks. */
1754
+ note?: ReactNode;
1755
+ }
1756
+ interface ProvenanceStripProps extends react.HTMLAttributes<HTMLElement> {
1757
+ /** Accessible name for the strip. */
1758
+ label?: string;
1759
+ /** Each fact the result can be traced back to, in reading order. */
1760
+ items: readonly ProvenanceItem[];
1761
+ /** Additional classes for the strip. */
1762
+ className?: string;
1763
+ }
1764
+ /**
1765
+ * Where a result came from — subject, baseline role and commit, manifest digest, trust state,
1766
+ * producer and comparator — as a title block: one strong rule above, a hairline below, cells
1767
+ * spaced by a gutter, and no box — so a row that wraps reads the same as the first.
1768
+ *
1769
+ * Wider than `ReportDocument`'s `meta` line because a review's provenance is long (a forty-
1770
+ * character commit, a SHA-256 digest) and a reader checks it rather than skims it. A value that
1771
+ * was not recorded belongs here too, as a `StatusMark`, rather than being left out.
1772
+ */
1773
+ declare const ProvenanceStrip: react.ForwardRefExoticComponent<ProvenanceStripProps & react.RefAttributes<HTMLElement>>;
1774
+
1775
+ /** Which way a measurement is preferred to move. Omit when neither is. */
1776
+ type MetricDirection = 'higher-is-better' | 'lower-is-better';
1777
+ interface DeltaValueProps extends Omit<react.HTMLAttributes<HTMLSpanElement>, 'children'> {
1778
+ /** The baseline's value. `null` or omitted when the measurement is new. */
1779
+ before?: number | null;
1780
+ /** The candidate's value. `null` or omitted when the measurement is gone. */
1781
+ after?: number | null;
1782
+ /** Printed after each value, e.g. `kB` or `ms`. */
1783
+ unit?: string;
1784
+ /**
1785
+ * The measurement's declared direction. A move with it is drawn in the success role, a move
1786
+ * against it in danger with ▲ or ▼ in bold. Without one, change stays uncoloured.
1787
+ */
1788
+ direction?: MetricDirection;
1789
+ /** Relative-change bands. A move under `noise` stays uncoloured; at or over `major` it is bold. */
1790
+ significance?: DeltaSignificance;
1791
+ /** Also print the relative change. A zero baseline prints `n/a` rather than infinity. */
1792
+ relative?: boolean;
1793
+ /** Formats each number. Defaults to a fixed `en` grouping, so output does not vary by machine. */
1794
+ format?: (value: number) => string;
1795
+ /** Additional classes for the value. */
1796
+ className?: string;
1797
+ }
1798
+ /** `against` when the change moves away from the preferred direction, `with` when toward it. */
1799
+ declare function deltaTrend(change: number, direction?: MetricDirection): 'against' | 'with' | undefined;
1800
+ /** Relative-change bands, as fractions of the baseline: under `noise` is drawn quiet, at or over `major` heavy. */
1801
+ interface DeltaSignificance {
1802
+ noise?: number;
1803
+ major?: number;
1804
+ }
1805
+ declare const DEFAULT_SIGNIFICANCE: Required<DeltaSignificance>;
1806
+ /** How loudly a relative change should read. `undefined` relative (no baseline to divide by) is `notable`. */
1807
+ declare function deltaSignificance(relative: number | undefined, bands?: DeltaSignificance): 'noise' | 'notable' | 'major';
1808
+ /** Text colour for a directed change: better is success, worse is danger, noise and undirected change stay neutral. */
1809
+ declare function trendTone(trend: 'against' | 'with' | undefined, significance: 'noise' | 'notable' | 'major'): string;
1810
+ /**
1811
+ * A measured change, `before → after +n`, the form a numeric Delta reports.
1812
+ *
1813
+ * Colour follows the declared direction and the size of the move: toward the preferred direction
1814
+ * reads as success, away from it as danger, and a relative move under the noise band stays
1815
+ * neutral. With no direction declared a change is only a change and is never coloured. Whether a
1816
+ * move is acceptable is still the Assessment's call; this only says which way it went and how far. A new or missing measurement says so
1817
+ * in words, and a zero baseline makes the relative change `n/a` rather than an infinite percent.
1818
+ */
1819
+ declare const DeltaValue: react.ForwardRefExoticComponent<DeltaValueProps & react.RefAttributes<HTMLSpanElement>>;
1820
+
1821
+ interface ChangeCountProps extends Omit<react.HTMLAttributes<HTMLSpanElement>, 'children'> {
1822
+ /** Lines or records added. */
1823
+ added: number;
1824
+ /** Lines or records removed. */
1825
+ removed: number;
1826
+ /** Lines or records moved or renamed. Printed only when given. */
1827
+ moved?: number;
1828
+ /**
1829
+ * The thing counted, for the spoken form, singular then plural: `['line', 'lines']` reads
1830
+ * "1 line added, 50 lines removed".
1831
+ */
1832
+ noun?: readonly [one: string, other: string];
1833
+ /** Additional classes for the count. */
1834
+ className?: string;
1835
+ }
1836
+ /**
1837
+ * The size of a change as `+77 −50`, in the `delta` roles.
1838
+ *
1839
+ * Change, not meaning: the added count is green because it was added, not because adding is
1840
+ * good. Screen readers hear the words rather than the signs.
1841
+ */
1842
+ declare const ChangeCount: react.ForwardRefExoticComponent<ChangeCountProps & react.RefAttributes<HTMLSpanElement>>;
1843
+
1844
+ interface ChangeBarProps extends Omit<react.SVGAttributes<SVGSVGElement>, 'children'> {
1845
+ /** Lines or records added. */
1846
+ added: number;
1847
+ /** Lines or records removed. */
1848
+ removed: number;
1849
+ /**
1850
+ * The size of a full bar. Pass the largest change in the list so sibling bars share a scale;
1851
+ * defaults to this change alone, which fills the bar.
1852
+ */
1853
+ max?: number;
1854
+ /** Accessible name. Without one the bar is decorative, and a `ChangeCount` beside it carries the figures. */
1855
+ label?: string;
1856
+ /** Additional classes for the bar. */
1857
+ className?: string;
1858
+ }
1859
+ /**
1860
+ * The share of a change, added then removed, on a track scaled to the largest change beside it.
1861
+ *
1862
+ * Drawn as SVG so the proportion is geometry rather than an inline style, and the fills take the
1863
+ * `delta` roles. Decorative by default: it repeats a count printed next to it.
1864
+ */
1865
+ declare const ChangeBar: react.ForwardRefExoticComponent<ChangeBarProps & react.RefAttributes<SVGSVGElement>>;
1866
+
1867
+ interface ChangeIndexFile {
1868
+ /** The file's path. */
1869
+ path: string;
1870
+ /** Lines added. */
1871
+ added: number;
1872
+ /** Lines removed. */
1873
+ removed: number;
1874
+ /** Where the file's diff is. Defaults to `#` + `diffAnchor(path)`, which `DiffView` uses for its id. */
1875
+ href?: string;
1876
+ }
1877
+ interface ChangeIndexGroup {
1878
+ /** The group's name, such as `Call graph` or `Hand-written code metrics`. */
1879
+ title: string;
1880
+ /** The group's files, in reading order. A group with none is left out. */
1881
+ files: readonly ChangeIndexFile[];
1882
+ }
1883
+ interface ChangeIndexProps extends react.HTMLAttributes<HTMLElement> {
1884
+ /** Accessible name for the index. */
1885
+ label?: string;
1886
+ /** Groups in reading order. Each prints its own total before its files. */
1887
+ groups: readonly ChangeIndexGroup[];
1888
+ /** Printed when every group is empty. */
1889
+ emptyText?: react.ReactNode;
1890
+ /** Additional classes for the root. */
1891
+ className?: string;
1892
+ }
1893
+ /**
1894
+ * The files a change touched, grouped, each group totalled before its files, each file with a
1895
+ * count and a bar on one shared scale, and each linking to its diff.
1896
+ *
1897
+ * Plain anchors, so the index works in a report with no script. A flat, scannable list rather
1898
+ * than `FileChangeTree`'s drawn directory layout: that figure explains a small changeset's shape,
1899
+ * this one indexes a large one.
1900
+ */
1901
+ declare const ChangeIndex: react.ForwardRefExoticComponent<ChangeIndexProps & react.RefAttributes<HTMLElement>>;
1902
+
1903
+ interface DiffViewProps extends Omit<react.HTMLAttributes<HTMLElement>, 'children'> {
1904
+ /** The file's path. The directory part is drawn muted; the anchor `id` is derived from it. */
1905
+ path: string;
1906
+ /** The hunks to draw. `parseUnifiedDiff` reads them from `git diff` output. */
1907
+ hunks: readonly DiffHunk[];
1908
+ /** Fold the file behind its summary row, as a `<details>`. Defaults to `true`. */
1909
+ collapsible?: boolean;
1910
+ /** Start unfolded. Printing prints only what is open. */
1911
+ defaultOpen?: boolean;
1912
+ /** Wrap long lines instead of scrolling them. */
1913
+ wrap?: boolean;
1914
+ /** The largest change beside this one, so the summary bars share a scale. */
1915
+ max?: number;
1916
+ /** Additional classes for the root. */
1917
+ className?: string;
1918
+ }
1919
+ /**
1920
+ * One file's line diff: a summary row with the path, a change count and a bar, then each hunk's
1921
+ * header and its lines with baseline and candidate line numbers in two gutters.
1922
+ *
1923
+ * A changed row is told by its sign column as well as its ground, so the diff survives
1924
+ * greyscale printing. Folds as a `<details>` by default — the one disclosure a static report
1925
+ * has — with a `[+]`/`[−]` text marker. Colours are the `delta` roles: an added line is added,
1926
+ * not approved.
1927
+ */
1928
+ declare const DiffView: react.ForwardRefExoticComponent<DiffViewProps & react.RefAttributes<HTMLElement>>;
1929
+
1930
+ /** What happened to a record between baseline and candidate, matched by its stable key. */
1931
+ type KeyedChange = 'added' | 'removed' | 'changed' | 'renamed' | 'unchanged';
1932
+ interface KeyedDiffRow {
1933
+ /** A stable React key for the row. Give one when rows can reorder or be inserted and `cells` hold state; the index is used otherwise. */
1934
+ id?: string | number;
1935
+ /** The record's stable identity — a method id, a package name, a cluster key. */
1936
+ identity: ReactNode;
1937
+ /** What happened to the record. */
1938
+ change: KeyedChange;
1939
+ /** One cell per entry in `columns`, typically `DeltaValue`s. */
1940
+ cells?: readonly ReactNode[];
1941
+ }
1942
+ interface KeyedDiffProps extends react.HTMLAttributes<HTMLDivElement> {
1943
+ /** Says what the records are and what they are keyed by. Rendered as the table caption. */
1944
+ caption: ReactNode;
1945
+ /** Heading for the identity column. */
1946
+ identityLabel?: string;
1947
+ /** Headings for the measured columns after the identity. */
1948
+ columns?: readonly string[];
1949
+ /** One row per record, in reading order. Sort by change or by identity before passing them in. */
1950
+ rows: readonly KeyedDiffRow[];
1951
+ /** Printed when there are no rows. */
1952
+ emptyText?: ReactNode;
1953
+ /** Replaces the change words, for a translated page. */
1954
+ changeLabels?: Partial<Record<KeyedChange, string>>;
1955
+ /** Additional classes for the root. */
1956
+ className?: string;
1957
+ }
1958
+ /**
1959
+ * Records compared by stable identity rather than by line: one row per record, a change word,
1960
+ * and the measured fields beside it.
1961
+ *
1962
+ * The form a keyed-collection comparison reports. A method whose signature changed is one
1963
+ * `changed` row here where a line diff shows a removal and an addition, and reordering a keyed
1964
+ * collection is no change at all.
1965
+ */
1966
+ declare const KeyedDiff: react.ForwardRefExoticComponent<KeyedDiffProps & react.RefAttributes<HTMLDivElement>>;
1967
+
1968
+ /** One measured value: the baseline's and the candidate's. A `direction` here overrides the column's. */
1969
+ interface ReviewValue {
1970
+ before?: number | null;
1971
+ after?: number | null;
1972
+ direction?: MetricDirection;
1973
+ unit?: string;
1974
+ }
1975
+ interface ReviewColumn {
1976
+ /** The measurement's name. Its direction, if any, is printed beside it. */
1977
+ label: string;
1978
+ direction?: MetricDirection;
1979
+ unit?: string;
1980
+ }
1981
+ /** A table of numeric deltas, one row per subject, one column per measurement. */
1982
+ interface ReviewMeasurementTable {
1983
+ caption: string;
1984
+ /** Heading for the subject column. */
1985
+ identityLabel: string;
1986
+ columns: readonly ReviewColumn[];
1987
+ rows: readonly {
1988
+ identity: string;
1989
+ values: readonly ReviewValue[];
1990
+ }[];
1991
+ }
1992
+ /** Records compared by stable identity, each with its measured values. */
1993
+ interface ReviewRecordTable {
1994
+ caption: string;
1995
+ identityLabel: string;
1996
+ columns: readonly ReviewColumn[];
1997
+ rows: readonly {
1998
+ identity: string;
1999
+ change: KeyedChange;
2000
+ values: readonly ReviewValue[];
2001
+ }[];
2002
+ }
2003
+ /** A group of changed files, each with its hunks. */
2004
+ interface ReviewFileGroup {
2005
+ title: string;
2006
+ files: readonly {
2007
+ path: string;
2008
+ hunks: readonly DiffHunk[];
2009
+ }[];
2010
+ }
2011
+ /** Everything a review report shows, in the order it shows it. */
2012
+ interface ReviewReportData {
2013
+ title: string;
2014
+ /** One line saying what was compared. */
2015
+ subtitle?: string;
2016
+ /** The header strip: comparator, Delta status, policy. */
2017
+ meta?: readonly ReportMetaItem[];
2018
+ /** The Assessment's outcome, or `none` when no policy ran. */
2019
+ outcome: AssessmentOutcome;
2020
+ /** The verdict line. */
2021
+ verdict: string;
2022
+ /** One line of context under it. */
2023
+ verdictContext?: string;
2024
+ /** What the result can be traced back to. */
2025
+ provenance: readonly ProvenanceItem[];
2026
+ /** Headline counts, read before the detail. */
2027
+ figures?: readonly {
2028
+ label: string;
2029
+ value: string;
2030
+ note?: string;
2031
+ }[];
2032
+ /** Numeric deltas. */
2033
+ measurements?: readonly ReviewMeasurementTable[];
2034
+ /** Records compared by stable identity. */
2035
+ records?: ReviewRecordTable;
2036
+ /** Methodology or coverage notes that qualify a measurement. Never a verdict. */
2037
+ caveats?: readonly {
2038
+ title: string;
2039
+ body: ReactNode;
2040
+ }[];
2041
+ /** The changed files, grouped. */
2042
+ files: readonly ReviewFileGroup[];
2043
+ }
2044
+ interface ReviewReportPageProps extends Omit<react.HTMLAttributes<HTMLElement>, 'title'> {
2045
+ /** The report to draw. `DEFAULT_REVIEW_REPORT` is a real comparison to start from. */
2046
+ report: ReviewReportData;
2047
+ /** Additional classes for the document. */
2048
+ className?: string;
2049
+ }
2050
+ /**
2051
+ * A whole review report, the document a comparison tool such as Diffra emits: the verdict, its
2052
+ * provenance, headline figures, numeric deltas with their directions, records by stable identity,
2053
+ * methodology caveats, then every changed file indexed and drawn as a line diff.
2054
+ *
2055
+ * Static-safe throughout, so it renders the same in an application and in a `ds-report` file.
2056
+ * The largest file opens by default; the rest fold. Change is drawn in the `delta` roles and only
2057
+ * the verdict and status marks use `intent`.
2058
+ */
2059
+ declare const ReviewReportPage: react.ForwardRefExoticComponent<ReviewReportPageProps & react.RefAttributes<HTMLElement>>;
2060
+
2061
+ type PullRequestState = 'open' | 'draft' | 'merged' | 'closed';
2062
+ type ReviewerState = 'approved' | 'changes-requested' | 'commented' | 'pending';
2063
+ /** One CI check. Its status is an Assessment outcome, because a check is a policy that ran. */
2064
+ interface PullRequestCheck {
2065
+ name: string;
2066
+ status: AssessmentOutcome;
2067
+ /** Replaces the printed status word, e.g. `pending` for a queued run drawn as `inconclusive`. */
2068
+ label?: string;
2069
+ /** One line on what it found. */
2070
+ summary?: string;
2071
+ /** Pre-formatted, e.g. `6m 12s`. */
2072
+ duration?: string;
2073
+ }
2074
+ /** Everything a pull request page shows. */
2075
+ interface PullRequestData {
2076
+ /** `owner/name`. */
2077
+ repository: string;
2078
+ number: number;
2079
+ title: string;
2080
+ state: PullRequestState;
2081
+ author: string;
2082
+ /** The branch merged into. */
2083
+ base: string;
2084
+ /** The branch merged from. */
2085
+ head: string;
2086
+ /** Pre-formatted, e.g. `opened 23 Oct 2026`. Formatted by the caller so a render never reads the clock. */
2087
+ opened: string;
2088
+ labels?: readonly string[];
2089
+ /** The description, one paragraph per entry. */
2090
+ description: readonly ReactNode[];
2091
+ reviewers: readonly {
2092
+ name: string;
2093
+ state: ReviewerState;
2094
+ }[];
2095
+ checks: readonly PullRequestCheck[];
2096
+ /** A comparison tool's summary of the change, drawn as a verdict band at the top of the conversation. */
2097
+ verdict?: {
2098
+ outcome: AssessmentOutcome;
2099
+ title: string;
2100
+ context?: string;
2101
+ };
2102
+ /** Top-level comments, oldest first. */
2103
+ conversation?: readonly {
2104
+ author: string;
2105
+ meta?: string;
2106
+ body: ReactNode;
2107
+ }[];
2108
+ /** Changed files. Lines may carry review comments. */
2109
+ files: readonly {
2110
+ path: string;
2111
+ hunks: readonly DiffHunk[];
2112
+ }[];
2113
+ }
2114
+ interface PullRequestPageProps extends react.HTMLAttributes<HTMLElement> {
2115
+ /** The pull request to draw. `DEFAULT_PULL_REQUEST` is a sample to start from. */
2116
+ pullRequest: PullRequestData;
2117
+ /** Additional classes for the page. */
2118
+ className?: string;
2119
+ }
2120
+ /**
2121
+ * A pull request under review, the page a code host shows: title and state, the branches, a
2122
+ * conversation led by a comparison tool's verdict, reviewers and labels in a side rail, the
2123
+ * checks as status marks, and the changed files as line diffs with review comments pinned under
2124
+ * their lines.
2125
+ *
2126
+ * The first phone screen answers whether it can merge: the header carries a status panel with
2127
+ * the merge headline, the reason, and the checks and reviews as tallies, worst first. Below the
2128
+ * fold the detail stays, quieter: comments are rules rather than boxes, passing checks fold, and
2129
+ * only files with review comments open.
2130
+ *
2131
+ * Static: the section links are anchors, the files fold as `<details>`, and nothing posts. A
2132
+ * check is drawn with the Assessment vocabulary because a check is a policy that ran; the files
2133
+ * use the `delta` roles because a diff is not a verdict.
2134
+ */
2135
+ declare const PullRequestPage: react.ForwardRefExoticComponent<PullRequestPageProps & react.RefAttributes<HTMLElement>>;
2136
+
2137
+ /**
2138
+ * Sample data for the review pages: one real comparison, trimmed.
2139
+ *
2140
+ * Parquet.SourceGenerator's derived outputs for one pull request, compared with its merge base
2141
+ * 216f6fc — complexity metrics, duplication clusters and the call graph. The figures are the
2142
+ * ones that comparison reported. The source diff and the review conversation around it are
2143
+ * written for the sample, and say so.
2144
+ *
2145
+ * Plain `.ts` with `createElement` rather than JSX: this is data, not a component, and the
2146
+ * component gates read every `.tsx` under `components/` as one.
2147
+ *
2148
+ * Exported so a consumer can render either page whole, and so the stories and the applied site
2149
+ * read one copy instead of two.
2150
+ */
2151
+
2152
+ declare const SAMPLE_BASELINE_COMMIT = "216f6fc28cec75077f5b8fa90cd3d7055e81db7b";
2153
+ declare const SAMPLE_DUPLICATION_HUNKS: DiffHunk[];
2154
+ declare const SAMPLE_METRICS_HUNKS: DiffHunk[];
2155
+ declare const SAMPLE_CALLGRAPH_HUNKS: DiffHunk[];
2156
+ declare const DEFAULT_REVIEW_REPORT: ReviewReportData;
2157
+ declare const DEFAULT_PULL_REQUEST: PullRequestData;
2158
+
1412
2159
  /**
1413
2160
  * The rules that say a colour must be addressed as a role.
1414
2161
  *
@@ -1495,9 +2242,15 @@ interface PageTitleProps extends HTMLAttributes<HTMLHeadingElement> {
1495
2242
  children: ReactNode;
1496
2243
  subtitle?: string;
1497
2244
  bracketed?: boolean;
2245
+ /**
2246
+ * Draw the title in its double-ruled box. `true` by default. Set `false` where something else
2247
+ * on the page is the heavy object — a hero whose demo leads, for instance — so the title does
2248
+ * not compete with it. See `docs/edge-hierarchy.md`.
2249
+ */
2250
+ framed?: boolean;
1498
2251
  className?: string;
1499
2252
  }
1500
- declare function PageTitle({ children, subtitle, bracketed, className, ...props }: PageTitleProps): react.JSX.Element;
2253
+ declare function PageTitle({ children, subtitle, bracketed, framed, className, ...props }: PageTitleProps): react.JSX.Element;
1501
2254
 
1502
2255
  interface PageHeaderProps {
1503
2256
  /** Rendered bracketed + uppercased as `[ TITLE ]`. */
@@ -1813,6 +2566,18 @@ type DividerVariant = 'auto' | 'terminal' | 'pencil';
1813
2566
  * than a silent fallthrough.
1814
2567
  */
1815
2568
  declare const DIVIDER_PATTERNS: Readonly<Record<Polarity, string>>;
2569
+ /**
2570
+ * The same marks, as a start cap, a repeating fill and an end cap, so a rule can run the full
2571
+ * width of its container instead of stopping where a fixed string happens to end.
2572
+ *
2573
+ * `step` is the fill unit's length in characters and `caps` the two caps' total; both feed the
2574
+ * width calculation below, so a mark changed here must change its numbers with it.
2575
+ */
2576
+ declare const DIVIDER_MARKS: Readonly<Record<Polarity, {
2577
+ start: string;
2578
+ fill: string;
2579
+ end: string;
2580
+ }>>;
1816
2581
  interface DividerProps extends react__default.HTMLAttributes<HTMLDivElement> {
1817
2582
  /**
1818
2583
  * Which mark to draw. Defaults to `auto`, which follows the level's declared
@@ -2556,6 +3321,12 @@ declare const SwatchGroup: react.ForwardRefExoticComponent<SwatchGroupProps & re
2556
3321
  * rendering identically.
2557
3322
  */
2558
3323
  type StatCardAccent = AccentToken;
3324
+ /**
3325
+ * `boxed` is the brand's 2px panel, for a figure that stands alone. `quiet` drops the box: a
3326
+ * figure in a row of figures, separated from its neighbour by a dashed hairline, so the row reads
3327
+ * as one strip rather than as one heavy object per number — see `docs/edge-hierarchy.md`.
3328
+ */
3329
+ type StatCardAppearance = 'boxed' | 'quiet';
2559
3330
  interface StatCardProps {
2560
3331
  title: string;
2561
3332
  value: string | number;
@@ -2566,9 +3337,11 @@ interface StatCardProps {
2566
3337
  className?: string;
2567
3338
  }>;
2568
3339
  accent?: StatCardAccent;
3340
+ /** `boxed` by default. `quiet` for a card in a row of cards. */
3341
+ appearance?: StatCardAppearance;
2569
3342
  className?: string;
2570
3343
  }
2571
- declare function StatCard({ title, value, change, changeType, subtitle, icon: Icon, accent, className, }: StatCardProps): react.JSX.Element;
3344
+ declare function StatCard({ title, value, change, changeType, subtitle, icon: Icon, accent, appearance, className, }: StatCardProps): react.JSX.Element;
2572
3345
 
2573
3346
  /** The visual treatment of a table. `grid` preserves the original framed style. */
2574
3347
  type TableAppearance = 'grid' | 'quiet' | 'index';
@@ -2675,6 +3448,37 @@ type DataTableSharedProps<T> = {
2675
3448
  * dataset to assistive tech, through `aria-rowcount` and `aria-rowindex`.
2676
3449
  */
2677
3450
  virtualize?: boolean | DataTableVirtualization;
3451
+ /**
3452
+ * The keys of the selected rows, as `keyExtractor` produces them (numbers
3453
+ * are compared as strings). Controlled: the table never changes it, it
3454
+ * reports the next set through `onSelectionChange`. Because selection is
3455
+ * keyed rather than positional it survives a sort, a page change and a
3456
+ * windowed scroll. Without a `keyExtractor` the key is TanStack's row id,
3457
+ * which is the row's index in `data` and does not follow a row when
3458
+ * `data` changes — pass one.
3459
+ */
3460
+ selectedKeys?: ReadonlySet<string>;
3461
+ /**
3462
+ * Turns selection on: a leading column of checkboxes, one per row, and one
3463
+ * in the header. Called with the whole next selection on every toggle.
3464
+ * The set it reports holds only keys of rows that are still in the data
3465
+ * and still selectable, so a key whose row has gone, or has become
3466
+ * unselectable, drops out on the next change rather than lingering.
3467
+ */
3468
+ onSelectionChange?: (keys: Set<string>) => void;
3469
+ /**
3470
+ * Whether a row may be selected. `false` disables its checkbox; a string
3471
+ * disables it *and* says why, as the checkbox's accessible description and
3472
+ * as a tooltip on hover. Every row is selectable when omitted.
3473
+ */
3474
+ isRowSelectable?: (row: T) => boolean | string;
3475
+ /**
3476
+ * The accessible name of a row's checkbox. Defaults to "Select" followed by
3477
+ * the row-header column's value (`rowHeader` / `meta.rowHeader`), or by
3478
+ * the row's key when there is no row header — so mark a row header, or
3479
+ * pass this, or every checkbox is named by an id.
3480
+ */
3481
+ selectionLabel?: (row: T) => string;
2678
3482
  };
2679
3483
  type DataTableProps<T> = DataTableSharedProps<T> & ({
2680
3484
  /** Pre-configured TanStack table instance */
@@ -2696,7 +3500,7 @@ type DataTableProps<T> = DataTableSharedProps<T> & ({
2696
3500
  * column, a real sort button per sortable header, an optional `caption`, and a
2697
3501
  * true row count when the body is windowed.
2698
3502
  */
2699
- declare function DataTable<T>({ table: providedTable, columns, data, keyExtractor, caption, appearance, density, emptyText, className, containerClassName, virtualize, ...rest }: DataTableProps<T>): react.JSX.Element;
3503
+ declare function DataTable<T>({ table: providedTable, columns, data, keyExtractor, caption, appearance, density, emptyText, className, containerClassName, virtualize, selectedKeys, onSelectionChange, isRowSelectable, selectionLabel, ...rest }: DataTableProps<T>): react.JSX.Element;
2700
3504
 
2701
3505
  interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'children' | 'className'> {
2702
3506
  isOpen: boolean;
@@ -4114,6 +4918,8 @@ interface HeroProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'childre
4114
4918
  children?: ReactNode;
4115
4919
  /** Draw the headline's brackets. On by default, as `PageTitle` does. */
4116
4920
  bracketed?: boolean;
4921
+ /** Draw the title in its double-ruled box. `true` by default; `false` when the hero's media leads. */
4922
+ framed?: boolean;
4117
4923
  /** Where the headline and actions sit — `center` (the default) or `start`. */
4118
4924
  align?: SectionAlign;
4119
4925
  /** Merged into the `<section>`'s classes. */
@@ -4194,6 +5000,8 @@ interface FeatureProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
4194
5000
  icon?: ReactNode;
4195
5001
  /** The semantic accent for the stripe, the title and the icon. None by default. */
4196
5002
  accent?: AccentToken;
5003
+ /** The panel's weight. `quiet` for a grid of features beside a heavier object on the page. */
5004
+ weight?: CardWeight;
4197
5005
  /** The description — a sentence or two. */
4198
5006
  children?: ReactNode;
4199
5007
  /** Merged into the cell's classes. */
@@ -4238,7 +5046,7 @@ interface PricingGridProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | '
4238
5046
  }
4239
5047
  /**
4240
5048
  * A marketing section of price plans: an optional heading and line, over a
4241
- * grid of {@link PricingTier} cells stretched to one height so their actions
5049
+ * grid of {@link (PricingTier:variable)} cells stretched to one height so their actions
4242
5050
  * line up.
4243
5051
  *
4244
5052
  * Holds no prices, plan names or currency. The same grid is a SaaS plan table,
@@ -4263,6 +5071,11 @@ type PricingTierAccent = 'primary' | 'secondary' | 'tertiary';
4263
5071
  interface PricingTierProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
4264
5072
  /** The plan's name, set as the tier's `<h3>`. */
4265
5073
  name: ReactNode;
5074
+ /**
5075
+ * The tier's weight. Leave the recommended tier `strong` and set the others `quiet`, so the
5076
+ * plan the page recommends is the one heavy object in the row.
5077
+ */
5078
+ weight?: CardWeight;
4266
5079
  /** The price as displayed — currency and all, since only the caller knows the locale. */
4267
5080
  price: ReactNode;
4268
5081
  /** What the price is per — `/month`, `/seat`, `one-off`. Set small, in the muted ink. */
@@ -6379,6 +7192,57 @@ declare function formatAge(ms: number): string;
6379
7192
  */
6380
7193
  declare const FreshnessIndicator: react.ForwardRefExoticComponent<FreshnessIndicatorProps & react.RefAttributes<HTMLSpanElement>>;
6381
7194
 
7195
+ /** Which of the four states a `ResourceState` is showing. */
7196
+ type ResourceStatus = 'loading' | 'failed' | 'stale' | 'ready';
7197
+ /**
7198
+ * What `ResourceState` reads. `usePolledResource`'s result fits as it is; so
7199
+ * does any `{ data, error }` from another loader.
7200
+ */
7201
+ interface ResourceStateValue<T> {
7202
+ /** The last good answer, or `undefined` before there is one. */
7203
+ data: T | undefined;
7204
+ /** Why the latest load failed, or `undefined` when it did not. */
7205
+ error: string | undefined;
7206
+ /** A load is in flight. Sets `aria-busy` on the region; absent reads as loading while there is no data. */
7207
+ loading?: boolean;
7208
+ }
7209
+ interface ResourceStateProps<T> extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
7210
+ /** The resource to render — `usePolledResource`'s result, or any structurally compatible `{ data, error }`. */
7211
+ state: ResourceStateValue<T>;
7212
+ /** Renders the data once there is some. Called with the data, never with `undefined`. */
7213
+ children: (data: T) => ReactNode;
7214
+ /** Shown while there is no data and no error. Default one block `Skeleton`; pass the shape of the real content to keep the page still when it lands. */
7215
+ loading?: ReactNode;
7216
+ /** The warning title when the load failed and there is nothing to show. Default `Could not load`. */
7217
+ errorTitle?: string;
7218
+ /** The warning title above data kept from an earlier load after a later one failed. Default `Showing the last good data`. */
7219
+ staleTitle?: string;
7220
+ }
7221
+ /** `forwardRef` erases a generic; this restores it, so `children` is typed by `state`. */
7222
+ type ResourceStateComponent = (<T>(props: ResourceStateProps<T> & RefAttributes<HTMLDivElement>) => ReactElement | null) & {
7223
+ displayName?: string;
7224
+ };
7225
+ /**
7226
+ * The loading, failed and stale states around a view of loaded data, so every
7227
+ * panel says them the same way.
7228
+ *
7229
+ * - **Loading** — no data yet and no error: the `loading` slot, a `Skeleton`
7230
+ * unless overridden.
7231
+ * - **Failed** — no data and an error: a `NoteBlock` warning, in the danger
7232
+ * role, carrying the error message under `errorTitle`.
7233
+ * - **Stale** — data from an earlier load, and a later load failed: a
7234
+ * `NoteBlock` in the warning role, under `staleTitle`, then the data. The data
7235
+ * stays because an older answer is more use than none, and the note stays
7236
+ * because an older answer shown as current is a lie.
7237
+ * - **Ready** — data and no error: `children(data)`.
7238
+ *
7239
+ * The region carries `aria-busy` while a load is in flight and `data-state`
7240
+ * naming the state. Pair it with `usePolledResource`, and put a
7241
+ * `FreshnessIndicator` fed its `updatedAt` near the view, to say how old the
7242
+ * data on screen is as well as whether it is.
7243
+ */
7244
+ declare const ResourceState: ResourceStateComponent;
7245
+
6382
7246
  /** The visible part of an id: its first `count` characters and `…`, or all of it. */
6383
7247
  declare function truncateId(value: string, count?: number): string;
6384
7248
 
@@ -6749,7 +7613,7 @@ interface ExperimentItem {
6749
7613
  /** Leading glyph. A node rather than a component type, so it can carry its own size. */
6750
7614
  icon?: react__default.ReactNode;
6751
7615
  /**
6752
- * Lifecycle state, shown as a badge and coloured by {@link STATUS_ACCENT} —
7616
+ * Lifecycle state, shown as a badge and coloured by `STATUS_ACCENT` —
6753
7617
  * `success` for `active`, `info` for `experimental`, `quiet` for `archived`.
6754
7618
  */
6755
7619
  status: 'active' | 'archived' | 'experimental';
@@ -6789,7 +7653,7 @@ interface ExperimentsViewProps {
6789
7653
  * a read-only display.
6790
7654
  *
6791
7655
  * `status` is the only place the component uses colour to mean something, and
6792
- * it reads from {@link STATUS_ACCENT} — intent roles for the two states a
7656
+ * it reads from `STATUS_ACCENT` — intent roles for the two states a
6793
7657
  * reader acts on, `quiet` for `archived`. See that constant for why the third
6794
7658
  * one is the exception.
6795
7659
  */
@@ -7261,15 +8125,10 @@ declare function collectHeadings(container: ParentNode | null | undefined, selec
7261
8125
  * package's deterministic rendering and semantic token contracts.
7262
8126
  */
7263
8127
 
7264
- type FigurePalette$1 = 'mono' | 'duo' | 'multi';
7265
- declare const GLYPH_SETS: {
7266
- readonly shade: readonly ["·", "░", "▒", "▓", "█"];
7267
- readonly ascii: readonly [".", "-", "=", "#", "@"];
7268
- readonly hash: readonly [".", ":", "+", "#", "█"];
7269
- readonly bar: readonly ["▁", "▂", "▃", "▅", "█"];
7270
- };
7271
- type GlyphSetName = keyof typeof GLYPH_SETS;
7272
- type Glyphs$1 = GlyphSetName | readonly string[];
8128
+ type FigurePalette = 'mono' | 'duo' | 'multi';
8129
+ /** A named glyph ramp, from empty to full. */
8130
+ type GlyphSetName = 'shade' | 'ascii' | 'hash' | 'bar';
8131
+ type Glyphs = GlyphSetName | readonly string[];
7273
8132
  interface FigureFrameProps extends Omit<react.ComponentProps<'figure'>, 'title'> {
7274
8133
  /** Short uppercase caption drawn across the top edge. */
7275
8134
  title?: string;
@@ -7314,7 +8173,7 @@ interface FlowDiagramProps extends react.HTMLAttributes<HTMLDivElement> {
7314
8173
  /** Markdown list or `<Path>` content used to derive rows. */
7315
8174
  children?: ReactNode;
7316
8175
  /** Accent palette used for emphasized nodes. */
7317
- palette?: FigurePalette$1;
8176
+ palette?: FigurePalette;
7318
8177
  /** Additional classes for this diagram. */
7319
8178
  className?: string;
7320
8179
  }
@@ -7354,7 +8213,7 @@ interface TimelineProps extends react.HTMLAttributes<HTMLDivElement> {
7354
8213
  /** Markdown list or `<Event>` content used to derive events. */
7355
8214
  children?: ReactNode;
7356
8215
  /** Accent palette used for current and upcoming events. */
7357
- palette?: FigurePalette$1;
8216
+ palette?: FigurePalette;
7358
8217
  /** Additional classes for this timeline. */
7359
8218
  className?: string;
7360
8219
  }
@@ -7381,6 +8240,10 @@ interface DiffRow {
7381
8240
  label?: string;
7382
8241
  value: string;
7383
8242
  sign?: DiffSign;
8243
+ /** The change relative to its baseline, as a signed fraction: `0.18` for +18%. Sizes the row's bar and decides whether it is noise. */
8244
+ relative?: number;
8245
+ /** Which way this row is preferred to move, overriding the summary's `direction`. */
8246
+ direction?: MetricDirection;
7384
8247
  }
7385
8248
  interface DiffLineProps extends DiffRow {
7386
8249
  /** Draw the row under a rule as the total. */
@@ -7393,13 +8256,20 @@ interface ChangeSummaryProps extends react.HTMLAttributes<HTMLDivElement> {
7393
8256
  rows?: DiffRow[];
7394
8257
  /** Optional typed total shown below the row rule. */
7395
8258
  footer?: DiffRow;
8259
+ /**
8260
+ * Which way the rows are preferred to move. Given one, a row reads as better (success) or worse
8261
+ * (danger) instead of as an addition or removal, and a tally of each leads the summary.
8262
+ */
8263
+ direction?: MetricDirection;
8264
+ /** Relative-change bands. Rows under `noise` are drawn quiet; rows at or over `major` heavy. */
8265
+ significance?: DeltaSignificance;
7396
8266
  /** Markdown list or `<Line>` content used to derive rows. */
7397
8267
  children?: ReactNode;
7398
8268
  /**
7399
8269
  * Accepted for symmetry with the other figures and ignored: additions and removals take the
7400
8270
  * `delta` roles, so a summary reads the same in a `multi` figure as in a `mono` one.
7401
8271
  */
7402
- palette?: FigurePalette$1;
8272
+ palette?: FigurePalette;
7403
8273
  /** Additional classes for this summary. */
7404
8274
  className?: string;
7405
8275
  }
@@ -7410,7 +8280,14 @@ declare const Line: ((props: DiffLineProps & {
7410
8280
  graphItem: string;
7411
8281
  displayName?: string;
7412
8282
  };
7413
- /** Renders additions, removals, and unchanged rows with a readable text summary. */
8283
+ /**
8284
+ * Renders additions, removals, and unchanged rows with a readable text summary.
8285
+ *
8286
+ * Given a `direction`, rows read as better or worse instead: colour says which way a row moved
8287
+ * against what is preferred, and its relative size says how loudly. A move under the noise band
8288
+ * stays quiet, a major one is bold with a rule beside it, and a bar under each row shows its
8289
+ * relative size against the largest move in the summary.
8290
+ */
7414
8291
  declare const ChangeSummary: react.ForwardRefExoticComponent<ChangeSummaryProps & react.RefAttributes<HTMLDivElement>>;
7415
8292
 
7416
8293
  /**
@@ -7438,7 +8315,7 @@ interface BeforeAfterProps extends react.HTMLAttributes<HTMLDivElement> {
7438
8315
  /** Markdown list or `<Slope>` content used to derive items. */
7439
8316
  children?: ReactNode;
7440
8317
  /** Accent palette used for directional change. */
7441
- palette?: FigurePalette$1;
8318
+ palette?: FigurePalette;
7442
8319
  /** Additional classes for this comparison. */
7443
8320
  className?: string;
7444
8321
  }
@@ -7472,9 +8349,9 @@ interface UptimeStripProps extends react.HTMLAttributes<HTMLDivElement> {
7472
8349
  /** Number of status marks per row. */
7473
8350
  columns?: number;
7474
8351
  /** Glyph set name or custom glyph sequence. */
7475
- glyphs?: Glyphs$1;
8352
+ glyphs?: Glyphs;
7476
8353
  /** Accent palette used for health states. */
7477
- palette?: FigurePalette$1;
8354
+ palette?: FigurePalette;
7478
8355
  /** Additional classes for this strip. */
7479
8356
  className?: string;
7480
8357
  }
@@ -7592,6 +8469,11 @@ interface IndexedSectionProps extends Omit<react.HTMLAttributes<HTMLElement>, 't
7592
8469
  headingLevel?: 2 | 3 | 4;
7593
8470
  /** Controls drawn at the right of the header, such as a comment button. */
7594
8471
  actions?: ReactNode;
8472
+ /**
8473
+ * Surface elevation rung for the section background.
8474
+ * If omitted, defaults to `'raised'` when nested in a `DrawingSheet`, or `'base'` standalone.
8475
+ */
8476
+ surface?: 'base' | 'raised' | 'transparent';
7595
8477
  /** Section content. */
7596
8478
  children?: ReactNode;
7597
8479
  /** Additional classes for the root. */
@@ -7603,6 +8485,8 @@ interface IndexedSectionProps extends Omit<react.HTMLAttributes<HTMLElement>, 't
7603
8485
  */
7604
8486
  declare const IndexedSection: react.ForwardRefExoticComponent<IndexedSectionProps & react.RefAttributes<HTMLElement>>;
7605
8487
 
8488
+ type FigureSurface = 'base' | 'sheet';
8489
+
7606
8490
  /**
7607
8491
  * Adapted from mdxcn by Keshav Bagaade, MIT licensed.
7608
8492
  * Source: https://github.com/keshav-exe/mdxcn/blob/2928126ba146ebbae9c2351deca27d27bb40e744/registry/default/graph-activity/graph-activity.tsx
@@ -7610,8 +8494,6 @@ declare const IndexedSection: react.ForwardRefExoticComponent<IndexedSectionProp
7610
8494
  * rendering and the design system's semantic token classes.
7611
8495
  */
7612
8496
 
7613
- type Glyphs = 'shade' | 'ascii' | 'hash' | 'bar' | readonly string[];
7614
- type FigurePalette = 'mono' | 'duo' | 'multi';
7615
8497
  interface ActivityDay {
7616
8498
  /** Calendar date in ISO `YYYY-MM-DD` form, interpreted in UTC. */
7617
8499
  date: string;
@@ -7984,4 +8866,4 @@ declare const mdxComponents: {
7984
8866
  };
7985
8867
  type MdxComponents = typeof mdxComponents;
7986
8868
 
7987
- export { ALERT_STATE_ORDER, ANSI_SLOTS, type AccentToken, type ActivityDay, ActivityGrid, type ActivityGridProps, type Alert, AlertDialog, type AlertDialogProps, AlertList, type AlertListProps, type AlertSeverity, type AlertState, AnchorHeading, type AnchorHeadingProps, type AnsiChrome, type AnsiHue, type AnsiScheme, type AnsiSlot, AppMain, type AppMainProps, type AppNavItem, AppShell, type AppShellProps, AppSidebar, AppSidebarNav, type AppSidebarNavProps, type AppSidebarProps, AppTopbar, type AppTopbarProps, AsciiDivider, type AsciiDividerProps, AsciiGauge, type AsciiGaugeProps, type AsciiGaugeVariant, Avatar, type AvatarProps, Badge, type BadgeProps, BarChart, type BarChartDatum, type BarChartProps, BeforeAfter, type BeforeAfterProps, type BlogAuthor, BlogPost, type BlogPostProps, BlueskyIcon, type BorderTone, BracketText, type BracketTextProps, Breadcrumbs, type BreadcrumbsProps, type BrutalistTheme, type BuildTraceOptions, BulletChart, type BulletChartProps, Button, type ButtonElementProps, type ButtonLinkProps, type ButtonProps, type ButtonVariant, CSS_MEDIUM, CTASection, type CTASectionAccent, type CTASectionProps, Card, type CardProps, type CardVariant, ChangeSummary, type ChangeSummaryProps, ChartTooltip, type ChartTooltipProps, Checkbox, type CheckboxProps, type ClassInput, CodeBlock, CodeBlockAttachment, type CodeBlockProps, CodeTab, type CodeTabProps, CodeTabs, type CodeTabsProps, type CodeTabsVariant, ColophonCard, type ColophonCardProps, type ColophonLink, type Column, type ContrastCheck, type ContrastFloor, type Crumb, DEFAULT_DEPLOY_LOG, DEFAULT_EXPERIMENTS, DEFAULT_LEVEL, DEFAULT_PRICING_TIERS, DIVIDER_PATTERNS, DataTable, type DataTableProps, type DataTableVirtualization, Decision, type DecisionOption, type DecisionProps, type Delta, type DeltaGround, DesignSandbox, type DiffLineProps, type DiffRow, type DiffSign, Divider, type DividerProps, type DividerVariant, DocPager, type DocPagerProps, type DocPagerTarget, DocsHeader, type DocsHeaderProps, DocsLayout, type DocsLayoutProps, DocsLink, type DocsLinkProps, DocsLinkProvider, type DocsLinkProviderProps, type DocsNavItem, type DocsNavNode, DocsSidebar, type DocsSidebarProps, Drawer, type DrawerPlacement, type DrawerProps, DrawingSheet, type DrawingSheetProps, type Emphasis, EmptyState, type EmptyStateProps, ErrorSummary, type ErrorSummaryError, type ErrorSummaryProps, Event, type ExperimentItem, ExperimentsView, type ExperimentsViewProps, FILTER_OPERATORS, FILTER_OPERATOR_LABELS, FIXED_COLOURS, FREE_TEXT_KEY, Feature, FeatureGrid, type FeatureGridProps, type FeatureProps, Fieldset, type FieldsetProps, FigureFrame, type FigureFrameProps, type FileChange, type FileChangeNode, FileChangeTree, type FileChangeTreeProps, type FileChangeView, type Filter, FilterBar, type FilterBarField, type FilterBarProps, type FilterOperator, type FilterParseResult, type Finding, type FixedColour, FlowDiagram, type FlowDiagramProps, type FlowNode, type FlowPathProps, type FlowRow, type FlowTone, FreshnessIndicator, type FreshnessIndicatorProps, type FreshnessState, GanttChart, type GanttChartProps, type GanttItem, GitHubIcon, Glyph, type GlyphProps, HEADING_EMPHASIS, type HeadingLevel, Hero, type HeroProps, type Hue, type HueAgreementCheck, type HueRef, INK_WEIGHT, IdChip, type IdChipProps, type IncidentEvent, type IncidentEventKind, type IncidentSummary, IncidentTimeline, type IncidentTimelineProps, IndexedSection, type IndexedSectionProps, Input, type InputProps, type IntensityScale, type Intent, LATENCY_HEATMAP_VARIANTS, LATENCY_HISTOGRAM_VARIANTS, LEVELS, LOG_SEVERITIES, type LatencyBucket, type LatencyCell, type LatencyGrid, LatencyHeatmap, type LatencyHeatmapProps, LatencyHistogram, type LatencyHistogramProps, type LatencyPoint, type LatencySlo, Legend, type LegendProps, type LevelDefinition, Line, type LinkComponentProps, LinkProvider, type LinkProviderProps, LinkedInIcon, type LogEntry, type LogFieldValue, type LogFilter, type LogHighlightPart, type LogSeverity, LogViewer, type LogViewerProps, LoremIpsumPost, MAXIMUM_NEUTRAL_CHROMA, MEDIA, MEDIA_DEFINITIONS, MINIMUM_RATIO, MailIcon, type MdxComponents, type Medium, type MediumDefinition, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuRadioGroup, type MenuRadioGroupProps, MenuRadioItem, type MenuRadioItemProps, MenuSeparator, type MenuSeparatorProps, MetadataGrid, type MetadataGridCustomItem, type MetadataGridProps, type MetadataGridSeries, type Metric, MetricStrip, type MetricStripProps, type MetricTone, MobileNav, type MobileNavProps, Modal, type ModalProps, type Motion, NERD_GLYPHS, NerdIcon, type NerdIconAccent, type NerdIconName, type NerdIconProps, Node, type NodeProps, NotFoundPage, type NotFoundPageProps, NoteBlock, type NoteBlockProps, OBSERVABILITY_INCIDENT_WINDOW, ObservabilityConsole, type ObservabilityConsoleProps, Option, type OverlayAlign, type OverlaySide, PALETTE_HUES, PageHeader, type PageHeaderProps, PageTitle, type PageTitleProps, Pagination, type PaginationProps, Path, type Polarity, Popover, type PopoverProps, PricingGrid, type PricingGridProps, PricingTier, type PricingTierAccent, type PricingTierProps, Progress, type ProgressProps, Prose, type ProseProps, RECOMMENDED_COLOURS, RECOMMENDED_COLOUR_CLASSES, RECOMMENDED_COLOUR_NAMESPACES, RECOMMENDED_COLOUR_PROPERTIES, RECOMMENDED_COLOUR_ROLES, RECOMMENDED_COLOUR_VARS, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RecommendedColourClass, type RecommendedColourNamespace, type RecommendedColourProperty, type RecommendedThemeColours, ReportDetails, type ReportDetailsProps, ReportDocument, type ReportDocumentProps, type ReportMetaItem, ReportSection, type ReportSectionProps, type Rgb, SEVERITY_ACCENTS, SLIDE_DECK_HOTKEYS, SLOTS, SYSTEM_LEVEL, SaasLandingPage, type SaasLandingPageProps, type SectionAlign, type SectionColumns, SectionContainer, type SectionContainerProps, Select, type SelectOption, type SelectProps, type SelectionDevice, type SelectionDeviceCheck, ServerErrorPage, type ServerErrorPageProps, type ServiceEdge, type ServiceGraph, type ServiceGraphLayout, type ServiceGraphLayoutEdge, type ServiceGraphLayoutNode, type ServiceGraphLayoutOptions, type ServiceGraphPoint, ServiceMap, type ServiceMapProps, type ServiceNode, type ServiceNodeKind, type Severity, SeverityBadge, type SeverityBadgeProps, SiteFooter, type SiteFooterProps, SiteHeader, type SiteHeaderCollapse, type SiteHeaderProps, SiteLink, type SiteLinkProps, SiteNav, type SiteNavGroupItemProps, SiteNavItem, type SiteNavItemProps, type SiteNavLinkItemProps, type SiteNavOrientation, type SiteNavProps, Skeleton, type SkeletonProps, Slide, SlideDeck, type SlideDeckHotkey, type SlideDeckProps, type SlideProps, Slope, type SlopeItem, Slugger, SocialIcon, type SocialIconName, type SocialIconProps, Sparkline, type SparklineProps, Spinner, type SpinnerProps, StatCard, type StatCardAccent, type StatCardProps, StatusPage, type StatusPageProps, Step, type StepProps, type StepState, Steps, type StepsProps, type Surface, Swatch, type SwatchColumn, SwatchCompare, type SwatchCompareProps, SwatchGroup, type SwatchGroupProps, type SwatchProps, type SwatchRow, Switch, type SwitchProps, THEME_ATTRIBUTE, THEME_LEVELS, THEME_STORAGE_KEY, TIME_RANGE_PRESETS, TIME_SERIES_VARIANTS, TLDR, type TLDRProps, TOKEN_RULES, Table, type TableAppearance, TableBody, TableCaption, TableCell, type TableDensity, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsProps, TableRow, Tabs, type TabsFont, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, TabsTab, type TabsTabProps, type TabsVariant, Tag, type TagProps, TelemetryGauge, type TelemetryGaugeProps, type TelemetryMachineState, Term, TermGrid, type TermGridProps, type TermItem, Terminal, type TerminalProps, TextArea, type TextAreaProps, type TextHierarchyStep, type TextTone, type ThemeContextValue, type ThemeLevel, ThemeProvider, type ThemeProviderProps, TickerTape, type TickerTapeProps, type TimeCursorState, type TimeRange, TimeRangePicker, type TimeRangePickerProps, type TimeRangePreset, TimeRangeProvider, type TimeRangeProviderProps, type TimeRangeState, type TimeSeries, type TimeSeriesAnnotation, TimeSeriesChart, type TimeSeriesChartProps, type TimeSeriesColorStrategy, type TimeSeriesCurve, type TimeSeriesDensity, type TimeSeriesGrid, type TimeSeriesLegend, type TimeSeriesPoint, type TimeSeriesPointMarkers, type TimeSeriesThreshold, type TimeSeriesVariant, type TimeSeriesYDomain, type TimeSeriesYScale, Timeline, type TimelineEvent, type TimelineProps, type TimelineState, type ToastActionOptions, type ToastApi, type ToastIntent, type ToastOptions, ToastProvider, type ToastProviderProps, type TocEntry, type TokenRow, type TokenRule, TokenTable, type TokenTableProps, Tooltip, type TooltipProps, type TraceAttributeValue, type TraceModel, type TraceReplay, type TraceSpan, type TraceSpanInput, type TraceSpanStatus, TraceViewer, type TraceViewerProps, TraceWaterfall, type TraceWaterfallProps, TrackCard, type TrackCardProps, type TrackItem, type TrackItemStatus, TreeDiagram, type TreeDiagramProps, type TreeNode, type TypeStep, type TypeStepName, type UptimeStatus, UptimeStrip, type UptimeStripProps, type UseActiveHeadingOptions, type UseCopyToClipboardResult, type UseTraceClockOptions, type UseTraceReplayOptions, type VerdictTone, WEB_FLOOR, XIcon, accentVar, ansiScheme, apcaContrast, assertNever, auditContrast, auditHueAgreement, auditSelectionDevices, auditTextHierarchy, borderVar, bucketIndex, bucketPercentile, bucketTimes, buildTrace, childrenToText, clampToRange, cn, collectHeadings, composite, contrastRatio, createAnchorHeading, describeFilter, describeLogEntry, describeTraceSpan, filterLogEntries, fontVar, formatAge, formatAlertDuration, formatClock, formatCount, formatDay, formatFilter, formatLatencyRange, formatRange, formatRangeDuration, formatRequests, formatServiceCount, formatServiceErrorRate, formatShare, formatTimeTick, formatTimestamp, formatTraceDuration, getRecommendedColours, getThemeInitScript, heatmapCells, highlightLogText, histogram, inLogRange, intensityLevel, intensityThresholds, isExternalHref, isMedium, isRecommendedColourClass, isThemeLevel, latencyBuckets, latencyExtent, latencyRowPosition, layoutServiceGraph, linearBuckets, logTicks, lookupField, matchFilters, matchLogEntry, matchTraceSpan, mdxComponents, nearestLogIndex, nextLevel, normaliseRange, parseColor, parseFilter, parseOtlpTrace, parseTraceDocument, percentile, percentiles, presetRange, relativeLuminance, replayTrace, sameFilter, scanRules, scanTokenRules, semanticTokens, serviceEdgeMidpoint, serviceEdgePath, serviceGraph, severityAccent, shareAbove, slugify, sortAlerts, sortLogEntries, summariseIncident, surfaceVar, textVar, timeTicks, truncateId, tryParseFilter, useActiveHeading, useCopyToClipboard, useDocsLinkComponent, useIsCurrentHref, useLinkComponent, useOptionalTheme, useOptionalToast, useTheme, useTimeCursor, useTimeRange, useToast, useTraceClock, useTraceReplay, visibleTraceSpans };
8869
+ export { ALERT_STATE_ORDER, ANSI_SLOTS, type AccentToken, type ActivityDay, ActivityGrid, type ActivityGridProps, type Alert, AlertDialog, type AlertDialogProps, AlertList, type AlertListProps, type AlertSeverity, type AlertState, AnchorHeading, type AnchorHeadingProps, type AnsiChrome, type AnsiHue, type AnsiScheme, type AnsiSlot, AppMain, type AppMainProps, type AppNavItem, AppShell, type AppShellProps, AppSidebar, AppSidebarNav, type AppSidebarNavProps, type AppSidebarProps, AppTopbar, type AppTopbarProps, AsciiDivider, type AsciiDividerProps, AsciiGauge, type AsciiGaugeProps, type AsciiGaugeVariant, type AssessmentOutcome, Avatar, type AvatarProps, Badge, type BadgeProps, BarChart, type BarChartDatum, type BarChartProps, BeforeAfter, type BeforeAfterProps, type BlogAuthor, BlogPost, type BlogPostProps, BlueskyIcon, type BooleanFieldProps, type BorderTone, BracketText, type BracketTextProps, Breadcrumbs, type BreadcrumbsProps, type BrutalistTheme, type BuildTraceOptions, BulletChart, type BulletChartProps, Button, type ButtonElementProps, type ButtonLinkProps, type ButtonOwnProps, type ButtonProps, type ButtonVariant, CSS_MEDIUM, CTASection, type CTASectionAccent, type CTASectionProps, Card, type CardProps, type CardVariant, type CardWeight, ChangeBar, type ChangeBarProps, ChangeCount, type ChangeCountProps, ChangeIndex, type ChangeIndexFile, type ChangeIndexGroup, type ChangeIndexProps, ChangeSummary, type ChangeSummaryProps, ChartTooltip, type ChartTooltipProps, Checkbox, type CheckboxProps, type ClassInput, CodeBlock, CodeBlockAttachment, type CodeBlockProps, CodeTab, type CodeTabProps, CodeTabs, type CodeTabsProps, type CodeTabsVariant, ColophonCard, type ColophonCardProps, type ColophonLink, type Column, type ContrastCheck, type ContrastFloor, type Crumb, DEFAULT_DEPLOY_LOG, DEFAULT_EXPERIMENTS, DEFAULT_LEVEL, DEFAULT_PRICING_TIERS, DEFAULT_PULL_REQUEST, DEFAULT_REVIEW_REPORT, DEFAULT_SIGNIFICANCE, DIVIDER_MARKS, DIVIDER_PATTERNS, DataTable, type DataTableProps, type DataTableSharedProps, type DataTableVirtualization, Decision, type DecisionOption, type DecisionProps, type Delta, type DeltaGround, type DeltaSignificance, type DeltaStatus, DeltaValue, type DeltaValueProps, DesignSandbox, type DiffHunk, type DiffLine, type DiffLineComment, type DiffLineKind, type DiffLineProps, type DiffRow, type DiffSign, DiffView, type DiffViewProps, Divider, type DividerProps, type DividerVariant, DocPager, type DocPagerProps, type DocPagerTarget, DocsHeader, type DocsHeaderProps, DocsLayout, type DocsLayoutProps, DocsLink, type DocsLinkProps, DocsLinkProvider, type DocsLinkProviderProps, type DocsNavItem, type DocsNavNode, DocsSidebar, type DocsSidebarProps, Drawer, type DrawerPlacement, type DrawerProps, DrawingSheet, type DrawingSheetProps, type Emphasis, EmptyState, type EmptyStateProps, ErrorSummary, type ErrorSummaryError, type ErrorSummaryProps, Event, type EvidenceStatus, type ExperimentItem, ExperimentsView, type ExperimentsViewProps, FILTER_OPERATORS, FILTER_OPERATOR_LABELS, FIXED_COLOURS, FREE_TEXT_KEY, Feature, FeatureGrid, type FeatureGridProps, type FeatureProps, type FieldProps, Fieldset, type FieldsetProps, FigureFrame, type FigureFrameProps, type FigurePalette, type FigureSurface, type FileChange, type FileChangeNode, FileChangeTree, type FileChangeTreeProps, type FileChangeView, type Filter, FilterBar, type FilterBarField, type FilterBarProps, type FilterOperator, type FilterParseResult, type Finding, type FixedColour, FlowDiagram, type FlowDiagramProps, type FlowNode, type FlowPathProps, type FlowRow, type FlowTone, type FormatBytesOptions, FreshnessIndicator, type FreshnessIndicatorProps, type FreshnessState, GanttChart, type GanttChartProps, type GanttItem, GitHubIcon, Glyph, type GlyphProps, type GlyphSetName, type Glyphs, HEADING_EMPHASIS, type HeadingLevel, Hero, type HeroProps, type Hue, type HueAgreementCheck, type HueRef, INK_WEIGHT, IdChip, type IdChipProps, type IncidentEvent, type IncidentEventKind, type IncidentSummary, IncidentTimeline, type IncidentTimelineProps, IndexedSection, type IndexedSectionProps, InlineAction, type InlineActionButtonProps, type InlineActionLinkProps, type InlineActionOwnProps, type InlineActionProps, type InlineActionTone, Input, type InputProps, type IntensityScale, type Intent, type KeyedChange, KeyedDiff, type KeyedDiffProps, type KeyedDiffRow, LATENCY_HEATMAP_VARIANTS, LATENCY_HISTOGRAM_VARIANTS, LEVELS, LOG_SEVERITIES, type LatencyBucket, type LatencyCell, type LatencyGrid, LatencyHeatmap, type LatencyHeatmapProps, LatencyHistogram, type LatencyHistogramProps, type LatencyPoint, type LatencySlo, Legend, type LegendProps, type LevelDefinition, Line, type LinkComponentProps, LinkProvider, type LinkProviderProps, LinkedInIcon, type LogEntry, type LogFieldValue, type LogFilter, type LogHighlightPart, type LogSeverity, LogViewer, type LogViewerProps, LoremIpsumPost, MAXIMUM_NEUTRAL_CHROMA, MEDIA, MEDIA_DEFINITIONS, MINIMUM_RATIO, MailIcon, type MdxComponents, type Medium, type MediumDefinition, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuRadioGroup, type MenuRadioGroupProps, MenuRadioItem, type MenuRadioItemProps, MenuSeparator, type MenuSeparatorProps, MetadataGrid, type MetadataGridCustomItem, type MetadataGridProps, type MetadataGridSeries, type Metric, type MetricDirection, MetricStrip, type MetricStripProps, type MetricTone, MobileNav, type MobileNavProps, Modal, type ModalProps, type Motion, NERD_GLYPHS, type NamedSocialIconProps, NerdIcon, type NerdIconAccent, type NerdIconName, type NerdIconProps, Node, type NodeProps, NotFoundPage, type NotFoundPageProps, NoteBlock, type NoteBlockProps, OBSERVABILITY_INCIDENT_WINDOW, ObservabilityConsole, type ObservabilityConsoleProps, Option, type OverlayAlign, type OverlaySide, PALETTE_HUES, PageHeader, type PageHeaderProps, PageTitle, type PageTitleProps, Pagination, type PaginationProps, Path, type Polarity, Popover, type PopoverProps, PricingGrid, type PricingGridProps, PricingTier, type PricingTierAccent, type PricingTierProps, Progress, type ProgressProps, Prose, type ProseProps, type ProvenanceItem, ProvenanceStrip, type ProvenanceStripProps, type PullRequestCheck, type PullRequestData, PullRequestPage, type PullRequestPageProps, type PullRequestState, RECOMMENDED_COLOURS, RECOMMENDED_COLOUR_CLASSES, RECOMMENDED_COLOUR_NAMESPACES, RECOMMENDED_COLOUR_PROPERTIES, RECOMMENDED_COLOUR_ROLES, RECOMMENDED_COLOUR_VARS, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RecommendedColourClass, type RecommendedColourNamespace, type RecommendedColourProperty, type RecommendedThemeColours, ReportDetails, type ReportDetailsProps, ReportDocument, type ReportDocumentProps, type ReportMetaItem, ReportSection, type ReportSectionProps, ResourceState, type ResourceStateComponent, type ResourceStateProps, type ResourceStateValue, type ResourceStatus, type ReviewColumn, type ReviewFileGroup, type ReviewMeasurementTable, type ReviewRecordTable, type ReviewReportData, ReviewReportPage, type ReviewReportPageProps, type ReviewValue, type ReviewerState, type Rgb, SAMPLE_BASELINE_COMMIT, SAMPLE_CALLGRAPH_HUNKS, SAMPLE_DUPLICATION_HUNKS, SAMPLE_METRICS_HUNKS, SEVERITY_ACCENTS, SLIDE_DECK_HOTKEYS, SLOTS, STATUS_APPEARANCE, STATUS_TONE_TEXT, SYSTEM_LEVEL, SaasLandingPage, type SaasLandingPageProps, type SectionAlign, type SectionColumns, SectionContainer, type SectionContainerProps, Select, type SelectOption, type SelectProps, type SelectionDevice, type SelectionDeviceCheck, ServerErrorPage, type ServerErrorPageProps, type ServiceEdge, type ServiceGraph, type ServiceGraphLayout, type ServiceGraphLayoutEdge, type ServiceGraphLayoutNode, type ServiceGraphLayoutOptions, type ServiceGraphPoint, ServiceMap, type ServiceMapProps, type ServiceNode, type ServiceNodeKind, type Severity, SeverityBadge, type SeverityBadgeProps, SiteFooter, type SiteFooterProps, SiteHeader, type SiteHeaderCollapse, type SiteHeaderProps, SiteLink, type SiteLinkProps, SiteNav, type SiteNavGroupItemProps, SiteNavItem, type SiteNavItemProps, type SiteNavLinkItemProps, type SiteNavOrientation, type SiteNavProps, Skeleton, type SkeletonProps, Slide, SlideDeck, type SlideDeckHotkey, type SlideDeckProps, type SlideProps, Slope, type SlopeItem, Slugger, SocialIcon, type SocialIconName, type SocialIconProps, Sparkline, type SparklineProps, Spinner, type SpinnerProps, StatCard, type StatCardAccent, type StatCardAppearance, type StatCardProps, type StatusAppearance, StatusMark, type StatusMarkProps, StatusPage, type StatusPagePresetProps, type StatusPageProps, type StatusTone, type StatusVocabularies, type StatusVocabulary, Step, type StepProps, type StepState, Steps, type StepsProps, type Surface, Swatch, type SwatchColumn, SwatchCompare, type SwatchCompareProps, SwatchGroup, type SwatchGroupProps, type SwatchProps, type SwatchRow, Switch, type SwitchProps, THEME_ATTRIBUTE, THEME_LEVELS, THEME_STORAGE_KEY, TIME_RANGE_PRESETS, TIME_SERIES_VARIANTS, TLDR, type TLDRProps, TOKEN_RULES, Table, type TableAppearance, TableBody, TableCaption, TableCell, type TableDensity, TableFooter, TableHead, TableHeader, TableOfContents, type TableOfContentsProps, TableRow, Tabs, type TabsFont, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, TabsTab, type TabsTabProps, type TabsVariant, Tag, type TagProps, TelemetryGauge, type TelemetryGaugeProps, type TelemetryMachineState, Term, TermGrid, type TermGridProps, type TermItem, Terminal, type TerminalProps, TextArea, type TextAreaProps, type TextHierarchyStep, type TextTone, type ThemeContextValue, type ThemeLevel, ThemeProvider, type ThemeProviderProps, TickerTape, type TickerTapeProps, type TimeCursorState, type TimeRange, TimeRangePicker, type TimeRangePickerProps, type TimeRangePreset, TimeRangeProvider, type TimeRangeProviderProps, type TimeRangeState, type TimeSeries, type TimeSeriesAnnotation, TimeSeriesChart, type TimeSeriesChartProps, type TimeSeriesColorStrategy, type TimeSeriesCurve, type TimeSeriesDensity, type TimeSeriesGrid, type TimeSeriesLegend, type TimeSeriesPoint, type TimeSeriesPointMarkers, type TimeSeriesThreshold, type TimeSeriesVariant, type TimeSeriesYDomain, type TimeSeriesYScale, Timeline, type TimelineEvent, type TimelineProps, type TimelineState, type ToastActionOptions, type ToastApi, type ToastIntent, type ToastOptions, ToastProvider, type ToastProviderProps, type TocEntry, type TokenRow, type TokenRule, TokenTable, type TokenTableProps, Tooltip, type TooltipProps, type TraceAttributeValue, type TraceModel, type TraceReplay, type TraceSpan, type TraceSpanInput, type TraceSpanStatus, TraceViewer, type TraceViewerProps, TraceWaterfall, type TraceWaterfallProps, TrackCard, type TrackCardProps, type TrackItem, type TrackItemStatus, TreeDiagram, type TreeDiagramProps, type TreeNode, type TrustStatus, type TypeStep, type TypeStepName, type UptimeStatus, UptimeStrip, type UptimeStripProps, type UseActiveHeadingOptions, type UseCopyToClipboardResult, type UsePolledResourceOptions, type UsePolledResourceResult, type UseTraceClockOptions, type UseTraceReplayOptions, VerdictBand, type VerdictBandProps, type VerdictTone, WEB_FLOOR, XIcon, accentVar, ansiScheme, apcaContrast, assertNever, auditContrast, auditHueAgreement, auditSelectionDevices, auditTextHierarchy, borderVar, bucketIndex, bucketPercentile, bucketTimes, buildTrace, childrenToText, clampToRange, cn, collectHeadings, composite, contrastRatio, countDiff, createAnchorHeading, deltaSignificance, deltaTrend, describeFilter, describeLogEntry, describeTraceSpan, diffAnchor, filterLogEntries, fontVar, formatAge, formatAlertDuration, formatBytes, formatClock, formatCount, formatDay, formatFilter, formatLatencyRange, formatRange, formatRangeDuration, formatRequests, formatServiceCount, formatServiceErrorRate, formatShare, formatTimeTick, formatTimestamp, formatTraceDuration, getRecommendedColours, getThemeInitScript, heatmapCells, highlightLogText, histogram, inLogRange, intensityLevel, intensityThresholds, isExternalHref, isMedium, isRecommendedColourClass, isThemeLevel, latencyBuckets, latencyExtent, latencyRowPosition, layoutServiceGraph, linearBuckets, logTicks, lookupField, matchFilters, matchLogEntry, matchTraceSpan, mdxComponents, nearestLogIndex, nextLevel, normaliseRange, parseColor, parseFilter, parseOtlpTrace, parseTraceDocument, parseUnifiedDiff, percentile, percentiles, presetRange, relativeLuminance, replayTrace, sameFilter, scanRules, scanTokenRules, semanticTokens, serviceEdgeMidpoint, serviceEdgePath, serviceGraph, severityAccent, shareAbove, slugify, sortAlerts, sortLogEntries, statusAppearance, summariseIncident, surfaceVar, textVar, timeTicks, trendTone, truncateId, tryParseFilter, useActiveHeading, useCopyToClipboard, useDocsLinkComponent, useIsCurrentHref, useLinkComponent, useOptionalTheme, useOptionalToast, usePolledResource, useTheme, useTimeCursor, useTimeRange, useToast, useTraceClock, useTraceReplay, visibleTraceSpans };