basalt-ui 2.22.0 → 2.23.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 (131) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/MIGRATING.md +187 -12
  3. package/agent/agents/basalt-design-reviewer.md +1 -1
  4. package/agent/skills/basalt-design/SKILL.md +1 -1
  5. package/dist/charts/BandStrip.d.ts.map +1 -1
  6. package/dist/charts/BandStrip.js +51 -5
  7. package/dist/charts/Bars.d.ts.map +1 -1
  8. package/dist/charts/Bars.js +2 -1
  9. package/dist/charts/CartesianChart.d.ts +2 -0
  10. package/dist/charts/CartesianChart.d.ts.map +1 -1
  11. package/dist/charts/ChartCard.d.ts +1 -1
  12. package/dist/charts/ChartCard.d.ts.map +1 -1
  13. package/dist/charts/ChartCard.js +25 -15
  14. package/dist/charts/Sparkline.d.ts +8 -2
  15. package/dist/charts/Sparkline.d.ts.map +1 -1
  16. package/dist/charts/Sparkline.js +67 -13
  17. package/dist/charts/band-fold.d.ts +22 -4
  18. package/dist/charts/band-fold.d.ts.map +1 -1
  19. package/dist/charts/band-fold.js +10 -2
  20. package/dist/charts/chart-dates.d.ts +12 -0
  21. package/dist/charts/chart-dates.d.ts.map +1 -0
  22. package/dist/charts/chart-dates.js +16 -0
  23. package/dist/charts/compile.d.ts +8 -0
  24. package/dist/charts/compile.d.ts.map +1 -1
  25. package/dist/charts/compile.js +30 -21
  26. package/dist/charts/date-tick-format.d.ts +5 -5
  27. package/dist/charts/date-tick-format.d.ts.map +1 -1
  28. package/dist/charts/date-tick-format.js +3 -7
  29. package/dist/charts/labels.d.ts +7 -3
  30. package/dist/charts/labels.d.ts.map +1 -1
  31. package/dist/charts/labels.js +28 -17
  32. package/dist/charts/ref-label.d.ts +17 -0
  33. package/dist/charts/ref-label.d.ts.map +1 -1
  34. package/dist/charts/ref-label.js +13 -1
  35. package/dist/charts/sparkline.module.css +8 -11
  36. package/dist/charts/state.d.ts.map +1 -1
  37. package/dist/charts/state.js +3 -1
  38. package/dist/charts/types.d.ts +4 -3
  39. package/dist/charts/types.d.ts.map +1 -1
  40. package/dist/cli/shot/capture.d.ts.map +1 -1
  41. package/dist/cli/shot/capture.js +9 -5
  42. package/dist/cli/shot/detect.js +8 -5
  43. package/dist/cli/shot/playwright.d.ts +8 -0
  44. package/dist/cli/shot/playwright.d.ts.map +1 -1
  45. package/dist/cli/shot/playwright.js +5 -1
  46. package/dist/cli/shot/types.d.ts +2 -0
  47. package/dist/cli/shot/types.d.ts.map +1 -1
  48. package/dist/cli/tokens-css.d.ts +5 -7
  49. package/dist/cli/tokens-css.d.ts.map +1 -1
  50. package/dist/cli/tokens-css.js +11 -12
  51. package/dist/dashboard/bar-list.d.ts +6 -1
  52. package/dist/dashboard/bar-list.d.ts.map +1 -1
  53. package/dist/dashboard/bar-list.js +8 -0
  54. package/dist/dashboard/bar-list.module.css +30 -0
  55. package/dist/dashboard/delta-badge.d.ts.map +1 -1
  56. package/dist/dashboard/delta-badge.js +2 -2
  57. package/dist/dashboard/meter-model.d.ts +25 -20
  58. package/dist/dashboard/meter-model.d.ts.map +1 -1
  59. package/dist/dashboard/meter-model.js +24 -12
  60. package/dist/dashboard/meter-parts.d.ts +1 -1
  61. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  62. package/dist/dashboard/meter-parts.js +39 -4
  63. package/dist/dashboard/meter.d.ts +14 -8
  64. package/dist/dashboard/meter.d.ts.map +1 -1
  65. package/dist/dashboard/meter.js +1 -1
  66. package/dist/dashboard/meter.module.css +15 -0
  67. package/dist/dashboard/meter.module.css.d.ts +1 -0
  68. package/dist/dashboard/query-state.d.ts.map +1 -1
  69. package/dist/dashboard/query-state.js +1 -1
  70. package/dist/dashboard/stat-card-parts.js +1 -1
  71. package/dist/dashboard/stat-card.module.css +25 -6
  72. package/dist/dashboard/stat-group.module.css +7 -0
  73. package/dist/dashboard/stat-strip.d.ts +15 -5
  74. package/dist/dashboard/stat-strip.d.ts.map +1 -1
  75. package/dist/dashboard/stat-strip.js +50 -34
  76. package/dist/dashboard/stat-strip.module.css +83 -61
  77. package/dist/guard/index.d.ts.map +1 -1
  78. package/dist/guard/index.js +0 -5
  79. package/dist/styles.css +18 -11
  80. package/dist/theme/controls.module.css +14 -0
  81. package/dist/theme/controls.module.css.d.ts +1 -0
  82. package/dist/theme/index.d.ts.map +1 -1
  83. package/dist/theme/index.js +10 -7
  84. package/dist/theme/status-verdict.d.ts.map +1 -1
  85. package/dist/theme/status-verdict.js +9 -1
  86. package/dist/tokens/palette.d.ts +7 -10
  87. package/dist/tokens/palette.d.ts.map +1 -1
  88. package/dist/tokens/palette.js +7 -10
  89. package/llms.txt +6 -4
  90. package/package.json +1 -1
  91. package/src/charts/BandStrip.tsx +55 -5
  92. package/src/charts/Bars.tsx +2 -1
  93. package/src/charts/CartesianChart.tsx +2 -0
  94. package/src/charts/ChartCard.tsx +32 -19
  95. package/src/charts/Sparkline.tsx +92 -19
  96. package/src/charts/band-fold.ts +25 -6
  97. package/src/charts/chart-dates.ts +30 -0
  98. package/src/charts/compile.ts +64 -23
  99. package/src/charts/date-tick-format.ts +10 -13
  100. package/src/charts/labels.ts +43 -22
  101. package/src/charts/ref-label.ts +27 -0
  102. package/src/charts/sparkline.module.css +8 -11
  103. package/src/charts/state.tsx +6 -3
  104. package/src/charts/types.ts +4 -3
  105. package/src/cli/shot/capture.ts +15 -3
  106. package/src/cli/shot/detect.ts +9 -9
  107. package/src/cli/shot/playwright.ts +18 -2
  108. package/src/cli/shot/types.ts +2 -0
  109. package/src/cli/tokens-css.ts +18 -20
  110. package/src/dashboard/bar-list.module.css +30 -0
  111. package/src/dashboard/bar-list.tsx +29 -0
  112. package/src/dashboard/delta-badge.tsx +6 -2
  113. package/src/dashboard/meter-model.ts +58 -41
  114. package/src/dashboard/meter-parts.tsx +66 -5
  115. package/src/dashboard/meter.module.css +15 -0
  116. package/src/dashboard/meter.module.css.d.ts +1 -0
  117. package/src/dashboard/meter.tsx +15 -11
  118. package/src/dashboard/query-state.tsx +1 -1
  119. package/src/dashboard/stat-card-parts.tsx +1 -1
  120. package/src/dashboard/stat-card.module.css +25 -6
  121. package/src/dashboard/stat-group.module.css +7 -0
  122. package/src/dashboard/stat-strip.module.css +83 -61
  123. package/src/dashboard/stat-strip.tsx +93 -54
  124. package/src/guard/index.ts +0 -5
  125. package/src/styles.css +18 -11
  126. package/src/theme/__snapshots__/plain-theme.test.ts.snap +14 -8
  127. package/src/theme/controls.module.css +14 -0
  128. package/src/theme/controls.module.css.d.ts +1 -0
  129. package/src/theme/index.ts +10 -7
  130. package/src/theme/status-verdict.tsx +5 -1
  131. package/src/tokens/palette.ts +7 -10
