basalt-ui 2.17.0 → 2.19.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 (120) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/MIGRATING.md +108 -12
  3. package/agent/agents/basalt-design-reviewer.md +2 -2
  4. package/agent/skills/basalt-design/SKILL.md +1 -1
  5. package/dist/cli/help.d.ts +1 -0
  6. package/dist/cli/help.d.ts.map +1 -1
  7. package/dist/cli/help.js +8 -2
  8. package/dist/cli/shot/capture.d.ts +12 -1
  9. package/dist/cli/shot/capture.d.ts.map +1 -1
  10. package/dist/cli/shot/capture.js +72 -10
  11. package/dist/cli/shot/index.d.ts +10 -1
  12. package/dist/cli/shot/index.d.ts.map +1 -1
  13. package/dist/cli/shot/index.js +40 -5
  14. package/dist/cli/shot/real-data.d.ts +35 -0
  15. package/dist/cli/shot/real-data.d.ts.map +1 -0
  16. package/dist/cli/shot/real-data.js +120 -0
  17. package/dist/cli/shot/serve.d.ts +2 -2
  18. package/dist/cli/shot/serve.d.ts.map +1 -1
  19. package/dist/cli/shot/serve.js +16 -2
  20. package/dist/commands/notifications/center.d.ts.map +1 -1
  21. package/dist/commands/notifications/center.js +18 -26
  22. package/dist/content/callout.d.ts +1 -1
  23. package/dist/content/callout.d.ts.map +1 -1
  24. package/dist/content/callout.js +10 -1
  25. package/dist/content/callout.module.css +15 -3
  26. package/dist/content/callout.module.css.d.ts +1 -0
  27. package/dist/dashboard/bar-list.d.ts +29 -0
  28. package/dist/dashboard/bar-list.d.ts.map +1 -0
  29. package/dist/dashboard/bar-list.js +65 -0
  30. package/dist/dashboard/bar-list.module.css +91 -0
  31. package/dist/dashboard/bar-list.module.css.d.ts +17 -0
  32. package/dist/dashboard/index.d.ts +2 -0
  33. package/dist/dashboard/index.d.ts.map +1 -1
  34. package/dist/dashboard/index.js +4 -0
  35. package/dist/dashboard/meter-model.d.ts +126 -0
  36. package/dist/dashboard/meter-model.d.ts.map +1 -0
  37. package/dist/dashboard/meter-model.js +135 -0
  38. package/dist/dashboard/meter-parts.d.ts +42 -0
  39. package/dist/dashboard/meter-parts.d.ts.map +1 -0
  40. package/dist/dashboard/meter-parts.js +297 -0
  41. package/dist/dashboard/meter.d.ts +123 -0
  42. package/dist/dashboard/meter.d.ts.map +1 -0
  43. package/dist/dashboard/meter.js +43 -0
  44. package/dist/dashboard/meter.module.css +268 -0
  45. package/dist/dashboard/meter.module.css.d.ts +39 -0
  46. package/dist/dashboard/scale.d.ts +9 -0
  47. package/dist/dashboard/scale.d.ts.map +1 -0
  48. package/dist/dashboard/scale.js +10 -0
  49. package/dist/dashboard/stat-card-parts.d.ts +3 -1
  50. package/dist/dashboard/stat-card-parts.d.ts.map +1 -1
  51. package/dist/dashboard/stat-card-parts.js +18 -3
  52. package/dist/dashboard/stat-card.d.ts +6 -5
  53. package/dist/dashboard/stat-card.d.ts.map +1 -1
  54. package/dist/dashboard/stat-card.js +48 -77
  55. package/dist/dashboard/stat-card.module.css +27 -7
  56. package/dist/dashboard/widget-header.d.ts.map +1 -1
  57. package/dist/dashboard/widget-header.js +2 -1
  58. package/dist/dashboard/widget-header.module.css +28 -1
  59. package/dist/index.d.ts +1 -1
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +5 -1
  62. package/dist/theme/chrome-vars.d.ts +29 -17
  63. package/dist/theme/chrome-vars.d.ts.map +1 -1
  64. package/dist/theme/chrome-vars.js +18 -8
  65. package/dist/theme/index.d.ts.map +1 -1
  66. package/dist/theme/index.js +9 -5
  67. package/dist/theme/status-dot.d.ts +6 -0
  68. package/dist/theme/status-dot.d.ts.map +1 -0
  69. package/dist/theme/status-dot.js +9 -0
  70. package/dist/theme/status-dot.module.css +9 -0
  71. package/dist/theme/status-dot.module.css.d.ts +8 -0
  72. package/dist/theme/status-verdict.d.ts +9 -0
  73. package/dist/theme/status-verdict.d.ts.map +1 -0
  74. package/dist/theme/status-verdict.js +13 -0
  75. package/dist/theme/status-verdict.module.css +23 -0
  76. package/dist/theme/status-verdict.module.css.d.ts +9 -0
  77. package/dist/tokens/derive.d.ts +11 -1
  78. package/dist/tokens/derive.d.ts.map +1 -1
  79. package/dist/tokens/derive.js +9 -24
  80. package/dist/tokens/status-text.d.ts +26 -0
  81. package/dist/tokens/status-text.d.ts.map +1 -0
  82. package/dist/tokens/status-text.js +68 -0
  83. package/llms.txt +32 -3
  84. package/package.json +1 -1
  85. package/src/cli/help.ts +22 -2
  86. package/src/cli/shot/capture.ts +98 -9
  87. package/src/cli/shot/index.ts +50 -4
  88. package/src/cli/shot/real-data.ts +165 -0
  89. package/src/cli/shot/serve.ts +28 -3
  90. package/src/commands/notifications/center.tsx +29 -32
  91. package/src/content/callout.module.css +15 -3
  92. package/src/content/callout.module.css.d.ts +1 -0
  93. package/src/content/callout.tsx +15 -2
  94. package/src/dashboard/bar-list.module.css +91 -0
  95. package/src/dashboard/bar-list.module.css.d.ts +17 -0
  96. package/src/dashboard/bar-list.tsx +125 -0
  97. package/src/dashboard/index.ts +2 -0
  98. package/src/dashboard/meter-model.ts +254 -0
  99. package/src/dashboard/meter-parts.tsx +407 -0
  100. package/src/dashboard/meter.module.css +268 -0
  101. package/src/dashboard/meter.module.css.d.ts +39 -0
  102. package/src/dashboard/meter.tsx +173 -0
  103. package/src/dashboard/scale.ts +13 -0
  104. package/src/dashboard/stat-card-parts.tsx +22 -2
  105. package/src/dashboard/stat-card.module.css +27 -7
  106. package/src/dashboard/stat-card.tsx +18 -52
  107. package/src/dashboard/widget-header.module.css +28 -1
  108. package/src/dashboard/widget-header.tsx +4 -1
  109. package/src/index.ts +4 -0
  110. package/src/theme/__snapshots__/plain-theme.test.ts.snap +88 -16
  111. package/src/theme/chrome-vars.ts +48 -23
  112. package/src/theme/index.ts +10 -6
  113. package/src/theme/status-dot.module.css +9 -0
  114. package/src/theme/status-dot.module.css.d.ts +8 -0
  115. package/src/theme/status-dot.tsx +19 -0
  116. package/src/theme/status-verdict.module.css +23 -0
  117. package/src/theme/status-verdict.module.css.d.ts +9 -0
  118. package/src/theme/status-verdict.tsx +27 -0
  119. package/src/tokens/derive.ts +19 -31
  120. package/src/tokens/status-text.ts +85 -0
