basalt-ui 2.7.1 → 2.7.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 +7 -0
- package/MIGRATING.md +21 -12
- package/dist/charts/legend.d.ts +6 -1
- package/dist/charts/legend.d.ts.map +1 -1
- package/llms.txt +428 -2
- package/package.json +1 -1
- package/src/charts/legend.tsx +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.7.2](https://github.com/jkrumm/basalt-ui/compare/v2.7.1...v2.7.2) (2026-10-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* llms.txt lists component props for every subpath, one legend swatch shape ([80b1e91](https://github.com/jkrumm/basalt-ui/commit/80b1e91d372fdc063290776807bb38964cea22ea))
|
|
7
|
+
|
|
1
8
|
## [2.7.1](https://github.com/jkrumm/basalt-ui/compare/v2.7.0...v2.7.1) (2026-10-15)
|
|
2
9
|
|
|
3
10
|
|
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 | Unreleased |
|
|
70
|
-
| ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
71
|
-
| **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
72
|
-
| **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
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) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
74
|
-
| **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
75
|
-
| **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
76
|
-
| **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
77
|
-
| **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
78
|
-
| **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
79
|
-
| **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
80
|
-
| **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
69
|
+
| Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | 2.2.0 | 2.3.0 | 2.4.0 | 2.5.0 | 2.6.0 | 2.6.1 | 2.7.0 | 2.7.1 | 2.7.2 | Unreleased |
|
|
70
|
+
| ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
|
71
|
+
| **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
72
|
+
| **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
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) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
74
|
+
| **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
75
|
+
| **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
76
|
+
| **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
77
|
+
| **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
78
|
+
| **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
79
|
+
| **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
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) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
@@ -992,6 +992,15 @@ optional, subpath-required peers.
|
|
|
992
992
|
_Nothing yet. Author the next section under this heading as `## Unreleased — <title>`; the
|
|
993
993
|
release renames it and opens a new one here._
|
|
994
994
|
|
|
995
|
+
## 2.7.2 — llms.txt props for every subpath
|
|
996
|
+
|
|
997
|
+
- `llms.txt` now lists a props block under every exported component and hook on every public
|
|
998
|
+
subpath, not just `./table`, `./charts` and `./forms` (argo friction row 57); `PageAside`'s
|
|
999
|
+
`title` and `persistKey` no longer send an agent to `dist/**/*.d.ts`. No API change.
|
|
1000
|
+
- Documented, not changed: a signed `DualPanel` legend swatch is a split circle below 480px of chart
|
|
1001
|
+
width and a split square from 480px, because the legend mode follows the container (friction row
|
|
1002
|
+
58).
|
|
1003
|
+
|
|
995
1004
|
## 2.7.1 — signed bar legend, DataTableRowAction export
|
|
996
1005
|
|
|
997
1006
|
- `DualPanel`'s bar legend entry is a split swatch (`positive` | `negative`) instead of the positive
|
package/dist/charts/legend.d.ts
CHANGED
|
@@ -6,7 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { ReactElement } from 'react';
|
|
8
8
|
import type { ChartSeries } from './types.js';
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
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 circle), from 480px
|
|
12
|
+
* a chip (10px square) — so one `DualPanel` bar legend is a split circle on a narrow card and a
|
|
13
|
+
* split square on a wide one. By design (friction row 58), not a per-chart prop.
|
|
14
|
+
*/
|
|
10
15
|
export type LegendMode = 'dots' | 'chips' | 'auto';
|
|
11
16
|
/** The entries a series list derives, in display order (by role when `groups`). */
|
|
12
17
|
export declare function legendEntries<T>(series: readonly ChartSeries<T>[], groups: boolean): ChartSeries<T>[][];
|
|
@@ -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;;;;;GAKG;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;AAuCD;;;;GAIG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GAAG;IAAE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAA;AAoErF,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;CAC1C,CAAA;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,YAAY,GAAG,IAAI,CAmE9E"}
|
package/llms.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# basalt-ui v2.7.
|
|
1
|
+
# basalt-ui v2.7.2
|
|
2
2
|
# Opinionated framework for Mantine-based React apps — theme, app shell, TanStack Charts, toolchain presets
|
|
3
3
|
#
|
|
4
4
|
# Entry points: use the exact import specifier below; do not guess.
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# A subpath's `Install:` line is its required peers; `OptionalPeers:` are import()-only, install on use.
|
|
14
14
|
|
|
15
15
|
Package: basalt-ui
|
|
16
|
-
Version: 2.7.
|
|
16
|
+
Version: 2.7.2
|
|
17
17
|
|
|
18
18
|
## basalt-ui
|
|
19
19
|
Import: import { ... } from 'basalt-ui'
|
|
@@ -21,25 +21,198 @@ Description: Wiring (`BasaltProvider`, `createBasaltTheme`, `createBasaltRouter`
|
|
|
21
21
|
Layer: mantine-coupled
|
|
22
22
|
Rule: basalt-mantine
|
|
23
23
|
Signature: BasaltProvider(props: BasaltProviderProps): JSX.Element
|
|
24
|
+
router: BasaltRouter
|
|
25
|
+
theme?: PartialObjectDeep<MantineTheme, { recurseIntoArrays: false;…
|
|
26
|
+
telemetry?: Telemetry
|
|
27
|
+
fallback?: ReactNode | ((error: unknown) => ReactNode)
|
|
28
|
+
injectPalette?: boolean
|
|
29
|
+
paletteOptions?: BuildPaletteOpts
|
|
30
|
+
defaultColorScheme?: MantineColorScheme
|
|
31
|
+
nonce?: string
|
|
32
|
+
sizeClassHint?: "compact" | "medium" | "expanded"
|
|
33
|
+
navCommandLabel?: (item: FlatNavItem) => string
|
|
24
34
|
Signature: BasaltShell(props: BasaltShellProps<G, T>): JSX.Element
|
|
35
|
+
className?: string
|
|
36
|
+
style?: CSSProperties
|
|
37
|
+
brand: BrandConfig & { menu?: AccountMenuItem[]; }
|
|
38
|
+
globalActions?: GlobalAction[]
|
|
39
|
+
sidebarBlocks?: SidebarBlock[]
|
|
40
|
+
settingsMenuItems?: SettingsMenuItem[]
|
|
41
|
+
settingsMenu?: "auto" | "flat" | "menu"
|
|
42
|
+
account?: BasaltAccountProps
|
|
43
|
+
search?: SidebarSearchConfig & { actions?: SidebarSearchActions; }
|
|
44
|
+
storageKey?: string
|
|
45
|
+
collapsed?: boolean
|
|
46
|
+
onCollapsedChange?: (collapsed: boolean) => void
|
|
47
|
+
headerHeight?: number
|
|
48
|
+
children?: ReactNode
|
|
49
|
+
badges?: Partial<Record<Extract<keyof NavIndex<G>, string>, ReactNod…
|
|
50
|
+
isActive?: (item: NavItemMeta & { link: AnyNavLink; children?: Readonl…
|
|
51
|
+
getScrollElement?: () => HTMLElement | null
|
|
52
|
+
nav: NavConfig<G, T>
|
|
25
53
|
Signature: DangerZone(props: SettingsSectionProps): JSX.Element
|
|
54
|
+
className?: string
|
|
55
|
+
style?: CSSProperties
|
|
56
|
+
classNames?: Partial<Record<SettingsSectionSlot, string>>
|
|
57
|
+
icon?: ReactNode
|
|
58
|
+
title: string
|
|
59
|
+
subtitle?: string
|
|
60
|
+
info?: string
|
|
61
|
+
actions?: ReactNode
|
|
62
|
+
children: ReactNode
|
|
26
63
|
Signature: DeltaBadge(props: DeltaBadgeProps): JSX.Element
|
|
64
|
+
value: number
|
|
65
|
+
polarity?: DeltaPolarity
|
|
66
|
+
format?: (value: number) => string
|
|
67
|
+
withGlyph?: boolean
|
|
68
|
+
period?: string
|
|
27
69
|
Signature: EmptyState(props: EmptyStateProps): JSX.Element
|
|
70
|
+
className?: string
|
|
71
|
+
style?: CSSProperties
|
|
72
|
+
classNames?: Partial<Record<EmptyStateSlot, string>>
|
|
73
|
+
icon?: ReactNode
|
|
74
|
+
title: string
|
|
75
|
+
description?: string
|
|
76
|
+
action?: ReactNode
|
|
77
|
+
tier?: "section" | "page"
|
|
28
78
|
Signature: PageAside(props: PageAsideProps): ReactNode
|
|
79
|
+
className?: string
|
|
80
|
+
style?: CSSProperties
|
|
81
|
+
classNames?: Partial<Record<PageAsideSlot, string>>
|
|
82
|
+
title: string
|
|
83
|
+
persistKey?: string
|
|
84
|
+
defaultFolded?: boolean
|
|
85
|
+
children: ReactNode
|
|
29
86
|
Signature: PageBar(props: PageBarProps): ReactNode
|
|
87
|
+
className?: string
|
|
88
|
+
style?: CSSProperties
|
|
89
|
+
classNames?: Partial<Record<PageBarSlot, string>>
|
|
90
|
+
title?: string
|
|
91
|
+
icon?: ReactNode
|
|
92
|
+
actions?: PageBarActions
|
|
93
|
+
sync?: Omit<SyncButtonProps, "scope">
|
|
94
|
+
filters?: ReactNode
|
|
95
|
+
filtersEnd?: BarAction[]
|
|
96
|
+
tabs?: ReactNode
|
|
30
97
|
Signature: PageTitle(props: PageTitleProps): ReactNode
|
|
98
|
+
className?: string
|
|
99
|
+
style?: CSSProperties
|
|
100
|
+
classNames?: Partial<Record<PageTitleSlot, string>>
|
|
101
|
+
title: ReactNode
|
|
102
|
+
subtitle?: ReactNode
|
|
103
|
+
icon?: ReactNode
|
|
31
104
|
Signature: Section(props: SectionProps): JSX.Element
|
|
105
|
+
icon?: ReactNode
|
|
106
|
+
className?: string
|
|
107
|
+
style?: CSSProperties
|
|
108
|
+
title: string
|
|
109
|
+
subtitle?: string
|
|
110
|
+
info?: string
|
|
111
|
+
value?: string
|
|
112
|
+
unit?: string
|
|
113
|
+
delta?: number
|
|
114
|
+
deltaPeriod?: string
|
|
115
|
+
deltaPolarity?: DeltaPolarity
|
|
116
|
+
deltaFormat?: (delta: number) => string
|
|
117
|
+
deltaGlyph?: boolean
|
|
118
|
+
sparkline?: ReactNode
|
|
119
|
+
count?: number
|
|
120
|
+
classNames?: Partial<Record<SectionSlot, string>>
|
|
121
|
+
actions?: SectionActions
|
|
122
|
+
query?: QueryStateLike<unknown>
|
|
123
|
+
empty?: QueryEmptyCopy
|
|
124
|
+
tabs?: ReactNode
|
|
125
|
+
collapsible?: boolean
|
|
126
|
+
persistKey?: string
|
|
127
|
+
defaultOpen?: boolean
|
|
128
|
+
summary?: ReactNode
|
|
129
|
+
id?: string
|
|
130
|
+
children: ReactNode
|
|
32
131
|
Signature: SettingsRow(props: SettingsRowProps): JSX.Element
|
|
132
|
+
className?: string
|
|
133
|
+
style?: CSSProperties
|
|
134
|
+
classNames?: Partial<Record<SettingsRowSlot, string>>
|
|
135
|
+
label: string
|
|
136
|
+
description?: string
|
|
137
|
+
control?: ReactNode
|
|
138
|
+
children?: ReactNode
|
|
33
139
|
Signature: SettingsSection(props: SettingsSectionProps): JSX.Element
|
|
140
|
+
className?: string
|
|
141
|
+
style?: CSSProperties
|
|
142
|
+
classNames?: Partial<Record<SettingsSectionSlot, string>>
|
|
143
|
+
icon?: ReactNode
|
|
144
|
+
title: string
|
|
145
|
+
subtitle?: string
|
|
146
|
+
info?: string
|
|
147
|
+
actions?: ReactNode
|
|
148
|
+
children: ReactNode
|
|
34
149
|
Signature: StatCard(props: StatCardProps): JSX.Element
|
|
150
|
+
className?: string
|
|
151
|
+
style?: CSSProperties
|
|
152
|
+
classNames?: Partial<Record<StatCardSlot, string>>
|
|
153
|
+
icon?: ReactNode
|
|
154
|
+
title: string
|
|
155
|
+
subtitle?: string
|
|
156
|
+
info?: string
|
|
157
|
+
unit?: string
|
|
158
|
+
delta?: number
|
|
159
|
+
deltaPeriod?: string
|
|
160
|
+
deltaPolarity?: DeltaPolarity
|
|
161
|
+
deltaFormat?: (delta: number) => string
|
|
162
|
+
deltaGlyph?: boolean
|
|
163
|
+
value: string
|
|
164
|
+
breakdown?: readonly StatCardBreakdownRow[]
|
|
165
|
+
query?: QueryStateLike<unknown>
|
|
166
|
+
sparkline?: ReactNode | ((size: StatCardSparklineSize) => ReactNode)
|
|
167
|
+
sparklinePlacement?: "bleed" | "right"
|
|
168
|
+
actions?: ReactNode
|
|
169
|
+
tone?: Tone
|
|
35
170
|
Signature: StatGroup(props: StatGroupProps): JSX.Element
|
|
171
|
+
className?: string
|
|
172
|
+
style?: CSSProperties
|
|
173
|
+
cols?: StatGroupCols
|
|
174
|
+
divided?: boolean
|
|
175
|
+
children: ReactNode
|
|
36
176
|
Signature: ThemeToggle(props: ThemeToggleProps): JSX.Element
|
|
177
|
+
className?: string
|
|
178
|
+
style?: CSSProperties
|
|
179
|
+
openDelay?: number
|
|
180
|
+
closeDelay?: number
|
|
37
181
|
Signature: WidgetHeader(props: WidgetHeaderProps): JSX.Element
|
|
182
|
+
className?: string
|
|
183
|
+
style?: CSSProperties
|
|
184
|
+
classNames?: Partial<Record<WidgetHeaderSlot, string>>
|
|
185
|
+
tier: WidgetHeaderTier
|
|
186
|
+
title: string
|
|
187
|
+
icon?: ReactNode
|
|
188
|
+
subtitle?: string
|
|
189
|
+
info?: string
|
|
190
|
+
value?: string
|
|
191
|
+
unit?: string
|
|
192
|
+
delta?: number
|
|
193
|
+
deltaPeriod?: string
|
|
194
|
+
deltaPolarity?: DeltaPolarity
|
|
195
|
+
deltaFormat?: (delta: number) => string
|
|
196
|
+
deltaGlyph?: boolean
|
|
197
|
+
sparkline?: ReactNode
|
|
198
|
+
count?: number
|
|
199
|
+
actions?: ReactNode
|
|
38
200
|
Signature: createBasaltRouter(options: { routeTree: TRouteTree; context?: TContext; query?: QueryClientConfi…): BasaltRouter<TRouteTree>
|
|
201
|
+
routeTree: TRouteTree
|
|
202
|
+
context?: TContext
|
|
203
|
+
query?: QueryClientConfig
|
|
204
|
+
defaultViewTransition?: never
|
|
39
205
|
Signature: createBasaltTheme(overrides: Omit<PartialObjectDeep<MantineTheme, { recurseIntoArrays: false; allo…, options: CreateBasaltThemeOptions | undefined): PartialObjectDeep<Ma…
|
|
40
206
|
Signature: defineNav(config: "basalt: declare Register { router }"): NavConfig<G, T>
|
|
41
207
|
Signature: flattenNav(config: { groups: ReadonlyArray<AnyNavGroup>; }): FlatNavItem[]
|
|
208
|
+
groups: readonly AnyNavGroup[]
|
|
42
209
|
Signature: navGroup(meta: Exact<M, NavGroupMeta>, items: NavItemsInput<T>): M & { items: T; }
|
|
210
|
+
id: string
|
|
211
|
+
label: string
|
|
212
|
+
icon?: ReactNode
|
|
213
|
+
collapsible?: boolean
|
|
214
|
+
defaultCollapsed?: boolean
|
|
215
|
+
mobile?: false | NavSectionMobile
|
|
43
216
|
Signature: navTarget(config: C, id: K): NavIndex<C["groups"]>[K]
|
|
44
217
|
Signature: scrollParentOf(el: Element | null): HTMLElement | null
|
|
45
218
|
Signature: unwrap(response: R): UnwrapResult<R>
|
|
@@ -270,6 +443,13 @@ Signature: CONTAINER_KEYS: { compact, regular, wide }
|
|
|
270
443
|
Signature: VX: { lineWidth, line2Width, axisFont, dotR, dashArray, legendGap, legendFontSize, text, radiusCard, radiusCtrl, radiusPill, hit, space, line2Dark, good, goodSoft, bad, …
|
|
271
444
|
Signature: alpha(token: string, a: number): string
|
|
272
445
|
Signature: buildPaletteCss(opts: BuildPaletteOpts, data: { ACCENT: { readonly accent: ColorPair; readonly accentHover: ColorPa…): string
|
|
446
|
+
groups?: readonly SeriesGroup[]
|
|
447
|
+
derived?: string[]
|
|
448
|
+
scheme?: ColorSchemeSelector
|
|
449
|
+
defaultScheme?: "light" | "dark" | "none"
|
|
450
|
+
mediaFallback?: boolean
|
|
451
|
+
only?: "core" | "all"
|
|
452
|
+
legacyAliases?: boolean
|
|
273
453
|
Signature: defineSeries(map: T): T
|
|
274
454
|
Signature: groupTokens(name: string, map: T): { readonly [K in keyof T]: GroupRef; }
|
|
275
455
|
Signature: p(fam: readonly string[], light: number, dark: number): ColorPair
|
|
@@ -280,7 +460,29 @@ Import: import { ... } from 'basalt-ui/vite'
|
|
|
280
460
|
Description: basaltViteConfig(opts) — Vite preset for basalt-ui consumer apps; basaltAppPlugin(opts) — PWA head, manifest, and icon metadata derived from the token palette
|
|
281
461
|
Layer: build-tooling
|
|
282
462
|
Signature: basaltAppPlugin(options: BasaltAppOptions): PluginOption[]
|
|
463
|
+
name: string
|
|
464
|
+
shortName?: string
|
|
465
|
+
description?: string
|
|
466
|
+
themeColor?: "auto" | { light: string; dark: string; }
|
|
467
|
+
colorScheme?: false | "light" | "dark" | "auto"
|
|
468
|
+
backgroundColor?: string
|
|
469
|
+
display?: "standalone" | "minimal-ui" | "fullscreen" | "browser"
|
|
470
|
+
startUrl?: string
|
|
471
|
+
scope?: string
|
|
472
|
+
id?: string
|
|
473
|
+
icons?: false | { dir?: string; } | readonly BasaltAppIcon[]
|
|
474
|
+
darkreader?: false | "lock"
|
|
475
|
+
seo?: { url?: string; image?: string; twitterCard?: "summary" | "…
|
|
476
|
+
manifest?: false
|
|
477
|
+
serviceWorker?: boolean | Record<string, unknown>
|
|
283
478
|
Signature: basaltViteConfig(opts: BasaltViteOptions): UserConfig
|
|
479
|
+
port: number
|
|
480
|
+
host?: string | boolean
|
|
481
|
+
allowedHosts?: string[]
|
|
482
|
+
apiTarget?: string
|
|
483
|
+
basaltSrc?: string
|
|
484
|
+
version?: string
|
|
485
|
+
enforcementNotice?: boolean
|
|
284
486
|
Install: bun add 'vite@^7 || ^8'
|
|
285
487
|
OptionalPeers: vite-plugin-pwa@^1.3.0
|
|
286
488
|
|
|
@@ -315,7 +517,14 @@ Description: defineCommands (typed command bus), defineOverlays/overlays (a form
|
|
|
315
517
|
Layer: mantine-coupled
|
|
316
518
|
Rule: basalt-batteries
|
|
317
519
|
Signature: NotificationBell(props: NotificationBellProps): JSX.Element
|
|
520
|
+
className?: string
|
|
521
|
+
style?: CSSProperties
|
|
522
|
+
label?: string
|
|
318
523
|
Signature: ShortcutsHelp(props: ShortcutsHelpProps): JSX.Element | null
|
|
524
|
+
className?: string
|
|
525
|
+
style?: CSSProperties
|
|
526
|
+
title?: string
|
|
527
|
+
maw?: string | number
|
|
319
528
|
Signature: defineCommands(spec: T): T
|
|
320
529
|
Signature: defineNotifications(spec: T): T
|
|
321
530
|
Signature: defineOverlays(spec: T): T
|
|
@@ -381,13 +590,54 @@ Description: Streaming-chat surface: aiSdkTransport, useAgentThreadRuns, parseAg
|
|
|
381
590
|
Layer: mantine-coupled
|
|
382
591
|
Rule: basalt-batteries
|
|
383
592
|
Signature: Composer(props: ComposerProps): JSX.Element
|
|
593
|
+
className?: string
|
|
594
|
+
style?: CSSProperties
|
|
595
|
+
classNames?: Partial<Record<ComposerSlot, string>>
|
|
596
|
+
ref?: Ref<ComposerHandle>
|
|
597
|
+
onSubmit: (payload: ComposerSubmit) => void | Promise<void>
|
|
598
|
+
placeholder?: string
|
|
599
|
+
autoFocus?: boolean
|
|
600
|
+
maxRows?: number
|
|
601
|
+
disabled?: boolean
|
|
602
|
+
streaming?: boolean
|
|
603
|
+
allowSubmitWhileStreaming?: boolean
|
|
604
|
+
onStop?: (() => void)
|
|
605
|
+
leftSection?: ReactNode
|
|
606
|
+
rightSection?: ReactNode
|
|
607
|
+
attachments?: readonly ComposerAttachment[]
|
|
608
|
+
onAttachmentsChange?: ((next: readonly ComposerAttachment[]) => void)
|
|
609
|
+
onPaste?: ((event: ClipboardEvent<HTMLTextAreaElement>) => void)
|
|
610
|
+
draftKey?: string
|
|
611
|
+
hint?: ReactNode
|
|
384
612
|
Signature: ThreadFeed(props: ThreadFeedProps): JSX.Element
|
|
613
|
+
className?: string
|
|
614
|
+
style?: CSSProperties
|
|
615
|
+
threads: AgentThread[]
|
|
616
|
+
activeId: string | null
|
|
617
|
+
onSelect: (id: string) => void
|
|
618
|
+
variant?: "outcome" | "inline"
|
|
619
|
+
onSend?: ((thread: AgentThread, payload: ComposerSubmit) => void)
|
|
620
|
+
renderRow?: ((thread: AgentThread) => ReactNode)
|
|
621
|
+
anchor?: "start" | "end"
|
|
385
622
|
Signature: ThreadFeedRow(props: ThreadFeedRowProps): JSX.Element
|
|
386
623
|
Signature: ToolChip(props: ToolChipProps): JSX.Element
|
|
624
|
+
className?: string
|
|
625
|
+
style?: CSSProperties
|
|
626
|
+
part: ToolCallPart
|
|
627
|
+
defaultExpanded?: boolean
|
|
628
|
+
onApprove?: ((approvalId: string) => void)
|
|
629
|
+
onDeny?: ((approvalId: string, reason?: string) => void)
|
|
387
630
|
Signature: aiSdkTransport(options: AiSdkTransportOptions): AiSdkTransport<TPart>
|
|
388
631
|
Signature: parseAgentPart(raw: unknown): AgentPart | null
|
|
389
632
|
Signature: toAgentError(error: unknown): AgentError
|
|
390
633
|
Signature: useAgentThreadRuns(props: UseAgentThreadRunsArgs<TPart>): UseAgentThreadRunsReturn<TPart>
|
|
634
|
+
transport: AgentTransport<TPart, string> | ((threadId: string) => Agen…
|
|
635
|
+
store: ThreadsStore<TPart>
|
|
636
|
+
resolveOutcome: OutcomeResolver<TPart>
|
|
637
|
+
toUserParts?: ((input: string) => TPart[])
|
|
638
|
+
onError?: ((info: { readonly threadId: string; readonly error: unknow…
|
|
639
|
+
throttle?: number
|
|
640
|
+
telemetry?: Telemetry
|
|
391
641
|
Install: bun add ai@^7.0.137 @ai-sdk/provider@^4.0.26 motion@14.1.0
|
|
392
642
|
OptionalPeers: use-stick-to-bottom@^1.1.6, @tanstack/react-virtual@>=3.14.0 <4
|
|
393
643
|
|
|
@@ -397,12 +647,74 @@ Description: Prose (article/chat typography), Callout, TableOfContents, Markdown
|
|
|
397
647
|
Layer: mantine-coupled
|
|
398
648
|
Rule: basalt-batteries
|
|
399
649
|
Signature: ArticleLayout(props: ArticleLayoutProps): JSX.Element
|
|
650
|
+
children: ReactNode
|
|
651
|
+
meta?: ArticleLayoutMeta
|
|
652
|
+
toc?: boolean
|
|
653
|
+
readingProgress?: boolean
|
|
654
|
+
prev?: ArticleNavTarget
|
|
655
|
+
next?: ArticleNavTarget
|
|
656
|
+
renderLink?: (target: ArticleNavTarget, node: ReactNode) => ReactNode
|
|
657
|
+
density?: ProseDensity
|
|
658
|
+
locale?: string
|
|
659
|
+
className?: string
|
|
660
|
+
style?: CSSProperties
|
|
400
661
|
Signature: Callout(props: CalloutProps): JSX.Element
|
|
662
|
+
className?: string
|
|
663
|
+
style?: CSSProperties
|
|
664
|
+
kind?: CalloutKind
|
|
665
|
+
title?: string
|
|
666
|
+
icon?: ReactNode
|
|
667
|
+
children: ReactNode
|
|
401
668
|
Signature: GuideLink(props: GuideLinkProps): JSX.Element
|
|
669
|
+
className?: string
|
|
670
|
+
style?: CSSProperties
|
|
671
|
+
label?: string
|
|
672
|
+
title: string
|
|
673
|
+
children?: ReactNode
|
|
674
|
+
markdown?: string
|
|
675
|
+
fullPageHref?: string
|
|
676
|
+
renderLink?: (target: ArticleNavTarget, node: ReactNode) => ReactNode
|
|
677
|
+
iconOnly?: boolean
|
|
402
678
|
Signature: Markdown(props: MarkdownProps): JSX.Element
|
|
679
|
+
children: string
|
|
680
|
+
density?: ProseDensity
|
|
681
|
+
measure?: boolean
|
|
682
|
+
streaming?: boolean
|
|
683
|
+
contentTrust?: MarkdownContentTrust
|
|
684
|
+
components?: Components
|
|
685
|
+
fenceRenderers?: Readonly<Record<string, FenceRenderer>>
|
|
686
|
+
sanitizeSchema?: SanitizeSchemaExtension
|
|
687
|
+
allowedLinkPrefixes?: readonly string[]
|
|
688
|
+
allowedImagePrefixes?: readonly string[]
|
|
689
|
+
defaultOrigin?: string
|
|
690
|
+
remarkPlugins?: readonly unknown[]
|
|
691
|
+
rehypePlugins?: readonly unknown[]
|
|
692
|
+
className?: string
|
|
693
|
+
style?: CSSProperties
|
|
403
694
|
Signature: Prose(props: ProseProps): JSX.Element
|
|
695
|
+
density?: ProseDensity
|
|
696
|
+
measure?: boolean
|
|
697
|
+
children: ReactNode
|
|
698
|
+
className?: string
|
|
699
|
+
style?: CSSProperties
|
|
404
700
|
Signature: TableOfContents(props: TableOfContentsProps): JSX.Element | null
|
|
701
|
+
items?: TocItem[]
|
|
702
|
+
containerRef?: RefObject<HTMLElement | null>
|
|
703
|
+
levels?: readonly [number, number]
|
|
704
|
+
title?: string
|
|
705
|
+
onNavigate?: (id: string) => void
|
|
706
|
+
className?: string
|
|
405
707
|
Signature: mergeSanitizeSchema(base: SanitizeSchemaInput, extensions: readonly (SanitizeSchemaExtension | undefined)[]): SanitizeSchema
|
|
708
|
+
allowComments?: boolean | null
|
|
709
|
+
allowDoctypes?: boolean | null
|
|
710
|
+
ancestors?: Readonly<Record<string, readonly string[]>> | null
|
|
711
|
+
attributes?: Readonly<Record<string, readonly SanitizePropertyDefinition…
|
|
712
|
+
clobber?: readonly string[] | null
|
|
713
|
+
clobberPrefix?: string | null
|
|
714
|
+
protocols?: Readonly<Record<string, readonly string[] | null | undefine…
|
|
715
|
+
required?: Readonly<Record<string, Readonly<Record<string, unknown>>>>…
|
|
716
|
+
strip?: readonly string[] | null
|
|
717
|
+
tagNames?: readonly string[] | null
|
|
406
718
|
Signature: settledOnly(render: FenceRenderer): FenceRenderer
|
|
407
719
|
Install: bun add react-markdown@^10.1.0
|
|
408
720
|
OptionalPeers: shiki@^4.5.0, @shikijs/langs@^4.5.0, @shikijs/themes@^4.5.0, beautiful-mermaid@^1.1.0, remark-gfm@^4.0.1, rehype-sanitize@^6.0.0, remend@1.4.0
|
|
@@ -413,16 +725,112 @@ Description: The control tier (docs/CONTROLS-SPEC.md §3). Exports: `FilterSet`
|
|
|
413
725
|
Layer: mantine-coupled
|
|
414
726
|
Rule: basalt-controls
|
|
415
727
|
Signature: FilterSet(props: FilterSetProps): ReactNode
|
|
728
|
+
className?: string
|
|
729
|
+
style?: CSSProperties
|
|
730
|
+
classNames?: Partial<Record<"root" | "sheet", string>>
|
|
731
|
+
children: ReactNode
|
|
732
|
+
inline?: number
|
|
416
733
|
Signature: FormGroup(props: FormGroupProps): JSX.Element
|
|
734
|
+
className?: string
|
|
735
|
+
style?: CSSProperties
|
|
736
|
+
label: string
|
|
737
|
+
hint?: string
|
|
738
|
+
error?: ReactNode
|
|
739
|
+
required?: boolean
|
|
740
|
+
direction?: "row" | "column"
|
|
741
|
+
children: ReactNode
|
|
417
742
|
Signature: FormRow(props: FormRowProps): JSX.Element
|
|
743
|
+
className?: string
|
|
744
|
+
style?: CSSProperties
|
|
745
|
+
classNames?: Partial<Record<FormRowSlot, string>>
|
|
746
|
+
label: string
|
|
747
|
+
hint?: string
|
|
748
|
+
error?: ReactNode
|
|
749
|
+
required?: boolean
|
|
750
|
+
htmlFor?: string
|
|
751
|
+
children: ReactNode
|
|
418
752
|
Signature: MultiSelectFilter(props: MultiSelectFilterProps<T>): ReactNode
|
|
753
|
+
className?: string
|
|
754
|
+
style?: CSSProperties
|
|
755
|
+
value?: never
|
|
756
|
+
onChange?: never
|
|
757
|
+
size?: never
|
|
758
|
+
field: FieldHandle<MultiField<T>>
|
|
759
|
+
label: string
|
|
760
|
+
icon?: ReactNode
|
|
761
|
+
noun?: string
|
|
762
|
+
options?: readonly FilterOption[]
|
|
763
|
+
counts?: Record<string, number>
|
|
764
|
+
max?: number
|
|
419
765
|
Signature: NumberFilter(props: NumberFilterProps): ReactNode
|
|
766
|
+
className?: string
|
|
767
|
+
style?: CSSProperties
|
|
768
|
+
value?: never
|
|
769
|
+
onChange?: never
|
|
770
|
+
size?: never
|
|
771
|
+
field: FieldHandle<NumberField>
|
|
772
|
+
label: string
|
|
773
|
+
icon?: ReactNode
|
|
774
|
+
options?: readonly NumberFilterOption[]
|
|
775
|
+
step?: number
|
|
776
|
+
clearable?: boolean
|
|
420
777
|
Signature: RangeFilter(props: RangeFilterProps<P, C>): ReactNode
|
|
778
|
+
className?: string
|
|
779
|
+
style?: CSSProperties
|
|
780
|
+
value?: never
|
|
781
|
+
onChange?: never
|
|
782
|
+
size?: never
|
|
783
|
+
field: FieldHandle<RangeField<P, C>>
|
|
784
|
+
icon?: ReactNode
|
|
785
|
+
label?: string
|
|
786
|
+
customPicker?: ComponentType<RangeCustomPickerProps>
|
|
421
787
|
Signature: SearchFilter(props: SearchFilterProps): ReactNode
|
|
788
|
+
className?: string
|
|
789
|
+
style?: CSSProperties
|
|
790
|
+
value?: never
|
|
791
|
+
onChange?: never
|
|
792
|
+
size?: never
|
|
793
|
+
field: FieldHandle<StringField>
|
|
794
|
+
placeholder?: string
|
|
795
|
+
label?: string
|
|
422
796
|
Signature: SelectFilter(props: SelectFilterEnumProps<T>): ReactNode
|
|
797
|
+
className?: string
|
|
798
|
+
style?: CSSProperties
|
|
799
|
+
value?: never
|
|
800
|
+
onChange?: never
|
|
801
|
+
size?: never
|
|
802
|
+
label: string
|
|
803
|
+
icon?: ReactNode
|
|
804
|
+
clearable?: boolean
|
|
805
|
+
field: FieldHandle<EnumField<T>>
|
|
806
|
+
options?: readonly FilterOption[]
|
|
423
807
|
Signature: SyncButton(props: SyncButtonProps): ReactNode
|
|
808
|
+
className?: string
|
|
809
|
+
style?: CSSProperties
|
|
810
|
+
syncing: boolean
|
|
811
|
+
lastCompletedAt?: number | Date | null
|
|
812
|
+
onSync: () => void
|
|
813
|
+
scope: "page" | "global"
|
|
814
|
+
label?: string
|
|
815
|
+
error?: string
|
|
424
816
|
Signature: ToggleFilter(props: ToggleFilterProps): ReactNode
|
|
817
|
+
className?: string
|
|
818
|
+
style?: CSSProperties
|
|
819
|
+
value?: never
|
|
820
|
+
onChange?: never
|
|
821
|
+
size?: never
|
|
822
|
+
field: FieldHandle<BooleanField>
|
|
823
|
+
label: string
|
|
824
|
+
icon?: ReactNode
|
|
425
825
|
Signature: ViewTabs(props: ViewTabsProps<T>): ReactNode
|
|
826
|
+
className?: string
|
|
827
|
+
style?: CSSProperties
|
|
828
|
+
value?: never
|
|
829
|
+
onChange?: never
|
|
830
|
+
size?: never
|
|
831
|
+
field: FieldHandle<EnumField<T>>
|
|
832
|
+
options?: readonly ViewTabsOption<T>[]
|
|
833
|
+
label?: string
|
|
426
834
|
|
|
427
835
|
## basalt-ui/controls-dates
|
|
428
836
|
Import: import { ... } from 'basalt-ui/controls-dates'
|
|
@@ -430,6 +838,8 @@ Description: DateRangePicker — the @mantine/dates implementation of RangeFilte
|
|
|
430
838
|
Layer: mantine-coupled
|
|
431
839
|
Rule: basalt-controls
|
|
432
840
|
Signature: DateRangePicker(props: RangeCustomPickerProps): ReactNode
|
|
841
|
+
value: { readonly from?: string | undefined; readonly to?: string …
|
|
842
|
+
onChange: (next: { from: string; to: string; }) => void
|
|
433
843
|
Install: bun add @mantine/dates@^9.7.0 dayjs@^1.11.0
|
|
434
844
|
|
|
435
845
|
## basalt-ui/state
|
|
@@ -438,9 +848,25 @@ Description: field.enum/multi/range/number/boolean/string (the store field vocab
|
|
|
438
848
|
Layer: headless
|
|
439
849
|
Rule: basalt-state
|
|
440
850
|
Signature: createLocalStore(o: { key: string; fields: S; version?: number; }): LocalStore<S>
|
|
851
|
+
key: string
|
|
852
|
+
fields: S
|
|
853
|
+
version?: number
|
|
441
854
|
Signature: createPersistedState(opts: PersistedStateOptions<T>): () => readonly [T, (next: T) => void]
|
|
855
|
+
key: string
|
|
856
|
+
version: number
|
|
857
|
+
initial: T
|
|
858
|
+
migrate?: (persisted: unknown, fromVersion: number) => T
|
|
859
|
+
schema?: StandardSchemaV1<unknown, T>
|
|
442
860
|
Signature: createSearchStore(o: CreateSearchStoreOptions<S>): SearchStore<S>
|
|
861
|
+
key: string
|
|
862
|
+
fields: S
|
|
863
|
+
version?: number
|
|
864
|
+
resets?: readonly string[]
|
|
443
865
|
Signature: externalField(o: { values: readonly T[]; fallback: NoInfer<T>; labels?: Partial<Record…): FieldHandle<EnumField<T, ResolvedLane>>
|
|
866
|
+
values: readonly T[]
|
|
867
|
+
fallback: NoInfer<T>
|
|
868
|
+
labels?: Partial<Record<T, string>>
|
|
869
|
+
store: ExternalStore<T>
|
|
444
870
|
Signature: field: { enum, multi, range, number, boolean, string }
|
|
445
871
|
|
|
446
872
|
## basalt-ui/styles.css
|
package/package.json
CHANGED
package/src/charts/legend.tsx
CHANGED
|
@@ -9,7 +9,12 @@ import { VX } from '../tokens'
|
|
|
9
9
|
import classes from './chart-legend.module.css'
|
|
10
10
|
import type { ChartSeries } from './types'
|
|
11
11
|
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* `auto` renders both swatches and lets the container decide: none, dots or chips (CSS). The
|
|
14
|
+
* swatch SHAPE follows the mode, signed split included: below 480px a dot (8px circle), from 480px
|
|
15
|
+
* a chip (10px square) — so one `DualPanel` bar legend is a split circle on a narrow card and a
|
|
16
|
+
* split square on a wide one. By design (friction row 58), not a per-chart prop.
|
|
17
|
+
*/
|
|
13
18
|
export type LegendMode = 'dots' | 'chips' | 'auto'
|
|
14
19
|
|
|
15
20
|
const ROLE_ORDER = ['series', 'overlay', 'reference'] as const
|