basalt-ui 2.18.0 → 2.20.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 (183) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/MIGRATING.md +238 -12
  3. package/agent/agents/basalt-design-reviewer.md +2 -2
  4. package/agent/rules/basalt-charts.md +1 -1
  5. package/agent/rules/basalt-mantine.md +1 -1
  6. package/agent/skills/basalt-app/SKILL.md +1 -1
  7. package/agent/skills/basalt-design/SKILL.md +1 -1
  8. package/agent/templates/DESIGN.md.tpl +1 -1
  9. package/configs/oxlint-plugin.js +33 -19
  10. package/configs/oxlint-plugin.test.ts +32 -2
  11. package/dist/charts/ChartCard.d.ts +28 -3
  12. package/dist/charts/ChartCard.d.ts.map +1 -1
  13. package/dist/charts/ChartCard.js +33 -11
  14. package/dist/charts/Donut.d.ts.map +1 -1
  15. package/dist/charts/Donut.js +13 -1
  16. package/dist/charts/Heatmap.js +1 -1
  17. package/dist/charts/Sparkline.d.ts +7 -1
  18. package/dist/charts/Sparkline.d.ts.map +1 -1
  19. package/dist/charts/Sparkline.js +137 -18
  20. package/dist/charts/box.d.ts +2 -0
  21. package/dist/charts/box.d.ts.map +1 -1
  22. package/dist/charts/box.js +2 -0
  23. package/dist/charts/chart-box.module.css +30 -0
  24. package/dist/charts/chart-box.module.css.d.ts +1 -0
  25. package/dist/charts/chart-card.module.css +47 -0
  26. package/dist/charts/chart-card.module.css.d.ts +7 -0
  27. package/dist/charts/compile.d.ts.map +1 -1
  28. package/dist/charts/compile.js +35 -8
  29. package/dist/charts/host.d.ts.map +1 -1
  30. package/dist/charts/host.js +2 -1
  31. package/dist/charts/index.d.ts +1 -1
  32. package/dist/charts/index.d.ts.map +1 -1
  33. package/dist/charts/sparkline.module.css +59 -0
  34. package/dist/charts/sparkline.module.css.d.ts +13 -0
  35. package/dist/charts/state.d.ts.map +1 -1
  36. package/dist/charts/state.js +32 -4
  37. package/dist/charts/types.d.ts +6 -0
  38. package/dist/charts/types.d.ts.map +1 -1
  39. package/dist/commands/notifications/center.d.ts.map +1 -1
  40. package/dist/commands/notifications/center.js +18 -26
  41. package/dist/content/callout.d.ts +1 -1
  42. package/dist/content/callout.d.ts.map +1 -1
  43. package/dist/content/callout.js +10 -1
  44. package/dist/content/callout.module.css +15 -3
  45. package/dist/content/callout.module.css.d.ts +1 -0
  46. package/dist/controls/sync-button.d.ts +3 -0
  47. package/dist/controls/sync-button.d.ts.map +1 -1
  48. package/dist/dashboard/bar-list.d.ts +15 -4
  49. package/dist/dashboard/bar-list.d.ts.map +1 -1
  50. package/dist/dashboard/bar-list.js +56 -19
  51. package/dist/dashboard/bar-list.module.css +110 -17
  52. package/dist/dashboard/bar-list.module.css.d.ts +2 -0
  53. package/dist/dashboard/delta-badge.d.ts +8 -3
  54. package/dist/dashboard/delta-badge.d.ts.map +1 -1
  55. package/dist/dashboard/delta-badge.js +9 -2
  56. package/dist/dashboard/index.d.ts +2 -0
  57. package/dist/dashboard/index.d.ts.map +1 -1
  58. package/dist/dashboard/meter-model.d.ts +68 -1
  59. package/dist/dashboard/meter-model.d.ts.map +1 -1
  60. package/dist/dashboard/meter-model.js +65 -4
  61. package/dist/dashboard/meter-parts.d.ts +5 -1
  62. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  63. package/dist/dashboard/meter-parts.js +234 -60
  64. package/dist/dashboard/meter.d.ts +38 -6
  65. package/dist/dashboard/meter.d.ts.map +1 -1
  66. package/dist/dashboard/meter.js +4 -1
  67. package/dist/dashboard/meter.module.css +209 -13
  68. package/dist/dashboard/meter.module.css.d.ts +16 -0
  69. package/dist/dashboard/query-state.d.ts.map +1 -1
  70. package/dist/dashboard/query-state.js +14 -9
  71. package/dist/dashboard/settings-section.d.ts.map +1 -1
  72. package/dist/dashboard/settings-section.js +14 -25
  73. package/dist/dashboard/stat-card-parts.d.ts +3 -1
  74. package/dist/dashboard/stat-card-parts.d.ts.map +1 -1
  75. package/dist/dashboard/stat-card-parts.js +18 -3
  76. package/dist/dashboard/stat-card.d.ts +7 -6
  77. package/dist/dashboard/stat-card.d.ts.map +1 -1
  78. package/dist/dashboard/stat-card.js +51 -83
  79. package/dist/dashboard/stat-card.module.css +42 -14
  80. package/dist/dashboard/stat-group.d.ts +11 -2
  81. package/dist/dashboard/stat-group.d.ts.map +1 -1
  82. package/dist/dashboard/stat-group.js +9 -7
  83. package/dist/dashboard/stat-strip.d.ts +50 -0
  84. package/dist/dashboard/stat-strip.d.ts.map +1 -0
  85. package/dist/dashboard/stat-strip.js +85 -0
  86. package/dist/dashboard/stat-strip.module.css +208 -0
  87. package/dist/dashboard/stat-strip.module.css.d.ts +28 -0
  88. package/dist/dashboard/widget-header.d.ts +3 -3
  89. package/dist/dashboard/widget-header.d.ts.map +1 -1
  90. package/dist/dashboard/widget-header.js +2 -1
  91. package/dist/dashboard/widget-header.module.css +38 -7
  92. package/dist/format/date.d.ts.map +1 -1
  93. package/dist/format/date.js +4 -3
  94. package/dist/format/shared.d.ts +6 -0
  95. package/dist/format/shared.d.ts.map +1 -1
  96. package/dist/format/shared.js +6 -2
  97. package/dist/guard/index.d.ts +1 -1
  98. package/dist/guard/index.js +1 -1
  99. package/dist/index.d.ts +3 -1
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +4 -0
  102. package/dist/styles.css +6 -0
  103. package/dist/theme/card-inset.module.css +76 -0
  104. package/dist/theme/card-inset.module.css.d.ts +9 -0
  105. package/dist/theme/chrome-vars.d.ts +29 -17
  106. package/dist/theme/chrome-vars.d.ts.map +1 -1
  107. package/dist/theme/chrome-vars.js +18 -8
  108. package/dist/theme/controls.module.css +3 -0
  109. package/dist/theme/index.d.ts.map +1 -1
  110. package/dist/theme/index.js +32 -5
  111. package/dist/theme/nav-link.module.css +8 -10
  112. package/dist/theme/status-dot.d.ts +7 -0
  113. package/dist/theme/status-dot.d.ts.map +1 -0
  114. package/dist/theme/status-dot.js +18 -0
  115. package/dist/theme/status-dot.module.css +9 -0
  116. package/dist/theme/status-dot.module.css.d.ts +8 -0
  117. package/dist/theme/status-verdict.d.ts +10 -0
  118. package/dist/theme/status-verdict.d.ts.map +1 -0
  119. package/dist/theme/status-verdict.js +14 -0
  120. package/dist/theme/status-verdict.module.css +25 -0
  121. package/dist/theme/status-verdict.module.css.d.ts +9 -0
  122. package/llms.txt +30 -6
  123. package/package.json +1 -1
  124. package/src/charts/ChartCard.tsx +70 -4
  125. package/src/charts/Donut.tsx +9 -1
  126. package/src/charts/Heatmap.tsx +1 -1
  127. package/src/charts/Sparkline.tsx +180 -18
  128. package/src/charts/box.tsx +2 -0
  129. package/src/charts/chart-box.module.css +30 -0
  130. package/src/charts/chart-box.module.css.d.ts +1 -0
  131. package/src/charts/chart-card.module.css +47 -0
  132. package/src/charts/chart-card.module.css.d.ts +7 -0
  133. package/src/charts/compile.ts +42 -9
  134. package/src/charts/host.tsx +6 -3
  135. package/src/charts/index.ts +1 -1
  136. package/src/charts/sparkline.module.css +59 -0
  137. package/src/charts/sparkline.module.css.d.ts +13 -0
  138. package/src/charts/state.tsx +44 -4
  139. package/src/charts/types.ts +6 -0
  140. package/src/commands/notifications/center.tsx +29 -32
  141. package/src/content/callout.module.css +15 -3
  142. package/src/content/callout.module.css.d.ts +1 -0
  143. package/src/content/callout.tsx +15 -2
  144. package/src/controls/sync-button.tsx +3 -0
  145. package/src/dashboard/bar-list.module.css +110 -17
  146. package/src/dashboard/bar-list.module.css.d.ts +2 -0
  147. package/src/dashboard/bar-list.tsx +102 -21
  148. package/src/dashboard/delta-badge.tsx +21 -5
  149. package/src/dashboard/index.ts +2 -0
  150. package/src/dashboard/meter-model.ts +132 -4
  151. package/src/dashboard/meter-parts.tsx +305 -25
  152. package/src/dashboard/meter.module.css +209 -13
  153. package/src/dashboard/meter.module.css.d.ts +16 -0
  154. package/src/dashboard/meter.tsx +42 -7
  155. package/src/dashboard/query-state.tsx +28 -19
  156. package/src/dashboard/settings-section.tsx +1 -8
  157. package/src/dashboard/stat-card-parts.tsx +22 -2
  158. package/src/dashboard/stat-card.module.css +42 -14
  159. package/src/dashboard/stat-card.tsx +23 -60
  160. package/src/dashboard/stat-group.tsx +19 -8
  161. package/src/dashboard/stat-strip.module.css +208 -0
  162. package/src/dashboard/stat-strip.module.css.d.ts +28 -0
  163. package/src/dashboard/stat-strip.tsx +183 -0
  164. package/src/dashboard/widget-header.module.css +38 -7
  165. package/src/dashboard/widget-header.tsx +7 -4
  166. package/src/format/date.ts +6 -3
  167. package/src/format/shared.ts +11 -2
  168. package/src/guard/index.ts +1 -1
  169. package/src/index.ts +7 -0
  170. package/src/styles.css +6 -0
  171. package/src/theme/__snapshots__/plain-theme.test.ts.snap +242 -26
  172. package/src/theme/card-inset.module.css +76 -0
  173. package/src/theme/card-inset.module.css.d.ts +9 -0
  174. package/src/theme/chrome-vars.ts +48 -23
  175. package/src/theme/controls.module.css +3 -0
  176. package/src/theme/index.ts +40 -6
  177. package/src/theme/nav-link.module.css +8 -10
  178. package/src/theme/status-dot.module.css +9 -0
  179. package/src/theme/status-dot.module.css.d.ts +8 -0
  180. package/src/theme/status-dot.tsx +31 -0
  181. package/src/theme/status-verdict.module.css +25 -0
  182. package/src/theme/status-verdict.module.css.d.ts +9 -0
  183. package/src/theme/status-verdict.tsx +32 -0
