basalt-ui 2.24.0 → 2.25.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 (36) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/MIGRATING.md +51 -12
  3. package/dist/charts/Bars.d.ts.map +1 -1
  4. package/dist/charts/Bars.js +4 -1
  5. package/dist/charts/CartesianChart.d.ts +2 -0
  6. package/dist/charts/CartesianChart.d.ts.map +1 -1
  7. package/dist/charts/ChartCard.d.ts +6 -2
  8. package/dist/charts/ChartCard.d.ts.map +1 -1
  9. package/dist/charts/ChartCard.js +1 -1
  10. package/dist/charts/compile.d.ts +2 -0
  11. package/dist/charts/compile.d.ts.map +1 -1
  12. package/dist/charts/compile.js +18 -0
  13. package/dist/charts/state.d.ts +3 -1
  14. package/dist/charts/state.d.ts.map +1 -1
  15. package/dist/charts/state.js +9 -1
  16. package/dist/cli/shot/detect.d.ts.map +1 -1
  17. package/dist/cli/shot/detect.js +25 -36
  18. package/dist/dashboard/bar-list.d.ts.map +1 -1
  19. package/dist/dashboard/bar-list.js +16 -2
  20. package/dist/dashboard/bar-list.module.css +7 -2
  21. package/dist/dashboard/bar-list.module.css.d.ts +1 -0
  22. package/dist/dashboard/stat-card.module.css +2 -2
  23. package/dist/dashboard/stat-strip.module.css +2 -1
  24. package/llms.txt +3 -3
  25. package/package.json +1 -1
  26. package/src/charts/Bars.tsx +7 -2
  27. package/src/charts/CartesianChart.tsx +2 -0
  28. package/src/charts/ChartCard.tsx +7 -3
  29. package/src/charts/compile.ts +20 -0
  30. package/src/charts/state.tsx +15 -6
  31. package/src/cli/shot/detect.ts +26 -40
  32. package/src/dashboard/bar-list.module.css +7 -2
  33. package/src/dashboard/bar-list.module.css.d.ts +1 -0
  34. package/src/dashboard/bar-list.tsx +14 -2
  35. package/src/dashboard/stat-card.module.css +2 -2
  36. package/src/dashboard/stat-strip.module.css +2 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ # [2.25.0](https://github.com/jkrumm/basalt-ui/compare/v2.24.0...v2.25.0) (2026-10-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * a slotted bars chart keeps y2 and sits like a sparkline ([3685696](https://github.com/jkrumm/basalt-ui/commit/368569645f531416b22acc0b26cabb593af3262c))
