basalt-ui 2.22.0 → 2.23.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 (131) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/MIGRATING.md +187 -12
  3. package/agent/agents/basalt-design-reviewer.md +1 -1
  4. package/agent/skills/basalt-design/SKILL.md +1 -1
  5. package/dist/charts/BandStrip.d.ts.map +1 -1
  6. package/dist/charts/BandStrip.js +51 -5
  7. package/dist/charts/Bars.d.ts.map +1 -1
  8. package/dist/charts/Bars.js +2 -1
  9. package/dist/charts/CartesianChart.d.ts +2 -0
  10. package/dist/charts/CartesianChart.d.ts.map +1 -1
  11. package/dist/charts/ChartCard.d.ts +1 -1
  12. package/dist/charts/ChartCard.d.ts.map +1 -1
  13. package/dist/charts/ChartCard.js +25 -15
  14. package/dist/charts/Sparkline.d.ts +8 -2
  15. package/dist/charts/Sparkline.d.ts.map +1 -1
  16. package/dist/charts/Sparkline.js +67 -13
  17. package/dist/charts/band-fold.d.ts +22 -4
  18. package/dist/charts/band-fold.d.ts.map +1 -1
  19. package/dist/charts/band-fold.js +10 -2
  20. package/dist/charts/chart-dates.d.ts +12 -0
  21. package/dist/charts/chart-dates.d.ts.map +1 -0
  22. package/dist/charts/chart-dates.js +16 -0
  23. package/dist/charts/compile.d.ts +8 -0
  24. package/dist/charts/compile.d.ts.map +1 -1
  25. package/dist/charts/compile.js +30 -21
  26. package/dist/charts/date-tick-format.d.ts +5 -5
  27. package/dist/charts/date-tick-format.d.ts.map +1 -1
  28. package/dist/charts/date-tick-format.js +3 -7
  29. package/dist/charts/labels.d.ts +7 -3
  30. package/dist/charts/labels.d.ts.map +1 -1
  31. package/dist/charts/labels.js +28 -17
  32. package/dist/charts/ref-label.d.ts +17 -0
  33. package/dist/charts/ref-label.d.ts.map +1 -1
  34. package/dist/charts/ref-label.js +13 -1
  35. package/dist/charts/sparkline.module.css +8 -11
  36. package/dist/charts/state.d.ts.map +1 -1
  37. package/dist/charts/state.js +3 -1
  38. package/dist/charts/types.d.ts +4 -3
  39. package/dist/charts/types.d.ts.map +1 -1
  40. package/dist/cli/shot/capture.d.ts.map +1 -1
  41. package/dist/cli/shot/capture.js +9 -5
  42. package/dist/cli/shot/detect.js +8 -5
  43. package/dist/cli/shot/playwright.d.ts +8 -0
  44. package/dist/cli/shot/playwright.d.ts.map +1 -1
  45. package/dist/cli/shot/playwright.js +5 -1
  46. package/dist/cli/shot/types.d.ts +2 -0
  47. package/dist/cli/shot/types.d.ts.map +1 -1
  48. package/dist/cli/tokens-css.d.ts +5 -7
  49. package/dist/cli/tokens-css.d.ts.map +1 -1
  50. package/dist/cli/tokens-css.js +11 -12
  51. package/dist/dashboard/bar-list.d.ts +6 -1
  52. package/dist/dashboard/bar-list.d.ts.map +1 -1
  53. package/dist/dashboard/bar-list.js +8 -0
  54. package/dist/dashboard/bar-list.module.css +30 -0
  55. package/dist/dashboard/delta-badge.d.ts.map +1 -1
  56. package/dist/dashboard/delta-badge.js +2 -2
  57. package/dist/dashboard/meter-model.d.ts +25 -20
  58. package/dist/dashboard/meter-model.d.ts.map +1 -1
  59. package/dist/dashboard/meter-model.js +24 -12
  60. package/dist/dashboard/meter-parts.d.ts +1 -1
  61. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  62. package/dist/dashboard/meter-parts.js +39 -4
  63. package/dist/dashboard/meter.d.ts +14 -8
  64. package/dist/dashboard/meter.d.ts.map +1 -1
  65. package/dist/dashboard/meter.js +1 -1
  66. package/dist/dashboard/meter.module.css +15 -0
  67. package/dist/dashboard/meter.module.css.d.ts +1 -0
  68. package/dist/dashboard/query-state.d.ts.map +1 -1
  69. package/dist/dashboard/query-state.js +1 -1
  70. package/dist/dashboard/stat-card-parts.js +1 -1
  71. package/dist/dashboard/stat-card.module.css +25 -6
  72. package/dist/dashboard/stat-group.module.css +7 -0
  73. package/dist/dashboard/stat-strip.d.ts +15 -5
  74. package/dist/dashboard/stat-strip.d.ts.map +1 -1
  75. package/dist/dashboard/stat-strip.js +50 -34
  76. package/dist/dashboard/stat-strip.module.css +83 -61
  77. package/dist/guard/index.d.ts.map +1 -1
  78. package/dist/guard/index.js +0 -5
  79. package/dist/styles.css +18 -11
  80. package/dist/theme/controls.module.css +14 -0
  81. package/dist/theme/controls.module.css.d.ts +1 -0
  82. package/dist/theme/index.d.ts.map +1 -1
  83. package/dist/theme/index.js +10 -7
  84. package/dist/theme/status-verdict.d.ts.map +1 -1
  85. package/dist/theme/status-verdict.js +9 -1
  86. package/dist/tokens/palette.d.ts +7 -10
  87. package/dist/tokens/palette.d.ts.map +1 -1
  88. package/dist/tokens/palette.js +7 -10
  89. package/llms.txt +6 -4
  90. package/package.json +1 -1
  91. package/src/charts/BandStrip.tsx +55 -5
  92. package/src/charts/Bars.tsx +2 -1
  93. package/src/charts/CartesianChart.tsx +2 -0
  94. package/src/charts/ChartCard.tsx +32 -19
  95. package/src/charts/Sparkline.tsx +92 -19
  96. package/src/charts/band-fold.ts +25 -6
  97. package/src/charts/chart-dates.ts +30 -0
  98. package/src/charts/compile.ts +64 -23
  99. package/src/charts/date-tick-format.ts +10 -13
  100. package/src/charts/labels.ts +43 -22
  101. package/src/charts/ref-label.ts +27 -0
  102. package/src/charts/sparkline.module.css +8 -11
  103. package/src/charts/state.tsx +6 -3
  104. package/src/charts/types.ts +4 -3
  105. package/src/cli/shot/capture.ts +15 -3
  106. package/src/cli/shot/detect.ts +9 -9
  107. package/src/cli/shot/playwright.ts +18 -2
  108. package/src/cli/shot/types.ts +2 -0
  109. package/src/cli/tokens-css.ts +18 -20
  110. package/src/dashboard/bar-list.module.css +30 -0
  111. package/src/dashboard/bar-list.tsx +29 -0
  112. package/src/dashboard/delta-badge.tsx +6 -2
  113. package/src/dashboard/meter-model.ts +58 -41
  114. package/src/dashboard/meter-parts.tsx +66 -5
  115. package/src/dashboard/meter.module.css +15 -0
  116. package/src/dashboard/meter.module.css.d.ts +1 -0
  117. package/src/dashboard/meter.tsx +15 -11
  118. package/src/dashboard/query-state.tsx +1 -1
  119. package/src/dashboard/stat-card-parts.tsx +1 -1
  120. package/src/dashboard/stat-card.module.css +25 -6
  121. package/src/dashboard/stat-group.module.css +7 -0
  122. package/src/dashboard/stat-strip.module.css +83 -61
  123. package/src/dashboard/stat-strip.tsx +93 -54
  124. package/src/guard/index.ts +0 -5
  125. package/src/styles.css +18 -11
  126. package/src/theme/__snapshots__/plain-theme.test.ts.snap +14 -8
  127. package/src/theme/controls.module.css +14 -0
  128. package/src/theme/controls.module.css.d.ts +1 -0
  129. package/src/theme/index.ts +10 -7
  130. package/src/theme/status-verdict.tsx +5 -1
  131. package/src/tokens/palette.ts +7 -10
