basalt-ui 2.21.0 → 2.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/MIGRATING.md +452 -12
  3. package/agent/agents/basalt-design-reviewer.md +1 -1
  4. package/agent/rules/basalt-tokens.md +1 -1
  5. package/agent/skills/basalt-design/SKILL.md +1 -1
  6. package/agent/skills/basalt-design/references/anti-defaults.md +1 -1
  7. package/agent/skills/basalt-design/references/catalogue.md +1 -0
  8. package/dist/charts/BandStrip.d.ts.map +1 -1
  9. package/dist/charts/BandStrip.js +73 -3
  10. package/dist/charts/Bars.d.ts.map +1 -1
  11. package/dist/charts/Bars.js +6 -0
  12. package/dist/charts/CartesianChart.d.ts +10 -0
  13. package/dist/charts/CartesianChart.d.ts.map +1 -1
  14. package/dist/charts/CartesianChart.js +8 -5
  15. package/dist/charts/ChartCard.d.ts +12 -3
  16. package/dist/charts/ChartCard.d.ts.map +1 -1
  17. package/dist/charts/ChartCard.js +39 -8
  18. package/dist/charts/DualPanel.d.ts.map +1 -1
  19. package/dist/charts/DualPanel.js +5 -8
  20. package/dist/charts/Heatmap.d.ts +12 -1
  21. package/dist/charts/Heatmap.d.ts.map +1 -1
  22. package/dist/charts/Heatmap.js +34 -5
  23. package/dist/charts/Lines.d.ts +3 -0
  24. package/dist/charts/Lines.d.ts.map +1 -1
  25. package/dist/charts/Lines.js +29 -6
  26. package/dist/charts/MirroredBars.d.ts.map +1 -1
  27. package/dist/charts/MirroredBars.js +4 -6
  28. package/dist/charts/Sparkline.d.ts +14 -2
  29. package/dist/charts/Sparkline.d.ts.map +1 -1
  30. package/dist/charts/Sparkline.js +101 -22
  31. package/dist/charts/StackedArea.d.ts +4 -1
  32. package/dist/charts/StackedArea.d.ts.map +1 -1
  33. package/dist/charts/StackedArea.js +9 -3
  34. package/dist/charts/band-fold.d.ts +38 -1
  35. package/dist/charts/band-fold.d.ts.map +1 -1
  36. package/dist/charts/band-fold.js +18 -1
  37. package/dist/charts/chart-box.module.css +19 -0
  38. package/dist/charts/chart-card.module.css +25 -0
  39. package/dist/charts/chart-dates.d.ts +12 -0
  40. package/dist/charts/chart-dates.d.ts.map +1 -0
  41. package/dist/charts/chart-dates.js +16 -0
  42. package/dist/charts/chart-legend.module.css +7 -0
  43. package/dist/charts/compile.d.ts +25 -6
  44. package/dist/charts/compile.d.ts.map +1 -1
  45. package/dist/charts/compile.js +152 -72
  46. package/dist/charts/date-tick-format.d.ts +5 -5
  47. package/dist/charts/date-tick-format.d.ts.map +1 -1
  48. package/dist/charts/date-tick-format.js +3 -7
  49. package/dist/charts/labels.d.ts +21 -6
  50. package/dist/charts/labels.d.ts.map +1 -1
  51. package/dist/charts/labels.js +52 -17
  52. package/dist/charts/legend.d.ts +2 -0
  53. package/dist/charts/legend.d.ts.map +1 -1
  54. package/dist/charts/legend.js +7 -21
  55. package/dist/charts/marks.js +1 -1
  56. package/dist/charts/panel.d.ts +0 -6
  57. package/dist/charts/panel.d.ts.map +1 -1
  58. package/dist/charts/panel.js +1 -10
  59. package/dist/charts/ref-label.d.ts +43 -0
  60. package/dist/charts/ref-label.d.ts.map +1 -0
  61. package/dist/charts/ref-label.js +75 -0
  62. package/dist/charts/scales.d.ts +4 -1
  63. package/dist/charts/scales.d.ts.map +1 -1
  64. package/dist/charts/scales.js +14 -3
  65. package/dist/charts/sparkline.module.css +13 -17
  66. package/dist/charts/sparkline.module.css.d.ts +1 -2
  67. package/dist/charts/state.d.ts +2 -0
  68. package/dist/charts/state.d.ts.map +1 -1
  69. package/dist/charts/state.js +5 -2
  70. package/dist/charts/types.d.ts +18 -8
  71. package/dist/charts/types.d.ts.map +1 -1
  72. package/dist/cli/doctor-upgrade.d.ts +1 -0
  73. package/dist/cli/doctor-upgrade.d.ts.map +1 -1
  74. package/dist/cli/doctor-upgrade.js +1 -0
  75. package/dist/cli/init.d.ts +2 -0
  76. package/dist/cli/init.d.ts.map +1 -1
  77. package/dist/cli/init.js +68 -4
  78. package/dist/cli/shot/capture.d.ts +21 -2
  79. package/dist/cli/shot/capture.d.ts.map +1 -1
  80. package/dist/cli/shot/capture.js +202 -36
  81. package/dist/cli/shot/detect.d.ts.map +1 -1
  82. package/dist/cli/shot/detect.js +17 -1
  83. package/dist/cli/shot/playwright.d.ts +13 -2
  84. package/dist/cli/shot/playwright.d.ts.map +1 -1
  85. package/dist/cli/shot/playwright.js +5 -1
  86. package/dist/cli/shot/types.d.ts +4 -0
  87. package/dist/cli/shot/types.d.ts.map +1 -1
  88. package/dist/cli/shot/types.js +2 -0
  89. package/dist/cli/tokens-css.d.ts +5 -7
  90. package/dist/cli/tokens-css.d.ts.map +1 -1
  91. package/dist/cli/tokens-css.js +11 -12
  92. package/dist/controls/controls.module.css +11 -1
  93. package/dist/controls/filter-pill.d.ts.map +1 -1
  94. package/dist/controls/filter-pill.js +1 -0
  95. package/dist/controls/sync-button.d.ts.map +1 -1
  96. package/dist/controls/sync-button.js +22 -3
  97. package/dist/controls/sync-button.module.css +34 -2
  98. package/dist/controls/sync-button.module.css.d.ts +1 -0
  99. package/dist/dashboard/bar-list.d.ts +6 -1
  100. package/dist/dashboard/bar-list.d.ts.map +1 -1
  101. package/dist/dashboard/bar-list.js +15 -8
  102. package/dist/dashboard/bar-list.module.css +83 -0
  103. package/dist/dashboard/bar-list.module.css.d.ts +1 -0
  104. package/dist/dashboard/delta-badge.d.ts.map +1 -1
  105. package/dist/dashboard/delta-badge.js +2 -2
  106. package/dist/dashboard/index.d.ts +1 -0
  107. package/dist/dashboard/index.d.ts.map +1 -1
  108. package/dist/dashboard/index.js +2 -0
  109. package/dist/dashboard/meter-model.d.ts +84 -5
  110. package/dist/dashboard/meter-model.d.ts.map +1 -1
  111. package/dist/dashboard/meter-model.js +100 -15
  112. package/dist/dashboard/meter-parts.d.ts +9 -1
  113. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  114. package/dist/dashboard/meter-parts.js +276 -74
  115. package/dist/dashboard/meter.d.ts +54 -65
  116. package/dist/dashboard/meter.d.ts.map +1 -1
  117. package/dist/dashboard/meter.js +21 -4
  118. package/dist/dashboard/meter.module.css +76 -0
  119. package/dist/dashboard/meter.module.css.d.ts +6 -0
  120. package/dist/dashboard/page-summary.d.ts +20 -0
  121. package/dist/dashboard/page-summary.d.ts.map +1 -0
  122. package/dist/dashboard/page-summary.js +28 -0
  123. package/dist/dashboard/page-summary.module.css +89 -0
  124. package/dist/dashboard/page-summary.module.css.d.ts +15 -0
  125. package/dist/dashboard/query-state.d.ts.map +1 -1
  126. package/dist/dashboard/query-state.js +1 -1
  127. package/dist/dashboard/section.d.ts +25 -2
  128. package/dist/dashboard/section.d.ts.map +1 -1
  129. package/dist/dashboard/section.js +10 -5
  130. package/dist/dashboard/section.module.css +23 -0
  131. package/dist/dashboard/section.module.css.d.ts +1 -0
  132. package/dist/dashboard/stat-card-parts.d.ts.map +1 -1
  133. package/dist/dashboard/stat-card-parts.js +1 -1
  134. package/dist/dashboard/stat-card.d.ts +4 -2
  135. package/dist/dashboard/stat-card.d.ts.map +1 -1
  136. package/dist/dashboard/stat-card.js +7 -5
  137. package/dist/dashboard/stat-card.module.css +36 -0
  138. package/dist/dashboard/stat-group.module.css +7 -0
  139. package/dist/dashboard/stat-strip.d.ts +22 -6
  140. package/dist/dashboard/stat-strip.d.ts.map +1 -1
  141. package/dist/dashboard/stat-strip.js +104 -60
  142. package/dist/dashboard/stat-strip.module.css +122 -53
  143. package/dist/dashboard/stat-strip.module.css.d.ts +4 -0
  144. package/dist/dashboard/visual-slot.d.ts +7 -1
  145. package/dist/dashboard/visual-slot.d.ts.map +1 -1
  146. package/dist/dashboard/visual-slot.js +3 -1
  147. package/dist/guard/index.d.ts.map +1 -1
  148. package/dist/guard/index.js +0 -5
  149. package/dist/guard/vx-names.d.ts.map +1 -1
  150. package/dist/guard/vx-names.js +2 -0
  151. package/dist/index.d.ts +1 -1
  152. package/dist/index.d.ts.map +1 -1
  153. package/dist/index.js +3 -1
  154. package/dist/styles.css +43 -4
  155. package/dist/theme/chrome-vars.d.ts +20 -5
  156. package/dist/theme/chrome-vars.d.ts.map +1 -1
  157. package/dist/theme/chrome-vars.js +46 -3
  158. package/dist/theme/controls.module.css +37 -0
  159. package/dist/theme/controls.module.css.d.ts +2 -0
  160. package/dist/theme/index.d.ts.map +1 -1
  161. package/dist/theme/index.js +18 -27
  162. package/dist/theme/status-verdict.d.ts.map +1 -1
  163. package/dist/theme/status-verdict.js +9 -1
  164. package/dist/tokens/core.d.ts +2 -1
  165. package/dist/tokens/core.d.ts.map +1 -1
  166. package/dist/tokens/core.js +6 -1
  167. package/dist/tokens/derive.d.ts +3 -1
  168. package/dist/tokens/derive.d.ts.map +1 -1
  169. package/dist/tokens/derive.js +16 -1
  170. package/dist/tokens/palette.d.ts +11 -10
  171. package/dist/tokens/palette.d.ts.map +1 -1
  172. package/dist/tokens/palette.js +11 -10
  173. package/dist/tokens/status-text.d.ts.map +1 -1
  174. package/dist/tokens/status-text.js +3 -1
  175. package/llms.txt +42 -22
  176. package/package.json +1 -1
  177. package/src/charts/BandStrip.tsx +83 -3
  178. package/src/charts/Bars.tsx +7 -0
  179. package/src/charts/CartesianChart.tsx +18 -3
  180. package/src/charts/ChartCard.tsx +54 -13
  181. package/src/charts/DualPanel.tsx +3 -6
  182. package/src/charts/Heatmap.tsx +54 -5
  183. package/src/charts/Lines.tsx +56 -10
  184. package/src/charts/MirroredBars.tsx +3 -5
  185. package/src/charts/Sparkline.tsx +135 -25
  186. package/src/charts/StackedArea.tsx +14 -4
  187. package/src/charts/band-fold.ts +50 -1
  188. package/src/charts/chart-box.module.css +19 -0
  189. package/src/charts/chart-card.module.css +25 -0
  190. package/src/charts/chart-dates.ts +30 -0
  191. package/src/charts/chart-legend.module.css +7 -0
  192. package/src/charts/compile.ts +253 -87
  193. package/src/charts/date-tick-format.ts +10 -13
  194. package/src/charts/labels.ts +81 -26
  195. package/src/charts/legend.tsx +10 -20
  196. package/src/charts/marks.ts +1 -1
  197. package/src/charts/panel.tsx +1 -16
  198. package/src/charts/ref-label.ts +131 -0
  199. package/src/charts/scales.ts +22 -2
  200. package/src/charts/sparkline.module.css +13 -17
  201. package/src/charts/sparkline.module.css.d.ts +1 -2
  202. package/src/charts/state.tsx +9 -4
  203. package/src/charts/types.ts +18 -8
  204. package/src/cli/doctor-upgrade.ts +1 -1
  205. package/src/cli/init.ts +100 -3
  206. package/src/cli/shot/capture.ts +266 -35
  207. package/src/cli/shot/detect.ts +18 -1
  208. package/src/cli/shot/playwright.ts +20 -4
  209. package/src/cli/shot/types.ts +5 -0
  210. package/src/cli/tokens-css.ts +18 -20
  211. package/src/controls/controls.module.css +11 -1
  212. package/src/controls/filter-pill.tsx +2 -0
  213. package/src/controls/sync-button.module.css +34 -2
  214. package/src/controls/sync-button.module.css.d.ts +1 -0
  215. package/src/controls/sync-button.tsx +40 -4
  216. package/src/dashboard/bar-list.module.css +83 -0
  217. package/src/dashboard/bar-list.module.css.d.ts +1 -0
  218. package/src/dashboard/bar-list.tsx +107 -69
  219. package/src/dashboard/delta-badge.tsx +6 -2
  220. package/src/dashboard/index.ts +1 -0
  221. package/src/dashboard/meter-model.ts +207 -24
  222. package/src/dashboard/meter-parts.tsx +349 -67
  223. package/src/dashboard/meter.module.css +76 -0
  224. package/src/dashboard/meter.module.css.d.ts +6 -0
  225. package/src/dashboard/meter.tsx +72 -18
  226. package/src/dashboard/page-summary.module.css +89 -0
  227. package/src/dashboard/page-summary.module.css.d.ts +15 -0
  228. package/src/dashboard/page-summary.tsx +95 -0
  229. package/src/dashboard/query-state.tsx +1 -1
  230. package/src/dashboard/section.module.css +23 -0
  231. package/src/dashboard/section.module.css.d.ts +1 -0
  232. package/src/dashboard/section.tsx +59 -11
  233. package/src/dashboard/stat-card-parts.tsx +5 -1
  234. package/src/dashboard/stat-card.module.css +36 -0
  235. package/src/dashboard/stat-card.tsx +12 -6
  236. package/src/dashboard/stat-group.module.css +7 -0
  237. package/src/dashboard/stat-strip.module.css +122 -53
  238. package/src/dashboard/stat-strip.module.css.d.ts +4 -0
  239. package/src/dashboard/stat-strip.tsx +176 -91
  240. package/src/dashboard/visual-slot.ts +12 -3
  241. package/src/guard/index.ts +0 -5
  242. package/src/guard/vx-names.ts +2 -0
  243. package/src/index.ts +2 -0
  244. package/src/styles.css +43 -4
  245. package/src/theme/__snapshots__/plain-theme.test.ts.snap +200 -68
  246. package/src/theme/chrome-vars.ts +77 -8
  247. package/src/theme/controls.module.css +37 -0
  248. package/src/theme/controls.module.css.d.ts +2 -0
  249. package/src/theme/index.ts +22 -32
  250. package/src/theme/status-verdict.tsx +5 -1
  251. package/src/tokens/core.ts +4 -1
  252. package/src/tokens/derive.ts +32 -3
  253. package/src/tokens/palette.ts +11 -10
  254. package/src/tokens/status-text.ts +2 -0