7
+ * join the distribution facts with the house separator ([23da2d0](https://github.com/jkrumm/basalt-ui/commit/23da2d0c7b0a242cb697d2b18635794c8792bec1))
8
+ * keep the anchor radius text, flag nested items explicitly ([ae40487](https://github.com/jkrumm/basalt-ui/commit/ae40487cd3cb994e2dc87d07cfdf604495f27a54))
9
+ * list and Meter card states end at their content ([20e03c1](https://github.com/jkrumm/basalt-ui/commit/20e03c1d9002b855a62e21a582bce5821e1c189f))
10
+ * match the capitalised median fact in the distribution test ([153914f](https://github.com/jkrumm/basalt-ui/commit/153914fd4145a34721d50812a493a77c2e0ca356))
11
+ * set the distribution fact apart from its headline value ([acfca2f](https://github.com/jkrumm/basalt-ui/commit/acfca2ff916f74848fb1ddb5900710b2a3e11c5c))
12
+ * shorten the distribution fact so it holds one line at 390 ([e55c828](https://github.com/jkrumm/basalt-ui/commit/e55c82848a0f26df674b151268ec3486ec206a99))
13
+ * state a figure in every S2 sentence and shorten the components table ([7258623](https://github.com/jkrumm/basalt-ui/commit/7258623f3ec50bf5b4360656e065c0f7a63d53f7))
14
+ * the slot parity test guards the strip reserve, comments say slotted chart ([3c3633c](https://github.com/jkrumm/basalt-ui/commit/3c3633ccf32b46d428ad4760797bb8c2e1857d3c))
15
+
16
+
17
+ ### Features
18
+
19
+ * a nested off-scale radius is always P1 ([70f0175](https://github.com/jkrumm/basalt-ui/commit/70f017556fd3c9dbf713a6f58ed84418c987cc2b))
20
+ * an axis-less bars mode for a visual slot ([08496bf](https://github.com/jkrumm/basalt-ui/commit/08496bfd55bf9f24c2d55ad4edc2071ff78c0fd3))
21
+ * shot detect flags an off-scale nested radius ([5c15283](https://github.com/jkrumm/basalt-ui/commit/5c15283d61b2721e015f9aa644d31a6730b4c198))
22
+
1
23
  # [2.24.0](https://github.com/jkrumm/basalt-ui/compare/v2.23.0...v2.24.0) (2026-10-18)
2
24
 
3
25
 
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 | 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 | 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) | — | — |
81
81
 
82
82
  ---
83
83
 
@@ -1046,6 +1046,10 @@ 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.25.0
1050
+
1051
+ _Nothing to migrate in this release._
1052
+
1049
1053
  ## 2.24.0 — Wave 38, argo's friction III
1050
1054
 
1051
1055
  ### Section and Button chrome (Wave 38)
@@ -1246,6 +1250,41 @@ A gap is stated once. Moved defaults:
1246
1250
 
1247
1251
  Opt out: none for the caption and qualifier rows (they are layout fixes; shorten the text instead); pass `emptyText="—"` on a `Meter` to keep the dash caption; for a strip cell, drop `reason` (and say it in the caption or qualifier) to keep the bare `—`.
1248
1252
 
1253
+ ### Bars in a visual slot (Wave 38)
1254
+
1255
+ New capability, no behaviour moves for a `Bars` outside a slot; a `Bars` already in a slot loses its axes. A `Bars` rendered inside a
1256
+ `StatCard` `sparkline` slot or a strip cell's `visual` now drops both axes, the grid, the plot margin
1257
+ and the legend, and fills the slot like a `Sparkline`: the catalogue's "distribution as a slot
1258
+ micro-visual". Nothing to opt into and no new prop; the slot is the signal. Give it the slot's box:
1259
+
1260
+ ```tsx
1261
+ <StatCard
1262
+ title="Pace"
1263
+ sparkline={({ height }) => (
1264
+ <Bars ariaLabel="Pace by book" data={bins} x={(d) => d.bin} height={height} bars={[…]} />
1265
+ )}
1266
+ />
1267
+ ```
1268
+
1269
+ The marks keep the house fills. The bins are named in the tooltip, which opens below the slot, so
1270
+ 5–12 bars read as a distribution, not a time series. A `Bars` you mount in a slot on purpose WITH axes
1271
+ has no way back; use a `ChartCard` (the catalogue's "distribution as a card's subject").
1272
+
1273
+ ### List and Meter card states (Wave 38)
1274
+
1275
+ No export is removed. `ChartCard`'s `placeholderHeight` gains the value `'content'`; the default is unchanged.
1276
+
1277
+ | Before | Now | Opt-out |
1278
+ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------- |
1279
+ | A `ChartCard` around a list or a `Meter` showed its error and empty state in a box at the chart height (or your `placeholderHeight` number) — about half void under Retry for a four-row list | With `placeholderHeight="content"` the error and empty state end at their content: one title, the cause, Retry, no void. A pending state leaves `children` in place, so the body draws its own loading | leave `placeholderHeight` off (or a number): D37 keeps the box |
1280
+ | A `BarList` loading skeleton was fixed 1.5rem blocks, shorter than the rows it became | The skeleton is real empty rows with a skeleton over each: it keeps the loaded height in the compact and the wide layout | none: it is a layout fix, the rows are the list's own |
1281
+
1282
+ A chart body keeps D37 (the loaded height) by default. `BarList`'s own empty line is unchanged.
1283
+
1284
+ ### `shot detect` judges a nested radius (Wave 38)
1285
+
1286
+ `craft-1/off-scale-radius` now also reads every `nested` surface in `metrics.json`, not just the anchor, and names it in the defect (`nested <path> 3px`). The steps are the round's own `scale.radius`, so a `radius` knob shift moves them. An off-scale nested radius is always P1; the anchor's own radius keeps P3 within 1 px of a step. A round that was clean may now list a finding; the fix is the component's radius token, not a suppression.
1287
+
1249
1288
  ### Guards
1250
1289
 
1251
1290
  `raw-spacing` and `inline-spacing` promote from `warn` to `error`: their grace entries (since
@@ -1 +1 @@
1
- {"version":3,"file":"Bars.d.ts","sourceRoot":"","sources":["../../src/charts/Bars.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAKzC,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,O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MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,YAAY,CAmFvF"}
@@ -2,8 +2,9 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { barY } from "@tanstack/charts/bar";
3
3
  import { group } from "@tanstack/charts/group";
4
4
  import { stack } from "@tanstack/charts/stack";
5
- import { useCallback, useMemo } from "react";
5
+ import { useCallback, useContext, useMemo } from "react";
6
6
  import { CartesianRung } from "./CartesianChart.js";
7
+ import { VisualSlotContext } from "../dashboard/visual-slot.js";
7
8
  import { VX } from "../tokens/index.js";
8
9
  import { emphasis, lineMark } from "./marks.js";
9
10
  import { rowX } from "./types.js";
@@ -33,6 +34,7 @@ function Bars(props) {
33
34
  const sharedColor = bars.some((b, i) => bars.findIndex((o) => o.color === b.color) !== i);
34
35
  guardLogStack(layout, bars.length > 0 && rest.y?.scale === "log");
35
36
  const sample = rest.data[0];
37
+ const bare = useContext(VisualSlotContext) !== null;
36
38
  const series = useMemo(
37
39
  () => [
38
40
  // The legend has no datum: its swatch wears the shade the bars draw on the first row, so
@@ -96,6 +98,7 @@ function Bars(props) {
96
98
  crosshair: false,
97
99
  focusRing: false,
98
100
  reverseRows: layout !== "grouped",
101
+ ...bare && { bare, tooltipBelow: true, legend: false },
99
102
  ...layout !== "grouped" && { stack: layout }
100
103
  }
101
104
  );
@@ -18,6 +18,8 @@ export type RungOptions = {
18
18
  focusRing?: boolean;
19
19
  /** The legend goes from the wide class up, where `Lines`' end labels name the series. */
20
20
  hideLegendAtWide?: boolean;
21
+ /** No axes, grid, margin or legend: the plot is the whole box (`Bars` in a visual slot). */
22
+ bare?: boolean;
21
23
  };
22
24
  /** What a chart's definition is compiled from, besides its own props: the chrome's live state. */
23
25
  export type ShellContext = {
@@ -1 +1 @@
1
- {"version":3,"file":"CartesianChart.d.ts","sourceRoot":"","sources":["../../src/charts/CartesianChart.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAiB,YAAY,EAAa,MAAM,O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,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,WAAW,GAC7C,YAAY,CA8Bd;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAChD,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC/B,YAAY,CAEd"}
@@ -39,8 +39,12 @@ type ChartCardBaseProps = BasaltProps & SlotStylesProps<ChartCardSlot> & {
39
39
  state?: ChartState | undefined;
40
40
  /** Body height while a placeholder shows. Default: the chart height law, i.e. exactly the box an
41
41
  * unsized chart takes — pass the chart's own `height` when it states one, so a `<Suspense
42
- * fallback={<ChartCard state={{ pending: true }} …/>}>` reserves the final size. */
43
- placeholderHeight?: number | ResponsiveChartHeight | undefined;
42
+ * fallback={<ChartCard state={{ pending: true }} …/>}>` reserves the final size.
43
+ * `'content'` is for a body that is not a chart (a list, a `Meter`): an error or empty state
44
+ * ends at its content. A pending state renders `children` as they are, so the body must draw
45
+ * its own loading (`BarList loading`, a loading `Meter`); a children-less `<Suspense
46
+ * fallback>` should pass a numeric height instead. */
47
+ placeholderHeight?: number | ResponsiveChartHeight | 'content' | undefined;
44
48
  /** Placeholder data is showing: the facts row dims with the plot (a strip cell's `stale`). */
45
49
  stale?: boolean | undefined;
46
50
  /** What an errored `state` names: "Could not load {stateNoun}". Default: no noun. */
@@ -1 +1 @@
1
- {"version":3,"file":"ChartCard.d.ts","sourceRoot":"","sources":["../../src/charts/ChartCard.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAiB,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGnE,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAM7D,OAAO,KAAK,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAkFhE,mGAAmG;AAC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iB,CAAC,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS,GAAG,SAAS,CAAA;IAC1E,8FAA8F;IAC9F,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC3B,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,uFAAuF;IACvF,OAAO,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,wFAAwF;IACxF,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAEH;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAC7C,CACI;IACE;uDACmD;IACnD,KAAK,EAAE,SAAS,GAAG,SAAS,SAAS,EAAE,CAAA;IACvC,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,GACD;IAAE,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,CACxB,CAAA;AAwDH,wBAAgB,SAAS,CAAC,EACxB,OAAO,EACP,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,KAAK,EACL,SAAS,EACT,OAAO,EACP,QAAQ,EACR,SAAS,EACT,UAAU,EACV,KAAK,EACL,QAAQ,EACR,KAAK,EACL,GAAG,MAAM,EACV,EAAE,cAAc,GAAG,YAAY,CAqD/B"}
@@ -151,7 +151,7 @@ function ChartCard({
151
151
  {
152
152
  ...classNames?.body !== void 0 && { className: classNames.body },
153
153
  style: bodyClipStyle,
154
- children: resolved === null ? children : /* @__PURE__ */ jsx(
154
+ children: resolved === null || resolved === "pending" && placeholderHeight === "content" ? children : /* @__PURE__ */ jsx(
155
155
  ChartPlaceholder,
156
156
  {
157
157
  state,
@@ -32,6 +32,8 @@ export type CartesianInput<T, X extends ChartX> = Pick<CartesianChartProps<T, X>
32
32
  crosshair?: boolean;
33
33
  /** The engine's point marker on the focused datum. Default `true`; a bar kind has none (its hover is the bar). */
34
34
  focusRing?: boolean;
35
+ /** No axes, grid or margin: the plot is the whole box (a visual slot's bars, as `Sparkline`). */
36
+ bare?: boolean;
35
37
  };
36
38
  export declare function defaultNumberFormat(v: number): string;
37
39
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/charts/compile.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAGV,aAAa,EAEb,yBAAyB,EACzB,eAAe,IAAI,gBAAgB,EACnC,UAAU,EACV,yBAAyB,EAE1B,MAAM,6BAA6B,CAAA;AAIpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAO5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAG/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EAEnB,WAAW,EACX,eAAe,EACf,MAAM,EAEN,OAAO,EAEP,QAAQ,EACT,MAAM,SAAS,CAAA;AAEhB;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,CAAA;AAE/F,gGAAgG;AAChG,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,IAAI,IAAI,CACpD,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,EACvB,MAAM,GACN,GAAG,GACH,QAAQ,GACR,OAAO,GACP,GAAG,GACH,IAAI,GACJ,QAAQ,GACR,SAAS,GACT,SAAS,GACT,OAAO,GACP,QAAQ,GACR,UAAU,GACV,aAAa,GACb,kBAAkB,GAClB,SAAS,CACZ,GAAG;IACF,8FAA8F;IAC9F,OAAO,EAAE,MAAM,CAAA;IACf,8CAA8C;IAC9C,MAAM,CAA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E,SAAS,UAAU,EAAE,GAChC,CAAC,CAAC,EAAE,UAAU,KAAK,MAAM,CAM3B;AAED,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE;IAC7C,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS,CAAA;IACzC,yFAAyF;IACzF,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,KAAK,MAAM,CAAC,GAAG,SAAS,CAAA;IAChD,GAAG,EAAE,cAAc,CAAA;CACpB,GAAG,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,CA6BvD;AAED,+FAA+F;AAC/F,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAAgC,CAAA;AAE/E,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,CAYxE;AAKD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,SAAS,QAAQ,EAAE,EAC1B,MAAM,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GACjC,aAAa,GAAG,IAAI,CAuBtB;AA0aD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAO9D;AA4KD,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAClD,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1B,mBAAmB,CA2HrB"}
@@ -492,6 +492,23 @@ const refLineMarks = (input, axes, label) => (input.refLines ?? []).flatMap(
492
492
  function buildScales(opts) {
493
493
  const { input, model, axes, formatX, cls, zoneScale } = opts;
494
494
  const { left, right } = axes;
495
+ if (input.bare === true) {
496
+ return {
497
+ x: { scale: model.scale, axis: false },
498
+ y: { scale: yScaleFor(input.y, left.domain), axis: false },
499
+ // A right-axis series still needs its scale, drawn or not.
500
+ ...right && {
501
+ y2: {
502
+ channel: "y",
503
+ scale: yScaleFor(input.y2, right.domain),
504
+ axis: false
505
+ }
506
+ },
507
+ ...zoneScale && {
508
+ zx: { channel: "x", scale: scaleLinear().domain([0, 1]), axis: false }
509
+ }
510
+ };
511
+ }
495
512
  return {
496
513
  x: {
497
514
  scale: model.scale,
@@ -732,6 +749,7 @@ function compileCartesian(input) {
732
749
  zoneScale: under.length > 0 || names
733
750
  }),
734
751
  theme: CHART_THEME,
752
+ ...input.bare === true && { guides: false, margin: 0 },
735
753
  ...gradients.length > 0 && { gradients },
736
754
  clip: true
737
755
  };
@@ -11,7 +11,9 @@ export declare function resolveChartState(state: ChartState | undefined): Resolv
11
11
  * `<Suspense>` fallback built from one) occupies the final chart's height. */
12
12
  export declare function ChartPlaceholder(props: {
13
13
  state: ChartState | undefined;
14
- height?: ChartBoxHeight;
14
+ /** `'content'`: error and empty end at their content (a list or Meter body, no chart to keep the
15
+ * frame for); the chart height law and a stated height keep D37's box. Pending always keeps a box. */
16
+ height?: ChartBoxHeight | 'content';
15
17
  /** Error only: the shared Retry button, the same one `ErrorState` renders. */
16
18
  onRetry?: () => void;
17
19
  /** A refetch is in flight: Retry is inert and marked busy. */
@@ -1 +1 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/charts/state.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAiB,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,CAAA;AAErE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE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ClB;2DACuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kFAAkF;IAClF,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,GAAG,YAAY,GAAG,IAAI,CA8DtB"}
@@ -56,7 +56,15 @@ function ChartPlaceholder(props) {
56
56
  const kind = resolveChartState(props.state);
57
57
  if (kind === null) return null;
58
58
  const style = kind === "pending" ? pendingStyle : kind === "error" ? errorStyle : boxStyle;
59
- const fit = (node) => /* @__PURE__ */ jsx(ChartBox, { height: props.height, ...kind === "error" && { className: growClass }, children: node });
59
+ const { height } = props;
60
+ const fit = (node) => height === "content" && kind !== "pending" ? node : /* @__PURE__ */ jsx(
61
+ ChartBox,
62
+ {
63
+ height: height === "content" ? void 0 : height,
64
+ ...kind === "error" && { className: growClass },
65
+ children: node
66
+ }
67
+ );
60
68
  if (kind === "pending")
61
69
  return fit(
62
70
  /* @__PURE__ */ jsx("output", { "aria-label": "Loading chart", "aria-busy": "true", className: stateClass, style })
@@ -1 +1 @@
1
- {"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../../src/cli/shot/detect.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAwB,WAAW,EAAS,MAAM,SAAS,CAAA;AAEvE,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAChD,MAAM,MAAM,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAA;AAElD,MAAM,MAAM,OAAO,GAAG;IACpB,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,QAAQ,CAAA;IAClB,KAAK,EAAE,KAAK,CAAA;IACZ,iFAAiF;IACjF,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gEAAgE;IAChE,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,M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AAG,SAAS,CAAA;CAC7C,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;IAChC,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAcD,eAAO,MAAM,OAAO,GAAI,UAAU,SAAS,OAAO,EAAE,KAAG,MACsB,CAAA;AAiK7E,4GAA4G;AAC5G,wBAAgB,cAAc,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,EAAE,CA4F3E;AAyID,yFAAyF;AACzF,wBAAsB,MAAM,CAC1B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,UAAe,GACpB,OAAO,CAAC,MAAM,CAAC,CAgDjB"}
@@ -34,45 +34,34 @@ function craftOne(a, scale) {
34
34
  if (!scale) return [];
35
35
  const base = { anchor: a.name, route: a.route, where: where(a) };
36
36
  const out = [];
37
- const spacing = Object.values(scale.spacing);
38
- const radii = Object.values(scale.radius);
39
- const inset = SIDE_NAMES.map((side) => ({ side, v: a.padding[side] })).flatMap(({ side, v }) => {
40
- const d = offScale(v, spacing);
41
- return d === null ? [] : [{ side, v, d }];
42
- });
43
- if (inset.length > 0) {
44
- out.push({
45
- ...base,
46
- rule: "craft-1/off-scale-inset",
47
- severity: sizing(inset.map((i) => i.d)),
48
- layer: "layout",
49
- cite: `metrics.json anchors[${a.name} ${where(a)}].padding`,
50
- defect: `Padding ${inset.map((i) => `${i.side} ${i.v}px`).join(", ")} is not a spacing step (${stepsText(scale.spacing)}).`
51
- });
52
- }
53
- const gap = ["row", "column"].flatMap((axis) => {
54
- const d = offScale(a.gap[axis], spacing);
55
- return d === null ? [] : [{ axis, v: a.gap[axis], d }];
56
- });
57
- if (gap.length > 0) {
58
- out.push({
59
- ...base,
60
- rule: "craft-1/off-scale-gap",
61
- severity: sizing(gap.map((g) => g.d)),
62
- layer: "layout",
63
- cite: `metrics.json anchors[${a.name} ${where(a)}].gap`,
64
- defect: `Gap ${gap.map((g) => `${g.axis} ${g.v}px`).join(", ")} is not a spacing step (${stepsText(scale.spacing)}).`
37
+ const sides = SIDE_NAMES.map((side) => ({ at: side, v: a.padding[side], nested: false }));
38
+ const gaps = ["row", "column"].map((axis) => ({
39
+ at: axis,
40
+ v: a.gap[axis],
41
+ nested: false
42
+ }));
43
+ const radii = [
44
+ { at: "", v: a.radius, nested: false },
45
+ ...a.nested.map((n) => ({ at: `nested ${n.path}`, v: n.radius, nested: true }))
46
+ ];
47
+ const groups = [
48
+ ["inset", "layout", "Padding", "padding", scale.spacing, sides],
49
+ ["gap", "layout", "Gap", "gap", scale.spacing, gaps],
50
+ ["radius", "style", "Radius", "radius", scale.radius, radii]
51
+ ];
52
+ for (const [rule, layer, label, field, steps, items] of groups) {
53
+ const off = items.flatMap(({ at, v, nested }) => {
54
+ const d = offScale(v, Object.values(steps));
55
+ return d === null ? [] : [{ at, v, d, nested }];
65
56
  });
66
- }
67
- const radius = offScale(a.radius, radii);
68
- if (radius !== null) {
57
+ if (off.length === 0) continue;
69
58
  out.push({
70
59
  ...base,
71
- rule: "craft-1/off-scale-radius",
72
- severity: sizing([radius]),
73
- layer: "style",
74
- cite: `metrics.json anchors[${a.name} ${where(a)}].radius`,
75
- defect: `Radius ${String(a.radius)}px is not a radius step (${stepsText(scale.radius)}).`
60
+ rule: `craft-1/off-scale-${rule}`,
61
+ severity: off.some((o) => o.nested) ? "P1" : sizing(off.map((o) => o.d)),
62
+ layer,
63
+ cite: `metrics.json anchors[${a.name} ${where(a)}].${field}`,
64
+ defect: `${label} ${off.map((o) => `${o.at} ${o.v}px`.trim()).join(", ")} is not a ${steps === scale.radius ? "radius" : "spacing"} step (${stepsText(steps)}).`
76
65
  });
77
66
  }
78
67
  return out;
@@ -1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AAA;IACpB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAmBD,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,KAAK,EACL,MAAe,EACf,GAAG,EACH,OAAgB,EAChB,YAAoB,EACpB,cAAc,EACd,OAAe,EACf,WAAe,EACf,SAAqB,EACrB,SAAS,EACT,KAAK,GACN,EAAE,YAAY,+BAiHd"}
@@ -24,9 +24,23 @@ function BarList({
24
24
  style
25
25
  }) {
26
26
  if (loading) {
27
- return /* @__PURE__ */ jsx("div", { className: cx(classes.frame, className), style, children: /* @__PURE__ */ jsxs("div", { className: classes.root, "aria-busy": "true", children: [
27
+ return /* @__PURE__ */ jsx("div", { className: cx(classes.frame, className), style, children: /* @__PURE__ */ jsxs("div", { className: classes.root, "aria-busy": "true", "data-variant": variant, children: [
28
28
  /* @__PURE__ */ jsx(VisuallyHidden, { children: `Loading ${label}` }),
29
- Array.from({ length: loadingRows }, (_, i) => /* @__PURE__ */ jsx(Skeleton, { className: classes.skeletonRow, "data-bar-skeleton": true }, i))
29
+ Array.from({ length: loadingRows }, (_, i) => /* @__PURE__ */ jsxs(
30
+ "div",
31
+ {
32
+ className: cx(classes.row, classes.skeletonRow),
33
+ "data-bar-skeleton": true,
34
+ "aria-hidden": true,
35
+ children: [
36
+ /* @__PURE__ */ jsx("span", { className: classes.label, children: "\xA0" }),
37
+ /* @__PURE__ */ jsx("span", { className: classes.value }),
38
+ /* @__PURE__ */ jsx("span", { className: classes.track }),
39
+ /* @__PURE__ */ jsx(Skeleton, { className: classes.skeletonFill })
40
+ ]
41
+ },
42
+ i
43
+ ))
30
44
  ] }) });
31
45
  }
32
46
  if (items.length === 0) {
@@ -100,9 +100,14 @@
100
100
  color: var(--vx-muted);
101
101
  }
102
102
 
103
+ /* A real row with a skeleton laid over it: the row sets the height, the skeleton paints it. */
103
104
  .skeletonRow {
104
- grid-column: 1 / -1;
105
- height: calc(var(--vx-space-control-height-widget, 1.5rem) * var(--mantine-scale, 1));
105
+ position: relative;
106
+ }
107
+
108
+ .skeletonFill {
109
+ position: absolute;
110
+ inset: 0;
106
111
  }
107
112
 
108
113
  /* A row's threshold: a hairline across the bar at a position on the row's own scale. */
@@ -15,5 +15,6 @@ declare const classes: {
15
15
  readonly secondary: string
16
16
  readonly empty: string
17
17
  readonly skeletonRow: string
18
+ readonly skeletonFill: string
18
19
  }
19
20
  export default classes
@@ -388,10 +388,10 @@
388
388
  margin-inline: calc(-1 * var(--vx-space-card-inset-x, 1rem));
389
389
  }
390
390
 
391
- /* A Sparkline's readout line (`--basalt-spark-readout-h`) above its plot: the card gap already sits
391
+ /* A slotted chart's readout line (`--basalt-spark-readout-h`) above its plot: the card gap already sits
392
392
  * above the slot, the slot reserves the rest, so the chip never covers the delta or qualifier row.
393
393
  * `.foot` reserves the same, so a card with a sparkline and one without keep the same height. */
394
- .sparklineBleed:has([data-basalt-sparkline]) {
394
+ .sparklineBleed:has([data-basalt-sparkline], [data-basalt-chart]) {
395
395
  box-sizing: content-box;
396
396
  padding-top: var(--basalt-spark-readout-reserve);
397
397
  }
@@ -230,7 +230,8 @@
230
230
  --basalt-spark-readout-h: 1.125rem;
231
231
  }
232
232
 
233
- .visual:has([data-basalt-sparkline]) {
233
+ /* A slotted chart's readout line above its plot: the cell reserves it so the chip never covers the value. */
234
+ .visual:has([data-basalt-sparkline], [data-basalt-chart]) {
234
235
  padding-top: max(0px, calc(var(--basalt-spark-readout-h) - var(--vx-space-stack-sm)));
235
236
  }
236
237
 
package/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # basalt-ui v2.24.0
1
+ # basalt-ui v2.25.0
2
2
  # Opinionated framework for Mantine-based React apps — theme, app shell, TanStack Charts, toolchain presets
3
3
  #
4
4
  # Entry points: use the exact import specifier below; do not guess.
@@ -13,7 +13,7 @@
13
13
  # A subpath's `Install:` line is its required peers; `OptionalPeers:` are import()-only, install on use.
14
14
 
15
15
  Package: basalt-ui
16
- Version: 2.24.0
16
+ Version: 2.25.0
17
17
 
18
18
  ## basalt-ui
19
19
  Import: import { ... } from 'basalt-ui'
@@ -384,7 +384,7 @@ Signature: ChartCard(props: ChartCardProps): ReactElement<unknown, string | JSXE
384
384
  count?: number
385
385
  actions?: ReactNode
386
386
  state?: ChartState
387
- placeholderHeight?: number | ResponsiveChartHeight
387
+ placeholderHeight?: number | ResponsiveChartHeight | "content"
388
388
  stale?: boolean
389
389
  stateNoun?: string
390
390
  onRetry?: (() => void)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basalt-ui",
3
- "version": "2.24.0",
3
+ "version": "2.25.0",
4
4
  "description": "Opinionated framework for Mantine-based React apps — theme, app shell, TanStack Charts, toolchain presets",
5
5
  "keywords": [
6
6
  "charts",
@@ -2,14 +2,17 @@
2
2
  * `Bars` — bar series on a band x scale (Date, number or string), stacked, grouped or normalized,
3
3
  * with line overlays on `y`/`y2` (`docs/V2-SPEC.md` § 9.3). A negative value draws below zero: a
4
4
  * stack diverges around the baseline (the 1.x `negativeBars`, now just a signed value). Zones,
5
- * reference lines, legend, cursor and tooltip are the rung's.
5
+ * reference lines, legend, cursor and tooltip are the rung's. In a visual slot (a `StatCard`
6
+ * `sparkline`, a strip cell's `visual`) it drops both axes, the grid, the margin and the legend and
7
+ * fills the slot like a `Sparkline`: a small histogram, its bins named in the tooltip below it.
6
8
  */
7
9
  import { barY } from '@tanstack/charts/bar'
8
10
  import { group } from '@tanstack/charts/group'
9
11
  import { stack } from '@tanstack/charts/stack'
10
- import { useCallback, useMemo } from 'react'
12
+ import { useCallback, useContext, useMemo } from 'react'
11
13
  import type { ReactElement } from 'react'
12
14
  import { CartesianRung } from './CartesianChart'
15
+ import { VisualSlotContext } from '../dashboard/visual-slot'
13
16
  import { VX } from '../tokens'
14
17
  import { emphasis, lineMark } from './marks'
15
18
  import { rowX } from './types'
@@ -107,6 +110,7 @@ export function Bars<T, X extends ChartX = ChartX>(props: BarsProps<T, X>): Reac
107
110
  const sharedColor = bars.some((b, i) => bars.findIndex((o) => o.color === b.color) !== i)
108
111
  guardLogStack(layout, bars.length > 0 && rest.y?.scale === 'log')
109
112
  const sample = rest.data[0]
113
+ const bare = useContext(VisualSlotContext) !== null
110
114
  const series = useMemo<ChartSeries<T>[]>(
111
115
  () => [
112
116
  // The legend has no datum: its swatch wears the shade the bars draw on the first row, so
@@ -179,6 +183,7 @@ export function Bars<T, X extends ChartX = ChartX>(props: BarsProps<T, X>): Reac
179
183
  crosshair={false}
180
184
  focusRing={false}
181
185
  reverseRows={layout !== 'grouped'}
186
+ {...(bare && { bare, tooltipBelow: true, legend: false as const })}
182
187
  {...(layout !== 'grouped' && { stack: layout })}
183
188
  />
184
189
  )
@@ -35,6 +35,8 @@ export type RungOptions = {
35
35
  focusRing?: boolean
36
36
  /** The legend goes from the wide class up, where `Lines`' end labels name the series. */
37
37
  hideLegendAtWide?: boolean
38
+ /** No axes, grid, margin or legend: the plot is the whole box (`Bars` in a visual slot). */
39
+ bare?: boolean
38
40
  }
39
41
 
40
42
  // A size container: the legend picks none/dots/chips from this box's width in CSS, so the server
@@ -142,8 +142,12 @@ type ChartCardBaseProps = BasaltProps &
142
142
  state?: ChartState | undefined
143
143
  /** Body height while a placeholder shows. Default: the chart height law, i.e. exactly the box an
144
144
  * unsized chart takes — pass the chart's own `height` when it states one, so a `<Suspense
145
- * fallback={<ChartCard state={{ pending: true }} …/>}>` reserves the final size. */
146
- placeholderHeight?: number | ResponsiveChartHeight | undefined
145
+ * fallback={<ChartCard state={{ pending: true }} …/>}>` reserves the final size.
146
+ * `'content'` is for a body that is not a chart (a list, a `Meter`): an error or empty state
147
+ * ends at its content. A pending state renders `children` as they are, so the body must draw
148
+ * its own loading (`BarList loading`, a loading `Meter`); a children-less `<Suspense
149
+ * fallback>` should pass a numeric height instead. */
150
+ placeholderHeight?: number | ResponsiveChartHeight | 'content' | undefined
147
151
  /** Placeholder data is showing: the facts row dims with the plot (a strip cell's `stale`). */
148
152
  stale?: boolean | undefined
149
153
  /** What an errored `state` names: "Could not load {stateNoun}". Default: no noun. */
@@ -280,7 +284,7 @@ export function ChartCard({
280
284
  {...(classNames?.body !== undefined && { className: classNames.body })}
281
285
  style={bodyClipStyle}
282
286
  >
283
- {resolved === null ? (
287
+ {resolved === null || (resolved === 'pending' && placeholderHeight === 'content') ? (
284
288
  children
285
289
  ) : (
286
290
  <ChartPlaceholder
@@ -101,6 +101,8 @@ export type CartesianInput<T, X extends ChartX> = Pick<
101
101
  crosshair?: boolean
102
102
  /** The engine's point marker on the focused datum. Default `true`; a bar kind has none (its hover is the bar). */
103
103
  focusRing?: boolean
104
+ /** No axes, grid or margin: the plot is the whole box (a visual slot's bars, as `Sparkline`). */
105
+ bare?: boolean
104
106
  }
105
107
 
106
108
  /** The one tick-label size, at every container width: the caption size, so a card never mixes sizes. */
@@ -864,6 +866,23 @@ function buildScales<T, X extends ChartX>(opts: {
864
866
  }): StoredChartSpec['scales'] {
865
867
  const { input, model, axes, formatX, cls, zoneScale } = opts
866
868
  const { left, right } = axes
869
+ if (input.bare === true) {
870
+ return {
871
+ x: { scale: model.scale, axis: false as const },
872
+ y: { scale: yScaleFor(input.y, left.domain), axis: false as const },
873
+ // A right-axis series still needs its scale, drawn or not.
874
+ ...(right && {
875
+ y2: {
876
+ channel: 'y' as const,
877
+ scale: yScaleFor(input.y2, right.domain),
878
+ axis: false as const,
879
+ },
880
+ }),
881
+ ...(zoneScale && {
882
+ zx: { channel: 'x' as const, scale: scaleLinear().domain([0, 1]), axis: false as const },
883
+ }),
884
+ }
885
+ }
867
886
  return {
868
887
  x: {
869
888
  scale: model.scale,
@@ -1205,6 +1224,7 @@ export function compileCartesian<T, X extends ChartX>(
1205
1224
  zoneScale: under.length > 0 || names,
1206
1225
  }),
1207
1226
  theme: CHART_THEME,
1227
+ ...(input.bare === true && { guides: false as const, margin: 0 }),
1208
1228
  ...(gradients.length > 0 && { gradients }),
1209
1229
  clip: true,
1210
1230
  }
@@ -76,7 +76,9 @@ const emptyLabel = (state: ChartState | undefined): string =>
76
76
  * `<Suspense>` fallback built from one) occupies the final chart's height. */
77
77
  export function ChartPlaceholder(props: {
78
78
  state: ChartState | undefined
79
- height?: ChartBoxHeight
79
+ /** `'content'`: error and empty end at their content (a list or Meter body, no chart to keep the
80
+ * frame for); the chart height law and a stated height keep D37's box. Pending always keeps a box. */
81
+ height?: ChartBoxHeight | 'content'
80
82
  /** Error only: the shared Retry button, the same one `ErrorState` renders. */
81
83
  onRetry?: () => void
82
84
  /** A refetch is in flight: Retry is inert and marked busy. */
@@ -95,11 +97,18 @@ export function ChartPlaceholder(props: {
95
97
  // An error keeps the chart's height as a floor (the frame does not jump, `ssr-contract`) and may
96
98
  // grow past it rather than clip its action; its anatomy is top-aligned, so the room is plain
97
99
  // card below the content, not a block of text floating mid-card.
98
- const fit = (node: ReactElement): ReactElement => (
99
- <ChartBox height={props.height} {...(kind === 'error' && { className: growClass })}>
100
- {node}
101
- </ChartBox>
102
- )
100
+ const { height } = props
101
+ const fit = (node: ReactElement): ReactElement =>
102
+ height === 'content' && kind !== 'pending' ? (
103
+ node
104
+ ) : (
105
+ <ChartBox
106
+ height={height === 'content' ? undefined : height}
107
+ {...(kind === 'error' && { className: growClass })}
108
+ >
109
+ {node}
110
+ </ChartBox>
111
+ )
103
112
  if (kind === 'pending')
104
113
  return fit(
105
114
  <output aria-label="Loading chart" aria-busy="true" className={stateClass} style={style} />,
@@ -15,7 +15,7 @@
15
15
  * | craft-1/scale-error, -missing| layout | P1 |
16
16
  * | craft-1/off-scale-inset, -gap| layout | P1; P3 when every off value is within 1 px of a step |
17
17
  * | craft-3/empty-region | layout | P1 |
18
- * | craft-1/off-scale-radius | style | P1; P3 when every off value is within 1 px of a step |
18
+ * | craft-1/off-scale-radius | style | P1; P3 within 1 px of a step (never a nested one) |
19
19
  * | craft-1/nested-radius-step | style | P1 |
20
20
  * | craft-2/font-sizes | style | P1 |
21
21
  * | lint/basalt/<rule> | style | P1 for an error, P2 for a warning |
@@ -121,48 +121,34 @@ function craftOne(a: AnchorMetrics, scale: Scale | undefined): Draft[] {
121
121
  if (!scale) return []
122
122
  const base = { anchor: a.name, route: a.route, where: where(a) }
123
123
  const out: Draft[] = []
124
- const spacing = Object.values(scale.spacing)
125
- const radii = Object.values(scale.radius)
126
-
127
- const inset = SIDE_NAMES.map((side) => ({ side, v: a.padding[side] })).flatMap(({ side, v }) => {
128
- const d = offScale(v, spacing)
129
- return d === null ? [] : [{ side, v, d }]
130
- })
131
- if (inset.length > 0) {
132
- out.push({
133
- ...base,
134
- rule: 'craft-1/off-scale-inset',
135
- severity: sizing(inset.map((i) => i.d)),
136
- layer: 'layout',
137
- cite: `metrics.json anchors[${a.name} ${where(a)}].padding`,
138
- defect: `Padding ${inset.map((i) => `${i.side} ${i.v}px`).join(', ')} is not a spacing step (${stepsText(scale.spacing)}).`,
124
+ const sides = SIDE_NAMES.map((side) => ({ at: side, v: a.padding[side], nested: false }))
125
+ const gaps = (['row', 'column'] as const).map((axis) => ({
126
+ at: axis,
127
+ v: a.gap[axis],
128
+ nested: false,
129
+ }))
130
+ const radii = [
131
+ { at: '', v: a.radius, nested: false },
132
+ ...a.nested.map((n) => ({ at: `nested ${n.path}`, v: n.radius, nested: true })),
133
+ ]
134
+ const groups = [
135
+ ['inset', 'layout', 'Padding', 'padding', scale.spacing, sides],
136
+ ['gap', 'layout', 'Gap', 'gap', scale.spacing, gaps],
137
+ ['radius', 'style', 'Radius', 'radius', scale.radius, radii],
138
+ ] as const
139
+ for (const [rule, layer, label, field, steps, items] of groups) {
140
+ const off = items.flatMap(({ at, v, nested }) => {
141
+ const d = offScale(v, Object.values(steps))
142
+ return d === null ? [] : [{ at, v, d, nested }]
139
143
  })
140
- }
141
-
142
- const gap = (['row', 'column'] as const).flatMap((axis) => {
143
- const d = offScale(a.gap[axis], spacing)
144
- return d === null ? [] : [{ axis, v: a.gap[axis], d }]
145
- })
146
- if (gap.length > 0) {
144
+ if (off.length === 0) continue
147
145
  out.push({
148
146
  ...base,
149
- rule: 'craft-1/off-scale-gap',
150
- severity: sizing(gap.map((g) => g.d)),
151
- layer: 'layout',
152
- cite: `metrics.json anchors[${a.name} ${where(a)}].gap`,
153
- defect: `Gap ${gap.map((g) => `${g.axis} ${g.v}px`).join(', ')} is not a spacing step (${stepsText(scale.spacing)}).`,
154
- })
155
- }
156
-
157
- const radius = offScale(a.radius, radii)
158
- if (radius !== null) {
159
- out.push({
160
- ...base,
161
- rule: 'craft-1/off-scale-radius',
162
- severity: sizing([radius]),
163
- layer: 'style',
164
- cite: `metrics.json anchors[${a.name} ${where(a)}].radius`,
165
- defect: `Radius ${String(a.radius)}px is not a radius step (${stepsText(scale.radius)}).`,
147
+ rule: `craft-1/off-scale-${rule}`,
148
+ severity: off.some((o) => o.nested) ? 'P1' : sizing(off.map((o) => o.d)),
149
+ layer,
150
+ cite: `metrics.json anchors[${a.name} ${where(a)}].${field}`,
151
+ defect: `${label} ${off.map((o) => `${o.at} ${o.v}px`.trim()).join(', ')} is not a ${steps === scale.radius ? 'radius' : 'spacing'} step (${stepsText(steps)}).`,
166
152
  })
167
153
  }
168
154
  return out
@@ -100,9 +100,14 @@
100
100
  color: var(--vx-muted);
101
101
  }
102
102
 
103
+ /* A real row with a skeleton laid over it: the row sets the height, the skeleton paints it. */
103
104
  .skeletonRow {
104
- grid-column: 1 / -1;
105
- height: calc(var(--vx-space-control-height-widget, 1.5rem) * var(--mantine-scale, 1));
105
+ position: relative;
106
+ }
107
+
108
+ .skeletonFill {
109
+ position: absolute;
110
+ inset: 0;
106
111
  }
107
112
 
108
113
  /* A row's threshold: a hairline across the bar at a position on the row's own scale. */
@@ -15,5 +15,6 @@ declare const classes: {
15
15
  readonly secondary: string
16
16
  readonly empty: string
17
17
  readonly skeletonRow: string
18
+ readonly skeletonFill: string
18
19
  }
19
20
  export default classes
@@ -132,12 +132,24 @@ export function BarList({
132
132
  style,
133
133
  }: BarListProps) {
134
134
  if (loading) {
135
+ // Each row is a real, empty row with a skeleton laid over it, so the list takes the height of
136
+ // the rows it will become in every layout instead of a fixed guess.
135
137
  return (
136
138
  <div className={cx(classes.frame, className)} style={style}>
137
- <div className={classes.root} aria-busy="true">
139
+ <div className={classes.root} aria-busy="true" data-variant={variant}>
138
140
  <VisuallyHidden>{`Loading ${label}`}</VisuallyHidden>
139
141
  {Array.from({ length: loadingRows }, (_, i) => (
140
- <Skeleton key={i} className={classes.skeletonRow} data-bar-skeleton />
142
+ <div
143
+ key={i}
144
+ className={cx(classes.row, classes.skeletonRow)}
145
+ data-bar-skeleton
146
+ aria-hidden
147
+ >
148
+ <span className={classes.label}>{'\u00a0'}</span>
149
+ <span className={classes.value} />
150
+ <span className={classes.track} />
151
+ <Skeleton className={classes.skeletonFill} />
152
+ </div>
141
153
  ))}
142
154
  </div>
143
155
  </div>
@@ -388,10 +388,10 @@
388
388
  margin-inline: calc(-1 * var(--vx-space-card-inset-x, 1rem));
389
389
  }
390
390
 
391
- /* A Sparkline's readout line (`--basalt-spark-readout-h`) above its plot: the card gap already sits
391
+ /* A slotted chart's readout line (`--basalt-spark-readout-h`) above its plot: the card gap already sits
392
392
  * above the slot, the slot reserves the rest, so the chip never covers the delta or qualifier row.
393
393
  * `.foot` reserves the same, so a card with a sparkline and one without keep the same height. */
394
- .sparklineBleed:has([data-basalt-sparkline]) {
394
+ .sparklineBleed:has([data-basalt-sparkline], [data-basalt-chart]) {
395
395
  box-sizing: content-box;
396
396
  padding-top: var(--basalt-spark-readout-reserve);
397
397
  }
@@ -230,7 +230,8 @@
230
230
  --basalt-spark-readout-h: 1.125rem;
231
231
  }
232
232
 
233
- .visual:has([data-basalt-sparkline]) {
233
+ /* A slotted chart's readout line above its plot: the cell reserves it so the chip never covers the value. */
234
+ .visual:has([data-basalt-sparkline], [data-basalt-chart]) {
234
235
  padding-top: max(0px, calc(var(--basalt-spark-readout-h) - var(--vx-space-stack-sm)));
235
236
  }
236
237