basalt-ui 2.19.0 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/MIGRATING.md +291 -12
  3. package/agent/agents/basalt-design-reviewer.md +22 -5
  4. package/agent/rules/basalt-charts.md +1 -1
  5. package/agent/rules/basalt-mantine.md +1 -1
  6. package/agent/rules/basalt-tokens.md +2 -2
  7. package/agent/skills/basalt-app/SKILL.md +1 -1
  8. package/agent/skills/basalt-design/SKILL.md +10 -23
  9. package/agent/skills/basalt-design/references/anti-defaults.md +24 -0
  10. package/agent/skills/basalt-design/references/catalogue.md +48 -0
  11. package/agent/skills/basalt-design/references/concept.md +36 -0
  12. package/agent/skills/basalt-design/references/encoding-rules.md +45 -0
  13. package/agent/skills/basalt-design/references/stat-tile.md +24 -0
  14. package/agent/templates/AGENTS-block.md.tpl +3 -3
  15. package/agent/templates/DESIGN.md.tpl +1 -1
  16. package/configs/oxlint-plugin.js +34 -19
  17. package/configs/oxlint-plugin.test.ts +32 -2
  18. package/dist/charts/ChartCard.d.ts +33 -4
  19. package/dist/charts/ChartCard.d.ts.map +1 -1
  20. package/dist/charts/ChartCard.js +37 -11
  21. package/dist/charts/Donut.d.ts.map +1 -1
  22. package/dist/charts/Donut.js +13 -1
  23. package/dist/charts/Heatmap.js +1 -1
  24. package/dist/charts/Sparkline.d.ts +7 -1
  25. package/dist/charts/Sparkline.d.ts.map +1 -1
  26. package/dist/charts/Sparkline.js +137 -18
  27. package/dist/charts/box.d.ts +2 -0
  28. package/dist/charts/box.d.ts.map +1 -1
  29. package/dist/charts/box.js +2 -0
  30. package/dist/charts/chart-box.module.css +30 -0
  31. package/dist/charts/chart-box.module.css.d.ts +1 -0
  32. package/dist/charts/chart-card.module.css +47 -0
  33. package/dist/charts/chart-card.module.css.d.ts +7 -0
  34. package/dist/charts/compile.d.ts.map +1 -1
  35. package/dist/charts/compile.js +35 -8
  36. package/dist/charts/host.d.ts.map +1 -1
  37. package/dist/charts/host.js +2 -1
  38. package/dist/charts/index.d.ts +1 -1
  39. package/dist/charts/index.d.ts.map +1 -1
  40. package/dist/charts/sparkline.module.css +59 -0
  41. package/dist/charts/sparkline.module.css.d.ts +13 -0
  42. package/dist/charts/state.d.ts +5 -0
  43. package/dist/charts/state.d.ts.map +1 -1
  44. package/dist/charts/state.js +34 -4
  45. package/dist/charts/types.d.ts +6 -0
  46. package/dist/charts/types.d.ts.map +1 -1
  47. package/dist/cli/check-theme.d.ts.map +1 -1
  48. package/dist/cli/check-theme.js +3 -0
  49. package/dist/cli/help.d.ts.map +1 -1
  50. package/dist/cli/help.js +3 -2
  51. package/dist/cli/index.d.ts +4 -2
  52. package/dist/cli/index.d.ts.map +1 -1
  53. package/dist/cli/index.js +27 -15
  54. package/dist/cli/init.d.ts.map +1 -1
  55. package/dist/cli/init.js +3 -2
  56. package/dist/cli/shot/capture.d.ts.map +1 -1
  57. package/dist/cli/shot/capture.js +6 -1
  58. package/dist/cli/shot/detect.d.ts +51 -0
  59. package/dist/cli/shot/detect.d.ts.map +1 -0
  60. package/dist/cli/shot/detect.js +396 -0
  61. package/dist/cli/shot/index.d.ts.map +1 -1
  62. package/dist/cli/shot/index.js +7 -4
  63. package/dist/cli/shot/measure.d.ts +2 -0
  64. package/dist/cli/shot/measure.d.ts.map +1 -1
  65. package/dist/cli/shot/measure.js +2 -0
  66. package/dist/cli/shot/types.d.ts +4 -1
  67. package/dist/cli/shot/types.d.ts.map +1 -1
  68. package/dist/cli/shot/types.js +2 -0
  69. package/dist/cli/sync.d.ts +2 -0
  70. package/dist/cli/sync.d.ts.map +1 -1
  71. package/dist/cli/sync.js +2 -2
  72. package/dist/common/retry-button.d.ts +12 -0
  73. package/dist/common/retry-button.d.ts.map +1 -0
  74. package/dist/common/retry-button.js +22 -0
  75. package/dist/common/retry-button.module.css +58 -0
  76. package/dist/common/retry-button.module.css.d.ts +8 -0
  77. package/dist/controls/sync-button.d.ts +3 -0
  78. package/dist/controls/sync-button.d.ts.map +1 -1
  79. package/dist/dashboard/bar-list.d.ts +18 -4
  80. package/dist/dashboard/bar-list.d.ts.map +1 -1
  81. package/dist/dashboard/bar-list.js +39 -15
  82. package/dist/dashboard/bar-list.module.css +77 -2
  83. package/dist/dashboard/bar-list.module.css.d.ts +1 -0
  84. package/dist/dashboard/delta-badge.d.ts +8 -3
  85. package/dist/dashboard/delta-badge.d.ts.map +1 -1
  86. package/dist/dashboard/delta-badge.js +9 -2
  87. package/dist/dashboard/index.d.ts +2 -0
  88. package/dist/dashboard/index.d.ts.map +1 -1
  89. package/dist/dashboard/meter-model.d.ts +53 -6
  90. package/dist/dashboard/meter-model.d.ts.map +1 -1
  91. package/dist/dashboard/meter-model.js +62 -14
  92. package/dist/dashboard/meter-parts.d.ts +5 -1
  93. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  94. package/dist/dashboard/meter-parts.js +140 -68
  95. package/dist/dashboard/meter.d.ts +29 -4
  96. package/dist/dashboard/meter.d.ts.map +1 -1
  97. package/dist/dashboard/meter.js +8 -1
  98. package/dist/dashboard/meter.module.css +74 -43
  99. package/dist/dashboard/meter.module.css.d.ts +4 -4
  100. package/dist/dashboard/query-state.d.ts +1 -1
  101. package/dist/dashboard/query-state.d.ts.map +1 -1
  102. package/dist/dashboard/query-state.js +16 -10
  103. package/dist/dashboard/settings-section.d.ts.map +1 -1
  104. package/dist/dashboard/settings-section.js +14 -25
  105. package/dist/dashboard/stat-card-parts.js +1 -1
  106. package/dist/dashboard/stat-card.d.ts +1 -1
  107. package/dist/dashboard/stat-card.d.ts.map +1 -1
  108. package/dist/dashboard/stat-card.js +5 -7
  109. package/dist/dashboard/stat-card.module.css +15 -7
  110. package/dist/dashboard/stat-group.d.ts +11 -2
  111. package/dist/dashboard/stat-group.d.ts.map +1 -1
  112. package/dist/dashboard/stat-group.js +9 -7
  113. package/dist/dashboard/stat-strip.d.ts +67 -0
  114. package/dist/dashboard/stat-strip.d.ts.map +1 -0
  115. package/dist/dashboard/stat-strip.js +115 -0
  116. package/dist/dashboard/stat-strip.module.css +291 -0
  117. package/dist/dashboard/stat-strip.module.css.d.ts +32 -0
  118. package/dist/dashboard/visual-slot.d.ts +2 -0
  119. package/dist/dashboard/visual-slot.d.ts.map +1 -0
  120. package/dist/dashboard/visual-slot.js +5 -0
  121. package/dist/dashboard/widget-header.d.ts +3 -3
  122. package/dist/dashboard/widget-header.module.css +10 -6
  123. package/dist/format/date.d.ts.map +1 -1
  124. package/dist/format/date.js +4 -3
  125. package/dist/format/shared.d.ts +6 -0
  126. package/dist/format/shared.d.ts.map +1 -1
  127. package/dist/format/shared.js +6 -2
  128. package/dist/guard/index.d.ts +16 -3
  129. package/dist/guard/index.d.ts.map +1 -1
  130. package/dist/guard/index.js +15 -1
  131. package/dist/guard/palette.d.ts +51 -0
  132. package/dist/guard/palette.d.ts.map +1 -0
  133. package/dist/guard/palette.js +190 -0
  134. package/dist/guard/series-file.d.ts +15 -0
  135. package/dist/guard/series-file.d.ts.map +1 -0
  136. package/dist/guard/series-file.js +29 -0
  137. package/dist/guard/types.d.ts +3 -3
  138. package/dist/guard/types.d.ts.map +1 -1
  139. package/dist/index.d.ts +3 -1
  140. package/dist/index.d.ts.map +1 -1
  141. package/dist/index.js +4 -0
  142. package/dist/styles.css +6 -0
  143. package/dist/surfaces.d.ts +1 -1
  144. package/dist/surfaces.d.ts.map +1 -1
  145. package/dist/surfaces.js +2 -0
  146. package/dist/theme/card-inset.module.css +76 -0
  147. package/dist/theme/card-inset.module.css.d.ts +9 -0
  148. package/dist/theme/controls.module.css +13 -0
  149. package/dist/theme/index.d.ts.map +1 -1
  150. package/dist/theme/index.js +41 -0
  151. package/dist/theme/nav-link.module.css +8 -10
  152. package/dist/theme/status-dot.d.ts +3 -2
  153. package/dist/theme/status-dot.d.ts.map +1 -1
  154. package/dist/theme/status-dot.js +12 -3
  155. package/dist/theme/status-verdict.d.ts +3 -2
  156. package/dist/theme/status-verdict.d.ts.map +1 -1
  157. package/dist/theme/status-verdict.js +3 -2
  158. package/dist/theme/status-verdict.module.css +4 -2
  159. package/dist/tokens/oklab.d.ts +28 -0
  160. package/dist/tokens/oklab.d.ts.map +1 -0
  161. package/dist/tokens/oklab.js +73 -0
  162. package/llms.txt +33 -7
  163. package/package.json +1 -1
  164. package/src/charts/ChartCard.tsx +79 -5
  165. package/src/charts/Donut.tsx +9 -1
  166. package/src/charts/Heatmap.tsx +1 -1
  167. package/src/charts/Sparkline.tsx +180 -18
  168. package/src/charts/box.tsx +2 -0
  169. package/src/charts/chart-box.module.css +30 -0
  170. package/src/charts/chart-box.module.css.d.ts +1 -0
  171. package/src/charts/chart-card.module.css +47 -0
  172. package/src/charts/chart-card.module.css.d.ts +7 -0
  173. package/src/charts/compile.ts +42 -9
  174. package/src/charts/host.tsx +6 -3
  175. package/src/charts/index.ts +1 -1
  176. package/src/charts/sparkline.module.css +59 -0
  177. package/src/charts/sparkline.module.css.d.ts +13 -0
  178. package/src/charts/state.tsx +53 -4
  179. package/src/charts/types.ts +6 -0
  180. package/src/cli/check-theme.ts +3 -0
  181. package/src/cli/help.ts +18 -1
  182. package/src/cli/index.ts +48 -17
  183. package/src/cli/init.ts +2 -1
  184. package/src/cli/shot/capture.ts +15 -2
  185. package/src/cli/shot/detect.ts +533 -0
  186. package/src/cli/shot/index.ts +8 -4
  187. package/src/cli/shot/measure.ts +4 -0
  188. package/src/cli/shot/types.ts +5 -1
  189. package/src/cli/sync.ts +4 -2
  190. package/src/common/retry-button.module.css +58 -0
  191. package/src/common/retry-button.module.css.d.ts +8 -0
  192. package/src/common/retry-button.tsx +29 -0
  193. package/src/controls/sync-button.tsx +3 -0
  194. package/src/dashboard/bar-list.module.css +77 -2
  195. package/src/dashboard/bar-list.module.css.d.ts +1 -0
  196. package/src/dashboard/bar-list.tsx +89 -18
  197. package/src/dashboard/delta-badge.tsx +21 -5
  198. package/src/dashboard/index.ts +2 -0
  199. package/src/dashboard/meter-model.ts +126 -20
  200. package/src/dashboard/meter-parts.tsx +224 -88
  201. package/src/dashboard/meter.module.css +74 -43
  202. package/src/dashboard/meter.module.css.d.ts +4 -4
  203. package/src/dashboard/meter.tsx +39 -5
  204. package/src/dashboard/query-state.tsx +26 -20
  205. package/src/dashboard/settings-section.tsx +1 -8
  206. package/src/dashboard/stat-card-parts.tsx +1 -1
  207. package/src/dashboard/stat-card.module.css +15 -7
  208. package/src/dashboard/stat-card.tsx +9 -9
  209. package/src/dashboard/stat-group.tsx +19 -8
  210. package/src/dashboard/stat-strip.module.css +291 -0
  211. package/src/dashboard/stat-strip.module.css.d.ts +32 -0
  212. package/src/dashboard/stat-strip.tsx +263 -0
  213. package/src/dashboard/visual-slot.ts +8 -0
  214. package/src/dashboard/widget-header.module.css +10 -6
  215. package/src/dashboard/widget-header.tsx +3 -3
  216. package/src/format/date.ts +6 -3
  217. package/src/format/shared.ts +11 -2
  218. package/src/guard/index.ts +17 -5
  219. package/src/guard/palette.ts +261 -0
  220. package/src/guard/series-file.ts +51 -0
  221. package/src/guard/types.ts +3 -2
  222. package/src/index.ts +7 -0
  223. package/src/styles.css +6 -0
  224. package/src/surfaces.ts +2 -0
  225. package/src/theme/__snapshots__/plain-theme.test.ts.snap +202 -24
  226. package/src/theme/card-inset.module.css +76 -0
  227. package/src/theme/card-inset.module.css.d.ts +9 -0
  228. package/src/theme/controls.module.css +13 -0
  229. package/src/theme/index.ts +56 -0
  230. package/src/theme/nav-link.module.css +8 -10
  231. package/src/theme/status-dot.tsx +17 -5
  232. package/src/theme/status-verdict.module.css +4 -2
  233. package/src/theme/status-verdict.tsx +9 -4
  234. package/src/tokens/oklab.ts +97 -0
