basalt-ui 2.0.3 → 2.0.4
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 +8 -0
- package/MIGRATING.md +28 -12
- package/dist/table/data-table.d.ts.map +1 -1
- package/dist/table/data-table.js +6 -2
- package/dist/table/data-table.module.css +43 -0
- package/dist/table/data-table.module.css.d.ts +3 -0
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/src/table/data-table.module.css +43 -0
- package/src/table/data-table.module.css.d.ts +3 -0
- package/src/table/data-table.tsx +10 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [2.0.4](https://github.com/jkrumm/basalt-ui/compare/v2.0.3...v2.0.4) (2026-10-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* assert the visible strip above the sticky header, not raw row overlap ([13b5a7e](https://github.com/jkrumm/basalt-ui/commit/13b5a7e736cfdf4be2c212b9894ea0ab6b1fd41e))
|
|
7
|
+
* seal the sticky table header under the app bar, keep narrow columns legible ([9046f21](https://github.com/jkrumm/basalt-ui/commit/9046f2174adaef3d9d71acacc216fe4663181ef5))
|
|
8
|
+
|
|
1
9
|
## [2.0.3](https://github.com/jkrumm/basalt-ui/compare/v2.0.2...v2.0.3) (2026-10-14)
|
|
2
10
|
|
|
3
11
|
|
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 | 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 | 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,22 @@ 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.0.4 — argo table and peer friction
|
|
996
|
+
|
|
997
|
+
- `BasaltDataTable` `stickyHeader` inside `BasaltShell` now pins flush under the app chrome. The
|
|
998
|
+
header used to stick at `AppShell.Main`'s content edge, one block-padding below the band, so body
|
|
999
|
+
rows scrolled through that strip. The default offset cancels the padding; a `stickyHeaderOffset`
|
|
1000
|
+
you pass still wins, so delete a hand-tuned offset that was compensating for the gap.
|
|
1001
|
+
- A `Badge` in a table cell keeps its whole label (`WORKING` no longer shrinks to `WOR…` beside
|
|
1002
|
+
wrapping prose). Narrow numeric headers (`Peak`) clip only if the column is given a `size`
|
|
1003
|
+
smaller than its label — that is a column width, not a table default.
|
|
1004
|
+
- The column-fold toggle column's header cell carries a visually hidden `Details` label instead of
|
|
1005
|
+
an empty `aria-hidden` cell.
|
|
1006
|
+
- `doctor` gains `subpath-peers`: when your source imports a basalt-ui subpath whose required peers
|
|
1007
|
+
are not installed (e.g. `shiki`, `@shikijs/langs`, `@shikijs/themes` for `basalt-ui/content`) it
|
|
1008
|
+
fails with the `bun add` line to run. Without them the build succeeded and the chunk threw
|
|
1009
|
+
"Could not resolve" at load. `CodeBlock` also warns once in dev when the highlighter cannot load.
|
|
1010
|
+
|
|
995
1011
|
## 2.0.3 — argo shell and CI friction
|
|
996
1012
|
|
|
997
1013
|
- `doctor`'s `app-wiring` follows the entry's relative imports (three deep): `createBasaltRouter`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../src/table/data-table.tsx"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,KAAK,EAGV,kBAAkB,EAGlB,eAAe,EAEf,OAAO,EACP,iBAAiB,EACjB,YAAY,EAEb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAgD,SAAS,EAAa,MAAM,OAAO,CAAA;AAI/F,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAOnE,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAYjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAU9D,OAAO,KAAK,EAAE,eAAe,EAAuC,MAAM,kBAAkB,CAAA;AA8B5F,0GAA0G;AAC1G,MAAM,MAAM,oBAAoB,GAAG;IACjC,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAA;IACb,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,iB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+588,11 @@ function BasaltDataTable(props) {
|
|
|
588
588
|
const tableNode = /* @__PURE__ */ jsxs(
|
|
589
589
|
Table,
|
|
590
590
|
{
|
|
591
|
-
className: cx(
|
|
591
|
+
className: cx(
|
|
592
|
+
classes.table,
|
|
593
|
+
pageStickyHeader && !contained && classes.pageSticky,
|
|
594
|
+
classNames?.table
|
|
595
|
+
),
|
|
592
596
|
...striped !== void 0 && { striped },
|
|
593
597
|
...highlightOnHover !== void 0 && { highlightOnHover },
|
|
594
598
|
...stickyHeader !== void 0 && { stickyHeader },
|
|
@@ -601,7 +605,7 @@ function BasaltDataTable(props) {
|
|
|
601
605
|
withTableBorder,
|
|
602
606
|
children: [
|
|
603
607
|
/* @__PURE__ */ jsx(Table.Thead, { children: headerGroups.map((headerGroup) => /* @__PURE__ */ jsxs(Table.Tr, { children: [
|
|
604
|
-
hasFolded && /* @__PURE__ */ jsx(Table.Th, { className: classes.foldToggleCell, "
|
|
608
|
+
hasFolded && /* @__PURE__ */ jsx(Table.Th, { className: classes.foldToggleCell, children: /* @__PURE__ */ jsx("span", { className: classes.srOnly, children: "Details" }) }),
|
|
605
609
|
headerGroup.headers.map((header) => {
|
|
606
610
|
const canSort = sortingEnabled && header.column.getCanSort();
|
|
607
611
|
const sorted = header.column.getIsSorted();
|
|
@@ -63,6 +63,49 @@
|
|
|
63
63
|
overflow-x: auto;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
/*
|
|
67
|
+
* A page-scrolled sticky header INSIDE the shell seals the strip above it.
|
|
68
|
+
*
|
|
69
|
+
* `AppShell.Main` is the scrollport and carries block padding (`app-main.module.css`: `stack-md`,
|
|
70
|
+
* one rung down to `stack-sm` from `sm` up). A sticky `<thead>` resolves against the scrollport's
|
|
71
|
+
* CONTENT edge, so at `top: 0` it parked that padding below the band and every body row scrolled
|
|
72
|
+
* through the gap. A negative offset equal to the padding moves the stick line out to the band's
|
|
73
|
+
* edge, flush. The two media/token pairs below mirror `.main` there — the layout suite
|
|
74
|
+
* (`data-table.layout.test.ts`, invariant 8) fails on drift. A consumer `stickyHeaderOffset` is an
|
|
75
|
+
* inline `--table-sticky-header-offset` on the table and beats this class, so it still wins.
|
|
76
|
+
* Outside a shell no `.mantine-AppShell-main` ancestor matches and the offset stays 0.
|
|
77
|
+
*/
|
|
78
|
+
:global(.mantine-AppShell-main) .pageSticky {
|
|
79
|
+
--table-sticky-header-offset: calc(-1 * var(--vx-space-stack-md));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* theme-allow raw-media-query — mirrors app-main.module.css's own `sm` switch for Main's block padding; invariant 8 in data-table.layout.test.ts fails on drift */
|
|
83
|
+
@media (min-width: 52.5em) {
|
|
84
|
+
:global(.mantine-AppShell-main) .pageSticky {
|
|
85
|
+
--table-sticky-header-offset: calc(-1 * var(--vx-space-stack-sm));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/*
|
|
90
|
+
* A Badge cell keeps its label. Mantine's Badge label is `overflow: hidden; text-overflow:
|
|
91
|
+
* ellipsis`, which gives the badge a min-content of ~0, so an auto-layout column holding only
|
|
92
|
+
* badges was free to shrink under its neighbours (`WORKING` → `WOR…` at 1280px). `max-content`
|
|
93
|
+
* as the floor makes the status column the widest thing a short enum ever needs.
|
|
94
|
+
*/
|
|
95
|
+
.table :global(.mantine-Badge-root) {
|
|
96
|
+
min-width: max-content;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Visually hidden, still announced — the fold toggle column's header has no visible label. */
|
|
100
|
+
.srOnly {
|
|
101
|
+
position: absolute;
|
|
102
|
+
width: 1px;
|
|
103
|
+
height: 1px;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
clip-path: inset(50%);
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
}
|
|
108
|
+
|
|
66
109
|
/*
|
|
67
110
|
* The selection column's hit area is the WHOLE cell (`docs/CONTROLS-SPEC.md` §2): the
|
|
68
111
|
* cell is the positioning box and the wrapping <label>'s ::after stretches over it, so a tap
|
|
@@ -16,7 +16,10 @@ declare const classes: {
|
|
|
16
16
|
readonly foldToggle: string
|
|
17
17
|
readonly foldToggleCell: string
|
|
18
18
|
readonly foldWrapper: string
|
|
19
|
+
readonly pageSticky: string
|
|
19
20
|
readonly selectCell: string
|
|
20
21
|
readonly selectHit: string
|
|
22
|
+
readonly srOnly: string
|
|
23
|
+
readonly table: string
|
|
21
24
|
}
|
|
22
25
|
export default classes
|
package/llms.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# basalt-ui v2.0.
|
|
1
|
+
# basalt-ui v2.0.4
|
|
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.0.
|
|
16
|
+
Version: 2.0.4
|
|
17
17
|
|
|
18
18
|
## basalt-ui
|
|
19
19
|
Import: import { ... } from 'basalt-ui'
|
package/package.json
CHANGED
|
@@ -63,6 +63,49 @@
|
|
|
63
63
|
overflow-x: auto;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
/*
|
|
67
|
+
* A page-scrolled sticky header INSIDE the shell seals the strip above it.
|
|
68
|
+
*
|
|
69
|
+
* `AppShell.Main` is the scrollport and carries block padding (`app-main.module.css`: `stack-md`,
|
|
70
|
+
* one rung down to `stack-sm` from `sm` up). A sticky `<thead>` resolves against the scrollport's
|
|
71
|
+
* CONTENT edge, so at `top: 0` it parked that padding below the band and every body row scrolled
|
|
72
|
+
* through the gap. A negative offset equal to the padding moves the stick line out to the band's
|
|
73
|
+
* edge, flush. The two media/token pairs below mirror `.main` there — the layout suite
|
|
74
|
+
* (`data-table.layout.test.ts`, invariant 8) fails on drift. A consumer `stickyHeaderOffset` is an
|
|
75
|
+
* inline `--table-sticky-header-offset` on the table and beats this class, so it still wins.
|
|
76
|
+
* Outside a shell no `.mantine-AppShell-main` ancestor matches and the offset stays 0.
|
|
77
|
+
*/
|
|
78
|
+
:global(.mantine-AppShell-main) .pageSticky {
|
|
79
|
+
--table-sticky-header-offset: calc(-1 * var(--vx-space-stack-md));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* theme-allow raw-media-query — mirrors app-main.module.css's own `sm` switch for Main's block padding; invariant 8 in data-table.layout.test.ts fails on drift */
|
|
83
|
+
@media (min-width: 52.5em) {
|
|
84
|
+
:global(.mantine-AppShell-main) .pageSticky {
|
|
85
|
+
--table-sticky-header-offset: calc(-1 * var(--vx-space-stack-sm));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/*
|
|
90
|
+
* A Badge cell keeps its label. Mantine's Badge label is `overflow: hidden; text-overflow:
|
|
91
|
+
* ellipsis`, which gives the badge a min-content of ~0, so an auto-layout column holding only
|
|
92
|
+
* badges was free to shrink under its neighbours (`WORKING` → `WOR…` at 1280px). `max-content`
|
|
93
|
+
* as the floor makes the status column the widest thing a short enum ever needs.
|
|
94
|
+
*/
|
|
95
|
+
.table :global(.mantine-Badge-root) {
|
|
96
|
+
min-width: max-content;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Visually hidden, still announced — the fold toggle column's header has no visible label. */
|
|
100
|
+
.srOnly {
|
|
101
|
+
position: absolute;
|
|
102
|
+
width: 1px;
|
|
103
|
+
height: 1px;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
clip-path: inset(50%);
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
}
|
|
108
|
+
|
|
66
109
|
/*
|
|
67
110
|
* The selection column's hit area is the WHOLE cell (`docs/CONTROLS-SPEC.md` §2): the
|
|
68
111
|
* cell is the positioning box and the wrapping <label>'s ::after stretches over it, so a tap
|
|
@@ -16,7 +16,10 @@ declare const classes: {
|
|
|
16
16
|
readonly foldToggle: string
|
|
17
17
|
readonly foldToggleCell: string
|
|
18
18
|
readonly foldWrapper: string
|
|
19
|
+
readonly pageSticky: string
|
|
19
20
|
readonly selectCell: string
|
|
20
21
|
readonly selectHit: string
|
|
22
|
+
readonly srOnly: string
|
|
23
|
+
readonly table: string
|
|
21
24
|
}
|
|
22
25
|
export default classes
|
package/src/table/data-table.tsx
CHANGED
|
@@ -1642,7 +1642,11 @@ export function BasaltDataTable<T extends RowData>(props: BasaltDataTableProps<T
|
|
|
1642
1642
|
|
|
1643
1643
|
const tableNode = (
|
|
1644
1644
|
<Table
|
|
1645
|
-
className={cx(
|
|
1645
|
+
className={cx(
|
|
1646
|
+
classes.table,
|
|
1647
|
+
pageStickyHeader && !contained && classes.pageSticky,
|
|
1648
|
+
classNames?.table,
|
|
1649
|
+
)}
|
|
1646
1650
|
{...(striped !== undefined && { striped })}
|
|
1647
1651
|
{...(highlightOnHover !== undefined && { highlightOnHover })}
|
|
1648
1652
|
{...(stickyHeader !== undefined && { stickyHeader })}
|
|
@@ -1659,7 +1663,11 @@ export function BasaltDataTable<T extends RowData>(props: BasaltDataTableProps<T
|
|
|
1659
1663
|
<Table.Tr key={headerGroup.id}>
|
|
1660
1664
|
{/* The disclosure toggle column has no header of its own — nothing is "sorted" or
|
|
1661
1665
|
"selected all" across it, only revealed per row. */}
|
|
1662
|
-
{hasFolded &&
|
|
1666
|
+
{hasFolded && (
|
|
1667
|
+
<Table.Th className={classes.foldToggleCell}>
|
|
1668
|
+
<span className={classes.srOnly}>Details</span>
|
|
1669
|
+
</Table.Th>
|
|
1670
|
+
)}
|
|
1663
1671
|
{headerGroup.headers.map((header) => {
|
|
1664
1672
|
const canSort = sortingEnabled && header.column.getCanSort()
|
|
1665
1673
|
const sorted = header.column.getIsSorted()
|