basalt-ui 2.15.0 → 2.17.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 (152) hide show
  1. package/CHANGELOG.md +157 -105
  2. package/MIGRATING.md +160 -12
  3. package/agent/agents/basalt-design-reviewer.md +3 -3
  4. package/agent/rules/basalt-mantine.md +1 -1
  5. package/agent/skills/basalt-design/SKILL.md +2 -2
  6. package/configs/card-inset.test.ts +57 -0
  7. package/configs/oxlint-basalt.json +1 -1
  8. package/configs/oxlint-plugin.js +42 -18
  9. package/configs/oxlint-plugin.test.ts +37 -6
  10. package/dist/agent/chat/thread-message.js +1 -1
  11. package/dist/agent/chat/thread-outcome-card.js +1 -1
  12. package/dist/charts/ChartCard.js +1 -1
  13. package/dist/charts/Donut.d.ts.map +1 -1
  14. package/dist/charts/Donut.js +2 -2
  15. package/dist/charts/DualPanel.js +2 -2
  16. package/dist/charts/Heatmap.d.ts.map +1 -1
  17. package/dist/charts/Heatmap.js +2 -2
  18. package/dist/charts/MirroredBars.js +2 -2
  19. package/dist/charts/Sparkline.d.ts +4 -2
  20. package/dist/charts/Sparkline.d.ts.map +1 -1
  21. package/dist/charts/Sparkline.js +3 -3
  22. package/dist/charts/chart-card.module.css +2 -2
  23. package/dist/charts/compile.d.ts +8 -3
  24. package/dist/charts/compile.d.ts.map +1 -1
  25. package/dist/charts/compile.js +19 -9
  26. package/dist/charts/cursor.d.ts +14 -1
  27. package/dist/charts/cursor.d.ts.map +1 -1
  28. package/dist/charts/cursor.js +29 -3
  29. package/dist/charts/date-tick-format.d.ts +17 -0
  30. package/dist/charts/date-tick-format.d.ts.map +1 -0
  31. package/dist/charts/date-tick-format.js +81 -0
  32. package/dist/charts/panel.d.ts +2 -1
  33. package/dist/charts/panel.d.ts.map +1 -1
  34. package/dist/charts/panel.js +3 -2
  35. package/dist/charts/types.d.ts +5 -1
  36. package/dist/charts/types.d.ts.map +1 -1
  37. package/dist/cli/shot/board.js +1 -1
  38. package/dist/cli/shot/capture.d.ts +16 -0
  39. package/dist/cli/shot/capture.d.ts.map +1 -1
  40. package/dist/cli/shot/capture.js +24 -3
  41. package/dist/cli/shot/measure.d.ts +21 -2
  42. package/dist/cli/shot/measure.d.ts.map +1 -1
  43. package/dist/cli/shot/measure.js +20 -5
  44. package/dist/cli/shot/playwright.d.ts +4 -0
  45. package/dist/cli/shot/playwright.d.ts.map +1 -1
  46. package/dist/cli/shot/types.d.ts +3 -2
  47. package/dist/cli/shot/types.d.ts.map +1 -1
  48. package/dist/dashboard/delta-badge.d.ts +2 -2
  49. package/dist/dashboard/delta-badge.d.ts.map +1 -1
  50. package/dist/dashboard/delta-badge.js +12 -14
  51. package/dist/dashboard/query-state.d.ts +35 -0
  52. package/dist/dashboard/query-state.d.ts.map +1 -1
  53. package/dist/dashboard/query-state.js +12 -1
  54. package/dist/dashboard/settings-section.d.ts.map +1 -1
  55. package/dist/dashboard/settings-section.js +5 -2
  56. package/dist/dashboard/stat-card-parts.d.ts +40 -0
  57. package/dist/dashboard/stat-card-parts.d.ts.map +1 -0
  58. package/dist/dashboard/stat-card-parts.js +55 -0
  59. package/dist/dashboard/stat-card.d.ts +46 -34
  60. package/dist/dashboard/stat-card.d.ts.map +1 -1
  61. package/dist/dashboard/stat-card.js +157 -88
  62. package/dist/dashboard/stat-card.module.css +222 -9
  63. package/dist/dashboard/stat-card.module.css.d.ts +20 -0
  64. package/dist/dashboard/widget-header.d.ts.map +1 -1
  65. package/dist/dashboard/widget-header.js +73 -9
  66. package/dist/dashboard/widget-header.module.css +28 -20
  67. package/dist/guard/guard-hook.d.ts.map +1 -1
  68. package/dist/guard/index.d.ts +4 -2
  69. package/dist/guard/index.d.ts.map +1 -1
  70. package/dist/guard/index.js +18 -4
  71. package/dist/guard/vx-names.d.ts.map +1 -1
  72. package/dist/guard/vx-names.js +1 -0
  73. package/dist/shell/app-mobile-nav.module.css +2 -2
  74. package/dist/shell/app-sidebar-account.js +1 -1
  75. package/dist/shell/app-sidebar.js +2 -2
  76. package/dist/shell/app-sidebar.module.css +8 -8
  77. package/dist/shell/index.js +5 -1
  78. package/dist/shell/page-bar.js +1 -1
  79. package/dist/table/data-table.d.ts.map +1 -1
  80. package/dist/table/data-table.js +3 -0
  81. package/dist/theme/chrome-vars.d.ts +82 -0
  82. package/dist/theme/chrome-vars.d.ts.map +1 -0
  83. package/dist/theme/chrome-vars.js +36 -0
  84. package/dist/theme/controls.module.css +20 -1
  85. package/dist/theme/controls.module.css.d.ts +1 -0
  86. package/dist/theme/index.d.ts.map +1 -1
  87. package/dist/theme/index.js +61 -54
  88. package/dist/tokens/core.d.ts +10 -4
  89. package/dist/tokens/core.d.ts.map +1 -1
  90. package/dist/tokens/core.js +16 -10
  91. package/dist/tokens/ctl-vars.d.ts +15 -0
  92. package/dist/tokens/ctl-vars.d.ts.map +1 -0
  93. package/dist/tokens/ctl-vars.js +22 -0
  94. package/dist/tokens/derive.d.ts.map +1 -1
  95. package/dist/tokens/derive.js +2 -2
  96. package/dist/tokens/palette.d.ts +37 -29
  97. package/dist/tokens/palette.d.ts.map +1 -1
  98. package/dist/tokens/palette.js +32 -21
  99. package/dist/tokens/space-scale.d.ts +14 -0
  100. package/dist/tokens/space-scale.d.ts.map +1 -0
  101. package/dist/tokens/space-scale.js +10 -0
  102. package/llms.txt +6 -3
  103. package/package.json +1 -1
  104. package/src/agent/chat/thread-message.tsx +1 -1
  105. package/src/agent/chat/thread-outcome-card.tsx +2 -2
  106. package/src/charts/ChartCard.tsx +1 -1
  107. package/src/charts/Donut.tsx +2 -2
  108. package/src/charts/DualPanel.tsx +2 -2
  109. package/src/charts/Heatmap.tsx +2 -2
  110. package/src/charts/MirroredBars.tsx +2 -2
  111. package/src/charts/Sparkline.tsx +7 -5
  112. package/src/charts/chart-card.module.css +2 -2
  113. package/src/charts/compile.ts +31 -11
  114. package/src/charts/cursor.ts +48 -3
  115. package/src/charts/date-tick-format.ts +132 -0
  116. package/src/charts/panel.tsx +5 -3
  117. package/src/charts/types.ts +5 -1
  118. package/src/cli/shot/board.ts +1 -1
  119. package/src/cli/shot/capture.ts +35 -3
  120. package/src/cli/shot/measure.ts +33 -6
  121. package/src/cli/shot/playwright.ts +1 -1
  122. package/src/cli/shot/types.ts +3 -2
  123. package/src/dashboard/delta-badge.tsx +24 -18
  124. package/src/dashboard/query-state.tsx +38 -0
  125. package/src/dashboard/settings-section.tsx +5 -2
  126. package/src/dashboard/stat-card-parts.tsx +108 -0
  127. package/src/dashboard/stat-card.module.css +222 -9
  128. package/src/dashboard/stat-card.module.css.d.ts +20 -0
  129. package/src/dashboard/stat-card.tsx +291 -183
  130. package/src/dashboard/widget-header.module.css +28 -20
  131. package/src/dashboard/widget-header.tsx +103 -7
  132. package/src/guard/guard-hook.ts +3 -1
  133. package/src/guard/index.ts +27 -13
  134. package/src/guard/vx-names.ts +1 -0
  135. package/src/shell/app-mobile-nav.module.css +2 -2
  136. package/src/shell/app-sidebar-account.tsx +1 -1
  137. package/src/shell/app-sidebar.module.css +8 -8
  138. package/src/shell/app-sidebar.tsx +2 -2
  139. package/src/shell/index.tsx +10 -4
  140. package/src/shell/page-bar.tsx +1 -1
  141. package/src/table/data-table.tsx +10 -4
  142. package/src/theme/__snapshots__/plain-theme.test.ts.snap +185 -85
  143. package/src/theme/chrome-vars.ts +111 -0
  144. package/src/theme/controls.module.css +20 -1
  145. package/src/theme/controls.module.css.d.ts +1 -0
  146. package/src/theme/ctl-theme.tsx +1 -1
  147. package/src/theme/index.ts +82 -124
  148. package/src/tokens/core.ts +16 -8
  149. package/src/tokens/ctl-vars.ts +32 -0
  150. package/src/tokens/derive.ts +7 -2
  151. package/src/tokens/palette.ts +40 -29
  152. package/src/tokens/space-scale.ts +13 -0
