basalt-ui 2.15.0 → 2.17.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 (152) hide show
  1. package/CHANGELOG.md +157 -105
  2. package/MIGRATING.md +160 -12
  3. package/agent/agents/basalt-design-reviewer.md +3 -3
  4. package/agent/rules/basalt-mantine.md +1 -1
  5. package/agent/skills/basalt-design/SKILL.md +2 -2
  6. package/configs/card-inset.test.ts +57 -0
  7. package/configs/oxlint-basalt.json +1 -1
  8. package/configs/oxlint-plugin.js +42 -18
  9. package/configs/oxlint-plugin.test.ts +37 -6
  10. package/dist/agent/chat/thread-message.js +1 -1
  11. package/dist/agent/chat/thread-outcome-card.js +1 -1
  12. package/dist/charts/ChartCard.js +1 -1
  13. package/dist/charts/Donut.d.ts.map +1 -1
  14. package/dist/charts/Donut.js +2 -2
  15. package/dist/charts/DualPanel.js +2 -2
  16. package/dist/charts/Heatmap.d.ts.map +1 -1
  17. package/dist/charts/Heatmap.js +2 -2
  18. package/dist/charts/MirroredBars.js +2 -2
  19. package/dist/charts/Sparkline.d.ts +4 -2
  20. package/dist/charts/Sparkline.d.ts.map +1 -1
  21. package/dist/charts/Sparkline.js +3 -3
  22. package/dist/charts/chart-card.module.css +2 -2
  23. package/dist/charts/compile.d.ts +8 -3
  24. package/dist/charts/compile.d.ts.map +1 -1
  25. package/dist/charts/compile.js +19 -9
  26. package/dist/charts/cursor.d.ts +14 -1
  27. package/dist/charts/cursor.d.ts.map +1 -1
  28. package/dist/charts/cursor.js +29 -3
  29. package/dist/charts/date-tick-format.d.ts +17 -0
  30. package/dist/charts/date-tick-format.d.ts.map +1 -0
  31. package/dist/charts/date-tick-format.js +81 -0
  32. package/dist/charts/panel.d.ts +2 -1
  33. package/dist/charts/panel.d.ts.map +1 -1
  34. package/dist/charts/panel.js +3 -2
  35. package/dist/charts/types.d.ts +5 -1
  36. package/dist/charts/types.d.ts.map +1 -1
  37. package/dist/cli/shot/board.js +1 -1
  38. package/dist/cli/shot/capture.d.ts +16 -0
  39. package/dist/cli/shot/capture.d.ts.map +1 -1
  40. package/dist/cli/shot/capture.js +24 -3
  41. package/dist/cli/shot/measure.d.ts +21 -2
  42. package/dist/cli/shot/measure.d.ts.map +1 -1
  43. package/dist/cli/shot/measure.js +20 -5
  44. package/dist/cli/shot/playwright.d.ts +4 -0
  45. package/dist/cli/shot/playwright.d.ts.map +1 -1
  46. package/dist/cli/shot/types.d.ts +3 -2
  47. package/dist/cli/shot/types.d.ts.map +1 -1
  48. package/dist/dashboard/delta-badge.d.ts +2 -2
  49. package/dist/dashboard/delta-badge.d.ts.map +1 -1
  50. package/dist/dashboard/delta-badge.js +12 -14
  51. package/dist/dashboard/query-state.d.ts +35 -0
  52. package/dist/dashboard/query-state.d.ts.map +1 -1
  53. package/dist/dashboard/query-state.js +12 -1
  54. package/dist/dashboard/settings-section.d.ts.map +1 -1
  55. package/dist/dashboard/settings-section.js +5 -2
  56. package/dist/dashboard/stat-card-parts.d.ts +40 -0
  57. package/dist/dashboard/stat-card-parts.d.ts.map +1 -0
  58. package/dist/dashboard/stat-card-parts.js +55 -0
  59. package/dist/dashboard/stat-card.d.ts +46 -34
  60. package/dist/dashboard/stat-card.d.ts.map +1 -1
  61. package/dist/dashboard/stat-card.js +157 -88
  62. package/dist/dashboard/stat-card.module.css +222 -9
  63. package/dist/dashboard/stat-card.module.css.d.ts +20 -0
  64. package/dist/dashboard/widget-header.d.ts.map +1 -1
  65. package/dist/dashboard/widget-header.js +73 -9
  66. package/dist/dashboard/widget-header.module.css +28 -20
  67. package/dist/guard/guard-hook.d.ts.map +1 -1
  68. package/dist/guard/index.d.ts +4 -2
  69. package/dist/guard/index.d.ts.map +1 -1
  70. package/dist/guard/index.js +18 -4
  71. package/dist/guard/vx-names.d.ts.map +1 -1
  72. package/dist/guard/vx-names.js +1 -0
  73. package/dist/shell/app-mobile-nav.module.css +2 -2
  74. package/dist/shell/app-sidebar-account.js +1 -1
  75. package/dist/shell/app-sidebar.js +2 -2
  76. package/dist/shell/app-sidebar.module.css +8 -8
  77. package/dist/shell/index.js +5 -1
  78. package/dist/shell/page-bar.js +1 -1
  79. package/dist/table/data-table.d.ts.map +1 -1
  80. package/dist/table/data-table.js +3 -0
  81. package/dist/theme/chrome-vars.d.ts +82 -0
  82. package/dist/theme/chrome-vars.d.ts.map +1 -0
  83. package/dist/theme/chrome-vars.js +36 -0
  84. package/dist/theme/controls.module.css +20 -1
  85. package/dist/theme/controls.module.css.d.ts +1 -0
  86. package/dist/theme/index.d.ts.map +1 -1
  87. package/dist/theme/index.js +61 -54
  88. package/dist/tokens/core.d.ts +10 -4
  89. package/dist/tokens/core.d.ts.map +1 -1
  90. package/dist/tokens/core.js +16 -10
  91. package/dist/tokens/ctl-vars.d.ts +15 -0
  92. package/dist/tokens/ctl-vars.d.ts.map +1 -0
  93. package/dist/tokens/ctl-vars.js +22 -0
  94. package/dist/tokens/derive.d.ts.map +1 -1
  95. package/dist/tokens/derive.js +2 -2
  96. package/dist/tokens/palette.d.ts +37 -29
  97. package/dist/tokens/palette.d.ts.map +1 -1
  98. package/dist/tokens/palette.js +32 -21
  99. package/dist/tokens/space-scale.d.ts +14 -0
  100. package/dist/tokens/space-scale.d.ts.map +1 -0
  101. package/dist/tokens/space-scale.js +10 -0
  102. package/llms.txt +6 -3
  103. package/package.json +1 -1
  104. package/src/agent/chat/thread-message.tsx +1 -1
  105. package/src/agent/chat/thread-outcome-card.tsx +2 -2
  106. package/src/charts/ChartCard.tsx +1 -1
  107. package/src/charts/Donut.tsx +2 -2
  108. package/src/charts/DualPanel.tsx +2 -2
  109. package/src/charts/Heatmap.tsx +2 -2
  110. package/src/charts/MirroredBars.tsx +2 -2
  111. package/src/charts/Sparkline.tsx +7 -5
  112. package/src/charts/chart-card.module.css +2 -2
  113. package/src/charts/compile.ts +31 -11
  114. package/src/charts/cursor.ts +48 -3
  115. package/src/charts/date-tick-format.ts +132 -0
  116. package/src/charts/panel.tsx +5 -3
  117. package/src/charts/types.ts +5 -1
  118. package/src/cli/shot/board.ts +1 -1
  119. package/src/cli/shot/capture.ts +35 -3
  120. package/src/cli/shot/measure.ts +33 -6
  121. package/src/cli/shot/playwright.ts +1 -1
  122. package/src/cli/shot/types.ts +3 -2
  123. package/src/dashboard/delta-badge.tsx +24 -18
  124. package/src/dashboard/query-state.tsx +38 -0
  125. package/src/dashboard/settings-section.tsx +5 -2
  126. package/src/dashboard/stat-card-parts.tsx +108 -0
  127. package/src/dashboard/stat-card.module.css +222 -9
  128. package/src/dashboard/stat-card.module.css.d.ts +20 -0
  129. package/src/dashboard/stat-card.tsx +291 -183
  130. package/src/dashboard/widget-header.module.css +28 -20
  131. package/src/dashboard/widget-header.tsx +103 -7
  132. package/src/guard/guard-hook.ts +3 -1
  133. package/src/guard/index.ts +27 -13
  134. package/src/guard/vx-names.ts +1 -0
  135. package/src/shell/app-mobile-nav.module.css +2 -2
  136. package/src/shell/app-sidebar-account.tsx +1 -1
  137. package/src/shell/app-sidebar.module.css +8 -8
  138. package/src/shell/app-sidebar.tsx +2 -2
  139. package/src/shell/index.tsx +10 -4
  140. package/src/shell/page-bar.tsx +1 -1
  141. package/src/table/data-table.tsx +10 -4
  142. package/src/theme/__snapshots__/plain-theme.test.ts.snap +185 -85
  143. package/src/theme/chrome-vars.ts +111 -0
  144. package/src/theme/controls.module.css +20 -1
  145. package/src/theme/controls.module.css.d.ts +1 -0
  146. package/src/theme/ctl-theme.tsx +1 -1
  147. package/src/theme/index.ts +82 -124
  148. package/src/tokens/core.ts +16 -8
  149. package/src/tokens/ctl-vars.ts +32 -0
  150. package/src/tokens/derive.ts +7 -2
  151. package/src/tokens/palette.ts +40 -29
  152. package/src/tokens/space-scale.ts +13 -0
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 | 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 | — | — | — | — | — | — | — | — | — | — | — | — |
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) | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
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) | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
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) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
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 | — | — | — | — | — | — | — | — | — | — | — | — |
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 | — | — | — | — | — | — | — | — | — | — | — | — |
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 | 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) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
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) | — | — |
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) | — | — |
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) | — | — |
81
81
 
