basalt-ui 2.8.0 → 2.9.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 (179) hide show
  1. package/AGENTS.md +2 -2
  2. package/CHANGELOG.md +209 -189
  3. package/MIGRATING.md +98 -28
  4. package/README.md +7 -8
  5. package/agent/rules/basalt-controls.md +1 -1
  6. package/agent/rules/basalt-state.md +1 -1
  7. package/agent/skills/basalt-design/SKILL.md +1 -1
  8. package/agent/templates/AGENTS-block.md.tpl +2 -2
  9. package/configs/oxlint-plugin.js +25 -68
  10. package/configs/oxlint-plugin.test.ts +19 -27
  11. package/dist/charts/BandStrip.d.ts +1 -1
  12. package/dist/charts/BandStrip.d.ts.map +1 -1
  13. package/dist/charts/BandStrip.js +1 -10
  14. package/dist/charts/MirroredBars.d.ts.map +1 -1
  15. package/dist/charts/MirroredBars.js +2 -9
  16. package/dist/charts/band-fold.d.ts +15 -0
  17. package/dist/charts/band-fold.d.ts.map +1 -0
  18. package/dist/charts/band-fold.js +19 -0
  19. package/dist/charts/index.d.ts +1 -0
  20. package/dist/charts/index.d.ts.map +1 -1
  21. package/dist/charts/index.js +3 -1
  22. package/dist/cli/audit-allows.d.ts.map +1 -1
  23. package/dist/cli/audit-allows.js +1 -1
  24. package/dist/cli/check-theme.d.ts.map +1 -1
  25. package/dist/cli/check-theme.js +4 -1
  26. package/dist/cli/config.d.ts +4 -4
  27. package/dist/cli/doctor-upgrade.d.ts +5 -4
  28. package/dist/cli/doctor-upgrade.d.ts.map +1 -1
  29. package/dist/cli/doctor-upgrade.js +23 -99
  30. package/dist/cli/doctor.d.ts +2 -1
  31. package/dist/cli/doctor.d.ts.map +1 -1
  32. package/dist/cli/doctor.js +23 -25
  33. package/dist/cli/help.d.ts.map +1 -1
  34. package/dist/cli/help.js +2 -3
  35. package/dist/cli/index.d.ts +15 -6
  36. package/dist/cli/index.d.ts.map +1 -1
  37. package/dist/cli/index.js +16 -27
  38. package/dist/cli/init.d.ts.map +1 -1
  39. package/dist/cli/init.js +9 -6
  40. package/dist/cli/install-root.d.ts +10 -0
  41. package/dist/cli/install-root.d.ts.map +1 -0
  42. package/dist/cli/install-root.js +32 -0
  43. package/dist/cli/router-wiring.d.ts +37 -0
  44. package/dist/cli/router-wiring.d.ts.map +1 -0
  45. package/dist/cli/router-wiring.js +116 -0
  46. package/dist/cli/source-text.d.ts +12 -0
  47. package/dist/cli/source-text.d.ts.map +1 -0
  48. package/dist/cli/source-text.js +46 -0
  49. package/dist/cli/sync.d.ts +0 -2
  50. package/dist/cli/sync.d.ts.map +1 -1
  51. package/dist/cli/sync.js +23 -21
  52. package/dist/cli/tokens-css.d.ts.map +1 -1
  53. package/dist/cli/tokens-css.js +1 -6
  54. package/dist/common/errors.d.ts +1 -6
  55. package/dist/common/errors.d.ts.map +1 -1
  56. package/dist/common/errors.js +0 -7
  57. package/dist/common/index.d.ts +1 -1
  58. package/dist/common/index.d.ts.map +1 -1
  59. package/dist/common/index.js +1 -9
  60. package/dist/common/props.d.ts +2 -2
  61. package/dist/common/vx-family.d.ts +1 -1
  62. package/dist/content/code-block.d.ts.map +1 -1
  63. package/dist/content/code-block.js +36 -27
  64. package/dist/content/code-block.module.css +19 -1
  65. package/dist/content/mermaid-sanitize.d.ts +15 -0
  66. package/dist/content/mermaid-sanitize.d.ts.map +1 -0
  67. package/dist/content/mermaid-sanitize.js +28 -0
  68. package/dist/content/mermaid.d.ts +6 -0
  69. package/dist/content/mermaid.d.ts.map +1 -1
  70. package/dist/content/mermaid.js +3 -1
  71. package/dist/content/toc-click-pin.d.ts +45 -0
  72. package/dist/content/toc-click-pin.d.ts.map +1 -0
  73. package/dist/content/toc-click-pin.js +111 -0
  74. package/dist/content/toc-spy.d.ts +25 -0
  75. package/dist/content/toc-spy.d.ts.map +1 -0
  76. package/dist/content/toc-spy.js +43 -0
  77. package/dist/content/toc.d.ts +1 -4
  78. package/dist/content/toc.d.ts.map +1 -1
  79. package/dist/content/toc.js +38 -49
  80. package/dist/controls/number-filter.d.ts.map +1 -1
  81. package/dist/controls/number-filter.js +1 -1
  82. package/dist/dashboard/index.d.ts +1 -1
  83. package/dist/dashboard/index.d.ts.map +1 -1
  84. package/dist/dashboard/index.js +1 -3
  85. package/dist/dashboard/section.d.ts +10 -2
  86. package/dist/dashboard/section.d.ts.map +1 -1
  87. package/dist/dashboard/section.js +20 -3
  88. package/dist/dashboard/stat-card.d.ts +2 -8
  89. package/dist/dashboard/stat-card.d.ts.map +1 -1
  90. package/dist/dashboard/stat-card.js +1 -1
  91. package/dist/guard/index.d.ts +13 -9
  92. package/dist/guard/index.d.ts.map +1 -1
  93. package/dist/guard/index.js +74 -37
  94. package/dist/guard/types.d.ts +8 -7
  95. package/dist/guard/types.d.ts.map +1 -1
  96. package/dist/guard/vx-names.d.ts +1 -1
  97. package/dist/guard/vx-names.d.ts.map +1 -1
  98. package/dist/guard/vx-names.js +1 -33
  99. package/dist/index.d.ts +2 -2
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/provider/index.d.ts.map +1 -1
  102. package/dist/provider/index.js +3 -2
  103. package/dist/router-tanstack/search-store.d.ts +1 -11
  104. package/dist/router-tanstack/search-store.d.ts.map +1 -1
  105. package/dist/router-tanstack/search-store.js +1 -2
  106. package/dist/shell/index.d.ts +1 -0
  107. package/dist/shell/index.d.ts.map +1 -1
  108. package/dist/shell/index.js +3 -0
  109. package/dist/shell/nav-types.d.ts +1 -1
  110. package/dist/shell/page-bar.d.ts +6 -0
  111. package/dist/shell/page-bar.d.ts.map +1 -1
  112. package/dist/shell/page-bar.js +12 -2
  113. package/dist/state/fields.d.ts +1 -1
  114. package/dist/state/fields.d.ts.map +1 -1
  115. package/dist/state/fields.js +3 -1
  116. package/dist/surfaces.d.ts +1 -1
  117. package/dist/surfaces.d.ts.map +1 -1
  118. package/dist/surfaces.js +5 -11
  119. package/dist/table/data-table.d.ts +2 -2
  120. package/dist/tokens/core.d.ts +0 -10
  121. package/dist/tokens/core.d.ts.map +1 -1
  122. package/dist/tokens/core.js +6 -44
  123. package/dist/vite-boot.d.ts +25 -0
  124. package/dist/vite-boot.d.ts.map +1 -0
  125. package/dist/vite-boot.js +36 -0
  126. package/dist/vite.d.ts +24 -3
  127. package/dist/vite.d.ts.map +1 -1
  128. package/dist/vite.js +7 -16
  129. package/llms.txt +26 -9
  130. package/package.json +8 -5
  131. package/src/charts/BandStrip.tsx +4 -16
  132. package/src/charts/MirroredBars.tsx +2 -11
  133. package/src/charts/band-fold.ts +26 -0
  134. package/src/charts/index.ts +1 -0
  135. package/src/cli/audit-allows.ts +1 -3
  136. package/src/cli/check-theme.ts +7 -1
  137. package/src/cli/config.ts +4 -4
  138. package/src/cli/doctor-upgrade.ts +29 -145
  139. package/src/cli/doctor.ts +25 -31
  140. package/src/cli/help.ts +1 -4
  141. package/src/cli/index.ts +27 -43
  142. package/src/cli/init.ts +9 -6
  143. package/src/cli/install-root.ts +40 -0
  144. package/src/cli/router-wiring.ts +185 -0
  145. package/src/cli/source-text.ts +62 -0
  146. package/src/cli/sync.ts +26 -22
  147. package/src/cli/tokens-css.ts +0 -5
  148. package/src/common/errors.ts +1 -18
  149. package/src/common/index.ts +1 -8
  150. package/src/common/props.ts +2 -2
  151. package/src/common/vx-family.ts +1 -1
  152. package/src/content/code-block.module.css +19 -1
  153. package/src/content/code-block.tsx +7 -2
  154. package/src/content/mermaid-sanitize.ts +49 -0
  155. package/src/content/mermaid.tsx +3 -2
  156. package/src/content/toc-click-pin.ts +156 -0
  157. package/src/content/toc-spy.ts +61 -0
  158. package/src/content/toc.tsx +47 -95
  159. package/src/controls/form-layout.tsx +1 -1
  160. package/src/controls/number-filter.tsx +6 -1
  161. package/src/dashboard/index.ts +1 -6
  162. package/src/dashboard/section.tsx +39 -8
  163. package/src/dashboard/stat-card.tsx +4 -11
  164. package/src/guard/index.ts +114 -89
  165. package/src/guard/types.ts +8 -7
  166. package/src/guard/vx-names.ts +1 -33
  167. package/src/index.ts +1 -2
  168. package/src/provider/index.tsx +6 -3
  169. package/src/router-tanstack/search-store.ts +2 -14
  170. package/src/shell/index.tsx +2 -0
  171. package/src/shell/nav-types.ts +1 -1
  172. package/src/shell/page-bar.tsx +21 -2
  173. package/src/state/fields.ts +7 -2
  174. package/src/surfaces.ts +5 -11
  175. package/src/table/data-table.tsx +2 -2
  176. package/src/tokens/core.ts +6 -67
  177. package/src/vite-boot.ts +109 -0
  178. package/src/vite.ts +32 -61
  179. package/dist/tokens.css +0 -331
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 | 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) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
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) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
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) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
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) | — |
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) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
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 | 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 | — |
81
81
 