@@ -0,0 +1,268 @@
1
+ /*
2
+ * Meter — one neutral track, ordered fills, optional target tick (docs/waves/design-parity/SPEC.md
3
+ * § 6.3). Flat fills, no hatching. Bar height 6 is the measured reference; the radius is the `fine`
4
+ * step so the track follows the radius knob.
5
+ */
6
+
7
+ .root {
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: var(--vx-space-stack-xs, 0.25rem);
11
+ min-width: 0;
12
+ }
13
+
14
+ .root.zoned {
15
+ position: relative;
16
+ }
17
+
18
+ .track {
19
+ position: relative;
20
+ display: flex;
21
+ height: 0.375rem;
22
+ overflow: hidden;
23
+ border-radius: var(--vx-radius-fine);
24
+ background: var(--vx-surface-subtle);
25
+ }
26
+
27
+ /* The tick is drawn OVER the fills and outside the clipped track, so it can stand 2px proud of it. */
28
+ .trackBox {
29
+ position: relative;
30
+ }
31
+
32
+ .fill {
33
+ flex: none;
34
+ height: 100%;
35
+ background: var(--vx-line);
36
+ }
37
+
38
+ /* The committed/forecast pair: the same neutral at two strengths. Flat, never hatched. */
39
+ .forecastFill {
40
+ background: color-mix(in srgb, var(--vx-line) 45%, transparent);
41
+ }
42
+
43
+ .zone {
44
+ position: absolute;
45
+ inset-block: 0;
46
+ }
47
+
48
+ /*
49
+ * Zone names under the band: absolutely placed at each band start so they stay on the band. When
50
+ * they would collide the band collapses (hidden but still laid out, so it can be re-measured) and the
51
+ * same names wrap as a list. The holding zone is ink, the rest muted.
52
+ */
53
+ .zoneBand {
54
+ position: relative;
55
+ /* Labels are absolutely placed, so the row needs its own line height. */
56
+ height: 1.25em;
57
+ font-family: var(--basalt-font-mono);
58
+ font-size: var(--vx-text-micro);
59
+ color: var(--vx-muted);
60
+ }
61
+
62
+ /*
63
+ * Hidden but laid out, so a resize can measure it again. Absolute against `.root.zoned`, which has
64
+ * no inline padding, so `inset-inline: 0` gives the band the same width as when it was in flow.
65
+ */
66
+ .zoneBand[data-collapsed] {
67
+ position: absolute;
68
+ top: 0;
69
+ inset-inline: 0;
70
+ visibility: hidden;
71
+ pointer-events: none;
72
+ }
73
+
74
+ .zoneLabel {
75
+ position: absolute;
76
+ top: 0;
77
+ white-space: nowrap;
78
+ }
79
+
80
+ .zoneLabelHolding {
81
+ font-weight: 500;
82
+ color: var(--vx-ink);
83
+ }
84
+
85
+ .zoneList {
86
+ display: flex;
87
+ flex-wrap: wrap;
88
+ gap: var(--vx-space-stack-xs) var(--vx-space-stack-sm);
89
+ font-family: var(--basalt-font-mono);
90
+ font-size: var(--vx-text-micro);
91
+ color: var(--vx-muted);
92
+ }
93
+
94
+ .zoneListItem {
95
+ min-width: 0;
96
+ overflow-wrap: anywhere;
97
+ }
98
+
99
+ /* The reading under the band, centred on the marker. Clipped so it never widens the row before the first measure. */
100
+ .zoneReadingRow {
101
+ --basalt-reading-dir: 1;
102
+ position: relative;
103
+ height: 1.25em;
104
+ overflow: clip;
105
+ font-family: var(--basalt-font-mono);
106
+ font-size: var(--vx-text-micro);
107
+ }
108
+
109
+ .zoneReadingRow:dir(rtl) {
110
+ --basalt-reading-dir: -1;
111
+ }
112
+
113
+ /* Before the first measure the start edge sits AT the marker, so the label shifts back half its width
114
+ * along the inline axis (the physical `translate` flips sign in RTL). Measured, the start edge is exact. */
115
+ .zoneReading {
116
+ position: absolute;
117
+ top: 0;
118
+ translate: calc(-50% * var(--basalt-reading-dir)) 0;
119
+ white-space: nowrap;
120
+ font-weight: 500;
121
+ color: var(--vx-ink);
122
+ }
123
+
124
+ .zoneReading[data-measured] {
125
+ translate: none;
126
+ }
127
+
128
+ /* The reading on a zone track: a notch standing proud of the bands, in ink. */
129
+ .marker {
130
+ position: absolute;
131
+ top: -3px;
132
+ bottom: -3px;
133
+ width: 3px;
134
+ margin-inline-start: -1.5px;
135
+ border-radius: var(--vx-radius-fine);
136
+ background: var(--vx-ink);
137
+ }
138
+
139
+ .tick {
140
+ position: absolute;
141
+ top: -2px;
142
+ bottom: -2px;
143
+ width: 2px;
144
+ margin-inline-start: -1px;
145
+ border-radius: var(--vx-radius-fine);
146
+ background: var(--vx-ink);
147
+ }
148
+
149
+ .boundaryTick {
150
+ composes: tick;
151
+ background: var(--vx-muted);
152
+ }
153
+
154
+ .captions {
155
+ display: flex;
156
+ flex-wrap: wrap;
157
+ align-items: baseline;
158
+ justify-content: space-between;
159
+ gap: var(--vx-space-control-gap, 0.375rem);
160
+ font-family: var(--basalt-font-mono);
161
+ font-size: var(--vx-text-micro);
162
+ color: var(--vx-muted);
163
+ }
164
+
165
+ /* Captions never truncate: the row wraps, and a caption wider than the row wraps inside itself. */
166
+ .caption {
167
+ min-width: 0;
168
+ overflow-wrap: anywhere;
169
+ }
170
+
171
+ /* Alone in the row, or wrapped onto its own line, the end caption still sits at the end. */
172
+ .captionEnd {
173
+ composes: caption;
174
+ margin-inline-start: auto;
175
+ text-align: end;
176
+ }
177
+
178
+ /* Categorical segments: one caption per part under the track, wrapping at narrow widths. */
179
+ .partCaptions {
180
+ display: flex;
181
+ flex-wrap: wrap;
182
+ gap: var(--vx-space-stack-xs, 0.25rem) var(--vx-space-stack-sm);
183
+ margin: 0;
184
+ padding: 0;
185
+ list-style: none;
186
+ font-family: var(--basalt-font-mono);
187
+ font-size: var(--vx-text-micro);
188
+ color: var(--vx-muted);
189
+ }
190
+
191
+ .partCaption {
192
+ display: inline-flex;
193
+ align-items: baseline;
194
+ gap: var(--vx-space-control-gap, 0.375rem);
195
+ min-width: 0;
196
+ overflow-wrap: anywhere;
197
+ }
198
+
199
+ /* A shape cue beside the name, so the part never reads by colour alone. */
200
+ .swatch {
201
+ flex: none;
202
+ width: 0.5rem;
203
+ height: 0.5rem;
204
+ border-radius: var(--vx-radius-fine);
205
+ }
206
+
207
+ .empty {
208
+ font-size: var(--vx-text-sm);
209
+ color: var(--vx-muted);
210
+ }
211
+
212
+ /* The skeleton holds the track + one caption line: 6 + 4 + a micro line. */
213
+ .skeletonTrack {
214
+ height: 0.375rem;
215
+ }
216
+
217
+ .skeletonCaption {
218
+ width: 40%;
219
+ height: 0.75rem;
220
+ }
221
+
222
+ /* ── ring ────────────────────────────────────────────────────────────────────────────────────── */
223
+
224
+ .ringBox {
225
+ position: relative;
226
+ display: inline-flex;
227
+ align-items: center;
228
+ justify-content: center;
229
+ align-self: flex-start;
230
+ box-sizing: border-box;
231
+ /* 80px, growing (still square) when the value is wider than the ring's inner circle. */
232
+ min-width: 5rem;
233
+ width: max-content;
234
+ aspect-ratio: 1;
235
+ /* 12px at the default step: keeps the value inside the ring's stroke. */
236
+ padding: calc(1.5 * var(--vx-space-stack-sm, 0.5rem));
237
+ }
238
+
239
+ .ring {
240
+ position: absolute;
241
+ inset: 0;
242
+ width: 100%;
243
+ height: 100%;
244
+ transform: rotate(-90deg);
245
+ }
246
+
247
+ .ringTrack {
248
+ fill: none;
249
+ stroke: var(--vx-surface-subtle);
250
+ }
251
+
252
+ .ringArc {
253
+ fill: none;
254
+ stroke: var(--vx-line);
255
+ }
256
+
257
+ .ringValue {
258
+ position: relative;
259
+ font-family: var(--basalt-font-mono);
260
+ font-size: var(--vx-text-kpi);
261
+ font-weight: 500;
262
+ color: var(--vx-ink);
263
+ }
264
+
265
+ .skeletonRing {
266
+ width: 5rem;
267
+ height: 5rem;
268
+ }
@@ -0,0 +1,39 @@
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 root: string
7
+ readonly zoned: string
8
+ readonly track: string
9
+ readonly trackBox: string
10
+ readonly fill: string
11
+ readonly forecastFill: string
12
+ readonly zone: string
13
+ readonly zoneBand: string
14
+ readonly zoneLabel: string
15
+ readonly zoneLabelHolding: string
16
+ readonly zoneList: string
17
+ readonly zoneListItem: string
18
+ readonly zoneReadingRow: string
19
+ readonly zoneReading: string
20
+ readonly marker: string
21
+ readonly tick: string
22
+ readonly boundaryTick: string
23
+ readonly captions: string
24
+ readonly caption: string
25
+ readonly captionEnd: string
26
+ readonly partCaptions: string
27
+ readonly partCaption: string
28
+ readonly swatch: string
29
+ readonly empty: string
30
+ readonly skeletonTrack: string
31
+ readonly skeletonCaption: string
32
+ readonly ringBox: string
33
+ readonly ring: string
34
+ readonly ringTrack: string
35
+ readonly ringArc: string
36
+ readonly ringValue: string
37
+ readonly skeletonRing: string
38
+ }
39
+ export default classes
@@ -0,0 +1,9 @@
1
+ /** Shared by `Meter` and `BarList`: the one place a value becomes a track percentage. Internal. */
2
+ /** Clamps to 0–1; a non-finite fraction is 0. */
3
+ export declare const clamp01: (n: number) => number;
4
+ /** A 0–1 fraction as a percent, rounded so float noise never reaches the DOM. */
5
+ export declare const toPct: (n: number) => number;
6
+ /** A value on a track that ends at `scale`; a non-finite value or an empty scale draws nothing. */
7
+ export declare const barPercent: (value: number, scale: number) => number;
8
+ export declare const asText: (n: number) => string;
9
+ //# sourceMappingURL=scale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../src/dashboard/scale.ts"],"names":[],"mappings":"AAAA,mGAAmG;AAEnG,iDAAiD;AACjD,eAAO,MAAM,OAAO,GAAI,GAAG,MAAM,KAAG,MAAgE,CAAA;AAEpG,iFAAiF;AACjF,eAAO,MAAM,KAAK,GAAI,GAAG,MAAM,KAAG,MAA8C,CAAA;AAEhF,mGAAmG;AACnG,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,EAAE,OAAO,MAAM,KAAG,MACgC,CAAA;AAE1F,eAAO,MAAM,MAAM,GAAI,GAAG,MAAM,KAAG,MAAmB,CAAA"}
@@ -0,0 +1,10 @@
1
+ const clamp01 = (n) => Number.isFinite(n) ? Math.min(1, Math.max(0, n)) : 0;
2
+ const toPct = (n) => Math.round(clamp01(n) * 1e4) / 100;
3
+ const barPercent = (value, scale) => Number.isFinite(value) && Number.isFinite(scale) && scale > 0 ? toPct(value / scale) : 0;
4
+ const asText = (n) => String(n);
5
+ export {
6
+ asText,
7
+ barPercent,
8
+ clamp01,
9
+ toPct
10
+ };
@@ -1,9 +1,11 @@
1
1
  import type { CSSProperties, ReactNode } from 'react';