@@ -193,21 +193,34 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
193
193
  },
194
194
  "vars": {
195
195
  "fn":
196
- "(_theme, props) => ({
197
- root: {
198
- "--ai-size": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0
199
- }
200
- })"
196
+ "(_theme, props) => {
197
+ const ink = subtleInkVars(props);
198
+ return {
199
+ root: {
200
+ "--ai-size": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0,
201
+ "--ai-color": ink.color,
202
+ "--ai-hover": ink.hover
203
+ }
204
+ };
205
+ }"
201
206
  ,
202
207
  "outputs": [
203
208
  {
204
- "probes": 2018,
209
+ "probes": 1976,
205
210
  "result": "{"root":{}}",
206
211
  },
207
212
  {
208
- "probes": 290,
213
+ "probes": 42,
214
+ "result": "{"root":{"--ai-color":"var(--vx-ink)","--ai-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
215
+ },
216
+ {
217
+ "probes": 284,
209
218
  "result": "{"root":{"--ai-size":"calc(var(--vx-space-control-height) * var(--mantine-scale))"}}",
210
219
  },
220
+ {
221
+ "probes": 6,
222
+ "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)"}}",
223
+ },
211
224
  ],
212
225
  },
213
226
  },
@@ -232,8 +245,13 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
232
245
  },
