basalt-ui 2.25.0 → 2.27.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 (81) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/MIGRATING.md +227 -19
  3. package/configs/oxlint-basalt.json +1 -1
  4. package/configs/oxlint-plugin.js +3 -9
  5. package/configs/oxlint-plugin.test.ts +6 -0
  6. package/dist/charts/Bars.d.ts.map +1 -1
  7. package/dist/charts/Bars.js +37 -1
  8. package/dist/charts/ChartCard.d.ts +13 -5
  9. package/dist/charts/ChartCard.d.ts.map +1 -1
  10. package/dist/charts/ChartCard.js +12 -2
  11. package/dist/charts/Sparkline.d.ts.map +1 -1
  12. package/dist/charts/Sparkline.js +106 -10
  13. package/dist/charts/chart-box.module.css +123 -5
  14. package/dist/charts/chart-box.module.css.d.ts +3 -0
  15. package/dist/charts/chart-card.module.css +34 -0
  16. package/dist/charts/chart-card.module.css.d.ts +2 -0
  17. package/dist/charts/chart-legend.module.css +1 -16
  18. package/dist/charts/compile.d.ts +20 -0
  19. package/dist/charts/compile.d.ts.map +1 -1
  20. package/dist/charts/compile.js +99 -3
  21. package/dist/charts/legend.d.ts.map +1 -1
  22. package/dist/charts/legend.js +54 -71
  23. package/dist/charts/sparkline.module.css +13 -9
  24. package/dist/charts/state.d.ts +7 -0
  25. package/dist/charts/state.d.ts.map +1 -1
  26. package/dist/charts/state.js +17 -1
  27. package/dist/cli/shot/capture.d.ts +32 -3
  28. package/dist/cli/shot/capture.d.ts.map +1 -1
  29. package/dist/cli/shot/capture.js +17 -7
  30. package/dist/dashboard/meter-model.d.ts +19 -3
  31. package/dist/dashboard/meter-model.d.ts.map +1 -1
  32. package/dist/dashboard/meter-model.js +155 -13
  33. package/dist/dashboard/meter-parts.d.ts +4 -7
  34. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  35. package/dist/dashboard/meter-parts.js +130 -90
  36. package/dist/dashboard/meter.d.ts +1 -1
  37. package/dist/dashboard/meter.d.ts.map +1 -1
  38. package/dist/dashboard/meter.js +10 -7
  39. package/dist/dashboard/meter.module.css +55 -13
  40. package/dist/dashboard/meter.module.css.d.ts +1 -2
  41. package/dist/dashboard/section.d.ts +1 -2
  42. package/dist/dashboard/section.d.ts.map +1 -1
  43. package/dist/dashboard/section.module.css +8 -7
  44. package/dist/dashboard/stat-card.module.css +17 -0
  45. package/dist/dashboard/stat-strip.d.ts +9 -1
  46. package/dist/dashboard/stat-strip.d.ts.map +1 -1
  47. package/dist/dashboard/stat-strip.js +121 -27
  48. package/dist/dashboard/stat-strip.module.css +51 -3
  49. package/dist/dashboard/stat-strip.module.css.d.ts +4 -0
  50. package/dist/dashboard/visual-slot.d.ts +4 -0
  51. package/dist/dashboard/visual-slot.d.ts.map +1 -1
  52. package/dist/dashboard/visual-slot.js +2 -0
  53. package/dist/dashboard/widget-header.module.css +9 -0
  54. package/llms.txt +3 -2
  55. package/package.json +1 -1
  56. package/src/charts/Bars.tsx +50 -2
  57. package/src/charts/ChartCard.tsx +32 -5
  58. package/src/charts/Sparkline.tsx +166 -13
  59. package/src/charts/chart-box.module.css +123 -5
  60. package/src/charts/chart-box.module.css.d.ts +3 -0
  61. package/src/charts/chart-card.module.css +34 -0
  62. package/src/charts/chart-card.module.css.d.ts +2 -0
  63. package/src/charts/chart-legend.module.css +1 -16
  64. package/src/charts/compile.ts +153 -3
  65. package/src/charts/legend.tsx +33 -49
  66. package/src/charts/sparkline.module.css +13 -9
  67. package/src/charts/state.tsx +43 -1
  68. package/src/cli/shot/capture.ts +25 -9
  69. package/src/dashboard/meter-model.ts +248 -22
  70. package/src/dashboard/meter-parts.tsx +124 -69
  71. package/src/dashboard/meter.module.css +55 -13
  72. package/src/dashboard/meter.module.css.d.ts +1 -2
  73. package/src/dashboard/meter.tsx +22 -9
  74. package/src/dashboard/section.module.css +8 -7
  75. package/src/dashboard/section.tsx +1 -2
  76. package/src/dashboard/stat-card.module.css +17 -0
  77. package/src/dashboard/stat-strip.module.css +51 -3
  78. package/src/dashboard/stat-strip.module.css.d.ts +4 -0
  79. package/src/dashboard/stat-strip.tsx +162 -33
  80. package/src/dashboard/visual-slot.ts +5 -0
  81. package/src/dashboard/widget-header.module.css +9 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,60 @@