82
82
  ---
83
83
 
@@ -87,7 +87,7 @@ Contract: `docs/V2-SPEC.md`. Every removal and move is one row, grouped by area.
87
87
 
88
88
  ### Upgrading from 1.x
89
89
 
90
- 1. Go to `1.41.0` first and clear its deprecations: 2.0 retires the lifecycle, so nothing deprecated survives.
90
+ 1. Go to `1.41.0` first and clear its deprecations: 2.0 retires the lifecycle, and the compatibility layer 2.0 still carried (camelCase `--vx-*` aliases, `VX.line2Dark`, `StatCardTone`, a bare `theme-allow`) left in the next release — § 1.x compatibility layer removed.
91
91
  2. Install `basalt-ui@2` and the now-required peers (§ Subpaths, peers and gates); delete only the
92
92
  `@mantine/{core,notifications,spotlight}/styles.layer.css` imports, because `basalt-ui/styles.css`
93
93
  `@import`s exactly those three. Keep every extension package's layer CSS (`@mantine/dates`,
@@ -1046,6 +1046,72 @@ 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.9.0 — 1.x compatibility layer removed
1050
+
1051
+ 2.x carried leftovers of the 1.x line; each one is gone, and each has one replacement. **Opt-out: none — use the replacement.** The 1.x → 2.0 upgrade tooling (`RETIRED_RULE_IDS`, the retired-lint-rules and dropped-subpath fixes, the older `unknown-vx-token` removals) is unchanged.
1052
+
1053
+ | Removed | Replacement |
1054
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
1055
+ | the 32 camelCase `--vx-*` aliases: `--vx-goodSolid`, `badSolid`, `warnSolid`, `axisStroke`, `dotStroke`, `tooltipBg/Text/Muted/Border/Shadow`, `legendText`, `accentHover`, `accentFill`, `accentFillHover`, `onAccent`, `surface-panelHover`, `fillHover-<family>` (12), `goodSoft`, `goodRef`, `badRef`, `warnRef` | the kebab name (`--vx-accent-fill`, `--vx-tooltip-bg`, `--vx-fill-hover-gray`, …); `unknown-vx-token` names each one |
1056
+ | `BuildPaletteOpts.legacyAliases` | delete it (the aliases no longer exist) |
1057
+ | `basalt-ui tokens:css --no-legacy-aliases` | delete the flag; it is now an unknown option and exits 1 |
1058
+ | `VX.line2Dark` | `VX.line2` |
1059
+ | `StatCardTone` (type export from `.`) | `Tone` (exported from `.`, identical union) |
1060
+ | `dist/tokens.css` (written by the build, never exported) | `basalt-ui tokens:css --out <path>` |
1061
+ | `deprecatedProp` (`common` helper) | none; unused |
1062
+ | a bare `theme-allow` (no rule id) waiving every kind on its line | `theme-allow <id> — <why>`; a bare or prose-only annotation waives nothing and is reported as `theme-allow-unscoped` |
1063
+ | `exemptRules` bare path segment (`'agent'` matching `src/agent/x.tsx`) | a relative path (`'src/agent'`) or a glob (`'**/agent/**'`) |
1064
+ | `exemptRules` kind inheritance (`EXEMPT_RULE_ALIASES`): a `raw-html-layout` exemption no longer covers `hidden-inline-style`; a `raw-surface` exemption no longer covers `surface-shadow-override` or `css-raw-surface` | list each kind explicitly: `{ 'raw-html-layout': [...], 'hidden-inline-style': [...] }` |
1065
+ | `basalt/forms-field-key`'s `field(…)` spread message | none; `field` was removed in 1.29.0, an import of it fails to compile |
1066
+ | `doctor`'s "stale basalt block in CLAUDE.md" warning | none; the "CLAUDE.md does not import `@AGENTS.md`" warning stays |
1067
+
1068
+ `rollhook` (`tokens:css --no-legacy-aliases`) must drop the flag when it bumps. The injected token CSS shrinks by 2468 bytes (13280 → 10812; gzip 2710 → 2325).
1069
+
1070
+ `Section` anchors (`id`) now clear a shell-less `PageBar`: without `BasaltShell` the scroll-margin adds `--basalt-page-bar-h` to the clearance, so `#anchor` no longer lands under the sticky bar; inside the shell nothing changes.
1071
+
1072
+ `Section` takes controlled `open` + `onOpenChange` (Mantine naming) — given `open`, a click only calls `onOpenChange` and the value is mirrored into the local/persisted fold, so dropping `open` keeps what the reader last saw; uncontrolled keeps the persisted fold and `onOpenChange` also fires. Open a section from a URL hash with it instead of reaching for `writePersistedValue`.
1073
+
1074
+ `PageBar` placement in 2.x: the primary action renders at the END of row 1 (after the secondaries), not first; `title` leads the one sticky bar when there is no shell.
1075
+
1076
+ `basalt-ui/charts` now exports `foldBands(data, cap, merge)`, the fold `BandStrip` and `MirroredBars` run, as 2.0's table promised; `BandTooltipConfig` and `BandTooltipRowContext` never shipped (`ChartTooltipConfig` replaced them). The `absentState` colour must differ from every measured state's colour, not only by alpha.
1077
+
1078
+ `llms.txt` gains a `## Types` glossary of the exported literal unions its signatures name (`CalloutKind`, …), lists the full `VX` token tree, and prints the values of literal-only constant maps (`CONTAINER_KEYS`). Docs output only; nothing to migrate.
1079
+
1080
+ `NumberFilter`'s stepper pill prints a value `.labels()` names — `createSearchStore(…).labels({ minDuration: { 0: 'Any' } })` reads "Any" at the default (a number field's `options` now lists exactly the labelled values); unlabelled, it prints the number as before — nothing to migrate.
1081
+
1082
+ ## 2.8.1 — boot paint follows the stored scheme
1083
+
1084
+ `basaltAppPlugin` now injects a tiny inline head script that reads Mantine's stored color scheme
1085
+ (`mantine-color-scheme-value`; `auto` via `prefers-color-scheme`) and keys the anti-FOUC paint off
1086
+ it, so a user who chose light no longer sees a dark flash on cold load. Nothing to change. A stored
1087
+ value wins over the build-time `colorScheme` (an app that removes its scheme toggle should clear the
1088
+ key). Pass `bootScript: false` under a CSP that forbids inline scripts without a nonce
1089
+ (`html.cspNonce` covers both boot tags) or with a custom `colorSchemeManager` key.
1090
+
1091
+ **Mermaid diagrams.** `MermaidDiagram` no longer ships beautiful-mermaid's Google Fonts `@import`
1092
+ inside the SVG (a broken `family=var(--basalt-font-sans)` request per diagram), and its
1093
+ `font-family` is the unquoted `var(--basalt-font-sans)` instead of an invalid quoted `'var(…)'`
1094
+ family. Behaviour fix; nothing to migrate.
1095
+
1096
+ **Dev chunks.** A production build no longer emits (or lets a PWA service worker precache) the dev-dock, theme-lab and devtools chunks: `BasaltProvider`'s dock `import()` is now dead code under a literal `process.env.NODE_ENV` read. Nothing to migrate; `check-budgets` gates it.
1097
+
1098
+ **Code-routed apps and tokens-only `doctor` (CLI).** An app that calls `createBasaltRouter` (in the
1099
+ entry or a module it imports, statically or via `import()`) but has no TanStack router plugin, no
1100
+ `routeTree.gen.*` and an entry that does not import one is code-routed. `init`, `sync` and `doctor`
1101
+ share that one test: `init` places no `main.tsx`, `nav.tsx` or `__root.tsx` seed, `sync` drops their
1102
+ manifest entries (the files stay yours) with a one-line notice, and `doctor` `app-wiring` accepts the
1103
+ tree. `dropped-subpaths` now also runs for `tokens-only` consumers, so a removed
1104
+ `@import 'basalt-ui/tokens.css'` fails there too. Fix: `basalt-ui tokens:css --out src/tokens.css`
1105
+ and import that file.
1106
+
1107
+ **Code block copy button.** A `CodeBlock` without a `title` now reserves the floating copy button's box above its first line:
1108
+ `padding-top` goes 10 → 28px (title-less fences are +18px tall), so the button no longer covers line
1109
+ one on touch or hover. The reserve is `--vx-space-code-block-floating-copy-offset` + the 22px button;
1110
+ titled fences are unchanged. The inner `pre` margin reset also outranks Prose's block margin now, so
1111
+ the unhighlighted fallback and the highlighted fence measure the same.
1112
+
1113
+ **`TableOfContents` clicks and the end of the scroll.** A clicked entry stays active while its scroll runs and where it settles, until the scroll position moves again or the reader scrolls; the spy marks the first entry when nothing scrolls, and a heading within 80px of the scrollport's top counts as reached (it used to need to cross the top edge) — nothing to migrate.
1114
+
1049
1115
  ## 2.8.0 — the fleet probe fixes