@@ -112,7 +112,7 @@ import type { BasaltProps, SlotStylesProps, Tone } from '../common/props'
112
112
  import { ErrorState, QueryState, resolveQueryBranch } from './query-state'
113
113
  import type { QueryBranch, QueryStateLike } from './query-state'
114
114
  import classes from './stat-card.module.css'
115
- import { VisualSlotContext } from './visual-slot'
115
+ import { HOSTED, VisualSlotContext } from './visual-slot'
116
116
 
117
117
  /**
118
118
  * The boxes `StatCard` paints, and the whole styling seam it offers (`common/props.ts`).
@@ -217,8 +217,10 @@ export type StatCardProps = BasaltProps &
217
217
  value: string
218
218
  /**
219
219
  * Right-aligned on the caption row, `micro` muted: the period, target or source the figure is
220
- * measured over (`30 days`, `target 99.9%`). Wraps under the caption when the card is too narrow
221
- * for both. Not a restatement of the caption.
220
+ * measured over (`30 days`, `target 99.9%`). Wraps under the caption when the card is too
221
+ * narrow for both. Only in a card narrower than 240px does it truncate instead (the full text
222
+ * is its `title`); between 240px and the width it fits, a long one still wraps and moves the
223
+ * value down a line. Not a restatement of the caption.
222
224
  */