@@ -194,29 +194,47 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
194
194
  "vars": {
195
195
  "fn":
196
196
  "(_theme, props) => {
197
- const ink = subtleInkVars(props);
197
+ const ink = inkVars(props);
198
198
  return {
199
199
  root: {
200
200
  "--ai-size": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0,
201
201
  "--ai-color": ink.color,
202
- "--ai-hover": ink.hover
202
+ "--ai-hover": ink.hover,
203
+ "--ai-bg": ink.bg,
204
+ "--ai-bd": ink.border
203
205
  }
204
206
  };
205
207
  }"
206
208
  ,
207
209
  "outputs": [
208
210
  {
209
- "probes": 1976,
211
+ "probes": 1892,
210
212
  "result": "{"root":{}}",
211
213
  },
214
+ {
215
+ "probes": 42,
216
+ "result": "{"root":{"--ai-color":"var(--vx-ink)","--ai-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--ai-bg":"var(--vx-surface-subtle)"}}",
217
+ },
218
+ {
219
+ "probes": 42,
220
+ "result": "{"root":{"--ai-color":"var(--vx-ink)","--ai-hover":"var(--vx-surface-subtle)","--ai-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
221
+ },
212
222
  {
213
223
  "probes": 42,
214
224
  "result": "{"root":{"--ai-color":"var(--vx-ink)","--ai-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
215
225
  },
216
226
  {
217
- "probes": 284,
227
+ "probes": 272,
218
228
  "result": "{"root":{"--ai-size":"calc(var(--vx-space-control-height) * var(--mantine-scale))"}}",
219
229
  },
230
+ {
231
+ "probes": 6,
232
+ "result": "{"root":{"--ai-size":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--ai-color":"var(--vx-ink)","--ai-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--ai-bg":"var(--vx-surface-subtle)"}}",
233
+ },
234
+ {
235
+ "probes": 6,
236
+ "result": "{"root":{"--ai-size":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--ai-color":"var(--vx-ink)","--ai-hover":"var(--vx-surface-subtle)","--ai-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
237
+ },
220
238
  {
221
239
  "probes": 6,
222
240
  "result": "{"root":{"--ai-size":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--ai-color":"var(--vx-ink)","--ai-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
@@ -271,37 +289,124 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
271
289
  "vars": {
272
290
  "fn":
273
291
  "(_theme, props) => {
274
- const ink = subtleInkVars(props);
292
+ const ink = inkVars(props);
275
293
  return {
276
294
  root: {
277
295
  "--button-height": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0,
296
+ "--button-padding-x": buttonPaddingX(props.size),
278
297
  "--button-color": ink.color,
279
- "--button-hover": ink.hover
298
+ "--button-hover": ink.hover,
299
+ "--button-bg": ink.bg,
300
+ "--button-bd": ink.border
280
301
  }
281
302
  };
282
303
  }"
283
304
  ,
284
305
  "outputs": [
285
306
  {
286
- "probes": 1976,
287
- "result": "{"root":{}}",
307
+ "probes": 542,
308
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))"}}",
288
309
  },