@@ -0,0 +1,291 @@
1
+ /*
2
+ * StatGroup `variant="strip"`: one joined surface, cells split by 1px hairlines.
3
+ *
4
+ * The hairlines are LEADING edges (inline-start + block-start) drawn as outer box-shadows, so they
5
+ * take no layout space and every cell keeps the same `stack-md` inset. `.clip` hides the ones that
6
+ * lead a row or the strip by pulling the grid 1px up/left inside an `overflow: hidden` box. That is
7
+ * why the rail survives any column count and any wrap with no `nth-child` bookkeeping
8
+ * (`stat-group.module.css` needs it because its cells are not clipped). No coloured edge: the one
9
+ * surface is the Card's.
10
+ *
11
+ * The column law keys on the CONTAINER like `StatGroup`'s own: two columns at < 480px (the `regular` class boundary) with an odd
12
+ * last cell spanning, never one; up to three below 800px; the full `cols` from 800px.
13
+ */
14
+
15
+ .container {
16
+ container-type: inline-size;
17
+ container-name: basalt-grid;
18
+ }
19
+
20
+ .clip {
21
+ overflow: hidden;
22
+ }
23
+
24
+ .cells {
25
+ display: grid;
26
+ grid-template-columns: repeat(var(--basalt-strip-cols-sm), minmax(0, 1fr));
27
+ margin: -1px 0 0 -1px;
28
+ }
29
+
30
+ .cell {
31
+ display: grid;
32
+ grid-row: span 5;
33
+ grid-template-rows: subgrid;
34
+ min-width: 0;
35
+ padding: var(--vx-space-stack-md);
36
+ box-shadow:
37
+ -1px 0 0 var(--vx-divider),
38
+ 0 -1px 0 var(--vx-divider);
39
+ }
40
+
41
+ /* Forced colors drop box-shadows, so the hairlines come back as CanvasText borders. Every cell takes
42
+ * both, so they stay level with each other; `.clip` still hides the leading ones. */
43
+ @media (forced-colors: active) {
44
+ .cell {
45
+ border-inline-start: 1px solid CanvasText;
46
+ border-block-start: 1px solid CanvasText;
47
+ }
48
+ }
49
+
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;
62
+ min-width: 0;
63
+ }
64
+
65
+ .cell > :not(.captionLine) {
66
+ margin-block-start: var(--vx-space-stack-sm);
67
+ }
68
+
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
+ @container basalt-grid (max-width: 479.9px) {
95
+ .cells {
96
+ grid-template-columns: repeat(2, minmax(0, 1fr));
97
+ }
98
+
99
+ .cells > .cell:last-child:nth-child(odd) {
100
+ grid-column: 1 / -1;
101
+ }
102
+ }
103
+
104
+ @container basalt-grid (min-width: 800px) {
105
+ .cells {
106
+ grid-template-columns: repeat(var(--basalt-strip-cols), minmax(0, 1fr));
107
+ }
108
+ }
109
+
110
+ .captionLine {
111
+ grid-row: 1;
112
+ display: flex;
113
+ flex-wrap: wrap;
114
+ align-items: center;
115
+ column-gap: var(--vx-space-control-gap);
116
+ min-width: 0;
117
+ }
118
+
119
+ /* Caption and info glyph are one unit: the caption truncates, the glyph never leaves its line. */
120
+ .lead {
121
+ display: inline-flex;
122
+ align-items: center;
123
+ column-gap: var(--vx-space-control-gap);
124
+ min-width: 0;
125
+ max-width: 100%;
126
+ }
127
+
128
+ .caption {
129
+ margin: 0;
130
+ min-width: 0;
131
+ overflow: hidden;
132
+ text-overflow: ellipsis;
133
+ white-space: nowrap;
134
+ font-family: var(--basalt-font-mono);
135
+ font-size: var(--vx-text-micro);
136
+ font-weight: 500;
137
+ letter-spacing: 0.06em;
138
+ text-transform: uppercase;
139
+ color: var(--vx-faint);
140
+ }
141
+
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. */
144
+ .qualifier {
145
+ font-size: var(--vx-text-micro);
146
+ color: var(--vx-muted);
147
+ overflow-wrap: anywhere;
148
+ }
149
+
150
+ .valueRow {
151
+ display: flex;
152
+ flex-wrap: wrap;
153
+ align-items: baseline;
154
+ column-gap: var(--vx-space-stack-sm);
155
+ min-width: 0;
156
+ }
157
+
158
+ /* The numeral face (proportional sans, lining figures; Wave 35 typography law): never mono. */
159
+ .value {
160
+ min-width: 0;
161
+ overflow-wrap: anywhere;
162
+ font-family: var(--basalt-font-numeral, var(--basalt-font-sans));
163
+ font-size: var(--vx-text-kpi);
164
+ line-height: 1.25;
165
+ font-weight: 500;
166
+ letter-spacing: -0.02em;
167
+ font-variant-numeric: lining-nums;
168
+ color: var(--vx-ink);
169
+ }
170
+
171
+ .unit {
172
+ flex-shrink: 0;
173
+ font-size: var(--vx-text-sm);
174
+ font-weight: 500;
175
+ color: var(--vx-muted);
176
+ }
177
+
178
+ .skeletonValue {
179
+ width: 45%;
180
+ height: calc(var(--vx-text-kpi) * 1.25);
181
+ }
182
+
183
+ .cell[data-stale] {
184
+ /* The package's one dimmed-state value (controls.module.css, panel-row.module.css). */
185
+ opacity: 0.55;
186
+ }
187
+
188
+ .skeletonRow {
189
+ width: 100%;
190
+ height: 0.75rem;
191
+ }
192
+
193
+ .visual {
194
+ min-width: 0;
195
+ }
196
+
197
+ .visualStack > .footer {
198
+ margin-block-start: var(--vx-space-stack-sm);
199
+ }
200
+
201
+ /* A Sparkline's hover readout takes this line above its plot (`charts/sparkline.module.css`). The
202
+ * cell's own stack gap already sits above it; the slot reserves the rest, so the chip never covers
203
+ * the value. */
204
+ .cell {
205
+ --basalt-spark-readout-h: 1.125rem;
206
+ }
207
+
208
+ .visual:has([data-basalt-sparkline]) {
209
+ padding-top: max(0px, calc(var(--basalt-spark-readout-h) - var(--vx-space-stack-sm)));
210
+ }
211
+
212
+ /* An empty cell's reason and an errored cell's message: one muted `sm` line, wrapping rather than
213
+ * clipping (a 390px two-column cell is ~170px wide). */
214
+ .reason {
215
+ margin: 0;
216
+ min-width: 0;
217
+ font-size: var(--vx-text-sm);
218
+ line-height: 1.3;
219
+ color: var(--vx-muted);
220
+ overflow-wrap: anywhere;
221
+ }
222
+
223
+ /* The compact error anatomy: dot + word, the message, Retry — a left-aligned stack in the cell. */
224
+ .error {
225
+ display: flex;
226
+ flex-direction: column;
227
+ align-items: flex-start;
228
+ gap: var(--vx-space-stack-xs);
229
+ min-width: 0;
230
+ }
231
+
232
+ .errorHead {
233
+ display: inline-flex;
234
+ align-items: center;
235
+ gap: var(--vx-space-stack-sm);
236
+ font-size: var(--vx-text-sm);
237
+ font-weight: 500;
238
+ color: var(--vx-ink);
239
+ }
240
+
241
+ .footer {
242
+ font-size: var(--vx-text-sm);
243
+ color: var(--vx-muted);
244
+ }
245
+
246
+ /* ── multi-row cell: label · visual · value · delta ──────────────────────────────────────────── */
247
+
248
+ .rows {
249
+ display: flex;
250
+ flex-direction: column;
251
+ gap: var(--vx-space-stack-sm);
252
+ margin: 0;
253
+ padding: 0;
254
+ list-style: none;
255
+ }
256
+
257
+ .row {
258
+ display: grid;
259
+ grid-template-columns: minmax(3.5rem, auto) minmax(0, 1fr) auto auto;
260
+ align-items: center;
261
+ column-gap: var(--vx-space-stack-sm);
262
+ }
263
+
264
+ .rowLabel {
265
+ font-size: var(--vx-text-sm);
266
+ color: var(--vx-muted);
267
+ }
268
+
269
+ .rowValue {
270
+ font-family: var(--basalt-font-numeral, var(--basalt-font-sans));
271
+ font-size: var(--vx-text-sm);
272
+ font-weight: 500;
273
+ font-variant-numeric: lining-nums;
274
+ color: var(--vx-ink);
275
+ }
276
+
277
+ /* ── footer row: wider cells under the cells, split by the same hairline ─────────────────────── */
278
+
279
+ .footerRow {
280
+ display: flex;
281
+ flex-wrap: wrap;
282
+ margin-left: -1px;
283
+ }
284
+
285
+ .footerCell {
286
+ flex: 1 1 14rem;
287
+ min-width: 0;
288
+ padding: var(--vx-space-stack-md);
289
+ border-inline-start: 1px solid var(--vx-divider);
290
+ border-block-start: 1px solid var(--vx-divider);
291
+ }
@@ -0,0 +1,32 @@
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 container: string
7
+ readonly clip: string
8
+ readonly cells: string
9
+ readonly cell: string
10
+ readonly captionLine: string
11
+ readonly lead: string
12
+ readonly caption: string
13
+ readonly qualifier: string
14
+ readonly valueRow: string
15
+ readonly value: string
16
+ readonly unit: string
17
+ readonly skeletonValue: string
18
+ readonly skeletonRow: string
19
+ readonly visual: string
20
+ readonly visualStack: string
21
+ readonly reason: string
22
+ readonly error: string
23
+ readonly errorHead: string
24
+ readonly footer: string
25
+ readonly rows: string
26
+ readonly row: string
27
+ readonly rowLabel: string
28
+ readonly rowValue: string
29
+ readonly footerRow: string
30
+ readonly footerCell: string
31
+ }
32
+ export default classes
@@ -0,0 +1,2 @@
1
+ export declare const VisualSlotContext: import("react").Context<boolean>;
2
+ //# sourceMappingURL=visual-slot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visual-slot.d.ts","sourceRoot":"","sources":["../../src/dashboard/visual-slot.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB,kCAAuB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { createContext } from "react";
2
+ const VisualSlotContext = createContext(false);
3
+ export {
4
+ VisualSlotContext
5
+ };
@@ -36,11 +36,11 @@ export type WidgetHeaderProps = BasaltProps & SlotStylesProps<WidgetHeaderSlot>
36
36
  * click — so a keyboard user gets it too. Mantine-free: a plain state bubble, not a Tooltip.