233
246
  },
234
247
  "Badge": {
248
+ "classNames": {
249
+ "section": undefined,
250
+ },
235
251
  "defaultProps": {
236
- "radius": 6,
252
+ "color": "gray",
253
+ "radius": 5,
254
+ "variant": "light",
237
255
  },
238
256
  },
239
257
  "Breadcrumbs": {
@@ -252,21 +270,34 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
252
270
  },
253
271
  "vars": {
254
272
  "fn":
255
- "(_theme, props) => ({
256
- root: {
257
- "--button-height": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0
258
- }
259
- })"
273
+ "(_theme, props) => {
274
+ const ink = subtleInkVars(props);
275
+ return {
276
+ root: {
277
+ "--button-height": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0,
278
+ "--button-color": ink.color,
279
+ "--button-hover": ink.hover
280
+ }
281
+ };
282
+ }"
260
283
  ,
261
284
  "outputs": [
262
285
  {
263
- "probes": 2018,
286
+ "probes": 1976,
264
287
  "result": "{"root":{}}",
265
288
  },
266
289
  {
267
- "probes": 290,
290
+ "probes": 42,
291
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
292
+ },
293
+ {
294
+ "probes": 284,
268
295
  "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))"}}",
269
296
  },
297
+ {
298
+ "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)"}}",
300
+ },
270
301
  ],
271
302
  },
272
303
  },
@@ -451,7 +482,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
451
482
  },
452
483
  "item": {
453
484
  "borderRadius": "var(--vx-radius-ctrl)",
454
- "fontSize": 15,
485
+ "fontSize": 13,
455
486
  "padding": "var(--vx-space-row-inset-y) var(--vx-space-row-inset-x)",
456
487
  },
457
488
  "label": {
@@ -476,7 +507,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
476
507
  "aria-label": "Close",
477
508
  "data-basalt-hit": true,
478
509
  },
479
- "radius": 8,
510
+ "radius": 11,
480
511
  },