289
310
  {
290
- "probes": 42,
291
- "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
311
+ "probes": 12,
312
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
313
+ },
314
+ {
315
+ "probes": 12,
316
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
317
+ },
318
+ {
319
+ "probes": 12,
320
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
292
321
  },
293
322
  {
294
- "probes": 284,
295
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))"}}",
323
+ "probes": 270,
324
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))"}}",
296
325
  },
297
326
  {
298
327
  "probes": 6,
299
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
328
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
329
+ },
330
+ {
331
+ "probes": 6,
332
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
333
+ },
334
+ {
335
+ "probes": 6,
336
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
337
+ },
338
+ {
339
+ "probes": 272,
340
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))"}}",
341
+ },
342
+ {
343
+ "probes": 6,
344
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
345
+ },
346
+ {
347
+ "probes": 6,
348
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
349
+ },
350
+ {
351
+ "probes": 6,
352
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
353
+ },
354
+ {
355
+ "probes": 270,
356
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))"}}",
357
+ },
358
+ {
359
+ "probes": 6,
360
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
361
+ },
362
+ {
363
+ "probes": 6,
364
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
365
+ },
366
+ {
367
+ "probes": 6,
368
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
369
+ },
370
+ {
371
+ "probes": 270,
372
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))"}}",
373
+ },
374
+ {
375
+ "probes": 6,
376
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
377
+ },
378
+ {
379
+ "probes": 6,
380
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
381
+ },
382
+ {
383
+ "probes": 6,
384
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
385
+ },
386
+ {
387
+ "probes": 540,
388
+ "result": "{"root":{}}",
389
+ },
390
+ {
391
+ "probes": 12,
392
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
393
+ },
394
+ {
395
+ "probes": 12,
396
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
397
+ },
398
+ {
399
+ "probes": 12,
400
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
300
401
  },
