basalt-ui 2.13.0 → 2.13.2
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 +23 -0
- package/MIGRATING.md +32 -12
- package/README.md +1 -1
- package/dist/charts/compile.d.ts.map +1 -1
- package/dist/charts/compile.js +6 -5
- package/dist/charts/cursor.d.ts +33 -7
- package/dist/charts/cursor.d.ts.map +1 -1
- package/dist/charts/cursor.js +31 -10
- package/dist/charts/legend.d.ts +19 -3
- package/dist/charts/legend.d.ts.map +1 -1
- package/dist/charts/legend.js +33 -15
- package/dist/charts/marks.d.ts.map +1 -1
- package/dist/charts/marks.js +24 -28
- package/dist/charts/panel.d.ts.map +1 -1
- package/dist/charts/panel.js +4 -4
- package/dist/charts/types.d.ts +3 -2
- package/dist/charts/types.d.ts.map +1 -1
- package/dist/router-tanstack/nav.d.ts +5 -0
- package/dist/router-tanstack/nav.d.ts.map +1 -1
- package/dist/router-tanstack/use-nav.d.ts +4 -2
- package/dist/router-tanstack/use-nav.d.ts.map +1 -1
- package/dist/router-tanstack/use-nav.js +55 -18
- package/dist/shell/app-breadcrumbs.d.ts +1 -3
- package/dist/shell/app-breadcrumbs.d.ts.map +1 -1
- package/dist/shell/app-breadcrumbs.js +1 -6
- package/dist/shell/index.d.ts +14 -5
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +6 -29
- package/dist/shell/nav-types.d.ts +7 -0
- package/dist/shell/nav-types.d.ts.map +1 -1
- package/dist/shell/page-aside.d.ts +4 -2
- package/dist/shell/page-aside.d.ts.map +1 -1
- package/dist/shell/page-aside.js +41 -23
- package/dist/shell/page-bar.d.ts +1 -1
- package/dist/shell/page-bar.d.ts.map +1 -1
- package/dist/shell/page-bar.js +39 -33
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +4 -1
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/src/charts/compile.ts +8 -10
- package/src/charts/cursor.ts +69 -19
- package/src/charts/legend.tsx +40 -19
- package/src/charts/marks.ts +28 -29
- package/src/charts/panel.tsx +4 -4
- package/src/charts/types.ts +3 -2
- package/src/router-tanstack/nav.ts +5 -0
- package/src/router-tanstack/use-nav.ts +116 -76
- package/src/shell/app-breadcrumbs.tsx +1 -12
- package/src/shell/index.tsx +22 -55
- package/src/shell/nav-types.ts +8 -0
- package/src/shell/page-aside.tsx +59 -26
- package/src/shell/page-bar.tsx +63 -59
- package/src/theme/__snapshots__/plain-theme.test.ts.snap +2 -0
- package/src/theme/index.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
## [2.13.2](https://github.com/jkrumm/basalt-ui/compare/v2.13.1...v2.13.2) (2026-10-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* a line series keeps its dashed legend swatch below 480px ([d711f78](https://github.com/jkrumm/basalt-ui/commit/d711f78b4e0451719ccd87bb9e983479e77abbbf))
|
|
7
|
+
* butt-capped dashed swatches, a paint before update hides, validate options ([c861eb4](https://github.com/jkrumm/basalt-ui/commit/c861eb4ef086c2b95d1a65ea622568bfb111e290))
|
|
8
|
+
* followers draw the cursor dots, one cursor-dot mark per getMarker series ([5a1a70f](https://github.com/jkrumm/basalt-ui/commit/5a1a70fe6d1f7a6d67e144f04f233503cc173c41))
|
|
9
|
+
* give the Modal close button an accessible name ([8e9527f](https://github.com/jkrumm/basalt-ui/commit/8e9527fc6b91431ecd4692d906e465fd2adcb6f7))
|
|
10
|
+
* type the follower contract and narrow the compact line swatch ([45e08e6](https://github.com/jkrumm/basalt-ui/commit/45e08e6537593419cf92a47805d614cb3a393aa3))
|
|
11
|
+
|
|
12
|
+
## [2.13.1](https://github.com/jkrumm/basalt-ui/compare/v2.13.0...v2.13.1) (2026-10-16)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* give the layout ShellFixture a real breadcrumb ([2d24459](https://github.com/jkrumm/basalt-ui/commit/2d244599d0f6c904d39082f9b6d2f911ef3e2a5e))
|
|
18
|
+
* own-key badge compare, flat anchor cache and breadcrumb tests ([a53f295](https://github.com/jkrumm/basalt-ui/commit/a53f295caff8831fc1a68b6dbbe3db5b3902635b))
|
|
19
|
+
* require ShellFrame activeCrumb and harden nav and aside tests ([f3ede67](https://github.com/jkrumm/basalt-ui/commit/f3ede67dbb8401919e9d0998d3299bd35ebf89f9))
|
|
20
|
+
* restore matchMedia after the PageAside ownership tests ([861c1fe](https://github.com/jkrumm/basalt-ui/commit/861c1fe73780c7485e90a20df78c2e225d94961d))
|
|
21
|
+
* stable nav anchors, narrow shell contexts and single-claimant PageAside ([8dbff8a](https://github.com/jkrumm/basalt-ui/commit/8dbff8a38d789d81e3853df298532e0d97d7bfb2))
|
|
22
|
+
* stop naming the removed useNav in shell comments ([f874df4](https://github.com/jkrumm/basalt-ui/commit/f874df4331fbfa9b14d4f1fbe055154bd18dee0a))
|
|
23
|
+
|
|
1
24
|
# [2.13.0](https://github.com/jkrumm/basalt-ui/compare/v2.12.0...v2.13.0) (2026-10-16)
|
|
2
25
|
|
|
3
26
|
|
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 | Unreleased |
|
|
70
|
-
| ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
71
|
-
| **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — |
|
|
72
|
-
| **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BandSpan.absentFraction` + `absentState` (§ 2.8.0) | — | — | — | — | — | — | — | — | — |
|
|
73
|
-
| **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltProvider` embedded mode, `spotlight` (§ 2.8.0) | — | — | — | — | — | — | — | — | — |
|
|
74
|
-
| **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
75
|
-
| **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — |
|
|
76
|
-
| **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
77
|
-
| **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — |
|
|
78
|
-
| **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
79
|
-
| **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `doctor`: CSS + forced dropped subpaths, `oxlint-floor`, Start wiring (§ 2.8.0) | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — |
|
|
80
|
-
| **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — |
|
|
69
|
+
| Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | 2.2.0 | 2.3.0 | 2.4.0 | 2.5.0 | 2.6.0 | 2.6.1 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.8.0 | 2.8.1 | 2.9.0 | 2.9.1 | 2.10.0 | 2.11.0 | 2.11.1 | 2.12.0 | 2.13.0 | 2.13.1 | 2.13.2 | 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
|
|
|
@@ -1046,6 +1046,19 @@ 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.13.2 — followers draw the cursor dots, a dashed line keeps its key
|
|
1050
|
+
|
|
1051
|
+
### Charts — a follower draws the cursor dots, a dashed line keeps its key, one dot mark per `getMarker` series
|
|
1052
|
+
|
|
1053
|
+
- **Behaviour: a chart following a sibling's cursor draws the leader's dots by default** (the engine's focus ring on its lines, and the `cursorValue` dots, at the shared x; hidden series and `getMarker` colours respected). It used to paint the crosshair only. Its tooltip stays silent unless `tooltip.onFollow`: the host is hidden, not painted, for a follower, so no tooltip text or live-region announcement. **No opt-out.**
|
|
1054
|
+
- **Behaviour: the `cursorValue` cursor dot of a `getMarker` series is one mark, coloured per datum.** It was one mark per distinct colour (`<key>-cursor-<slug>`); it is now a single `<key>-cursor` mark whose focused fill is `getMarker(d).color`, so a continuous palette is fine there (always-on markers still cost one mark per distinct paint). **Opt-out: none** — the old key matches nothing; query `<key>-cursor`.
|
|
1055
|
+
- **Fix: a line series keeps its line swatch in the legend below 480px.** It got a dot there, so a dashed series lost its dashed key. The swatch is now a stroke at both sizes (`LINE_SWATCH` in `legend.tsx`): 8px below 480px (dash `2.5 2`) and 12px from 480px (was 16px; dash `4 3`); a dashed swatch has butt caps so the gap stays open. The line `svg` no longer carries `classes.chip` (it is the `dot` variant below 480px and the `chip` variant above, like the bar swatches), and the swatch is now rendered in `dots` mode. Selectors that expected a `span` dot for a line series, or a 16px svg, match the new `svg`s. Bar and area swatches are unchanged.
|
|
1056
|
+
- **`legend.maxRows` stays gone.** It was deliberately deprecated in 1.31 and removed in 1.32.0 (the legend fits by measured width and folds overflow into the `All N` chip); not restored.
|
|
1057
|
+
|
|
1058
|
+
## 2.13.1
|
|
1059
|
+
|
|
1060
|
+
_Nothing to migrate in this release._
|
|
1061
|
+
|
|
1049
1062
|
## 2.13.0 — router options, search stores, and a theme that reaches no component it configures
|
|
1050
1063
|
|
|
1051
1064
|
### `basaltRouterOptions`, router passthrough, telemetry correctness
|
|
@@ -1069,6 +1082,13 @@ release renames it and opens a new one here._
|
|
|
1069
1082
|
- **`buildSearchStore` is gone.** It was an internal pass-through of `createSearchStore`, never exported from `basalt-ui/state`; nothing public changes. **Opt-out: none needed.**
|
|
1070
1083
|
- **Dev warning:** a URL-lane field read on a route none of whose matched `validateSearch` runs this store (directly or composed) warns once per field — another store or a hand-rolled schema owns the param. **Opt-out: none; wire `validateSearch: store.validateSearch`, or spread it into your own.**
|
|
1071
1084
|
|
|
1085
|
+
### Stable nav anchors, narrow shell contexts, one PageAside owner
|
|
1086
|
+
|
|
1087
|
+
- **Nav links no longer remount on navigation.** Each destination keeps one anchor component for the life of its `defineNav` config, so the sidebar, mobile bar and breadcrumb `<a>` nodes survive a route change and keyboard focus stays on the link you activated. **Requirement:** call `defineNav` at module scope. A `defineNav` inside a component is a new config every render and remounts the links as before. **Opt-out: none** (a test that relied on a fresh node per navigation must re-query).
|
|
1088
|
+
- **An inline `badges={{ … }}` of numbers or strings is fine.** `useNav` compares badges shallowly per id, so a literal rebuilt every render no longer rebuilds the sections; the "hoist or memoize" guidance is gone. A JSX `ReactNode` badge is a new element every render and still rebuilds them: memoize that one.
|
|
1089
|
+
- **A second concurrent `PageAside` warns in development.** The newest committed claimant (tree and commit order) owns the region, and the fold is keyed to the claimant, so an outgoing aside releasing no longer resets the fold the incoming one published. Render one `PageAside` per page. **Opt-out: none.**
|
|
1090
|
+
- **Internal:** `ShellFrame` takes a required `activeCrumb`, and `AppBreadcrumbs` loses its never-produced `parentHref` prop.
|
|
1091
|
+
|
|
1072
1092
|
### the theme reaches no Mantine component it configures
|
|
1073
1093
|
|
|
1074
1094
|
- **`createBasaltTheme` no longer value-imports the ~45 Mantine components it configures.** No consumer change; the produced theme is byte-identical. An app stops shipping the components the theme only configured (`AppShell*`, `Pagination*`, `Stepper*`, `Timeline*`, `MultiSelect`, `PasswordInput`, `Chip`, `Progress*`, `NavLink`, `Breadcrumbs`, …) — Mantine's `X.extend()` is `identity`, but calling it pulled each component module into every bundle. **Measured:** an embedded `<BasaltProvider spotlight={false}>` with no defines, peers bundled and every chunk counted, dropped from 166959 B to 54735 B gzip; `createBasaltTheme()` alone is 14420 B (`scripts/check-budgets.ts` gates both; the embedded ceiling went 168500 → 55300). **Equivalence:** `createBasaltTheme` was compared against the pre-change tree (0c4aeb1a) across default, density −3/0/+3, radius −5/0/+5 and derive options, invoking every `vars` / `classNames` / `styles` / `variantColorResolver` over sizes × variants × states × schemes: 12 pass, and a one-key mutation of the baseline failed all 12. Re-run it by checking out that commit in a worktree, installing, and importing both `createBasaltTheme`s in one test; `src/theme/plain-theme.test.ts` now snapshots the same resolver outputs. **Opt-out: none.**
|
package/README.md
CHANGED
|
@@ -458,7 +458,7 @@ reference lines, `y2`) and `Bars` (stacked, grouped or normalised, ± bars, over
|
|
|
458
458
|
|
|
459
459
|
Charts share a cursor with no provider (`cursorGroup="…"` isolates one; `chartCursor(group?)` reads
|
|
460
460
|
it for app code), and only the chart under the pointer or keyboard focus shows a tooltip
|
|
461
|
-
(`tooltip.onFollow` opts a follower in). `x` ticks are `xTicks` (a count or the values) and
|
|
461
|
+
(`tooltip.onFollow` opts a follower in); a follower still draws the leader's focus and cursor-value dots at the shared x. `x` ticks are `xTicks` (a count or the values) and
|
|
462
462
|
collision is the engine's `tickLabels.thin`; labels never rotate.
|
|
463
463
|
|
|
464
464
|
### Query — `unwrap` (root barrel)
|
|
@@ -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":"AAcA,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,MAAM,CAAC,EAAE,OAAO,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,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;AAsbD,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAClD,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1B,mBAAmB,CAwErB"}
|
package/dist/charts/compile.js
CHANGED
|
@@ -4,12 +4,11 @@ import { rect } from "@tanstack/charts/rect";
|
|
|
4
4
|
import { ruleX, ruleY } from "@tanstack/charts/rule";
|
|
5
5
|
import { scaleLinear } from "@tanstack/charts/scales/linear";
|
|
6
6
|
import { scaleUtc } from "d3-scale";
|
|
7
|
-
import { tooltip as tooltipHost } from "@tanstack/charts/tooltip";
|
|
8
7
|
import { portal } from "@tanstack/charts/tooltip/portal";
|
|
9
8
|
import { SHORT_CHART_HEIGHT } from "./box.js";
|
|
10
9
|
import { fmtCompact } from "../format/number.js";
|
|
11
10
|
import { VX } from "../tokens/index.js";
|
|
12
|
-
import { cursorBinding,
|
|
11
|
+
import { cursorBinding, followerOptions, quietWhileFollowing } from "./cursor.js";
|
|
13
12
|
import { cursorDots } from "./marks.js";
|
|
14
13
|
import { bucketTicks, strideEvery } from "./ticks.js";
|
|
15
14
|
import { MAIN_PANE, plotAccess, plotContext } from "./plot-context.js";
|
|
@@ -489,7 +488,8 @@ function tooltipSpec(opts) {
|
|
|
489
488
|
(s) => s.tooltip !== false
|
|
490
489
|
);
|
|
491
490
|
return {
|
|
492
|
-
use:
|
|
491
|
+
use: quietWhileFollowing,
|
|
492
|
+
...followerOptions(input.tooltip, input.cursorGroup, input.chartId),
|
|
493
493
|
portal,
|
|
494
494
|
anchor: "group-center",
|
|
495
495
|
content: (points) => {
|
|
@@ -579,8 +579,9 @@ function compileCartesian(input) {
|
|
|
579
579
|
...labelsInside(cls, height) && { margin: { left: 0, ...axes.right && { right: 0 } } }
|
|
580
580
|
};
|
|
581
581
|
},
|
|
582
|
-
// Followers
|
|
583
|
-
|
|
582
|
+
// Followers resolve the leader's group, so they draw its dots; `quietWhileFollowing` mutes the
|
|
583
|
+
// tooltip unless the chart opts into following tooltips.
|
|
584
|
+
focus: "group-x",
|
|
584
585
|
maxFocusDistance: Number.POSITIVE_INFINITY,
|
|
585
586
|
cursor: cursorBinding({
|
|
586
587
|
group: input.cursorGroup,
|
package/dist/charts/cursor.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ChartCursorController } from '@tanstack/charts/cursor';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ChartTooltipExtension } from '@tanstack/charts/tooltip';
|
|
3
|
+
import type { ChartCursorBinding } from '@tanstack/charts/types/core';
|
|
3
4
|
import type { ChartX, CursorResolution } from './types.js';
|
|
4
5
|
/**
|
|
5
6
|
* The cursor controller for a group (default `'default'`), for app-side sync — a map timeline that
|
|
@@ -30,13 +31,38 @@ export declare function isForeign(group: string | undefined, chartId: string): b
|
|
|
30
31
|
*/
|
|
31
32
|
export declare function chartCursorView(group: string | undefined, chartId: string, keys: readonly ChartX[], mode: CursorResolution): ChartCursorController;
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* focus strategy. Wrapping `group-x` so it groups nothing while a FOREIGN state is current leaves a
|
|
36
|
-
* follower with the crosshair (painted from the cursor presentation, not from focus) and nothing
|
|
37
|
-
* else.
|
|
34
|
+
* The extra key a chart puts on its tooltip options to name itself to {@link quietWhileFollowing}.
|
|
35
|
+
* Absent, the tooltip paints for followers too.
|
|
38
36
|
*/
|
|
39
|
-
export
|
|
37
|
+
export type TooltipFollowerOptions = {
|
|
38
|
+
readonly follower?: {
|
|
39
|
+
readonly group: string | undefined;
|
|
40
|
+
readonly chartId: string;
|
|
41
|
+
} | undefined;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The tooltip options a chart spreads next to `use: quietWhileFollowing`: its identity, unless the
|
|
45
|
+
* chart opted into following tooltips (`tooltip.onFollow`). The one place `onFollow` is read for
|
|
46
|
+
* this, shared by `compileCartesian` and the panel rung.
|
|
47
|
+
*/
|
|
48
|
+
export declare function followerOptions(tooltip: {
|
|
49
|
+
onFollow?: boolean | undefined;
|
|
50
|
+
} | false | null | undefined, group: string | undefined, chartId: string): TooltipFollowerOptions;
|
|
51
|
+
/**
|
|
52
|
+
* The engine's DOM tooltip host, silent while this chart FOLLOWS another's cursor. A follower
|
|
53
|
+
* resolves the leader's focus group (so the engine draws the same dots at the shared x); the host
|
|
54
|
+
* would then paint a tooltip and fill its `role="status"` live region. Whenever `isForeign` holds,
|
|
55
|
+
* this wrapper calls the host's `hide()` instead of `paint()`: a follower that has never led never
|
|
56
|
+
* creates the element, and one that has led keeps it in the DOM, hidden. Otherwise (leader, no
|
|
57
|
+
* `follower` option, or after the leader clears) it defers to the host.
|
|
58
|
+
*
|
|
59
|
+
* The chart's identity arrives only through `update` (the engine calls it before every `paint`);
|
|
60
|
+
* a `paint` before the first `update` has nothing to tell it who is leading, so it hides.
|
|
61
|
+
*
|
|
62
|
+
* It wraps `create`/`update`/`paint` of the engine's tooltip host, whose lifecycle is undocumented:
|
|
63
|
+
* re-check this wrapper, the live region included, on every `@tanstack/charts` upgrade.
|
|
64
|
+
*/
|
|
65
|
+
export declare const quietWhileFollowing: ChartTooltipExtension;
|
|
40
66
|
export declare function cursorBinding(opts: {
|
|
41
67
|
group: string | undefined;
|
|
42
68
|
chartId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/charts/cursor.ts"],"names":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,EACtE,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,OAAO,EAAE,MAAM,GACd,sBAAsB,CAGxB;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,EAAE,qBAmBjC,CAAA;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE;IAClC,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,GAAG,EAAE,OAAO,CAAA;CACb,GAAG,kBAAkB,CAQrB;AAED,sDAAsD;AACtD,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,GAAG,SAAS,EAAE,SAAS,MAAM,KAAG,OACvB,CAAA"}
|
package/dist/charts/cursor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createChartCursor, cursorHost } from "@tanstack/charts/cursor";
|
|
2
|
-
import {
|
|
2
|
+
import { tooltip } from "@tanstack/charts/tooltip";
|
|
3
3
|
const groups = /* @__PURE__ */ new Map();
|
|
4
4
|
const facades = /* @__PURE__ */ new Map();
|
|
5
5
|
const INERT = {
|
|
@@ -127,15 +127,35 @@ function chartCursorView(group, chartId, keys, mode) {
|
|
|
127
127
|
sweepWhenIdle(views, id, view);
|
|
128
128
|
return view.controller;
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
return
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
};
|
|
130
|
+
const isFollowerOptions = (options) => {
|
|
131
|
+
if (typeof options !== "object" || options === null || !("follower" in options)) return false;
|
|
132
|
+
const { follower } = options;
|
|
133
|
+
return follower === void 0 || typeof follower === "object" && follower !== null && "group" in follower && "chartId" in follower && typeof follower.chartId === "string";
|
|
134
|
+
};
|
|
135
|
+
function followerOptions(tooltip2, group, chartId) {
|
|
136
|
+
const onFollow = typeof tooltip2 === "object" && tooltip2 !== null && tooltip2.onFollow === true;
|
|
137
|
+
return onFollow ? {} : { follower: { group, chartId } };
|
|
138
138
|
}
|
|
139
|
+
const quietWhileFollowing = {
|
|
140
|
+
...tooltip,
|
|
141
|
+
create: (context) => {
|
|
142
|
+
const host = tooltip.create(context);
|
|
143
|
+
let configured = false;
|
|
144
|
+
let follower;
|
|
145
|
+
return {
|
|
146
|
+
...host,
|
|
147
|
+
update: (options) => {
|
|
148
|
+
configured = true;
|
|
149
|
+
follower = isFollowerOptions(options) ? options.follower : void 0;
|
|
150
|
+
host.update(options);
|
|
151
|
+
},
|
|
152
|
+
paint: (paint) => {
|
|
153
|
+
if (!configured || follower && isForeign(follower.group, follower.chartId)) host.hide();
|
|
154
|
+
else host.paint(paint);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
};
|
|
139
159
|
function cursorBinding(opts) {
|
|
140
160
|
return {
|
|
141
161
|
use: cursorHost,
|
|
@@ -150,8 +170,9 @@ export {
|
|
|
150
170
|
chartCursor,
|
|
151
171
|
chartCursorView,
|
|
152
172
|
cursorBinding,
|
|
173
|
+
followerOptions,
|
|
153
174
|
hasCursorGroup,
|
|
154
175
|
hasCursorView,
|
|
155
176
|
isForeign,
|
|
156
|
-
|
|
177
|
+
quietWhileFollowing
|
|
157
178
|
};
|
package/dist/charts/legend.d.ts
CHANGED
|
@@ -8,9 +8,10 @@ import type { ReactElement } from 'react';
|
|
|
8
8
|
import type { ChartSeries } from './types.js';
|
|
9
9
|
/**
|
|
10
10
|
* `auto` renders both swatches and lets the container decide: none, dots or chips (CSS). The
|
|
11
|
-
* swatch SHAPE follows the mode, signed split included: below 480px a dot (8px
|
|
12
|
-
* a chip (10px square) — so one `DualPanel` bar legend is a split circle on a
|
|
13
|
-
* split square on a wide one.
|
|
11
|
+
* swatch SHAPE follows the mode for a filled mark, signed split included: below 480px a dot (8px
|
|
12
|
+
* circle), from 480px a chip (10px square) — so one `DualPanel` bar legend is a split circle on a
|
|
13
|
+
* narrow card and a split square on a wide one. A LINE series swaps a short stroke for a shorter
|
|
14
|
+
* one instead, dash included, so it is never a dot. Not a per-chart prop.
|
|
14
15
|
*/
|
|
15
16
|
export type LegendMode = 'dots' | 'chips' | 'auto';
|
|
16
17
|
/** The entries a series list derives, in display order (by role when `groups`). */
|
|
@@ -23,6 +24,21 @@ export declare function legendEntries<T>(series: readonly ChartSeries<T>[], grou
|
|
|
23
24
|
export type SignedSeries<T> = ChartSeries<T> & {
|
|
24
25
|
colorNegative?: string | undefined;
|
|
25
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* A line series' key: a short stroke with its dash, compact below 480px and wide from 480px. A
|
|
29
|
+
* dashed swatch has BUTT caps: a round cap grows each dash by half the stroke width per end and
|
|
30
|
+
* would close the gap.
|
|
31
|
+
*/
|
|
32
|
+
export declare const LINE_SWATCH: {
|
|
33
|
+
readonly compact: {
|
|
34
|
+
readonly width: 8;
|
|
35
|
+
readonly dash: "2.5 2";
|
|
36
|
+
};
|
|
37
|
+
readonly wide: {
|
|
38
|
+
readonly width: 12;
|
|
39
|
+
readonly dash: "4 3";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
26
42
|
export type ChartLegendProps<T> = {
|
|
27
43
|
series: readonly SignedSeries<T>[];
|
|
28
44
|
hidden: ReadonlySet<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legend.d.ts","sourceRoot":"","sources":["../../src/charts/legend.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAA;AAGxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C
|
|
1
|
+
{"version":3,"file":"legend.d.ts","sourceRoot":"","sources":["../../src/charts/legend.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAA;AAGxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;AAUlD,mFAAmF;AACnF,wBAAgB,aAAa,CAAC,CAAC,EAC7B,MAAM,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,EAAE,EACjC,MAAM,EAAE,OAAO,GACd,WAAW,CAAC,CAAC,CAAC,EAAE,EAAE,CAMpB;AAsDD;;;;GAIG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GAAG;IAAE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAA;AAWrF;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;;;;CAGd,CAAA;AAqEV,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC,MAAM,EAAE,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,CAAA;IAClC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC3B,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACzC,kGAAkG;IAClG,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,YAAY,GAAG,IAAI,CA2D9E"}
|
package/dist/charts/legend.js
CHANGED
|
@@ -56,12 +56,44 @@ const buttonStyle = {
|
|
|
56
56
|
};
|
|
57
57
|
const noteStyle = { color: VX.axis };
|
|
58
58
|
const swatchFill = (s) => s.colorNegative ? `linear-gradient(90deg, ${s.color} 50%, ${s.colorNegative} 50%)` : s.color;
|
|
59
|
+
const LINE_SWATCH = {
|
|
60
|
+
compact: { width: 8, dash: "2.5 2" },
|
|
61
|
+
wide: { width: 12, dash: "4 3" }
|
|
62
|
+
};
|
|
63
|
+
function LineSwatch({ s, compact }) {
|
|
64
|
+
const { width, dash } = compact ? LINE_SWATCH.compact : LINE_SWATCH.wide;
|
|
65
|
+
return /* @__PURE__ */ jsx(
|
|
66
|
+
"svg",
|
|
67
|
+
{
|
|
68
|
+
"aria-hidden": true,
|
|
69
|
+
className: compact ? classes.dot : classes.chip,
|
|
70
|
+
width,
|
|
71
|
+
height: 8,
|
|
72
|
+
style: { flex: "none" },
|
|
73
|
+
children: /* @__PURE__ */ jsx(
|
|
74
|
+
"line",
|
|
75
|
+
{
|
|
76
|
+
x1: 1,
|
|
77
|
+
x2: width - 1,
|
|
78
|
+
y1: 4,
|
|
79
|
+
y2: 4,
|
|
80
|
+
stroke: s.color,
|
|
81
|
+
strokeWidth: 2,
|
|
82
|
+
strokeLinecap: s.dash === "dashed" ? "butt" : "round",
|
|
83
|
+
strokeOpacity: s.strokeOpacity ?? 1,
|
|
84
|
+
...s.dash === "dashed" && { strokeDasharray: dash }
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
59
90
|
function Swatch({ s, mode }) {
|
|
60
91
|
if (mode === "auto")
|
|
61
92
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
62
93
|
/* @__PURE__ */ jsx(Swatch, { s, mode: "dots" }),
|
|
63
94
|
/* @__PURE__ */ jsx(Swatch, { s, mode: "chips" })
|
|
64
95
|
] });
|
|
96
|
+
if ((s.mark ?? "line") === "line") return /* @__PURE__ */ jsx(LineSwatch, { s, compact: mode === "dots" });
|
|
65
97
|
if (mode === "dots")
|
|
66
98
|
return /* @__PURE__ */ jsx(
|
|
67
99
|
"span",
|
|
@@ -79,21 +111,6 @@ function Swatch({ s, mode }) {
|
|
|
79
111
|
}
|
|
80
112
|
}
|
|
81
113
|
);
|
|
82
|
-
if ((s.mark ?? "line") === "line")
|
|
83
|
-
return /* @__PURE__ */ jsx("svg", { "aria-hidden": true, className: classes.chip, width: 16, height: 8, style: { flex: "none" }, children: /* @__PURE__ */ jsx(
|
|
84
|
-
"line",
|
|
85
|
-
{
|
|
86
|
-
x1: 1,
|
|
87
|
-
x2: 15,
|
|
88
|
-
y1: 4,
|
|
89
|
-
y2: 4,
|
|
90
|
-
stroke: s.color,
|
|
91
|
-
strokeWidth: 2,
|
|
92
|
-
strokeLinecap: "round",
|
|
93
|
-
strokeOpacity: s.strokeOpacity ?? 1,
|
|
94
|
-
...s.dash === "dashed" && { strokeDasharray: "4 3" }
|
|
95
|
-
}
|
|
96
|
-
) });
|
|
97
114
|
return /* @__PURE__ */ jsx(
|
|
98
115
|
"span",
|
|
99
116
|
{
|
|
@@ -169,5 +186,6 @@ function ChartLegend(props) {
|
|
|
169
186
|
}
|
|
170
187
|
export {
|
|
171
188
|
ChartLegend,
|
|
189
|
+
LINE_SWATCH,
|
|
172
190
|
legendEntries
|
|
173
191
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marks.d.ts","sourceRoot":"","sources":["../../src/charts/marks.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAQvD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEpF,0FAA0F;AAC1F,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAC1C,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EACvB,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GAC9B,IAAI,GAAG,SAAS,CAElB;AAED,gGAAgG;AAChG,wBAAgB,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function markersOf(s, rows, yScale) {
|
|
|
86
86
|
);
|
|
87
87
|
}
|
|
88
88
|
function cursorDots(s, rows, yScale) {
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
]
|
|
114
|
-
)
|
|
115
|
-
);
|
|
89
|
+
const { getMarker } = s;
|
|
90
|
+
const colors = getMarker ? new Map(rows.map((r) => [r, getMarker(r.datum)?.color ?? s.color])) : void 0;
|
|
91
|
+
const focused = {
|
|
92
|
+
fillOpacity: 1,
|
|
93
|
+
strokeOpacity: 1,
|
|
94
|
+
...colors && {
|
|
95
|
+
fill: ({ datum }) => colors.get(datum) ?? s.color
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
return [
|
|
99
|
+
dot(rows, {
|
|
100
|
+
id: `${s.key}-cursor`,
|
|
101
|
+
x: rowX,
|
|
102
|
+
y: "y",
|
|
103
|
+
r: VX.dotR,
|
|
104
|
+
fill: s.color,
|
|
105
|
+
fillOpacity: 0,
|
|
106
|
+
stroke: VX.surface.panel,
|
|
107
|
+
strokeWidth: 1.5,
|
|
108
|
+
strokeOpacity: 0,
|
|
109
|
+
states: [{ when: { focus: "x" }, style: focused }],
|
|
110
|
+
...yScale !== void 0 && { yScale }
|
|
111
|
+
})
|
|
112
|
+
];
|
|
116
113
|
}
|
|
117
|
-
const colorSlug = (color) => color.replaceAll(/[^\w-]+/g, "_");
|
|
118
114
|
const given = (v) => v !== void 0 && v !== null;
|
|
119
115
|
function barMark(rows, options = {}) {
|
|
120
116
|
const seriesAsked = [options.z, options.color, options.layout].some(given);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../src/charts/panel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../src/charts/panel.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,iBAAiB,EAEjB,eAAe,IAAI,gBAAgB,EACnC,UAAU,EACV,eAAe,EAChB,MAAM,6BAA6B,CAAA;AAIpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAgB,MAAM,kBAAkB,CAAA;AAKrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EACV,mBAAmB,EACnB,UAAU,EACV,WAAW,EAEX,MAAM,EACN,OAAO,EACR,MAAM,SAAS,CAAA;AAEhB;+DAC+D;AAC/D,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAA;AAElE,kGAAkG;AAClG,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,WAAW,KAAK;IAC9C,KAAK,EAAE,UAAU,CAAA;IACjB,MAAM,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAA;CAClC,CAAA;AAED,gEAAgE;AAChE,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,2EAA2E;IAC3E,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,GAAG,EAAE,WAAW,CAAA;IAChB,MAAM,EAAE,WAAW,CAAA;IACnB,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAA;IACnB,qCAAqC;IACrC,GAAG,EAAE,MAAM,CAAA;IACX,oGAAoG;IACpG,IAAI,EAAE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,WAAW,CAAC,CAAC,CAAC,CAAA;IACrB,MAAM,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,MAAM,CAAA;IACjC,GAAG,EAAE,cAAc,CAAA;IACnB,wDAAwD;IACxD,MAAM,EAAE,MAAM,CAAA;CACf,KAAG,eAAe,CAAC,QAAQ,CAAC,CAAC,MAAM,CASlC,CAAA;AAEF,gGAAgG;AAChG,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM,EAAE,OAAO,MAAM,EAAE,KAAK,MAAM,KAAG,MACnB,CAAA;AAE5D,qFAAqF;AACrF,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EACxC,IAAI,EAAE,SAAS,CAAC,EAAE,EAClB,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EACd,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAChB,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAKjB;AAsGD,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,YAAY,CAaxF"}
|
package/dist/charts/panel.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { crosshair } from "@tanstack/charts/crosshair";
|
|
3
|
-
import { tooltip as tooltipHost } from "@tanstack/charts/tooltip";
|
|
4
3
|
import { portal } from "@tanstack/charts/tooltip/portal";
|
|
5
4
|
import { alignX, composeViews, grid } from "@tanstack/charts/view";
|
|
6
5
|
import { useCallback } from "react";
|
|
7
6
|
import { ChartShell } from "./CartesianChart.js";
|
|
8
7
|
import { defaultFormatX, engineRow, utcHeaderDate, visibleSeries, xGuide, yGuide } from "./compile.js";
|
|
9
|
-
import { cursorBinding,
|
|
8
|
+
import { cursorBinding, followerOptions, quietWhileFollowing } from "./cursor.js";
|
|
10
9
|
import { plotAccess } from "./plot-context.js";
|
|
11
10
|
import { CHART_THEME, CROSSHAIR } from "./theme.js";
|
|
12
11
|
const { background: _background, focusRing: _focusRing, ...PANE_THEME } = CHART_THEME;
|
|
@@ -91,7 +90,7 @@ function panelDefinition(props, ctx, plan) {
|
|
|
91
90
|
};
|
|
92
91
|
const definition = {
|
|
93
92
|
chart: () => composed,
|
|
94
|
-
focus:
|
|
93
|
+
focus: "group-x",
|
|
95
94
|
maxFocusDistance: Number.POSITIVE_INFINITY,
|
|
96
95
|
cursor: cursorBinding({
|
|
97
96
|
group: cursorGroup,
|
|
@@ -101,7 +100,8 @@ function panelDefinition(props, ctx, plan) {
|
|
|
101
100
|
pin: ctx.coarse
|
|
102
101
|
}),
|
|
103
102
|
tooltip: props.tooltip === false ? false : {
|
|
104
|
-
use:
|
|
103
|
+
use: quietWhileFollowing,
|
|
104
|
+
...followerOptions(tooltip, cursorGroup, chartId),
|
|
105
105
|
portal,
|
|
106
106
|
anchor: "group-center",
|
|
107
107
|
content: (points) => {
|
package/dist/charts/types.d.ts
CHANGED
|
@@ -68,8 +68,9 @@ export type ChartSeries<T> = {
|
|
|
68
68
|
/** A marker at a point (a PR star, a status dot); `null` for none. Always-on markers are `Lines`'
|
|
69
69
|
* alone. On a `CartesianChart` with consumer `marks` only the CURSOR dot of a `cursorValue`
|
|
70
70
|
* series reads `getMarker` (its `color`): without `cursorValue` it is ignored there, so draw a
|
|
71
|
-
* persistent dot in `marks` yourself. Each distinct color is one extra mark:
|
|
72
|
-
* categorical set (statuses, buckets), never a continuous scale.
|
|
71
|
+
* persistent dot in `marks` yourself. Each distinct color of an always-on marker is one extra mark:
|
|
72
|
+
* keep those a small categorical set (statuses, buckets), never a continuous scale. Only the
|
|
73
|
+
* `cursorValue` cursor dot is ONE mark whatever its colors. */
|
|
73
74
|
getMarker?: ((d: T) => {
|
|
74
75
|
color?: string | undefined;
|
|
75
76
|
r?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d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