481
512
  "styles": {
482
513
  "content": {
@@ -499,12 +530,12 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
499
530
  },
500
531
  "styles": {
501
532
  "label": {
502
- "fontSize": 15,
533
+ "fontSize": 13,
503
534
  "lineHeight": "var(--vx-space-row-line-height)",
504
535
  },
505
536
  "root": {
506
537
  "borderRadius": "var(--vx-radius-ctrl)",
507
- "fontSize": 15,
538
+ "fontSize": 13,
508
539
  "lineHeight": "var(--vx-space-row-line-height)",
509
540
  "padding": "var(--vx-space-row-inset-y) var(--vx-space-row-inset-x)",
510
541
  },
@@ -530,7 +561,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
530
561
  },
531
562
  "Notification": {
532
563
  "defaultProps": {
533
- "radius": 8,
564
+ "radius": 11,
534
565
  },
535
566
  "styles": {
536
567
  "root": {
@@ -602,7 +633,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
602
633
  },
603
634
  "Popover": {
604
635
  "defaultProps": {
605
- "radius": 8,
636
+ "radius": 11,
606
637
  },
607
638
  "styles": {
608
639
  "dropdown": {
@@ -675,7 +706,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
675
706
  "label": undefined,
676
707
  },
677
708
  "defaultProps": {
678
- "radius": 7,
709
+ "radius": 6,
679
710
  },
680
711
  "styles": {
681
712
  "fn":
@@ -688,7 +719,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
688
719
  indicator: {
689
720
  boxShadow: "var(--vx-shadow-raised)",
690
721
  outline: "1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)",
691
- borderRadius: "var(--vx-radius-tight)"
722
+ borderRadius: "var(--vx-radius-fine)"
692
723
  },
693
724
  ...props.size === "ctl" ? {
694
725
  label: {
@@ -703,11 +734,11 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
703
734
  "outputs": [
704
735
  {
705
736
  "probes": 2020,
706
- "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-tight)"}}",
737
+ "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)"}}",
707
738
  },
708
739
  {
709
740
  "probes": 288,
710
- "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-tight)"},"label":{"display":"inline-flex","alignItems":"center","minHeight":"calc(var(--vx-space-control-height-ctl) * var(--mantine-scale) - 4px)"}}",
741
+ "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)"}}",
711
742
  },
712
743
  ],
713
744
  },
@@ -760,6 +791,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
760
791
  },