301
402
  ],
302
403
  },
303
404
  },
304
405
  "Card": {
406
+ "classNames": {
407
+ "root": undefined,
408
+ "section": undefined,
409
+ },
305
410
  "styles": {
306
411
  "root": {
307
412
  "backgroundColor": "var(--vx-surface-panel)",
@@ -612,6 +717,9 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
612
717
  },
613
718
  },
614
719
  "Paper": {
720
+ "classNames": {
721
+ "root": undefined,
722
+ },
615
723
  "styles": {
616
724
  "root": {
617
725
  "backgroundColor": "var(--vx-surface-panel)",
@@ -1336,29 +1444,47 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1336
1444
  "vars": {
1337
1445
  "fn":
1338
1446
  "(_theme, props) => {
1339
- const ink = subtleInkVars(props);
1447
+ const ink = inkVars(props);
1340
1448
  return {
1341
1449
  root: {
1342
1450
  "--ai-size": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0,
1343
1451
  "--ai-color": ink.color,
1344
- "--ai-hover": ink.hover
1452
+ "--ai-hover": ink.hover,
1453
+ "--ai-bg": ink.bg,
1454
+ "--ai-bd": ink.border
1345
1455
  }
1346
1456
  };
1347
1457
  }"
1348
1458
  ,
1349
1459
  "outputs": [
1350
1460
  {
1351
- "probes": 1976,
1461
+ "probes": 1892,
1352
1462
  "result": "{"root":{}}",
1353
1463
  },
1464
+ {
1465
+ "probes": 42,
1466
+ "result": "{"root":{"--ai-color":"var(--vx-ink)","--ai-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--ai-bg":"var(--vx-surface-subtle)"}}",
1467
+ },
1468
+ {
1469
+ "probes": 42,
1470
+ "result": "{"root":{"--ai-color":"var(--vx-ink)","--ai-hover":"var(--vx-surface-subtle)","--ai-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1471
+ },
1354
1472
  {
1355
1473
  "probes": 42,
1356
1474
  "result": "{"root":{"--ai-color":"var(--vx-ink)","--ai-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1357
1475
  },
1358
1476
  {
1359
- "probes": 284,
1477
+ "probes": 272,
1360
1478
  "result": "{"root":{"--ai-size":"calc(var(--vx-space-control-height) * var(--mantine-scale))"}}",
1361
1479
  },
1480
+ {
1481
+ "probes": 6,
1482
+ "result": "{"root":{"--ai-size":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--ai-color":"var(--vx-ink)","--ai-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--ai-bg":"var(--vx-surface-subtle)"}}",
1483
+ },
1484
+ {
1485
+ "probes": 6,
1486
+ "result": "{"root":{"--ai-size":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--ai-color":"var(--vx-ink)","--ai-hover":"var(--vx-surface-subtle)","--ai-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1487
+ },
1362
1488
  {
1363
1489
  "probes": 6,
1364
1490
  "result": "{"root":{"--ai-size":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--ai-color":"var(--vx-ink)","--ai-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
@@ -1413,37 +1539,124 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1413
1539
  "vars": {
1414
1540
  "fn":
1415
1541
  "(_theme, props) => {
1416
- const ink = subtleInkVars(props);
1542
+ const ink = inkVars(props);
1417
1543
  return {
1418
1544
  root: {
1419
1545
  "--button-height": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0,
1546
+ "--button-padding-x": buttonPaddingX(props.size),
1420
1547
  "--button-color": ink.color,
1421
- "--button-hover": ink.hover
1548
+ "--button-hover": ink.hover,
1549
+ "--button-bg": ink.bg,
1550
+ "--button-bd": ink.border
1422
1551
  }
1423
1552
  };
1424
1553
  }"
1425
1554
  ,
1426
1555
  "outputs": [
1427
1556
  {
1428
- "probes": 1976,
1429
- "result": "{"root":{}}",
1557
+ "probes": 542,
1558
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))"}}",
1430
1559
  },
1431
1560
  {
1432
- "probes": 42,
1433
- "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1561
+ "probes": 12,
1562
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1563
+ },
1564
+ {
1565
+ "probes": 12,
1566
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1567
+ },
1568
+ {
1569
+ "probes": 12,
1570
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-lg)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1434
1571
  },
1435
1572
  {
1436
- "probes": 284,
1437
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))"}}",
1573
+ "probes": 270,
1574
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))"}}",
1438
1575
  },