package/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ # [2.23.0](https://github.com/jkrumm/basalt-ui/compare/v2.22.0...v2.23.0) (2026-10-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * compact strip cells, stat caption at 390, footer under a cell ([986fda0](https://github.com/jkrumm/basalt-ui/commit/986fda0460450dcf6070823a2dd65d4e096b7b0c))
7
+ * heading numerals use the sans digits, no slashed zero ([6121256](https://github.com/jkrumm/basalt-ui/commit/612125609f433ee363cd6b8852e37c8bd3cc86b7))
8
+ * indicator radius follows the track; em dash in the ring reading ([f83dba1](https://github.com/jkrumm/basalt-ui/commit/f83dba1555b80b823eaff142ae1ba7fd6002f4df))
9
+ * muted Meter zones share one flat fill ([b1e878a](https://github.com/jkrumm/basalt-ui/commit/b1e878ab6633be9ef4fc1efd224cb155003bed60))
10
+ * pin head digits against font-stretch, document the axis ([fc6f2f1](https://github.com/jkrumm/basalt-ui/commit/fc6f2f189d034f706c2cf3d8ebb0f618b98283f8))
11
+ * regenerate llms.txt ([551bc96](https://github.com/jkrumm/basalt-ui/commit/551bc9674e84bd90bfb9b43c008cc862f1ebc2cc))
12
+ * shot detect names the anchors that lack data-shot-states ([1dc358e](https://github.com/jkrumm/basalt-ui/commit/1dc358e1dc0097882e082b9746ca21f086dea9f2))
13
+ * shot's desktop context reports a fine pointer that hovers ([0523fda](https://github.com/jkrumm/basalt-ui/commit/0523fdab1650d0dea8fde7d4b45095d2d75f7855))
14
+ * strip error body reads Could not load; custom-radius indicator probe ([78498d1](https://github.com/jkrumm/basalt-ui/commit/78498d19522074b70b7450974c3cd12c2b3f33ed))
15
+
16
+
17
+ ### Features
18
+
19
+ * aligned list status columns and sentence-case status ([4709a55](https://github.com/jkrumm/basalt-ui/commit/4709a55bd4914282307c8bf4daa11f13c895c0c7))
20
+ * chart readouts name their point and bars hover as bars ([d3ccf1a](https://github.com/jkrumm/basalt-ui/commit/d3ccf1a10caae62b35d325825c3764579efce76a))
21
+ * daily tooltip headers keep weekday and year; labels clear lines ([8986c19](https://github.com/jkrumm/basalt-ui/commit/8986c1941e5e6b5fa43d54075f9a68fee0b80022))
22
+ * keep a meter's end figures and captions at their marks ([66af971](https://github.com/jkrumm/basalt-ui/commit/66af971185d63a03c4945beed6bca1e78e9fb9f0))
23
+ * one error title word, no point marker on a bar sparkline hover ([c758ecd](https://github.com/jkrumm/basalt-ui/commit/c758ecdbd2f97c07bfe9411cef6ae2aec463fa5c))
24
+ * pin the ErrorState default title and the line sparkline marker ([f1ea769](https://github.com/jkrumm/basalt-ui/commit/f1ea769b4fe7264d2fc13b597aeb8b9bc96899ab))
25
+ * promote series-palette to error ([fe021b8](https://github.com/jkrumm/basalt-ui/commit/fe021b8a97e4c9855ccd96d683daa4354ad31712))
26
+ * strip cells declare shot absence; no bare No data defaults ([bf8df89](https://github.com/jkrumm/basalt-ui/commit/bf8df898f3bc10c87faa1abaec6f025b20a7fcdd))
27
+
1
28
  # [2.22.0](https://github.com/jkrumm/basalt-ui/compare/v2.21.0...v2.22.0) (2026-10-18)
2
29
 
3
30
 
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 | 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) | — |
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`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
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) | — | — |
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) | — | — |
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 | 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) | — | — |
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`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
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) | — | — | — |
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) | — |
81
81
 
82
82
  ---
83
83
 
@@ -1046,6 +1046,181 @@ 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.23.0 — Wave 37, argo's friction II
1050
+
1051
+ No export is removed. `MeterTick` gains an optional `caption`; five Meter defaults move.
1052
+
1053
+ ### Behaviour changes
1054
+
1055
+ | Surface | Before | Now | Opt-out |
1056
+ | ----------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------- |
1057
+ | Zoned Meter, end ticks (`ticks` at `min`/`max`) | a zone name always won: at 390 the `2.0` / `100` end figure hid | both end figures stay; a zone name that would touch one falls back to its `short`, then hides (still described). An end figure hides only when it cannot clear the other end, an interior tick or the holding name | none |
1058
+ | Bar with `ticks` or `target` | no start figure | `format(min)` is labelled at the start of the track, above it | `startCaption={null}` (also drops the reading, as before) |
1059
+ | Captions at their marks | forecast and target captions anchored; two captions closer than a gap step sent the whole row back to the flow | closer captions are pushed apart, in order, the least that clears them; the flow is the fallback only when they cannot all fit inside the row | none |
1060
+ | `MeterTick.caption` (new) | a tick's text sat in `endCaption` at the track end | `ticks={[{ at, label: 'Pace', caption: '14 sessions by 16 Oct' }]}` captions under the track, centred on the mark | omit `caption` |
1061
+ | Categorical part captions that do not fit under their parts | an entry could wrap inside itself | each entry (swatch, name, value) stays on one line in a wrapping row from the track's start; only an entry wider than the row breaks | none |
1062
+
1063
+ `target` already captioned its value (`Target 28 sessions`, with `format`); `endCaption={null}` drops it.
1064
+ An end figure that hides still reads in the accessible description.
1065
+
1066
+ ### `BarList` and `Badge` defaults (lists and chrome II)
1067
+
1068
+ Two defaults move; `BarList` gains `secondaryAlign`.
1069
+
1070
+ | Surface | Before | Now | Opt-out |
1071
+ | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
1072
+ | `BarList` `secondary` | one end-aligned column, so a status (dot plus word) had ragged dots; a long status ran past the track end at a phone width; a `DeltaBadge` column lined up on neither glyph nor figure | aligned by content: a string that is not a figure and a `StatusVerdict`/`StatusDot` start, a number, a numeric string and any other element end; a `DeltaBadge` gets a fixed-width glyph slot and a 4-character tabular figure slot inside the list, so glyphs and right edges line up; a status is clipped inside its cell and its word carries `title` | `secondaryAlign="start"` or `"end"` on `BarList` |
1073
+ | `Badge` | Mantine's `text-transform: uppercase` | the word as written (`Healthy`), for the status chip (SPEC § 6.10); a deliberate micro-caption passes `tt="uppercase"`, which is inline and wins | `tt="uppercase"` per Badge |
1074
+
1075
+ `StatusVerdict`'s word now carries `title` (the `phrase`, else the word). `DeltaBadge` carries `data-delta` and its glyph
1076
+ `data-delta-glyph`; outside a `BarList` it looks as before. A literal `"▲ 9%"`
1077
+ string keeps the spacing its author typed — use `DeltaBadge` for a column of deltas.
1078
+
1079
+ No export is removed. Four behaviours move and one optional field is new.
1080
+
1081
+ | Surface | Before | Now |
1082
+ | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1083
+ | `StatCard` in a container under 240 px | caption and qualifier shared one nowrap line and both truncated (`TRAINING V…`, `month to…`) | the qualifier takes its own line under the caption; a card with a qualifier, or in a `StatGroup` where one does, reserves that line so values share a baseline. Cost: a qualifier-less card in such a group is one caption line taller. The qualifier truncates (with `title`) only if it alone does not fit |
1084
+ | `StatGroup variant="strip"` cell | a subgrid on six shared tracks: a short visual or rows sat in the track its tallest sibling sized, so its box kept the sibling's void (`emptyRatio` 0.25–0.32) | a plain column that ends at its content; the slot still runs the row, so the dividers do. A cell's caption line is one line (qualifier beside it, truncating with `title`; in a narrow cell under it, reserved on every cell of a strip that has a qualifier), so captions share a top and values a baseline |
1085
+ | `StatGroup variant="strip"` footer line | a cell's footer (rows, visual, hero) sat on a track shared with its row-mates | a footer follows the cell's last part; **footer tops no longer align across cells**. Opt-out: none (a deliberate law change; pin a shared footer with a `footer[]` entry under the strip instead) |
1086
+ | `StatGroup variant="strip"` empty / error | the state copy sat flush on the cell's bottom edge | the cell's inset (`stack-md`) on every side |
1087
+
1088
+ Tests that pinned the old law and were rewritten: `strip-align.layout.test.ts` (`compact: … per-footer-track tops are equal`, `a mixed row keeps one top per footer kind`: footers now hug their own part; `no cell has a void beyond one row-gap` lost its sibling-slack allowance) and `stat-strip.test.tsx` (`the caption group never wraps; …`: the wrap is the narrow-cell container query, not the default).
1089
+
1090
+ ### `footer[].under` (new, optional)
1091
+
1092
+ `footer={[{ key: 'week', under: 'spend', content: <Meter … /> }]}` — from 800 px the entry sits in
1093
+ the column of the cell whose `key` is `under`; an entry without `under` then takes the full row.
1094
+ Below 800 px, and for a key that names no cell, nothing changes: full width under the grid. Opt-out:
1095
+ omit `under`.
1096
+
1097
+ No export is removed and none is added. `Sparkline`'s `data` widens, and six chart defaults move.
1098
+
1099
+ ### Behaviour changes
1100
+
1101
+ | Surface | Before | Now | Opt out |
1102
+ | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
1103
+ | `Sparkline` readout placement | a chip above the plot box, over whatever the host draws there (a card's delta period) and clipped by a host slot that clips | inside the plot box, beside the hovered point on the roomier side (flips at the edges) and on the half of the box away from it | none: the chip no longer leaves the box |
1104
+ | `Sparkline` readout label | only a consumer's `labels` named the point | `data` may be `{ at, value }` points (`at`: Date, epoch ms or ISO string); the readout names the day (the hour when the points share one day) in the page locale; `labels` still wins | keep `data` a `number[]` |
1105
+ | `Bars` hover | the engine's point marker drew on the hovered bar | bar chrome only (the hovered x at full strength) | none |
1106
+ | Reference caption on a band x | could sit over a bar taller than its line | treats each bar as a filled column and takes the first clear spot | `RefLine.labelPosition` pins one |
1107
+ | Date tick labels | `DD.MM`, whatever the page locale | the day and month in the page locale (`4 Oct`, `Oct 4`), the runtime's with none set: the same source as the tooltip header | `formatX` |
1108
+ | `Lines` end label that flips left of a falling line's last point | drawn above it, across the last segment | drawn below it (above for a rising line) | `naming: 'legend'` |
1109
+ | Errored `ChartCard` / chart | the anatomy (dot, title, message, Retry) was centred vertically in the chart's height | top-aligned in the same height: the frame keeps its size (no jump when a fetch fails), the room sits below the content | none |
1110
+
1111
+ A `StatCard` / strip-cell sparkline slot still reserves the old readout line above its plot
1112
+ (`--basalt-spark-readout-h`); the chip no longer uses it.
1113
+
1114
+ A histogram that marks its median as a second series names the count through the series' own
1115
+ `formatValue` (`(v) => \`${v} days\``): a `Bars` tooltip row already takes it, and a bin lists only
1116
+ the series that has a value for it.
1117
+
1118
+ No export is removed. One default moves.
1119
+
1120
+ ### Heading digits come from the sans face
1121
+
1122
+ Hubot Sans has no `zero` OpenType feature and its default zero is slashed, so the 2.22.0
1123
+ `:root { font-feature-settings: 'zero' 0 }` reset was a no-op and head-face titles still showed
1124
+ `3Ø days`. `styles.css` now declares `@font-face 'Basalt Head Digits'` over the Nunito Sans variable
1125
+ file, `unicode-range: U+0030-0039`, and `--basalt-font-head` leads with it: Hubot draws the letters,
1126
+ Nunito the digits, in every h1–h6, Mantine `Title` and CSS-module title that reads the var. The no-op
1127
+ reset is removed. `basalt-ui fonts:css` emits the same face.
1128
+
1129
+ **Opt out:** set your own `--basalt-font-head` (or `createBasaltTheme(_, { fonts: { head } })`); a
1130
+ head stack that does not lead with `'Basalt Head Digits'` draws Hubot's own digits, slashed zero
1131
+ included. Stretch: the digit face has no `wdth` axis, and neither does the shipped wght-only Hubot Sans file,
1132
+ so `--basalt-font-head-stretch` (88%) condenses neither letters nor digits today and they cannot
1133
+ mismatch. A consumer who swaps in a `wdth` cut of the head face gets condensed letters over
1134
+ full-width digits. The face costs no extra download beyond the Nunito latin file `styles.css` already loads.
1135
+
1136
+ ### `Meter`: muted zones and segments share one flat fill
1137
+
1138
+ `tone: 'muted'` on a `MeterZone` or `MeterSegment` no longer steps lightness per part (2.22.0's ramp):
1139
+ an outer non-verdict band read as a value bar. Every muted zone now takes one flat `--vx-muted` fill
1140
+ (35%) and every muted segment one flat fill (65%, 3:1 on the track). Neighbours are told apart by the
1141
+ 1px gap every zone after the first already leaves (the track shows through; no change there), a 1px
1142
+ track-coloured seam between muted segments, and their names; the marker stays the only strong mark.
1143
+ `data-meter-zone-seam` / `data-meter-seam` are test hooks, not styling API. The plain zone ramp (no `tone`) is unchanged, and a `color` still wins.
1144
+
1145
+ Opt-out: give a zone or segment its own `color`, or drop `tone` for the line ramp.
1146
+
1147
+ ### `shot` desktop hover reports a hovering fine pointer
1148
+
1149
+ A headless Chromium with no pointing device reports `(hover: none)` / `(pointer: coarse)`, so no
1150
+ `@media (hover: hover)` rule (Mantine's filled `Button` hover, any consumer hover) applied in a
1151
+ desktop hover shot and the crop looked identical to rest. The launcher now starts Chrome with
1152
+ `--blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4`;
1153
+ the mobile viewport (`hasTouch`) keeps `hover: none` / `pointer: coarse`. Desktop hover crops of
1154
+ filled controls now differ from rest, so a committed baseline of them will diff once. No opt-out:
1155
+ the previous crop was the defect.
1156
+
1157
+ `shot detect`'s `craft-7/no-declared-states` is now **P2** (reported, exit 0) instead of P1, and only
1158
+ fires on a route with an anchor that renders a state surface (`ChartCard`, `StatCard`, a chart
1159
+ state); it names those anchors and the `data-shot-states="empty loading error"` to add. A route
1160
+ without one gets no finding. A consumer that gated on exit 2 for it no longer does.
1161
+
1162
+ ### Chart header, label and tick behaviour (round r3)
1163
+
1164
+ No export is removed and none is added. Seven chart defaults move; the first is the only one a consumer
1165
+ can see change on a page that was fine before.
1166
+
1167
+ | Surface | Before | Now |
1168
+ | ------------------------------------------------------------------ | --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1169
+ | Tooltip header of a day-granular Date x under a consumer `formatX` | the tick format (`2 Sep`): weekday and year lost, though this file said otherwise | weekday, day, month and year in the page locale; `formatX` shortens the ticks only |
1170
+ | `Sparkline` `referenceLabel` | centred 4 px above its dashed line (struck through) at the plot edge | clear of the line (above, or below when the line is near the top), 3 px inside the plot start |
1171
+ | `ChartCard` `facts` `period` list behind a `unit` | `['basis']` ran into the unit; the separator joined between items only | `· basis`: the list leads with `·` behind a `unit` (an item already led by `·` is not doubled) |
1172
+ | Y tick labels when every tick is whole | a padding formatter printed `2.0 s` | `2 s`; the tooltip keeps the full format |
1173
+ | `BandStrip` glyph | drawn from a 12 px cell, unreadable | drawn from a 16 px cell (`Heatmap` keeps 12 px); a narrower warn/bad cell draws a bottom notch in its own fill pulled to the ink (3 px warn, 6 px bad) instead |
1174
+ | Empty chart (`state={{ empty: true }}`) with no label | the bare filler `No data` | `Nothing recorded in this range.`; a string `empty` still wins |
1175
+ | `Lines` end label near the plot's top or bottom edge | its flip offset could push it outside the plot (`Low` clipped) | its centre stays 7 px inside the plot |
1176
+
1177
+ Opt-out for the header: `tooltip={{ formatHeader: (x) => yourFormat(x) }}` restores any title. The
1178
+ `period` string form is unchanged (write it with its own `· ` as before).
1179
+
1180
+ ### Strip `shotAbsent`; `Meter` prints no filler; nested radius steps
1181
+
1182
+ `StatGroup variant="strip"` takes `shotAbsent?: ('empty' | 'loading' | 'error')[]` on the group (every
1183
+ derived cell and footer anchor then carries `data-shot-absent`) and on a cell (replaces the group's for
1184
+ that cell). Additive.
1185
+
1186
+ A `Meter` with no reading no longer prints `No data` under the track: the reading is `—` and there is no
1187
+ caption. Opt-out: pass `emptyText` for the caption you want.
1188
+
1189
+ Two nested radii step down so `craft-1/nested-radius-step` passes: an inline `Code` inside an `Alert`
1190
+ is 3 px under the Alert's radius (was the tight 5 px), and the `SegmentedControl` (`ViewTabs`) indicator
1191
+ is 3 px under its own track radius (`--sc-radius` − 3, so a custom `radius` nests too; was 4 px at the
1192
+ default). The indicator change is global, not limited to card headers: the track-to-indicator gap was 2 px
1193
+ everywhere and the nested-radius lint step (≥ 3 px) wins over exact concentricity.
1194
+
1195
+ A strip cell's error body now says `Could not load` instead of `Failed`, matching the card, query and table wording.
1196
+
1197
+ Opt-out: `Code` has no `radius` prop — set `--basalt-code-radius` on an ancestor or `styles={{ root: {
1198
+ borderRadius } }}` on the `Code`; for the indicator, `styles={{ indicator: { borderRadius } }}` on the
1199
+ `SegmentedControl`.
1200
+
1201
+ ### One error wording, bar Sparkline hover chrome (round r2)
1202
+
1203
+ No export is removed and none is added. Two defaults move.
1204
+
1205
+ | Surface | Before | Now |
1206
+ | ---------------------------- | ------------------------------------------ | --------------------------------------------------------------------- |
1207
+ | `ErrorState` with no `title` | `Something went wrong` | `Could not load`, the wording every other error default uses |
1208
+ | `Sparkline mark="bar"` hover | a point marker and a leader dot on the bar | none: the bar and the readout chip are the marker (a line keeps both) |
1209
+
1210
+ Opt-out: pass `title="Something went wrong"` to `ErrorState`. The `BasaltDataTable` error
1211
+ already renders the shared anatomy (status dot, title, message, Retry); an app that rebuilds it with
1212
+ `EmptyState` and a search glyph should drop that and pass `query`.
1213
+
1214
+ ### Guards
1215
+
1216
+ `series-palette` promotes from `warn` to `error`: its grace entry (since 2.21.0) came due at 2.23.0.
1217
+ `check-theme` now fails on a series file whose palette misses a computed check (lightness, chroma,
1218
+ colour-blind separation, worst pair, contrast, group size); the fix is to retune the hex in the
1219
+ series file. Measured before flipping: argo `apps/dashboard` on 2.22.0 reports 0 findings.
1220
+
1221
+ Opt-out: `"basalt": { "severity": { "series-palette": "warn" } }` keeps it a warning;
1222
+ `"basalt": { "exemptRules": { "series-palette": ["<series file>"] } }` silences it for the file.
1223
+
1049
1224
  ## 2.22.0 — Wave 37, argo's friction II
1050
1225
 
1051
1226
  No export is removed. Five defaults move and one export is new.
@@ -19,7 +19,7 @@ A shot out dir (default `.basalt/shots`, or the `out` in `.basalt/shots/last.jso
19
19
  - `detect.json`, only if the out dir has one (`basalt-ui shot detect`): the deterministic findings for the [measured] items and `basalt/*` lint. Cite each at its own severity as `metrics.json <anchor>`, do not re-derive them, and map the rule to its item: `craft-N/*` → Craft N, `lint/*` → its rubric item, Craft 4 by default.
20
20
  - A layout-suite result, only if the out dir has one.
21
21
 
22
- A shot with status `not-declared`, `absent` (a hover, focus or tooltip state not reachable at that viewport, or an anchor that declares itself missing in that state with `data-shot-absent`; the note says why) or `skipped` (mobile hover and tooltip: touch has no hover, by design) is not a defect, except a `not-declared` URL-state shot noted `page declares no data-shot-states`: no state was ever rendered, and `shot detect` reports it as `craft-7/no-declared-states`. A hidden `rest` anchor is an `error` shot, a defect, never `absent`. A missing hover, focus or tooltip crop for an anchor that has such a target is (Craft 7).
22
+ A shot with status `not-declared`, `absent` (a hover, focus or tooltip state not reachable at that viewport, or an anchor that declares itself missing in that state with `data-shot-absent`; the note says why) or `skipped` (mobile hover and tooltip: touch has no hover, by design) is not a defect, except a `not-declared` URL-state shot noted `page declares no data-shot-states`: no state was ever rendered, and `shot detect` reports it as `craft-7/no-declared-states` (P2, reported and non-failing) when an anchor renders a state surface, naming those anchors and the `data-shot-states="empty loading error"` to add; a route with no such anchor gets no finding. A hidden `rest` anchor is an `error` shot, a defect, never `absent`. A missing hover, focus or tooltip crop for an anchor that has such a target is (Craft 7).
23
23
 
24
24
  ## Fail closed
25
25
 
@@ -12,7 +12,7 @@ Method only; the law is `.claude/rules/basalt-*.md` and `./DESIGN.md`. Each step
12
12
  2. **Scenario.** Realistic fixture data. Decide which metrics earn a hue (trend, status, separation; the rest neutral), the one primary action per view, each control's home (a `SettingsRow` preference via `createLocalStore`, never `useState`).
13
13
  3. **Encoding: is it even a chart?** Run the router, then pick each encoding from the data's shape, then the shipped composite. A gap is reported, not routed around; no row fits the data → say so, never default to a number in a box. `references/catalogue.md`. A metric tile follows the slot contract in `references/stat-tile.md`.
14
14
  4. **Build** with Mantine primitives and the composites; every color from `VX.*` or a series token. Chart kinds and `ChartCard` import from `basalt-ui/charts`, `BasaltDataTable` from `basalt-ui/table`, `FilterSet` and the other filters from `basalt-ui/controls`, the rest from `basalt-ui`. Hold the encoding law (`references/encoding-rules.md`: axes, color, tooltips, refetch, filters, number typography) and avoid the dashboard tells (`references/anti-defaults.md`: fact-only copy, uniform cards, one radius). Tune by eye in the theme lab (`dev.theme` Spotlight command, dev only) in both schemes, then bake values into the `derive` knobs of `createBasaltTheme` and series colors into `src/lib/series.ts`.
15
- 5. **Mark up for the board.** Tag each scored component `data-shot="<name>"`; hover and tooltip targets inside it get `data-shot-hover` / `data-shot-tooltip`; when the target's centre paints no readout (a donut's hole), add `data-shot-at="x,y"` (fractions of its box, e.g. `0.25,0.2`) and the shot hovers there. Declare supported states with `data-shot-states="empty loading error"` and render them when the `shot-state` URL param asks; a route declaring none is a P1 (`craft-7/no-declared-states`). An anchor legitimately absent in some states declares them with `data-shot-absent="empty error"`.
15
+ 5. **Mark up for the board.** Tag each scored component `data-shot="<name>"`; hover and tooltip targets inside it get `data-shot-hover` / `data-shot-tooltip`; when the target's centre paints no readout (a donut's hole), add `data-shot-at="x,y"` (fractions of its box, e.g. `0.25,0.2`) and the shot hovers there. Declare supported states with `data-shot-states="empty loading error"` and render them when the `shot-state` URL param asks; a route declaring none is a P2 (`craft-7/no-declared-states`), raised only when an anchor renders a state surface. An anchor legitimately absent in some states declares them with `data-shot-absent="empty error"`.
16
16
  6. **Rounds, at least three.** Playwright is the app's dev dependency: `bun add -d playwright && bunx playwright install chromium`. Then:
17
17
  - `basalt-ui shot <routes> --dist <built app>` (or `--base <url>` for a running server); a real, signed-in app (live data, no `data-shot` yet): `basalt-ui shot /overview --dist dist --api /api=https://app.example.com --local-storage auth-token=@env:APP_TOKEN --auto-anchors` seeds the token (app origin only; `@env:`/`@file:`, never inline), proxies GET/HEAD under `/api` (writes get 405 unless `--api-allow-writes`) and crops every large Card, Paper and table. One `--header authorization=@env:NAME` goes to EVERY `--api` origin (https required for any secret), never on a navigation. A redirect, 401/403/404, 5xx or dead API fails every shot of that page; a key the app already holds is never overwritten. These shots reach the reviewer subagent's model provider, the session's own: an app holding third parties' data should point `--api` at staging or synthetic data;
18
18
  - review with TWO isolated passes: (A) hand the out dir (`.basalt/shots`) to the `basalt-design-reviewer` subagent by name; it reads each component's contact sheet (`png/*__sheet.png`) and every page shot; (B) run the deterministic detector `basalt-ui shot detect` on the same out dir (exit 0 clean / 2 findings / 1 scan failure). A review the builder runs inline instead of the subagent starts with a `DEGRADED` banner and does not count as done;
@@ -1 +1 @@
1
- {"version":3,"file":"BandStrip.d.ts","sourceRoot":"","sources":["../../src/charts/BandStrip.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAMzC,OAAO,KAAK,EAAS,eAAe,EAAE,MAAM,aAA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A;QAC1B,uEAAuE;QACvE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAC3B,GACD,SAAS,CAAA;CACd,CAAA;AAED,yFAAyF;AACzF,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;IACxB,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B;;;;OAIG;IACH,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,IAAI,CACxF,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,EACzB,OAAO,GAAG,QAAQ,GAAG,GAAG,GAAG,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAClE,GAAG;IACF,MAAM,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG;QAAE,GAAG,EAAE,CAAC,CAAA;KAAE,CAAC,EAAE,CAAA;IACpD,oGAAoG;IACpG,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,QAAQ,CAAA;IAC3B,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;IAC9B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,SAAS,CAAA;CAC5B,CAAA;AA2OD,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,EAC/E,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAC7B,YAAY,CAgLd"}
@@ -8,7 +8,14 @@ import { oneOf, requiredProp } from "../common/errors.js";
8
8
  import { NON_FINITE } from "../format/shared.js";
9
9
  import { VX, alpha } from "../tokens/index.js";
10
10
  import { CartesianRung } from "./CartesianChart.js";
11
- import { GLYPH_MIN_PX, glyphOf, groupsOf, resolveNamedState } from "./band-fold.js";
11
+ import {
12
+ BAND_GLYPH_MIN_PX,
13
+ NOTCH_PX,
14
+ glyphOf,
15
+ groupsOf,
16
+ resolveNamedState,
17
+ toneOf
18
+ } from "./band-fold.js";
12
19
  import { emphasis } from "./marks.js";
13
20
  import { rowX } from "./types.js";
14
21
  const DEFAULT_MIN_BAND_PX = 3;
@@ -95,6 +102,7 @@ function layoutBands(input) {
95
102
  };
96
103
  const hits = [];
97
104
  const glyphs = [];
105
+ const notches = /* @__PURE__ */ new Map();
98
106
  for (const g of groups) {
99
107
  const datum = fold && g.items.length > 1 ? fold.merge(g.items) : g.items[0];
100
108
  if (datum === void 0) continue;
@@ -103,9 +111,26 @@ function layoutBands(input) {
103
111
  const answers = paintSpan(ctx, span, cell);
104
112
  const named = input.states.get(span.state);
105
113
  const glyph = named && glyphOf(named);
106
- if (answers.primary && glyph && (cell.f1 - cell.f0) * input.width >= GLYPH_MIN_PX) {
114
+ if (answers.primary && glyph) {
107
115
  const share = absentShareOf(span, absentKey);
108
- glyphs.push({ f: cell.f0 + (cell.f1 - cell.f0) * (1 - share) / 2, glyph });
116
+ const width = cell.f1 - cell.f0;
117
+ if (width * input.width >= BAND_GLYPH_MIN_PX - 1e-6)
118
+ glyphs.push({ f: cell.f0 + width * (1 - share) / 2, glyph });
119
+ else {
120
+ const px = NOTCH_PX[toneOf(named) === "bad" ? "bad" : "warn"];
121
+ const fill = span.fill ?? named.color;
122
+ paintInto(
123
+ notches,
124
+ `color-mix(in srgb, ${fill} 50%, ${VX.ink})`,
125
+ input.emphasis(span.state),
126
+ {
127
+ f0: cell.f0,
128
+ f1: cell.f0 + width * (1 - share),
129
+ y0: 0,
130
+ y1: Math.min(px / Math.max(input.height, 1), 0.5)
131
+ }
132
+ );
133
+ }
109
134
  }
110
135
  g.items.forEach((source, i) => {
111
136
  const slot = g.start + i;
@@ -114,7 +139,13 @@ function layoutBands(input) {
114
139
  hits.push({ slot, source, state: absentKey, datum });
115
140
  });
116
141
  }
117
- return { base: [...ctx.base.values()], markers: [...ctx.markers.values()], hits, glyphs };
142
+ return {
143
+ base: [...ctx.base.values()],
144
+ markers: [...ctx.markers.values()],
145
+ hits,
146
+ glyphs,
147
+ notches: [...notches.values()]
148
+ };
118
149
  }
119
150
  function BandStrip(props) {
120
151
  const {
@@ -155,7 +186,7 @@ function BandStrip(props) {
155
186
  );
156
187
  const marks = useCallback(
157
188
  (plot) => {
158
- const { base, markers, hits, glyphs } = layoutBands({
189
+ const { base, markers, hits, glyphs, notches } = layoutBands({
159
190
  data,
160
191
  getBand,
161
192
  fold,
@@ -188,6 +219,21 @@ function BandStrip(props) {
188
219
  })
189
220
  )
190
221
  ),
222
+ ...notches.map(
223
+ ({ fill, opacity, cells }, i) => decorative(
224
+ rect(cells, {
225
+ id: `band-notches-${i}`,
226
+ x1: "f0",
227
+ x2: "f1",
228
+ y1: "y0",
229
+ y2: "y1",
230
+ xScale: "zx",
231
+ fill,
232
+ inset: 0,
233
+ ...opacity < 1 && { fillOpacity: opacity }
234
+ })
235
+ )
236
+ ),
191
237
  ...glyphs.length > 0 ? [
192
238
  decorative(
193
239
  text(glyphs, {
@@ -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;AAIzC,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,GAAG,MAAM,CAChG,GAAG;IACF,oBAAoB;IACpB,WA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
58
58
  z: "series",
59
59
  fill,
60
60
  // The hovered x is its own highlight: the bar reads at full strength (no dimming, no
61
- // point marker, no crosshair rule: that is line-chart chrome).
61
+ // point marker, no crosshair rule: that is line-chart chrome; `focusRing={false}` on the rung).
62
62
  states: [{ when: { focus: "x" }, style: { fill: solid } }],
63
63
  layout: layout === "grouped" ? group({ padding: 0.1 }) : stack({ order, ...layout === "normalized" && { offset: "normalize" } })
64
64
  })
@@ -79,6 +79,7 @@ function Bars(props) {
79
79
  marks,
80
80
  band: true,
81
81
  crosshair: false,
82
+ focusRing: false,
82
83
  reverseRows: layout !== "grouped",
83
84
  ...layout !== "grouped" && { stack: layout }
84
85
  }
@@ -14,6 +14,8 @@ export type RungOptions = {
14
14
  tooltipBelow?: boolean;
15
15
  /** No vertical rule under the cursor (a bar kind's hover is the bar itself). */
16
16
  crosshair?: boolean;
17
+ /** No engine point marker on the focused datum (a bar kind's hover is the bar itself). */
18
+ focusRing?: boolean;
17
19
  /** The legend goes from the wide class up, where `Lines`' end labels name the series. */
18
20
  hideLegendAtWide?: boolean;
19
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CartesianChart.d.ts","sourceRoot":"","sources":["../../src/charts/CartesianChart.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAiB,YAAY,EAAa,MAAM,OAAO,CAAA;AAGnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAK/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEvE,6DAA6D;AAC7D,MAAM,MAAM,WAAW,GAAG;IACxB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,yDAAyD;IACzD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,sDAAsD;IACtD,KAAK,CAAC,EAAE,SAAS,GAAG,YAAY,CAAA;I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A;IACb,gFAAgF;IAChF,IAAI,EAAE,SAAS,GAAG,IAAI,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,IAAI,CACnC,mBAAmB,CAAC,CAAC,EAAE,MAAM,CAAC,EAC9B,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,CACpE,GAAG;IACF,qCAAqC;IACrC,MAAM,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,EAAE,CAAA;IACjC,6FAA6F;IAC7F,OAAO,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,mBAAmB,CAAA;IACnD,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,YAAY,CAkFrE;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAC/C,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,WAAW,GAC7C,YAAY,CA0Bd;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAChD,KAAK,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC/B,YAAY,CAEd"}
@@ -9,7 +9,7 @@ export type ChartFact = {
9
9
  /** Usually a `DeltaBadge`. */
10
10
  comparison?: ReactNode;
11
11
  /** Plain text the figure covers, e.g. `last 30 d`. A list is joined by ` · ` (`['last entry 3 d
12
- * ago', '12 entries']`). */
12
+ * ago', '12 entries']`) and, behind a `unit`, led by one. */
13
13
  period?: string | readonly string[] | undefined;
14
14
  /** Ink for the whole fact (text only, never a fill): a stale or off-target figure reads `warn`. */
15
15
  tone?: ChartFactTone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ACL,QAAQ,EACR,KAAK,EACL,GAAG,MAAM,EACV,EAAE,cAAc,GAAG,YAAY,CAqD/B"}
@@ -55,6 +55,13 @@ const bodyClipStyle = {
55
55
  flexDirection: "column",
56
56
  padding: "2px var(--vx-space-card-inset-x, 1rem) var(--vx-space-card-inset-y, 0.75rem)"
57
57
  };
58
+ const PERIOD_SEPARATOR = "\xB7 ";
59
+ function periodText(period, afterUnit) {
60
+ if (typeof period === "string") return period;
61
+ if (period.length === 0) return "";
62
+ const text = period.join(" \xB7 ");
63
+ return afterUnit && !text.startsWith(PERIOD_SEPARATOR.trim()) ? PERIOD_SEPARATOR + text : text;
64
+ }
58
65
  const definedOnly = (o) => Object.fromEntries(Object.entries(o).filter(([, v]) => v !== void 0));
59
66
  const HEADER_TRIGGERS = ["title", "info", "value", "icon", "count"];
60
67
  function Facts({
@@ -70,21 +77,24 @@ function Facts({
70
77
  "data-basalt-facts-row": "",
71
78
  ...stale && { "data-stale": "true" },
72
79
  className: classes.factsRow,
73
- children: list.map((f, i) => /* @__PURE__ */ jsxs(
74
- "span",
75
- {
76
- "data-basalt-fact": "",
77
- ...f.tone !== void 0 && { "data-tone": f.tone },
78
- className: classes.fact,
79
- children: [
80
- /* @__PURE__ */ jsx("span", { "data-basalt-fact-value": "", className: classes.factValue, children: f.value }),
81
- f.unit !== void 0 && /* @__PURE__ */ jsx("span", { className: classes.factUnit, children: f.unit }),
82
- f.comparison,
83
- f.period !== void 0 && /* @__PURE__ */ jsx("span", { className: classes.factPeriod, children: typeof f.period === "string" ? f.period : f.period.join(" \xB7 ") })
84
- ]
85
- },
86
- i
87
- ))
80
+ children: list.map((f, i) => {
81
+ const period = f.period === void 0 ? "" : periodText(f.period, f.unit !== void 0);
82
+ return /* @__PURE__ */ jsxs(
83
+ "span",
84
+ {
85
+ "data-basalt-fact": "",
86
+ ...f.tone !== void 0 && { "data-tone": f.tone },
87
+ className: classes.fact,
88
+ children: [
89
+ /* @__PURE__ */ jsx("span", { "data-basalt-fact-value": "", className: classes.factValue, children: f.value }),
90
+ f.unit !== void 0 && /* @__PURE__ */ jsx("span", { className: classes.factUnit, children: f.unit }),
91
+ f.comparison,
92
+ period !== "" && /* @__PURE__ */ jsx("span", { className: classes.factPeriod, children: period })
93
+ ]
94
+ },
95
+ i
96
+ );
97
+ })
88
98
  }
89
99
  ),
90
100
  basis !== void 0 && /* @__PURE__ */ jsx("p", { "data-basalt-facts-basis": "", className: classes.factsBasis, children: basis })
@@ -4,7 +4,12 @@ import type { ChartState } from './types.js';
4
4
  export type SparklineProps = BasaltProps & {
5
5
  /** The accessible name. Required: a chart without one is an unlabeled image. */
6
6
  ariaLabel: string;
7
- data: readonly number[];
7
+ /** The values, or `{ at, value }` points: `at` (a Date, epoch ms or ISO string) names the point in
8
+ * the readout, as a day or, within one day, an hour, in the page's format locale. */
9
+ data: readonly number[] | readonly {
10
+ at: Date | number | string;
11
+ value: number;
12
+ }[];
8
13
  /** Height in px. */
9
14
  height: number;
10
15
  /** Width in px. Default: the container's, measured by the host. */
@@ -33,7 +38,8 @@ export type SparklineProps = BasaltProps & {
33
38
  /** Formats the readout's value. Default: the compact number format. */
34
39
  format?: ((value: number) => string) | undefined;
35
40
  /** The readout's x label per point, index-aligned with `data`: pass the point's day ("12 Oct"),
36
- * and the readout reads `3 items · 12 Oct` beside the point. Omitted: the value alone. */
41
+ * and the readout reads `3 items · 12 Oct` beside the point. Omitted: the moment of an `{ at }`
42
+ * point, else the value alone. */
37
43
  labels?: readonly string[] | undefined;
38
44
  };
39
45
  type Point = {
@@ -1 +1 @@
1
- {"version":3,"file":"Sparkline.d.ts","sourceRoot":"","sources":["../../src/charts/Sparkline.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAA0D,YAAY,EAAE,MAAM,OAAO,CAAA;AAEjG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAUlD,OAAO,KAAK,EAAc,UAAU,EAAE,MAAM,SAAS,CAAA;AAErD,MAAM,MAAM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