basalt-ui 2.19.0 → 2.21.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 (234) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/MIGRATING.md +291 -12
  3. package/agent/agents/basalt-design-reviewer.md +22 -5
  4. package/agent/rules/basalt-charts.md +1 -1
  5. package/agent/rules/basalt-mantine.md +1 -1
  6. package/agent/rules/basalt-tokens.md +2 -2
  7. package/agent/skills/basalt-app/SKILL.md +1 -1
  8. package/agent/skills/basalt-design/SKILL.md +10 -23
  9. package/agent/skills/basalt-design/references/anti-defaults.md +24 -0
  10. package/agent/skills/basalt-design/references/catalogue.md +48 -0
  11. package/agent/skills/basalt-design/references/concept.md +36 -0
  12. package/agent/skills/basalt-design/references/encoding-rules.md +45 -0
  13. package/agent/skills/basalt-design/references/stat-tile.md +24 -0
  14. package/agent/templates/AGENTS-block.md.tpl +3 -3
  15. package/agent/templates/DESIGN.md.tpl +1 -1
  16. package/configs/oxlint-plugin.js +34 -19
  17. package/configs/oxlint-plugin.test.ts +32 -2
  18. package/dist/charts/ChartCard.d.ts +33 -4
  19. package/dist/charts/ChartCard.d.ts.map +1 -1
  20. package/dist/charts/ChartCard.js +37 -11
  21. package/dist/charts/Donut.d.ts.map +1 -1
  22. package/dist/charts/Donut.js +13 -1
  23. package/dist/charts/Heatmap.js +1 -1
  24. package/dist/charts/Sparkline.d.ts +7 -1
  25. package/dist/charts/Sparkline.d.ts.map +1 -1
  26. package/dist/charts/Sparkline.js +137 -18
  27. package/dist/charts/box.d.ts +2 -0
  28. package/dist/charts/box.d.ts.map +1 -1
  29. package/dist/charts/box.js +2 -0
  30. package/dist/charts/chart-box.module.css +30 -0
  31. package/dist/charts/chart-box.module.css.d.ts +1 -0
  32. package/dist/charts/chart-card.module.css +47 -0
  33. package/dist/charts/chart-card.module.css.d.ts +7 -0
  34. package/dist/charts/compile.d.ts.map +1 -1
  35. package/dist/charts/compile.js +35 -8
  36. package/dist/charts/host.d.ts.map +1 -1
  37. package/dist/charts/host.js +2 -1
  38. package/dist/charts/index.d.ts +1 -1
  39. package/dist/charts/index.d.ts.map +1 -1
  40. package/dist/charts/sparkline.module.css +59 -0
  41. package/dist/charts/sparkline.module.css.d.ts +13 -0
  42. package/dist/charts/state.d.ts +5 -0
  43. package/dist/charts/state.d.ts.map +1 -1
  44. package/dist/charts/state.js +34 -4
  45. package/dist/charts/types.d.ts +6 -0
  46. package/dist/charts/types.d.ts.map +1 -1
  47. package/dist/cli/check-theme.d.ts.map +1 -1
  48. package/dist/cli/check-theme.js +3 -0
  49. package/dist/cli/help.d.ts.map +1 -1
  50. package/dist/cli/help.js +3 -2
  51. package/dist/cli/index.d.ts +4 -2
  52. package/dist/cli/index.d.ts.map +1 -1
  53. package/dist/cli/index.js +27 -15
  54. package/dist/cli/init.d.ts.map +1 -1
  55. package/dist/cli/init.js +3 -2
  56. package/dist/cli/shot/capture.d.ts.map +1 -1
  57. package/dist/cli/shot/capture.js +6 -1
  58. package/dist/cli/shot/detect.d.ts +51 -0
  59. package/dist/cli/shot/detect.d.ts.map +1 -0
  60. package/dist/cli/shot/detect.js +396 -0
  61. package/dist/cli/shot/index.d.ts.map +1 -1
  62. package/dist/cli/shot/index.js +7 -4
  63. package/dist/cli/shot/measure.d.ts +2 -0
  64. package/dist/cli/shot/measure.d.ts.map +1 -1
  65. package/dist/cli/shot/measure.js +2 -0
  66. package/dist/cli/shot/types.d.ts +4 -1
  67. package/dist/cli/shot/types.d.ts.map +1 -1
  68. package/dist/cli/shot/types.js +2 -0
  69. package/dist/cli/sync.d.ts +2 -0
  70. package/dist/cli/sync.d.ts.map +1 -1
  71. package/dist/cli/sync.js +2 -2
  72. package/dist/common/retry-button.d.ts +12 -0
  73. package/dist/common/retry-button.d.ts.map +1 -0
  74. package/dist/common/retry-button.js +22 -0
  75. package/dist/common/retry-button.module.css +58 -0
  76. package/dist/common/retry-button.module.css.d.ts +8 -0
  77. package/dist/controls/sync-button.d.ts +3 -0
  78. package/dist/controls/sync-button.d.ts.map +1 -1
  79. package/dist/dashboard/bar-list.d.ts +18 -4
  80. package/dist/dashboard/bar-list.d.ts.map +1 -1
  81. package/dist/dashboard/bar-list.js +39 -15
  82. package/dist/dashboard/bar-list.module.css +77 -2
  83. package/dist/dashboard/bar-list.module.css.d.ts +1 -0
  84. package/dist/dashboard/delta-badge.d.ts +8 -3
  85. package/dist/dashboard/delta-badge.d.ts.map +1 -1
  86. package/dist/dashboard/delta-badge.js +9 -2
  87. package/dist/dashboard/index.d.ts +2 -0
  88. package/dist/dashboard/index.d.ts.map +1 -1
  89. package/dist/dashboard/meter-model.d.ts +53 -6
  90. package/dist/dashboard/meter-model.d.ts.map +1 -1
  91. package/dist/dashboard/meter-model.js +62 -14
  92. package/dist/dashboard/meter-parts.d.ts +5 -1
  93. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  94. package/dist/dashboard/meter-parts.js +140 -68
  95. package/dist/dashboard/meter.d.ts +29 -4
  96. package/dist/dashboard/meter.d.ts.map +1 -1
  97. package/dist/dashboard/meter.js +8 -1
  98. package/dist/dashboard/meter.module.css +74 -43
  99. package/dist/dashboard/meter.module.css.d.ts +4 -4
  100. package/dist/dashboard/query-state.d.ts +1 -1
  101. package/dist/dashboard/query-state.d.ts.map +1 -1
  102. package/dist/dashboard/query-state.js +16 -10
  103. package/dist/dashboard/settings-section.d.ts.map +1 -1
  104. package/dist/dashboard/settings-section.js +14 -25
  105. package/dist/dashboard/stat-card-parts.js +1 -1
  106. package/dist/dashboard/stat-card.d.ts +1 -1
  107. package/dist/dashboard/stat-card.d.ts.map +1 -1
  108. package/dist/dashboard/stat-card.js +5 -7
  109. package/dist/dashboard/stat-card.module.css +15 -7
  110. package/dist/dashboard/stat-group.d.ts +11 -2
  111. package/dist/dashboard/stat-group.d.ts.map +1 -1
  112. package/dist/dashboard/stat-group.js +9 -7
  113. package/dist/dashboard/stat-strip.d.ts +67 -0
  114. package/dist/dashboard/stat-strip.d.ts.map +1 -0
  115. package/dist/dashboard/stat-strip.js +115 -0
  116. package/dist/dashboard/stat-strip.module.css +291 -0
  117. package/dist/dashboard/stat-strip.module.css.d.ts +32 -0
  118. package/dist/dashboard/visual-slot.d.ts +2 -0
  119. package/dist/dashboard/visual-slot.d.ts.map +1 -0
  120. package/dist/dashboard/visual-slot.js +5 -0
  121. package/dist/dashboard/widget-header.d.ts +3 -3
  122. package/dist/dashboard/widget-header.module.css +10 -6
  123. package/dist/format/date.d.ts.map +1 -1
  124. package/dist/format/date.js +4 -3
  125. package/dist/format/shared.d.ts +6 -0
  126. package/dist/format/shared.d.ts.map +1 -1
  127. package/dist/format/shared.js +6 -2
  128. package/dist/guard/index.d.ts +16 -3
  129. package/dist/guard/index.d.ts.map +1 -1
  130. package/dist/guard/index.js +15 -1
  131. package/dist/guard/palette.d.ts +51 -0
  132. package/dist/guard/palette.d.ts.map +1 -0
  133. package/dist/guard/palette.js +190 -0
  134. package/dist/guard/series-file.d.ts +15 -0
  135. package/dist/guard/series-file.d.ts.map +1 -0
  136. package/dist/guard/series-file.js +29 -0
  137. package/dist/guard/types.d.ts +3 -3
  138. package/dist/guard/types.d.ts.map +1 -1
  139. package/dist/index.d.ts +3 -1
  140. package/dist/index.d.ts.map +1 -1
  141. package/dist/index.js +4 -0
  142. package/dist/styles.css +6 -0
  143. package/dist/surfaces.d.ts +1 -1
  144. package/dist/surfaces.d.ts.map +1 -1
  145. package/dist/surfaces.js +2 -0
  146. package/dist/theme/card-inset.module.css +76 -0
  147. package/dist/theme/card-inset.module.css.d.ts +9 -0
  148. package/dist/theme/controls.module.css +13 -0
  149. package/dist/theme/index.d.ts.map +1 -1
  150. package/dist/theme/index.js +41 -0
  151. package/dist/theme/nav-link.module.css +8 -10
  152. package/dist/theme/status-dot.d.ts +3 -2
  153. package/dist/theme/status-dot.d.ts.map +1 -1
  154. package/dist/theme/status-dot.js +12 -3
  155. package/dist/theme/status-verdict.d.ts +3 -2
  156. package/dist/theme/status-verdict.d.ts.map +1 -1
  157. package/dist/theme/status-verdict.js +3 -2
  158. package/dist/theme/status-verdict.module.css +4 -2
  159. package/dist/tokens/oklab.d.ts +28 -0
  160. package/dist/tokens/oklab.d.ts.map +1 -0
  161. package/dist/tokens/oklab.js +73 -0
  162. package/llms.txt +33 -7
  163. package/package.json +1 -1
  164. package/src/charts/ChartCard.tsx +79 -5
  165. package/src/charts/Donut.tsx +9 -1
  166. package/src/charts/Heatmap.tsx +1 -1
  167. package/src/charts/Sparkline.tsx +180 -18
  168. package/src/charts/box.tsx +2 -0
  169. package/src/charts/chart-box.module.css +30 -0
  170. package/src/charts/chart-box.module.css.d.ts +1 -0
  171. package/src/charts/chart-card.module.css +47 -0
  172. package/src/charts/chart-card.module.css.d.ts +7 -0
  173. package/src/charts/compile.ts +42 -9
  174. package/src/charts/host.tsx +6 -3
  175. package/src/charts/index.ts +1 -1
  176. package/src/charts/sparkline.module.css +59 -0
  177. package/src/charts/sparkline.module.css.d.ts +13 -0
  178. package/src/charts/state.tsx +53 -4
  179. package/src/charts/types.ts +6 -0
  180. package/src/cli/check-theme.ts +3 -0
  181. package/src/cli/help.ts +18 -1
  182. package/src/cli/index.ts +48 -17
  183. package/src/cli/init.ts +2 -1
  184. package/src/cli/shot/capture.ts +15 -2
  185. package/src/cli/shot/detect.ts +533 -0
  186. package/src/cli/shot/index.ts +8 -4
  187. package/src/cli/shot/measure.ts +4 -0
  188. package/src/cli/shot/types.ts +5 -1
  189. package/src/cli/sync.ts +4 -2
  190. package/src/common/retry-button.module.css +58 -0
  191. package/src/common/retry-button.module.css.d.ts +8 -0
  192. package/src/common/retry-button.tsx +29 -0
  193. package/src/controls/sync-button.tsx +3 -0
  194. package/src/dashboard/bar-list.module.css +77 -2
  195. package/src/dashboard/bar-list.module.css.d.ts +1 -0
  196. package/src/dashboard/bar-list.tsx +89 -18
  197. package/src/dashboard/delta-badge.tsx +21 -5
  198. package/src/dashboard/index.ts +2 -0
  199. package/src/dashboard/meter-model.ts +126 -20
  200. package/src/dashboard/meter-parts.tsx +224 -88
  201. package/src/dashboard/meter.module.css +74 -43
  202. package/src/dashboard/meter.module.css.d.ts +4 -4
  203. package/src/dashboard/meter.tsx +39 -5
  204. package/src/dashboard/query-state.tsx +26 -20
  205. package/src/dashboard/settings-section.tsx +1 -8
  206. package/src/dashboard/stat-card-parts.tsx +1 -1
  207. package/src/dashboard/stat-card.module.css +15 -7
  208. package/src/dashboard/stat-card.tsx +9 -9
  209. package/src/dashboard/stat-group.tsx +19 -8
  210. package/src/dashboard/stat-strip.module.css +291 -0
  211. package/src/dashboard/stat-strip.module.css.d.ts +32 -0
  212. package/src/dashboard/stat-strip.tsx +263 -0
  213. package/src/dashboard/visual-slot.ts +8 -0
  214. package/src/dashboard/widget-header.module.css +10 -6
  215. package/src/dashboard/widget-header.tsx +3 -3
  216. package/src/format/date.ts +6 -3
  217. package/src/format/shared.ts +11 -2
  218. package/src/guard/index.ts +17 -5
  219. package/src/guard/palette.ts +261 -0
  220. package/src/guard/series-file.ts +51 -0
  221. package/src/guard/types.ts +3 -2
  222. package/src/index.ts +7 -0
  223. package/src/styles.css +6 -0
  224. package/src/surfaces.ts +2 -0
  225. package/src/theme/__snapshots__/plain-theme.test.ts.snap +202 -24
  226. package/src/theme/card-inset.module.css +76 -0
  227. package/src/theme/card-inset.module.css.d.ts +9 -0
  228. package/src/theme/controls.module.css +13 -0
  229. package/src/theme/index.ts +56 -0
  230. package/src/theme/nav-link.module.css +8 -10
  231. package/src/theme/status-dot.tsx +17 -5
  232. package/src/theme/status-verdict.module.css +4 -2
  233. package/src/theme/status-verdict.tsx +9 -4
  234. package/src/tokens/oklab.ts +97 -0