761
792
  "styles": {
762
793
  "td": {
794
+ "fontSize": 13,
763
795
  "height": 40,
764
796
  },
765
797
  "th": {
@@ -778,10 +810,25 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
778
810
  "root": undefined,
779
811
  },
780
812
  "vars": {
781
- "fn": "(theme, props) => ({ root: { "--tabs-text-color": onColorFor(theme, props) } })",
813
+ "fn":
814
+ "function tabsVars(theme, props) {
815
+ const underline = !hasExplicitColor(props.color) && (props.variant ?? "default") === "default";
816
+ return {
817
+ root: {
818
+ "--tabs-text-color": onColorFor(theme, props),
819
+ "--tabs-color": underline ? "var(--vx-ink)" : void 0,
820
+ "--tabs-radius": void 0
821
+ }
822
+ };
823
+ }"
824
+ ,
782
825
  "outputs": [
783
826
  {
784
- "probes": 772,
827
+ "probes": 100,
828
+ "result": "{"root":{"--tabs-text-color":"var(--vx-on-blue)","--tabs-color":"var(--vx-ink)"}}",
829
+ },
830
+ {
831
+ "probes": 672,
785
832
  "result": "{"root":{"--tabs-text-color":"var(--vx-on-blue)"}}",
786
833
  },
787
834
  {
@@ -825,11 +872,11 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
825
872
  "styles": {
826
873
  "itemContent": {
827
874
  "color": "var(--vx-muted)",
828
- "fontSize": 15,
875
+ "fontSize": 13,
829
876
  },
830
877
  "itemTitle": {
831
878
  "color": "var(--vx-ink)",
832
- "fontSize": 15,
879
+ "fontSize": 13,
833
880
  "fontWeight": 600,
834
881
  },
835
882
  },
@@ -861,7 +908,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
861
908
  },
862
909
  "Tooltip": {
863
910
  "defaultProps": {
864
- "radius": 8,
911
+ "radius": 11,
865
912
  },
866
913
  "styles": {
867
914
  "arrow": {
@@ -882,9 +929,9 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
882
929
  "fontSizes": {
883
930
  "lg": "calc(1rem * var(--mantine-scale))",
884
931
  "md": "calc(0.9375rem * var(--mantine-scale))",
885
- "sm": "calc(0.84375rem * var(--mantine-scale))",
932
+ "sm": "calc(0.8125rem * var(--mantine-scale))",
886
933
  "xl": "calc(1.125rem * var(--mantine-scale))",
887
- "xs": "calc(0.78125rem * var(--mantine-scale))",
934
+ "xs": "calc(0.75rem * var(--mantine-scale))",
888
935
  },
889
936
  "fontWeights": {
890
937
  "bold": "700",
@@ -896,6 +943,10 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
896
943
  "fontFamily": "var(--basalt-font-head, var(--basalt-font-sans, ui-sans-serif, sans-serif))",
897
944
  "fontWeight": "550",
898
945
  },
946
+ "lineHeights": {
947
+ "sm": "1.5385",
948
+ "xs": "1.3333",
949
+ },
899
950
  "luminanceThreshold": 0.45,
900
951
  "primaryColor": "blue",
901
952
  "primaryShade": 6,
@@ -909,10 +960,10 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
909
960
  "respectReducedMotion": true,
910
961
  "spacing": {
911
962
  "lg": "1.25rem",
912
- "md": "1.125rem",
913
- "sm": "0.8125rem",
914
- "xl": "1.625rem",
915
- "xs": "0.6875rem",
963
+ "md": "1rem",
964
+ "sm": "0.75rem",
965
+ "xl": "1.5rem",
966
+ "xs": "0.5rem",
916
967
  },
917
968
  "variantColorResolver": {
918
969
  "fn":
@@ -922,8 +973,6 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
922
973
  return resolved;
923
974
  if (input.variant === "filled")
924
975
  return input.autoContrast ?? input.theme.autoContrast ? { ...resolved, color: on } : resolved;
925
- if (input.variant === "subtle")
926
- return input.color === void 0 || input.color === input.theme.primaryColor ? { ...resolved, hover: "color-mix(in srgb, var(--vx-ink) 6%, transparent)" } : resolved;
927
976
  if (input.variant === "outline")
928
977
  return { ...resolved, color: \`color-mix(in srgb, \${resolved.color} 70%, var(--vx-ink))\` };
929
978
  if (input.variant !== "light")
@@ -1025,7 +1074,7 @@ exports[`createBasaltTheme() shape and resolver output default 1`] = `
1025
1074
  },
1026
1075
  {
1027
1076
  "probes": 2,
1028
- "result": "{"background":"transparent","hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)","color":"var(--mantine-color-blue-light-color)","border":"calc(0.0625rem * var(--mantine-scale)) solid transparent"}",
1077
+ "result": "{"background":"transparent","hover":"var(--mantine-color-blue-light-hover)","color":"var(--mantine-color-blue-light-color)","border":"calc(0.0625rem * var(--mantine-scale)) solid transparent"}",
1029
1078
  },
1030
1079
  {
1031
1080
  "probes": 2,
@@ -1286,21 +1335,34 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1286
1335
  },
1287
1336
  "vars": {
1288
1337
  "fn":
1289
- "(_theme, props) => ({
1290
- root: {
1291
- "--ai-size": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0
1292
- }
1293
- })"
1338
+ "(_theme, props) => {
1339
+ const ink = subtleInkVars(props);
1340
+ return {
1341
+ root: {
1342
+ "--ai-size": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0,
1343
+ "--ai-color": ink.color,
1344
+ "--ai-hover": ink.hover
1345
+ }
1346
+ };
1347
+ }"
1294
1348
  ,
1295
1349
  "outputs": [
1296
1350
  {
1297
- "probes": 2018,
1351
+ "probes": 1976,
1298
1352
  "result": "{"root":{}}",
1299
1353
  },
1300
1354
  {
1301
- "probes": 290,
1355
+ "probes": 42,
1356
+ "result": "{"root":{"--ai-color":"var(--vx-ink)","--ai-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1357
+ },
1358
+ {
1359
+ "probes": 284,
1302
1360
  "result": "{"root":{"--ai-size":"calc(var(--vx-space-control-height) * var(--mantine-scale))"}}",
1303
1361
  },
1362
+ {
1363
+ "probes": 6,
1364
+ "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)"}}",
1365
+ },
1304
1366
  ],
1305
1367
  },
1306
1368
  },