223
225
  qualifier?: string
224
226
  /**
@@ -326,7 +328,7 @@ function renderValueBody({
326
328
  return (
327
329
  <ErrorState
328
330
  error={resolved.error}
329
- title="Could not load this figure"
331
+ title="Could not load"
330
332
  tier="section"
331
333
  onRetry={() => void resolved.query.refetch()}
332
334
  retrying={resolved.query.fetchStatus === 'fetching'}
@@ -358,12 +360,16 @@ function renderVisualNode({
358
360
  function renderFooterNode({
359
361
  subtitle,
360
362
  pending,
363
+ ready,
361
364
  }: {
362
365
  subtitle: string | undefined
363
366
  pending: boolean
367
+ ready: boolean
364
368
  }): ReactNode {
365
369
  if (subtitle === undefined) return null
366
370
  if (pending) return <FooterSkeleton />
371
+ // The footer captions the visual; with no figure drawn (empty, failed) it would caption nothing.
372
+ if (!ready) return null
367
373
  return (
368
374
  <p className={classes.footer} title={subtitle}>
369
375
  {subtitle}
@@ -449,7 +455,7 @@ export function StatCard({
449
455
  >
450
456
  {/* A measured slot renders nothing on the first commit (width 0) — an SVG at width 0 is a
451
457
  visible 0-width box that then jumps, which is worse than one frame of nothing. */}
