basalt-ui 2.15.0 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/MIGRATING.md +74 -12
  3. package/agent/agents/basalt-design-reviewer.md +1 -1
  4. package/agent/rules/basalt-mantine.md +1 -1
  5. package/configs/card-inset.test.ts +57 -0
  6. package/configs/oxlint-basalt.json +1 -1
  7. package/configs/oxlint-plugin.js +42 -18
  8. package/configs/oxlint-plugin.test.ts +37 -6
  9. package/dist/agent/chat/thread-message.js +1 -1
  10. package/dist/agent/chat/thread-outcome-card.js +1 -1
  11. package/dist/charts/ChartCard.js +1 -1
  12. package/dist/charts/chart-card.module.css +2 -2
  13. package/dist/cli/shot/board.js +1 -1
  14. package/dist/cli/shot/measure.d.ts +21 -2
  15. package/dist/cli/shot/measure.d.ts.map +1 -1
  16. package/dist/cli/shot/measure.js +20 -5
  17. package/dist/cli/shot/types.d.ts +3 -2
  18. package/dist/cli/shot/types.d.ts.map +1 -1
  19. package/dist/dashboard/settings-section.d.ts.map +1 -1
  20. package/dist/dashboard/settings-section.js +5 -2
  21. package/dist/dashboard/stat-card.js +12 -12
  22. package/dist/dashboard/stat-card.module.css +4 -4
  23. package/dist/dashboard/widget-header.module.css +3 -3
  24. package/dist/guard/guard-hook.d.ts.map +1 -1
  25. package/dist/guard/index.d.ts +4 -2
  26. package/dist/guard/index.d.ts.map +1 -1
  27. package/dist/guard/index.js +18 -4
  28. package/dist/guard/vx-names.d.ts.map +1 -1
  29. package/dist/guard/vx-names.js +1 -0
  30. package/dist/shell/app-mobile-nav.module.css +2 -2
  31. package/dist/shell/app-sidebar-account.js +1 -1
  32. package/dist/shell/app-sidebar.js +2 -2
  33. package/dist/shell/app-sidebar.module.css +8 -8
  34. package/dist/shell/index.js +5 -1
  35. package/dist/shell/page-bar.js +1 -1
  36. package/dist/table/data-table.d.ts.map +1 -1
  37. package/dist/table/data-table.js +3 -0
  38. package/dist/theme/index.d.ts.map +1 -1
  39. package/dist/theme/index.js +31 -21
  40. package/dist/tokens/core.d.ts +10 -4
  41. package/dist/tokens/core.d.ts.map +1 -1
  42. package/dist/tokens/core.js +16 -10
  43. package/dist/tokens/ctl-vars.d.ts +15 -0
  44. package/dist/tokens/ctl-vars.d.ts.map +1 -0
  45. package/dist/tokens/ctl-vars.js +22 -0
  46. package/dist/tokens/palette.d.ts +37 -29
  47. package/dist/tokens/palette.d.ts.map +1 -1
  48. package/dist/tokens/palette.js +32 -21
  49. package/dist/tokens/space-scale.d.ts +14 -0
  50. package/dist/tokens/space-scale.d.ts.map +1 -0
  51. package/dist/tokens/space-scale.js +10 -0
  52. package/llms.txt +2 -2
  53. package/package.json +1 -1
  54. package/src/agent/chat/thread-message.tsx +1 -1
  55. package/src/agent/chat/thread-outcome-card.tsx +2 -2
  56. package/src/charts/ChartCard.tsx +1 -1
  57. package/src/charts/chart-card.module.css +2 -2
  58. package/src/cli/shot/board.ts +1 -1
  59. package/src/cli/shot/measure.ts +33 -6
  60. package/src/cli/shot/types.ts +3 -2
  61. package/src/dashboard/settings-section.tsx +5 -2
  62. package/src/dashboard/stat-card.module.css +4 -4
  63. package/src/dashboard/stat-card.tsx +13 -13
  64. package/src/dashboard/widget-header.module.css +3 -3
  65. package/src/guard/guard-hook.ts +3 -1
  66. package/src/guard/index.ts +27 -13
  67. package/src/guard/vx-names.ts +1 -0
  68. package/src/shell/app-mobile-nav.module.css +2 -2
  69. package/src/shell/app-sidebar-account.tsx +1 -1
  70. package/src/shell/app-sidebar.module.css +8 -8
  71. package/src/shell/app-sidebar.tsx +2 -2
  72. package/src/shell/index.tsx +10 -4
  73. package/src/shell/page-bar.tsx +1 -1
  74. package/src/table/data-table.tsx +10 -4
  75. package/src/theme/__snapshots__/plain-theme.test.ts.snap +57 -45
  76. package/src/theme/ctl-theme.tsx +1 -1
  77. package/src/theme/index.ts +43 -23
  78. package/src/tokens/core.ts +16 -8
  79. package/src/tokens/ctl-vars.ts +32 -0
  80. package/src/tokens/palette.ts +40 -29
  81. package/src/tokens/space-scale.ts +13 -0
@@ -33,6 +33,12 @@ export type SeriesMap = Record<string, ColorPair>;
33
33
  * alpha(VX.status.warn, 0.1) // zone-band fill
34
34
  */
35
35
  export declare const alpha: (token: string, a: number) => string;