1050
1116
 
1051
1117
  Ledger rows 61-67 (`docs/waves/argo-friction.md`), found while the rest of the fleet probed 1.x → 2.x.
@@ -1071,8 +1137,10 @@ Ledger rows 61-67 (`docs/waves/argo-friction.md`), found while the rest of the f
1071
1137
  `BasaltOverlays spotlight={false}`).
1072
1138
  - **`BandStrip` absent share (charts).** 1.x `BandSpan.absentFraction` returns, with
1073
1139
  `absentState="<states key>"` on the strip: a band's unmeasured share is painted flat in that
1074
- state's color (color it `VX.neutral`) from the band's right edge, legended, with its own tooltip
1075
- row. No hatch: `hatchFill`, `HatchPattern` and `hatchSizeFor` stay removed.
1140
+ state's color from the band's right edge, legended, with its own tooltip
1141
+ row. The absent colour must differ from every measured state's colour, not only by alpha: a
1142
+ "clean" state that is also neutral would otherwise be told apart from "not measured" by opacity
1143
+ alone. No hatch: `hatchFill`, `HatchPattern` and `hatchSizeFor` stay removed.
1076
1144
 
1077
1145
  ## 2.7.3
1078
1146
 
@@ -1348,7 +1416,15 @@ suppresses `AGENTS.md` — or still carries a basalt block.
1348
1416
 