2
+ import type { Tone } from '../common/props.js';
2
3
  export type CaptionRowProps = {
3
4
  title: string;
4
5
  icon?: ReactNode;
5
6
  info?: string;
6
7
  qualifier?: string;
8
+ tone?: Tone;
7
9
  actions?: ReactNode;
8
10
  };
9
11
  /**
@@ -11,7 +13,7 @@ export type CaptionRowProps = {
11
13
  * caption + info + qualifier do not fit, the qualifier wraps UNDER the caption instead of truncating
12
14
  * either: the container's width decides, never the viewport's.
13
15
  */
14
- export declare function CaptionRow({ title, icon, info, qualifier, actions }: CaptionRowProps): import("react").JSX.Element;
16
+ export declare function CaptionRow({ title, icon, info, qualifier, tone, actions }: CaptionRowProps): import("react").JSX.Element;
15
17
  export type FootProps = {
16
18
  /** Reserve the foot's height (a visual AND a footer line) even when a branch shows neither. */
17
19
  reserve: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"stat-card-parts.d.ts","sourceRoot":"","sources":["../../src/dashboard/stat-card-parts.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,eAAe,+BAuBpF;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,+FAA+F;IAC/F,OAAO,EAA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iF;IACjF,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,SAAS,CAAA;IACrB,UAAU,EAAE,SAAS,CAAA;CACtB,CAAA;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,SAAS,sCAQ9E;AAED;0FAC0F;AAC1F,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,CAK3E;AAED,wBAAgB,aAAa,gCAE5B;AAED,wBAAgB,cAAc,gCAE7B;AAED,wBAAgB,cAAc,gCAE7B;AAED,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,+BAU3D"}
@@ -2,17 +2,32 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Skeleton } from "@mantine/core";
3
3
  import { IconSlot } from "../theme/icon-slot.js";