36
+ /** Grid-aligned line boxes (px) for the two dense rungs — `theme/index.ts` re-expresses them as the
37
+ * Mantine `lineHeights` `xs`/`sm`, so a `<Text size="sm">` row is a 20px box and a meta line 16px. */
38
+ export declare const TEXT_LINE: {
39
+ readonly xs: 16;
40
+ readonly sm: 20;
41
+ };
36
42
  export declare const VX: {
37
43
  readonly lineWidth: 2.5;
38
44
  readonly line2Width: 2;
@@ -40,17 +46,17 @@ export declare const VX: {
40
46
  readonly dotR: number;
41
47
  readonly dashArray: "6 4";
42
48
  readonly legendGap: number;
43
- readonly legendFontSize: 13.5;
49
+ readonly legendFontSize: 13;
44
50
  readonly text: {
45
51
  readonly nano: 10;
46
52
  readonly micro: 11;
47
- readonly xs: 12.5;
48
- readonly sm: 13.5;
53
+ readonly xs: 12;
54
+ readonly sm: 13;
49
55
  readonly md: 15;
50
56
  readonly lg: 16;
51
57
  readonly xl: 18;
52
58
  readonly h2: 21;
53
- readonly kpi: 24;
59
+ readonly kpi: 22;
54
60
  readonly h1: 26;
55
61
  readonly display: 30;
56
62
  };
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/tokens/core.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAYH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAUvE,OAAO,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,WAAW,CAAA;AAMjC,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AACnF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,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b,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AASD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,GAAG,SAAS,GAAG,MAAM,CAkB1E;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,GAAG,MAAM,CASvE;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CAMtE"}
@@ -1,3 +1,4 @@
1
+ import { denseCtlBlock } from "./ctl-vars.js";
1
2
  import {
2
3
  buildPaletteData,
3
4
  RADIUS,
@@ -29,25 +30,26 @@ const TEXT = {
29
30
  // engraved/graphic label INSIDE a drawn object (a plate face, a dial, a chip) — never UI copy or prose
30
31
  micro: 11,
31
32
  // mono uppercase micro-label (table th, Menu.Label, sidebar/section headers, axis ticks)
32
- xs: 12.5,
33
- // delta badges, tooltip meta, dense chrome, StatCard labels
34
- sm: 13.5,
35
- // table/stat numerals, chart tooltip, legend
33
+ xs: 12,
34
+ // delta badges, tooltip meta, dense chrome, StatCard labels — 16px line (`TEXT_LINE.xs`)
35
+ sm: 13,
36
+ // DENSE ROWS — table cells, nav rows, list/event rows, menu items; numerals, tooltip, legend — 20px line (`TEXT_LINE.sm`)
36
37
  md: 15,
37
- // BODY — nav rows, menu items, timeline, labels, prose; chart/card titles
38
+ // BODY — prose and form labels; chart/card titles
38
39
  lg: 16,
39
40
  // breadcrumb current — ALSO the iOS input floor (do not lower)
40
41
  xl: 18,
41
42
  // section titles
42
43
  h2: 21,
43
44
  // article-density Prose h2 (docs/CONTENT-SPEC.md §5)
44
- kpi: 24,
45
- // the StatCard hero numeral (density pass: 31 → 24, tighter/less shouty)
45
+ kpi: 22,
46
+ // the StatCard hero numeral (mono 500; 31 → 24 → 22, tighter/less shouty)
46
47
  h1: 26,
47
48
  // article-density Prose h1 (docs/CONTENT-SPEC.md §5)
48
49
  display: 30
49
50
  // a numeral read at arm's length (a keypad readout, a timer, a kiosk figure) — not a heading
50
51
  };
52
+ const TEXT_LINE = { xs: 16, sm: 20 };
51
53
  const VX = {
52
54
  // Non-color sizing constants
53
55
  // Stroke WEIGHTS, not spacing — deliberately fixed, never density-tracking (see
@@ -295,6 +297,7 @@ function spaceDecls(space) {
295
297
  decl("space-control-height-tag", pxRem(space.anchors.controlHeightTag)),
296
298
  decl("space-control-height-widget", pxRem(space.anchors.controlHeightWidget)),
297
299
  decl("space-control-height-ctl", pxRem(space.anchors.controlHeightCtl)),
300
+ decl("space-control-height-dense", pxRem(space.anchors.controlHeightDense)),
298
301
  decl("space-stack-xs", `${space.anchors.stackXs}px`),
299
302
  decl("space-stack-sm", `${space.anchors.stackSm}px`),
300
303
  decl("space-stack-md", `${space.anchors.stackMd}px`),
@@ -540,7 +543,7 @@ const coarseHitBlock = `@media (pointer: coarse) {
540
543
  }`;
541
544
  function spaceMobileDecls(space) {
542
545
  return [
543
- decl("space-card-inset-x", `${space.scale.xs}px`),
546
+ decl("space-card-inset-x", `${space.scale.sm}px`),
544
547
  decl("space-section-gap", `${space.anchors.stackSm}px`)
545
548
  ];
546
549
  }
@@ -575,11 +578,13 @@ ${extra}` : framework;
575
578
  const rootBlock = only === "core" ? `:root {
576
579
  ${derived}
577
580
  }
578
- ${coarseHitBlock}` : `:root {
581
+ ${coarseHitBlock}
582
+ ${denseCtlBlock()}` : `:root {
579
583
  ${derived}
580
584
  }
581
585
  ${mobileLadderBlock(DEFAULT_SPACE_VALUES)}
582
- ${coarseHitBlock}`;
586
+ ${coarseHitBlock}
587
+ ${denseCtlBlock()}`;
583
588
  if (opts.scheme === void 0 && opts.defaultScheme === void 0 && !opts.mediaFallback) {
584
589
  return `${rootBlock}
585
590
  :root,
@@ -661,6 +666,7 @@ export {
661
666
  DEFAULT_DERIVE_CONFIG,
662
667
  REF_LINE_ALPHA,
663
668
  SIZE_CLASSES2 as SIZE_CLASSES,
669
+ TEXT_LINE,
664
670
  VX,
665
671
  alpha,
666
672
  buildDensityCss,
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The Mantine size vars that carry the `ctl` tier's HEIGHT — one list, read by `ctlSizeVars`
3
+ * (`theme/index.ts`, which sets each to the `ctl` height) and by {@link denseCtlBlock} (which
4
+ * restates each at the dense height for `[data-basalt-dense]`). Mantine substitutes these where they
5
+ * are declared (`:root`), so the dense tier cannot re-point the token alone.
6
+ */
7
+ export declare const CTL_HEIGHT_VARS: readonly ["--button-height-ctl", "--input-height-ctl", "--ai-size-ctl", "--badge-height-ctl"];
8
+ export type CtlHeightVar = (typeof CTL_HEIGHT_VARS)[number];
9
+ /**
10
+ * The dense-tier rule (SPEC D6), emitted beside `coarseHitBlock` in the palette CSS. A scope that
11
+ * carries `data-basalt-dense` re-points the `ctl` height at `--vx-space-control-height-dense` at
12
+ * FINE pointers only; a coarse pointer keeps the `ctl` height and the 44px hit overlay.
13
+ */
14
+ export declare function denseCtlBlock(): string;
15
+ //# sourceMappingURL=ctl-vars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ctl-vars.d.ts","sourceRoot":"","sources":["../../src/tokens/ctl-vars.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,+FAKlB,CAAA;AAEV,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAE3D;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAWtC"}
@@ -0,0 +1,22 @@
1
+ const CTL_HEIGHT_VARS = [
2
+ "--button-height-ctl",
3
+ "--input-height-ctl",
4
+ "--ai-size-ctl",
5
+ "--badge-height-ctl"
6
+ ];
7
+ function denseCtlBlock() {
8
+ const height = "calc(var(--vx-space-control-height-dense) * var(--mantine-scale))";
9
+ const decls = CTL_HEIGHT_VARS.map((name) => ` ${name}: ${height};`).join("\n");
10
+ return [
11
+ "@media (pointer: fine) {",
12
+ " [data-basalt-dense] {",
13
+ " --vx-space-control-height-ctl: var(--vx-space-control-height-dense);",
14
+ decls,
15
+ " }",
16
+ "}"
17
+ ].join("\n");
18
+ }
19
+ export {
20
+ CTL_HEIGHT_VARS,
21
+ denseCtlBlock
22
+ };
@@ -143,10 +143,10 @@ export declare const RADIUS_LEVEL_RANGE: {
143
143
  /**
144
144
  * Derive the two radius anchors (`card`/`ctrl`) and their dependent offsets from a single integer
145
145
  * `level` (`docs/DESIGN-SPEC.md` §4) — the radius analog of `deriveTokens`'s color knobs. `level: 0`
146
- * reproduces the shipped identity exactly (`card: 7, ctrl: 6, floating: 8, tight: 5, fine: 4`,
146
+ * reproduces the shipped identity exactly (`card: 10, ctrl: 6, floating: 11, tight: 5, fine: 4`,
147
147
  * locked by `theme/radius.test.ts`).
148
148
  *
149
- * The law: `card = 7 + level`, `ctrl = 6 + level`, both clamped to `≥ 0`; every offset then follows
149
+ * The law: `card = 10 + level`, `ctrl = 6 + level`, both clamped to `≥ 0`; every offset then follows
150
150
  * its anchor — `floating = card + 1`, `tight = ctrl - 1`, `fine = ctrl - 2` — each ALSO clamped to
151
151
  * `≥ 0` (so an aggressive negative level flattens the smaller tiers to square before the larger
152
152
  * ones). The three independent Mantine-scale stops (`RADIUS_STEP.scaleXs/scaleLg/scaleXl`) are not
@@ -253,10 +253,16 @@ declare const SPACE_ANCHORS_BASE: {
253
253
  * 32, up from 30. At 30 this tier was the ONLY chrome number in the shell that did not agree with
254
254
  * its neighbours: the sidebar search trigger is 32 (`sidebarSearchTriggerHeight`), a sidebar block
255
255
  * row is 32 (`sidebarBlockRowHeight`), and a NavLink row resolves to ~32 (`2 * rowInsetY +
256
- * rowLineHeight * text.md`) — so a `size="ctl"` button sitting beside any of them read 2px short
256
+ * rowLineHeight * text.sm`, 12 + 1.54 * 13 = 32.02) — so a `size="ctl"` button sitting beside any of them read 2px short
257
257
  * and the whole band looked unresolved. 32 lands the entire chrome tier on ONE number, which is
258
258
  * also the smallest square that still holds a 16px icon with a 8px surround. */
259
259
  readonly controlHeightCtl: 32;
260
+ /** The DENSE control tier (`docs/waves/design-parity/SPEC.md` § 5, D6) — INTERNAL, no public export.
261
+ * `BasaltDataTable`'s toolbar and `FilterSet` rows re-point the `ctl` tier's size vars at this
262
+ * (`styles.css`, `[data-basalt-dense]`) at FINE pointers only, so a search, its filter pills and the
263
+ * actions share one row at 1440. A coarse pointer keeps `ctl` and the 44px hit overlay. Floored at
264
+ * 24px in {@link deriveSpacing} (WCAG 2.5.8). */
265
+ readonly controlHeightDense: 28;
260
266
  };
261
267
  /**
262
268
  * The Mantine `spacing` size-scale (`xs`/`sm`/`md`/`lg`/`xl`) — the app-wide generic rhythm every
@@ -274,11 +280,11 @@ declare const SPACE_ANCHORS_BASE: {
274
280
  * table for {@link deriveSpacing}.
275
281
  */
276
282
  declare const SPACE_SCALE_BASE: {
277
- readonly xs: 11;
278
- readonly sm: 13;
279
- readonly md: 18;
283
+ readonly xs: 8;
284
+ readonly sm: 12;
285
+ readonly md: 16;
280
286
  readonly lg: 20;
281
- readonly xl: 26;
287
+ readonly xl: 24;
282
288
  };
283
289
  /**
284
290
  * Density-tracking, genuine one-offs — named insets that fit neither the anchor vertical rhythm/
@@ -550,6 +556,11 @@ declare const SPACE_STEP_BASE: {
550
556
  * (`shell/app-brand.module.css`), so the page gutter is free to be a gutter. The header's
551
557
  * breadcrumb, the page-bar band and Main all land on this one number. */
552
558
  readonly appShellInset: 16;
559
+ /** The page gutter at the EXPANDED size class only — a TRIAL (`docs/waves/design-parity/SPEC.md`
560
+ * D7): the reference measures 24 at 1440, and 16 was a deliberate earlier choice down from 20, so
561
+ * the wider gutter applies where the evidence is and is reverted by setting this to
562
+ * `appShellInset` (one line). Medium keeps `appShellInset`, compact keeps `appShellInsetMobile`. */
563
+ readonly appShellInsetExpanded: 24;
553
564
  /** The page gutter BELOW `sm` — the phone half of `appShellInset` above. A separate entry rather
554
565
  * than one responsive value for the same reason `appShellNavbarWidth` is one: there is no sidebar
555
566
  * seam to align to on a phone, so the number is answering a different question (how much of a
@@ -637,10 +648,10 @@ declare const SPACE_STEP_BASE: {
637
648
  * must render identically (a StatCard and a ChartCard sit in the same grid row). Does NOT step
638
649
  * below `sm`: the phone is short of WIDTH, and shaving the vertical inset of a card that already
639
650
  * hugs its content buys a few pixels at the cost of the card's own breathing room. */
640
- readonly cardInsetY: 11;
651
+ readonly cardInsetY: 12;
641
652
  /** Card inset, HORIZONTAL — same two files, same must-match reason. This IS the half that steps
642
- * below `sm` (to `SPACE_SCALE.xs`), because horizontal is where a 390px viewport is short. */
643
- readonly cardInsetX: 13;
653
+ * in a compact container (to `SPACE_SCALE.sm`, 12), because horizontal is where a 390px viewport is short. */
654
+ readonly cardInsetX: 16;
644
655
  /** `dashboard/section.module.css`'s header→body and body-child gap — a page-level GROUPING
645
656
  * rhythm, which is why it reads the stack scale rather than the card-inset one. Steps to
646
657
  * `SPACE.stackSm` below `sm`. Distinct from `sidebarSectionGap` above, which is the gap between
@@ -692,10 +703,11 @@ export declare const SPACE_FIXED: {
692
703
  readonly readingProgressHeight: 2;
693
704
  /** SegmentedControl track's optical inset (`styles.root` padding) — moved OUT of `SPACE_STEP` and
694
705
  * exempted from the density knob because it is load-bearing for the nested-corner law
695
- * (docs/DESIGN-SPEC.md §4): `RADIUS.card === RADIUS_STEP.tight + segmentedTrackInset` (`7 = 5 +
696
- * 2`). `RADIUS.card`/`RADIUS_STEP.tight` both shift together under the RADIUS knob (`card = 7 +
697
- * level`, `tight = ctrl - 1 = 5 + level`), so their difference is ALWAYS exactly 2 regardless of
698
- * that knob — a density-tracking inset would break concentricity in both directions (verified: this
706
+ * (docs/DESIGN-SPEC.md §4): `RADIUS.ctrl === RADIUS_STEP.fine + segmentedTrackInset` (`6 = 4 +
707
+ * 2`; the track takes the control radius, the indicator the `fine` tier). `RADIUS.ctrl`/
708
+ * `RADIUS_STEP.fine` both shift together under the RADIUS knob (`ctrl = 6 + level`, `fine = ctrl
709
+ * - 2`), so their difference is exactly 2 regardless of that knob (down to level -4; at -5 `fine`
710
+ * clamps to 0 against `ctrl` 1) — a density-tracking inset would break concentricity in both directions (verified: this
699
711
  * inset's own value, HAD it stayed density-tracking, resolves via `scaleSpace(2, level, multiplier)`
700
712
  * to 1 at density's floor level -3 and 3 at its ceiling level +3 — the widest swing `deriveSpacing`'s
701
713
  * `[-3, 3]` range can produce) for no compensating benefit, since the two radii it sits between
@@ -810,15 +822,15 @@ export declare function scaleSpace(value: number, level: number, multiplier: num
810
822
  * still overrides `--vx-space-sticky-header-clearance`. Documented on the `./content` surface too
811
823
  * (`docs/CONTENT-SPEC.md` §5), not only here.
812
824
  *
813
- * `rowLineHeight` is the ONE exception to the multiplier entirely: `1.35 + ROW_LINE_HEIGHT_STEP *
825
+ * `rowLineHeight` is the ONE exception to the multiplier entirely: `1.54 + ROW_LINE_HEIGHT_STEP *
814
826
  * level`, ADDITIVE, its own gentler, INDEPENDENT coefficient (see {@link ROW_LINE_HEIGHT_STEP}'s own
815
827
  * doc for why it must stay independent of `multiplier`). It carries the NavLink row's
816
- * `lineHeight: '1.35'` (`theme/index.ts`, load-bearing for row height) along with the row's padding,
817
- * but the multiplier law would overshoot it — `1.35 * 1.3` at level +3 is already a much larger
828
+ * `lineHeight: '1.54'` (`theme/index.ts`, load-bearing for row height) along with the row's padding,
829
+ * but the multiplier law would overshoot it — `1.54 * 1.3` at level +3 is already a much larger
818
830
  * relative move than the padding it accompanies, well past the readable line-height range. The
819
- * additive step instead lands `1.25`..`1.45` across the full range, a proportionate nudge. Rounded
820
- * to 2 decimals (`Math.round(x * 100) / 100`) to avoid floating-point noise (`1.35 +
821
- * ROW_LINE_HEIGHT_STEP * 3` is not exactly `1.45` in raw IEEE-754 arithmetic).
831
+ * additive step instead lands `1.44`..`1.64` across the full range, a proportionate nudge. Rounded
832
+ * to 2 decimals (`Math.round(x * 100) / 100`) to avoid floating-point noise (`1.54 +
833
+ * ROW_LINE_HEIGHT_STEP * 3` is not exactly `1.64` in raw IEEE-754 arithmetic).
822
834
  *
823
835
  * `SPACE_FIXED` is NEVER part of this law — see that constant's own doc for why.
824
836
  *
@@ -899,6 +911,7 @@ export declare const SPACE: {
899
911
  readonly controlHeightTag: number;
900
912
  readonly controlHeightWidget: number;
901
913
  readonly controlHeightCtl: number;
914
+ readonly controlHeightDense: number;
902
915
  };
903
916
  /** The Mantine `spacing` size-scale at the shipped identity — see `SPACE_SCALE_BASE`'s doc.
904
917
  * `deriveSpacing(0)`'s `scale`, UNCHANGED from the shipped identity (locked by
@@ -1000,6 +1013,7 @@ export declare const SPACE_STEP: {
1000
1013
  readonly appShellAsideWidth: number;
1001
1014
  readonly appShellAsideRailWidth: number;
1002
1015
  readonly appShellInset: number;
1016
+ readonly appShellInsetExpanded: number;
1003
1017
  readonly appShellInsetMobile: number;
1004
1018
  readonly appShellHeaderLeadMin: number;
1005
1019
  readonly mobileNavTabGap: number;
@@ -1044,7 +1058,7 @@ export declare const SPACE_STEP: {
1044
1058
  } & {
1045
1059
  stickyHeaderClearance: number;
1046
1060
  };
1047
- /** NavLink row line-height at the shipped identity (`1.35`) — `deriveSpacing(0)`'s `rowLineHeight`,
1061
+ /** NavLink row line-height at the shipped identity (`1.54`, a 20px line at `sm`) — `deriveSpacing(0)`'s `rowLineHeight`,
1048
1062
  * UNCHANGED from the shipped identity (locked by `theme/spacing.test.ts`). */
1049
1063
  export declare const ROW_LINE_HEIGHT: number;
1050
1064
  declare function buildPaletteDataUncached(config: DeriveConfig): {
@@ -1102,10 +1116,7 @@ declare function buildPaletteDataUncached(config: DeriveConfig): {
1102
1116
  readonly light: "#71717a";
1103
1117
  readonly dark: "#a1a1aa";
1104
1118
  };
1105
- readonly axis: {
1106
- readonly light: string;
1107
- readonly dark: "rgba(255, 255, 255, 0.6)";
1108
- };
1119
+ readonly axis: ColorPair;
1109
1120
  readonly axisStroke: {
1110
1121
  readonly light: string;
1111
1122
  readonly dark: "rgba(255, 255, 255, 0.12)";
@@ -1203,10 +1214,7 @@ export declare const NEUTRAL: {
1203
1214
  readonly light: "#71717a";
1204
1215
  readonly dark: "#a1a1aa";
1205
1216
  };
1206
- readonly axis: {
1207
- readonly light: string;
1208
- readonly dark: "rgba(255, 255, 255, 0.6)";
1209
- };
1217
+ readonly axis: ColorPair;
1210
1218
  readonly axisStroke: {
1211
1219
  readonly light: string;
1212
1220
  readonly dark: "rgba(255, 255, 255, 0.12)";
@@ -1 +1 @@
1
- {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/tokens/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAEvC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;CAgCL,CAAA;AAEV;;;;GAIG;AACH,eAAO,MAAM,CAAC,GAAI,KAAK,SAAS,MAAM,EAAE,EAAE,cAAS,EAAE,aAAQ,KAAG,SAG9D,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM;;;;;;;;;IASjB;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;;;;;;;;;CAaK,CAAA;AAEV;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAOD;;;8DAG8D;AAC9D,eAAO,MAAM,kBAAkB;;;CAA+B,CAAA;AAE9D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAmBxD;AAMD;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM;I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E5C;+CAC+C;AAC/C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;CAA8B,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { SPACE_SCALE_LEVEL0 } from "./space-scale.js";
1
2
  import { DEFAULT_DERIVE_CONFIG, deriveTokens, isDefaultDeriveConfig } from "./derive.js";
2
3
  const BP = {
3
4
  black: "#18181b",
@@ -94,7 +95,7 @@ function deriveRadius(level) {
94
95
  `deriveRadius: level must be an integer in [${RADIUS_LEVEL_RANGE.min}, ${RADIUS_LEVEL_RANGE.max}], got ${level}`
95
96
  );
96
97
  }
97
- const card = clampRadius(7 + level);
98
+ const card = clampRadius(10 + level);
98
99
  const ctrl = clampRadius(6 + level);
99
100
  return {
100
101
  card,
@@ -116,7 +117,7 @@ const RADIUS_STEP = {
116
117
  /** Tooltip / Popover / Modal / Notification (`docs/DESIGN-SPEC.md` §5 floating tier) — one step
117
118
  * above the card radius. */
118
119
  floating: DEFAULT_RADIUS_VALUES.floating,
119
- // 8
120
+ // 11
120
121
  /** SegmentedControl's active indicator, Kbd, Code — one step below the control radius. */
121
122
  tight: DEFAULT_RADIUS_VALUES.tight,
122
123
  // 5
@@ -174,18 +175,18 @@ const SPACE_ANCHORS_BASE = {
174
175
  * 32, up from 30. At 30 this tier was the ONLY chrome number in the shell that did not agree with
175
176
  * its neighbours: the sidebar search trigger is 32 (`sidebarSearchTriggerHeight`), a sidebar block
176
177
  * row is 32 (`sidebarBlockRowHeight`), and a NavLink row resolves to ~32 (`2 * rowInsetY +
177
- * rowLineHeight * text.md`) — so a `size="ctl"` button sitting beside any of them read 2px short
178
+ * rowLineHeight * text.sm`, 12 + 1.54 * 13 = 32.02) — so a `size="ctl"` button sitting beside any of them read 2px short
178
179
  * and the whole band looked unresolved. 32 lands the entire chrome tier on ONE number, which is
179
180
  * also the smallest square that still holds a 16px icon with a 8px surround. */
180
- controlHeightCtl: 32
181
- };
182
- const SPACE_SCALE_BASE = {
183
- xs: 11,
184
- sm: 13,
185
- md: 18,
186
- lg: 20,
187
- xl: 26
181
+ controlHeightCtl: 32,
182
+ /** The DENSE control tier (`docs/waves/design-parity/SPEC.md` § 5, D6) — INTERNAL, no public export.
183
+ * `BasaltDataTable`'s toolbar and `FilterSet` rows re-point the `ctl` tier's size vars at this
184
+ * (`styles.css`, `[data-basalt-dense]`) at FINE pointers only, so a search, its filter pills and the
185
+ * actions share one row at 1440. A coarse pointer keeps `ctl` and the 44px hit overlay. Floored at
186
+ * 24px in {@link deriveSpacing} (WCAG 2.5.8). */
187
+ controlHeightDense: 28
188
188
  };
189
+ const SPACE_SCALE_BASE = SPACE_SCALE_LEVEL0;
189
190
  const SPACE_STEP_BASE = {
190
191
  /** Timeline `defaultProps.bulletSize`. */
191
192
  timelineBullet: 22,
@@ -462,6 +463,11 @@ const SPACE_STEP_BASE = {
462
463
  * (`shell/app-brand.module.css`), so the page gutter is free to be a gutter. The header's
463
464
  * breadcrumb, the page-bar band and Main all land on this one number. */
464
465
  appShellInset: 16,
466
+ /** The page gutter at the EXPANDED size class only — a TRIAL (`docs/waves/design-parity/SPEC.md`
467
+ * D7): the reference measures 24 at 1440, and 16 was a deliberate earlier choice down from 20, so
468
+ * the wider gutter applies where the evidence is and is reverted by setting this to
469
+ * `appShellInset` (one line). Medium keeps `appShellInset`, compact keeps `appShellInsetMobile`. */
470
+ appShellInsetExpanded: 24,
465
471
  /** The page gutter BELOW `sm` — the phone half of `appShellInset` above. A separate entry rather
466
472
  * than one responsive value for the same reason `appShellNavbarWidth` is one: there is no sidebar
467
473
  * seam to align to on a phone, so the number is answering a different question (how much of a
@@ -560,7 +566,7 @@ const SPACE_STEP_BASE = {
560
566
  // it never moved, so a 390px phone still read "content spacing too big" after the gutter fix.
561
567
  //
562
568
  // Each value is deliberately the rung of an existing ladder rather than a fresh literal: the card
563
- // inset IS `SPACE_SCALE.xs`/`.sm` (which is what `StatCard`/`ChartCard` spelled as
569
+ // inset IS `SPACE_SCALE.sm`/`.md` (12/16; the compact horizontal step is `.sm`) (which is what `StatCard`/`ChartCard` spelled as
564
570
  // `--mantine-spacing-xs`/`-sm` before they were named here) and the Section gap IS
565
571
  // `SPACE.stackMd`. Naming them buys the ROLE, not a new number — a role the `< sm` override can
566
572
  // then re-point without touching the scale every other consumer of `xs`/`sm` reads.
@@ -574,10 +580,10 @@ const SPACE_STEP_BASE = {
574
580
  * must render identically (a StatCard and a ChartCard sit in the same grid row). Does NOT step
575
581
  * below `sm`: the phone is short of WIDTH, and shaving the vertical inset of a card that already
576
582
  * hugs its content buys a few pixels at the cost of the card's own breathing room. */
577
- cardInsetY: 11,
583
+ cardInsetY: 12,
578
584
  /** Card inset, HORIZONTAL — same two files, same must-match reason. This IS the half that steps
579
- * below `sm` (to `SPACE_SCALE.xs`), because horizontal is where a 390px viewport is short. */
580
- cardInsetX: 13,
585
+ * in a compact container (to `SPACE_SCALE.sm`, 12), because horizontal is where a 390px viewport is short. */
586
+ cardInsetX: 16,
581
587
  /** `dashboard/section.module.css`'s header→body and body-child gap — a page-level GROUPING
582
588
  * rhythm, which is why it reads the stack scale rather than the card-inset one. Steps to
583
589
  * `SPACE.stackSm` below `sm`. Distinct from `sidebarSectionGap` above, which is the gap between
@@ -625,10 +631,11 @@ const SPACE_FIXED = {
625
631
  readingProgressHeight: 2,
626
632
  /** SegmentedControl track's optical inset (`styles.root` padding) — moved OUT of `SPACE_STEP` and
627
633
  * exempted from the density knob because it is load-bearing for the nested-corner law
628
- * (docs/DESIGN-SPEC.md §4): `RADIUS.card === RADIUS_STEP.tight + segmentedTrackInset` (`7 = 5 +
629
- * 2`). `RADIUS.card`/`RADIUS_STEP.tight` both shift together under the RADIUS knob (`card = 7 +
630
- * level`, `tight = ctrl - 1 = 5 + level`), so their difference is ALWAYS exactly 2 regardless of
631
- * that knob — a density-tracking inset would break concentricity in both directions (verified: this
634
+ * (docs/DESIGN-SPEC.md §4): `RADIUS.ctrl === RADIUS_STEP.fine + segmentedTrackInset` (`6 = 4 +
635
+ * 2`; the track takes the control radius, the indicator the `fine` tier). `RADIUS.ctrl`/
636
+ * `RADIUS_STEP.fine` both shift together under the RADIUS knob (`ctrl = 6 + level`, `fine = ctrl
637
+ * - 2`), so their difference is exactly 2 regardless of that knob (down to level -4; at -5 `fine`
638
+ * clamps to 0 against `ctrl` 1) — a density-tracking inset would break concentricity in both directions (verified: this
632
639
  * inset's own value, HAD it stayed density-tracking, resolves via `scaleSpace(2, level, multiplier)`
633
640
  * to 1 at density's floor level -3 and 3 at its ceiling level +3 — the widest swing `deriveSpacing`'s
634
641
  * `[-3, 3]` range can produce) for no compensating benefit, since the two radii it sits between
@@ -665,6 +672,7 @@ function deriveSpacing(level) {
665
672
  anchors.controlHeightTag = Math.max(18, anchors.controlHeightTag);
666
673
  anchors.controlHeightWidget = Math.max(22, anchors.controlHeightWidget);
667
674
  anchors.controlHeightCtl = Math.max(28, anchors.controlHeightCtl);
675
+ anchors.controlHeightDense = Math.max(24, anchors.controlHeightDense);
668
676
  const mappedStep = mapSpaceGroup(SPACE_STEP_BASE, level, multiplier);
669
677
  mappedStep.sidebarSearchTriggerHeight = Math.max(24, mappedStep.sidebarSearchTriggerHeight);
670
678
  mappedStep.mobileNavBarHeight = Math.max(49, mappedStep.mobileNavBarHeight);
@@ -684,7 +692,7 @@ function deriveSpacing(level) {
684
692
  step,
685
693
  // Additive, gentler, INDEPENDENT law than the multiplier — see `ROW_LINE_HEIGHT_STEP`'s own doc
686
694
  // for why it must NOT be computed from `multiplier`.
687
- rowLineHeight: Math.round((1.35 + ROW_LINE_HEIGHT_STEP * level) * 100) / 100
695
+ rowLineHeight: Math.round((1.54 + ROW_LINE_HEIGHT_STEP * level) * 100) / 100
688
696
  };
689
697
  }
690
698
  const DEFAULT_SPACE_VALUES = deriveSpacing(0);
@@ -723,7 +731,10 @@ function buildPaletteDataUncached(config) {
723
731
  // primary line
724
732
  line2: { light: BP.gray[1], dark: BP.gray[2] },
725
733
  // secondary line
726
- axis: { light: inkRgba(inkLight, 0.6), dark: "rgba(255, 255, 255, 0.6)" },
734
+ // Axis ticks / small chart labels at 10–11px: the DERIVED `faint` ink (opaque, tone stops in
735
+ // `derive.ts`'s `INK_TONE`, ≥ 4.5:1 on every text surface), not an ink-at-60% alpha — that
736
+ // measured 4.06:1 on the light panel (`docs/waves/design-parity/w31/s4-baseline.md`, Craft 5).
737
+ axis: DERIVED.ink.faint,
727
738
  axisStroke: { light: inkRgba(inkLight, 0.12), dark: "rgba(255, 255, 255, 0.12)" },
728
739
  grid: { light: inkRgba(inkLight, 0.07), dark: "rgba(255, 255, 255, 0.06)" },
729
740
  crosshair: { light: inkRgba(inkLight, 0.32), dark: "rgba(255, 255, 255, 0.42)" },
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The Mantine `spacing` size-scale at level 0, in its own dependency-free module so the headless
3
+ * guard core (`guard/index.ts`, which runs on every Write/Edit) can read the SAME constant the token
4
+ * layer derives from without dragging `derive.ts`/`hct.ts`'s colour math in. `tokens/palette.ts`
5
+ * documents the scale's role (`SPACE_SCALE_BASE`); this file only owns the numbers.
6
+ */
7
+ export declare const SPACE_SCALE_LEVEL0: {
8
+ readonly xs: 8;
9
+ readonly sm: 12;
10
+ readonly md: 16;
11
+ readonly lg: 20;
12
+ readonly xl: 24;
13
+ };
14
+ //# sourceMappingURL=space-scale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"space-scale.d.ts","sourceRoot":"","sources":["../../src/tokens/space-scale.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAA"}
@@ -0,0 +1,10 @@
1
+ const SPACE_SCALE_LEVEL0 = {
2
+ xs: 8,
3
+ sm: 12,
4
+ md: 16,
5
+ lg: 20,
6
+ xl: 24
7
+ };
8
+ export {
9
+ SPACE_SCALE_LEVEL0
10
+ };
package/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # basalt-ui v2.15.0
1
+ # basalt-ui v2.16.0
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.15.0
16
+ Version: 2.16.0
17
17
 
18
18
  ## basalt-ui
19
19
  Import: import { ... } from 'basalt-ui'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basalt-ui",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "description": "Opinionated framework for Mantine-based React apps — theme, app shell, TanStack Charts, toolchain presets",
5
5
  "keywords": [
6
6
  "charts",
@@ -349,7 +349,7 @@ function MessageAffordanceRow({
349
349
 
350
350
  return (
351
351
  <Group
352
- gap={8}
352
+ gap="xs"
353
353
  data-testid={`message-affordances-${message.id}`}
354
354
  style={{ opacity: visible ? 1 : 0, transition: 'opacity 120ms ease' }}
355
355
  >
@@ -149,7 +149,7 @@ export function ThreadOutcomeCard({
149
149
  const isPreviewing =
150
150
  thread.outcome === null && (thread.status === 'pending' || thread.status === 'streaming')
151
151
 
152
- // Card idiom (docs/DESIGN-SPEC.md §5): panel + shadow-card, radius 7 (VX.radiusCard), xs/sm
152
+ // Card idiom (docs/DESIGN-SPEC.md §5): panel + shadow-card, radius 10 (VX.radiusCard), card
153
153
  // inset — each outcome row reads as its own card lifted off the feed pane, not a flat
154
154
  // highlighted list row.
155
155
  const background = selected
@@ -166,7 +166,7 @@ export function ThreadOutcomeCard({
166
166
  className={cx(className)}
167
167
  style={{
168
168
  display: 'block',
169
- padding: 'var(--mantine-spacing-xs) var(--mantine-spacing-sm)',
169
+ padding: 'var(--vx-space-card-inset-y, 0.75rem) var(--vx-space-card-inset-x, 1rem)',
170
170
  borderRadius: VX.radiusCard,
171
171
  boxShadow: VX.shadowCard,
172
172
  backgroundColor: background,
@@ -84,7 +84,7 @@ const bodyClipStyle: CSSProperties = {
84
84
  minHeight: 0,
85
85
  display: 'flex',
86
86
  flexDirection: 'column',
87
- padding: '2px var(--vx-space-card-inset-x, 0.8125rem) var(--vx-space-card-inset-y, 0.6875rem)',
87
+ padding: '2px var(--vx-space-card-inset-x, 1rem) var(--vx-space-card-inset-y, 0.75rem)',
88
88
  }
89
89
 
90
90
  /** The three boxes a `ChartCard` paints. */
@@ -7,12 +7,12 @@
7
7
  */
8
8
 
9
9
  .header {
10
- padding: 4px var(--vx-space-card-inset-x, 0.8125rem) 4px;
10
+ padding: 4px var(--vx-space-card-inset-x, 1rem) 4px;
11
11
  }
12
12
 
13
13
  @container (min-width: 480px) {
14
14
  .header {
15
- padding-top: var(--vx-space-card-inset-y, 0.6875rem);
15
+ padding-top: var(--vx-space-card-inset-y, 0.75rem);
16
16
  }
17
17
  }
18
18
 
@@ -59,7 +59,7 @@ const metricsTable = (rows: AnchorMetrics[]): string => {
59
59
  .filter((a) => a.nested.length > 0)
60
60
  .map(
61
61
  (a) =>
62
- `<li>${a.scheme}/${a.viewport}<ul>${a.nested.map((n) => `<li>${esc(n.path)} r${n.radius} p ${sides(n.padding)}</li>`).join('')}</ul></li>`,
62
+ `<li>${a.scheme}/${a.viewport}<ul>${a.nested.map((n) => `<li>${esc(n.path)} r${n.radius === 'full' ? ' full' : n.radius} p ${sides(n.padding)}</li>`).join('')}</ul></li>`,
63
63
  )
64
64
  return (
65
65
  `<table><tr><th></th><th>box</th><th>padding</th><th>gap r/c</th><th>radius</th><th>border</th>` +