1
+ # [2.27.0](https://github.com/jkrumm/basalt-ui/compare/v2.26.0...v2.27.0) (2026-10-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * card facts gate by state, line and counted pending ghosts ([dcf6a5b](https://github.com/jkrumm/basalt-ui/commit/dcf6a5bcf77a9b10d530205ecbccd9755b726f93))
7
+ * ghost the S2 and S4 charts; cover the goal card ([955f1ab](https://github.com/jkrumm/basalt-ui/commit/955f1ab821d4935f6ab0765c1cf3b08b9d61941f))
8
+ * keep chart tooltips and slotted readouts inside their card ([0346925](https://github.com/jkrumm/basalt-ui/commit/0346925c0989dfbb386d1bc9c34ddab2876417f2))
9
+ * list and Meter cards take loading and empty state ([0296c2d](https://github.com/jkrumm/basalt-ui/commit/0296c2d4086acf33c4cef6c1db37604e60cc3e9e))
10
+ * load the meter and composition cards in their own shape ([112c07c](https://github.com/jkrumm/basalt-ui/commit/112c07ca99f700878350c999696a09d5c14a276f))
11
+ * meter captions drop at 390 instead of taking a second row ([10c1e48](https://github.com/jkrumm/basalt-ui/commit/10c1e48370e2fc471e59d6b90baa7122f319f2f5))
12
+ * pin the facts misuse, inline ghost union, before/now note ([2ea2af8](https://github.com/jkrumm/basalt-ui/commit/2ea2af8d42b7645e19d5dc4e365ca9d8606a2d0d))
13
+ * shot re-measures a crop and fails loud when it is empty ([74b6508](https://github.com/jkrumm/basalt-ui/commit/74b6508ad06731ccab8317481559edf71ecb677a))
14
+ * state each r3 figure and remedy once in S2–S4 ([f5f05d6](https://github.com/jkrumm/basalt-ui/commit/f5f05d6b78641c07585a3cda29d28f8a5f44cd19))
15
+ * strip visuals level on the drawn mark ([99f3ffc](https://github.com/jkrumm/basalt-ui/commit/99f3ffcfd65b585f483d187d865cb83cf9075b8d))
16
+ * the components table card ends at its error body ([3b40b3b](https://github.com/jkrumm/basalt-ui/commit/3b40b3b4e465cfaa81799e7ef1135b35a99dcef0))
17
+
18
+
19
+ ### Features
20
+
21
+ * compact legends never leave a key told apart by hue alone ([c314b43](https://github.com/jkrumm/basalt-ui/commit/c314b43584c7aa5526f258829ccd44da5d024ef7))
22
+ * meter labels never lost at 390, a gap between zone names ([afad8fb](https://github.com/jkrumm/basalt-ui/commit/afad8fbb794d4446586079b59cf6ea5134032b5c))
23
+ * one strip cell anatomy, visuals on a shared line ([8037453](https://github.com/jkrumm/basalt-ui/commit/803745335e527bdb1d37f4fab97fa55c58b8755c))
24
+
25
+ # [2.26.0](https://github.com/jkrumm/basalt-ui/compare/v2.25.0...v2.26.0) (2026-10-19)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * a rows-only strip cell loads its Meter, one-column groups keep their clamp ([02dcecf](https://github.com/jkrumm/basalt-ui/commit/02dcecf9c66a9a3ea7b62f23c8cd35af28027ad9))
31
+ * cap a Section summary Text only when it carries a size ([e5b4261](https://github.com/jkrumm/basalt-ui/commit/e5b42610ab05440c0d91019103382d2fe77fd430))
32
+ * cap legend entries, fold only for a freed line ([d212cc0](https://github.com/jkrumm/basalt-ui/commit/d212cc0d7441826f7dfba39ce58af73b14e9c31d))
33
+ * chart loading in the loaded shape, facts kept while pending ([529f6d1](https://github.com/jkrumm/basalt-ui/commit/529f6d1b1edd900b0e4af79e94158e7df8ab9f72))
34
+ * compact legends keep every series named ([6777c9f](https://github.com/jkrumm/basalt-ui/commit/6777c9fe671827834fdc5417d1b1bd799894af4c))
35
+ * count legend lines by centre, undo a fold that frees none ([93ed0f1](https://github.com/jkrumm/basalt-ui/commit/93ed0f17eec27136537adc2bb6c4ea9e73e90175))
36
+ * day footer states the cap share, facts stay in every state ([7d37d1e](https://github.com/jkrumm/basalt-ui/commit/7d37d1e649728450d448af0dccbcf4d00195b644))
37
+ * end list and Meter card states at their content ([1b7d279](https://github.com/jkrumm/basalt-ui/commit/1b7d2799e388f4c96d811e1c4e9fc10da2e56686))
38
+ * footer entries declare absent states, the Caution zone fits ([24e6197](https://github.com/jkrumm/basalt-ui/commit/24e6197aabae90161a05cfdf73030c874f7d441e))
39
+ * forecast caption falls back to the boundary before it drops ([33e7ec0](https://github.com/jkrumm/basalt-ui/commit/33e7ec0b4bdd9ff8d062668967b5c8c536b58c52))
40
+ * hold Section summary and ChartCard actions text at 11 ([35953f8](https://github.com/jkrumm/basalt-ui/commit/35953f87b01fcf4149e82acfd2c696d2708a4cfe))
41
+ * hosted readouts keep their separator and their line ([01ab899](https://github.com/jkrumm/basalt-ui/commit/01ab89942c832facf542ac6115abc3ab29d22b7a))
42
+ * layer the tooltip tint over the opaque surface ([981b506](https://github.com/jkrumm/basalt-ui/commit/981b50636ca048041b79df262cde25adceee350d))
43
+ * match the load card's conditional fill in its source test ([6cf6fed](https://github.com/jkrumm/basalt-ui/commit/6cf6fed5e6e9e03e76c1903e525a240d64a6e252))
44
+ * one probe outage wording, guard the table card against a width cap ([8d15b3d](https://github.com/jkrumm/basalt-ui/commit/8d15b3d0935f34fbba93e67e1aa52d9bba9a304b))
45
+ * one wording per gap and real causes in S2–S4 states ([eee772c](https://github.com/jkrumm/basalt-ui/commit/eee772c11344b087ddba4d9c6d46f70d52d2d313))
46
+ * pin the actions cap against a control and the Mantine contract ([f05ac74](https://github.com/jkrumm/basalt-ui/commit/f05ac7464fc704d0fdd0b83cab45ec91f2869f7a))
47
+ * size list skeletons to the loaded rows, end empty load card ([1a3e30d](https://github.com/jkrumm/basalt-ui/commit/1a3e30d433d4306c54fbd5759df978eceab68461))
48
+ * strip and Meter loading in the loaded shape ([45afdd8](https://github.com/jkrumm/basalt-ui/commit/45afdd879627e59ccbd4e743d8206cd003f3c40a))
49
+ * strip cells paint visual, footer and delta while loading ([0a88ef6](https://github.com/jkrumm/basalt-ui/commit/0a88ef61656d6a13f702faed977507d362b585a6))
50
+ * the borrow pass runs again in the one register ([9d7f079](https://github.com/jkrumm/basalt-ui/commit/9d7f079aa11821d4be71192381f98d58024be0ae))
51
+ * type the short-fallback layout cases ([ab5259e](https://github.com/jkrumm/basalt-ui/commit/ab5259ea56fe14132f5a8580d5a7c870dd6eee32))
52
+
53
+
54
+ ### Features
55
+
56
+ * promote card-inset to error ([f95068d](https://github.com/jkrumm/basalt-ui/commit/f95068de197a0c35a813e028752cdfcc2d432bb7))
57
+
1
58
  # [2.25.0](https://github.com/jkrumm/basalt-ui/compare/v2.24.0...v2.25.0) (2026-10-18)
2
59
 
3
60
 
package/MIGRATING.md CHANGED
@@ -66,18 +66,18 @@ There is one row per SURFACE, not per export, and a surface earns a row once any
66
66
  shipped lefthook preset both changed in 1.30.0 with no row that owned them — which is how a
67
67
  consumer read this index, found nothing, and diffed a KPI row that had silently gone 4-up → 2-up.
68
68
 
69
- | Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | 2.2.0 | 2.3.0 | 2.4.0 | 2.5.0 | 2.6.0 | 2.6.1 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.8.0 | 2.8.1 | 2.9.0 | 2.9.1 | 2.10.0 | 2.11.0 | 2.11.1 | 2.12.0 | 2.13.0 | 2.13.1 | 2.13.2 | 2.13.3 | 2.14.0 | 2.15.0 | 2.16.0 | 2.17.0 | 2.18.0 | 2.19.0 | 2.20.0 | 2.21.0 | 2.22.0 | 2.23.0 | 2.24.0 | 2.25.0 | Unreleased |
70
- | ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
71
- | **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | spacing, radius, type and the dense tier (§ 2.16.0) | — | — | — | — | — | — | — | — | — | — |
72
- | **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BandSpan.absentFraction` + `absentState` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `Lines` linear curve, `naming`, no lone-series legend, locale tooltip header, y gutter, `RefLine.labelPosition`, `StackedArea.fillOpacity` (§ Chart chrome) | — | error fallback `The request failed.` (§ State defaults) | — | — |
73
- | **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltProvider` embedded mode, `spotlight` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | expanded gutter 24 (§ 2.16.0) | — | — | light/outline Buttons ink, no status edges (§ 2.19.0) | — | — | — | — | — | — | — |
74
- | **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | dense 28 tier at a fine pointer (§ 2.16.0) | — | — | — | — | — | — | — | — | — | — |
75
- | **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
76
- | **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltDataTable` error title `Could not load rows` (§ State defaults) | — | — |
77
- | **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | card inset 12/16, `kpi` 22 / 500 (§ 2.16.0) | — | — | StatCard status dot, Meter/BarList refinements (§ 2.19.0) | — | plain `Meter` value bar fill muted (`tone="ink"` to opt out); `BarList` default `thin`, `variant="default"` → `inline` (§ 2.21.0) | — | — | `LoadingState` section skeleton, page spinner neutral (§ State defaults) | — | — |
78
- | **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
79
- | **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `doctor`: CSS + forced dropped subpaths, `oxlint-floor`, Start wiring (§ 2.8.0) | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
80
- | **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | `inline-spacing` steps, `card-inset` accepts both pairs (§ 2.16.0) | — | — | — | — | `series-palette` at `warn` (§ 2.21.0) | — | `series-palette` → `error` (§ Guards) | `raw-spacing`, `inline-spacing` → `error` (§ Guards) | — | — |
69
+ | Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | 2.2.0 | 2.3.0 | 2.4.0 | 2.5.0 | 2.6.0 | 2.6.1 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.8.0 | 2.8.1 | 2.9.0 | 2.9.1 | 2.10.0 | 2.11.0 | 2.11.1 | 2.12.0 | 2.13.0 | 2.13.1 | 2.13.2 | 2.13.3 | 2.14.0 | 2.15.0 | 2.16.0 | 2.17.0 | 2.18.0 | 2.19.0 | 2.20.0 | 2.21.0 | 2.22.0 | 2.23.0 | 2.24.0 | 2.25.0 | 2.26.0 | 2.27.0 | Unreleased |
70
+ | ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
71
+ | **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | spacing, radius, type and the dense tier (§ 2.16.0) | — | — | — | — | — | — | — | — | — | — | — | — |
72
+ | **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BandSpan.absentFraction` + `absentState` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `Lines` linear curve, `naming`, no lone-series legend, locale tooltip header, y gutter, `RefLine.labelPosition`, `StackedArea.fillOpacity` (§ Chart chrome) | — | error fallback `The request failed.` (§ State defaults) | — | — | — | — |
73
+ | **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltProvider` embedded mode, `spotlight` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | expanded gutter 24 (§ 2.16.0) | — | — | light/outline Buttons ink, no status edges (§ 2.19.0) | — | — | — | — | — | — | — | — | — |
74
+ | **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | dense 28 tier at a fine pointer (§ 2.16.0) | — | — | — | — | — | — | — | — | — | — | — | — |
75
+ | **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
76
+ | **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltDataTable` error title `Could not load rows` (§ State defaults) | — | — | — | — |
77
+ | **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | card inset 12/16, `kpi` 22 / 500 (§ 2.16.0) | — | — | StatCard status dot, Meter/BarList refinements (§ 2.19.0) | — | plain `Meter` value bar fill muted (`tone="ink"` to opt out); `BarList` default `thin`, `variant="default"` → `inline` (§ 2.21.0) | — | — | `LoadingState` section skeleton, page spinner neutral (§ State defaults) | — | — | — | — |
78
+ | **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
79
+ | **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `doctor`: CSS + forced dropped subpaths, `oxlint-floor`, Start wiring (§ 2.8.0) | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
80
+ | **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | `inline-spacing` steps, `card-inset` accepts both pairs (§ 2.16.0) | — | — | — | — | `series-palette` at `warn` (§ 2.21.0) | — | `series-palette` → `error` (§ Guards) | `raw-spacing`, `inline-spacing` → `error` (§ Guards) | — | `basalt/card-inset` → `error` (§ Guards) | — | — |
81
81
 
82
82
  ---
83
83
 
@@ -1046,6 +1046,189 @@ The `basalt-ui/router-tanstack` subpath is **removed** in 2.x, not moved: an imp
1046
1046
  _Nothing yet. Author the next section under this heading as `## Unreleased — <title>`; the
1047
1047
  release renames it and opens a new one here._
1048
1048
 
1049
+ ## 2.27.0 — Wave 38 card facts, Wave 39 argo's friction IV
1050
+
1051
+ ### Card facts and the pending ghost (Wave 38)
1052
+
1053
+ No export is removed. `ChartCard` learns a pending plot's shape and documents the state contract.
1054
+
1055
+ - **Facts show only at rest.** A card's `facts` and basis `subtitle` render when `state` resolves to ready; pending draws the facts skeleton, empty and error draw neither, in every `placeholderHeight` mode. The card knows a state only through its `state` prop. Opt-out: omit `facts` to keep a card state-agnostic.
1056
+
1057
+ | Before | Now |
1058
+ | ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
1059
+ | Facts render above the body's own loading or empty line (`Meter loading`, `BarList emptyText`) | Also pass `state={{ pending: true }}` / `state={{ empty }}` to the card; the facts hide or skeleton |
1060
+
1061
+ - **`ChartCard ghost`** (new optional prop): `'bars'` (default), `'line'` for a line or area chart, or a number for the bar count when the loaded data length is known. Opt-out: omit it for the previous eight-bar ghost.
1062
+
1063
+ ### Compact legends name every key (Wave 39)
1064
+
1065
+ No export changes. Below 480px the legend no longer folds zone / reference entries into `+N`: every entry is named at every width, the row wraps between entries (series, then overlays, then references) and an entry never wraps mid-label. `foldLegend`, `--bc-fold` and the `+N` element are deleted (a deliberate reversal of the Wave 38 reference fold).
1066
+
1067
+ | Before | Now |
1068
+ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------ |
1069
+ | At 390, `role: 'reference'` entries (zone keys, reference lines) fold into `+2: …` while wrapped | Every entry shows; the row takes the extra lines |
1070
+ | `[data-legend-more]` / `[data-legend-folded]` exist in the legend markup | Gone: drop any selector or test that reads them |
1071
+
1072
+ Opt-out: `legend: false` (still absolute), or remove the legend-only entries (a zone's `legend`, a refLine's `legend`) you do not want named.
1073
+
1074
+ ### One strip cell anatomy (Wave 39)
1075
+
1076
+ No export is added or removed. A `StatGroup variant="strip"` cell is now a head (caption line, qualifier, value row) over its readings, and a row's visuals share one drawn top.
1077
+
1078
+ | Before | Now |
1079
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1080
+ | A Meter, a Sparkline and Bars in one row sat at different heights (a wrapped qualifier, a delta, the Sparkline's readout line). | The visuals of one row put their drawn top on one line: a visual cell with a shorter head grows its head's `min-height`. A longer qualifier still pushes only its own value down (D40). |
1081
+ | A cell without a visual, a footer `under` and the odd-count phone rule were untouched by a sibling's height. | Unchanged: only cells that have a `visual` are levelled, so a footer still hugs its value and no sibling is stretched. |
1082
+ | A `rows` entry's `visual` had no host: a zoned `Meter` in a row printed its reading at the marker, and a Sparkline readout stacked over its own plotted line. | A row visual is hosted like the cell visual. A zoned `Meter` in a row no longer repeats the row's value at its marker; a Sparkline's hover chip sits above its plot, never over it. Row height is unchanged: a Sparkline row keeps the slot padding it always had. |
1083
+
1084
+ Opt-outs: none for the levelling (it only ever adds head height to a visual cell); omit `visual` on a cell to keep it out. A zoned row `Meter` keeps its marker reading with `reading` set on the `Meter` (the prop overrides the host).
1085
+
1086
+ ### Meter labels at 390 (Wave 39)
1087
+
1088
+ No export is removed. A `Meter` zone name or tick label no longer drops for width. A zone name is tried in this order: its full name on the first label row (the names beside it, the holding one included, slide inside their spans to make room, each keeping the gap step), its full name on a **second label row** directly under the first, its `short` on the first row, its `short` on the second, then hidden. A tick label takes the second row before it hides. A second-row label is centred on its span or mark, clamped inside the track, and keeps the gap step from the other labels on that row. The row exists only while a label stands on it; a Meter whose labels all fit keeps its single `1.25em` row and its loading skeleton. The caption row (start figure, tick captions, pace/forecast) keeps its drop order.
1089
+
1090
+ | Before | Now |
1091
+ | -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
1092
+ | A zone name too wide for its span (and its `short`) was hidden: argo's Garmin ACWR meter lost `Caution` at 390 | `Caution` stands on a second row; the other names stay on the first |
1093
+ | Zone names only had to not touch: `OptimalCaution Danger` | Adjacent names keep the gap step; at 1440 (a 203 px cell) all four ACWR names stay full on ONE row, the holding name sliding left |
1094
+ | A name that did not fit fell back to its `short` on the first row, and every sibling's `short` followed | The full name goes on the second row first; the `short` register only starts when no full name can hold either row |
1095
+ | A tick label wider than the room beside its mark, or one touching another label, was hidden | It is shifted inside the track, or stands on the second row (argo's `abandoned at 7 d` at any cell width and reading) |
1096
+
1097
+ Opt-out: give the zone a `short` that fits its span (it is used once the full name holds neither row), or drop the tick's `label` (the mark stays, named in the described-by text). A Meter that needs no second row renders as before. One that now shows a second row is one line (`1.25em`) taller at that width: a card or strip cell that pins the Meter's height should not. At 115 px of track argo's four ACWR zones all show (one a `short` or on the second row); below that the last label hides and stays in the described-by text.
1098
+
1099
+ ### Tooltips and readouts inside the card (Wave 39)
1100
+
1101
+ No export is removed or added; four defaults move.
1102
+
1103
+ - **A chart tooltip stays inside its card on both axes.** A tooltip taller than the room above its anchor used to cross the card's top (over the section heading); it now flips to the other side of its anchor, slides in when neither side fits, and only a tooltip taller than the card overflows, aligned to the card's top. In a card at least 192px wide it also grows to its content, up to the card's width, before a label wraps. Narrower cards (a ~120px strip cell) keep the engine's width and horizontal placement. Opt-out: render the chart outside a `ChartCard`, strip cell or `StatCard` (no card ancestor keeps the engine's viewport placement).
1104
+
1105
+ | Before | Now |
1106
+ | --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
1107
+ | A tall tooltip crossed the card top; its width was the room right of `left` | It flips or slides inside the card, and is as wide as its content (up to the card) |
1108
+
1109
+ - **A slotted `Bars` tooltip is the one-line chip.** A `Bars` in a `StatCard` slot or a strip cell opened the engine's titled panel below the plot, hanging out of a cell that sat at the card floor. It keeps the engine's tooltip (hit-test, accessible text, rows) but renders it as the hosted Sparkline's chip: the first row's figure, then the header (`48 pages/h · Mistborn`), one line high (`--basalt-spark-readout-h`), anchored flush above the plot in the line the cell reserves, centred on the bin and held inside the cell; an overlong header ends in an ellipsis. Further rows are hidden in a slot (a chart that needs them belongs in a `ChartCard`). A bin that sums to zero draws no bar, so a baseline marker shows which bin the chip names while it is hovered. Opt-out: render the `Bars` outside the slot to get the card tooltip.
1110
+
1111
+ | Before | Now |
1112
+ | --------------------------------------------------------- | ------------------------------------------------------------------ |
1113
+ | Titled panel under the plot, ~18px below the card at 390 | One-line chip in the reserved line above the plot, inside the cell |
1114
+ | A zero bin: the readout named it, nothing in the plot did | A baseline marker on the hovered empty bin |
1115
+
1116
+ - **Tooltip labels wrap between words.** A label no longer breaks inside a token (`Load (7)` was `Load` / `7)`, `TE 2.1/0.4` could split mid-figure); a single token wider than the card overflows it. Opt-out: `.ts-chart-tooltip__row > span:nth-child(2) { overflow-wrap: anywhere }` in the app's CSS.
1117
+
1118
+ - **A short bare `Sparkline` keeps the one-line readout inside its box.** A line `Sparkline` under 36px outside a `StatCard` slot or a hosted strip visual used to put its chip beside the point (over the line) and stack it into two lines when the box was narrow. The chip now slides with the point like a hosted one, stays one line, and takes the in-box band, top or bottom, farthest from the plotted line. It never leaves the box. Opt-out: host it (a `StatCard` slot; a strip visual) to get the readout line above the plot.
1119
+
1120
+ | Before | Now |
1121
+ | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
1122
+ | `<Sparkline height={28} />` bare: chip beside the point, on the line, two lines when narrow | chip slid with the point, one line (`48 bpm · 19 Oct`), in the band farthest from the line |
1123
+
1124
+ ## 2.26.0 — Wave 38, argo's friction III
1125
+
1126
+ ### Chart card loading (Wave 38)
1127
+
1128
+ No export is removed or added. A pending `ChartCard` now loads in its loaded shape.
1129
+
1130
+ | Surface | Before | Now |
1131
+ | ----------------------------------------------- | ------------------------------------------- | -------------------------------------------------------------------------------- |
1132
+ | `ChartCard` with `facts`, `state={{ pending }}` | the facts row was dropped: 40–70 px shorter | a skeleton facts row (figure bar, basis line if `subtitle`) at the loaded height |
1133
+ | A pending chart body (`ChartPlaceholder`) | a near-invisible blank shimmer plate | a faint plot skeleton: an axis baseline and bar ghosts in a neutral tone |
1134
+
1135
+ The stale figure is never shown while pending. Error and empty keep their rule: no facts, and
1136
+ `placeholderHeight="content"` ends at the content. The plot skeleton is skipped for a `compact`
1137
+ placeholder (`Sparkline`).
1138
+
1139
+ Opt out: pass `state` only once the data settles, or draw the loading yourself as the card's
1140
+ `children` with `placeholderHeight="content"` (the card then renders `children` while pending). The
1141
+ facts skeleton follows `facts`; omit `facts` while pending to drop it.
1142
+
1143
+ ### Strip and Meter loading (Wave 38)
1144
+
1145
+ No export is removed or added. A loading state is the loaded shape; two other defaults move with it.
1146
+
1147
+ | Surface | Before | Now |
1148
+ | --------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1149
+ | `Meter loading` (bar) | one track and one or two caption lines | the loaded rows (figure row above, zone-name row, reading row, caption row, part captions), text painted as skeleton, at the loaded height ±2 px |
1150
+ | Strip cell `loading` | a value bar alone; a `visual` and `footer` showed as loaded | the value bar, the `visual` slot and the `footer` line at their loaded height; the visual and footer are laid out hidden under a skeleton |
1151
+ | Forecast caption (committed/forecast `Meter`) | begins at the spent/forecast boundary | ends at the forecast fill end (clamped inside the track); if that collides it starts at the boundary instead, and drops only if neither fits; the reading stays at the committed end |
1152
+ | `StatGroup` hero size in a container under 480 px (a phone, an aside) | a card spanning the row rendered 22, its two-column row-mates 16 | one size for every card of the group in the two-column state (16) |
1153
+
1154
+ - **Pass the loaded structure.** A Meter keeps its rows from its own props (`ticks`, `zones`, `target`,
1155
+ `endCaption`, `segments`), so pass them while loading as at rest; the reading may be `null`. A strip
1156
+ cell keeps a visual or footer only when you pass it: pass the same `visual` and `footer` as at rest
1157
+ (an empty series is fine). A `Meter` in a loading cell's `visual` loads itself; any other visual is
1158
+ covered by one skeleton bar. Give `delta` too, or a delta that wraps under the value is not reserved.
1159
+ - **The ring is unchanged:** one skeleton disc.
1160
+ - Opt out of the forecast anchor: none (the old anchor put "Forecast" about 100 px from the fill it
1161
+ names); `readingAt="start"` keeps the pre-2.24 anchor at the boundary.
1162
+ - Opt out of the shared hero size: set `--basalt-stat-group-figure` (a length, e.g. `var(--vx-text-kpi)`) on the
1163
+ `StatGroup` or a wrapper; it replaces the group's two-column size.
1164
+
1165
+ ### Compact legends keep series (Wave 38)
1166
+
1167
+ No export is removed or added. 2.24.0's compact legend folded series names into `+N`; this restores them.
1168
+
1169
+ | Surface | Before (2.24) | Now |
1170
+ | --------------------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
1171
+ | Series in a compact legend | one row; any entry that did not fit folded into `+N`, so seven lines at 390 read by hue | every series stays named at every width; if the series alone overfill a row, it wraps |
1172
+ | Zone / reference entries | first in the DOM and the row; the last entries folded | after the series; they alone fold into `+N` (last first) until the key is one row |
1173
+ | An entry wider than the row | n/a (the compact row clipped it) | the label ellipsizes at the row's width, full name in `title` |
1174
+ | An entry's text | could wrap inside itself (`Low (< 0.8)` over three lines, `Push` / `(≥70)`) | never wraps: a threshold stays with its name |
1175
+ | Legend order at every width | zones and references before the series | series first, then zones and references; DOM order is the visual order |
1176
+ | A bottom-placed `Bars` key | labels wrapped inside their column (`Under 1 % of` / `calls`) | each label is one line; the row wraps between entries when it must |
1177
+
1178
+ The 2.24 premise ("the title and tooltip name the series") is false for a multi-line chart: argo's
1179
+ strength lifts and weekly volume (`+5` / `+3`), relative progression (`+2`), readiness (`+1`) and the sky
1180
+ panorama (`+3`) were told apart by hue alone. A chart with only series therefore never shows a `+N`, and a reference folds only when it frees a line the series row would not need.
1181
+
1182
+ The fold is measured in the browser, so the server-rendered first paint shows the unfolded key until hydration.
1183
+
1184
+ Opt-out: `legend: false` still drops the key, and `naming="endLabels"` names the lines on the plot. To
1185
+ keep a long zone name off the key, drop `ZoneSpec.legend` on that zone.
1186
+
1187
+ ### Section subtitle and summary sizes (Wave 38)
1188
+
1189
+ **What 2.24.0 / 2.25.0 got wrong:** the summary cap was written as a `font-size` rule on
1190
+ `.summary > .mantine-Text-root`, which outranks a consumer's own class. argo's reading backlog sets
1191
+ its summary `Text` to 13 through a class, got 11 instead, and the shell held four sizes (title 15,
1192
+ rows 13, row meta 12, summary 11). The `Section` subtitle itself was at 12 (`xs`) as promised;
1193
+ argo's "subtitle" report was this summary line. Separately, a `<Text size="xs">` caption in a
1194
+ `ChartCard` `actions` slot stayed at 12 beside the chart's 11 ticks: argo's strength / load / balance
1195
+ shells held four sizes.
1196
+
1197
+ **Now:**
1198
+
1199
+ - The cap pins `--text-fz`, the variable `Text` reads, `!important`: a `Text` with a `size`, or none,
1200
+ in `Section summary` renders at 11; a `Text` sized by your own class keeps that size.
1201
+ - A `<Text size="xs">` in a `ChartCard` `actions` slot renders at 11, the chart text step. `sm` and
1202
+ `md` figures are untouched.
1203
+
1204
+ **Opt out:** size the `Text` with your own class, or replace the `Text` with a plain `span` (summary) / give
1205
+ it another `size` (actions).
1206
+
1207
+ | Shell (measured, 1440 and 390) | 2.24.0 / 2.25.0 | Now |
1208
+ | ------------------------------------------------------------ | ----------------- | ------------ |
1209
+ | `Section` head: title, `subtitle`, `count`, body | 12 / 13 / 15 | 12 / 13 / 15 |
1210
+ | reading backlog: class-sized summary over rows | 11 / 12 / 13 / 15 | 12 / 13 / 15 |
1211
+ | strength / load / balance: `ChartCard` `actions` xs captions | 11 / 12 / 13 / 15 | 11 / 13 / 15 |
1212
+ | strength diagnostics: `xs` summary | 11 / 13 / 15 | 11 / 13 / 15 |
1213
+
1214
+ ### Hosted readouts and tooltips (Wave 38)
1215
+
1216
+ No export is removed or added. Three chart readouts keep what they print and stay where they belong.
1217
+
1218
+ | Surface | Before | Now |
1219
+ | ------------------------------------------ | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
1220
+ | `Sparkline` readout, tight | the " · " separator and its spaces collapsed (`62 bpm· 12 Oct`) | the separator and its air never drop; tightening only shrinks the chip's padding |
1221
+ | `Sparkline` readout, stacked (hosted line) | value over date at the plot's top, over the plotted line | value over date placed where the line is not: the plot's top or bottom, beside the cursor, else hung below the plot |
1222
+ | Slotted `Bars` tooltip, `Sparkline` chip | `--vx-tooltip-bg` (96% in dark): the card's footer ghosted through | the tooltip tint (`--vx-tooltip-bg`, or `--basalt-tooltip-surface`) layered over the opaque `--vx-surface-elevated`, both schemes |
1223
+ | Chart tooltip at the first or last point | placed against the viewport: it opened past the card's edge, over the neighbouring card | slid back inside its card (`ChartCard`, `StatCard`, strip cell) when the card is wide enough for it |
1224
+ | Tooltip rows | the label column was one line with an ellipsis, so a figure in a label ended in `…` | the label wraps at word breaks; the figure column never wraps or truncates |
1225
+
1226
+ Opt out: tint the tooltip and the readout chip with `--basalt-tooltip-surface` (a consumer's
1227
+ `tooltipBg` palette entry is honoured the same way); either is layered over the elevated surface, so
1228
+ the result stays opaque. `--basalt-spark-readout-lift: 0` still puts a one-line chip back in the
1229
+ plot. The card clamp has no switch: render the chart outside a card and the viewport placement
1230
+ stands.
1231
+
1049
1232
  ## 2.25.0
1050
1233
 
1051
1234
  _Nothing to migrate in this release._
@@ -1197,11 +1380,12 @@ No export is removed or renamed; one prop is added and two defaults move.
1197
1380
  - **The compact legend is one row, and a zone-named chart has one.** Before: below 480px of chart width the key
1198
1381
  wrapped to as many rows as it had entries (five entries, two rows), so argo dropped it with
1199
1382
  `legend: false` and ACWR, recovery and stress read by hue alone at 390. Now: a chart with two or more legend
1200
- entries shows ONE row there. The zone / reference entries (which hue alone cannot name) lead, the series
1201
- follow (the title and tooltip name those), and what does not fit folds into a `+N` chip whose `title` and
1202
- hidden text list the folded names. From 480px up the key wraps and shows every entry, but the zone / reference
1203
- entries now come BEFORE the series at every width (the DOM order is the compact row order; before they
1204
- followed the series). An explicit `legend: false`
1383
+ entries shows a compact key there, and what does not fit folds into a `+N` chip whose `title` and hidden text
1384
+ list the folded names. **Superseded in the next minor** (`### Compact legends keep series`): this release
1385
+ folded SERIES names too and put the zone / reference entries first, on the premise that "the title and tooltip
1386
+ name the series". That premise is false for a multi-line chart, where the series are told apart by the legend
1387
+ alone; the fold now takes zone / reference entries only and the series lead. From 480px up the key wraps and
1388
+ shows every entry. An explicit `legend: false`
1205
1389
  still drops the legend at every width; delete the `compact && { legend: false }` workaround to take the new
1206
1390
  default.
1207
1391
  - **`ZoneSpec.legend: { label, mark?, color? }`** names a band in the legend, so a zone chart needs no always-`null`
@@ -1230,9 +1414,11 @@ No export is removed or renamed; one prop is added and two defaults move.
1230
1414
  (12). argo's strength diagnostics shell then counted four sizes: title 15, chart-card title 13,
1231
1415
  summary 12, chart ticks and legend 11.
1232
1416
 
1233
- **Now:** that text renders at 11 (the chart text step) whatever its `size`, so the shell is 15, 13, 11. Only a direct `Text` child of the summary slot is capped; a bare `Text` nested inside a `Group` keeps the size it asks for.
1417
+ **Now:** a `Text` that is a direct child of the summary slot renders at 11 (the chart text step),
1418
+ sized by a `size` prop or not. A `Text` sized by your own class keeps that size (see "Section
1419
+ subtitle and summary sizes" below). A bare `Text` nested inside a `Group` keeps the size it asks for.
1234
1420
 
1235
- **Opt out:** wrap the text in a `<span>` or a `Group`.
1421
+ **Opt out:** replace the `Text` with a plain `<span>`, wrap it in a `Group`, or size it with your own class.
1236
1422
 
1237
1423
  ### Empty cells and Meters (Wave 38)
1238
1424
 
@@ -1298,6 +1484,28 @@ predate 2.16 and meet both rules on their next bump.
1298
1484
  Opt-out: `"basalt": { "severity": { "raw-spacing": "warn", "inline-spacing": "warn" } }` keeps both a
1299
1485
  warning; `"basalt": { "exemptRules": { "inline-spacing": ["<path>"] } }` silences one for a path.
1300
1486
 
1487
+ `basalt/card-inset` is now `error` in the shipped preset (`warn` since 2.16.0; the redundant
1488
+ `py="sm" px="md"` pair class since 2.20.0). It fails an explicit `py="sm" px="md"` pair on a `Card`
1489
+ (the theme owns the 12/16 inset) and a partial inset. Delete the pair; for a flush card use
1490
+ `variant="flush"` or `Card.Section`; for a deliberate exception write
1491
+ `{/* theme-allow card-inset — reason */}`. Measured before flipping: argo already runs it at
1492
+ `error` with 0 findings.
1493
+
1494
+ Opt-out: in the consumer's `.oxlintrc.json` set `"basalt/card-inset": "warn"`.
1495
+
1496
+ ### Footer shot states and zone names (Wave 38)
1497
+
1498
+ No export is removed or added. `StatStripFooterEntry` gains an optional `shotAbsent`, and a zoned `Meter` names more of its zones.
1499
+
1500
+ | Surface | Before | Now |
1501
+ | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1502
+ | `StatStripFooterEntry` | no `shotAbsent`: a footer entry production omits in a state (argo's budget poller line under `empty`) was recorded by `shot` as an `error` ("anchor absent in this state") | `shotAbsent?: readonly StatStripShotState[]` on the entry emits `data-shot-absent` on its `strip-footer-<key>` anchor and replaces the strip's `shotAbsent` for that entry, as a cell's does |
1503
+ | `Meter` zone names | a name wider than its own span hid or fell to its `short` even with free room beside it (argo's ACWR `Caut.` at 1440) | the zone names beside it slide inside their own spans and it takes the gap, centre kept in its span: the full name shows wherever the row has room, then the `short`, then nothing. The holding zone, ticks and the one-register rule are unchanged |
1504
+
1505
+ A row that is genuinely too narrow still hides a name (argo's ACWR at 390 has 22px where `Caut.` needs 25); the name stays in the described-by text.
1506
+
1507
+ Opt-out: none for the zone names; a zone that must keep to its span sets a `short` that fits it, and a page that does not want a footer entry's shot anchor omitted declares no `shotAbsent`.
1508
+
1301
1509
  ## 2.23.0 — Wave 37, argo's friction II
1302
1510
 
1303
1511
  No export is removed. `MeterTick` gains an optional `caption`; five Meter defaults move.
@@ -3,7 +3,7 @@
3
3
  "rules": {
4
4
  "basalt/no-raw-font-size": "error",
5
5
  "basalt/raw-size-literal": "error",
6
- "basalt/card-inset": "warn",
6
+ "basalt/card-inset": "error",
7
7
  "basalt/chart-in-raw-surface": "error",
8
8
  "basalt/shadow-basalt-export": "error",
9
9
  "basalt/hand-rolled-shell": "error",
@@ -613,7 +613,7 @@ function attrValue(attr) {
613
613
  return unwrapExpressionContainer(attr.value)
614
614
  }
615
615
 
616
- // Ships: warn (grace → 2.26.0)
616
+ // Ships: error
617
617
  const cardInset = {
618
618
  meta: {
619
619
  type: 'suggestion',
@@ -4216,7 +4216,7 @@ const routeViewTransition = {
4216
4216
 
4217
4217
  /**
4218
4218
  * Plugin rules still inside their grace minor — `warn` in the shipped consumer preset, `error`
4219
- * repo-locally. This is the plugin's counterpart to `src/guard`'s `GRACE_PERIOD_KINDS`, and it
4219
+ * repo-locally. Empty since 2.26.0: `card-inset` (since 2.16.0), the last tenant, promoted. This is the plugin's counterpart to `src/guard`'s `GRACE_PERIOD_KINDS`, and it
4220
4220
  * exists because its ABSENCE is what let three rules sit at `warn` for up to twelve minors with
4221
4221
  * nothing tracking them: `configs/oxlint.json` is generated and its top-level keys are fixed by
4222
4222
  * oxlint's own parser, so the ledger cannot live there.
@@ -4236,13 +4236,7 @@ const routeViewTransition = {
4236
4236
  *
4237
4237
  * @type {Record<string, GraceEntry>}
4238
4238
  */
4239
- export const PLUGIN_RULE_GRACE = {
4240
- 'card-inset': {
4241
- since: '2.16.0',
4242
- promote: '2.26.0',
4243
- why: 'Tightened in 2.16.0: only py="sm" px="md" together (or neither) passed. Inverted in 2.20.0 (Wave 35): the theme owns the 12/16 inset, so the pair is now a "redundant" finding and "neither" is the idiom; flush is variant="flush" or Card.Section. The redundant pair is a NEW finding class first shipping in 2.20.0, so consumers get the full grace again: promote moved 2.24.0 → 2.26.0.',
4244
- },
4245
- }
4239
+ export const PLUGIN_RULE_GRACE = {}
4246
4240
 
4247
4241
  // ── Plugin export ───────────────────────────────────────────────────────────────────────────────
4248
4242
 
@@ -1535,6 +1535,12 @@ describe('PLUGIN_RULE_GRACE', () => {
1535
1535
  const graceIds = graceEntries.map(([id]) => id)
1536
1536
  const shippedBasaltIds = Object.keys(shipped.rules).filter((id) => id.startsWith('basalt/'))
1537
1537
 
1538
+ // Empty since 2.26.0 (`card-inset`, the last tenant, promoted). The per-entry tests below run
1539
+ // zero assertions on an empty ledger; the gate itself is proven on synthetic ledgers above.
1540
+ it('the ledger is empty (card-inset, its last tenant, promoted at 2.26.0)', () => {
1541
+ expect(graceIds).toEqual([])
1542
+ })
1543
+
1538
1544
  // The mechanism whose ABSENCE let three rules sit at `warn` for up to twelve minors with nothing
1539
1545
  // tracking them. Deleting a ledger entry IS the promotion, and this test makes flipping the
1540
1546
  // shipped level part of the same commit.
@@ -1 +1 @@
1
- {"version":3,"file":"Bars.d.ts","sourceRoot":"","sources":["../../src/charts/Bars.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAMzC,OAAO,KAAK,EACV,mBAAmB,EAEnB,WAAW,EACX,MAAM,EAGP,MAAM,SAAS,CAAA;AAEhB,oDAAoD;AACpD,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,IAAI,CAC3B,WAAW,CAAC,CAAC,CAAC,EACd,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,G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AAY,CAqFvF"}
@@ -1,5 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { barY } from "@tanstack/charts/bar";
3
+ import { dot } from "@tanstack/charts/dot";
3
4
  import { group } from "@tanstack/charts/group";
4
5
  import { stack } from "@tanstack/charts/stack";
5
6
  import { useCallback, useContext, useMemo } from "react";
@@ -9,6 +10,7 @@ import { VX } from "../tokens/index.js";
9
10
  import { emphasis, lineMark } from "./marks.js";
10
11
  import { rowX } from "./types.js";
11
12
  const DEFAULT_BAR_OPACITY = 0.85;
13
+ const EMPTY_BIN_R = 2;
12
14
  const SHADE_FLOOR = 0.4;
13
15
  function shadeSharedColors(bars, barOpacity) {
14
16
  if (barOpacity !== void 0) return bars;
@@ -28,12 +30,45 @@ function guardLogStack(layout, onLog) {
28
30
  if (!warnedLogStack) console.error(message);
29
31
  warnedLogStack = true;
30
32
  }
33
+ function emptyBinTicks(rows) {
34
+ const sums = /* @__PURE__ */ new Map();
35
+ for (const row of rows) {
36
+ const key = String(row.x instanceof Date ? row.x.getTime() : row.x);
37
+ const entry = sums.get(key) ?? { row, sum: 0, values: 0 };
38
+ if (row.y !== null && Number.isFinite(row.y)) {
39
+ entry.sum += Math.abs(row.y);
40
+ entry.values += 1;
41
+ }
42
+ sums.set(key, entry);
43
+ }
44
+ const empty = [...sums.values()].filter((e) => e.values > 0 && e.sum === 0).map((e) => e.row);
45
+ if (empty.length === 0) return [];
46
+ return [
47
+ dot(empty, {
48
+ id: "empty-bins",
49
+ x: rowX,
50
+ y: () => 0,
51
+ r: EMPTY_BIN_R,
52
+ fill: VX.muted,
53
+ fillOpacity: 0,
54
+ states: [{ when: { focus: "x" }, style: { fillOpacity: 1 } }]
55
+ })
56
+ ];
57
+ }
58
+ function floorIsZero(y) {
59
+ if (y?.scale === "log") return false;
60
+ const domain = y?.domain;
61
+ if (Array.isArray(domain)) return domain[0] <= 0 && domain[1] >= 0;
62
+ if (typeof domain === "function") return false;
63
+ return (y?.autoMinCeil ?? 0) <= 0;
64
+ }
31
65
  function Bars(props) {
32
66
  const { bars: given, lines, layout = "stacked", barOpacity, ...rest } = props;
33
67
  const bars = useMemo(() => shadeSharedColors(given, barOpacity), [given, barOpacity]);
34
68
  const sharedColor = bars.some((b, i) => bars.findIndex((o) => o.color === b.color) !== i);
35
69
  guardLogStack(layout, bars.length > 0 && rest.y?.scale === "log");
36
70
  const sample = rest.data[0];
71
+ const zeroFloor = floorIsZero(rest.y);
37
72
  const bare = useContext(VisualSlotContext) !== null;
38
73
  const series = useMemo(
39
74
  () => [
@@ -80,13 +115,14 @@ function Bars(props) {
80
115
  layout: layout === "grouped" ? group({ padding: 0.1 }) : stack({ order, ...layout === "normalized" && { offset: "normalize" } })
81
116
  })
82
117
  );
118
+ if (bare && zeroFloor) out.push(...emptyBinTicks(rows));
83
119
  for (const s of plot.visible) {
84
120
  if (barKeys.has(s.key)) continue;
85
121
  out.push(lineMark(plot, s));
86
122
  }
87
123
  return out;
88
124
  },
89
- [bars, layout, barOpacity, sharedColor]
125
+ [bars, layout, barOpacity, sharedColor, bare, zeroFloor]
90
126
  );
91
127
  return /* @__PURE__ */ jsx(
92
128
  CartesianRung,
@@ -33,9 +33,13 @@ type ChartCardBaseProps = BasaltProps & SlotStylesProps<ChartCardSlot> & {
33
33
  deltaPolarity?: DeltaPolarity | undefined;
34
34
  /** A mono count tag after the title. */
35
35
  count?: number | undefined;
36
- /** Right-aligned controls. */
36
+ /** Right-aligned controls. A `<Text size="xs">` caption here renders at 11 (the chart-text step,
37
+ * beside the plot's ticks); wrap it in a `span` or give it your own class to opt out. */
37
38
  actions?: ReactNode;
38
- /** A resolved state replaces `children` with its placeholder; the header stays. */
39
+ /** A resolved state replaces `children` with its placeholder; the header stays. The card learns
40
+ * a state only from here: a body that draws its own loading or empty line (`Meter loading`,
41
+ * `BarList emptyText`) must ALSO be reported here (`{ pending: true }`, `{ empty }`), or the
42
+ * `facts` above it render over a state they contradict. */
39
43
  state?: ChartState | undefined;
40
44
  /** Body height while a placeholder shows. Default: the chart height law, i.e. exactly the box an
41
45
  * unsized chart takes — pass the chart's own `height` when it states one, so a `<Suspense
@@ -45,6 +49,9 @@ type ChartCardBaseProps = BasaltProps & SlotStylesProps<ChartCardSlot> & {
45
49
  * its own loading (`BarList loading`, a loading `Meter`); a children-less `<Suspense
46
50
  * fallback>` should pass a numeric height instead. */
47
51
  placeholderHeight?: number | ResponsiveChartHeight | 'content' | undefined;
52
+ /** The pending plot's ghost: `'bars'` (default), `'line'` for a line or area chart, or the bar
53
+ * count when the loaded chart's data length is known. */
54
+ ghost?: 'bars' | 'line' | number | undefined;
48
55
  /** Placeholder data is showing: the facts row dims with the plot (a strip cell's `stale`). */
49
56
  stale?: boolean | undefined;
50
57
  /** What an errored `state` names: "Could not load {stateNoun}". Default: no noun. */
@@ -59,8 +66,9 @@ type ChartCardBaseProps = BasaltProps & SlotStylesProps<ChartCardSlot> & {
59
66
  };
60
67
  /**
61
68
  * `facts` replaces the legacy `value`/`delta` hero: the two are mutually exclusive in the type. The
62
- * facts show only at rest: while `state` is pending, errored or empty the figure would sit above a
63
- * skeleton or a placeholder that contradicts it, so the header keeps its title row alone.
69
+ * figures show only at rest: while `state` is errored or empty one would sit above a placeholder that
70
+ * contradicts it, so the header keeps its title row alone. While pending the row keeps its footprint
71
+ * as a skeleton (a figure bar and, with a `subtitle`, a basis line), never the stale figure.
64
72
  */
65
73
  export type ChartCardProps = ChartCardBaseProps & ({
66
74
  /** The headline figure(s) under the title: value, unit, comparison, period. Wraps at half
@@ -71,6 +79,6 @@ export type ChartCardProps = ChartCardBaseProps & ({
71
79
  } | {
72
80
  facts?: undefined;
73
81
  });
74
- export declare function ChartCard({ actions, state, placeholderHeight, stateAction, stale, stateNoun, onRetry, retrying, className, classNames, style, children, facts, ...header }: ChartCardProps): ReactElement;
82
+ export declare function ChartCard({ actions, state, placeholderHeight, stateAction, stale, stateNoun, ghost, onRetry, retrying, className, classNames, style, children, facts, ...header }: ChartCardProps): ReactElement;
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