package/src/styles.css CHANGED
@@ -31,6 +31,21 @@
31
31
  @import '@fontsource-variable/hubot-sans';
32
32
  @import '@fontsource-variable/jetbrains-mono';
33
33
 
34
+ /* Hubot Sans has no `zero` OpenType feature and its default zero is slashed, so a head-face "2026" or
35
+ * "90 days" cannot be fixed with `font-feature-settings`. Digits come from the sans instead: this
36
+ * face covers U+0030-0039 only, cut from the Nunito Sans variable file, and leads
37
+ * `--basalt-font-head`, so Hubot draws every letter and Nunito every digit. */
38
+ @font-face {
39
+ /* theme-allow raw-font-family — declares the face, uses nothing */
40
+ font-family: 'Basalt Head Digits';
41
+ font-style: normal;
42
+ font-display: swap;
43
+ font-weight: 200 1000;
44
+ src: url('@fontsource-variable/nunito-sans/files/nunito-sans-latin-wght-normal.woff2')
45
+ format('woff2-variations');
46
+ unicode-range: U+0030-0039;
47
+ }
48
+
34
49
  /* Font stack — overridable via the --basalt-font-* custom properties. */
35
50
  @layer base {
36
51
  :root {
@@ -42,9 +57,10 @@
42
57
  --basalt-font-sans:
43
58
  'Nunito Sans Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
44
59
  Helvetica, Arial, sans-serif;
60
+ /* A consumer that sets its own head family replaces this stack, digit face included, by design. */
45
61
  --basalt-font-head:
46
- 'Hubot Sans Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica,
47
- Arial, sans-serif;
62
+ 'Basalt Head Digits', 'Hubot Sans Variable', ui-sans-serif, system-ui, -apple-system,
63
+ 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
48
64
  --basalt-font-mono: 'JetBrains Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;
49
65
  /* Hero values, unit/count/delta text, bar-list and meter figures: proportional sans, lining
50
66
  figures. Set to `var(--basalt-font-mono)` to restore the pre-Wave-35 mono numerals. */
@@ -67,15 +83,6 @@
67
83
  text-size-adjust: 100%;
68
84
  }
69
85
 
70
- /* A slashed zero belongs to data text only. Hubot Sans (the heading face) draws one, and it leaked
71
- into every title that borrows the face (`2026`, `90 days`). `zero` is OFF by default and nothing
72
- in the package turns it on, so this is the off state at the root: it inherits into every head-face
73
- surface whether a heading element, a Mantine title or a CSS-module class that only sets the
74
- family, and is a no-op on the mono stack. */
75
- :root {
76
- font-feature-settings: 'zero' 0;
77
- }
78
-
79
86
  /* Mono data text drops its ligatures: `<>` in a facts line is two characters, not a diamond. Reaches
80
87
  the mono stack by element (code, kbd, samp, pre), by contract (`data-numeric`, `data-monospace`),
81
88
  by Mantine's `ff="monospace"` inline style, and by the stack's own var in an inline style. Body
@@ -243,6 +243,9 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
243
243
  },
244
244
  },
245
245
  "Alert": {
246
+ "classNames": {
247
+ "root": undefined,
248
+ },
246
249
  "styles": {
247
250
  "title": {
248
251
  "fontFamily": "var(--basalt-font-head)",
@@ -547,7 +550,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
547
550
  "styles": {
548
551
  "root": {
549
552
  "backgroundColor": "color-mix(in srgb, var(--vx-ink) 7%, transparent)",
550
- "borderRadius": "var(--vx-radius-tight)",
553
+ "borderRadius": "var(--basalt-code-radius, var(--vx-radius-tight))",
551
554
  },
552
555
  },
553
556
  },
@@ -899,7 +902,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
899
902
  indicator: {
900
903
  boxShadow: "var(--vx-shadow-raised)",
901
904
  outline: "1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)",
902
- borderRadius: "var(--vx-radius-fine)"
905
+ borderRadius: "max(0px, calc(var(--sc-radius, var(--vx-radius-ctrl)) - 3px))"
903
906
  },
904
907
  ...props.size === "ctl" ? {
905
908
  label: {
@@ -914,11 +917,11 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
914
917
  "outputs": [
915
918
  {
916
919
  "probes": 2020,
917
- "result": "{"root":{"backgroundColor":"color-mix(in srgb, var(--vx-ink) 8%, transparent)","padding":"2px","minWidth":"max-content"},"indicator":{"boxShadow":"var(--vx-shadow-raised)","outline":"1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)","borderRadius":"var(--vx-radius-fine)"}}",
920
+ "result": "{"root":{"backgroundColor":"color-mix(in srgb, var(--vx-ink) 8%, transparent)","padding":"2px","minWidth":"max-content"},"indicator":{"boxShadow":"var(--vx-shadow-raised)","outline":"1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)","borderRadius":"max(0px, calc(var(--sc-radius, var(--vx-radius-ctrl)) - 3px))"}}",
918
921
  },
919
922
  {
920
923
  "probes": 288,
921
- "result": "{"root":{"backgroundColor":"color-mix(in srgb, var(--vx-ink) 8%, transparent)","padding":"2px","minWidth":"max-content"},"indicator":{"boxShadow":"var(--vx-shadow-raised)","outline":"1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)","borderRadius":"var(--vx-radius-fine)"},"label":{"display":"inline-flex","alignItems":"center","minHeight":"calc(var(--vx-space-control-height-ctl) * var(--mantine-scale) - 4px)"}}",
924
+ "result": "{"root":{"backgroundColor":"color-mix(in srgb, var(--vx-ink) 8%, transparent)","padding":"2px","minWidth":"max-content"},"indicator":{"boxShadow":"var(--vx-shadow-raised)","outline":"1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)","borderRadius":"max(0px, calc(var(--sc-radius, var(--vx-radius-ctrl)) - 3px))"},"label":{"display":"inline-flex","alignItems":"center","minHeight":"calc(var(--vx-space-control-height-ctl) * var(--mantine-scale) - 4px)"}}",
922
925
  },
923
926
  ],
924
927
  },
@@ -1573,6 +1576,9 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1573
1576
  },
1574
1577
  },
1575
1578
  "Alert": {
1579
+ "classNames": {
1580
+ "root": undefined,
1581
+ },
1576
1582
  "styles": {
1577
1583
  "title": {
1578
1584
  "fontFamily": "var(--basalt-font-head)",
@@ -1877,7 +1883,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1877
1883
  "styles": {
1878
1884
  "root": {
1879
1885
  "backgroundColor": "color-mix(in srgb, var(--vx-ink) 7%, transparent)",
1880
- "borderRadius": "var(--vx-radius-tight)",
1886
+ "borderRadius": "var(--basalt-code-radius, var(--vx-radius-tight))",
1881
1887
  },
1882
1888
  },
1883
1889
  },
@@ -2229,7 +2235,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
2229
2235
  indicator: {
2230
2236
  boxShadow: "var(--vx-shadow-raised)",
2231
2237
  outline: "1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)",
2232
- borderRadius: "var(--vx-radius-fine)"
2238
+ borderRadius: "max(0px, calc(var(--sc-radius, var(--vx-radius-ctrl)) - 3px))"
2233
2239
  },
2234
2240
  ...props.size === "ctl" ? {
2235
2241
  label: {
@@ -2244,11 +2250,11 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
2244
2250
  "outputs": [
2245
2251
  {
2246
2252
  "probes": 2020,
2247
- "result": "{"root":{"backgroundColor":"color-mix(in srgb, var(--vx-ink) 8%, transparent)","padding":"2px","minWidth":"max-content"},"indicator":{"boxShadow":"var(--vx-shadow-raised)","outline":"1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)","borderRadius":"var(--vx-radius-fine)"}}",
2253
+ "result": "{"root":{"backgroundColor":"color-mix(in srgb, var(--vx-ink) 8%, transparent)","padding":"2px","minWidth":"max-content"},"indicator":{"boxShadow":"var(--vx-shadow-raised)","outline":"1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)","borderRadius":"max(0px, calc(var(--sc-radius, var(--vx-radius-ctrl)) - 3px))"}}",
2248
2254
  },
2249
2255
  {
2250
2256
  "probes": 288,
2251
- "result": "{"root":{"backgroundColor":"color-mix(in srgb, var(--vx-ink) 8%, transparent)","padding":"2px","minWidth":"max-content"},"indicator":{"boxShadow":"var(--vx-shadow-raised)","outline":"1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)","borderRadius":"var(--vx-radius-fine)"},"label":{"display":"inline-flex","alignItems":"center","minHeight":"calc(var(--vx-space-control-height-ctl) * var(--mantine-scale) - 4px)"}}",
2257
+ "result": "{"root":{"backgroundColor":"color-mix(in srgb, var(--vx-ink) 8%, transparent)","padding":"2px","minWidth":"max-content"},"indicator":{"boxShadow":"var(--vx-shadow-raised)","outline":"1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)","borderRadius":"max(0px, calc(var(--sc-radius, var(--vx-radius-ctrl)) - 3px))"},"label":{"display":"inline-flex","alignItems":"center","minHeight":"calc(var(--vx-space-control-height-ctl) * var(--mantine-scale) - 4px)"}}",
2252
2258
  },
2253
2259
  ],
2254
2260
  },
@@ -323,6 +323,12 @@ html .tableRoot tbody tr:last-of-type {
323
323
  border-bottom: none;
324
324
  }
325
325
 
326
+ /* A status word is the text as written ("Healthy"), not Mantine's UPPERCASE default; a caller who wants
327
+ * a micro-caption passes `tt="uppercase"`, which is inline and wins. `html` outranks Mantine's class. */
328
+ html .badgeRoot {
329
+ text-transform: none;
330
+ }
331
+
326
332
  /*
327
333
  * Badge status dot: a coloured `light` Badge is the neutral surface + ink word with a leading dot in the
328
334
  * status colour (`badgeVars` writes the `--badge-dot*` vars; nothing here without them). The dot is a
@@ -359,3 +365,11 @@ html .tableRoot tbody tr:last-of-type {
359
365
  .badgeSection img {
360
366
  object-fit: contain;
361
367
  }
368
+
369
+ /*
370
+ * Alert: an inline Code inside it sits one nested step (3px) under the Alert's own radius
371
+ * (craft-1/nested-radius-step). The Code theme reads `--basalt-code-radius`; the Alert supplies it.
372
+ */
373
+ .alertRoot {
374
+ --basalt-code-radius: max(0px, calc(var(--alert-radius, var(--vx-radius-ctrl)) - 3px));
375
+ }
@@ -5,6 +5,7 @@
5
5
  declare const classes: {
6
6
  readonly inputWrapper: string
7
7
  readonly input: string
8
+ readonly alertRoot: string
8
9
  readonly buttonRoot: string
9
10
  readonly actionIconRoot: string
10
11
  readonly checkboxCardRoot: string
@@ -517,6 +517,7 @@ function buildTheme(data: PaletteData, options: BuildThemeOptions = {}): Mantine
517
517
  // already on-system (defaultRadius 'md' control tier + the variant color resolver), so only
518
518
  // the title font is overridden.
519
519
  Alert: ext<typeof Alert>({
520
+ classNames: { root: controlsClasses.alertRoot },
520
521
  styles: {
521
522
  title: {
522
523
  fontFamily: 'var(--basalt-font-head)',
@@ -775,11 +776,11 @@ function buildTheme(data: PaletteData, options: BuildThemeOptions = {}): Mantine
775
776
  // label that no longer fits its equal share truncates instead of forcing the column wide.
776
777
  //
777
778
  // The track's padding is `SPACE_FIXED.segmentedTrackInset`, a plain literal — NOT a
778
- // `--vx-space-*` var — because it is density-EXEMPT: it is load-bearing for the nested-corner
779
- // law (`RADIUS.ctrl === RADIUS_STEP.fine + segmentedTrackInset`, see that constant's doc in
780
- // `tokens/palette.ts`), and `radius.ctrl`/`RADIUS_STEP.fine` below already track the
781
- // RADIUS knob together, so the inset between them must stay fixed at exactly 2 regardless of
782
- // density.
779
+ // `--vx-space-*` var — because it is density-EXEMPT (see that constant's doc in
780
+ // `tokens/palette.ts`). The INDICATOR radius is the track's per-instance radius (`--sc-radius`,
781
+ // which Mantine sets on the root from the `radius` prop) minus 3 px: exact concentricity would
782
+ // be track − inset (2 px), but `craft-1/nested-radius-step` wants nested surfaces ≥ 3 px apart
783
+ // and that lint step wins. A custom `radius` therefore nests too.
783
784
  SegmentedControl: ext<typeof SegmentedControl>({
784
785
  defaultProps: { radius: radius.ctrl },
785
786
  classNames: {
@@ -818,7 +819,8 @@ function buildTheme(data: PaletteData, options: BuildThemeOptions = {}): Mantine
818
819
  // ink-12% fill sat one shade from the track and read as a hover state.
819
820
  boxShadow: 'var(--vx-shadow-raised)',
820
821
  outline: '1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)',
821
- borderRadius: 'var(--vx-radius-fine)',
822
+ // Track radius − 3 px: craft-1/nested-radius-step beats exact concentricity.
823
+ borderRadius: 'max(0px, calc(var(--sc-radius, var(--vx-radius-ctrl)) - 3px))',
822
824
  },
823
825
  // Conditionally spread the WHOLE key (never a present `label: undefined`) — the package
824
826
  // builds under `exactOptionalPropertyTypes`, which treats a key present-but-`undefined` as
@@ -1040,7 +1042,8 @@ function buildTheme(data: PaletteData, options: BuildThemeOptions = {}): Mantine
1040
1042
  styles: {
1041
1043
  root: {
1042
1044
  backgroundColor: 'color-mix(in srgb, var(--vx-ink) 7%, transparent)',
1043
- borderRadius: 'var(--vx-radius-tight)',
1045
+ // An Alert re-points the var (`controls.module.css`) so a nested Code steps down.
1046
+ borderRadius: 'var(--basalt-code-radius, var(--vx-radius-tight))',
1044
1047
  },
1045
1048
  },
1046
1049
  }),
@@ -23,7 +23,11 @@ export function StatusVerdict({ color, word, phrase, className, style }: StatusV
23
23
  return (
24
24
  <span className={cx(classes.verdict, className)} {...(style !== undefined && { style })}>
25
25
  <StatusDot color={color} />
26
- <span data-verdict-word="" {...(phrase !== undefined && { 'aria-hidden': true })}>
26
+ <span
27
+ data-verdict-word=""
28
+ title={phrase ?? word}
29
+ {...(phrase !== undefined && { 'aria-hidden': true })}
30
+ >
27
31
  {word}
28
32
  </span>
29
33
  {phrase !== undefined && <span className={classes.hidden}>{phrase}</span>}
@@ -240,7 +240,9 @@ export const RADIUS_STEP = {
240
240
  floating: DEFAULT_RADIUS_VALUES.floating, // 11
241
241
  /** SegmentedControl's active indicator, Kbd, Code — one step below the control radius. */
242
242
  tight: DEFAULT_RADIUS_VALUES.tight, // 5
243
- /** Progress bar, and the Mantine scale's `sm` step — two steps below the control radius. */
243
+ /** Progress bar, and the Mantine scale's `sm` step — two steps below the control radius. (No
244
+ * longer the SegmentedControl indicator: that is the track radius − 3 px, the nested-radius lint
245
+ * step, set in `theme/index.ts`.) */
244
246
  fine: DEFAULT_RADIUS_VALUES.fine, // 4
245
247
  /** The Mantine `radius` scale's `xs` step — independent of both anchors. */
246
248
  scaleXs: 2,
@@ -840,15 +842,10 @@ export const SPACE_FIXED = {
840
842
  readingProgressHeight: 2,
841
843
  /** SegmentedControl track's optical inset (`styles.root` padding) — moved OUT of `SPACE_STEP` and
842
844
  * exempted from the density knob because it is load-bearing for the nested-corner law
843
- * (docs/DESIGN-SPEC.md §4): `RADIUS.ctrl === RADIUS_STEP.fine + segmentedTrackInset` (`6 = 4 +
844
- * 2`; the track takes the control radius, the indicator the `fine` tier). `RADIUS.ctrl`/
845
- * `RADIUS_STEP.fine` both shift together under the RADIUS knob (`ctrl = 6 + level`, `fine = ctrl
846
- * - 2`), so their difference is exactly 2 regardless of that knob (down to level -4; at -5 `fine`
847
- * clamps to 0 against `ctrl` 1) — a density-tracking inset would break concentricity in both directions (verified: this
848
- * inset's own value, HAD it stayed density-tracking, resolves via `scaleSpace(2, level, multiplier)`
849
- * to 1 at density's floor level -3 and 3 at its ceiling level +3 — the widest swing `deriveSpacing`'s
850
- * `[-3, 3]` range can produce) for no compensating benefit, since the two radii it sits between
851
- * never move independently of each other. */
845
+ * (docs/DESIGN-SPEC.md §4). The indicator radius is the track radius − 3 px (the nested-radius
846
+ * lint step wins over exact concentricity, which would be track − inset), so the inset no longer
847
+ * sets a corner; it stays fixed because a density-tracking inset (1 at density -3, 3 at +3 via
848
+ * `scaleSpace(2, level, multiplier)`) would make the track's optical weight swing for no benefit. */
852
849
  segmentedTrackInset: 2,
853
850
  } as const
854
851