1349
1417
  ## 1.40.3
1350
1418
 
1351
- _Nothing to migrate in this release._
1419
+ No API change, but light-scheme colours moved to clear WCAG AA. A consumer that commits an emitted
1420
+ token file (`basalt-ui tokens:css`) or pins screenshots sees a diff:
1421
+
1422
+ - `--vx-faint` (light) `#737376` → `#69696c`.
1423
+ - `--mantine-color-anchor` now resolves to `--vx-accent-hover`.
1424
+ - `--mantine-color-error` reads the `bad` solid pulled toward ink.
1425
+ - `Badge` light/outline text and inactive `SegmentedControl` labels read darker.
1426
+
1427
+ Re-emit the token file and accept the diff; nothing to change in code.
1352
1428
 
1353
1429
  ## 1.40.2
1354
1430
 
@@ -4327,12 +4403,12 @@ unconditionally and builds x as `scalePoint` — positions, no widths. `BandStri
4327
4403
  to axis; `MirroredBars` has two, and needs band widths. Both compose `ChartFrame` directly and
4328
4404
  declare themselves with `theme-allow-file hand-rolled-plot`, alongside `DualPanel`.
4329
4405
 
4330
- | New on `basalt-ui/charts` | Note |
4331
- | ------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
4332
- | `BandStrip` (+ `BandStripProps`, `BandStripSeries`, `BandSpan`) | 1-D categorical bands. `getBand(d) => { state, fill?, absentFraction?, marker? }`; `series` IS the state set, so a strip cannot name a state it does not draw. `cursorResolution` defaults `'leading'` |
4333
- | `MirroredBars` (+ `MirroredBarsProps`, `MirroredBarPane`) | two bar panes, one x scale, one baseline, independent domains. `up`/`down` take `{ key, max?, autoMaxFloor?, ticks?, format }`; plus `upFraction` (the up pane's share of the band height, where the baseline sits), `getAbsentFraction`, `getBarOpacity` |
4334
- | `foldBands` (+ `BandFold`, `BandTooltipConfig`, `BandTooltipRowContext`) | the width-driven fold both kinds run, exported so a consumer can test their `merge` against the real grouping |
4335
- | `HatchPattern`, `hatchFill`, `hatchSizeFor` | the absence fill |
4406
+ | New on `basalt-ui/charts` | Note |
4407
+ | --------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
4408
+ | `BandStrip` (+ `BandStripProps`, `BandStripSeries`, `BandSpan`) | 1-D categorical bands. `getBand(d) => { state, fill?, absentFraction?, marker? }`; `series` IS the state set, so a strip cannot name a state it does not draw. `cursorResolution` defaults `'leading'` |
4409
+ | `MirroredBars` (+ `MirroredBarsProps`, `MirroredBarPane`) | two bar panes, one x scale, one baseline, independent domains. `up`/`down` take `{ key, max?, autoMaxFloor?, ticks?, format }`; plus `upFraction` (the up pane's share of the band height, where the baseline sits), `getAbsentFraction`, `getBarOpacity` |
4410
+ | `foldBands(data, cap, merge)` (+ `BandFold`) | the width-driven fold both kinds run (`cap` = `floor(width / minBandPx)`), exported so a consumer can test their `merge` against the real grouping |
4411
+ | `HatchPattern`, `hatchFill`, `hatchSizeFor` | the absence fill |
4336
4412
 
4337
4413
  The shared choreography lives in an internal `useBandPlot` — **not exported**, deliberately: it is
4338
4414
  the kinds' contract with each other, not a public seam.
@@ -4807,12 +4883,6 @@ date.
4807
4883
  `basalt/visx-tooltip` and `basalt/token-layer-boundary` (the last is repo-local and deliberately not
4808
4884
  in the shipped preset). A config still naming `import-boundary` after 1.1.0 disables nothing.
4809
4885
 
4810
- ## Deprecated, not yet removed
4811
-
4812
- The 32 camelCase `--vx-*` aliases deprecated in 1.5.0 are **still emitted at 1.21.0**.
4813
- `buildPaletteCss({ legacyAliases: false })` / `tokens:css --no-legacy-aliases` opts out now; a later
4814
- minor flips the default.
4815
-
4816
4886
  ## Not verified
4817
4887
 
4818
4888
  - Props declared inline on a component (`function X({ a }: { a: string })`) rather than on an
package/README.md CHANGED
@@ -233,9 +233,8 @@ Other keys (`exempt`, `severity`, `spacingSteps`, `forbiddenAccents`, …) are d
233
233
 
234
234
  **`exemptRules`** turns one kind off along a path. A pattern is a relative path
235
235
  (`public/site.webmanifest`, or `src/agent` for everything under it), a glob (`*` stops at `/`, `**`
236
- does not, and a slash-free glob is also tried against the basename, so `*.module.css` works), or a
237
- bare path segment — the legacy shape, and the one nobody guesses, since before 1.21.0 it was the
238
- ONLY shape and a real relative path matched nothing and said nothing. The object form records the
236
+ does not, and a slash-free glob is also tried against the basename, so `*.module.css` works), A bare
237
+ segment (`agent`) matches only a root-level path, never `src/agent`. The object form records the
239
238
  reason, which is what a `theme-allow` always carried and this key could not. A pattern that
240
239
  suppresses nothing is now reported by a normal run and fails `--audit-allows`.
241
240
 
@@ -255,19 +254,19 @@ reported on its own line.
255
254
  **The escape hatch is scoped, and since 1.21.0 the two scopes are spelled apart:**
256
255
 
257
256
  ```text
258
- theme-allow → this node/line, EVERY rule (reports theme-allow-unscoped)
257
+ theme-allow → nothing (reports theme-allow-unscoped)
259
258
  theme-allow <id>[, <id>…] [— <why>] → this node/line, those rules