@@ -1325,8 +1387,13 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1325
1387
  },
1326
1388
  },
1327
1389
  "Badge": {
1390
+ "classNames": {
1391
+ "section": undefined,
1392
+ },
1328
1393
  "defaultProps": {
1329
- "radius": 9,
1394
+ "color": "gray",
1395
+ "radius": 8,
1396
+ "variant": "light",
1330
1397
  },
1331
1398
  },
1332
1399
  "Breadcrumbs": {
@@ -1345,21 +1412,34 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1345
1412
  },
1346
1413
  "vars": {
1347
1414
  "fn":
1348
- "(_theme, props) => ({
1349
- root: {
1350
- "--button-height": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0
1351
- }
1352
- })"
1415
+ "(_theme, props) => {
1416
+ const ink = subtleInkVars(props);
1417
+ return {
1418
+ root: {
1419
+ "--button-height": props.size === "md" ? "calc(var(--vx-space-control-height) * var(--mantine-scale))" : void 0,
1420
+ "--button-color": ink.color,
1421
+ "--button-hover": ink.hover
1422
+ }
1423
+ };
1424
+ }"
1353
1425
  ,
1354
1426
  "outputs": [
1355
1427
  {
1356
- "probes": 2018,
1428
+ "probes": 1976,
1357
1429
  "result": "{"root":{}}",
1358
1430
  },
1359
1431
  {
1360
- "probes": 290,
1432
+ "probes": 42,
1433
+ "result": "{"root":{"--button-color":"var(--vx-ink)","--button-hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)"}}",
1434
+ },
1435
+ {
1436
+ "probes": 284,
1361
1437
  "result": "{"root":{"--button-height":"calc(var(--vx-space-control-height) * var(--mantine-scale))"}}",
1362
1438
  },
1439
+ {
1440
+ "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)"}}",
1442
+ },
1363
1443
  ],
1364
1444
  },
1365
1445
  },
@@ -1544,7 +1624,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1544
1624
  },
1545
1625
  "item": {
1546
1626
  "borderRadius": "var(--vx-radius-ctrl)",
1547
- "fontSize": 15,
1627
+ "fontSize": 13,
1548
1628
  "padding": "var(--vx-space-row-inset-y) var(--vx-space-row-inset-x)",
1549
1629
  },
1550
1630
  "label": {
@@ -1569,7 +1649,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1569
1649
  "aria-label": "Close",
1570
1650
  "data-basalt-hit": true,
1571
1651
  },
1572
- "radius": 11,
1652
+ "radius": 14,
1573
1653
  },
1574
1654
  "styles": {
1575
1655
  "content": {
@@ -1592,12 +1672,12 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1592
1672
  },
1593
1673
  "styles": {
1594
1674
  "label": {
1595
- "fontSize": 15,
1675
+ "fontSize": 13,
1596
1676
  "lineHeight": "var(--vx-space-row-line-height)",
1597
1677
  },
1598
1678
  "root": {
1599
1679
  "borderRadius": "var(--vx-radius-ctrl)",
1600
- "fontSize": 15,
1680
+ "fontSize": 13,
1601
1681
  "lineHeight": "var(--vx-space-row-line-height)",
1602
1682
  "padding": "var(--vx-space-row-inset-y) var(--vx-space-row-inset-x)",
1603
1683
  },
@@ -1623,7 +1703,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1623
1703
  },
1624
1704
  "Notification": {
1625
1705
  "defaultProps": {
1626
- "radius": 11,
1706
+ "radius": 14,
1627
1707
  },
1628
1708
  "styles": {
1629
1709
  "root": {
@@ -1695,7 +1775,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1695
1775
  },
1696
1776
  "Popover": {
1697
1777
  "defaultProps": {
1698
- "radius": 11,
1778
+ "radius": 14,
1699
1779
  },
1700
1780
  "styles": {
1701
1781
  "dropdown": {
@@ -1768,7 +1848,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1768
1848
  "label": undefined,
1769
1849
  },
1770
1850
  "defaultProps": {
1771
- "radius": 10,
1851
+ "radius": 9,
1772
1852
  },
1773
1853
  "styles": {
1774
1854
  "fn":
@@ -1781,7 +1861,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1781
1861
  indicator: {
1782
1862
  boxShadow: "var(--vx-shadow-raised)",
1783
1863
  outline: "1px solid color-mix(in srgb, var(--vx-ink) 14%, transparent)",
1784
- borderRadius: "var(--vx-radius-tight)"
1864
+ borderRadius: "var(--vx-radius-fine)"
1785
1865
  },
1786
1866
  ...props.size === "ctl" ? {
1787
1867
  label: {
@@ -1796,11 +1876,11 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1796
1876
  "outputs": [
1797
1877
  {
1798
1878
  "probes": 2020,
1799
- "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-tight)"}}",
1879
+ "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)"}}",
1800
1880
  },
1801
1881
  {
1802
1882
  "probes": 288,
1803
- "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-tight)"},"label":{"display":"inline-flex","alignItems":"center","minHeight":"calc(var(--vx-space-control-height-ctl) * var(--mantine-scale) - 4px)"}}",
1883
+ "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)"}}",
1804
1884
  },
1805
1885
  ],