1439
1576
  {
1440
1577
  "probes": 6,
1441
- "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1578
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1579
+ },
1580
+ {
1581
+ "probes": 6,
1582
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1583
+ },
1584
+ {
1585
+ "probes": 6,
1586
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-md)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1587
+ },
1588
+ {
1589
+ "probes": 272,
1590
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))"}}",
1591
+ },
1592
+ {
1593
+ "probes": 6,
1594
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1595
+ },
1596
+ {
1597
+ "probes": 6,
1598
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1599
+ },
1600
+ {
1601
+ "probes": 6,
1602
+ "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))","--button-padding-x":"calc((var(--vx-space-stack-lg) + var(--vx-space-stack-xs)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1603
+ },
1604
+ {
1605
+ "probes": 270,
1606
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))"}}",
1607
+ },
1608
+ {
1609
+ "probes": 6,
1610
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1611
+ },
1612
+ {
1613
+ "probes": 6,
1614
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1615
+ },
1616
+ {
1617
+ "probes": 6,
1618
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1619
+ },
1620
+ {
1621
+ "probes": 270,
1622
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))"}}",
1623
+ },
1624
+ {
1625
+ "probes": 6,
1626
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1627
+ },
1628
+ {
1629
+ "probes": 6,
1630
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1631
+ },
1632
+ {
1633
+ "probes": 6,
1634
+ "result": "{"root":{"--button-padding-x":"calc((var(--vx-space-stack-xl) + var(--vx-space-stack-sm)) * var(--mantine-scale))","--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1635
+ },
1636
+ {
1637
+ "probes": 540,
1638
+ "result": "{"root":{}}",
1639
+ },
1640
+ {
1641
+ "probes": 12,
1642
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, var(--vx-surface-subtle))","--button-bg":"var(--vx-surface-subtle)"}}",
1643
+ },
1644
+ {
1645
+ "probes": 12,
1646
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"var(--vx-surface-subtle)","--button-bd":"calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)"}}",
1647
+ },
1648
+ {
1649
+ "probes": 12,
1650
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1442
1651
  },