260
- theme-allow-file <id>[, <id>…] — <why> → the WHOLE FILE, those rules; a bare one waives NOTHING
259
+ theme-allow-file <id>[, <id>…] — <why> → the WHOLE FILE, those rules
261
260
  "basalt:theme-allow[-file]": "<id>… — <why>" → the same two, for JSON / .webmanifest
262
261
  ```
263
262
 
264
263
  An annotation must **start** its comment (after `//`, `/*`, `<!--`, a block gutter `*`, or
265
- whitespace) — before 1.21.0 any comment merely mentioning the token parsed as the bare blanket form,
266
- so a file documenting its own waivers disarmed itself. Placements: the reported line, a comment-only
264
+ whitespace) — before 1.21.0 any comment merely mentioning the token parsed as a blanket waiver, so a
265
+ file documenting its own waivers disarmed itself; a bare annotation now waives nothing. Placements: the reported line, a comment-only
267
266
  line directly above it (the only form JSX can express, and it reaches the first CODE line below,
268
267
  walking through the rest of its comment block), or — in CSS — a trailing comment reaching back over
269
268
  the declaration it terminates. The id slot is read strictly: a word there that names no rule waives
270
- nothing, so a typo is never the blanket form.
269
+ nothing, so a typo never widens a waiver.
271
270
 
272
271
  `basalt-ui check-theme --audit-allows` reports every annotation and every `exemptRules` entry with
273
272
  what it still suppresses, proved by re-running the scan with that one waiver neutralized. Exits 1 on
@@ -22,7 +22,7 @@ A control has one home and takes its state from a store field; the home sets its
22
22
  ## Homes
23
23
 
24
24
  - A control lives in exactly one home: a `PageBar` slot (`actions`, `sync`, `filters`, `filtersEnd`, `tabs`), a `Section` slot (`actions`, `tabs`), a `WidgetHeader`/`ChartCard`/`StatCard`/`BasaltDataTable` `actions` slot, or a form row (`SettingsRow.control`, `FormRow`, `FormGroup`). A per-row action is `BasaltDataTable rowActions` (typed data: `label`, `icon`, `onClick(row)`, `danger`, `disabled(row)`), never a `Menu`/`ActionIcon` in a column `cell`/`display` renderer. [basalt/control-outside-home]
25
- - A raw Mantine selection control (`Select`, `SegmentedControl`, …) in a home slot is a filter without a `field`. [basalt/hand-rolled-filter] [check-theme raw-selection-control]
25
+ - A raw Mantine selection control (`Select`, `SegmentedControl`, …) in a page slot is a filter without a `field`: bind the basalt filter with `field={store.field.x}`; in `SettingsRow control=` keep the Mantine control and take `[value, setValue]` from `prefs.field.x.use()`. [basalt/hand-rolled-filter] [check-theme raw-selection-control]
26
26
  - A basalt filter outside a slot, `FilterSet`, `PageAside` or form row has no home. [basalt/bound-control-outside-home]
27
27
  - `PageBar` `actions` holds at most 5 entries with exactly one `primary` (date navigation is `filtersEnd`, not an action); a `Section` holds at most 3 `actions`. [type PageBar] [type Section]
28
28
  - A control in a home slot carries no `size`, `w`, `fullWidth`, `visibleFrom` or `hiddenFrom`; the home sizes it. [basalt/control-size-literal]
@@ -27,7 +27,7 @@ State a control reads or writes is a field on a store; the URL wins over localSt
27
27
  - A handle's `use()` returns `[value, setValue]`; the setter owns the navigate and the persist; on a `createLocalStore` field a prop-derived default is `store.field.x.withFallback(value)`, passed to `use()` and to any control as `field=` (unset only, never persisted, a reset returns to it, `isDefault` follows it; search stores lack it, a derived handle does not derive again), never a store rebuilt per prop. [type field]
28
28
  - Count active filters and reset them with the store's `useActiveCount()` and `useReset()`; a reset unsets, it does not write the fallback. [type createSearchStore]
29
29
  - A color scheme is `useMantineColorScheme()`, never a store or `localStorage['theme']`. [check-theme localstorage-theme]
30
- - A preference that must survive navigation but is not URL-worthy uses `createPersistedState`, called once at module scope. [type createPersistedState]
30
+ - A preference a `SettingsRow` control edits is a `createLocalStore` field read with `.use()`, never `useState`; `createPersistedState`, once at module scope, holds only a value no control binds. [type createPersistedState]
31
31
 
32
32
  ## Nav
33
33
 
@@ -9,7 +9,7 @@ Method only; the law is `.claude/rules/basalt-*.md` and `./DESIGN.md`.
9
9
  ## Steps
10
10
 
11
11
  1. Read `./DESIGN.md` and the rules `basalt-tokens.md`, `basalt-mantine.md`, `basalt-controls.md`, `basalt-charts.md`. No `DESIGN.md`: run `/basalt-app` first.
12
- 2. Decide before coding: which metrics earn a hue (trend, status, separation; the rest neutral), the one primary action per view, each control's home.
12
+ 2. Decide before coding: which metrics earn a hue (trend, status, separation; the rest neutral), the one primary action per view, each control's home (a `SettingsRow` preference: `const [unit, setUnit] = prefs.field.unit.use()` from `createLocalStore`, then `control={<Select value={unit} onChange={(v) => v && setUnit(v)} />}`, never `useState`).
13
13
  3. Check the shipped composites first: `StatCard`, `ChartCard`, `Section`, `WidgetHeader`, `BasaltDataTable`, `EmptyState`. A gap is reported, not routed around.
14
14
  4. Build with Mantine primitives and the composites; take every color from `VX.*` or a series token.
15
15
  5. Tune by eye in the running app: open the theme lab with the `dev.theme` Spotlight command (dev only) and adjust in both color schemes.
@@ -12,8 +12,8 @@ series token, never a literal.
12
12
  `.claude/rules/` > the `basalt-*` skills. Each rule bullet ends in the lint rule, guard kind or type
13
13
  that enforces it; skills are procedure, not law.
14
14
 
15
- **Run the local bin** (`./node_modules/.bin/basalt-ui` or a package script), never `bunx`; `init` is the
16
- one exception.
15
+ **Run the local bin** (`./node_modules/.bin/basalt-ui` or a package script), never `bunx`; `init` is
16
+ the one exception. In a workspace: the app package's `node_modules/.bin/basalt-ui`.
17
17
 
18
18
  **Before guessing an import, read the installed `llms.txt`** at the install directory (in a workspace,
19
19
  under the depending package; `basalt-ui doctor` prints where; a fresh worktree needs `bun install` first).
@@ -210,9 +210,6 @@ export const WAIVER_ID_ALIASES = {
210
210
  }
211
211
 