37
37
  */
38
38
  info?: string;
39
- /** Pre-formatted metric value (mono, hero size, never truncated). Renders on its own row with
39
+ /** Pre-formatted metric value (sans, lining figures, hero size, never truncated). Renders on its own row with
40
40
  * `delta` under the title row, or on the title row in a card 480px or wider. */
41
41
  value?: string;
42
42
  /**
43
- * The value's unit, rendered immediately after it on the hero row: muted, mono, `--vx-text-sm`.
43
+ * The value's unit, rendered immediately after it on the hero row: muted, sans, `--vx-text-sm`.
44
44
  *
45
45
  * It exists because `value` is a pre-formatted `string` and a KPI's unit is not part of the
46
46
  * number: `412` and `TSS` are two facts at two weights, and jamming them into one string paints
@@ -79,7 +79,7 @@ export type WidgetHeaderProps = BasaltProps & SlotStylesProps<WidgetHeaderSlot>
79
79
  /** Trend visual slot, rendered below the metric row. Carries `data-placement="right"` so a
80
80
  * wave-3 composer's `bleed` layout can select it. */
81
81
  sparkline?: ReactNode;
82
- /** Mono count tag rendered after the title (C11 — every table/list states its count). `0` is a
82
+ /** Count tag rendered after the title (C11 — every table/list states its count). `0` is a
83
83
  * real count and renders, distinct from omitting the prop entirely. */