@@ -0,0 +1,190 @@
1
+ import { contrastRatio } from "../tokens/hct.js";
2
+ import { deltaEOk, deltaEOkCvd, hexToOklch } from "../tokens/oklab.js";
3
+ const LIGHTNESS_BAND = {
4
+ light: [0.43, 0.77],
5
+ dark: [0.58, 0.88]
6
+ };
7
+ const CHROMA_FLOOR = 0.1;
8
+ const CVD_ADJACENT_MIN = 8;
9
+ const SEPARATION_MIN = 15;
10
+ const CONTRAST_MIN = 3;
11
+ const MAX_SERIES = 8;
12
+ const NEUTRAL_KEY = "other";
13
+ const HEX = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
14
+ const ENTRY = /([A-Za-z_$][\w$]*|'[^']+'|"[^"]+")\s*:\s*\{\s*(?:light\s*:\s*(['"])(.*?)\2\s*,\s*dark\s*:\s*(['"])(.*?)\4|dark\s*:\s*(['"])(.*?)\6\s*,\s*light\s*:\s*(['"])(.*?)\8)/g;
15
+ const lineOf = (text, at) => text.slice(0, at).split("\n").length;
16
+ function parseSeriesGroups(source) {
17
+ const groups = [];
18
+ for (const call of source.matchAll(/\bdefineSeries\s*\(/g)) {
19
+ const open = (call.index ?? 0) + call[0].length;
20
+ const lineStart = source.lastIndexOf("\n", call.index ?? 0) + 1;
21
+ if (/^\s*(?:\/\/|\*|\/\*)/.test(source.slice(lineStart, call.index))) continue;
22
+ let depth = 1;
23
+ let end = open;
24
+ while (end < source.length && depth > 0) {
25
+ const ch = source[end];
26
+ if (ch === "(") depth += 1;
27
+ else if (ch === ")") depth -= 1;
28
+ end += 1;
29
+ }
30
+ const body = source.slice(open, end);
31
+ const entries = [...body.matchAll(ENTRY)].map((m) => {
32
+ const light = m[3] ?? m[9] ?? "";
33
+ const dark = m[5] ?? m[7] ?? "";
34
+ return {
35
+ key: (m[1] ?? "").replace(/^['"]|['"]$/g, ""),
36
+ light: light.trim(),
37
+ dark: dark.trim(),
38
+ line: lineOf(source, open + (m.index ?? 0))
39
+ };
40
+ });
41
+ groups.push({ line: lineOf(source, call.index ?? 0), entries });
42
+ }
43
+ return groups;
44
+ }
45
+ const fix = (n, digits = 2) => n.toFixed(digits);
46
+ function auditSeriesGroups(groups, surfaces) {
47
+ const issues = [];
48
+ for (const group of groups) {
49
+ const { entries: allEntries } = group;
50
+ const lineOfKey = (key) => allEntries.find((e) => e.key === key)?.line ?? group.line;
51
+ const categorical = allEntries.filter((e) => e.key !== NEUTRAL_KEY);
52
+ if (categorical.length > MAX_SERIES) {
53
+ const extra = categorical.slice(MAX_SERIES).map((e) => e.key);
54
+ issues.push({
55
+ check: "order",
56
+ scheme: "light",
57
+ keys: extra,
58
+ measured: categorical.length,
59
+ threshold: MAX_SERIES,
60
+ line: lineOfKey(extra[0] ?? ""),
61
+ message: `${categorical.length} series in one group (max ${MAX_SERIES}) \u2014 ${extra.join(", ")} should fold into \`${NEUTRAL_KEY}\``
62
+ });
63
+ }
64
+ for (const scheme of ["light", "dark"]) {
65
+ const [lo, hi] = LIGHTNESS_BAND[scheme];
66
+ const value = (e) => e[scheme];
67
+ const entries = allEntries.filter((e) => {
68
+ if (HEX.test(value(e))) return true;
69
+ issues.push({
70
+ check: "format",
71
+ scheme,
72
+ keys: [e.key],
73
+ measured: 0,
74
+ threshold: 0,
75
+ line: e.line,
76
+ message: `${e.key} (${scheme}) "${value(e)}" is not a #rgb or #rrggbb hex \u2014 it cannot be checked`
77
+ });
78
+ return false;
79
+ });
80
+ for (const e of entries) {
81
+ const { L, C } = hexToOklch(value(e));
82
+ if (L < lo || L > hi) {
83
+ issues.push({
84
+ check: "lightness",
85
+ scheme,
86
+ keys: [e.key],
87
+ measured: L,
88
+ threshold: L < lo ? lo : hi,
89
+ line: e.line,
90
+ message: `${e.key} (${scheme}) OKLCH lightness ${fix(L)} is outside ${lo}\u2013${hi}`
91
+ });
92
+ }
93
+ if (e.key !== NEUTRAL_KEY && C < CHROMA_FLOOR) {
94
+ issues.push({
95
+ check: "chroma",
96
+ scheme,
97
+ keys: [e.key],
98
+ measured: C,
99
+ threshold: CHROMA_FLOOR,
100
+ line: e.line,
101
+ message: `${e.key} (${scheme}) OKLCH chroma ${fix(C, 3)} is below ${CHROMA_FLOOR} \u2014 a categorical hue must read as a hue (key a deliberately neutral series \`${NEUTRAL_KEY}\`)`
102
+ });
103
+ }
104
+ const ratio = contrastRatio(value(e), surfaces[scheme]);
105
+ if (ratio < CONTRAST_MIN) {
106
+ issues.push({
107
+ check: "contrast",
108
+ scheme,
109
+ keys: [e.key],
110
+ measured: ratio,
111
+ threshold: CONTRAST_MIN,
112
+ line: e.line,
113
+ message: `${e.key} (${scheme}) contrast ${fix(ratio)}:1 against the surface is below ${CONTRAST_MIN}:1`
114
+ });
115
+ }
116
+ }
117
+ const seen = /* @__PURE__ */ new Map();
118
+ const duplicated = /* @__PURE__ */ new Set();
119
+ for (const e of entries) {
120
+ const first = seen.get(value(e).toLowerCase());
121
+ if (first === void 0) seen.set(value(e).toLowerCase(), e.key);
122
+ else {
123
+ duplicated.add(`${first}|${e.key}`);
124
+ issues.push({
125
+ check: "order",
126
+ scheme,
127
+ keys: [first, e.key],
128
+ measured: 0,
129
+ threshold: SEPARATION_MIN,
130
+ line: e.line,
131
+ message: `${first} and ${e.key} (${scheme}) are the same colour ${value(e)} \u2014 a group does not cycle`
132
+ });
133
+ }
134
+ }
135
+ for (let i = 1; i < entries.length; i += 1) {
136
+ const a = entries[i - 1];
137
+ const b = entries[i];
138
+ if (duplicated.has(`${a.key}|${b.key}`)) continue;
139
+ const sims = ["protan", "deutan"].map(
140
+ (kind2) => [kind2, deltaEOkCvd(value(a), value(b), kind2)]
141
+ );
142
+ const [kind, worst] = sims.reduce((m, s) => s[1] < m[1] ? s : m);
143
+ if (worst < CVD_ADJACENT_MIN) {
144
+ issues.push({
145
+ check: "cvd",
146
+ scheme,
147
+ keys: [a.key, b.key],
148
+ measured: worst,
149
+ threshold: CVD_ADJACENT_MIN,
150
+ line: b.line,
151
+ message: `${a.key} \u2192 ${b.key} (${scheme}) are \u0394E ${fix(worst, 1)} apart under ${kind === "protan" ? "protanopia" : "deuteranopia"}, below ${CVD_ADJACENT_MIN}`
152
+ });
153
+ }
154
+ }
155
+ let worstPair = null;
156
+ for (let i = 0; i < entries.length; i += 1) {
157
+ for (let j = i + 1; j < entries.length; j += 1) {
158
+ const a = entries[i];
159
+ const b = entries[j];
160
+ if (duplicated.has(`${a.key}|${b.key}`)) continue;
161
+ const de = deltaEOk(value(a), value(b));
162
+ if (worstPair === null || de < worstPair.de) worstPair = { a, b, de };
163
+ }
164
+ }
165
+ if (worstPair !== null && worstPair.de < SEPARATION_MIN) {
166
+ issues.push({
167
+ check: "separation",
168
+ scheme,
169
+ keys: [worstPair.a.key, worstPair.b.key],
170
+ measured: worstPair.de,
171
+ threshold: SEPARATION_MIN,
172
+ line: worstPair.b.line,
173
+ message: `${worstPair.a.key} and ${worstPair.b.key} (${scheme}) are only \u0394E ${fix(worstPair.de, 1)} apart, below ${SEPARATION_MIN}`
174
+ });
175
+ }
176
+ }
177
+ }
178
+ return issues;
179
+ }
180
+ export {
181
+ CHROMA_FLOOR,
182
+ CONTRAST_MIN,
183
+ CVD_ADJACENT_MIN,
184
+ LIGHTNESS_BAND,
185
+ MAX_SERIES,
186
+ NEUTRAL_KEY,
187
+ SEPARATION_MIN,
188
+ auditSeriesGroups,
189
+ parseSeriesGroups
190
+ };
@@ -0,0 +1,15 @@
1
+ import type { SeriesSurfaces } from './palette.js';
2
+ import type { Finding, GuardConfig } from './types.js';
3
+ /**
4
+ * Judge ONE series file's palette: one finding per failed check, naming the key(s), scheme,
5
+ * measured number and threshold. The series module is exempt from every line-scan kind, so it is
6
+ * judged here instead. Honors `severity` and `exemptRules` like any other kind.
7
+ */
8
+ export declare function checkSeriesPalette(source: string, relPath: string, cfg: GuardConfig, surfaces: SeriesSurfaces): Finding[];
9
+ /**
10
+ * Findings for the series module at `<cwd>/<rel>`; none if it does not exist. Surfaces are the
11
+ * derive engine's default `surface.panel` (a chart sits on a panel) — a consumer's `derive`
12
+ * overrides are not read.
13
+ */
14
+ export declare function checkSeriesModule(cwd: string, rel: string, cfg: GuardConfig): Finding[];
15
+ //# sourceMappingURL=series-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"series-file.d.ts","sourceRoot":"","sources":["../../src/guard/series-file.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEnD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,WAAW,EAChB,QAAQ,EAAE,cAAc,GACvB,OAAO,EAAE,CAUX;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO,EAAE,CAQvF"}
@@ -0,0 +1,29 @@
1
+ import { existsSync, readFileSync } from "node:fs";
2
+ import { resolve } from "node:path";
3
+ import { DEFAULT_DERIVE_CONFIG, deriveTokens } from "../tokens/derive.js";
4
+ import { isRuleExempt, severityOf } from "./index.js";
5
+ import { auditSeriesGroups, parseSeriesGroups } from "./palette.js";
6
+ function checkSeriesPalette(source, relPath, cfg, surfaces) {
7
+ if (isRuleExempt("series-palette", relPath, cfg.exemptRules)) return [];
8
+ return auditSeriesGroups(parseSeriesGroups(source), surfaces).map((issue) => ({
9
+ relPath,
10
+ line: issue.line,
11
+ token: issue.keys.join(", "),
12
+ text: issue.message,
13
+ kind: "series-palette",
14
+ severity: severityOf("series-palette", cfg)
15
+ }));
16
+ }
17
+ function checkSeriesModule(cwd, rel, cfg) {
18
+ const file = resolve(cwd, rel);
19
+ if (!existsSync(file)) return [];
20
+ const { panel } = deriveTokens(DEFAULT_DERIVE_CONFIG).surface;
21
+ return checkSeriesPalette(readFileSync(file, "utf8"), rel, cfg, {
22
+ light: panel.light,
23
+ dark: panel.dark
24
+ });
25
+ }
26
+ export {
27
+ checkSeriesModule,
28
+ checkSeriesPalette
29
+ };
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * Guard types — Mantine-free, dependency-free (zero imports beyond TS types).
3
3
  *
4
- * GuardKind is the closed set of 26 violation kinds the theme guard can emit. Retired kinds
4
+ * GuardKind is the closed set of 27 violation kinds the theme guard can emit. Retired kinds
5
5
  * (`unframed-chart`, `raw-visx-axis`, `chart-missing-aria-label`) stay recognized ids in
6
6
  * `PLUGIN_RULE_IDS`/`KNOWN_RULE_IDS` so an existing `theme-allow <id>` reads as a dead waiver, not
7
7
  * a typo.
8
8
  * Finding is the structured result per violation, replacing the old `Violation` shape.
9
9
  * GuardConfig is the per-run configuration that drives checkSource.
10
10
  */
11
- /** The 26 theme-guard violation kinds. */
12
- export type GuardKind = 'raw-hex' | 'raw-color-fn' | 'localstorage-theme' | 'off-identity-accent' | 'mantine-shade-index' | 'raw-spacing' | 'raw-radius' | 'raw-surface' | 'card-with-border' | 'off-system-surface-var' | 'raw-html-layout' | 'inline-spacing' | 'inline-display' | 'raw-motion-value' | 'raw-form-control' | 'sub-16-input-font' | 'raw-font-family' | 'theme-allow-unscoped' | 'surface-shadow-override' | 'css-raw-surface' | 'inline-font-size' | 'hidden-inline-style' | 'in-body-page-title' | 'raw-selection-control' | 'raw-media-query' | 'unknown-vx-token';
11
+ /** The 27 theme-guard violation kinds. */
12
+ export type GuardKind = 'raw-hex' | 'raw-color-fn' | 'localstorage-theme' | 'off-identity-accent' | 'mantine-shade-index' | 'raw-spacing' | 'raw-radius' | 'raw-surface' | 'card-with-border' | 'off-system-surface-var' | 'raw-html-layout' | 'inline-spacing' | 'inline-display' | 'raw-motion-value' | 'raw-form-control' | 'sub-16-input-font' | 'raw-font-family' | 'theme-allow-unscoped' | 'surface-shadow-override' | 'css-raw-surface' | 'inline-font-size' | 'hidden-inline-style' | 'in-body-page-title' | 'raw-selection-control' | 'raw-media-query' | 'unknown-vx-token' | 'series-palette';
13
13
  /**
14
14
  * How hard a finding lands. `error` fails the build; `warn` reports and passes.
15
15
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/guard/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,0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,CAAC,aAAa,EAAE,OAAO,CAAA;IAC/B,kGAAkG;IAClG,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAA;IAChC;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAA;IAChC;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAA;IAChC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAA;IAC5C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC,CAAA;IAC1D;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAA;CAC7D,CAAA"}
package/dist/index.d.ts CHANGED
@@ -12,8 +12,10 @@ export { defineNav, navGroup, navTarget, flattenNav, useBasaltNav, type NavItemI
12
12
  export { scrollParentOf, useCoarsePointer, type Tone } from './common/index.js';
13
13
  export { createBasaltTheme } from './theme/index.js';
14
14
  export { ThemeToggle } from './theme/theme-toggle.js';
15
+ export { StatusDot, type StatusDotProps } from './theme/status-dot.js';
16
+ export { StatusVerdict, type StatusVerdictProps } from './theme/status-verdict.js';
15
17
  export { BasaltShell, PageBar, PageAside, useSizeClass, PageTitle, type ShellBaseProps, type SidebarBlock, type SettingsMenuItem, } from './shell/index.js';
16
- export { WidgetHeader, DeltaBadge, Section, StatCard, type StatCardBreakdownRow, type StatCardSparklineSize, StatGroup, EmptyState, SettingsSection, SettingsRow, DangerZone, Meter, type MeterProps, BarList, type BarListProps, } from './dashboard/index.js';
18
+ export { WidgetHeader, DeltaBadge, Section, StatCard, type StatCardBreakdownRow, type StatCardSparklineSize, StatGroup, type StatStripCell, type StatStripRow, EmptyState, SettingsSection, SettingsRow, DangerZone, Meter, type MeterProps, type MeterSegment, type MeterTick, type MeterZone, BarList, type BarListProps, } from './dashboard/index.js';
17
19
  export { unwrap } from './unwrap.js';
18
20
  export type { BasaltRegister, SeriesKey } from './register.js';
19
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrE,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,MAAM,0BAA0B,CAAA;AACjC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACnG,OAAO,EACL,SAAS,EACT,QAAQ,EACR,SAAS,EACT,UAAU,EACV,YAAY,EACZ,KAAK,SAAS,GACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,KAAK,IAAI,EAAE,MAAM,UAAU,CAAA;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EACL,WAAW,EACX,OAAO,EACP,SAAS,EACT,YAAY,EACZ,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,gBAAgB,GACtB,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,YAAY,EACZ,UAAU,EACV,OAAO,EACP,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,EACX,UAAU,EACV,KAAK,EACL,KAAK,UAAU,EACf,OAAO,E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a,EAClB,KAAK,YAAY,EACjB,UAAU,EACV,eAAe,EACf,WAAW,EACX,UAAU,EACV,KAAK,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,OAAO,EACP,KAAK,YAAY,GAClB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAMjC,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA"}
package/dist/index.js CHANGED
@@ -13,6 +13,8 @@ import {
13
13
  import { scrollParentOf, useCoarsePointer } from "./common/index.js";
14
14
  import { createBasaltTheme } from "./theme/index.js";
15
15
  import { ThemeToggle } from "./theme/theme-toggle.js";
16
+ import { StatusDot } from "./theme/status-dot.js";
17
+ import { StatusVerdict } from "./theme/status-verdict.js";
16
18
  import {
17
19
  BasaltShell,
18
20
  PageBar,
@@ -50,6 +52,8 @@ export {
50
52
  SettingsSection,
51
53
  StatCard,
52
54
  StatGroup,
55
+ StatusDot,
56
+ StatusVerdict,
53
57
  ThemeToggle,
54
58
  WidgetHeader,
55
59
  basaltRouterOptions,
package/dist/styles.css CHANGED
@@ -46,6 +46,9 @@
46
46
  'Hubot Sans Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica,
47
47
  Arial, sans-serif;
48
48
  --basalt-font-mono: 'JetBrains Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;
49
+ /* Hero values, unit/count/delta text, bar-list and meter figures: proportional sans, lining
50
+ figures. Set to `var(--basalt-font-mono)` to restore the pre-Wave-35 mono numerals. */
51
+ --basalt-font-numeral: var(--basalt-font-sans);
49
52
  }
50
53
  }
51
54
 
@@ -153,6 +156,9 @@
153
156
  h6,
154
157
  .mantine-Title-root {
155
158
  font-stretch: var(--basalt-font-head-stretch, 88%);
159
+ /* Hubot Sans draws a slashed zero by default; a heading numeral is a figure, not code. */
160
+ font-feature-settings: 'zero' 0;
161
+ font-variant-numeric: lining-nums;
156
162
  }
157
163
 
158
164
  /* Scrollbars (docs/DESIGN-SPEC.md §5): 9px, ink-mix thumb (stronger on hover), radius 6,
@@ -204,7 +204,7 @@ export declare const SURFACES: {
204
204
  readonly layer: "headless";
205
205
  readonly rule: "tokens";
206
206
  readonly skill: readonly ["basalt-design", "basalt-charts"];
207
- readonly guardKinds: readonly ["raw-hex", "raw-color-fn", "off-identity-accent", "off-system-surface-var", "raw-font-family", "raw-radius", "raw-surface", "inline-font-size", "css-raw-surface", "surface-shadow-override", "unknown-vx-token", "theme-allow-unscoped"];
207
+ readonly guardKinds: readonly ["raw-hex", "raw-color-fn", "off-identity-accent", "off-system-surface-var", "raw-font-family", "raw-radius", "raw-surface", "inline-font-size", "css-raw-surface", "surface-shadow-override", "unknown-vx-token", "series-palette", "theme-allow-unscoped"];
208
208
  readonly pluginRules: readonly ["no-raw-font-size", "raw-size-literal", "token-layer-boundary"];
209
209
  readonly description: "VX token refs, buildPaletteCss, defineSeries, seriesTokens, groupTokens, alpha (Mantine-free)";
210
210
  readonly globs: {
@@ -1 +1 @@
1
- {"version":3,"file":"surfaces.d.ts","sourceRoot":"","sources":["../src/surfaces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAI9C;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,CAAA;AAE3F;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,mBAAmB,mkBA2BtB,CAAA;AAEV,+FAA+F;AAC/F,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE/D;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,eAAe,GAAG,eAAe,CAAA;AAExE;;;;GAIG;AACH,MAAM,MAAM,KAA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
152
152
  "surface-shadow-override",
153
153
  // A `var(--vx-*)` naming a token basalt no longer (or never) emits.
154
154
  "unknown-vx-token",
155
+ // The series file's computed palette checks (lightness, chroma, CVD separation, contrast).
156
+ "series-palette",
155
157
  // Not a token kind — the kind that judges the ANNOTATION rather than the code. It lands here
156
158
  // because `agent/rules/basalt-tokens.md` is where the `theme-allow` grammar is documented
157
159
  // (said once, on purpose), so this is the header that must name its enforcement.
@@ -0,0 +1,76 @@
1
+ /*
2
+ * The theme owns the card inset (Wave 35, ledger rows 163/165). Mantine's own defaults miss the law:
3
+ * a bare `Card` is 16 px all round and a bare `Paper` is 0. Both resolve here to the density-scaled
4
+ * 12/16 tokens, so a consumer writes nothing.
5
+ *
6
+ * `--card-inset-y/x` are the one pair every part reads: the root's padding, a `Card.Section`'s
7
+ * negative margins (Mantine derives them from ONE `--card-padding`, which cannot express 12/16),
8
+ * and `variant="flush"`, which zeroes the pair — a flush card's sections then cancel nothing.
9
+ *
10
+ * Components that render a `Paper` of their own (Modal / Drawer content, Dialog, ActionBar,
11
+ * FloatingWindow) carry their padding on other parts; the `:not()` list keeps this off them. It sits in
12
+ * `:where()` so the rule stays (0,1,0) and a consumer's own class-based padding wins on source order.
13
+ */
14
+ /* `--card-padding` is Mantine's: the class default is neutralised to the guaranteed-invalid value so
15
+ `var()` falls through to the token, while an inline `--card-padding` (what a Card `padding` prop
16
+ writes) is still seen and wins. Doubled class: it must out-rank Mantine's own `--card-padding`. */
17
+ .inset.inset {
18
+ --card-padding: initial;
19
+ }
20
+
21
+ .inset {
22
+ --card-inset-y: var(--card-padding, var(--vx-space-card-inset-y, 12px));
23
+ --card-inset-x: var(--card-padding, var(--vx-space-card-inset-x, 16px));
24
+ }
25
+
26
+ .inset[data-variant='flush'] {
27
+ --card-inset-y: 0px;
28
+ --card-inset-x: 0px;
29
+ padding: 0;
30
+ }
31
+
32
+ .inset:where(
33
+ :not(
34
+ [data-variant='flush'],
35
+ [class*='mantine-Modal-'],
36
+ [class*='mantine-Drawer-'],
37
+ [class*='mantine-Dialog-'],
38
+ [class*='mantine-ActionBar-'],
39
+ [class*='mantine-FloatingWindow-']
40
+ )
41
+ ) {
42
+ padding: var(--card-inset-y) var(--card-inset-x);
43
+ }
44
+
45
+ .section[data-orientation='vertical'] {
46
+ margin-inline: calc(var(--card-inset-x, 16px) * -1);
47
+ }
48
+
49
+ .section[data-orientation='vertical']:first-child {
50
+ margin-top: calc(var(--card-inset-y, 12px) * -1);
51
+ }
52
+
53
+ .section[data-orientation='vertical']:last-child {
54
+ margin-bottom: calc(var(--card-inset-y, 12px) * -1);
55
+ }
56
+
57
+ .section[data-orientation='vertical'][data-inherit-padding] {
58
+ padding-inline: var(--card-inset-x, 16px);
59
+ }
60
+
61
+ .section[data-orientation='horizontal'] {
62
+ margin-block: calc(var(--card-inset-y, 12px) * -1);
63
+ margin-inline: 0;
64
+ }
65
+
66
+ .section[data-orientation='horizontal']:first-child {
67
+ margin-inline-start: calc(var(--card-inset-x, 16px) * -1);
68
+ }
69
+
70
+ .section[data-orientation='horizontal']:last-child {
71
+ margin-inline-end: calc(var(--card-inset-x, 16px) * -1);
72
+ }
73
+
74
+ .section[data-orientation='horizontal'][data-inherit-padding] {
75
+ padding-block: var(--card-inset-y, 12px);
76
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Typed CSS-module declaration (the S4 CSS-modules path). Named string props — not an index
3
+ * signature — so dot access stays verbatim under the package's strict flags.
4
+ */
5
+ declare const classes: {
6
+ readonly inset: string
7
+ readonly section: string
8
+ }
9
+ export default classes
@@ -135,6 +135,16 @@ html[data-mantine-color-scheme] .inputWrapper[data-variant='default']:not([data-
135
135
  transition: box-shadow 120ms ease;
136
136
  }
137
137
 
138
+ /* Section-side inset on the stack scale (`buttonSectionX`, theme/index.ts) — beats Mantine's
139
+ * zero-specificity `:where([data-with-*-section])` `padding-x / 1.5`. */
140
+ .buttonRoot[data-with-left-section] {
141
+ padding-inline-start: var(--button-section-padding-x, calc(var(--button-padding-x) / 1.5));
142
+ }
143
+
144
+ .buttonRoot[data-with-right-section] {
145
+ padding-inline-end: var(--button-section-padding-x, calc(var(--button-padding-x) / 1.5));
146
+ }
147
+
138
148
  .buttonRoot[data-variant='default'],
139
149
  .buttonRoot[data-variant='filled'],
140
150
  .buttonRoot[data-variant='light'] {
@@ -280,6 +290,9 @@ html .accordionItem {
280
290
  */
281
291
  html[data-mantine-color-scheme] .tabsRoot {
282
292
  --tab-border-color: var(--vx-divider);
293
+ /* Mantine's dark hover (dark-6) is the page itself, so a hovered tab read identical to rest. The
294
+ * ink-5% step is NavLink's inactive hover, and resolves per scheme. */
295
+ --tab-hover-color: color-mix(in srgb, var(--vx-ink) 5%, transparent);
283
296
  }
284
297
 
285
298
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EA0CV,oBAAoB,EAGpB,oBAAoB,EAErB,MAAM,eAAe,CAAA;AAStB,OAAO,KAAK,EAAe,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAKpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAUvD;;;;;GAKG;AACH,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAIvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAMvD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AAenE,OAAO,QAAQ,eAAe,CAAC;IAC7B,UAAU,iBAAiB;QACzB,YAAY,CAAC,EAAE,YAAY,CAAA;QAC3B,WAAW,CAAC,EAAE,iBAAiB,CAAA;QAC/B,YAAY,CAAC,EAAE,YAAY,CAAA;QAC3B,aAAa,CAAC,EAAE,WAAW,CAAA;KAC5B;CACF;AAu/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;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAE1B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAYD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,aAAa,CAAC,EACrD,OAAO,CAAC,EAAE,wBAAwB,GACjC,oBAAoB,CAiCtB"}
@@ -18,6 +18,7 @@ import { pxRem, TEXT_LINE, VX } from "../tokens/core.js";
18
18
  import { CTL_HEIGHT_VARS } from "../tokens/ctl-vars.js";
19
19
  import { SIZE_CLASS_BREAKPOINTS } from "../tokens/size-classes.js";
20
20
  import { onColor, onColorFor, inkVars, tabsVars } from "./chrome-vars.js";
21
+ import cardInsetClasses from "./card-inset.module.css";
21
22
  import controlsClasses from "./controls.module.css";
22
23
  import floatingClasses from "./floating.module.css";
23
24
  import navLinkClasses from "./nav-link.module.css";
@@ -229,7 +230,11 @@ function buildTheme(data, options = {}) {
229
230
  // • radius → `--vx-radius-card` (10px).
230
231
  // This is the single source the user's "strict surface across components" demands; the
231
232
  // `raw-surface` guard then stops consumers re-overriding any of it inline.
233
+ // • inset → `card-inset.module.css`: the density-scaled 12/16 tokens, on Paper too (Mantine
234
+ // gives a bare Paper 0 and a bare Card 16); `variant="flush"` zeroes it and `Card.Section`
235
+ // cancels exactly it. A Card `padding` prop still wins (see the CSS).
232
236
  Card: ext({
237
+ classNames: { root: cardInsetClasses.inset, section: cardInsetClasses.section },
233
238
  styles: {
234
239
  root: {
235
240
  backgroundColor: "var(--vx-surface-panel)",
@@ -239,6 +244,7 @@ function buildTheme(data, options = {}) {
239
244
  }
240
245
  }),
241
246
  Paper: ext({
247
+ classNames: { root: cardInsetClasses.inset },
242
248
  styles: {
243
249
  root: {
244
250
  backgroundColor: "var(--vx-surface-panel)",
@@ -420,6 +426,8 @@ function buildTheme(data, options = {}) {
420
426
  return {
421
427
  root: {
422
428
  "--button-height": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0,
429
+ "--button-padding-x": buttonPaddingX(props.size),
430
+ "--button-section-padding-x": buttonSectionX(props.size),
423
431
  "--button-color": ink.color,
424
432
  "--button-hover": ink.hover,
425
433
  "--button-bg": ink.bg,
@@ -894,6 +902,39 @@ function familyBridge(data) {
894
902
  }
895
903
  return vars;
896
904
  }
905
+ const BUTTON_PADDING_X = {
906
+ xs: "var(--vx-space-stack-md)",
907
+ sm: "var(--vx-space-stack-lg)",
908
+ md: "var(--vx-space-stack-lg) + var(--vx-space-stack-xs)",
909
+ lg: "var(--vx-space-stack-xl)",
910
+ xl: "var(--vx-space-stack-xl) + var(--vx-space-stack-sm)",
911
+ "compact-xs": "var(--vx-space-stack-sm)",
912
+ "compact-sm": "var(--vx-space-stack-sm)",
913
+ "compact-md": "var(--vx-space-stack-md)",
914
+ "compact-lg": "var(--vx-space-stack-md)",
915
+ "compact-xl": "var(--vx-space-stack-lg)"
916
+ };
917
+ function buttonPaddingX(size) {
918
+ const steps = BUTTON_PADDING_X[typeof size === "string" ? size : "sm"];
919
+ return steps === void 0 ? void 0 : `calc((${steps}) * var(--mantine-scale))`;
920
+ }
921
+ const BUTTON_SECTION_X = {
922
+ xs: "var(--vx-space-stack-sm)",
923
+ sm: "var(--vx-space-stack-md)",
924
+ md: "var(--vx-space-stack-md)",
925
+ lg: "var(--vx-space-stack-lg)",
926
+ xl: "var(--vx-space-stack-xl)",
927
+ ctl: "var(--vx-space-stack-sm)",
928
+ "compact-xs": "var(--vx-space-stack-xs)",
929
+ "compact-sm": "var(--vx-space-stack-xs)",
930
+ "compact-md": "var(--vx-space-stack-sm)",
931
+ "compact-lg": "var(--vx-space-stack-sm)",
932
+ "compact-xl": "var(--vx-space-stack-md)"
933
+ };
934
+ function buttonSectionX(size) {
935
+ const step = BUTTON_SECTION_X[typeof size === "string" ? size : "sm"];
936
+ return step === void 0 ? void 0 : `calc(${step} * var(--mantine-scale))`;
937
+ }
897
938
  const CTL_PADDING_X = 10;
898
939
  const CTL_INPUT_PADDING_Y = 4;
899
940
  const CTL_SEGMENT_PADDING_Y = 2.5;
@@ -1,9 +1,8 @@
1
1
  /*
2
- * Active nav row = an ACCENT-tinted fill plus heavier weight, so the row reads unambiguously as
3
- * SELECTED rather than merely hovered (docs/DESIGN-SPEC.md §5). The fill was previously the ink
4
- * tint `--nl-bg` carries (theme/index.ts) at 9% — visually indistinguishable from the 6% ink hover
5
- * tint on a dark surface, which is what let a hovered row read as a second active item. NO depth:
6
- * an active row is a SELECTED ROW, not a raised control.
2
+ * Active nav row = a NEUTRAL ink fill (10%, twice the 5% inactive hover) plus heavier weight, so the
3
+ * row reads as SELECTED rather than merely hovered (docs/DESIGN-SPEC.md §5). Never the accent
4
+ * (DESIGN-CORE § Accent discipline, SPEC § 6.12): the accent stays on the focus ring, the filled
5
+ * primary and the active ICON below. NO depth: an active row is a SELECTED ROW, not a raised control.
7
6
  *
8
7
  * `[data-active]` is the ONLY style hook here — `use-nav.ts` already resolves exactly one winner
9
8
  * per route and stamps `data-active` on it, so keying these selectors on `aria-current="page"` too
@@ -17,7 +16,7 @@
17
16
  * there throws a React warning), so the state selectors live here.
18
17
  */
19
18
  .root[data-active] {
20
- background-color: color-mix(in srgb, var(--vx-accent) 12%, transparent);
19
+ background-color: color-mix(in srgb, var(--vx-ink) 10%, transparent);
21
20
  font-weight: 600;
22
21
  }
23
22
 
@@ -32,7 +31,7 @@
32
31
  * still reads as feedback rather than as a flat, unresponsive selection. */
33
32
  @media (hover: hover) {
34
33
  .root[data-active]:hover {
35
- background-color: color-mix(in srgb, var(--vx-accent) 16%, transparent);
34
+ background-color: color-mix(in srgb, var(--vx-ink) 14%, transparent);
36
35
  }
37
36
  }
38
37
 
@@ -61,10 +60,9 @@
61
60
 
62
61
  /*
63
62
  * Inactive hover — the ink-5% ghost tint + ink text/icon (docs/DESIGN-SPEC.md §5; dropped from 6%
64
- * so it reads clearly below the active row's 12% accent fill instead of nearly matching its old 9%
65
- * ink fill). Lives here (not only in the shell module) so a consumer's `SidebarItem.Anchor` path
63
+ * so it reads clearly below the active row's 10% ink fill). Lives here (not only in the shell module) so a consumer's `SidebarItem.Anchor` path
66
64
  * gets the same hover; Mantine's own hover fill uses `:where(scheme) .m_*:hover` (gray-0/dark-6),
67
- * which this outranks on specificity. Active rows keep their accent fill above, untouched here.
65
+ * which this outranks on specificity. Active rows keep their ink fill above, untouched here.
68
66
  */
69
67
  @media (hover: hover) {
70
68
  .root:not([data-active]):hover {
@@ -1,6 +1,7 @@
1
- export type StatusDotProps = {
1
+ import type { BasaltProps } from '../common/props.js';
2
+ export type StatusDotProps = BasaltProps & {
2
3
  /** Any CSS colour; callers pass a `VX.status.*` token so it re-resolves per scheme. */
3
4
  color: string;
4
5
  };
5
- export declare function StatusDot({ color }: StatusDotProps): import("react").JSX.Element;
6
+ export declare function StatusDot({ color, className, style }: StatusDotProps): import("react").JSX.Element;
6
7
  //# sourceMappingURL=status-dot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"status-dot.d.ts","sourceRoot":"","sources":["../../src/theme/status-dot.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,cAAc,GAAG;IAC3B,uFAAuF;IACvF,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAID,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,+BAGlD"}
1
+ {"version":3,"file":"status-dot.d.ts","sourceRoot":"","sources":["../../src/theme/status-dot.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAGlD,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC,uFAAuF;IACvF,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAID,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,cAAc,+BAUpE"}