1806
1886
  },
@@ -1853,6 +1933,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1853
1933
  },
1854
1934
  "styles": {
1855
1935
  "td": {
1936
+ "fontSize": 13,
1856
1937
  "height": 32,
1857
1938
  },
1858
1939
  "th": {
@@ -1871,10 +1952,25 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1871
1952
  "root": undefined,
1872
1953
  },
1873
1954
  "vars": {
1874
- "fn": "(theme, props) => ({ root: { "--tabs-text-color": onColorFor(theme, props) } })",
1955
+ "fn":
1956
+ "function tabsVars(theme, props) {
1957
+ const underline = !hasExplicitColor(props.color) && (props.variant ?? "default") === "default";
1958
+ return {
1959
+ root: {
1960
+ "--tabs-text-color": onColorFor(theme, props),
1961
+ "--tabs-color": underline ? "var(--vx-ink)" : void 0,
1962
+ "--tabs-radius": void 0
1963
+ }
1964
+ };
1965
+ }"
1966
+ ,
1875
1967
  "outputs": [
1876
1968
  {
1877
- "probes": 772,
1969
+ "probes": 100,
1970
+ "result": "{"root":{"--tabs-text-color":"var(--vx-on-blue)","--tabs-color":"var(--vx-ink)"}}",
1971
+ },
1972
+ {
1973
+ "probes": 672,
1878
1974
  "result": "{"root":{"--tabs-text-color":"var(--vx-on-blue)"}}",
1879
1975
  },
1880
1976
  {
@@ -1918,11 +2014,11 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1918
2014
  "styles": {
1919
2015
  "itemContent": {
1920
2016
  "color": "var(--vx-muted)",
1921
- "fontSize": 15,
2017
+ "fontSize": 13,
1922
2018
  },
1923
2019
  "itemTitle": {
1924
2020
  "color": "var(--vx-ink)",
1925
- "fontSize": 15,
2021
+ "fontSize": 13,
1926
2022
  "fontWeight": 600,
1927
2023
  },
1928
2024
  },
@@ -1954,7 +2050,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1954
2050
  },
1955
2051
  "Tooltip": {
1956
2052
  "defaultProps": {
1957
- "radius": 11,
2053
+ "radius": 14,
1958
2054
  },
1959
2055
  "styles": {
1960
2056
  "arrow": {
@@ -1975,9 +2071,9 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1975
2071
  "fontSizes": {
1976
2072
  "lg": "calc(1rem * var(--mantine-scale))",
1977
2073
  "md": "calc(0.9375rem * var(--mantine-scale))",
1978
- "sm": "calc(0.84375rem * var(--mantine-scale))",
2074
+ "sm": "calc(0.8125rem * var(--mantine-scale))",
1979
2075
  "xl": "calc(1.125rem * var(--mantine-scale))",
1980
- "xs": "calc(0.78125rem * var(--mantine-scale))",
2076
+ "xs": "calc(0.75rem * var(--mantine-scale))",
1981
2077
  },
1982
2078
  "fontWeights": {
1983
2079
  "bold": "700",
@@ -1989,12 +2085,17 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
1989
2085
  "fontFamily": "var(--basalt-font-head, var(--basalt-font-sans, ui-sans-serif, sans-serif))",
1990
2086
  "fontWeight": "550",
1991
2087
  },
2088
+ "lineHeights": {
2089
+ "sm": "1.5385",
2090
+ "xs": "1.3333",
2091
+ },
1992
2092
  "luminanceThreshold": 0.45,
1993
2093
  "other": {
1994
2094
  "basaltDensity": {
1995
2095
  "anchors": {
1996
2096
  "controlHeight": 34,
1997
2097
  "controlHeightCtl": 28,
2098
+ "controlHeightDense": 24,
1998
2099
  "controlHeightTag": 18,
1999
2100
  "controlHeightWidget": 22,
2000
2101
  "inputHeight": 34,
@@ -2006,13 +2107,13 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
2006
2107
  "stackXl": 18,
2007
2108
  "stackXs": 3,
2008
2109
  },
2009
- "rowLineHeight": 1.28,
2110
+ "rowLineHeight": 1.47,
2010
2111
  "scale": {
2011
2112
  "lg": 16,
2012
- "md": 14,
2113
+ "md": 13,
2013
2114
  "sm": 10,
2014
- "xl": 21,
2015
- "xs": 9,
2115
+ "xl": 19,
2116
+ "xs": 6,
2016
2117
  },
2017
2118
  "step": {
2018
2119
  "agentCodeInset": 6,
@@ -2029,6 +2130,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
2029
2130
  "appShellHeaderHeight": 35,
2030
2131
  "appShellHeaderLeadMin": 77,
2031
2132
  "appShellInset": 13,
2133
+ "appShellInsetExpanded": 19,
2032
2134
  "appShellInsetMobile": 6,
2033
2135
  "appShellNavbarRailWidth": 38,
2034
2136
  "appShellNavbarWidth": 205,
@@ -2051,8 +2153,8 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
2051
2153
  "calloutInsetX": 11,
2052
2154
  "calloutInsetY": 8,
2053
2155
  "calloutTitleRowGap": 6,
2054
- "cardInsetX": 10,
2055
- "cardInsetY": 9,
2156
+ "cardInsetX": 13,
2157
+ "cardInsetY": 10,
2056
2158
  "chartDotR": 4,
2057
2159
  "chartLegendGap": 18,
2058
2160
  "chartMarginBottom": 24,
@@ -2152,10 +2254,10 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
2152
2254
  "vibrancy": 0,
2153
2255
  },
2154
2256
  "basaltRadius": {
2155
- "card": 10,
2257
+ "card": 13,
2156
2258
  "ctrl": 9,
2157
2259
  "fine": 7,
2158
- "floating": 11,
2260
+ "floating": 14,
2159
2261
  "tight": 8,
2160
2262
  },
2161
2263
  },
@@ -2171,10 +2273,10 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
2171
2273
  "respectReducedMotion": true,
2172
2274
  "spacing": {
2173
2275
  "lg": "1rem",
2174
- "md": "0.875rem",
2276
+ "md": "0.8125rem",
2175
2277
  "sm": "0.625rem",
2176
- "xl": "1.3125rem",
2177
- "xs": "0.5625rem",
2278
+ "xl": "1.1875rem",
2279
+ "xs": "0.375rem",
2178
2280
  },
2179
2281
  "variantColorResolver": {
2180
2282
  "fn":
@@ -2184,8 +2286,6 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
2184
2286
  return resolved;
2185
2287
  if (input.variant === "filled")
2186
2288
  return input.autoContrast ?? input.theme.autoContrast ? { ...resolved, color: on } : resolved;
2187
- if (input.variant === "subtle")
2188
- return input.color === void 0 || input.color === input.theme.primaryColor ? { ...resolved, hover: "color-mix(in srgb, var(--vx-ink) 6%, transparent)" } : resolved;
2189
2289
  if (input.variant === "outline")
2190
2290
  return { ...resolved, color: \`color-mix(in srgb, \${resolved.color} 70%, var(--vx-ink))\` };
2191
2291
  if (input.variant !== "light")
@@ -2287,7 +2387,7 @@ exports[`createBasaltTheme() shape and resolver output all knobs 1`] = `
2287
2387
  },
2288
2388
  {
2289
2389
  "probes": 2,
2290
- "result": "{"background":"transparent","hover":"color-mix(in srgb, var(--vx-ink) 6%, transparent)","color":"var(--mantine-color-blue-light-color)","border":"calc(0.0625rem * var(--mantine-scale)) solid transparent"}",
2390
+ "result": "{"background":"transparent","hover":"var(--mantine-color-blue-light-hover)","color":"var(--mantine-color-blue-light-color)","border":"calc(0.0625rem * var(--mantine-scale)) solid transparent"}",
2291
2391
  },
2292
2392
  {
2293
2393
  "probes": 2,