basalt-ui 2.16.0 → 2.18.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.
- package/CHANGELOG.md +165 -124
- package/MIGRATING.md +133 -15
- package/agent/agents/basalt-design-reviewer.md +2 -2
- package/agent/skills/basalt-design/SKILL.md +3 -3
- package/configs/oxlint-plugin.js +2 -2
- package/dist/charts/Donut.d.ts.map +1 -1
- package/dist/charts/Donut.js +2 -2
- package/dist/charts/DualPanel.js +2 -2
- package/dist/charts/Heatmap.d.ts.map +1 -1
- package/dist/charts/Heatmap.js +2 -2
- package/dist/charts/MirroredBars.js +2 -2
- package/dist/charts/Sparkline.d.ts +4 -2
- package/dist/charts/Sparkline.d.ts.map +1 -1
- package/dist/charts/Sparkline.js +3 -3
- package/dist/charts/compile.d.ts +8 -3
- package/dist/charts/compile.d.ts.map +1 -1
- package/dist/charts/compile.js +19 -9
- package/dist/charts/cursor.d.ts +14 -1
- package/dist/charts/cursor.d.ts.map +1 -1
- package/dist/charts/cursor.js +29 -3
- package/dist/charts/date-tick-format.d.ts +17 -0
- package/dist/charts/date-tick-format.d.ts.map +1 -0
- package/dist/charts/date-tick-format.js +81 -0
- package/dist/charts/panel.d.ts +2 -1
- package/dist/charts/panel.d.ts.map +1 -1
- package/dist/charts/panel.js +3 -2
- package/dist/charts/types.d.ts +5 -1
- package/dist/charts/types.d.ts.map +1 -1
- package/dist/cli/help.d.ts +1 -0
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +8 -2
- package/dist/cli/shot/capture.d.ts +28 -1
- package/dist/cli/shot/capture.d.ts.map +1 -1
- package/dist/cli/shot/capture.js +96 -13
- package/dist/cli/shot/index.d.ts +10 -1
- package/dist/cli/shot/index.d.ts.map +1 -1
- package/dist/cli/shot/index.js +40 -5
- package/dist/cli/shot/playwright.d.ts +4 -0
- package/dist/cli/shot/playwright.d.ts.map +1 -1
- package/dist/cli/shot/real-data.d.ts +35 -0
- package/dist/cli/shot/real-data.d.ts.map +1 -0
- package/dist/cli/shot/real-data.js +120 -0
- package/dist/cli/shot/serve.d.ts +2 -2
- package/dist/cli/shot/serve.d.ts.map +1 -1
- package/dist/cli/shot/serve.js +16 -2
- package/dist/dashboard/bar-list.d.ts +29 -0
- package/dist/dashboard/bar-list.d.ts.map +1 -0
- package/dist/dashboard/bar-list.js +52 -0
- package/dist/dashboard/bar-list.module.css +73 -0
- package/dist/dashboard/bar-list.module.css.d.ts +16 -0
- package/dist/dashboard/delta-badge.d.ts +2 -2
- package/dist/dashboard/delta-badge.d.ts.map +1 -1
- package/dist/dashboard/delta-badge.js +12 -14
- package/dist/dashboard/index.d.ts +2 -0
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +4 -0
- package/dist/dashboard/meter-model.d.ts +78 -0
- package/dist/dashboard/meter-model.d.ts.map +1 -0
- package/dist/dashboard/meter-model.js +91 -0
- package/dist/dashboard/meter-parts.d.ts +42 -0
- package/dist/dashboard/meter-parts.d.ts.map +1 -0
- package/dist/dashboard/meter-parts.js +163 -0
- package/dist/dashboard/meter.d.ts +112 -0
- package/dist/dashboard/meter.d.ts.map +1 -0
- package/dist/dashboard/meter.js +43 -0
- package/dist/dashboard/meter.module.css +150 -0
- package/dist/dashboard/meter.module.css.d.ts +28 -0
- package/dist/dashboard/query-state.d.ts +35 -0
- package/dist/dashboard/query-state.d.ts.map +1 -1
- package/dist/dashboard/query-state.js +12 -1
- package/dist/dashboard/scale.d.ts +9 -0
- package/dist/dashboard/scale.d.ts.map +1 -0
- package/dist/dashboard/scale.js +10 -0
- package/dist/dashboard/stat-card-parts.d.ts +40 -0
- package/dist/dashboard/stat-card-parts.d.ts.map +1 -0
- package/dist/dashboard/stat-card-parts.js +55 -0
- package/dist/dashboard/stat-card.d.ts +46 -34
- package/dist/dashboard/stat-card.d.ts.map +1 -1
- package/dist/dashboard/stat-card.js +148 -79
- package/dist/dashboard/stat-card.module.css +220 -7
- package/dist/dashboard/stat-card.module.css.d.ts +20 -0
- package/dist/dashboard/widget-header.d.ts.map +1 -1
- package/dist/dashboard/widget-header.js +73 -9
- package/dist/dashboard/widget-header.module.css +25 -17
- package/dist/guard/index.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/theme/chrome-vars.d.ts +82 -0
- package/dist/theme/chrome-vars.d.ts.map +1 -0
- package/dist/theme/chrome-vars.js +36 -0
- package/dist/theme/controls.module.css +20 -1
- package/dist/theme/controls.module.css.d.ts +1 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +30 -33
- package/dist/tokens/derive.d.ts +11 -1
- package/dist/tokens/derive.d.ts.map +1 -1
- package/dist/tokens/derive.js +9 -24
- package/dist/tokens/status-text.d.ts +26 -0
- package/dist/tokens/status-text.d.ts.map +1 -0
- package/dist/tokens/status-text.js +68 -0
- package/llms.txt +36 -4
- package/package.json +1 -1
- package/src/charts/Donut.tsx +2 -2
- package/src/charts/DualPanel.tsx +2 -2
- package/src/charts/Heatmap.tsx +2 -2
- package/src/charts/MirroredBars.tsx +2 -2
- package/src/charts/Sparkline.tsx +7 -5
- package/src/charts/compile.ts +31 -11
- package/src/charts/cursor.ts +48 -3
- package/src/charts/date-tick-format.ts +132 -0
- package/src/charts/panel.tsx +5 -3
- package/src/charts/types.ts +5 -1
- package/src/cli/help.ts +22 -2
- package/src/cli/shot/capture.ts +133 -12
- package/src/cli/shot/index.ts +50 -4
- package/src/cli/shot/playwright.ts +1 -1
- package/src/cli/shot/real-data.ts +165 -0
- package/src/cli/shot/serve.ts +28 -3
- package/src/dashboard/bar-list.module.css +73 -0
- package/src/dashboard/bar-list.module.css.d.ts +16 -0
- package/src/dashboard/bar-list.tsx +112 -0
- package/src/dashboard/delta-badge.tsx +24 -18
- package/src/dashboard/index.ts +2 -0
- package/src/dashboard/meter-model.ts +161 -0
- package/src/dashboard/meter-parts.tsx +223 -0
- package/src/dashboard/meter.module.css +150 -0
- package/src/dashboard/meter.module.css.d.ts +28 -0
- package/src/dashboard/meter.tsx +162 -0
- package/src/dashboard/query-state.tsx +38 -0
- package/src/dashboard/scale.ts +13 -0
- package/src/dashboard/stat-card-parts.tsx +108 -0
- package/src/dashboard/stat-card.module.css +220 -7
- package/src/dashboard/stat-card.module.css.d.ts +20 -0
- package/src/dashboard/stat-card.tsx +282 -174
- package/src/dashboard/widget-header.module.css +25 -17
- package/src/dashboard/widget-header.tsx +103 -7
- package/src/guard/index.ts +2 -2
- package/src/index.ts +4 -0
- package/src/theme/__snapshots__/plain-theme.test.ts.snap +128 -40
- package/src/theme/chrome-vars.ts +111 -0
- package/src/theme/controls.module.css +20 -1
- package/src/theme/controls.module.css.d.ts +1 -0
- package/src/theme/index.ts +39 -101
- package/src/tokens/derive.ts +19 -26
- package/src/tokens/status-text.ts +85 -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 | 2.16.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) | — |
|
|
69
|
+
| Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | 2.2.0 | 2.3.0 | 2.4.0 | 2.5.0 | 2.6.0 | 2.6.1 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.8.0 | 2.8.1 | 2.9.0 | 2.9.1 | 2.10.0 | 2.11.0 | 2.11.1 | 2.12.0 | 2.13.0 | 2.13.1 | 2.13.2 | 2.13.3 | 2.14.0 | 2.15.0 | 2.16.0 | 2.17.0 | 2.18.0 | 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,124 @@ 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.18.0
|
|
1050
|
+
|
|
1051
|
+
### Status text derived per surface
|
|
1052
|
+
|
|
1053
|
+
Wave 34 of the design-parity track (`docs/waves/design-parity/SPEC.md` § 12 D22). No export is
|
|
1054
|
+
added, removed or renamed.
|
|
1055
|
+
|
|
1056
|
+
`--vx-status-good`, `--vx-status-warn` and `--vx-status-bad` (light and dark) are painted as text
|
|
1057
|
+
(`DeltaBadge`, a toned row), but their tones were fixed while the surfaces move with `lightLevel`,
|
|
1058
|
+
`darkLevel` and `neutral`; off the defaults they read 3.2–3.9:1. Each solid is now derived from the
|
|
1059
|
+
surfaces the palette produced: **it shifts in lightness only when needed to restore the 4.5:1
|
|
1060
|
+
floor** on every text surface (`bg`, `panel`, `panelHover`, `elevated`, `subtle`, `field`). Light
|
|
1061
|
+
darkens, dark lightens; hue is preserved and chroma may clip at the gamut edge.
|
|
1062
|
+
|
|
1063
|
+
- **Defaults are unchanged**: at the default config every status hex is byte-identical.
|
|
1064
|
+
- At a non-default `lightLevel`, `darkLevel` or `neutral` the status solids shift in lightness only as far as the floor needs.
|
|
1065
|
+
- `lightLevel` / `darkLevel` outside -5..5 are clamped to the nearest bound (non-finite becomes 0).
|
|
1066
|
+
- No opt-out is needed. A consumer that pins a status hex at a non-default config passes its own
|
|
1067
|
+
colour and owns the contrast.
|
|
1068
|
+
|
|
1069
|
+
### `shot` on a real app
|
|
1070
|
+
|
|
1071
|
+
- `basalt-ui shot` captures a signed-in app with live data. `--local-storage <key>=<@env:NAME|@file:path>` seeds
|
|
1072
|
+
localStorage on the app origin before any page script (an argo-style bearer token); `--api /api=https://app.example.com`
|
|
1073
|
+
makes the `--dist` server proxy GET/HEAD under that prefix (other methods get 405 unless `--api-allow-writes`);
|
|
1074
|
+
`--header authorization=@env:NAME` is added to every proxied request, to every `--api` origin (https required), never
|
|
1075
|
+
to a page navigation; `--wait <ms>` adds a settle after `networkidle` (default none); `--auto-anchors` crops every
|
|
1076
|
+
Card, Paper and table over 120×60 px on a page with no `data-shot`. A redirect, 401/403/404, 5xx or unreachable API fails every shot of that page; a localStorage key the app already holds is not overwritten; `--header` is refused when `--api` names more than one origin; any secret (`--header` or `--local-storage`) requires an https `--api` origin.
|
|
1077
|
+
Secret values are never printed or written to `board.html` or `metrics.json`. Shots of real data reach the reviewer
|
|
1078
|
+
subagent's model provider: point `--api` at staging or synthetic data for an app holding third parties' data. No
|
|
1079
|
+
action needed; every flag is opt-in.
|
|
1080
|
+
|
|
1081
|
+
## 2.17.0 — the metric card and chrome
|
|
1082
|
+
|
|
1083
|
+
Wave 33 of the design-parity track (`docs/waves/design-parity/SPEC.md` § 6.10, § 6.12). No export is
|
|
1084
|
+
added, removed or renamed; three theme defaults change, each with a one-prop way back.
|
|
1085
|
+
|
|
1086
|
+
- **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.
|
|
1087
|
+
|
|
1088
|
+
### Badge, subtle Button, Tabs
|
|
1089
|
+
|
|
1090
|
+
| What | Old | New | Opt out |
|
|
1091
|
+
| ------------------------------- | -------------------------------------- | --------------------------------------------------------- | -------------------------------------------------------------------- |
|
|
1092
|
+
| `Badge` default variant | `filled` (accent fill, on-colour text) | `light` (13% status tint, ink-pulled text) | `variant="filled"` |
|
|
1093
|
+
| `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>"` |
|
|
1094
|
+
| `Badge` radius | `ctrl` (6 at level 0) | `tight` (5 at level 0; follows the `radius` knob) | `radius="md"` |
|
|
1095
|
+
| `Badge` leading glyph | Mantine's section, 4px gap, unsized | `leftSection` svg is 12px, 4px gap, centred at 20 high | `classNames={{ section: … }}` override |
|
|
1096
|
+
| `Button variant="subtle"` label | accent ink | neutral ink (`--vx-ink`) | `color="blue"` (any explicit colour) |
|
|
1097
|
+
| `Tabs` active underline | accent (`--tabs-color`) | ink (`--vx-ink`) | `color="blue"` on `Tabs` |
|
|
1098
|
+
|
|
1099
|
+
- `Badge` height stays 20 (Mantine `md`). `filled` remains right for a count on an accent surface.
|
|
1100
|
+
- The subtle opt-out is any explicit `color` prop, the primary colour included. An explicit colour
|
|
1101
|
+
keeps Mantine's own tinted label **and hover**: the ink-6% hover (1.x–2.16) now applies only to a
|
|
1102
|
+
subtle control that names no colour, so `color="blue"` hovers into the accent tint again.
|
|
1103
|
+
- `Tabs variant="pills"` is untouched: it fills with the colour, so it keeps the accent.
|
|
1104
|
+
|
|
1105
|
+
### StatCard and Sparkline
|
|
1106
|
+
|
|
1107
|
+
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.
|
|
1108
|
+
|
|
1109
|
+
| What | Old | New | Opt-out / replacement |
|
|
1110
|
+
| ----------------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
|
|
1111
|
+
| `Sparkline` `emphasizeLast` | `false` (no end dot) | `true` | `emphasizeLast={false}` |
|
|
1112
|
+
| `Sparkline` `emphasisColor` | `VX.accent` | `VX.line` (the line's own neutral) | `emphasisColor={VX.accent}`, or a status / trend colour |
|
|
1113
|
+
| `Sparkline` stroke | 1.6 | 1.5 | none |
|
|
1114
|
+
| `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 |
|
|
1115
|
+
| `StatCard` `title` | head-font heading | mono uppercase `micro` caption, faint ink | none (`ChartCard` keeps its head-font title) |
|
|
1116
|
+
| `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` |
|
|
1117
|
+
| `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 |
|
|
1118
|
+
| `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 |
|
|
1119
|
+
| `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 |
|
|
1120
|
+
| `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 |
|
|
1121
|
+
| `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 |
|
|
1122
|
+
| `StatCard` `emptyText` | — | new `string`, default `No data for this period` | pass your own sentence that says why it is empty |
|
|
1123
|
+
| `StatCard` `loading` | — | new `boolean`: the same skeleton with no query, with a visually hidden `Loading <title>` and `aria-busy` | — |
|
|
1124
|
+
| `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 |
|
|
1125
|
+
| `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 |
|
|
1126
|
+
| `DeltaBadge` glyph | 0.8 em of its parent (9.6 px) | the `micro` rung (11 px) | none |
|
|
1127
|
+
|
|
1128
|
+
- **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`.
|
|
1129
|
+
- **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.
|
|
1130
|
+
- **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`.
|
|
1131
|
+
- **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).
|
|
1132
|
+
- **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).
|
|
1133
|
+
|
|
1134
|
+
### Date ticks
|
|
1135
|
+
|
|
1136
|
+
The default x tick labels of a Date axis (`CartesianChart`, so `Lines`, `Bars`, `StackedArea`) follow
|
|
1137
|
+
the tick step instead of printing `DD.MM` everywhere, and never repeat on one axis. Reads stay UTC.
|
|
1138
|
+
|
|
1139
|
+
| Tick step | Old | New |
|
|
1140
|
+
| --------- | --------------------- | -------------------------------------------------------------------------- |
|
|
1141
|
+
| sub-day | `17.10`, `17.10`, ... | `HH:MM`, `DD.MM` on each midnight tick (`12:00, 18:00, 18.10, 06:00, ...`) |
|
|
1142
|
+
| days | `DD.MM` | `DD.MM` (unchanged) |
|
|
1143
|
+
| months+ | `DD.MM` | `Oct`, the year on each January (`2027`) |
|
|
1144
|
+
|
|
1145
|
+
A clock or month may recur on one axis, always behind a day or year label. With no such marker in
|
|
1146
|
+
reach (36 h with no midnight tick; two Aprils with no January) the first tick of each day carries
|
|
1147
|
+
its date (`17.10 06:00`), or the month its year (`Apr 2026`); sub-minute steps add seconds, then
|
|
1148
|
+
milliseconds. `BandStrip`, `DualPanel` and `MirroredBars` take the same default (they printed
|
|
1149
|
+
`DD.MM`).
|
|
1150
|
+
|
|
1151
|
+
Opt out: pass `formatX` (it always wins), e.g. the old one-liner:
|
|
1152
|
+
|
|
1153
|
+
```ts
|
|
1154
|
+
const ddmm = (d: Date) =>
|
|
1155
|
+
`${String(d.getUTCDate()).padStart(2, '0')}.${String(d.getUTCMonth() + 1).padStart(2, '0')}`
|
|
1156
|
+
<Lines formatX={ddmm} … />
|
|
1157
|
+
```
|
|
1158
|
+
|
|
1159
|
+
| Hover readout selector | Old | New |
|
|
1160
|
+
| ---------------------------------- | ----------------- | ----------------------------------- |
|
|
1161
|
+
| `.ts-chart-tooltip[role="status"]` | the engine's role | `.ts-chart-tooltip[role="tooltip"]` |
|
|
1162
|
+
|
|
1163
|
+
The hover readout now carries `role="tooltip"` (it was the engine's `role="status"`) and keeps
|
|
1164
|
+
`aria-live="polite"` on purpose: a tooltip role alone is not announced, and keyboard users should still
|
|
1165
|
+
hear the reading; a test that queried `.ts-chart-tooltip[role="status"]` must follow. `Donut`'s and `Heatmap`'s readouts follow.
|
|
1166
|
+
|
|
1049
1167
|
## 2.16.0 — the even-pixel grid
|
|
1050
1168
|
|
|
1051
1169
|
Wave 32 of the design-parity track moves the spacing, inset, radius and type scales onto an
|
|
@@ -1074,7 +1192,7 @@ number below changes at level 0**, so a layout that was tuned against the old sc
|
|
|
1074
1192
|
|
|
1075
1193
|
- **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.
|
|
1076
1194
|
- **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.
|
|
1077
|
-
- **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.
|
|
1195
|
+
- **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"`.
|
|
1078
1196
|
- **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.
|
|
1079
1197
|
- **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).
|
|
1080
1198
|
- **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.
|
|
@@ -1085,7 +1203,7 @@ number below changes at level 0**, so a layout that was tuned against the old sc
|
|
|
1085
1203
|
|
|
1086
1204
|
### Migrating the guards
|
|
1087
1205
|
|
|
1088
|
-
`raw-spacing` and `inline-spacing` ship at **`warn` for this minor and `error` from 2.
|
|
1206
|
+
`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`:
|
|
1089
1207
|
|
|
1090
1208
|
```json
|
|
1091
1209
|
"basalt": {
|
|
@@ -1094,7 +1212,7 @@ number below changes at level 0**, so a layout that was tuned against the old sc
|
|
|
1094
1212
|
}
|
|
1095
1213
|
```
|
|
1096
1214
|
|
|
1097
|
-
`spacingSteps` keeps the guard on the old numbers (matching a scale you have not moved off yet); `severity` pins both at `warn` past 2.
|
|
1215
|
+
`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.
|
|
1098
1216
|
|
|
1099
1217
|
### Restoring the old feel
|
|
1100
1218
|
|
|
@@ -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
|
|
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
|
|
|
@@ -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
|
|
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,9 +26,9 @@ 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
|
|
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
|
-
- `basalt-ui shot <routes> --dist <built app>` (or `--base <url>` for a running server);
|
|
31
|
+
- `basalt-ui shot <routes> --dist <built app>` (or `--base <url>` for a running server); a real, signed-in app (live data, no `data-shot` yet): `basalt-ui shot /overview --dist dist --api /api=https://app.example.com --local-storage auth-token=@env:APP_TOKEN --auto-anchors` seeds the token (app origin only; `@env:`/`@file:`, never inline), proxies GET/HEAD under `/api` (writes get 405 unless `--api-allow-writes`) and crops every large Card, Paper and table. One `--header authorization=@env:NAME` goes to EVERY `--api` origin (https required for any secret), never on a navigation. A redirect, 401/403/404, 5xx or dead API fails every shot of that page; a key the app already holds is never overwritten. These shots reach the reviewer subagent's model provider, the session's own: an app holding third parties' data should point `--api` at staging or synthetic data;
|
|
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;
|
|
33
33
|
- revise every failing item at its source, rebuild, and shoot again.
|
|
34
34
|
Boards stay local (gitignored); the scored verdict and notes are worth committing.
|
package/configs/oxlint-plugin.js
CHANGED
|
@@ -606,7 +606,7 @@ function attrValue(attr) {
|
|
|
606
606
|
return unwrapExpressionContainer(attr.value)
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
// Ships: warn (grace → 2.
|
|
609
|
+
// Ships: warn (grace → 2.24.0)
|
|
610
610
|
const cardInset = {
|
|
611
611
|
meta: {
|
|
612
612
|
type: 'suggestion',
|
|
@@ -4224,7 +4224,7 @@ const routeViewTransition = {
|
|
|
4224
4224
|
export const PLUGIN_RULE_GRACE = {
|
|
4225
4225
|
'card-inset': {
|
|
4226
4226
|
since: '2.16.0',
|
|
4227
|
-
promote: '2.
|
|
4227
|
+
promote: '2.24.0',
|
|
4228
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
4229
|
},
|
|
4230
4230
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Donut.d.ts","sourceRoot":"","sources":["../../src/charts/Donut.tsx"],"names":[],"mappings":"
|
|
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"}
|
package/dist/charts/Donut.js
CHANGED
|
@@ -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:
|
|
124
|
+
use: engineTooltip,
|
|
125
125
|
portal,
|
|
126
126
|
content: (points) => {
|
|
127
127
|
const slice = points[0]?.datum;
|
package/dist/charts/DualPanel.js
CHANGED
|
@@ -7,7 +7,7 @@ import { scaleUtc } from "d3-scale";
|
|
|
7
7
|
import { useCallback, useMemo } from "react";
|
|
8
8
|
import { VX, alpha } from "../tokens/index.js";
|
|
9
9
|
import { resolveContainerClass } from "../tokens/size-classes.js";
|
|
10
|
-
import {
|
|
10
|
+
import { defaultNumberFormat, engineRow, seriesRow, visibleSeries } from "./compile.js";
|
|
11
11
|
import { barMark, emphasis, lineMark, markersOf, thinFill } from "./marks.js";
|
|
12
12
|
import { PanelRung, chartHeightOf, paneX, paneY, rowsOf } from "./panel.js";
|
|
13
13
|
import { plotContext } from "./plot-context.js";
|
|
@@ -71,7 +71,7 @@ function DualPanel(props) {
|
|
|
71
71
|
const pad = model.step / 2;
|
|
72
72
|
const xScale = () => model.kind === "date" ? scaleUtc().domain([new Date(lo - pad), new Date(hi + pad)]) : scaleLinear().domain([lo - pad, hi + pad]);
|
|
73
73
|
const fillAt = (v) => ((v instanceof Date ? v.getTime() : v) - (lo - pad)) / (hi - lo + 2 * pad);
|
|
74
|
-
const format = (v) => formatX
|
|
74
|
+
const format = formatX ? (v) => formatX(v) : void 0;
|
|
75
75
|
const visible = visibleSeries(lines, hidden);
|
|
76
76
|
const barOn = !hidden.has(BAR_KEY);
|
|
77
77
|
const rows = (s) => visible.includes(s) ? rowsOf(data, x, s) : [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heatmap.d.ts","sourceRoot":"","sources":["../../src/charts/Heatmap.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Heatmap.d.ts","sourceRoot":"","sources":["../../src/charts/Heatmap.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAMlD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AASlD,OAAO,KAAK,EAAe,UAAU,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE9F;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,IAAI,CAAC,eAAe,EAAE,KAAK,GAAG,SAAS,CAAC,GAAG;IAC/F,GAAG,EAAE,CAAC,CAAA;CACP,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,WAAW,GAAG;IACrE,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,SAAS,CAAC,EAAE,CAAA;IAClB,qCAAqC;IACrC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,MAAM,CAAA;IACxB,wCAAwC;IACxC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,MAAM,CAAA;IACxB,4EAA4E;IAC5E,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,MAAM,GAAG,IAAI,CAAA;IACjC,0DAA0D;IAC1D,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;IACpC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;IACpC,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,GAAG,SAA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;IACjC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;CAC/B,CAAA;AA0CD,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,YAAY,CAwP7F"}
|
package/dist/charts/Heatmap.js
CHANGED
|
@@ -2,7 +2,6 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { colorGradientLegend } from "@tanstack/charts/legend";
|
|
3
3
|
import { cell } from "@tanstack/charts/rect";
|
|
4
4
|
import { scaleBand } from "@tanstack/charts/scales/band";
|
|
5
|
-
import { tooltip as tooltipHost } from "@tanstack/charts/tooltip";
|
|
6
5
|
import { portal } from "@tanstack/charts/tooltip/portal";
|
|
7
6
|
import { scaleQuantize } from "d3-scale";
|
|
8
7
|
import { useId, useMemo } from "react";
|
|
@@ -11,6 +10,7 @@ import { resolveContainerClass } from "../tokens/size-classes.js";
|
|
|
11
10
|
import { engineRow, strideTicks } from "./compile.js";
|
|
12
11
|
import { resolveNamedState } from "./band-fold.js";
|
|
13
12
|
import { ABSENT_OPACITY, RAMP_LEVELS, RAMP_OPACITIES } from "./heatmap-fill.js";
|
|
13
|
+
import { engineTooltip } from "./cursor.js";
|
|
14
14
|
import { ChartEngine, idPrefixOf } from "./host.js";
|
|
15
15
|
import { ChartLegend } from "./legend.js";
|
|
16
16
|
import { useCoarsePointer } from "../common/use-media-query.js";
|
|
@@ -113,7 +113,7 @@ function Heatmap(props) {
|
|
|
113
113
|
const header = (c) => `${formatRow(c.row)} \xB7 ${formatCol(c.col)}`;
|
|
114
114
|
const cellMark = (id, group, paint) => cell(group, { id, x: "col", y: "row", inset: CELL_INSET, key: "id", ...paint });
|
|
115
115
|
const tooltipOptions = showTooltip ? {
|
|
116
|
-
use:
|
|
116
|
+
use: engineTooltip,
|
|
117
117
|
portal,
|
|
118
118
|
content: (points) => {
|
|
119
119
|
const point = points[0];
|
|
@@ -6,7 +6,7 @@ import { scaleLinear } from "@tanstack/charts/scales/linear";
|
|
|
6
6
|
import { useCallback, useMemo } from "react";
|
|
7
7
|
import { VX, alpha } from "../tokens/index.js";
|
|
8
8
|
import { resolveContainerClass } from "../tokens/size-classes.js";
|
|
9
|
-
import {
|
|
9
|
+
import { defaultNumberFormat, seriesRow, visibleSeries } from "./compile.js";
|
|
10
10
|
import { barMark, emphasis } from "./marks.js";
|
|
11
11
|
import { PanelRung, chartHeightOf, paneX, paneY, rowsOf } from "./panel.js";
|
|
12
12
|
import { xScaleFor } from "./scales.js";
|
|
@@ -82,7 +82,7 @@ function MirroredBars(props) {
|
|
|
82
82
|
const absentFill = absentEntry ? alpha(absentEntry.color, absentEntry.fillOpacity ?? 1) : VX.neutral;
|
|
83
83
|
const upOn = visible.includes(upSeries);
|
|
84
84
|
const downOn = visible.includes(downSeries);
|
|
85
|
-
const format = (v) => formatX
|
|
85
|
+
const format = formatX ? (v) => formatX(v) : void 0;
|
|
86
86
|
const upMax = paneMax(up, upSeries, drawn, upOn);
|
|
87
87
|
const downMax = paneMax(down, downSeries, drawn, downOn);
|
|
88
88
|
const bandWidth = 2 * model.halfStep * BAND_FILL;
|
|
@@ -13,9 +13,11 @@ export type SparklineProps = BasaltProps & {
|
|
|
13
13
|
mark?: 'line' | 'bar' | undefined;
|
|
14
14
|
/** A `VX.*` ref or a series token. Default `VX.faint`. */
|
|
15
15
|
color?: string | undefined;
|
|
16
|
-
/** Paints the last point in `emphasisColor` — the one reading a trend beside a KPI is for.
|
|
16
|
+
/** Paints the last point in `emphasisColor` — the one reading a trend beside a KPI is for.
|
|
17
|
+
* Default `true`; pass `false` for a bare line. */
|
|
17
18
|
emphasizeLast?: boolean | undefined;
|
|
18
|
-
/** Default `VX.
|
|
19
|
+
/** Default `VX.line`, the line's own neutral, so a single metric stays neutral. Pass a status or
|
|
20
|
+
* trend colour to make the end dot carry a verdict. */
|
|
19
21
|
emphasisColor?: string | undefined;
|
|
20
22
|
/** Pending / error / empty, the same contract as every other kind. The placeholder fills the
|
|
21
23
|
* sparkline's own `width` × `height`, so a loading tile does not shift when the trend lands. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sparkline.d.ts","sourceRoot":"","sources":["../../src/charts/Sparkline.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAQlD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC,gFAAgF;IAChF,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,oBAAoB;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAA;IACjC,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B
|
|
1
|
+
{"version":3,"file":"Sparkline.d.ts","sourceRoot":"","sources":["../../src/charts/Sparkline.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAQlD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC,gFAAgF;IAChF,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,oBAAoB;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAA;IACjC,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B;uDACmD;IACnD,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACnC;2DACuD;IACvD,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC;oGACgG;IAChG,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;CAC/B,CAAA;AAED,KAAK,KAAK,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAwG5C;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,SAAS,KAAK,EAAE,EACtB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GAAG,KAAK,GACnB,SAAS,KAAK,EAAE,CAIlB;AA8ED,qEAAqE;AAErE,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,YAAY,CAyC7D"}
|
package/dist/charts/Sparkline.js
CHANGED
|
@@ -11,7 +11,7 @@ import { barMark } from "./marks.js";
|
|
|
11
11
|
import { ChartEngine, idPrefixOf } from "./host.js";
|
|
12
12
|
import { ChartPlaceholder, resolveChartState } from "./state.js";
|
|
13
13
|
import { CHART_THEME } from "./theme.js";
|
|
14
|
-
const LINE_WIDTH = 1.
|
|
14
|
+
const LINE_WIDTH = 1.5;
|
|
15
15
|
const DOT_R = 2.5;
|
|
16
16
|
const BAR_GAP = 0.15;
|
|
17
17
|
const LINE_PX_PER_POINT = 1;
|
|
@@ -156,8 +156,8 @@ function Sparkline(props) {
|
|
|
156
156
|
width,
|
|
157
157
|
mark = "line",
|
|
158
158
|
color = VX.faint,
|
|
159
|
-
emphasizeLast =
|
|
160
|
-
emphasisColor = VX.
|
|
159
|
+
emphasizeLast = true,
|
|
160
|
+
emphasisColor = VX.line,
|
|
161
161
|
state,
|
|
162
162
|
className,
|
|
163
163
|
style
|
package/dist/charts/compile.d.ts
CHANGED
|
@@ -28,8 +28,6 @@ export type CartesianInput<T, X extends ChartX> = Pick<CartesianChartProps<T, X>
|
|
|
28
28
|
plot?: PlotSizes | null;
|
|
29
29
|
};
|
|
30
30
|
export declare function defaultNumberFormat(v: number): string;
|
|
31
|
-
/** `DD.MM`, read in UTC like the time scale that placed it (a local read shifts a day west of UTC). */
|
|
32
|
-
export declare function utcAxisDate(d: Date): string;
|
|
33
31
|
/** `Mon Sep 1 2026`, in UTC; a non-midnight instant adds `HH:MM`. */
|
|
34
32
|
export declare function utcHeaderDate(d: Date): string;
|
|
35
33
|
/**
|
|
@@ -72,10 +70,17 @@ export declare function yGuide<T>(opts: {
|
|
|
72
70
|
* the ones that collide, so a short-label grid (18 hour columns) would otherwise draw all of them.
|
|
73
71
|
*/
|
|
74
72
|
export declare function strideTicks<V>(values: readonly V[], cls: ContainerClass): V[];
|
|
73
|
+
/**
|
|
74
|
+
* The one decision between a consumer's x format and the default: the consumer's wins; else dates
|
|
75
|
+
* read span-aware from the given tick values; else the plain default (numbers, strings, and a lone
|
|
76
|
+
* Date with no ticks to read a span from).
|
|
77
|
+
*/
|
|
78
|
+
export declare function xTickFormat(consumer: ((v: ChartValue) => string) | undefined, tickValues: readonly ChartValue[]): (v: ChartValue) => string;
|
|
75
79
|
export declare function xGuide<X extends ChartX>(opts: {
|
|
76
80
|
model: XScaleModel<X>;
|
|
77
81
|
xTicks: number | readonly X[] | undefined;
|
|
78
|
-
|
|
82
|
+
/** A consumer's formatter; absent, Date ticks get the span-aware {@link xTickFormat}. */
|
|
83
|
+
format?: ((v: ChartValue) => string) | undefined;
|
|
79
84
|
cls: ContainerClass;
|
|
80
85
|
/** The whole chart's height: decides whether the left margin is locked to zero. */
|
|
81
86
|
height: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/charts/compile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/charts/compile.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAEV,aAAa,EAEb,yBAAyB,EACzB,eAAe,IAAI,gBAAgB,EACnC,UAAU,EACV,yBAAyB,EAE1B,MAAM,6BAA6B,CAAA;AAIpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAK5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAG/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EAEnB,WAAW,EACX,eAAe,EACf,MAAM,EAEN,OAAO,EAEP,QAAQ,EACT,MAAM,SAAS,CAAA;AAEhB;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,CAAA;AAE/F,gGAAgG;AAChG,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,IAAI,IAAI,CACpD,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,EACvB,MAAM,GACN,GAAG,GACH,QAAQ,GACR,OAAO,GACP,GAAG,GACH,IAAI,GACJ,QAAQ,GACR,SAAS,GACT,SAAS,GACT,OAAO,GACP,QAAQ,GACR,UAAU,GACV,aAAa,GACb,kBAAkB,GAClB,SAAS,CACZ,GAAG;IACF,8FAA8F;IAC9F,OAAO,EAAE,MAAM,CAAA;IACf,8CAA8C;IAC9C,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC5B,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,wDAAwD;IACxD,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,qDAAqD;IACrD,MAA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AA;IAChD,GAAG,EAAE,cAAc,CAAA;IACnB,mFAAmF;IACnF,MAAM,EAAE,MAAM,CAAA;CACf,GAAG,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,CAiCvD;AAED,+FAA+F;AAC/F,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAAgC,CAAA;AAE/E,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,aAAa,CAYxE;AAKD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,SAAS,QAAQ,EAAE,EAC1B,MAAM,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GACjC,aAAa,GAAG,IAAI,CAuBtB;AA4bD,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAClD,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1B,mBAAmB,CAyErB"}
|
package/dist/charts/compile.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { dateTickFormat, monthName, pad2, utcAxisDate } from "./date-tick-format.js";
|
|
1
2
|
import { crosshair } from "@tanstack/charts/crosshair";
|
|
2
3
|
import { decorative } from "@tanstack/charts/mark/decorative";
|
|
3
4
|
import { rect } from "@tanstack/charts/rect";
|
|
@@ -28,14 +29,9 @@ const labelsInside = (cls, height) => cls === "compact" && height > 0 && height
|
|
|
28
29
|
function defaultNumberFormat(v) {
|
|
29
30
|
return compact(v, { digits: Math.abs(v) >= 1e3 ? 1 : 2 });
|
|
30
31
|
}
|
|
31
|
-
const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
32
32
|
const DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
33
|
-
const pad2 = (n) => String(n).padStart(2, "0");
|
|
34
|
-
function utcAxisDate(d) {
|
|
35
|
-
return `${pad2(d.getUTCDate())}.${pad2(d.getUTCMonth() + 1)}`;
|
|
36
|
-
}
|
|
37
33
|
function utcHeaderDate(d) {
|
|
38
|
-
const date = `${DAYS[d.getUTCDay()]} ${
|
|
34
|
+
const date = `${DAYS[d.getUTCDay()]} ${monthName(d)} ${d.getUTCDate()} ${d.getUTCFullYear()}`;
|
|
39
35
|
const ms = d.getTime() % DAY_MS;
|
|
40
36
|
return ms === 0 ? date : `${date} ${pad2(d.getUTCHours())}:${pad2(d.getUTCMinutes())}`;
|
|
41
37
|
}
|
|
@@ -149,11 +145,19 @@ function xTickPolicy(model, xTicks) {
|
|
|
149
145
|
function strideTicks(values, cls) {
|
|
150
146
|
return strideEvery(values, LADDER[cls].xTicks);
|
|
151
147
|
}
|
|
148
|
+
function xTickFormat(consumer, tickValues) {
|
|
149
|
+
if (consumer) return consumer;
|
|
150
|
+
if (tickValues.length === 0 || !tickValues.every((v) => v instanceof Date))
|
|
151
|
+
return defaultFormatX;
|
|
152
|
+
const dateFormat = dateTickFormat(tickValues);
|
|
153
|
+
return (v) => v instanceof Date ? dateFormat(v) : defaultFormatX(v);
|
|
154
|
+
}
|
|
152
155
|
function xGuide(opts) {
|
|
153
|
-
const { model, xTicks,
|
|
156
|
+
const { model, xTicks, cls, height } = opts;
|
|
154
157
|
const ladder = LADDER[cls];
|
|
155
158
|
const inside = labelsInside(cls, height);
|
|
156
159
|
const ticks = xTickPolicy(model, xTicks ?? ladder.xTicks);
|
|
160
|
+
const format = xTickFormat(opts.format, "values" in ticks ? ticks.values : []);
|
|
157
161
|
const [leftEdgeX, spanX] = !model.band && model.extent ? [model.extent[0], model.extent[1] - model.extent[0]] : [Number.NaN, Number.NaN];
|
|
158
162
|
return {
|
|
159
163
|
axis: {
|
|
@@ -415,7 +419,13 @@ function buildScales(opts) {
|
|
|
415
419
|
return {
|
|
416
420
|
x: {
|
|
417
421
|
scale: model.scale,
|
|
418
|
-
...xGuide({
|
|
422
|
+
...xGuide({
|
|
423
|
+
model,
|
|
424
|
+
xTicks: input.xTicks,
|
|
425
|
+
format: input.formatX ? formatX : void 0,
|
|
426
|
+
cls,
|
|
427
|
+
height
|
|
428
|
+
})
|
|
419
429
|
},
|
|
420
430
|
y: {
|
|
421
431
|
scale: yScaleFor(input.y, left.domain),
|
|
@@ -607,10 +617,10 @@ export {
|
|
|
607
617
|
refLegendSeries,
|
|
608
618
|
seriesRow,
|
|
609
619
|
strideTicks,
|
|
610
|
-
utcAxisDate,
|
|
611
620
|
utcHeaderDate,
|
|
612
621
|
visibleSeries,
|
|
613
622
|
xGuide,
|
|
623
|
+
xTickFormat,
|
|
614
624
|
yGuide,
|
|
615
625
|
zoneAreaGradient
|
|
616
626
|
};
|
package/dist/charts/cursor.d.ts
CHANGED
|
@@ -56,10 +56,23 @@ export type TooltipFollowerOptions = {
|
|
|
56
56
|
export declare function followerOptions(tooltip: {
|
|
57
57
|
onFollow?: boolean | undefined;
|
|
58
58
|
} | false | null | undefined, group: string | undefined, chartId: string): TooltipFollowerOptions;
|
|
59
|
+
/** The engine host's hover readout element. */
|
|
60
|
+
export declare const TOOLTIP_READOUT = ".ts-chart-tooltip";
|
|
61
|
+
/**
|
|
62
|
+
* Decorates a tooltip host so every `paint` is followed by {@link stampTooltipRole}. The one
|
|
63
|
+
* stamping seam: `quietWhileFollowing` is built on it, and so is any chart that wires the engine host
|
|
64
|
+
* directly (Donut, Heatmap).
|
|
65
|
+
*/
|
|
66
|
+
export declare function withTooltipRole(extension: ChartTooltipExtension): ChartTooltipExtension;
|
|
67
|
+
/**
|
|
68
|
+
* The engine's tooltip host with its readout stamped, built once: a chart passes this as
|
|
69
|
+
* `tooltip.use`, so the extension keeps one identity across memo rebuilds.
|
|
70
|
+
*/
|
|
71
|
+
export declare const engineTooltip: ChartTooltipExtension;
|
|
59
72
|
/**
|
|
60
73
|
* The engine's DOM tooltip host, silent while this chart FOLLOWS another's cursor. A follower
|
|
61
74
|
* resolves the leader's focus group (so the engine draws the same dots at the shared x); the host
|
|
62
|
-
* would then paint a tooltip and fill its
|
|
75
|
+
* would then paint a tooltip and fill its live region. Whenever `isForeign` holds,
|
|
63
76
|
* this wrapper calls the host's `hide()` instead of `paint()`: a follower that has never led never
|
|
64
77
|
* creates the element, and one that has led keeps it in the DOM, hidden. Otherwise (leader, no
|
|
65
78
|
* `follower` option, or after the leader clears) it defers to the host.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/charts/cursor.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAEpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAc,MAAM,6BAA6B,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAiEvD;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,KAAK,SAAY,GAAG,qBAAqB,CAQpE;AAED,yDAAyD;AACzD,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,OAA4B,CAAA;AAc3E,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAG7E;AA4FD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,IAAI,EAAE,gBAAgB,CAAA;IACtB,2FAA2F;IAC3F,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;CAC/C,CAAA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,IAA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