82
82
  ---
83
83
 
@@ -1046,6 +1046,154 @@ 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.17.0 — the metric card and chrome
1050
+
1051
+ Wave 33 of the design-parity track (`docs/waves/design-parity/SPEC.md` § 6.10, § 6.12). No export is
1052
+ added, removed or renamed; three theme defaults change, each with a one-prop way back.
1053
+
1054
+ - **Grace extended: `basalt/card-inset`, `raw-spacing` and `inline-spacing` stay `warn` until 2.24.0** (they were dated 2.17.0). No consumer has run 2.16 yet, so promoting them now would skip their warn period. They become `error` at the fleet rollout.
1055
+
1056
+ ### Badge, subtle Button, Tabs
1057
+
1058
+ | What | Old | New | Opt out |
1059
+ | ------------------------------- | -------------------------------------- | --------------------------------------------------------- | -------------------------------------------------------------------- |
1060
+ | `Badge` default variant | `filled` (accent fill, on-colour text) | `light` (13% status tint, ink-pulled text) | `variant="filled"` |
1061
+ | `Badge` default colour | the primary colour (accent tint) | `gray` (neutral tint); the accent is not a status default | a Badge that relied on the accent default passes `color="<primary>"` |
1062
+ | `Badge` radius | `ctrl` (6 at level 0) | `tight` (5 at level 0; follows the `radius` knob) | `radius="md"` |
1063
+ | `Badge` leading glyph | Mantine's section, 4px gap, unsized | `leftSection` svg is 12px, 4px gap, centred at 20 high | `classNames={{ section: … }}` override |
1064
+ | `Button variant="subtle"` label | accent ink | neutral ink (`--vx-ink`) | `color="blue"` (any explicit colour) |
1065
+ | `Tabs` active underline | accent (`--tabs-color`) | ink (`--vx-ink`) | `color="blue"` on `Tabs` |
1066
+
1067
+ - `Badge` height stays 20 (Mantine `md`). `filled` remains right for a count on an accent surface.
1068
+ - The subtle opt-out is any explicit `color` prop, the primary colour included. An explicit colour
1069
+ keeps Mantine's own tinted label **and hover**: the ink-6% hover (1.x–2.16) now applies only to a
1070
+ subtle control that names no colour, so `color="blue"` hovers into the accent tint again.
1071
+ - `Tabs variant="pills"` is untouched: it fills with the colour, so it keeps the accent.
1072
+
1073
+ ### StatCard and Sparkline
1074
+
1075
+ Wave 33 of the design-parity track restyles the metric card (`docs/waves/design-parity/SPEC.md` § 6.1, § 6.2) and flips the `Sparkline` defaults. No export is removed or renamed, but **the `state` field of the `StatCardSparklineSize` type is removed** and the defaults and the card's anatomy change.
1076
+
1077
+ | What | Old | New | Opt-out / replacement |
1078
+ | ----------------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
1079
+ | `Sparkline` `emphasizeLast` | `false` (no end dot) | `true` | `emphasizeLast={false}` |
1080
+ | `Sparkline` `emphasisColor` | `VX.accent` | `VX.line` (the line's own neutral) | `emphasisColor={VX.accent}`, or a status / trend colour |
1081
+ | `Sparkline` stroke | 1.6 | 1.5 | none |
1082
+ | `StatCard` composition | composed `WidgetHeader tier="widget"` (head-font title, merged title row ≥ 480) | renders its own caption row, value row and foot; `WidgetHeader`, `Section` and `ChartCard` are unchanged | `classNames.header` still reaches the caption + value block; there is no `WidgetHeader` slot to target |
1083
+ | `StatCard` `title` | head-font heading | mono uppercase `micro` caption, faint ink | none (`ChartCard` keeps its head-font title) |
1084
+ | `StatCard` `subtitle` | muted line under the title; folded into the info glyph below 480 px | **one muted `sm` line in the foot, under the visual, at every width**; ellipsized, full text in `title` | a period or target → the new `qualifier`; a method → `info`; a source or "as of" stays in `subtitle` |
1085
+ | `StatCard` `qualifier` | — | new `string`: `micro` muted, right-aligned on the caption row; when caption and qualifier do not fit it takes its own line under the caption, left-aligned, and breaks its words only if it alone exceeds the card | keep it on one line by shortening the copy |
1086
+ | `StatCard` value row | delta on the title row from 480 px | figure, `unit` inline at `sm` muted, then the delta, in one row at every width | none |
1087
+ | `StatCard` sparkline slot | 26 px, bled through the card bottom | 22 px (`'right'` slot 72×22), bled to the side edges, in the foot above the footer; the render prop receives `height: 22` | none |
1088
+ | `StatCard` footprint | height followed content | the foot reserves 22 + 4 + 20 px when a `sparkline` (bleed) or `subtitle` exists, so cards with and without either share a height; `'right'` keeps its 72×22 slot while pending | none |
1089
+ | `StatCard` `query` | `QueryState` wrapped the breakdown only; pending was a spinner, empty was blank | resolved by `resolveQueryBranch` (error > pending > empty > ready): pending is a skeleton at the card's footprint, empty is one muted line, error is `QueryState`'s error + Retry in place of the figure | `value` needs no `'—'` placeholder while pending |
1090
+ | `StatCard` `emptyText` | — | new `string`, default `No data for this period` | pass your own sentence that says why it is empty |
1091
+ | `StatCard` `loading` | — | new `boolean`: the same skeleton with no query, with a visually hidden `Loading <title>` and `aria-busy` | — |
1092
+ | `StatCardSparklineSize.state` | the query as a chart state, so `<Sparkline {...size} />` drew its own placeholder | **removed**: the card shows its own skeleton / error / empty branch and never calls the render prop outside `ready` | spread `size` as before; the placeholder is now the card's branch, not the chart's |
1093
+ | `DeltaBadge` / `deltaPeriod` | status colour on a 13 % tint, padding, control radius | text only: glyph and signed figure in `var(--vx-status-good\|bad)` (or `--vx-faint` for zero / neutral), no fill, no padding; `deltaPeriod` is `micro` muted | none |
1094
+ | `DeltaBadge` glyph | 0.8 em of its parent (9.6 px) | the `micro` rung (11 px) | none |
1095
+
1096
+ - **Behaviour: the delta is text only.** `DeltaBadge` paints no background in either scheme (DESIGN-CORE: "deltas are text colour only, never a fill"), so it reads the derived status token directly. `Section` and `WidgetHeader` deltas follow, since they render the same `DeltaBadge`.
1097
+ - **Behaviour: two status solids moved so the text clears 4.5:1.** With no tint behind it, the delta (and a toned `breakdown` row) is judged on the card surface. At the default seed `status.warn` (light) goes from tone 54.64 to 46 and `status.bad` (dark) from 58.58 to 66.5; hue and chroma are untouched. Every other use of those two solids (tone rail, ref lines, zone bands, the on-colour text on a status fill) reads the new hexes. `derive.test.ts` proves ≥ 4.5:1 for good / warn / bad on every text surface **at the default derive config only**; a retuned `derive` (`lightLevel`, `darkLevel`, `neutral`) is not covered by that proof.
1098
+ - **Behaviour: the `info` bubble is placed in the viewport.** It is portalled to `<body>` with `position: fixed`, opens below the glyph, flips above at the bottom edge and shifts off the left / right edges, so a card's `overflow: hidden` can no longer clip it (W32 rounds 0-3 at 390). `InfoGlyph` is shared, so `ChartCard`, `Section` and the inspector row `hint` get the same bubble. **Tests that looked for the bubble inside the card should query `document.body`** (`getByRole('tooltip')` is unaffected). A folded subtitle's note inside the bubble is revealed from the bubble's own `data-folded`.
1099
+ - **Migrating a card:** `<StatCard title="Revenue" subtitle="Trailing 30 days" …/>` becomes `<StatCard title="Revenue" qualifier="30 days" subtitle="Source: billing" …/>` — the period moves to `qualifier`, and `subtitle` is kept only for a source or "as of" line that does not restate the caption. Drop `icon` (it stays a prop; the recipe leaves it off).
1100
+ - **Migrating a sparkline:** a `Sparkline` that relied on the bare line now draws an end dot in the line neutral — pass `emphasizeLast={false}`. One that passed `emphasizeLast` alone drew a `VX.accent` dot; it now draws `VX.line`, so pass `emphasisColor={VX.accent}` to keep the accent (or a status colour where the end value carries a verdict).
1101
+
1102
+ ### Date ticks
1103
+
1104
+ The default x tick labels of a Date axis (`CartesianChart`, so `Lines`, `Bars`, `StackedArea`) follow
1105
+ the tick step instead of printing `DD.MM` everywhere, and never repeat on one axis. Reads stay UTC.
1106
+
1107
+ | Tick step | Old | New |
1108
+ | --------- | --------------------- | -------------------------------------------------------------------------- |
1109
+ | sub-day | `17.10`, `17.10`, ... | `HH:MM`, `DD.MM` on each midnight tick (`12:00, 18:00, 18.10, 06:00, ...`) |
1110
+ | days | `DD.MM` | `DD.MM` (unchanged) |
1111
+ | months+ | `DD.MM` | `Oct`, the year on each January (`2027`) |
1112
+
1113
+ A clock or month may recur on one axis, always behind a day or year label. With no such marker in
1114
+ reach (36 h with no midnight tick; two Aprils with no January) the first tick of each day carries
1115
+ its date (`17.10 06:00`), or the month its year (`Apr 2026`); sub-minute steps add seconds, then
1116
+ milliseconds. `BandStrip`, `DualPanel` and `MirroredBars` take the same default (they printed
1117
+ `DD.MM`).
1118
+
1119
+ Opt out: pass `formatX` (it always wins), e.g. the old one-liner:
1120
+
1121
+ ```ts
1122
+ const ddmm = (d: Date) =>
1123
+ `${String(d.getUTCDate()).padStart(2, '0')}.${String(d.getUTCMonth() + 1).padStart(2, '0')}`
1124
+ <Lines formatX={ddmm} … />
1125
+ ```
1126
+
1127
+ | Hover readout selector | Old | New |
1128
+ | ---------------------------------- | ----------------- | ----------------------------------- |
1129
+ | `.ts-chart-tooltip[role="status"]` | the engine's role | `.ts-chart-tooltip[role="tooltip"]` |
1130
+
1131
+ The hover readout now carries `role="tooltip"` (it was the engine's `role="status"`) and keeps
1132
+ `aria-live="polite"` on purpose: a tooltip role alone is not announced, and keyboard users should still
1133
+ hear the reading; a test that queried `.ts-chart-tooltip[role="status"]` must follow. `Donut`'s and `Heatmap`'s readouts follow.
1134
+
1135
+ ## 2.16.0 — the even-pixel grid
1136
+
1137
+ Wave 32 of the design-parity track moves the spacing, inset, radius and type scales onto an
1138
+ even-pixel grid (`docs/waves/design-parity/SPEC.md` § 5). No export is removed or renamed; **every
1139
+ number below changes at level 0**, so a layout that was tuned against the old scale moves. Plain
1140
+ `feat:` — the way back is **partial**: `density` and `radius` bring back some numbers (last table), the page gutter, the type sizes and the faint ink have no knob.
1141
+
1142
+ | What | Old | New |
1143
+ | ------------------------------------------------ | ---------------------------- | -------------------------------------- |
1144
+ | Mantine spacing `xs / sm / md / lg / xl` | 11 / 13 / 18 / 20 / 26 | 8 / 12 / 16 / 20 / 24 |
1145
+ | `inline-spacing` guard default steps | 11, 13, 18, 20, 26 | 8, 12, 16, 20, 24 |
1146
+ | Card inset (`--vx-space-card-inset-y` / `-x`) | 11 / 13 | 12 / 16 |
1147
+ | Card horizontal inset below `sm` | 11 | 12 |
1148
+ | Page gutter, expanded size class (≥ 1200) | 16 | 24 (medium 16, compact 8 unchanged) |
1149
+ | `--vx-radius-card` | 7 | 10 |
1150
+ | `--vx-radius-floating` (card + 1) | 8 | 11 |
1151
+ | `SegmentedControl` track / indicator radius | 7 (card) / 5 (tight) | 6 (ctrl) / 4 (fine) |
1152
+ | Type `sm` (dense rows, table cells, menu items) | 13.5, line 1.45 | 13, 20px line |
1153
+ | Type `xs` | 12.5, line 1.4 | 12, 16px line |
1154
+ | Type `kpi` (hero numeral) | 24, weight 600 | 22, weight 500 |
1155
+ | Nav row / menu item / timeline font | `md` 15 | `sm` 13 (nav row stays 32 tall) |
1156
+ | `--vx-space-row-line-height` | 1.35 | 1.54 (a 20px line at `sm`) |
1157
+ | Table body cell font | inherited body | `sm` 13 (row 40 / header 36 unchanged) |
1158
+ | Table toolbar and `FilterSet` controls, fine ptr | 32 | 28 (`--vx-space-control-height-dense`) |
1159
+ | Axis ticks / chart small labels (`--vx-axis`) | ink at 60% — 4.06:1 on light | the `faint` ink — ≥ 4.5:1 both schemes |
1160
+
1161
+ - **Behaviour: spacing props and `--mantine-spacing-*` reads shrink.** `p="xs"` is 8 (was 11), `"sm"` 12 (was 13), `"md"` 16 (was 18), `"xl"` 24 (was 26); `"lg"` is unchanged. Hand-written `px={18}` / `gap={26}` no longer equal a step, and `raw-spacing` reports them.
1162
+ - **Behaviour: the CSS sub-scale ceiling of `inline-spacing` drops from 10px to 7px** (it sits one below the smallest stop, now 8). A CSS `padding: 8px` or `10px` is now a finding; 2 / 4 / 6px clusters stay legal.
1163
+ - **Behaviour: `basalt/card-inset` is strict.** The only accepted inset is the pair `py="sm" px="md"` (12/16) or leaving both to the theme. Uniform `p`/`padding` (any value) and every other pair, including the old `py="xs" px="sm"` (now 8/12), are findings. **Severity: `warn` for this minor, `error` from 2.24.0** (re-dated in 2.17.0) (`PLUGIN_RULE_GRACE`, one entry for the rule); that also demotes the rule's older findings (explicit `radius`, `p="lg"`) to `warn` for the minor, because a level is per rule id. Also flagged now: numeric or non-literal `py`/`px`, and a lone `py="sm"` or `px="md"` without its partner. Move each `<Card py="xs" px="sm">` to `py="sm" px="md"`.
1164
+ - **Behaviour: the compact card inset reads `--vx-space-card-inset-x` below `sm`**, and `StatCard`'s full-bleed sparkline now bleeds by the card inset tokens rather than the `sm`/`xs` scale stops, so the bleed matches the inset at every width.
1165
+ - **Behaviour: the `SegmentedControl` concentricity law restated.** `RADIUS.card === RADIUS_STEP.tight + segmentedTrackInset` could not hold at card 10, so the track now takes the control radius and the indicator the `fine` tier: `RADIUS.ctrl === RADIUS_STEP.fine + 2`, exact down to `radius: -4` (at `-5`, `fine` clamps to 0 against a 1px track).
1166
+ - **Behaviour: `shot` `metrics.json` `radius` may be the string `"full"`** (also on `nested[]`) for a fully rounded box (a `50%` circle or `9999px` pill); it was the number `50` or `9999`. A consumer reading it as a number checks the type first.
1167
+ - **Behaviour: `deriveSpacing(0).rowLineHeight` is 1.54** (was 1.35); the additive range across `density` −3..+3 is 1.44..1.64.
1168
+ - **Behaviour: the dense control tier is internal.** `PageBar`'s filter row (the `pills` line) and the `BasaltDataTable` toolbar carry `data-basalt-dense`; at a fine pointer their `ctl` controls resolve to 28. A coarse pointer keeps 32 and the 44px hit overlay. `--vx-space-control-height-dense` is the only new name.
1169
+ - **Added: `--vx-space-control-height-dense`.** An emitted token (28, floored at 24 by `density`); not exported from `basalt-ui/tokens`.
1170
+ - **Behaviour: the page gutter is a trial at the expanded class** (SPEC D7). `appShellInsetExpanded` is one constant in `tokens/palette.ts`; setting it equal to `appShellInset` reverts it.
1171
+
1172
+ ### Migrating the guards
1173
+
1174
+ `raw-spacing` and `inline-spacing` ship at **`warn` for this minor and `error` from 2.24.0** (re-dated in 2.17.0) (`GRACE_PERIOD_KINDS`, since 2.16.0): their steps follow the new scale, so after the upgrade `p={16}` and `gap={24}` are findings (use `"md"` / `"xl"`) and `p={18}` / `gap={26}` are no longer flagged. To migrate on your own schedule, in the consumer's `package.json`:
1175
+
1176
+ ```json
1177
+ "basalt": {
1178
+ "spacingSteps": [11, 13, 18, 20, 26],
1179
+ "severity": { "raw-spacing": "warn", "inline-spacing": "warn" }
1180
+ }
1181
+ ```
1182
+
1183
+ `spacingSteps` keeps the guard on the old numbers (matching a scale you have not moved off yet); `severity` pins both at `warn` past 2.24.0, when the grace entries are deleted and they become `error`. Drop both once the call sites read tokens. The CSS sub-scale ceiling (10 → 7px: a CSS `padding: 8px` or `10px` is now a finding) has no switch of its own; it rides on `inline-spacing`'s severity.
1184
+
1185
+ ### Restoring the old feel
1186
+
1187
+ | Dimension | Knob | Closest level, honestly |
1188
+ | ------------------------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1189
+ | Spacing scale | `density` | `+1` gives 9 / 13 / 18 / 22 / 26 — matches old `sm`, `md`, `xl`, misses `xs` (9 vs 11) and `lg` (22 vs 20). It also scales every other density-tracking number: control height 35, table row 44, gutter 26. |
1190
+ | Card inset | `density` | No level restores 11/13: `-1` gives 11/14, `0` gives 12/16. A consumer that wants the old inset sets `--vx-space-card-inset-y: 11px; --vx-space-card-inset-x: 13px` in its own `:root` CSS. |
1191
+ | Card radius | `radius` | `-3` gives card 7 / floating 8 — and control 3, tight 2, fine 1, which is not the old control radius (6). No level moves card alone. Set `--vx-radius-card: 7px` in `:root` to restore just the card. |
1192
+ | Floating radius (Tooltip, Popover, Modal, Notification) | none | These four take a numeric Mantine `radius` from the theme, not the CSS var, so `--vx-radius-floating` does not reach them: there is no CSS-only restore. Pass `createBasaltTheme({ components: { Tooltip: { defaultProps: { radius: 8 } } } })` per component (or `radius={8}` at the call site). |
1193
+ | Type `sm` / `xs` / `kpi` | none | The `fonts` knob changes families, not sizes. A consumer that needs 13.5 / 12.5 / 24 at one site writes the size at that site with a `theme-allow`. |
1194
+ | Faint chart ink | none | `derive` retunes the whole neutral ramp; there is no separate knob for the axis ink, and a lighter axis fails the 4.5:1 gate by construction. |
1195
+ | Page gutter | none | The expanded gutter is a constant; `density` scales it (`-1` gives 22). |
1196
+
1049
1197
  ## 2.15.0 — the reviewer subagent and the ViewTabs law
1050
1198
 
1051
1199
  - **Behaviour: `basalt/bound-control-outside-home` now reports a `ViewTabs` in every `PageBar` slot except `tabs` (`actions`, `filters`, `filtersEnd`, `sync`), in `Section.actions`, or inside a `FilterSet`.** It was accepted there (any slot was a home). A `ViewTabs` that switches a page or a section belongs in a `tabs` slot (`PageBar.tabs`, `Section.tabs`); one that switches only a card's view belongs in that `ChartCard` / `WidgetHeader` `actions` slot (still allowed). **Fix: move it to `tabs`.** The lint is structural: only a `ViewTabs` written inside the slot (JSX attribute or object spread) is seen; one passed through a hoisted `const` is not.
@@ -12,7 +12,7 @@ You score a rendered UI. You did not build it. Do not read the app's source to e
12
12
  A shot out dir (default `.basalt/shots`, or the `out` in `.basalt/shots/last.json`):
13
13
 
14
14
  - `board.html` — every crop, labelled by component, scheme, viewport and state.
15
- - `metrics.json` — per anchor: `padding`, `gap`, `radius`, `nested`, `fontSizes`, `emptyRatio`, `contrast`, `sheet`; `scale` (the theme's resolved spacing, radius and font-size steps) and `scaleError`; `shots[]` with each file's `status`.
15
+ - `metrics.json` — per anchor: `padding`, `gap`, `radius` (px, or `"full"` for a fully rounded box such as a `50%` circle or pill), `nested`, `fontSizes`, `emptyRatio`, `contrast`, `sheet`; `scale` (the theme's resolved spacing, radius and font-size steps) and `scaleError`; `shots[]` with each file's `status`.
16
16
  - `png/*.png` — the crops, images you can see. Each anchor has a contact sheet (`sheet`: one image holding that anchor's crop for every state × scheme × viewport, each labelled, with the status text where a crop does not exist) and each route a full-page shot (`_page`). Score every anchor in both schemes and both viewports.
17
17
  - A layout-suite result, only if the out dir has one.
18
18
 
@@ -35,7 +35,7 @@ Score per component, then add one line per page for the page items (Communicatio
35
35
  1. **[measured]** Every inset, gap and radius is a step in `metrics.json` `scale`; nested surfaces step by at least 3 px of radius. No `scale` → `unverified`. Never invent steps.
36
36
  2. **[measured]** No more than three font sizes inside one component: `fontSizes` with more than 3 distinct values fails.
37
37
  3. No empty region of 40 % or more of the component's height — **[measured]**: `emptyRatio` ≥ 0.4 fails; no dense-list row wraps at 390 — judged from the 390 crop.
38
- 4. One ring per surface, no bare hairline borders on cards, no accent on chrome: look at every crop for an accent hue on a tab underline, a selected row, a secondary button, a card ring or a solid-filled badge. The accent sites are the primary data series, active-nav icons and active child labels, links, primary buttons, focus rings and the leader bar in meters; chrome (borders, inactive states, backgrounds, general icons) stays neutral, and selection state (active nav row, selected tab) never takes the accent.
38
+ 4. One ring per surface, no bare hairline borders on cards, no accent on chrome: look at every crop for an accent hue on a tab underline, a selected row, a secondary button, a card ring or a solid-filled badge. The accent sites are the primary data series, active-nav icons and active child labels, links, primary buttons, focus rings and the leader bar in meters; chrome (borders, inactive states, backgrounds, general icons) stays neutral, and selection state (active nav row, selected tab) never takes the accent. A card's `tone` verdict rail is a status, not chrome.
39
39
  5. **[measured]** Text and meaningful marks meet contrast in both schemes (a non-empty `contrast.failures` fails); nothing is told apart only by colour.
40
40
  6. Nothing overflows, clips or truncates a value at 1440 or 390.
41
41
  7. Hover, focus and tooltip states are present in the shots; focus is the 2 px outline.
@@ -44,7 +44,7 @@ Score per component, then add one line per page for the page items (Communicatio
44
44
 
45
45
  1. Name the data's shape and the encoding used; both must match a row of the encoding table (the catalogue) in the `/basalt-design` skill.
46
46
  2. Every visual answers the question its caption names; a decorative visual fails.
47
- 3. A hue appears only for a trend, a status or a category; a single metric is neutral. A delta is neutral text with a trend glyph: a solid-filled badge or coloured fill on a delta fails here and Craft 4.
47
+ 3. A hue appears only for a trend, a status or a category; a single metric is neutral. A delta is text in its trend colour with a direction glyph and no fill: a fill or a badge on a delta fails here and Craft 4.
48
48
  4. A number with a target shows the target; a number with a history shows it; a whole with parts shows the parts.
49
49
  5. No axis repeats a label; ticks fit the span.
50
50
 
@@ -32,7 +32,7 @@ paths:
32
32
  ## Surfaces
33
33
 
34
34
  - Never pass `withBorder` to `Card` or `Paper`; the theme draws the ring (`<Card.Section withBorder>` is fine). [check-theme card-with-border]
35
- - Card/Paper insets are `py="xs" px="sm"` with the theme radius; no explicit `p`, `padding` or `radius`. [basalt/card-inset]
35
+ - Card/Paper insets are `py="sm" px="md"` with the theme radius; no explicit `p`, `padding` or `radius`. [basalt/card-inset]
36
36
  - Lay out with `Box`/`Flex`/`Grid`/`Stack`/`Group`, not a `<div>` with `style`. [check-theme raw-html-layout] [check-theme hidden-inline-style]
37
37
  - No inline `display: flex|grid`; no inline spacing; spacing props take `xs..xl`. [check-theme inline-display] [check-theme inline-spacing] [check-theme raw-spacing]
38
38
  - Inputs come from `@mantine/core`, never `<input>`, `<select>` or `<textarea>`. [check-theme raw-form-control]
@@ -14,7 +14,7 @@ Method only; the law is `.claude/rules/basalt-*.md` and `./DESIGN.md`.
14
14
 
15
15
  | Data shape | Encoding | Component |
16
16
  | ----------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
17
- | Single value with a trend | figure, text delta, axis-less sparkline along the card's bottom | `StatCard` + `sparkline` slot (`Sparkline`) |
17
+ | Single value with a trend | figure, text delta, `qualifier`, axis-less sparkline (end dot) along the card's bottom | `StatCard` + `sparkline` slot (`Sparkline`) |
18
18
  | Value over time | line or stacked area | `Lines` / `StackedArea` in a `ChartCard` |
19
19
  | Compare categories | bars | `Bars layout="grouped"` |
20
20
  | Part of a whole, 2–6 parts | one segmented (stacked) bar, parts in order — not a donut plus a total card, not a row of N `StatCard`s | `Bars` (stacked, the default) |
@@ -26,7 +26,7 @@ Method only; the law is `.claude/rules/basalt-*.md` and `./DESIGN.md`.
26
26
  No row fits the data → say so; never default to a number in a box.
27
27
 
28
28
  4. Build with Mantine primitives and the composites; every color from `VX.*` or a series token. 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`.
29
- 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`. Declare supported states with `data-shot-states="empty loading error"` and render them when the `shot-state` URL param asks.
29
+ 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.
30
30
  6. **Rounds, at least three.** Playwright is the app's dev dependency: `bun add -d playwright && bunx playwright install chromium`. Then:
31
31
  - `basalt-ui shot <routes> --dist <built app>` (or `--base <url>` for a running server);
32
32
  - 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;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * The card inset is stated in four places that must agree: the token (`cardInsetY`/`cardInsetX`,
3
+ * level 0), the fallback literal every reader of `--vx-space-card-inset-*` carries (a Mantine-free
4
+ * chart layer or a head-injected palette renders before the var exists), and the `py`/`px` pair the
5
+ * `basalt/card-inset` rule accepts. One scale, so one test.
6
+ */
7
+ import { expect, test } from 'bun:test'
8
+ import { readdirSync, readFileSync, statSync } from 'node:fs'
9
+ import { join } from 'node:path'
10
+ import { SPACE_SCALE, SPACE_STEP } from '../src/tokens/palette'
11
+ import { CARD_INSET_PX, CARD_INSET_PY } from './oxlint-plugin.js'
12
+
13
+ const SRC = join(import.meta.dirname, '..', 'src')
14
+
15
+ function sources(dir: string): string[] {
16
+ return readdirSync(dir).flatMap((name) => {
17
+ const path = join(dir, name)
18
+ if (statSync(path).isDirectory()) return sources(path)
19
+ return /\.(tsx?|css)$/.test(name) && !/\.test\./.test(name) ? [path] : []
20
+ })
21
+ }
22
+
23
+ const toPx = (value: string, unit: string): number =>
24
+ unit === 'rem' ? Number(value) * 16 : Number(value)
25
+
26
+ test('every --vx-space-card-inset-* fallback literal equals the level-0 inset', () => {
27
+ const found: [string, string, number][] = []
28
+ for (const file of sources(SRC)) {
29
+ const text = readFileSync(file, 'utf8')
30
+ for (const m of text.matchAll(/var\(--vx-space-card-inset-([xy]),\s*([\d.]+)(px|rem)\)/g)) {
31
+ found.push([file.slice(SRC.length), m[1] as string, toPx(m[2] as string, m[3] as string)])
32
+ }
33
+ }
34
+ expect(found.length).toBeGreaterThan(8)
35
+ for (const [file, axis, px] of found) {
36
+ expect([file, axis, px]).toEqual([
37
+ file,
38
+ axis,
39
+ axis === 'x' ? SPACE_STEP.cardInsetX : SPACE_STEP.cardInsetY,
40
+ ])
41
+ }
42
+ })
43
+
44
+ test('every bare reader of --vx-space-card-inset-* carries a fallback', () => {
45
+ for (const file of sources(SRC)) {
46
+ if (/tokens\/core\.ts$|guard\/vx-names\.ts$/.test(file)) continue
47
+ const text = readFileSync(file, 'utf8')
48
+ for (const m of text.matchAll(/var\(--vx-space-card-inset-[xy]\)/g)) {
49
+ throw new Error(`${file.slice(SRC.length)}: ${m[0]} has no fallback`)
50
+ }
51
+ }
52
+ })
53
+
54
+ test("the rule's py/px pair names the scale steps the inset tokens are", () => {
55
+ expect(SPACE_STEP.cardInsetY).toBe(SPACE_SCALE[CARD_INSET_PY as keyof typeof SPACE_SCALE])
56
+ expect(SPACE_STEP.cardInsetX).toBe(SPACE_SCALE[CARD_INSET_PX as keyof typeof SPACE_SCALE])
57
+ })
@@ -3,7 +3,7 @@
3
3
  "rules": {
4
4
  "basalt/no-raw-font-size": "error",
5
5
  "basalt/raw-size-literal": "error",
6
- "basalt/card-inset": "error",
6
+ "basalt/card-inset": "warn",
7
7
  "basalt/chart-in-raw-surface": "error",
8
8
  "basalt/shadow-basalt-export": "error",
9
9
  "basalt/hand-rolled-shell": "error",
@@ -588,9 +588,15 @@ const rawSizeLiteral = {
588
588
 
589
589
  const CARD_TAGS = new Set(['Card', 'Paper'])
590
590
 
591
+ // The idiom is the PAIR py="sm" px="md" (12/16), or leaving both to the theme. Never a uniform
592
+ // `p`/`padding` (whatever its value or form), never one half of the pair alone, never a number, an
593
+ // expression or any other step. The pair is the level-0 inset (`cardInsetY`/`cardInsetX` =
594
+ // `SPACE_SCALE.sm`/`.md`); `tokens/space-scale.test.ts` pins that.
595
+ export const CARD_INSET_PY = 'sm'
596
+ export const CARD_INSET_PX = 'md'
591
597
  const CARD_INSET_MESSAGE =
592
- 'Card/Paper is off the card idiom — use the spacing xs/sm inset (py="xs" px="sm") and the ' +
593
- "theme's card radius, not an explicit p/padding or radius. (basalt/card-inset)"
598
+ 'Card/Paper is off the card idiom — use the spacing sm/md inset together (py="sm" px="md") and ' +
599
+ "the theme's card radius, not an explicit p/padding, a lone py/px, or a radius. (basalt/card-inset)"
594
600
 
595
601
  function isStringLiteral(node) {
596
602
  return node !== null && node.type === 'Literal' && typeof node.value === 'string'
@@ -600,7 +606,7 @@ function attrValue(attr) {
600
606
  return unwrapExpressionContainer(attr.value)
601
607
  }
602
608
 
603
- // Ships: error
609
+ // Ships: warn (grace → 2.24.0)
604
610
  const cardInset = {
605
611
  meta: {
606
612
  type: 'suggestion',
@@ -612,23 +618,35 @@ const cardInset = {
612
618
  create(context) {
613
619
  return {
614
620
  JSXOpeningElement(node) {
615
- const tagName = node.name?.name
616
- if (!CARD_TAGS.has(tagName)) return
621
+ if (!CARD_TAGS.has(node.name?.name)) return
617
622
 
623
+ /** @type {Map<string, any>} */
624
+ const attrs = new Map()
618
625
  for (const attr of node.attributes) {
619
- if (attr.type !== 'JSXAttribute') continue
620
- const attrName = attr.name?.name
626
+ if (attr.type === 'JSXAttribute' && typeof attr.name?.name === 'string') {
627
+ attrs.set(attr.name.name, attr)
628
+ }
629
+ }
630
+ const isExactly = (attr, expected) => {
631
+ if (!attr) return false
621
632
  const value = attrValue(attr)
622
-
623
- const isOffPadding =
624
- (attrName === 'p' || attrName === 'padding') &&
625
- ((isStringLiteral(value) && value.value !== 'xs' && value.value !== 'sm') ||
626
- isNumericLiteral(value))
627
- const isOffPy = attrName === 'py' && isStringLiteral(value) && value.value !== 'xs'
628
- const isOffPx = attrName === 'px' && isStringLiteral(value) && value.value !== 'sm'
629
- const isRadius = attrName === 'radius'
630
-
631
- if (!isOffPadding && !isOffPy && !isOffPx && !isRadius) continue
633
+ return isStringLiteral(value) && value.value === expected
634
+ }
635
+ const py = attrs.get('py')
636
+ const px = attrs.get('px')
637
+ const offenders = []
638
+ // A uniform inset is never the idiom, in any form (string, number, expression).
639
+ for (const name of ['p', 'padding', 'radius']) {
640
+ if (attrs.has(name)) offenders.push(attrs.get(name))
641
+ }
642
+ // The pair stands or falls together: each half must be exactly its step, and neither
643
+ // may appear without the other.
644
+ const pyOk = isExactly(py, CARD_INSET_PY)
645
+ const pxOk = isExactly(px, CARD_INSET_PX)
646
+ if (py && !(pyOk && pxOk)) offenders.push(py)
647
+ if (px && !(pyOk && pxOk)) offenders.push(px)
648
+
649
+ for (const attr of offenders) {
632
650
  if (hasThemeAllow(context, attr, 'card-inset')) continue
633
651
  context.report({ node: attr, message: CARD_INSET_MESSAGE })
634
652
  }
@@ -4203,7 +4221,13 @@ const routeViewTransition = {
4203
4221
  *
4204
4222
  * @type {Record<string, GraceEntry>}
4205
4223
  */
4206
- export const PLUGIN_RULE_GRACE = {}
4224
+ export const PLUGIN_RULE_GRACE = {
4225
+ 'card-inset': {
4226
+ since: '2.16.0',
4227
+ promote: '2.24.0',
4228
+ why: 'Tightened in 2.16.0: only py="sm" px="md" together (or neither) passes; uniform p/padding, a lone half, numbers and expressions are findings.',
4229
+ },
4230
+ }
4207
4231
 
4208
4232
  // ── Plugin export ───────────────────────────────────────────────────────────────────────────────
4209
4233
 
@@ -225,17 +225,44 @@ describe('basalt/raw-size-literal', () => {
225
225
  // ── card-inset ───────────────────────────────────────────────────────────────
226
226
 
227
227
  describe('basalt/card-inset', () => {
228
- it('flags an off-idiom padding value on Card', () => {
229
- const { code, rules } = run(`export const C = () => <Card p="md" />\n`)
230
- expect(code).toBe(1)
228
+ it.each([
229
+ ['uniform p="lg"', '<Card p="lg" />'],
230
+ ['uniform p="md"', '<Card p="md" />'],
231
+ ['uniform p="sm"', '<Card p="sm" />'],
232
+ ['uniform padding="sm"', '<Card padding="sm" />'],
233
+ ['uniform padding={12}', '<Card padding={12} />'],
234
+ ['uniform p={0}', '<Card p={0} />'],
235
+ ['a non-literal p', '<Card p={gap} />'],
236
+ ['py="md"', '<Paper py="md" px="md" />'],
237
+ ['px="xs"', '<Paper py="sm" px="xs" />'],
238
+ ['the old xs/sm pair', '<Paper py="xs" px="sm" />'],
239
+ ['numeric py/px {8} {12}', '<Paper py={8} px={12} />'],
240
+ ['numeric py/px {13} {4}', '<Paper py={13} px={4} />'],
241
+ ['a non-literal py', '<Paper py={y} px="md" />'],
242
+ ['a non-literal px', '<Paper py="sm" px={x} />'],
243
+ ['a lone py="sm"', '<Paper py="sm" />'],
244
+ ['a lone px="md"', '<Paper px="md" />'],
245
+ ['an explicit radius', '<Card radius="md" />'],
246
+ ])('flags %s', (_name, jsx) => {
247
+ const { rules } = run(`export const C = () => ${jsx}\n`)
231
248
  expect(rules).toContain('card-inset')
232
249
  })
233
250
 
234
- it('does NOT flag the xs/sm inset idiom on Paper', () => {
235
- const { code, rules } = run(`export const C = () => <Paper py="xs" px="sm" />\n`)
236
- expect(code).toBe(0)
251
+ it.each([
252
+ ['the sm/md pair', '<Paper py="sm" px="md" />'],
253
+ ['the pair in either order', '<Card px="md" py="sm" />'],
254
+ ['no padding at all', '<Card />'],
255
+ ])('does NOT flag %s', (_name, jsx) => {
256
+ const { rules } = run(`export const C = () => ${jsx}\n`)
237
257
  expect(rules).not.toContain('card-inset')
238
258
  })
259
+
260
+ it('ships warn through its grace minor, so a flagged card does not fail the run', () => {
261
+ const { code, rules } = run(`export const C = () => <Card p="lg" />\n`)
262
+ // The fixture config sets the rule to error; the SHIPPED level is pinned by the ledger tests.
263
+ expect(rules).toContain('card-inset')
264
+ expect(code).toBe(1)
265
+ })
239
266
  })
240
267
 
241
268
  // ── chart-in-raw-surface ──────────────────────────────────────────────────────
@@ -1430,6 +1457,9 @@ describe('assertGraceLedger', () => {
1430
1457
  const pluginGrace = PLUGIN_RULE_GRACE as Record<string, GraceEntry>
1431
1458
  const guardGrace = GRACE_PERIOD_KINDS as Record<string, GraceEntry>
1432
1459
 
1460
+ /** A guard message that NAMES a plugin rule in its remedy without being that rule's twin. */
1461
+ const REFERRALS = new Set(['card-with-border:card-inset'])
1462
+
1433
1463
  function twinLanes(): Array<[kind: string, rule: string]> {
1434
1464
  const pairs = new Map<string, string>()
1435
1465
  for (const [kind, aliases] of Object.entries(WAIVER_ID_ALIASES)) {
@@ -1438,6 +1468,7 @@ function twinLanes(): Array<[kind: string, rule: string]> {
1438
1468
  }
1439
1469
  for (const [kind, rule] of Object.entries(GUARD_RULES)) {
1440
1470
  for (const m of rule.message.matchAll(/basalt\/([a-z-]+)/g)) {
1471
+ if (REFERRALS.has(`${kind}:${m[1]}`)) continue
1441
1472
  if (m[1] !== undefined && m[1] in basaltPlugin.rules) pairs.set(kind, m[1])
1442
1473
  }
1443
1474
  }
@@ -140,7 +140,7 @@ function MessageAffordanceRow({
140
140
  return /* @__PURE__ */ jsxs(
141
141
  Group,
142
142
  {
143
- gap: 8,
143
+ gap: "xs",
144
144
  "data-testid": `message-affordances-${message.id}`,
145
145
  style: { opacity: visible ? 1 : 0, transition: "opacity 120ms ease" },
146
146
  children: [
@@ -96,7 +96,7 @@ function ThreadOutcomeCard({
96
96
  className: cx(className),
97
97
  style: {
98
98
  display: "block",
99
- padding: "var(--mantine-spacing-xs) var(--mantine-spacing-sm)",
99
+ padding: "var(--vx-space-card-inset-y, 0.75rem) var(--vx-space-card-inset-x, 1rem)",
100
100
  borderRadius: VX.radiusCard,
101
101
  boxShadow: VX.shadowCard,
102
102
  backgroundColor: background,
@@ -53,7 +53,7 @@ const bodyClipStyle = {
53
53
  minHeight: 0,
54
54
  display: "flex",
55
55
  flexDirection: "column",
56
- padding: "2px var(--vx-space-card-inset-x, 0.8125rem) var(--vx-space-card-inset-y, 0.6875rem)"
56
+ padding: "2px var(--vx-space-card-inset-x, 1rem) var(--vx-space-card-inset-y, 0.75rem)"
57
57
  };
58
58
  const definedOnly = (o) => Object.fromEntries(Object.entries(o).filter(([, v]) => v !== void 0));
59
59
  const HEADER_TRIGGERS = ["title", "info", "value", "icon", "count"];
@@ -1 +1 @@
1
- {"version":3,"file":"Donut.d.ts","sourceRoot":"","sources":["../../src/charts/Donut.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAUlD,OAAO,KAAK,EAAe,UAAU,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE7E,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAAE,GAAG,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE7E,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,WAAW,GAAG;IAChE,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,SAAS,UAAU,CAAC,CAAC,CAAC,EAAE,CAAA;IAC9B,uDAAuD;IACvD,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAA;IAC/B,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IAClC,4DAA4D;IAC5D,WAAW,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,SAAS,CAAA;IAC9C,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS,CAAA;IACnD,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;CAC/B,CAAA;AAkED,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,YAAY,CAkJnF"}
1
+ {"version":3,"file":"Donut.d.ts","sourceRoot":"","sources":["../../src/charts/Donut.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAWlD,OAAO,KAAK,EAAe,UAAU,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE7E,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAAE,GAAG,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE7E,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,WAAW,GAAG;IAChE,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,SAAS,UAAU,CAAC,CAAC,CAAC,EAAE,CAAA;IAC9B,uDAAuD;IACvD,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAA;IAC/B,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IAClC,4DAA4D;IAC5D,WAAW,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,SAAS,CAAA;IAC9C,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS,CAAA;IACnD,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;CAC/B,CAAA;AAkED,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,YAAY,CAkJnF"}
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { tooltip as tooltipHost } from "@tanstack/charts/tooltip";
3
2
  import { portal } from "@tanstack/charts/tooltip/portal";
4
3
  import { pie, polar, radialArc } from "@tanstack/charts/polar";
5
4
  import { useCallback, useId, useMemo, useState } from "react";
6
5
  import { alpha, VX } from "../tokens/index.js";
6
+ import { engineTooltip } from "./cursor.js";
7
7
  import { ChartEngine, idPrefixOf } from "./host.js";
8
8
  import { ChartLegend } from "./legend.js";
9
9
  import { useCoarsePointer } from "../common/use-media-query.js";
@@ -121,7 +121,7 @@ function Donut(props) {
121
121
  theme: CHART_THEME
122
122
  }),
123
123
  tooltip: {
124
- use: tooltipHost,
124
+ use: engineTooltip,
125
125
  portal,
126
126
  content: (points) => {
127
127
  const slice = points[0]?.datum;