84
84
  count?: number;
85
85
  /** Right-aligned slot (`margin-inline-start: auto`) — the C1/C5 home for header actions. */
@@ -143,7 +143,8 @@
143
143
  border-radius: var(--vx-radius-ctrl);
144
144
  background: var(--vx-surface-subtle);
145
145
  padding: var(--vx-space-badge-inset-y) var(--vx-space-badge-inset-x);
146
- font-family: var(--basalt-font-mono);
146
+ font-family: var(--basalt-font-numeral, var(--basalt-font-sans));
147
+ font-variant-numeric: lining-nums;
147
148
  font-size: var(--vx-text-xs);
148
149
  font-weight: 500;
149
150
  color: var(--vx-faint);
@@ -172,7 +173,8 @@
172
173
  .value {
173
174
  min-width: 0;
174
175
  overflow-wrap: anywhere;
175
- font-family: var(--basalt-font-mono);
176
+ font-family: var(--basalt-font-numeral, var(--basalt-font-sans));
177
+ font-variant-numeric: lining-nums;
176
178
  font-size: var(--vx-text-kpi);
177
179
  font-weight: 500;
178
180
  letter-spacing: -0.02em;
@@ -180,15 +182,16 @@
180
182
  }
181
183
 
182
184
  /*
183
- * The unit beside the hero value. Mono like the number it qualifies (so `412 TSS` sits on one
184
- * baseline grid), `--vx-text-sm` and `--vx-muted` so it never competes with the numeral — the whole
185
+ * The unit beside the hero value. Sans like the number it qualifies (so `412 TSS` sits on one
186
+ * baseline), `--vx-text-sm` and `--vx-muted` so it never competes with the numeral — the whole
185
187
  * point is that a unit is the SMALL half of the pair. `flex-shrink: 0`: a unit clipped to `TS…`
186
188
  * would state nothing.
187
189
  */