212
212
  const ALLOW_RULE_TOKEN = /^(?:basalt\/)?([a-z][a-z0-9-]*)(?=$|[\s,:—–])/
213
- const ALLOW_REASON_SEPARATOR = /^(?:—|–|-{1,2}|:)\s*/
214
- /** Shortest string accepted as a written reason — enough to exclude a stray separator. */
215
- const MIN_ALLOW_REASON_LENGTH = 4
216
213
 
217
214
  /**
218
215
  * The annotation token, with its optional `-file` suffix.
@@ -236,26 +233,17 @@ const ALLOW_TOKEN = /theme-allow(-file)?(?![\w-])/
236
233
  */
237
234
  const ALLOW_LINE_PREFIX = /^\s*\*?\s*$/
238
235
 
239
- /** Parse the text following the token — ids, then the reason. See {@link parseThemeAllows}. */
236
+ /** Parse the text following the token — the leading known ids; the rest is the reason. */
240
237
  function parseAllowBody(rest, scope) {
241
238
  let remainder = rest.replace(/^[\s,]+/, '')
242
239
  const rules = []
243
- const unknownRules = []
244
- let inIdSlot = true
245
240
  for (;;) {
246
241
  const token = ALLOW_RULE_TOKEN.exec(remainder)
247
- if (token === null) break
248
- if (!KNOWN_RULE_IDS.has(token[1])) {
249
- if (inIdSlot) unknownRules.push(token[1])
250
- break
251
- }
242
+ if (token === null || !KNOWN_RULE_IDS.has(token[1])) break
252
243
  rules.push(token[1])
253
- const after = remainder.slice(token[0].length)
254
- remainder = after.replace(/^[\s,]+/, '')
255
- inIdSlot = /^\s*,/.test(after)
244
+ remainder = remainder.slice(token[0].length).replace(/^[\s,]+/, '')
256
245
  }
257
- const reason = remainder.replace(ALLOW_REASON_SEPARATOR, '').trim()
258
- return { rules, unknownRules, hasReason: reason.length >= MIN_ALLOW_REASON_LENGTH, scope }
246
+ return { rules, scope }
259
247
  }
260
248
 
261
249
  /**
@@ -264,25 +252,15 @@ function parseAllowBody(rest, scope) {
264
252
  * The grammar, and it is the same one `src/guard` parses:
265
253
  *
266
254
  * ```text
267
- * theme-allow → this node, EVERY rule (the legacy bare form)
255
+ * theme-allow → nothing (a bare annotation waives no rule)
268
256
  * theme-allow <id>[, <id>…] [— <why>] → this node, those rules
269
257
  * theme-allow-file <id>[, <id>…] — <why> → the WHOLE FILE, those rules
270
258
  * ```
271
259
  *
272
- * `{ rules: [], unknownRules: [] }` is the bare form; a non-empty `rules` scopes the exception to
273
- * exactly those ids. A word that occupies the id slot but names no known rule lands in
274
- * `unknownRules` and FAILS CLOSED — the annotation then waives only the ids it got right, never
275
- * everything. `theme-allow raw-hexx — reason` used to consume no id, fall through to the
276
- * empty-`rules` branch and be read as the blanket form, so one mistyped character escalated a
277
- * scoped waiver into a whole-line one, i.e. weaker than before the scoping existed.
278
- *
279
- * A prose reason is therefore introduced with a separator (`—`, `–`, `-`, `:`), which is how every
280
- * annotation in the wild already writes it.
281
- *
282
- * The id slot closes at the first space that no comma opened: the first word is always a claimed
283
- * id (that is where a typo lands), but after a resolved id only a `,` keeps the list open, so
284
- * `theme-allow raw-surface sub-scale legend corner` reads `sub-scale` as prose rather than as a
285
- * typo. See the guard's copy for the full reasoning.
260
+ * An empty `rules` is the bare form and covers nothing; a non-empty `rules` scopes the exception to
261
+ * exactly those ids. A word that names no known rule ends the id list, so `theme-allow raw-hexx —
262
+ * reason` waives nothing, and `theme-allow raw-surface sub-scale legend corner` reads `sub-scale`
263
+ * as prose. A prose reason is introduced with a separator (`—`, `–`, `-`, `:`).
286
264
  */