4
4
  import { CtlSlot } from "../theme/index.js";
5
+ import { StatusVerdict } from "../theme/status-verdict.js";
6
+ import { VX } from "../tokens/index.js";
5
7
  import { InfoGlyph } from "./widget-header.js";
6
8
  import classes from "./stat-card.module.css";
7
- function CaptionRow({ title, icon, info, qualifier, actions }) {
9
+ const TONE_WORD = {
10
+ good: { word: "OK", phrase: "Within the good threshold" },
11
+ warn: { word: "Watch", phrase: "Past the warning threshold" },
12
+ bad: { word: "Over", phrase: "Past the severe threshold" }
13
+ };
14
+ function CaptionRow({ title, icon, info, qualifier, tone, actions }) {
8
15
  return /* @__PURE__ */ jsxs("div", { className: classes.captionRow, children: [
9
16
  /* @__PURE__ */ jsxs("div", { className: classes.captionMain, children: [
10
17
  /* @__PURE__ */ jsxs("div", { className: classes.lead, children: [
11
18
  /* @__PURE__ */ jsxs("h3", { className: classes.caption, children: [
12
19
  icon !== void 0 && /* @__PURE__ */ jsx(IconSlot, { className: classes.icon, children: icon }),
13
- /* @__PURE__ */ jsx("span", { className: classes.captionText, children: title })
20
+ /* @__PURE__ */ jsx("span", { className: classes.captionText, "data-widget-title": true, children: title })
14
21
  ] }),
15
- info !== void 0 && /* @__PURE__ */ jsx(InfoGlyph, { text: info })
22
+ info !== void 0 && /* @__PURE__ */ jsx(InfoGlyph, { text: info }),
23
+ tone !== void 0 && /* @__PURE__ */ jsx(
24
+ StatusVerdict,
25
+ {
26
+ color: VX.status[tone],
27
+ word: TONE_WORD[tone].word,
28
+ phrase: TONE_WORD[tone].phrase
29
+ }
30
+ )
16
31
  ] }),
17
32
  qualifier !== void 0 && /* @__PURE__ */ jsx("span", { className: classes.qualifier, children: qualifier })
18
33
  ] }),
@@ -12,7 +12,7 @@ export type StatCardSlot = 'root' | 'header' | 'body' | 'sparkline';
12
12
  *
13
13
  * `value` is a pre-formatted `string` for the same reason the hero's is: the card cannot know the
14
14
  * locale, the currency or the precision the number was measured at. `tone` marks ONE row as past a
15
- * threshold and is the same vocabulary as the card's own `tone`, so a row saying `bad` and a rail
15
+ * threshold and is the same vocabulary as the card's own `tone`, so a row saying `bad` and a dot
16
16
  * saying `bad` are the same claim at two scales; omitting it is untinted, never `'good'`.
17
17
  */
18
18
  export type StatCardBreakdownRow = {
@@ -128,10 +128,11 @@ export type StatCardProps = BasaltProps & SlotStylesProps<StatCardSlot> & Omit<W
128
128
  /** Caption-row right slot (e.g. a ghost "..." menu trigger) — wrapped in `CtlSlot tier="widget"`,
129
129
  * so a raw `ActionIcon` with no `size` lands on the 24px step the caption row holds (C1/C5). */
130
130
  actions?: ReactNode;
131
- /** Threshold verdict — draws an accent rail down the card's leading edge and announces itself to
132
- * assistive tech. Omitting it is NOT `'good'`: omitted covers a reading that is fine AND one that
133
- * is absent, and stays untinted so a card with nothing measured can never render green. Pass
134
- * `'good'` only to assert a measured value that has earned the verdict. */
131
+ /** Threshold verdict — a status dot plus a short word (`OK` / `Watch` / `Over`) on the caption
132
+ * row, with the full phrase for assistive tech. Omitting it is NOT `'good'`: omitted covers a
133
+ * reading that is fine AND one that is absent, and stays untinted so a card with nothing
134
+ * measured can never render green. Pass `'good'` only to assert a measured value that has
135
+ * earned the verdict. */
135
136
  tone?: Tone;
136
137
  };
137
138
  export declare function StatCard({ title, icon, info, qualifier, subtitle, value, unit, breakdown, query, loading, emptyText, delta, deltaPeriod, deltaPolarity, deltaFormat, deltaGlyph, sparkline, sparklinePlacement, actions, tone, className, style, classNames, }: StatCardProps): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"stat-card.d.ts","sourceRoot":"","sources":["../../src/dashboard/stat-card.tsx"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAUtC,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,iBAAiB,CAAA;AAIxB,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEzE,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,eAAe,CAAA;AAGhE;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAA;AAEnE;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAA;CACrB,CAAA;AAaD;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AA6CD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,aAAa,GAAG,WAAW,GACrC,eAAe,CAAC,YAAY,CAAC,GAC7B,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,GACxC,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,CAAA;IAC/B;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,qBAAqB,KAAK,SAAS,CAAC,CAAA;IACpE;;qBAEiB;IACjB,kBAAkB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IACtC;oGACgG;IAChG,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;;;6BAIyB;IACzB,IAAI,CAAC,EAAE,IAAI,CAAA;CACZ,CAAA;AA0EH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,SAAS,EACT,KAAK,EACL,OAAe,EACf,SAAqC,EACrC,KAAK,EACL,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,EACV,SAAS,EACT,kBAA4B,EAC5B,OAAO,EACP,IAAI,EACJ,SAAS,EACT,KAAK,EACL,UAAU,GACX,EAAE,aAAa,+BAiLf"}
@@ -1,5 +1,5 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import { Box, Card, VisuallyHidden } from "@mantine/core";
2
+ import { Card, VisuallyHidden } from "@mantine/core";
3
3
  import { useEffect, useState } from "react";
4
4
  import {
5
5
  BreakdownSkeleton,
@@ -11,7 +11,6 @@ import {
11
11
  rightSlotStyle
12
12
  } from "./stat-card-parts.js";
13
13
  import { DeltaBadge } from "./delta-badge.js";
14
- import { VX } from "../tokens/index.js";
15
14
  import { cx } from "../common/props.js";
16
15
  import { ErrorState, QueryState, resolveQueryBranch } from "./query-state.js";
17
16
  import classes from "./stat-card.module.css";
@@ -35,12 +34,6 @@ function useSlotWidth(active) {
35
34
  }, [active, node]);
36
35
  return { ref: setNode, width };
37
36
  }
38
- const TONE_RAIL_WIDTH = 3;
39
- const TONE_LABEL = {
40
- good: "Within the good threshold",
41
- warn: "Past the warning threshold",
42
- bad: "Past the severe threshold"
43
- };
44
37
  function renderValueBody({
45
38
  pending,
46
39
  resolved,
@@ -169,7 +162,7 @@ function StatCard({
169
162
  const hasBleedVisual = sparkline !== void 0 && bleeds;
170
163
  const visualNode = renderVisualNode({ show: hasBleedVisual, pending, slot: sparklineSlot });
171
164
  const footerNode = renderFooterNode({ subtitle, pending });
172
- return /* @__PURE__ */ jsxs(
165
+ return /* @__PURE__ */ jsx(
173
166
  Card,
174
167
  {
175
168
  className: cx(classNames?.root, className),
@@ -188,8 +181,7 @@ function StatCard({
188
181
  // grid row stretch to the tallest.
189
182
  padding: "var(--vx-space-card-inset-y, 0.75rem) var(--vx-space-card-inset-x, 1rem)",
190
183
  overflow: "hidden",
191
- // Anchors the tone rail. Set unconditionally so a card's stacking context does not change
192
- // depending on whether it happens to have crossed a threshold this render.
184
+ // Consumers may anchor overlays (badges, menus) to the card, so it stays a positioned box.
193
185
  position: "relative",
194
186
  // The card's own width drives its chrome (`stat-card.module.css`).
195
187
  containerType: "inline-size",
@@ -197,76 +189,55 @@ function StatCard({
197
189
  ...style
198
190
  },
199
191
  "data-tone": tone,
200
- children: [
201
- tone !== void 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
202
- /* @__PURE__ */ jsx(VisuallyHidden, { children: TONE_LABEL[tone] }),
203
- /* @__PURE__ */ jsx(
204
- Box,
205
- {
206
- "aria-hidden": "true",
207
- style: {
208
- position: "absolute",
209
- insetBlock: 0,
210
- insetInlineStart: 0,
211
- width: TONE_RAIL_WIDTH,
212
- // `Tone`'s members are `VX.status` keys by construction, so the rail reads the
213
- // per-scheme `--vx-status-*` solid directly — never a hex, so it re-resolves in both
214
- // schemes and under a consumer's `derive` retune. Contrast against
215
- // `--vx-surface-panel` is measured in `theme/contrast.test.ts`.
216
- background: VX.status[tone]
217
- }
218
- }
219
- )
220
- ] }),
221
- /* @__PURE__ */ jsxs(
222
- "div",
223
- {
224
- className: cx(classes.body, classNames?.body),
225
- "data-placement": sparklinePlacement,
226
- ...pending && { "aria-busy": true },
227
- children: [
228
- pending && /* @__PURE__ */ jsx(VisuallyHidden, { children: `Loading ${title}` }),
229
- /* @__PURE__ */ jsxs("div", { className: cx(classes.header, classNames?.header), children: [
230
- /* @__PURE__ */ jsx(
231
- CaptionRow,
232
- {
233
- title,
234
- ...icon !== void 0 && { icon },
235
- ...info !== void 0 && { info },
236
- ...qualifier !== void 0 && { qualifier },
237
- ...actions !== void 0 && { actions }
238
- }
239
- ),
240
- valueBody,
241
- bleeds && (pending ? hasBreakdown && /* @__PURE__ */ jsx(BreakdownSkeleton, { rows: breakdownCount }) : ready && breakdownContent)
242
- ] }),
243
- rightRow && /* @__PURE__ */ jsx("div", { className: classes.metricsRow, children: ready ? /* @__PURE__ */ jsxs(Fragment, { children: [
244
- breakdownContent,
245
- sparklineSlot
246
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
247
- hasBreakdown && /* @__PURE__ */ jsx(BreakdownSkeleton, { rows: breakdownCount }),
248
- sparkline !== void 0 && /* @__PURE__ */ jsx(
249
- "div",
250
- {
251
- className: classes.sparklineRight,
252
- style: rightSlotStyle(SPARKLINE_RIGHT_WIDTH, SPARKLINE_HEIGHT),
253
- children: /* @__PURE__ */ jsx(VisualSkeleton, {})
254
- }
255
- )
256
- ] }) }),
192
+ children: /* @__PURE__ */ jsxs(
193
+ "div",
194
+ {
195
+ className: cx(classes.body, classNames?.body),
196
+ "data-placement": sparklinePlacement,
197
+ ...pending && { "aria-busy": true },
198
+ children: [
199
+ pending && /* @__PURE__ */ jsx(VisuallyHidden, { children: `Loading ${title}` }),
200
+ /* @__PURE__ */ jsxs("div", { className: cx(classes.header, classNames?.header), children: [
257
201
  /* @__PURE__ */ jsx(
258
- Foot,
202
+ CaptionRow,
259
203
  {
260
- reserve: hasBleedVisual || subtitle !== void 0,
261
- visualBand: bleeds,
262
- visualNode,
263
- footerNode
204
+ title,
205
+ ...icon !== void 0 && { icon },
206
+ ...info !== void 0 && { info },
207
+ ...qualifier !== void 0 && { qualifier },
208
+ ...tone !== void 0 && { tone },
209
+ ...actions !== void 0 && { actions }
210
+ }
211
+ ),
212
+ valueBody,
213
+ bleeds && (pending ? hasBreakdown && /* @__PURE__ */ jsx(BreakdownSkeleton, { rows: breakdownCount }) : ready && breakdownContent)
214
+ ] }),
215
+ rightRow && /* @__PURE__ */ jsx("div", { className: classes.metricsRow, children: ready ? /* @__PURE__ */ jsxs(Fragment, { children: [
216
+ breakdownContent,
217
+ sparklineSlot
218
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
219
+ hasBreakdown && /* @__PURE__ */ jsx(BreakdownSkeleton, { rows: breakdownCount }),
220
+ sparkline !== void 0 && /* @__PURE__ */ jsx(
221
+ "div",
222
+ {
223
+ className: classes.sparklineRight,
224
+ style: rightSlotStyle(SPARKLINE_RIGHT_WIDTH, SPARKLINE_HEIGHT),
225
+ children: /* @__PURE__ */ jsx(VisualSkeleton, {})
264
226
  }
265
227
  )
266
- ]
267
- }
268
- )
269
- ]
228
+ ] }) }),
229
+ /* @__PURE__ */ jsx(
230
+ Foot,
231
+ {
232
+ reserve: hasBleedVisual || subtitle !== void 0,
233
+ visualBand: bleeds,
234
+ visualNode,
235
+ footerNode
236
+ }
237
+ )
238
+ ]
239
+ }
240
+ )
270
241
  }
271
242
  );
272
243
  }
@@ -173,15 +173,15 @@
173
173
  height: var(--basalt-stat-figure-h);
174
174
  }
175
175
 
176
+ /* Inset on both sides, unlike the sparkline at rest (which bleeds): a placeholder that touches one
177
+ * card edge and stops short of the other reads as misaligned, and a Meter in the slot is inset anyway. */
176
178
  .skeletonVisual {
177
179
  --skeleton-radius: 0;
178
180
  height: var(--basalt-stat-visual-h);
179
- margin-inline: calc(-1 * var(--vx-space-card-inset-x, 1rem));
180
181
  }
181
182
 
182
183
  .sparklineRight .skeletonVisual {
183
184
  flex: 1 1 auto;
184
- margin-inline: 0;
185
185
  }
186
186
 
187
187
  .skeletonRowBox {
@@ -318,11 +318,11 @@
318
318
  }
319
319
 
320
320
  /*
321
- * A row past a threshold. Same vocabulary and the same per-scheme solids as the card's own tone rail
322
- * (`stat-card.tsx`'s `VX.status[tone]`), so a row saying `bad` and a rail saying `bad` are one claim
323
- * at two scales. Colour is not the only carrier at the CARD level (the rail ships a
324
- * `VisuallyHidden` verdict); at the ROW level the label is the carrier — a row reading
325
- * `Paid · 1,204` states its own subject either way, and the tint only ranks it.
321
+ * A row past a threshold. Same vocabulary and the same per-scheme solids as the card's own tone dot
322
+ * (`VX.status[tone]`), so a row saying `bad` and a dot saying `bad` are one claim at two scales.
323
+ * Colour is not the only carrier at the CARD level (the dot ships a word); at
324
+ * the ROW level the label is the carrier — a row reading `Paid · 1,204` states its own subject
325
+ * either way, and the tint only ranks it.
326
326
  */
327
327
  .breakdownRow[data-tone='good'] .breakdownValue {
328
328
  color: var(--vx-status-good);
@@ -341,6 +341,22 @@
341
341
  margin-inline: calc(-1 * var(--vx-space-card-inset-x, 1rem));
342
342
  }
343
343
 
344
+ /* A Meter in the visual slot is a block, not a chart: it sizes to its content and keeps the card's
345
+ * inline inset instead of the sparkline's fixed 22px and side bleed. */
346
+ .sparklineBleed:has(> [data-basalt-meter]) {
347
+ height: auto;
348
+ margin-inline: 0;
349
+ }
350
+
351
+ /* The `right` placement: the fixed basis, 22px height and clip are a sparkline's box. A Meter takes the
352
+ * row's remaining width and its own height, unclipped. */
353
+ .sparklineRight:has(> [data-basalt-meter]) {
354
+ flex: 1 1 auto;
355
+ height: auto;
356
+ overflow: visible;
357
+ align-items: stretch;
358
+ }
359
+
344
360
  /* Asks for `StatCard`'s `SPARKLINE_RIGHT_WIDTH`/`_HEIGHT` (handed down as custom properties, so this
345
361
  * rule and the narrow-card reset below can both reach them). `align-self: flex-end` is the one alignment
346
362
  * this restructure keeps at the SPARKLINE's own level rather than the row's: `.metricsRow` does not
@@ -375,4 +391,8 @@
375
391
  margin-top: auto;
376
392
  margin-inline: calc(-1 * var(--vx-space-card-inset-x, 1rem));
377
393
  }
394
+
395
+ .metricsRow .sparklineRight:has(> [data-basalt-meter], > .skeletonVisual) {
396
+ margin-inline: 0;
397
+ }
378
398
  }