188
190
  .unit {
189
191
  flex-shrink: 0;
190
192
  align-self: baseline;
191
- font-family: var(--basalt-font-mono);
193
+ font-family: var(--basalt-font-numeral, var(--basalt-font-sans));
194
+ font-variant-numeric: lining-nums;
192
195
  font-size: var(--vx-text-sm);
193
196
  font-weight: 500;
194
197
  color: var(--vx-muted);
@@ -343,7 +346,8 @@
343
346
  white-space: nowrap;
344
347
  align-items: baseline;
345
348
  gap: 3px;
346
- font-family: var(--basalt-font-mono);
349
+ font-family: var(--basalt-font-numeral, var(--basalt-font-sans));
350
+ font-variant-numeric: lining-nums;
347
351
  font-size: var(--vx-text-sm);
348
352
  font-weight: 500;
349
353
  line-height: 1;
@@ -1 +1 @@
1
- {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/format/date.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,KAAK,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;AAiC1D,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG;IAC1C,+EAA+E;IAC/E,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;CACrC,CAAA;AAED;;;uEAGuE;AACvE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,GAAE,cAAmB,GAAG,MAAM,CAM3F;AAED,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG;IAC/C,uGAAuG;IACvG,KAAK,CAAC,EAAE,MAA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O,GAAE,WAAgB,GAAG,MAAM,CAS5E;AAED;uFACuF;AACvF,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CASrD;AAED,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG;IAC3C,4GAA4G;IAC5G,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;IACpC,+FAA+F;IAC/F,OAAO,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAA;CACpC,CAAA;AASD;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAClC,OAAO,GAAE,eAAoB,GAC5B,MAAM,CAwBR"}
@@ -1,4 +1,4 @@
1
- import { dateFormat, NON_FINITE, numberFormat, toDate } from "./shared.js";
1
+ import { dateFormat, NON_FINITE, numberFormat, resolveLocale, toDate } from "./shared.js";
2
2
  const CALENDAR_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
3
3
  function calendarDate(value, utc) {
4
4
  const match = CALENDAR_DATE.exec(value);
@@ -37,10 +37,11 @@ const RELATIVE_TIME_UNITS = [
37
37
  const NEGATIVE_ZERO = -0;
38
38
  const relativeTimeFormatterCache = /* @__PURE__ */ new Map();
39
39
  function relativeTimeFormat(locale, style, numeric) {
40
- const key = `${locale ?? ""}|${style}|${numeric}`;
40
+ const resolved = resolveLocale(locale);
41
+ const key = `${resolved ?? "\0"}|${style}|${numeric}`;
41
42
  const cached = relativeTimeFormatterCache.get(key);
42
43
  if (cached !== void 0) return cached;
43
- const created = new Intl.RelativeTimeFormat(locale, { style, numeric });
44
+ const created = new Intl.RelativeTimeFormat(resolved, { style, numeric });
44
45
  relativeTimeFormatterCache.set(key, created);
45
46
  return created;
46
47
  }
@@ -32,6 +32,12 @@ export type FormatDefaults = {
32
32
  export declare function defineFormat(next?: FormatDefaults): void;
33
33
  /** Clears the {@link defineFormat} defaults back to the runtime's own locale and zone. */
34
34
  export declare function resetFormatDefaults(): void;
35
+ /**
36
+ * The ONE locale resolution every formatter shares: the call's own tag, else the
37
+ * {@link defineFormat} default, else `undefined` (the runtime's own locale). Internal — not
38
+ * re-exported from the public barrel.
39
+ */
40
+ export declare function resolveLocale(locale?: string): string | undefined;
35
41
  export declare function numberFormat(locale: string | undefined, options: Intl.NumberFormatOptions): Intl.NumberFormat;
36
42
  export declare function dateFormat(locale: string | undefined, options: Intl.DateTimeFormatOptions): Intl.DateTimeFormat;
37
43
  /** What every number/measure formatter accepts. */
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/format/shared.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;GAIG;AACH,eAAO,MAAM,UAAU,WAAM,CAAA;AAE7B,sDAAsD;AACtD,MAAM,MAAM,YAAY,GAAG;IACzB,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC9B,CAAA;AAWD;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,IAAI,GAAE,cAAmB,GAAG,IAAI,CAS5D;AAED,0FAA0F;AAC1F,wBAAgB,mBAAmB,IAAI,IAAI,CAI1C;AAkCD,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,IAAI,CAAC,mBAAmB,GAChC,IAAI,CAAC,YAAY,CAGnB;AAED,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,IAAI,CAAC,qBAAqB,GAClC,IAAI,CAAC,cAAc,CAOrB;AAED,mDAAmD;AACnD,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,IAAI,GA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B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,IAAI,CAAC,qBAAqB,GAClC,IAAI,CAAC,cAAc,CAOrB;AAED,mDAAmD;AACnD,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;AAE/C;+DAC+D;AAC/D,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAE9D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GACd;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAUlC;AAED;;;;0DAI0D;AAC1D,wBAAgB,MAAM,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAGjE"}
@@ -38,12 +38,15 @@ function memoize(caches, locale, options, create) {
38
38
  cache.set(key, created);
39
39
  return created;
40
40
  }
41
+ function resolveLocale(locale) {
42
+ return locale ?? defaults.locale;
43
+ }
41
44
  function numberFormat(locale, options) {
42
- const resolved = locale ?? defaults.locale;
45
+ const resolved = resolveLocale(locale);
43
46
  return memoize(numberCaches, resolved, options, () => new Intl.NumberFormat(resolved, options));
44
47
  }
45
48
  function dateFormat(locale, options) {
46
- const resolved = locale ?? defaults.locale;
49
+ const resolved = resolveLocale(locale);
47
50
  const withZone = options.timeZone === void 0 && defaults.timeZone !== void 0 ? { ...options, timeZone: defaults.timeZone } : options;
48
51
  return memoize(dateCaches, resolved, withZone, () => new Intl.DateTimeFormat(resolved, withZone));
49
52
  }
@@ -72,6 +75,7 @@ export {
72
75
  isFiniteNumber,
73
76
  numberFormat,
74
77
  resetFormatDefaults,
78
+ resolveLocale,
75
79
  scaleThousands,
76
80
  toDate
77
81
  };
@@ -3,7 +3,7 @@
3
3
  * (`tokens/space-scale`, `common/*`), never `tokens/palette` or `derive` (colour math on every
4
4
  * Write/Edit).
5
5
  *
6
- * GUARD_RULES: the closed registry of all 26 violation kinds.
6
+ * GUARD_RULES: the closed registry of all 27 violation kinds.
7
7
  * checkSource: pure (text, relPath, cfg) → Finding[]. No FS, no walk, no console.
8
8
  */
9
9
  import type { Finding, GuardConfig, GuardKind, GuardSeverity } from './types.js';
@@ -70,6 +70,13 @@ export type GraceEntry = {
70
70
  * }
71
71
  */
72
72
  export declare const GRACE_PERIOD_KINDS: Partial<Record<GuardKind, GraceEntry>>;
73
+ /** A kind's effective severity: consumer override first, then the grace table, then `error`. */
74
+ export declare function severityOf(kind: GuardKind, cfg: GuardConfig): GuardSeverity;
75
+ /**
76
+ * Whether `kind` is exempted at `relPath` via `cfg.exemptRules` — the config-driven, per-rule
77
+ * counterpart to `isChartFile`'s hardcoded path scoping.
78
+ */
79
+ export declare function isRuleExempt(kind: GuardKind, relPath: string, exemptRules: GuardConfig['exemptRules']): boolean;
73
80
  /** One `exemptRules` entry that suppressed nothing, and why — see {@link unmatchedExemptPatterns}. */
74
81
  export type UnmatchedExemptPattern = {
75
82
  readonly kind: string;
@@ -143,7 +150,7 @@ export declare const GENERATED_HEADER_LINE = "/* @generated basalt-ui \u2014 do
143
150
  */
144
151
  export declare const TOKENS_ONLY_DISABLED_KINDS: ReadonlySet<GuardKind>;
145
152
  /**
146
- * The closed registry of all 26 guard kinds. The triad test asserts
153
+ * The closed registry of all 27 guard kinds. The triad test asserts
147
154
  * `surface.guardKinds ⊆ keyof GUARD_RULES` at runtime.
148
155
  *
149
156
  * raw-surface, raw-html-layout, and sub-16-input-font are handled inline in checkSource
@@ -214,7 +221,7 @@ export declare const GUARD_RULES: {
214
221
  readonly pattern: RegExp;
215
222
  readonly enabled: (cfg: GuardConfig) => boolean;
216
223
  readonly appliesTo: (relPath: string) => boolean;
217
- readonly message: "withBorder on a Card/Paper double-draws the edge — card depth is --vx-shadow-card, which already bakes a 1px ring into the shadow. Drop the prop (docs/DESIGN-SPEC.md doctrine inversion #1) — and fix the inset in the same edit: an explicit p/padding or radius on that Card/Paper is the other half of the idiom, which only the oxlint lane sees (basalt/card-inset); leave both to the theme or use py=\"sm\" px=\"md\".";
224
+ readonly message: "withBorder on a Card/Paper double-draws the edge — card depth is --vx-shadow-card, which already bakes a 1px ring into the shadow. Drop the prop (docs/DESIGN-SPEC.md doctrine inversion #1) — and fix the inset in the same edit: an explicit p/padding or radius on that Card/Paper is the other half of the idiom, which only the oxlint lane sees (basalt/card-inset); the theme owns both, so write neither.";
218
225
  };
219
226
  readonly 'off-system-surface-var': {
220
227
  readonly kind: "off-system-surface-var";
@@ -316,6 +323,12 @@ export declare const GUARD_RULES: {
316
323
  readonly pattern: RegExp;
317
324
  readonly message: `var() names a --vx-* token basalt does not emit, so it resolves to its fallback (or to nothing) with no error anywhere. Judged: every name inside a basalt-owned family (${string}), plus any name basalt used to emit in any family \u2014 pick the token from the stylesheet basalt-ui tokens:css emits; your own series belong in a family of their own (groupTokens throws on one inside basalt's, in dev builds). A removed name is reported with its replacement on the finding line (MIGRATING.md has the table). Any other name outside a basalt family is never judged, because groupTokens may declare it in a file this scan cannot see.`;
318
325
  };
326
+ readonly 'series-palette': {
327
+ readonly kind: "series-palette";
328
+ readonly pattern: RegExp;
329
+ readonly appliesTo: () => false;
330
+ readonly message: "The series file's palette fails a computed check (OKLCH lightness band, chroma floor, colour-blind separation of neighbours, worst-pair separation, 3:1 contrast against the surface, ≤ 8 series without a repeat) — retune the hex in the series file; it is judged per scheme, light against the light panel and dark against the dark one. A deliberately neutral series is keyed `other`.";
331
+ };
319
332
  };
320
333
  /**
321
334
  * The one-line remedy for `kind`, as a report reads it: `raw-hex: Route color through VX.* / …`.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/guard/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAA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;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,WAAW,GACf,mBAAmB,EAAE,CA+BvB;AAED,kGAAkG;AAClG,eAAO,MAAM,uBAAuB,6BAA6B,CAAA;AAEjE;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,GAAG,MAAM,CAM9F"}
@@ -266,6 +266,11 @@ const GRACE_PERIOD_KINDS = {
266
266
  since: "2.16.0",
267
267
  promote: "2.24.0",
268
268
  why: "The scale moved to 8/12/16/20/24 and the CSS micro ceiling dropped 10 \u2192 7 in 2.16.0: a literal 8px/10px in CSS is newly a finding."
269
+ },
270
+ "series-palette": {
271
+ since: "2.21.0",
272
+ promote: "2.23.0",
273
+ why: "New in 2.21.0: the series file is judged by computed lightness, chroma, colour-blind separation and contrast; a palette that was tuned by eye is newly a finding."
269
274
  }
270
275
  };
271
276
  function severityOf(kind, cfg) {
@@ -816,7 +821,7 @@ const GUARD_RULES = {
816
821
  enabled: (cfg) => cfg.cardWithBorder,
817
822
  // JSX-tag-shaped (`<Card withBorder>`) — never appears in CSS text.
818
823
  appliesTo: (relPath) => !relPath.endsWith(".css"),
819
- message: 'withBorder on a Card/Paper double-draws the edge \u2014 card depth is --vx-shadow-card, which already bakes a 1px ring into the shadow. Drop the prop (docs/DESIGN-SPEC.md doctrine inversion #1) \u2014 and fix the inset in the same edit: an explicit p/padding or radius on that Card/Paper is the other half of the idiom, which only the oxlint lane sees (basalt/card-inset); leave both to the theme or use py="sm" px="md".'
824
+ message: "withBorder on a Card/Paper double-draws the edge \u2014 card depth is --vx-shadow-card, which already bakes a 1px ring into the shadow. Drop the prop (docs/DESIGN-SPEC.md doctrine inversion #1) \u2014 and fix the inset in the same edit: an explicit p/padding or radius on that Card/Paper is the other half of the idiom, which only the oxlint lane sees (basalt/card-inset); the theme owns both, so write neither."
820
825
  },
821
826
  "off-system-surface-var": {
822
827
  kind: "off-system-surface-var",
@@ -950,6 +955,13 @@ const GUARD_RULES = {
950
955
  pattern: VX_VAR_REF,
951
956
  // handled inline (basalt-owned families); entry keeps the registry complete
952
957
  message: `var() names a --vx-* token basalt does not emit, so it resolves to its fallback (or to nothing) with no error anywhere. Judged: every name inside a basalt-owned family (${[...BASALT_VX_FAMILY_SET].join(", ")}), plus any name basalt used to emit in any family \u2014 pick the token from the stylesheet basalt-ui tokens:css emits; your own series belong in a family of their own (groupTokens throws on one inside basalt's, in dev builds). A removed name is reported with its replacement on the finding line (MIGRATING.md has the table). Any other name outside a basalt family is never judged, because groupTokens may declare it in a file this scan cannot see.`
958
+ },
959
+ "series-palette": {
960
+ kind: "series-palette",
961
+ pattern: /(?!)/,
962
+ // never matches: judged over the whole series FILE by `series-file.ts`, not per line
963
+ appliesTo: () => false,
964
+ message: "The series file's palette fails a computed check (OKLCH lightness band, chroma floor, colour-blind separation of neighbours, worst-pair separation, 3:1 contrast against the surface, \u2264 8 series without a repeat) \u2014 retune the hex in the series file; it is judged per scheme, light against the light panel and dark against the dark one. A deliberately neutral series is keyed `other`."
953
965
  }
954
966
  };
955
967
  function guardKindRemedy(kind) {
@@ -1307,6 +1319,8 @@ export {
1307
1319
  findAllowAnnotations,
1308
1320
  guardKindRemedy,
1309
1321
  guardWaiverHint,
1322
+ isRuleExempt,
1310
1323
  neutralizeAllowAnnotation,
1324
+ severityOf,
1311
1325
  unmatchedExemptPatterns
1312
1326
  };
@@ -0,0 +1,51 @@
1
+ export type SeriesScheme = 'light' | 'dark';
2
+ /** The surface each scheme's series are judged against. */
3
+ export type SeriesSurfaces = Record<SeriesScheme, string>;
4
+ export type SeriesCheck = 'format' | 'lightness' | 'chroma' | 'cvd' | 'separation' | 'contrast' | 'order';
5
+ export type SeriesEntry = {
6
+ readonly key: string;
7
+ readonly light: string;
8
+ readonly dark: string;
9
+ /** 1-based line of the entry in the scanned source. */
10
+ readonly line: number;
11
+ };
12
+ export type SeriesGroup = {
13
+ readonly line: number;
14
+ readonly entries: readonly SeriesEntry[];
15
+ };
16
+ export type SeriesIssue = {
17
+ readonly check: SeriesCheck;
18
+ readonly scheme: SeriesScheme;
19
+ readonly keys: readonly string[];
20
+ readonly measured: number;
21
+ readonly threshold: number;
22
+ /** Line of the first named key. */
23
+ readonly line: number;
24
+ readonly message: string;
25
+ };
26
+ /**
27
+ * OKLCH lightness bands, per scheme.
28
+ * - light [0.43, 0.77] — the brief's band: below 0.43 a series reads as ink, above 0.77 it washes
29
+ * out on the panel (3:1 bites earlier, near L 0.67, on the default light panel).
30
+ * - dark [0.58, 0.88] — lower bound is where a hue clears 3:1 against the default dark panel
31
+ * (#2b2b2e, L 0.29 → L ≈ 0.56, rounded up for margin); the upper bound keeps a clear step below
32
+ * white so a bright series does not glow against the dark page.
33
+ */
34
+ export declare const LIGHTNESS_BAND: Record<SeriesScheme, readonly [number, number]>;
35
+ /** Minimum OKLCH chroma of a categorical hue. */
36
+ export declare const CHROMA_FLOOR = 0.1;
37
+ /** Minimum OKLab ΔE×100 between ADJACENT series under protanopia and deuteranopia. */
38
+ export declare const CVD_ADJACENT_MIN = 8;
39
+ /** Minimum OKLab ΔE×100 of the worst pair in a group, normal vision. */
40
+ export declare const SEPARATION_MIN = 15;
41
+ /** Minimum WCAG contrast of a series against its scheme's surface. */
42
+ export declare const CONTRAST_MIN = 3;
43
+ /** More categorical series than this and the next one folds into Other. */
44
+ export declare const MAX_SERIES = 8;
45
+ /** The one escape: a series keyed `other` is deliberately neutral — exempt from the chroma floor only. */
46
+ export declare const NEUTRAL_KEY = "other";
47
+ /** Every `defineSeries(...)` call in `source`, as an ordered group of its literal `{ light, dark }` hex pairs. */
48
+ export declare function parseSeriesGroups(source: string): SeriesGroup[];
49
+ /** Judge every group against the six checks. */
50
+ export declare function auditSeriesGroups(groups: readonly SeriesGroup[], surfaces: SeriesSurfaces): SeriesIssue[];
51
+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