1443
1652
  ],
1444
1653
  },
1445
1654
  },
1446
1655
  "Card": {
1656
+ "classNames": {
1657
+ "root": undefined,
1658
+ "section": undefined,
1659
+ },
1447
1660
  "styles": {
1448
1661
  "root": {
1449
1662
  "backgroundColor": "var(--vx-surface-panel)",
@@ -1754,6 +1967,9 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1754
1967
  },
1755
1968
  },
1756
1969
  "Paper": {
1970
+ "classNames": {
1971
+ "root": undefined,
1972
+ },
1757
1973
  "styles": {
1758
1974
  "root": {
1759
1975
  "backgroundColor": "var(--vx-surface-panel)",
@@ -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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Component `vars` that carry the Wave 33 chrome (`docs/waves/design-parity/SPEC.md` § 6.12) and the
2
+ * Component `vars` that carry the Wave 33 chrome (`MIGRATING.md` § Light and outline Buttons are ink, D27) and the
3
3
  * ON-COLOR re-point they sit beside. Pure functions of theme + props, kept out of `theme/index.ts`
4
4
  * so the tests can call them directly.
5
5
  */
@@ -40,7 +40,7 @@ import type { MantineTheme } from '@mantine/core'
40
40
  * Stepper / Indicator / Timeline all call Mantine's `getContrastColor` directly) are re-pointed at
41
41
  * it too, in `components` below. Regression-locked by `contrast.test.ts`.
42
42
  */
43
- export function onColor(theme: MantineTheme, color: string | undefined): string | undefined {
43
+ export function onColor(theme: MantineTheme, color: string | null | undefined): string | undefined {
44
44
  const name = color ?? theme.primaryColor
45
45
  if (!Object.prototype.hasOwnProperty.call(theme.colors, name)) return undefined // hex / `blue.5`
46
46
  return `var(--vx-on-${name})`
@@ -53,36 +53,61 @@ export function onColor(theme: MantineTheme, color: string | undefined): string
53
53
  */
54
54
  export function onColorFor(
55
55
  theme: MantineTheme,
56
- props: { color?: string | undefined; autoContrast?: boolean | undefined },
56
+ props: { color?: string | null | undefined; autoContrast?: boolean | undefined },
57
57
  ): string | undefined {
58
58
  const autoContrast = props.autoContrast ?? theme.autoContrast
59
59
  return autoContrast ? onColor(theme, props.color) : undefined
60
60
  }
61
61
 
62
- /** The chrome opt-out: a call site that names a colour (even the primary one) keeps its hue. */
63
- export function hasExplicitColor(color: string | undefined): boolean {
64
- return color !== undefined
62
+ /**
63
+ * The chrome opt-out: a call site that names a colour (even the primary one) keeps its hue. An
64
+ * empty string and `null` name nothing — Mantine reads `color || primaryColor`, so they fall back to
65
+ * the primary colour too.
66
+ */
67
+ export function hasExplicitColor(color: string | null | undefined): boolean {
68
+ return typeof color === 'string' && color !== ''
69
+ }
70
+
71
+ type InkVars = {
72
+ color?: string
73
+ hover?: string
74
+ bg?: string
75
+ border?: string
76
+ }
77
+
78
+ const INK = 'var(--vx-ink)'
79
+ const SUBTLE = 'var(--vx-surface-subtle)'
80
+
81
+ /** Per variant: what an unnamed-colour Button / ActionIcon paints instead of the accent. */
82
+ const INK_BY_VARIANT: Partial<Record<'subtle' | 'light' | 'outline', InkVars>> = {
83
+ subtle: { color: INK, hover: 'color-mix(in srgb, var(--vx-ink) 6%, transparent)' },
84
+ light: { color: INK, bg: SUBTLE, hover: `color-mix(in srgb, var(--vx-ink) 6%, ${SUBTLE})` },
85
+ outline: {
86
+ color: INK,
87
+ border: 'calc(0.0625rem * var(--mantine-scale)) solid var(--vx-surface-border)',
88
+ hover: SUBTLE,
89
+ },
65
90
  }
66
91
 
67
92
  /**
68
- * A `subtle` Button / ActionIcon that names no colour takes neutral ink for its label and an
69
- * ink-6% hover (`docs/DESIGN-SPEC.md` §5 ghost idiom). An explicit `color=` — the primary one
70
- * included — keeps Mantine's tinted label and hover: `color="red"` on a destructive text action
71
- * carries its hue as the whole signal. Mantine hands the variant resolver `color || primaryColor`,
72
- * so only the component props can tell "unnamed" from "primary" — hence vars, not the resolver.
93
+ * A `subtle`, `light` or `outline` Button / ActionIcon that names no colour is ink, not the accent
94
+ * (`MIGRATING.md` § Light and outline Buttons are ink, D27). `subtle`: ink label, ink-6% hover
95
+ * (`docs/DESIGN-SPEC.md` §5 ghost idiom). `light`: the subtle surface with an ink label, hover one
96
+ * ink step on top (Mantine's gray-light roles collapse bg and hover to one colour in light). `outline`:
97
+ * the surface border, ink label, subtle-surface hover. An explicit `color=` — the primary one
98
+ * included — keeps Mantine's tinted vars: `color="red"` on a destructive action carries its hue as
99
+ * the whole signal. Mantine hands the variant resolver `color || primaryColor`, so only the
100
+ * component props can tell "unnamed" from "primary" — hence vars, not the resolver. Disabled needs no
101
+ * gate: Mantine's disabled rule sets colour, background and border directly, not through these vars.
73
102
  */
74
- export function subtleInkVars(props: {
75
- color?: string | undefined
103
+ export function inkVars(props: {
104
+ color?: string | null | undefined
76
105
  variant?: string | undefined
77
- }): {
78
- color: string | undefined
79
- hover: string | undefined
80
- } {
81
- const ink = props.variant === 'subtle' && !hasExplicitColor(props.color)
82
- return {
83
- color: ink ? 'var(--vx-ink)' : undefined,
84
- hover: ink ? 'color-mix(in srgb, var(--vx-ink) 6%, transparent)' : undefined,
85
- }
106
+ }): InkVars {
107
+ const { variant } = props
108
+ if (hasExplicitColor(props.color) || variant === undefined) return {}
109
+ if (!Object.hasOwn(INK_BY_VARIANT, variant)) return {}
110
+ return INK_BY_VARIANT[variant as keyof typeof INK_BY_VARIANT] ?? {}
86
111
  }
87
112
 
88
113
  /**
@@ -95,7 +120,7 @@ export function subtleInkVars(props: {
95
120
  export function tabsVars(
96
121
  theme: MantineTheme,
97
122
  props: {
98
- color?: string | undefined
123
+ color?: string | null | undefined
99
124
  variant?: string | undefined
100
125
  autoContrast?: boolean | undefined
101
126
  },
@@ -280,6 +280,9 @@ html .accordionItem {
280
280
  */
281
281
  html[data-mantine-color-scheme] .tabsRoot {
282
282
  --tab-border-color: var(--vx-divider);
283
+ /* Mantine's dark hover (dark-6) is the page itself, so a hovered tab read identical to rest. The
284
+ * ink-5% step is NavLink's inactive hover, and resolves per scheme. */
285
+ --tab-hover-color: color-mix(in srgb, var(--vx-ink) 5%, transparent);
283
286
  }
284
287
 
285
288
  /*