287
265
  function parseThemeAllows(commentValue) {
288
266
  const out = []
@@ -299,16 +277,14 @@ function parseThemeAllows(commentValue) {
299
277
  /**
300
278
  * Does one annotation cover `ruleId`?
301
279
  *
302
- * Only a BARE **node** annotation covers every rule. A bare `theme-allow-file` covers nothing: the
303
- * blanket form is tolerable on one line, where a reader sees what it sits on; over a whole file it
304
- * is a config exemption without the config review, so the widest waiver in the contract is the one
305
- * that has to name what it waives.
280
+ * Only the ids the annotation names (or their {@link WAIVER_ID_ALIASES}). A bare annotation, at
281
+ * node or file scope, covers nothing.
306
282
  */
307
283
  function allowCovers(allow, ruleId) {
308
- if (allow.rules.includes(ruleId)) return true
309
- if ((WAIVER_ID_ALIASES[ruleId] ?? []).some((alias) => allow.rules.includes(alias))) return true
310
- if (allow.scope === 'file') return false
311
- return allow.rules.length === 0 && allow.unknownRules.length === 0
284
+ return (
285
+ allow.rules.includes(ruleId) ||
286
+ (WAIVER_ID_ALIASES[ruleId] ?? []).some((alias) => allow.rules.includes(alias))
287
+ )
312
288
  }
313
289
 
314
290
  function allComments(context) {
@@ -3264,8 +3240,8 @@ const queryFnUnwrap = {
3264
3240
  /** The subpath the forms idiom is imported from — the only provenance this rule accepts. */
3265
3241
  const FORMS_IMPORT_SOURCE = 'basalt-ui/forms'
3266
3242
 
3267
- /** The three names this rule resolves through the local→imported map. */
3268
- const FORMS_SPREAD_NAMES = new Set(['inputProps', 'field'])
3243
+ /** The spread name this rule resolves (with `fieldKey`) through the local→imported map. */
3244
+ const FORMS_SPREAD_NAMES = new Set(['inputProps'])
3269
3245
 
3270
3246
  const FORMS_FIELD_KEY_MESSAGES = {
3271
3247
  missing:
@@ -3276,13 +3252,6 @@ const FORMS_FIELD_KEY_MESSAGES = {
3276
3252
  '`key` because a spread `key` is a React 19 warning, and a call site that merely kept the ' +
3277
3253
  'spread compiles unchanged and silently stops resetting. ' +
3278
3254
  '(basalt/forms-field-key)',
3279
- deprecatedAlias:
3280
- 'A spread `field(…)`. `field` NO LONGER EXISTS — it was the @deprecated 1.27 alias and 1.29.0 ' +
3281
- 'removed it, so this import does not resolve and this file does not compile. Rewrite it as ' +
3282
- '`key={fieldKey(form, path)} {...inputProps(form, path)}` (two calls, never one object: a ' +
3283
- 'spread `key` is a React 19 warning). Not autofixed: the honest edit rewrites the import as ' +
3284
- 'well as the call site. packages/basalt-ui/MIGRATING.md carries the row. ' +
3285
- '(basalt/forms-field-key)',
3286
3255
  }
3287
3256
 
3288
3257
  /** The `key` attribute among a JSXOpeningElement's attributes, if it has one written literally. */
@@ -3294,8 +3263,8 @@ function hasKeyAttribute(opening) {
3294
3263
  }
3295
3264
 
3296
3265
  /**
3297
- * A field spread that lost its reconciler key — the guard for the one change in the 1.28.0 forms
3298
- * minor that a consumer's compiler cannot see.
3266
+ * A field spread that lost its reconciler key — the guard for the one forms change a consumer's
3267
+ * compiler cannot see.
3299
3268
  *
3300
3269
  * `inputProps` used to return `getInputProps(path)` AND `key` in one object, so
3301
3270
  * `<TextInput {...inputProps(form, 'x')} />` covered both. It no longer returns `key` (a spread
@@ -3303,18 +3272,10 @@ function hasKeyAttribute(opening) {
3303
3272
  * validates — it just stops resetting. There is no compile error, no throw and no console line to
3304
3273
  * find it by, which is precisely the profile a lint rule exists for.
3305
3274
  *
3306
- * TWO forms under this one id, because they are one law read from either end:
3307
- *
3308
- * - `{...inputProps(…)}` with no sibling `key` — the post-migration mistake. Autofixed: the `key`
3309
- * attribute is inserted with the SAME arguments, and `fieldKey` is added to the existing
3310
- * `basalt-ui/forms` import when it is not already there, so `--fix` produces working code rather
3311
- * than an unresolved identifier.
3312
- * - `{...field(…)}` — the pre-migration call site. Reported ALWAYS, key or no key, and deliberately
3313
- * NOT autofixed: the honest edit rewrites the IMPORT as well as the call site, and a fixer that
3314
- * only touched the spread would leave an unresolved `field` behind. This arm is the whole reason
3315
- * the rule still knows the name — 1.29.0 deleted `field` with no autofix left, so a consumer skipping 1.28.x reaches 1.29.x with a hard compile error and
3316
- * nothing but tsc to explain it. The message says that in so many words; it used to describe the
3317
- * alias as still shipping and still bundling `key`, which read as "nothing is broken yet".
3275
+ * `{...inputProps(…)}` with no sibling `key` is reported and autofixed: the `key` attribute is
3276
+ * inserted with the SAME arguments, and `fieldKey` is added to the existing `basalt-ui/forms`
3277
+ * import when it is not already there, so `--fix` produces working code rather than an unresolved
3278
+ * identifier.
3318
3279
  *
3319
3280
  * Provenance is the `basalt-ui/forms` specifier (plus a relative import inside basalt's own `src/`,
3320
3281
  * or the dogfood surface goes silent — the same gate `collectBasaltImports` uses), read through the
@@ -3325,14 +3286,14 @@ function hasKeyAttribute(opening) {
3325
3286
  const formsFieldKey = {
3326
3287
  meta: {
3327
3288
  type: 'suggestion',
3328
- docs: { description: 'Warn on a spread field object that lost (or still bundles) its key.' },
3289
+ docs: { description: 'Warn on an inputProps spread that lost its reconciler key.' },
3329
3290
  schema: [],
3330
3291
  fixable: 'code',
3331
3292
  },
3332
3293
  create(context) {
3333
3294
  if (isTestFile(context)) return {}
3334
3295
  const ownTree = isBasaltOwnSource(getFilename(context))
3335
- /** local name → the name it was imported as, for the three forms names. */
3296
+ /** local name → the name it was imported as, for the forms names this rule reads. */
3336
3297
  const imported = new Map()
3337
3298
  /** The forms ImportDeclaration the `fieldKey` specifier is added to, if one exists. */
3338
3299
  let formsImport
@@ -3373,10 +3334,6 @@ const formsFieldKey = {
3373
3334
  if (name === undefined) continue
3374
3335
  if (hasThemeAllow(context, node, 'forms-field-key')) continue
3375
3336
 
3376
- if (name === 'field') {
3377
- context.report({ node, message: FORMS_FIELD_KEY_MESSAGES.deprecatedAlias })
3378
- continue
3379
- }
3380
3337
  if (hasKeyAttribute(opening)) continue
3381
3338
 
3382
3339
  const args = call.arguments ?? []
@@ -145,7 +145,7 @@ describe('basalt/no-raw-font-size', () => {
145
145
 
146
146
  it('does NOT flag a numeric fontSize with a same-line theme-allow comment', () => {
147
147
  const { code, rules } = run(
148
- `export const C = () => <Text fz={10} /* theme-allow: legacy */>a</Text>\n`,
148
+ `export const C = () => <Text fz={10} /* theme-allow no-raw-font-size — legacy */>a</Text>\n`,
149
149
  )
150
150
  expect(code).toBe(0)
151
151
  expect(rules).not.toContain('no-raw-font-size')
@@ -189,7 +189,7 @@ describe('basalt/raw-size-literal', () => {
189
189
 
190
190
  it('does NOT flag with a same-line theme-allow comment', () => {
191
191
  const { code, rules } = run(
192
- `export const C = () => <Text fz="0.8rem" /* theme-allow: legacy */>a</Text>\n`,
192
+ `export const C = () => <Text fz="0.8rem" /* theme-allow raw-size-literal — legacy */>a</Text>\n`,
193
193
  )
194
194
  expect(code).toBe(0)
195
195
  expect(rules).not.toContain('raw-size-literal')
@@ -1686,9 +1686,18 @@ describe('theme-allow with an unrecognized rule id', () => {
1686
1686
  expect(code).toBe(0)
1687
1687
  })
1688
1688
 
1689
- it('a bare theme-allow still waives everything', () => {
1690
- const { rules } = run(`export const C = () => <Text fz={10} /> // theme-allow\n`)
1691
- expect(rules).not.toContain('no-raw-font-size')
1689
+ it('a bare theme-allow waives nothing', () => {
1690
+ const { code, rules } = run(`export const C = () => <Text fz={10} /> // theme-allow\n`)
1691
+ expect(code).toBe(1)
1692
+ expect(rules).toContain('no-raw-font-size')
1693
+ })
1694
+
1695
+ it('a prose-only annotation (no rule id) waives nothing', () => {
1696
+ const { code, rules } = run(
1697
+ `export const C = () => <Text fz={10} /> // theme-allow: legacy widget\n`,
1698
+ )
1699
+ expect(code).toBe(1)
1700
+ expect(rules).toContain('no-raw-font-size')
1692
1701
  })
1693
1702
 
1694
1703
  it('does not resolve an Object.prototype key as a rule id', () => {
@@ -3301,31 +3310,14 @@ describe('basalt/forms-field-key', () => {
3301
3310
  expect(rules).toContain('forms-field-key')
3302
3311
  })
3303
3312
 
3304
- // The second message: reported whether or not the element carries a key — the remedy is the
3305
- // rename, never an added attribute.
3306
- it('flags a spread field() even when the element already has a key', () => {
3307
- const { code, rules } = run(
3313
+ // `field` was the @deprecated 1.27 alias and is gone; this rule resolves `inputProps` alone, so a
3314
+ // spread `field(…)` import is no longer its concern (the unresolved import fails the compile).
3315
+ it('does NOT flag a spread field() — only inputProps is resolved', () => {
3316
+ const { rules } = run(
3308
3317
  `import { field } from 'basalt-ui/forms'\n` +
3309
3318
  `export const C = () => <TextInput key="e" {...field(form, 'email')} />\n`,
3310
3319
  )
3311
- expect(code).toBe(1)
3312
- expect(rules).toContain('forms-field-key')
3313
- })
3314
-
3315
- /**
3316
- * The message has to state the version it is RUNNING at, not the one the deprecation was
3317
- * scheduled in. It used to say the alias "still bundles `key` INTO the returned object" and "is
3318
- * removed in 1.29.0" while running AT 1.29.x, where `field` no longer exists at all — a consumer
3319
- * reading it concluded nothing was broken, on a call site that does not compile.
3320
- */
3321
- it('says `field` no longer exists, not that it is merely deprecated', () => {
3322
- const { output } = run(
3323
- `import { field } from 'basalt-ui/forms'\n` +
3324
- `export const C = () => <TextInput {...field(form, 'email')} />\n`,
3325
- )
3326
- expect(output).toContain('NO LONGER EXISTS')
3327
- expect(output).toContain('does not compile')
3328
- expect(output).not.toContain('still bundles')
3320
+ expect(rules).not.toContain('forms-field-key')
3329
3321
  })
3330
3322
 
3331
3323
  it('honours a theme-allow naming the rule', () => {
@@ -50,7 +50,7 @@ export type BandStripProps<T, X extends ChartX = ChartX> = Omit<CartesianChartPr
50
50
  /**
51
51
  * The `states` key that means "not measured". A band in it is flat-filled like any state; a
52
52
  * band in another state paints its `absentFraction` share in this state's color, and the
53
- * tooltip adds this state's row. Absent stays a legended, flat `VX.neutral` state, never a
53
+ * tooltip adds this state's row. Absent stays a legended, flat state, never a
54
54
  * hatch: it reads as "no data" by hue and by sitting at the band's right edge, not as zero.
55
55
  */
56
56
  absentState?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BandStrip.d.ts","sourceRoot":"","sources":["../../src/charts/BandStrip.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAOzC,OAAO,KAAK,EAEV,mBAAmB,EAEnB,WAAW,EACX,MAAM,EAGP,MAAM,SAAS,CAAA;AAEhB,gGAAgG;AAChG,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,IAAI,CACnC,WAAW,CAAC,CAAC,CAAC,EACd,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,aAAa,CAC1E,GAAG;IACF;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,MAAM,GAAG,IAAI,CAAC,GAAG,SAAS,CAAA;CACpD,CAAA;AAED,2DAA2D;AAC3D,MAAM,MAAM,QAAQ,GAAG;IACrB,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAA;IACb,oGAAoG;IACpG,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC;;;OAGG;IACH,MAAM,CAAC,EACH;QACE,0CAA0C;QAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;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,IAAI,IAAI,CAC7D,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,eAAe,CAAC,CAAC,CAAC,EAAE,CAAA;IACrC,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,MAAM,GAAG,SAAS,CAAA;CACjC,CAAA;AAkND,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,YAAY,CAgJjG"}
1
+ {"version":3,"file":"BandStrip.d.ts","sourceRoot":"","sources":["../../src/charts/BandStrip.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AASzC,OAAO,KAAK,EAEV,mBAAmB,EAEnB,WAAW,EACX,MAAM,EAGP,MAAM,SAAS,CAAA;AAEhB,gGAAgG;AAChG,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,IAAI,CACnC,WAAW,CAAC,CAAC,CAAC,EACd,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,aAAa,CAC1E,GAAG;IACF;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,MAAM,GAAG,IAAI,CAAC,GAAG,SAAS,CAAA;CACpD,CAAA;AAED,2DAA2D;AAC3D,MAAM,MAAM,QAAQ,GAAG;IACrB,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAA;IACb,oGAAoG;IACpG,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC;;;OAGG;IACH,MAAM,CAAC,EACH;QACE,0CAA0C;QAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;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,IAAI,IAAI,CAC7D,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,eAAe,CAAC,CAAC,CAAC,EAAE,CAAA;IACrC,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,MAAM,GAAG,SAAS,CAAA;CACjC,CAAA;AAoMD,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,YAAY,CAgJjG"}
@@ -7,6 +7,7 @@ import { oneOf, requiredProp } from "../common/errors.js";
7
7
  import { NON_FINITE } from "../format/shared.js";
8
8
  import { VX, alpha } from "../tokens/index.js";
9
9
  import { CartesianRung } from "./CartesianChart.js";
10
+ import { groupsOf } from "./band-fold.js";
10
11
  import { emphasis } from "./marks.js";
11
12
  import { rowX } from "./types.js";
12
13
  const DEFAULT_MIN_BAND_PX = 3;
@@ -18,16 +19,6 @@ const STRIP_AXIS = {
18
19
  };
19
20
  const ZX_ANCHOR = [{ fill: "transparent" }];
20
21
  const UNKNOWN_FILL = alpha(VX.neutral, 0.2);
21
- function groupsOf(data, cap) {
22
- const size = Math.max(1, Math.ceil(data.length / Math.max(cap, 1)));
23
- const out = [];
24
- data.forEach((d, i) => {
25
- const last = out.at(-1);
26
- if (last && last.items.length < size) last.items.push(d);
27
- else out.push({ start: i, items: [d] });
28
- });
29
- return out;
30
- }
31
22
  function paintInto(layers, fill, opacity, cell) {
32
23
  const key = `${fill}|${opacity}`;
33
24
  const layer = layers.get(key);