452
- <VisualSlotContext.Provider value>
458
+ <VisualSlotContext.Provider value={tone === undefined ? HOSTED : { tone }}>
453
459
  {isRender ? measured.width > 0 && sparkline(measured) : sparkline}
454
460
  </VisualSlotContext.Provider>
455
461
  </div>
@@ -487,7 +493,7 @@ export function StatCard({
487
493
 
488
494
  const hasBleedVisual = sparkline !== undefined && bleeds
489
495
  const visualNode = renderVisualNode({ show: hasBleedVisual, pending, slot: sparklineSlot })
490
- const footerNode = renderFooterNode({ subtitle, pending })
496
+ const footerNode = renderFooterNode({ subtitle, pending, ready })
491
497
 
492
498
  return (
493
499
  <Card
@@ -43,6 +43,13 @@
43
43
  gap: var(--vx-space-stack-md);
44
44
  }
45
45
 
46
+ /* A card with a qualifier tells its row-mates to reserve the qualifier line in a narrow card, so the
47
+ * values of one group share a baseline (`stat-card.module.css`). Group-wide, not per row: the row a
48
+ * card lands in depends on the container, which a selector cannot read. */
49
+ .root:has([data-stat-qualifier]) {
50
+ --basalt-stat-qualifier-reserve: 1;
51
+ }
52
+
46
53
  /* 260px is StatGroup's own literal (docs/DESIGN-CORE.md § Layout, elevation, shapes), not a container class: one column below it,
47
54
  * so every cell leads a row and the rail draws no leading hairline at all. */
48
55
  @container basalt-grid (max-width: 259.9px) {
@@ -27,17 +27,32 @@
27
27
  margin: -1px 0 0 -1px;
28
28
  }
29
29
 
30
+ /* The CELL is the row-high column: it owns the hairlines, so they run the whole row however short
31
+ * the cell inside it ends. It paints nothing else — the one surface stays the Card's. It is also the
32
+ * size container the caption line answers to (a cell is ~170px at 390, ~250px at 1440). */
30
33
  .cell {
31
34
  display: grid;
32
- grid-row: span 5;
33
- grid-template-rows: subgrid;
35
+ align-content: start;
34
36
  min-width: 0;
35
- padding: var(--vx-space-stack-md);
37
+ container-type: inline-size;
38
+ container-name: basalt-card;
39
+ /* The foot inset lives HERE, on the row-high slot, so a cell that ends early keeps the strip's
40
+ * surface under it. */
41
+ padding-block-end: var(--vx-space-stack-md);
36
42
  box-shadow:
37
43
  -1px 0 0 var(--vx-divider),
38
44
  0 -1px 0 var(--vx-divider);
39
45
  }
40
46
 
47
+ /* The CONTENT is a plain column: its box ends at its content, whatever a sibling holds below. */
48
+ .content {
49
+ display: flex;
50
+ flex-direction: column;
51
+ align-self: start;
52
+ min-width: 0;
53
+ padding: var(--vx-space-stack-md) var(--vx-space-stack-md) 0;
54
+ }
55
+
41
56
  /* Forced colors drop box-shadows, so the hairlines come back as CanvasText borders. Every cell takes
42
57
  * both, so they stay level with each other; `.clip` still hides the leading ones. */
43
58
  @media (forced-colors: active) {
@@ -47,50 +62,18 @@
47
62
  }
48
63
  }
49
64
 
50
- /* Cells align by PART. Every cell spans the same five tracks of `.cells` (caption, hero, visual,
51
- * rows, footer), so a row of cells shares one caption top and one value baseline, and a void opens
52
- * only where a sibling's same part is taller. A part a cell lacks collapses its track (the spacing
53
- * is a margin on the part, not a gap, so an empty track adds none). A cell without a visual keeps
54
- * its rows (and a footer without rows) in the visual track, directly under its hero: short cells
55
- * stay compact instead of stretching their footer to the row's bottom. A footer under a visual
56
- * rides in the visual track with it (`.visualStack`), so it hugs its own visual; only a rows
57
- * cell's footer uses the shared footer track. A hero-less cell (rows only) starts its rows in the
58
- * visual track, so the hero track above them is the one void, and only as tall as a sibling's
59
- * value. */
60
- .cell > * {
61
- grid-column: 1;
65
+ /* Cells align by CONSTRUCTION, not by shared tracks: the parts above the value have equal height in
66
+ * every cell of a row (one caption line; a reserved qualifier line in a narrow cell when any cell has
67
+ * a qualifier), so a row shares one caption top and one value baseline. Below the value each cell
68
+ * stacks its own parts and ends at its last one. */
69
+ .content > * {
62
70
  min-width: 0;
63
71
  }
64
72
 
65
- .cell > :not(.captionLine) {
73
+ .content > :not(.captionLine) {
66
74
  margin-block-start: var(--vx-space-stack-sm);
67
75
  }
68
76
 
69
- .valueRow,
70
- .skeletonValue,
71
- .error {
72
- grid-row: 2;
73
- }
74
-
75
- .cell > .visualStack,
76
- .cell > .reason,
77
- .cell > .rows,
78
- .cell > .footer {
79
- grid-row: 3;
80
- }
81
-
82
- .cell[data-strip-has-visual] > .rows {
83
- grid-row: 4;
84
- }
85
-
86
- .cell[data-strip-has-rows] > .footer {
87
- grid-row: 5;
88
- }
89
-
90
- .cell > .footer {
91
- align-self: start;
92
- }
93
-
94
77
  @container basalt-grid (max-width: 479.9px) {
95
78
  .cells {
96
79
  grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -108,10 +91,25 @@
108
91
  }
109
92
 
110
93
  .captionLine {
111
- grid-row: 1;
112
94
  display: flex;
113
- flex-wrap: wrap;
114
- align-items: center;
95
+ flex-wrap: nowrap;
96
+ align-items: flex-start;
97
+ column-gap: var(--vx-space-control-gap);
98
+ min-width: 0;
99
+ }
100
+
101
+ /* A cell with an action reserves the control's height on every caption line of the strip, so the
102
+ * values stay level whichever cell carries one. */
103
+ [data-strip-action-row] .captionLine {
104
+ min-height: calc(var(--vx-space-control-height-widget, 1.5rem) * var(--mantine-scale, 1));
105
+ }
106
+
107
+ /* Caption and qualifier share one line: the caption keeps its words, the qualifier gives way first. */
108
+ .captionMain {
109
+ display: flex;
110
+ flex: 1 1 0;
111
+ flex-wrap: nowrap;
112
+ align-items: baseline;
115
113
  column-gap: var(--vx-space-control-gap);
116
114
  min-width: 0;
117
115
  }
@@ -134,17 +132,56 @@
134
132
  font-family: var(--basalt-font-mono);
135
133
  font-size: var(--vx-text-micro);
136
134
  font-weight: 500;
135
+ line-height: 1.4;
137
136
  letter-spacing: 0.06em;
138
137
  text-transform: uppercase;
139
138
  color: var(--vx-faint);
140
139
  }
141
140
 
142
- /* The lowercase qualifier is the muted sans (mono is for the UPPERCASE caption only). It is one flex
143
- * item, so when it does not fit beside the caption it wraps WHOLE onto its own line below. */
141
+ /* The lowercase qualifier is the muted sans (mono is for the UPPERCASE caption only). */
144
142
  .qualifier {
143
+ flex: 0 100 auto;
144
+ min-width: 0;
145
+ overflow: hidden;
146
+ text-overflow: ellipsis;
147
+ white-space: nowrap;
145
148
  font-size: var(--vx-text-micro);
149
+ line-height: 1.4;
146
150
  color: var(--vx-muted);
147
- overflow-wrap: anywhere;
151
+ }
152
+
153
+ /* A narrow cell (~170px at 390): the qualifier takes its own line under the caption, and when any cell
154
+ * of the strip has a qualifier every cell reserves that line, so values share a baseline. */
155
+ @container basalt-card (max-width: 239.9px) {
156
+ .captionMain {
157
+ flex-wrap: wrap;
158
+ align-content: flex-start;
159
+ }
160
+
161
+ .qualifier {
162
+ flex: 0 0 100%;
163
+ }
164
+
165
+ .qualifier {
166
+ line-height: 1.25;
167
+ }
168
+
169
+ [data-strip-qualifier] .captionMain {
170
+ min-height: calc(var(--vx-text-micro) * (1.4 + 1.25));
171
+ }
172
+
173
+ /* The two caption lines read as one block: the value follows at the tight step. */
174
+ [data-strip-qualifier] .captionLine + * {
175
+ margin-block-start: var(--vx-space-stack-xs);
176
+ }
177
+ }
178
+
179
+ /* A control at the end of the caption line: it keeps its size, the caption truncates first. */
180
+ .action {
181
+ display: inline-flex;
182
+ flex: none;
183
+ align-items: center;
184
+ margin-inline-start: auto;
148
185
  }
149
186
 
150
187
  .valueRow {
@@ -180,7 +217,7 @@
180
217
  height: calc(var(--vx-text-kpi) * 1.25);
181
218
  }
182
219
 
183
- .cell[data-stale] {
220
+ .content[data-stale] {
184
221
  /* The package's one dimmed-state value (controls.module.css, panel-row.module.css). */
185
222
  opacity: 0.55;
186
223
  }
@@ -194,14 +231,10 @@
194
231
  min-width: 0;
195
232
  }
196
233
 
197
- .visualStack > .footer {
198
- margin-block-start: var(--vx-space-stack-sm);
199
- }
200
-
201
234
  /* A Sparkline's hover readout takes this line above its plot (`charts/sparkline.module.css`). The
202
235
  * cell's own stack gap already sits above it; the slot reserves the rest, so the chip never covers
203
236
  * the value. */
204
- .cell {
237
+ .content {
205
238
  --basalt-spark-readout-h: 1.125rem;
206
239
  }
207
240
 
@@ -209,6 +242,12 @@
209
242
  padding-top: max(0px, calc(var(--basalt-spark-readout-h) - var(--vx-space-stack-sm)));
210
243
  }
211
244
 
245
+ /* The state copy keeps the cell's inset on every side: the article ends at its own last track, so the
246
+ * foot inset (carried by the row-high slot, further down) cannot reach it. */
247
+ .content[data-strip-has-state] {
248
+ padding-block-end: var(--vx-space-stack-md);
249
+ }
250
+
212
251
  /* An empty cell's reason and an errored cell's message: one muted `sm` line, wrapping rather than
213
252
  * clipping (a 390px two-column cell is ~170px wide). */
214
253
  .reason {
@@ -282,6 +321,36 @@
282
321
  margin-left: -1px;
283
322
  }
284
323
 
324
+ /* A meter's start and end captions read as one phrase (name, then value) however wide the track. */
325
+ .footerCell [data-meter-captions] {
326
+ justify-content: flex-start;
327
+ column-gap: var(--vx-space-stack-md);
328
+ }
329
+
330
+ .footerCell [data-meter-captions] > * {
331
+ margin-inline-start: 0;
332
+ text-align: start;
333
+ }
334
+
335
+ /* From the full desktop count a footer entry may sit under the cell it qualifies (`under`): the row
336
+ * takes the cells' column grid, an entry with `--basalt-strip-footer-col` sits in that column, and any
337
+ * other takes the full row. Each entry keeps its own leading hairlines (`.footerCell`, below), so a
338
+ * placed entry reads as attached to its column and the columns beside it stay the strip's surface. */
339
+ @container basalt-grid (min-width: 800px) {
340
+ .footerRow[data-placed] {
341
+ display: grid;
342
+ grid-template-columns: repeat(var(--basalt-strip-cols), minmax(0, 1fr));
343
+ }
344
+
345
+ .footerRow[data-placed] > .footerCell {
346
+ grid-column: 1 / -1;
347
+ }
348
+
349
+ .footerRow[data-placed] > .footerCell[data-under] {
350
+ grid-column: var(--basalt-strip-footer-col);
351
+ }
352
+ }
353
+
285
354
  .footerCell {
286
355
  flex: 1 1 14rem;
287
356
  min-width: 0;
@@ -7,11 +7,15 @@ declare const classes: {
7
7
  readonly clip: string
8
8
  readonly cells: string
9
9
  readonly cell: string
10
+ readonly content: string
11
+ readonly action: string
10
12
  readonly captionLine: string
13
+ readonly captionMain: string
11
14
  readonly lead: string
12
15
  readonly caption: string
13
16
  readonly qualifier: string
14
17
  readonly valueRow: string
18
+ readonly heroFooter: string
15
19
  readonly value: string
16
20
  readonly unit: string
17
21
  readonly skeletonValue: string