basalt-ui 2.27.2 → 2.29.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 (343) hide show
  1. package/CHANGELOG.md +466 -307
  2. package/MIGRATING.md +358 -12
  3. package/agent/rules/basalt-batteries.md +1 -1
  4. package/agent/rules/basalt-mantine.md +1 -1
  5. package/agent/rules/basalt-tokens.md +2 -2
  6. package/agent/skills/basalt-app/SKILL.md +3 -3
  7. package/agent/skills/basalt-charts/SKILL.md +1 -1
  8. package/agent/skills/basalt-design/SKILL.md +12 -6
  9. package/agent/skills/basalt-design/references/catalogue.md +42 -36
  10. package/agent/skills/basalt-design/references/recipes.md +47 -0
  11. package/agent/skills/basalt-design/references/states.md +1 -1
  12. package/configs/oxlint-basalt.json +2 -1
  13. package/configs/oxlint-plugin.js +112 -3
  14. package/configs/oxlint-plugin.test.ts +99 -4
  15. package/configs/oxlint.json +1 -0
  16. package/dist/agent/chat/thread-message.d.ts +1 -160
  17. package/dist/agent/chat/thread-message.d.ts.map +1 -1
  18. package/dist/agent/chat/thread-message.js +7 -162
  19. package/dist/agent/chat/virtualize.d.ts +5 -5
  20. package/dist/charts/ChartCard.d.ts +14 -7
  21. package/dist/charts/ChartCard.d.ts.map +1 -1
  22. package/dist/charts/ChartCard.js +112 -23
  23. package/dist/charts/Lines.d.ts.map +1 -1
  24. package/dist/charts/Lines.js +11 -4
  25. package/dist/charts/Sparkline.d.ts +14 -2
  26. package/dist/charts/Sparkline.d.ts.map +1 -1
  27. package/dist/charts/Sparkline.js +155 -44
  28. package/dist/charts/chart-box.module.css +59 -2
  29. package/dist/charts/chart-box.module.css.d.ts +5 -0
  30. package/dist/charts/chart-card.module.css +28 -17
  31. package/dist/charts/chart-card.module.css.d.ts +3 -0
  32. package/dist/charts/compile.d.ts +1 -1
  33. package/dist/charts/compile.d.ts.map +1 -1
  34. package/dist/charts/compile.js +38 -27
  35. package/dist/charts/labels.d.ts +13 -3
  36. package/dist/charts/labels.d.ts.map +1 -1
  37. package/dist/charts/labels.js +131 -20
  38. package/dist/charts/legend.d.ts.map +1 -1
  39. package/dist/charts/legend.js +1 -1
  40. package/dist/charts/ref-label.d.ts +37 -8
  41. package/dist/charts/ref-label.d.ts.map +1 -1
  42. package/dist/charts/ref-label.js +55 -10
  43. package/dist/charts/sparkline.module.css +50 -0
  44. package/dist/charts/sparkline.module.css.d.ts +3 -0
  45. package/dist/charts/state.d.ts +4 -4
  46. package/dist/charts/state.d.ts.map +1 -1
  47. package/dist/charts/state.js +23 -5
  48. package/dist/cli/doctor-upgrade.d.ts +11 -0
  49. package/dist/cli/doctor-upgrade.d.ts.map +1 -1
  50. package/dist/cli/doctor-upgrade.js +54 -0
  51. package/dist/cli/doctor.d.ts.map +1 -1
  52. package/dist/cli/doctor.js +32 -0
  53. package/dist/cli/help.d.ts.map +1 -1
  54. package/dist/cli/help.js +8 -3
  55. package/dist/cli/index.d.ts +13 -13
  56. package/dist/cli/index.d.ts.map +1 -1
  57. package/dist/cli/index.js +36 -2
  58. package/dist/cli/init.d.ts +6 -0
  59. package/dist/cli/init.d.ts.map +1 -1
  60. package/dist/cli/init.js +118 -27
  61. package/dist/cli/router-wiring.d.ts +3 -0
  62. package/dist/cli/router-wiring.d.ts.map +1 -1
  63. package/dist/cli/router-wiring.js +2 -0
  64. package/dist/cli/shot/capture.d.ts +34 -2
  65. package/dist/cli/shot/capture.d.ts.map +1 -1
  66. package/dist/cli/shot/capture.js +95 -12
  67. package/dist/cli/shot/detect.d.ts +4 -1
  68. package/dist/cli/shot/detect.d.ts.map +1 -1
  69. package/dist/cli/shot/detect.js +38 -16
  70. package/dist/cli/shot/index.d.ts.map +1 -1
  71. package/dist/cli/shot/index.js +9 -2
  72. package/dist/cli/shot/measure.d.ts.map +1 -1
  73. package/dist/cli/shot/measure.js +11 -2
  74. package/dist/cli/shot/types.d.ts +4 -1
  75. package/dist/cli/shot/types.d.ts.map +1 -1
  76. package/dist/cli/sync.d.ts.map +1 -1
  77. package/dist/cli/sync.js +10 -2
  78. package/dist/common/could-not-load.d.ts +13 -0
  79. package/dist/common/could-not-load.d.ts.map +1 -0
  80. package/dist/common/could-not-load.js +14 -0
  81. package/dist/common/empty-copy.d.ts +16 -0
  82. package/dist/common/empty-copy.d.ts.map +1 -0
  83. package/dist/common/empty-copy.js +9 -0
  84. package/dist/common/index.d.ts +1 -0
  85. package/dist/common/index.d.ts.map +1 -1
  86. package/dist/common/index.js +3 -0
  87. package/dist/common/props.d.ts +20 -0
  88. package/dist/common/props.d.ts.map +1 -1
  89. package/dist/common/props.js +13 -1
  90. package/dist/common/retry-button.module.css +7 -3
  91. package/dist/common/virtual-rows.d.ts +196 -0
  92. package/dist/common/virtual-rows.d.ts.map +1 -0
  93. package/dist/common/virtual-rows.js +290 -0
  94. package/dist/controls/controls.module.css +33 -1
  95. package/dist/controls/controls.module.css.d.ts +2 -0
  96. package/dist/controls/enum-filter.d.ts.map +1 -1
  97. package/dist/controls/enum-filter.js +8 -2
  98. package/dist/controls/filter-pill.d.ts +27 -3
  99. package/dist/controls/filter-pill.d.ts.map +1 -1
  100. package/dist/controls/filter-pill.js +15 -4
  101. package/dist/controls/form-layout.d.ts +9 -3
  102. package/dist/controls/form-layout.d.ts.map +1 -1
  103. package/dist/controls/form-layout.js +74 -12
  104. package/dist/controls/form-layout.module.css +112 -7
  105. package/dist/controls/form-layout.module.css.d.ts +1 -0
  106. package/dist/controls/multi-select-filter.d.ts +2 -2
  107. package/dist/controls/multi-select-filter.d.ts.map +1 -1
  108. package/dist/controls/multi-select-filter.js +12 -6
  109. package/dist/controls/range-filter.d.ts +1 -1
  110. package/dist/controls/range-filter.d.ts.map +1 -1
  111. package/dist/controls/range-filter.js +8 -2
  112. package/dist/dashboard/bar-list.d.ts +5 -5
  113. package/dist/dashboard/bar-list.d.ts.map +1 -1
  114. package/dist/dashboard/bar-list.js +15 -8
  115. package/dist/dashboard/bar-list.module.css +21 -5
  116. package/dist/dashboard/board-nav.d.ts +22 -0
  117. package/dist/dashboard/board-nav.d.ts.map +1 -0
  118. package/dist/dashboard/board-nav.js +49 -0
  119. package/dist/dashboard/board.d.ts +52 -0
  120. package/dist/dashboard/board.d.ts.map +1 -0
  121. package/dist/dashboard/board.js +247 -0
  122. package/dist/dashboard/board.module.css +179 -0
  123. package/dist/dashboard/board.module.css.d.ts +28 -0
  124. package/dist/dashboard/empty-state.d.ts +6 -6
  125. package/dist/dashboard/empty-state.d.ts.map +1 -1
  126. package/dist/dashboard/empty-state.js +17 -8
  127. package/dist/dashboard/event-list-model.d.ts +54 -0
  128. package/dist/dashboard/event-list-model.d.ts.map +1 -0
  129. package/dist/dashboard/event-list-model.js +76 -0
  130. package/dist/dashboard/event-list-rows.d.ts +23 -0
  131. package/dist/dashboard/event-list-rows.d.ts.map +1 -0
  132. package/dist/dashboard/event-list-rows.js +89 -0
  133. package/dist/dashboard/event-list-scroll.d.ts +55 -0
  134. package/dist/dashboard/event-list-scroll.d.ts.map +1 -0
  135. package/dist/dashboard/event-list-scroll.js +216 -0
  136. package/dist/dashboard/event-list-skeleton.d.ts +10 -0
  137. package/dist/dashboard/event-list-skeleton.d.ts.map +1 -0
  138. package/dist/dashboard/event-list-skeleton.js +34 -0
  139. package/dist/dashboard/event-list.d.ts +65 -0
  140. package/dist/dashboard/event-list.d.ts.map +1 -0
  141. package/dist/dashboard/event-list.js +208 -0
  142. package/dist/dashboard/event-list.module.css +336 -0
  143. package/dist/dashboard/event-list.module.css.d.ts +34 -0
  144. package/dist/dashboard/index.d.ts +2 -0
  145. package/dist/dashboard/index.d.ts.map +1 -1
  146. package/dist/dashboard/index.js +4 -0
  147. package/dist/dashboard/meter-model.d.ts +6 -3
  148. package/dist/dashboard/meter-model.d.ts.map +1 -1
  149. package/dist/dashboard/meter-model.js +9 -4
  150. package/dist/dashboard/meter-parts.d.ts +3 -0
  151. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  152. package/dist/dashboard/meter-parts.js +36 -6
  153. package/dist/dashboard/meter.d.ts +3 -3
  154. package/dist/dashboard/meter.d.ts.map +1 -1
  155. package/dist/dashboard/meter.js +10 -2
  156. package/dist/dashboard/meter.module.css +20 -12
  157. package/dist/dashboard/meter.module.css.d.ts +0 -1
  158. package/dist/dashboard/page-summary.d.ts +3 -3
  159. package/dist/dashboard/page-summary.d.ts.map +1 -1
  160. package/dist/dashboard/page-summary.js +7 -2
  161. package/dist/dashboard/page-summary.module.css +5 -2
  162. package/dist/dashboard/query-state.d.ts +9 -8
  163. package/dist/dashboard/query-state.d.ts.map +1 -1
  164. package/dist/dashboard/query-state.js +29 -11
  165. package/dist/dashboard/section.d.ts +11 -3
  166. package/dist/dashboard/section.d.ts.map +1 -1
  167. package/dist/dashboard/section.js +34 -7
  168. package/dist/dashboard/settings-section.d.ts +8 -5
  169. package/dist/dashboard/settings-section.d.ts.map +1 -1
  170. package/dist/dashboard/settings-section.js +12 -8
  171. package/dist/dashboard/settings-section.module.css +25 -4
  172. package/dist/dashboard/settings-section.module.css.d.ts +1 -0
  173. package/dist/dashboard/stat-card-parts.d.ts +5 -1
  174. package/dist/dashboard/stat-card-parts.d.ts.map +1 -1
  175. package/dist/dashboard/stat-card-parts.js +8 -3
  176. package/dist/dashboard/stat-card.d.ts +3 -3
  177. package/dist/dashboard/stat-card.d.ts.map +1 -1
  178. package/dist/dashboard/stat-card.js +47 -12
  179. package/dist/dashboard/stat-card.module.css +42 -7
  180. package/dist/dashboard/stat-card.module.css.d.ts +3 -0
  181. package/dist/dashboard/stat-group.d.ts +2 -2
  182. package/dist/dashboard/stat-group.d.ts.map +1 -1
  183. package/dist/dashboard/stat-group.js +10 -3
  184. package/dist/dashboard/stat-strip.d.ts +5 -4
  185. package/dist/dashboard/stat-strip.d.ts.map +1 -1
  186. package/dist/dashboard/stat-strip.js +41 -31
  187. package/dist/dashboard/stat-strip.module.css +8 -6
  188. package/dist/dashboard/visual-slot.d.ts +4 -0
  189. package/dist/dashboard/visual-slot.d.ts.map +1 -1
  190. package/dist/dashboard/visual-slot.js +2 -0
  191. package/dist/dashboard/widget-header.d.ts +6 -6
  192. package/dist/dashboard/widget-header.d.ts.map +1 -1
  193. package/dist/dashboard/widget-header.js +4 -2
  194. package/dist/dashboard/widget-header.module.css +12 -15
  195. package/dist/format/shared.d.ts.map +1 -1
  196. package/dist/format/shared.js +24 -1
  197. package/dist/guard/index.d.ts +1 -1
  198. package/dist/guard/index.d.ts.map +1 -1
  199. package/dist/guard/index.js +4 -1
  200. package/dist/index.d.ts +1 -1
  201. package/dist/index.d.ts.map +1 -1
  202. package/dist/index.js +4 -0
  203. package/dist/shell/app-main.module.css +18 -0
  204. package/dist/styles.css +69 -0
  205. package/dist/surfaces.d.ts +2 -2
  206. package/dist/surfaces.d.ts.map +1 -1
  207. package/dist/surfaces.js +8 -2
  208. package/dist/table/cell-kinds.d.ts +47 -0
  209. package/dist/table/cell-kinds.d.ts.map +1 -0
  210. package/dist/table/cell-kinds.js +180 -0
  211. package/dist/table/cell-kinds.module.css +55 -0
  212. package/dist/table/cell-kinds.module.css.d.ts +15 -0
  213. package/dist/table/data-table-fold.d.ts +155 -0
  214. package/dist/table/data-table-fold.d.ts.map +1 -0
  215. package/dist/table/data-table-fold.js +320 -0
  216. package/dist/table/data-table-state.d.ts +10 -3
  217. package/dist/table/data-table-state.d.ts.map +1 -1
  218. package/dist/table/data-table-state.js +11 -6
  219. package/dist/table/data-table.d.ts +13 -28
  220. package/dist/table/data-table.d.ts.map +1 -1
  221. package/dist/table/data-table.js +362 -255
  222. package/dist/table/data-table.module.css +282 -3
  223. package/dist/table/data-table.module.css.d.ts +16 -0
  224. package/dist/table/table-features.d.ts +34 -4
  225. package/dist/table/table-features.d.ts.map +1 -1
  226. package/dist/table/table-features.js +10 -0
  227. package/dist/theme/card-inset.module.css +35 -0
  228. package/dist/theme/controls.module.css +55 -2
  229. package/dist/theme/ctl-theme.d.ts.map +1 -1
  230. package/dist/theme/ctl-theme.js +5 -0
  231. package/dist/theme/index.d.ts.map +1 -1
  232. package/dist/theme/index.js +14 -10
  233. package/dist/tokens/core.d.ts +1 -0
  234. package/dist/tokens/core.d.ts.map +1 -1
  235. package/dist/tokens/core.js +1 -0
  236. package/dist/tokens/derive.js +1 -1
  237. package/dist/tokens/palette.d.ts +2 -1
  238. package/dist/tokens/palette.d.ts.map +1 -1
  239. package/llms.txt +295 -5
  240. package/package.json +1 -1
  241. package/src/agent/chat/thread-message.tsx +10 -403
  242. package/src/agent/chat/virtualize.ts +5 -5
  243. package/src/charts/ChartCard.tsx +175 -31
  244. package/src/charts/Lines.tsx +13 -4
  245. package/src/charts/Sparkline.tsx +213 -48
  246. package/src/charts/chart-box.module.css +59 -2
  247. package/src/charts/chart-box.module.css.d.ts +5 -0
  248. package/src/charts/chart-card.module.css +28 -17
  249. package/src/charts/chart-card.module.css.d.ts +3 -0
  250. package/src/charts/compile.ts +59 -33
  251. package/src/charts/labels.ts +175 -24
  252. package/src/charts/legend.tsx +3 -2
  253. package/src/charts/ref-label.ts +114 -18
  254. package/src/charts/sparkline.module.css +50 -0
  255. package/src/charts/sparkline.module.css.d.ts +3 -0
  256. package/src/charts/state.tsx +40 -10
  257. package/src/cli/doctor-upgrade.ts +75 -0
  258. package/src/cli/doctor.ts +36 -0
  259. package/src/cli/help.ts +16 -6
  260. package/src/cli/index.ts +73 -67
  261. package/src/cli/init.ts +157 -36
  262. package/src/cli/router-wiring.ts +2 -2
  263. package/src/cli/shot/capture.ts +138 -16
  264. package/src/cli/shot/detect.ts +46 -22
  265. package/src/cli/shot/index.ts +8 -2
  266. package/src/cli/shot/measure.ts +11 -2
  267. package/src/cli/shot/types.ts +4 -1
  268. package/src/cli/sync.ts +12 -2
  269. package/src/common/could-not-load.ts +22 -0
  270. package/src/common/empty-copy.ts +17 -0
  271. package/src/common/index.ts +1 -0
  272. package/src/common/props.ts +30 -0
  273. package/src/common/retry-button.module.css +7 -3
  274. package/src/common/virtual-rows.tsx +682 -0
  275. package/src/controls/controls.module.css +33 -1
  276. package/src/controls/controls.module.css.d.ts +2 -0
  277. package/src/controls/enum-filter.tsx +8 -2
  278. package/src/controls/filter-pill.tsx +80 -27
  279. package/src/controls/form-layout.module.css +112 -7
  280. package/src/controls/form-layout.module.css.d.ts +1 -0
  281. package/src/controls/form-layout.tsx +115 -22
  282. package/src/controls/multi-select-filter.tsx +22 -11
  283. package/src/controls/range-filter.tsx +9 -3
  284. package/src/dashboard/bar-list.module.css +21 -5
  285. package/src/dashboard/bar-list.tsx +53 -45
  286. package/src/dashboard/board-nav.ts +67 -0
  287. package/src/dashboard/board.module.css +179 -0
  288. package/src/dashboard/board.module.css.d.ts +28 -0
  289. package/src/dashboard/board.tsx +415 -0
  290. package/src/dashboard/empty-state.tsx +21 -11
  291. package/src/dashboard/event-list-model.ts +125 -0
  292. package/src/dashboard/event-list-rows.tsx +117 -0
  293. package/src/dashboard/event-list-scroll.ts +291 -0
  294. package/src/dashboard/event-list-skeleton.tsx +62 -0
  295. package/src/dashboard/event-list.module.css +336 -0
  296. package/src/dashboard/event-list.module.css.d.ts +34 -0
  297. package/src/dashboard/event-list.tsx +336 -0
  298. package/src/dashboard/index.ts +2 -0
  299. package/src/dashboard/meter-model.ts +16 -7
  300. package/src/dashboard/meter-parts.tsx +53 -14
  301. package/src/dashboard/meter.module.css +20 -12
  302. package/src/dashboard/meter.module.css.d.ts +0 -1
  303. package/src/dashboard/meter.tsx +36 -18
  304. package/src/dashboard/page-summary.module.css +5 -2
  305. package/src/dashboard/page-summary.tsx +13 -6
  306. package/src/dashboard/query-state.tsx +55 -30
  307. package/src/dashboard/section.tsx +83 -41
  308. package/src/dashboard/settings-section.module.css +25 -4
  309. package/src/dashboard/settings-section.module.css.d.ts +1 -0
  310. package/src/dashboard/settings-section.tsx +18 -8
  311. package/src/dashboard/stat-card-parts.tsx +20 -3
  312. package/src/dashboard/stat-card.module.css +42 -7
  313. package/src/dashboard/stat-card.module.css.d.ts +3 -0
  314. package/src/dashboard/stat-card.tsx +55 -13
  315. package/src/dashboard/stat-group.tsx +22 -14
  316. package/src/dashboard/stat-strip.module.css +8 -6
  317. package/src/dashboard/stat-strip.tsx +29 -20
  318. package/src/dashboard/visual-slot.ts +5 -0
  319. package/src/dashboard/widget-header.module.css +12 -15
  320. package/src/dashboard/widget-header.tsx +8 -5
  321. package/src/format/shared.ts +30 -1
  322. package/src/guard/index.ts +7 -1
  323. package/src/index.ts +4 -0
  324. package/src/shell/app-main.module.css +18 -0
  325. package/src/styles.css +69 -0
  326. package/src/surfaces.ts +7 -1
  327. package/src/table/cell-kinds.module.css +55 -0
  328. package/src/table/cell-kinds.module.css.d.ts +15 -0
  329. package/src/table/cell-kinds.tsx +263 -0
  330. package/src/table/data-table-fold.tsx +567 -0
  331. package/src/table/data-table-state.ts +24 -13
  332. package/src/table/data-table.module.css +282 -3
  333. package/src/table/data-table.module.css.d.ts +16 -0
  334. package/src/table/data-table.tsx +430 -362
  335. package/src/table/table-features.ts +44 -4
  336. package/src/theme/__snapshots__/plain-theme.test.ts.snap +2 -66
  337. package/src/theme/card-inset.module.css +35 -0
  338. package/src/theme/controls.module.css +55 -2
  339. package/src/theme/ctl-theme.tsx +8 -0
  340. package/src/theme/index.ts +12 -8
  341. package/src/tokens/core.ts +1 -0
  342. package/src/tokens/derive.ts +1 -1
  343. package/src/tokens/palette.ts +4 -1
@@ -130,6 +130,7 @@
130
130
  * wrapper sized by its own min-content would never read a shrunken `clientWidth` back.
131
131
  */
132
132
  .foldWrapper {
133
+ position: relative;
133
134
  min-width: 0;
134
135
  }
135
136
 
@@ -139,25 +140,109 @@
139
140
  * button cell line up under one another regardless of how many columns folded.
140
141
  */
141
142
  .foldToggleCell {
142
- width: 2.75rem;
143
+ box-sizing: border-box;
144
+ /* The 28px toggle sits inside the 40px row; the cell's own block padding added 3px to it. */
145
+ padding-block: 0;
146
+ padding-inline: 0;
143
147
  text-align: center;
144
148
  }
145
149
 
150
+ /* A ghost chevron: no box at rest (eight bordered squares down a column read as clutter), muted, ink
151
+ on hover and focus, the focus ring on keyboard focus. It is 28px so the 40px row holds it;
152
+ `data-basalt-hit` carries the tap target to the pointer tier's floor (`--vx-hit`) without growing
153
+ the row. */
146
154
  .foldToggle {
147
155
  display: inline-flex;
148
156
  align-items: center;
149
157
  justify-content: center;
158
+ box-sizing: border-box;
159
+ width: 1.75rem;
160
+ height: 1.75rem;
150
161
  border: none;
162
+ border-radius: var(--vx-radius-ctrl);
151
163
  background: none;
152
164
  padding: 0;
153
165
  color: var(--vx-muted);
154
166
  cursor: pointer;
155
167
  }
156
168
 
157
- .foldToggle:hover {
169
+ .foldToggle:hover,
170
+ .foldToggle:focus-visible {
171
+ color: var(--vx-ink);
172
+ }
173
+
174
+ .foldToggle:focus-visible {
175
+ outline: 2px solid var(--vx-accent);
176
+ outline-offset: 1px;
177
+ }
178
+
179
+ /* The header above the toggles: a micro count of the folded columns, the word included ("+4 cols"). */
180
+ .foldCount {
181
+ /* The header cell is mono caps with tracking; "+4 COLS" in it is 51px, wider than the 44px cell. */
182
+ font-family: var(--mantine-font-family);
183
+ letter-spacing: normal;
184
+ text-transform: none;
185
+ font-size: var(--vx-text-micro);
186
+ color: var(--vx-muted);
187
+ }
188
+
189
+ /* The first folded name under the count: one ellipsised line the width of the 44px toggle cell. */
190
+ .foldCountHint {
191
+ display: block;
192
+ inline-size: calc(2.75rem * var(--mantine-scale, 1));
193
+ overflow: hidden;
194
+ text-overflow: ellipsis;
195
+ white-space: nowrap;
196
+ opacity: 0.8;
197
+ }
198
+
199
+ /* The count is a button: bare, inheriting the micro face, `help` for the mouse's title hint. */
200
+ .foldCountButton {
201
+ padding: 0;
202
+ border: none;
203
+ background: none;
204
+ font: inherit;
205
+ color: inherit;
206
+ cursor: help;
207
+ }
208
+
209
+ .foldCountButton:hover,
210
+ .foldCountButton:focus-visible {
211
+ color: var(--vx-ink);
212
+ }
213
+
214
+ .foldCountButton:focus-visible {
215
+ outline: 2px solid var(--vx-accent);
216
+ outline-offset: 2px;
217
+ border-radius: var(--vx-radius-ctrl);
218
+ }
219
+
220
+ /* The popover naming the folded columns: a quiet list in the table's own sans. */
221
+ .foldNames {
222
+ font-size: var(--vx-text-sm);
158
223
  color: var(--vx-ink);
159
224
  }
160
225
 
226
+ .foldNameList {
227
+ margin: 0;
228
+ padding: 0;
229
+ list-style: none;
230
+ }
231
+
232
+ .foldChevron {
233
+ width: 0.875rem;
234
+ height: 0.875rem;
235
+ fill: none;
236
+ stroke: currentColor;
237
+ stroke-width: 1.5;
238
+ stroke-linecap: round;
239
+ stroke-linejoin: round;
240
+ }
241
+
242
+ .foldChevron[data-expanded='true'] {
243
+ transform: rotate(90deg);
244
+ }
245
+
161
246
  /* The disclosure row itself carries no border of its own — it reads as part of the row above it,
162
247
  not a new one. */
163
248
  .foldDisclosureRowTr {
@@ -166,14 +251,22 @@
166
251
 
167
252
  .foldDisclosureCell {
168
253
  padding-top: 0;
254
+ padding-inline: 0;
169
255
  background: var(--vx-surface-subtle);
170
256
  }
171
257
 
172
258
  .foldDisclosure {
259
+ /* The disclosure row spans every column, so it would scroll away with them: the content box is as
260
+ wide as the container and sticks at its start edge. */
261
+ position: sticky;
262
+ inset-inline-start: 0;
263
+ box-sizing: border-box;
264
+ width: var(--basalt-table-room, 100%);
265
+ padding-inline: var(--vx-space-row-inset-x, 0.5rem);
173
266
  display: flex;
174
267
  flex-direction: column;
175
268
  gap: var(--vx-space-row-inset-y, 0.375rem);
176
- padding: var(--vx-space-row-inset-y, 0.375rem) 0;
269
+ padding-block: var(--vx-space-row-inset-y, 0.375rem);
177
270
  }
178
271
 
179
272
  .foldDisclosureRow {
@@ -193,3 +286,189 @@
193
286
  color: var(--vx-ink);
194
287
  text-align: right;
195
288
  }
289
+
290
+ /*
291
+ * The header row's toolbar (`docs/waves/design-parity/SPEC.md` § 6.6): search, facet chips and the
292
+ * `actions` slot on ONE line from the `compact` container class (240px, `CONTAINER_CLASSES`) up.
293
+ * The header row is the container, so the table reads its own width and never the viewport; below
294
+ * 240px the row may wrap. The base `flex-wrap: wrap` is Mantine `Group`'s own; this module is
295
+ * unlayered, so it outranks `@layer mantine` regardless of specificity.
296
+ */
297
+ .tableHeader {
298
+ container-type: inline-size;
299
+ }
300
+
301
+ @container (min-width: 240px) {
302
+ .toolbar {
303
+ flex-wrap: nowrap;
304
+ }
305
+ }
306
+
307
+ /* The actions sit at the row's right edge even when no facet row is there to push them. */
308
+ .toolbarActions {
309
+ flex: 0 1 auto;
310
+ min-width: 0;
311
+ margin-inline-start: auto;
312
+ }
313
+
314
+ /*
315
+ * The toolbar search and the footer's rows-per-page Select are the SAME height as the controls beside
316
+ * them at every pointer tier. At a coarse pointer the theme gives an input a real 44px floor
317
+ * (`min-height: var(--vx-hit)` — an input cannot host the `[data-basalt-hit]` overlay), which made the
318
+ * search ~12px taller than the 32px chips next to it. Here the visible box is the `ctl` height (the
319
+ * floor is lifted) and the wrapper hosts the 44px overlay instead, capped at the toolbar gap exactly
320
+ * like a pill. The input keeps its 16px type.
321
+ */
322
+ .toolbarWrapper {
323
+ --vx-hit-gap: var(--vx-space-control-gap);
324
+ }
325
+
326
+ @media (pointer: coarse) {
327
+ .toolbarInput.toolbarInput {
328
+ min-height: 0;
329
+ }
330
+ }
331
+
332
+ /*
333
+ * Headers never wrap (SPEC § 6.6 / § 9.1): a two-line label doubles the header row and, at a compact
334
+ * container, was the first thing to give — the fold and the pin-and-scroll take the room instead.
335
+ */
336
+ .table th {
337
+ white-space: nowrap;
338
+ }
339
+
340
+ /*
341
+ * The table's own scroll box, a keyboard tab stop only while it overflows (`data-table.tsx`
342
+ * `scrollerProps`). The ring sits INSIDE the box: its edges are the container's, and an outset
343
+ * outline would be clipped by the page's own overflow.
344
+ */
345
+ .scroller:focus-visible {
346
+ outline: 2px solid var(--vx-accent);
347
+ outline-offset: -2px;
348
+ }
349
+
350
+ /*
351
+ * Inside the fold wrapper the ring is an overlay instead: an outline paints UNDER the sticky cells
352
+ * (pinned column, toggle, header), so at 390 it was open along the top and start edge. The overlay
353
+ * sits over them, on the wrapper — the scroller's own box, which never scrolls — closed on all four.
354
+ */
355
+ @supports selector(:has(*)) {
356
+ .foldWrapper .scroller:focus-visible {
357
+ outline: none;
358
+ }
359
+
360
+ .foldWrapper:has(.scroller:focus-visible)::after {
361
+ content: '';
362
+ position: absolute;
363
+ inset: 0;
364
+ z-index: 5;
365
+ border: 2px solid var(--vx-accent);
366
+ pointer-events: none;
367
+ }
368
+ }
369
+
370
+ /*
371
+ * A pinned cell is opaque in EVERY row state (TanStack issue 5392 — the cell under it bled through).
372
+ * Its inline `background-color` is the panel; the row's own state tint is layered over it as an image,
373
+ * so a translucent tint composes on the panel exactly as it does on the row. The selectors mirror
374
+ * Mantine's `Table.css` tint rules (hover on a pointer, `:active` on touch; striped by `nth-of-type`).
375
+ */
376
+ .pinnedLayer {
377
+ --pinned-tint: transparent;
378
+ background-image: linear-gradient(var(--pinned-tint), var(--pinned-tint));
379
+ }
380
+
381
+ /* A sticky header paints `--mantine-color-body` on every `th`; its pinned cells must not read the
382
+ table's surface instead, or the pinned name is a different shade from the rest of the header. */
383
+ .table thead[data-sticky] {
384
+ --basalt-pin-fill: var(--mantine-color-body);
385
+ }
386
+
387
+ /* Body rows only: Mantine stamps `data-striped` / `data-hover` on the header's `<tr>` too, and an
388
+ unscoped rule tinted the pinned `<th>` of an odd first row — a grey block in the header. */
389
+ tbody > tr[data-striped='odd']:nth-of-type(odd) > .pinnedLayer,
390
+ tbody > tr[data-striped='even']:nth-of-type(even) > .pinnedLayer {
391
+ --pinned-tint: var(--table-striped-color);
392
+ }
393
+
394
+ @media (hover: hover) {
395
+ tbody > tr[data-hover]:hover > .pinnedLayer {
396
+ --pinned-tint: var(--tr-hover-bg);
397
+ }
398
+ }
399
+
400
+ @media (hover: none) {
401
+ tbody > tr[data-hover]:active > .pinnedLayer {
402
+ --pinned-tint: var(--tr-hover-bg);
403
+ }
404
+ }
405
+
406
+ /*
407
+ * The auto-pinned identifier: one line, ellipsized past 45% of the container (`--basalt-table-room`,
408
+ * written by the fold measurement; the title attribute carries the full text). Its min width is the
409
+ * inline `minWidth` from `columnDef.minSize`.
410
+ */
411
+ th.pinnedFluid,
412
+ td.pinnedFluid {
413
+ overflow: hidden;
414
+ max-width: calc(var(--basalt-table-room, 24rem) * 0.45);
415
+ text-overflow: ellipsis;
416
+ white-space: nowrap;
417
+ }
418
+
419
+ /* A hovered row takes the row-hover token on a fine pointer (Mantine's `highlightOnHover` paints it). */
420
+ .table {
421
+ --table-highlight-on-hover-color: var(--vx-surface-row-hover);
422
+ }
423
+
424
+ /*
425
+ * Rows hold one line (SPEC § 6.6, 40 px): a body cell never wraps, so the fold measures natural
426
+ * one-line widths and folds or pins instead of "fitting" by wrapping. Only an explicit `text` kind
427
+ * may wrap — never a pinned one. A full-row cell (empty and error bodies, the fold
428
+ * disclosure) holds prose and wraps inside the table width.
429
+ */
430
+ .table td {
431
+ white-space: nowrap;
432
+ }
433
+
434
+ .table td[data-kind='text']:not(.pinnedLayer),
435
+ .table td[colspan] {
436
+ white-space: normal;
437
+ }
438
+
439
+ /*
440
+ * Column sizing (SPEC § 6.6): `data-fit` columns take their content width — `1px` plus a no-wrap
441
+ * cell is "as narrow as the content allows" in the auto table layout — and the one slack column (or
442
+ * the trailing spacer) takes everything else, so a value sits next to its name at any width. The
443
+ * fold reads these natural `<th>` widths; the pinned identifier keeps its own cap.
444
+ */
445
+ .table [data-fit] {
446
+ width: 1px;
447
+ }
448
+
449
+ /* A fitted `text` column (all cells short) is as wide as its longest cell, so it holds one line: at
450
+ `width: 1px` the wrapping law would break "Payment failed" onto two. */
451
+ .table td[data-fit][data-kind='text']:not(.pinnedLayer) {
452
+ white-space: nowrap;
453
+ }
454
+
455
+ .spacer {
456
+ padding: 0;
457
+ }
458
+
459
+ /*
460
+ * A lone `danger` row action. Repeated once per row, a red icon at rest is a status hue on chrome,
461
+ * so it rests as the same neutral as any row action and takes the danger colour (the menu's red
462
+ * item) on the control's OWN hover or keyboard focus only — never the row's, which would light a
463
+ * column of red icons as the pointer moves down. A disabled or loading control stays neutral.
464
+ */
465
+ .dangerAction:not(:disabled, [data-disabled], [data-loading]):focus-visible {
466
+ color: var(--mantine-color-red-light-color);
467
+ }
468
+
469
+ /* Hover only where a pointer can hover: a tap on a phone must not leave a sticky red icon. */
470
+ @media (hover: hover) {
471
+ .dangerAction:not(:disabled, [data-disabled], [data-loading]):hover {
472
+ color: var(--mantine-color-red-light-color);
473
+ }
474
+ }
@@ -7,18 +7,34 @@ declare const classes: {
7
7
  readonly bulkBar: string
8
8
  readonly bulkCount: string
9
9
  readonly containment: string
10
+ readonly dangerAction: string
11
+ readonly foldChevron: string
12
+ readonly foldCount: string
13
+ readonly foldCountButton: string
14
+ readonly foldCountHint: string
10
15
  readonly foldDisclosure: string
11
16
  readonly foldDisclosureCell: string
12
17
  readonly foldDisclosureLabel: string
13
18
  readonly foldDisclosureRow: string
14
19
  readonly foldDisclosureRowTr: string
15
20
  readonly foldDisclosureValue: string
21
+ readonly foldNameList: string
22
+ readonly foldNames: string
16
23
  readonly foldToggle: string
17
24
  readonly foldToggleCell: string
18
25
  readonly foldWrapper: string
19
26
  readonly pageSticky: string
27
+ readonly toolbarInput: string
28
+ readonly toolbarWrapper: string
29
+ readonly tableHeader: string
30
+ readonly toolbar: string
31
+ readonly toolbarActions: string
32
+ readonly pinnedFluid: string
33
+ readonly pinnedLayer: string
34
+ readonly scroller: string
20
35
  readonly selectCell: string
21
36
  readonly selectHit: string
37
+ readonly spacer: string
22
38
  readonly srOnly: string
23
39
  readonly table: string
24
40
  }
@@ -1,6 +1,13 @@
1
1
  import type { ColumnDef, ColumnHelper, RowData } from '@tanstack/react-table';
2
2
  /** Horizontal alignment of a column's header AND its cells. */
3
3
  export type DataTableAlign = 'left' | 'center' | 'right';
4
+ /** The one list of cell kinds: the type, the runtime check and its error text derive from it. */
5
+ export declare const DATA_TABLE_COLUMN_KINDS: readonly ["entity", "status", "number", "money", "relative-time", "meter", "text"];
6
+ /**
7
+ * The cell kinds `meta.kind` names (`docs/waves/design-parity/SPEC.md` § 6.6). Unset keeps the
8
+ * table's plain cell. The chrome and the content each kind supplies live in `cell-kinds.tsx`.
9
+ */
10
+ export type DataTableColumnKind = (typeof DATA_TABLE_COLUMN_KINDS)[number];
4
11
  /**
5
12
  * What a column def's `meta` may carry. Registered per table through `columnMeta: metaHelper<…>()`
6
13
  * rather than a global `declare module '@tanstack/react-table'`, so `meta: { aling: 'right' }` is a
@@ -10,10 +17,10 @@ export type DataTableAlign = 'left' | 'center' | 'right';
10
17
  export type BasaltColumnMeta = {
11
18
  align?: DataTableAlign;
12
19
  /**
13
- * Opt OUT of the automatic mono-numeral cell style. The table applies it whenever the cell's
14
- * raw value is a number — which is right for a plain figure and wrong for a numeric accessor
15
- * whose `cell` renders its own chrome (a coloured `Text`, a `Badge`, a sparkline), because the
16
- * `<td>`'s mono font then overrides what the cell asked for.
20
+ * Opt OUT of the automatic numeral cell style (proportional sans with `tabular-nums`, SPEC D33).
21
+ * The table applies it whenever the cell's raw value is a number — which is right for a plain
22
+ * figure and wrong for a numeric accessor whose `cell` renders its own chrome (a coloured `Text`,
23
+ * a `Badge`, a sparkline), because the `<td>`'s numeral style then overrides what the cell asked for.
17
24
  */
18
25
  numeral?: boolean;
19
26
  /**
@@ -24,6 +31,29 @@ export type BasaltColumnMeta = {
24
31
  * LAST column first — nothing regresses with no `meta.priority` set anywhere. See `foldOrder`.
25
32
  */
26
33
  priority?: number;
34
+ /**
35
+ * The cell's kind: chrome always, content only when the column has no `cell` renderer of its own
36
+ * (a `cell` still supplies the content). Unset renders exactly the plain cell. A wrong value
37
+ * throws at render, like `align`.
38
+ *
39
+ * - `entity`: never wraps, ink, weight 500; the column's `cell` (glyph + name) or the raw value.
40
+ * - `status`: the status chip; colour from `statusColor`, default `gray`. Never wraps.
41
+ * - `number` / `money`: proportional tabular numerals (SPEC D33, not mono), right-aligned (an explicit `align` wins). Without a
42
+ * `cell` the raw number is formatted (`integer`; `money` grouped to `currency`'s minor digits, no symbol), null as a muted dash.
43
+ * The UNIT belongs in the header (`Volume (kg)`, `Salary (USD / yr)`), never in the cell.
44
+ * - `relative-time`: mono, muted; a raw `Date | number | string` renders as `3 hours ago` in a
45
+ * `<time>`, the full date in a tooltip and as its accessible name.
46
+ * - `meter`: the inline `Meter` bar for the value against `meterMax`.
47
+ * - `text`: plain `sm` ink that MAY wrap — the only kind that does. Every other body cell holds one line, so
48
+ * the fold measures natural widths and folds or pins instead of fitting by wrapping.
49
+ */
50
+ kind?: DataTableColumnKind;
51
+ /** `status`: the chip colour for a cell value — a theme colour name or a CSS var. Default `gray`. */
52
+ statusColor?(value: unknown): string;
53
+ /** `meter`: the value that fills the bar. Default 1 (a ratio). */
54
+ meterMax?: number;
55
+ /** `money` without a `cell`: the ISO 4217 code that sets the minor digits (the header names it). Default `USD`. */
56
+ currency?: string;
27
57
  };
28
58
  /**
29
59
  * Every row model is registered (v9 has no per-render `getXRowModel` switch); the table bypasses the
@@ -1 +1 @@
1
- {"version":3,"file":"table-features.d.ts","sourceRoot":"","sources":["../../src/table/table-features.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE7E,+DAA+D;AAC/D,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExD;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;CAoB9B,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D;;;GAGG;AAEH,MAAM,MAAM,eAAe,CAAC,CAAC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IAAI,SAAS,CAAC,mBAAmB,EAAE,CAAC,EAAE,GAAG,CAAC,CAAA;AAEvF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,OAAO,KAAK,YAAY,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAE5F"}
@@ -19,6 +19,15 @@ import {
19
19
  sortFn_text,
20
20
  tableFeatures
21
21
  } from "@tanstack/react-table";
22
+ const DATA_TABLE_COLUMN_KINDS = [
23
+ "entity",
24
+ "status",
25
+ "number",
26
+ "money",
27
+ "relative-time",
28
+ "meter",
29
+ "text"
30
+ ];
22
31
  const basaltTableFeatures = tableFeatures({
23
32
  rowSortingFeature,
24
33
  columnFilteringFeature,
@@ -44,6 +53,7 @@ function createColumnHelper() {
44
53
  return tanstackColumnHelper();
45
54
  }
46
55
  export {
56
+ DATA_TABLE_COLUMN_KINDS,
47
57
  basaltTableFeatures,
48
58
  createColumnHelper
49
59
  };
@@ -29,6 +29,41 @@
29
29
  padding: 0;
30
30
  }
31
31
 
32
+ /* The card radius tier. Paper's lives here rather than in the theme's inline `styles` so the rule
33
+ below can step it down; a Card keeps its inline value, which this one equals. */
34
+ .inset {
35
+ border-radius: var(--vx-radius-card);
36
+ }
37
+
38
+ /*
39
+ * A `Paper` floating over a flush card (a scrubber or key over a map canvas) is a nested surface:
40
+ * sharing the card's radius fails `craft-1/nested-radius-step` (< 3 px apart). It steps DOWN to the
41
+ * control tier, which is always a scale step and 4 px under the card at every radius level (`card =
42
+ * 10 + level`, `ctrl = 6 + level`), the same snap-down law as the Wave 38 nested radii.
43
+ *
44
+ * An explicit `radius` prop still wins: Mantine writes it inline as `--paper-radius`, which beats
45
+ * this rule's `initial` reset; unset, Mantine's own class value (the theme default radius) is
46
+ * reset away so the `var()` falls through to the control tier.
47
+ *
48
+ * Excluded: Mantine's own floating surfaces, which are Papers too but are not panels over the
49
+ * canvas, and a `withinPortal={false}` one renders INSIDE the card. Every `mantine-*-dropdown`
50
+ * part (Popover, Menu, HoverCard, Combobox and the Selects built on it) and Modal / Drawer / Dialog
51
+ * content keep their own radius. What still matches is any other Paper under the flush card, at any
52
+ * depth: a Paper used as an inner card steps down too, which is the nested-step law's intent.
53
+ */
54
+ .inset[data-variant='flush']
55
+ .inset:where(
56
+ :not(
57
+ [class*='mantine-'][class*='-dropdown'],
58
+ [class*='mantine-Modal-'],
59
+ [class*='mantine-Drawer-'],
60
+ [class*='mantine-Dialog-']
61
+ )
62
+ ) {
63
+ --paper-radius: initial;
64
+ border-radius: var(--paper-radius, var(--vx-radius-ctrl));
65
+ }
66
+
32
67
  .inset:where(
33
68
  :not(
34
69
  [data-variant='flush'],
@@ -56,11 +56,32 @@ html[data-mantine-color-scheme] .inputWrapper[data-variant='default']:not([data-
56
56
  * which keep their Mantine semantics and take the focus ring alone.
57
57
  */
58
58
  .input {
59
- --field-depth: 0 0 transparent;
59
+ --field-resting: 0 0 transparent;
60
+ --field-depth: var(--field-resting);
60
61
 
61
62
  box-shadow: var(--field-depth);
62
63
  }
63
64
 
65
+ /* Browser autofill: the field surface over the UA colour, keeping the variant's resting depth. */
66
+ .input:-webkit-autofill,
67
+ .input:-webkit-autofill:hover,
68
+ .input:-webkit-autofill:focus {
69
+ --field-depth: var(--field-resting), 0 0 0 100vmax var(--vx-surface-field) inset;
70
+ /* The UA repaints its highlight on :focus (a Select's input stays focused while its list is open)
71
+ * and recolours the text; parking the background transition keeps the paint off the field. */
72
+ -webkit-text-fill-color: var(--vx-ink);
73
+ caret-color: var(--vx-ink);
74
+ transition: background-color 600000s 0s;
75
+ }
76
+
77
+ /* Tab into a field selects its value, and the UA paints that selection in its own colour (a green
78
+ in the dark scheme). The shot crop of a focused field showed exactly that, not an autofill fill:
79
+ `:-webkit-autofill` never matches there. The selection takes the accent, tinted, with the ink kept. */
80
+ .input::selection {
81
+ background: color-mix(in srgb, var(--mantine-primary-color-filled) 35%, transparent);
82
+ color: var(--vx-ink);
83
+ }
84
+
64
85
  /* An input cannot host the `[data-basalt-hit]` ::after overlay, so its touch floor is real height. */
65
86
  @media (pointer: coarse) {
66
87
  .input {
@@ -69,7 +90,7 @@ html[data-mantine-color-scheme] .inputWrapper[data-variant='default']:not([data-
69
90
  }
70
91
 
71
92
  .input[data-variant='default'] {
72
- --field-depth: var(--vx-shadow-raised);
93
+ --field-resting: var(--vx-shadow-raised);
73
94
  }
74
95
 
75
96
  /*
@@ -309,6 +330,38 @@ html .tableRoot {
309
330
  --table-border-color: var(--vx-surface-hairline);
310
331
  }
311
332
 
333
+ /*
334
+ * The header is a faint micro-label on the body's own fill (no band; the hairline below the head row
335
+ * is its only divider). The SORTED column steps up to ink — its arrow inherits it; unsorted sortable
336
+ * headers stay faint. `aria-sort` is the state the table already writes, so no extra class.
337
+ */
338
+ html .tableRoot th {
339
+ color: var(--vx-faint);
340
+ }
341
+
342
+ html .tableRoot th[aria-sort='ascending'],
343
+ html .tableRoot th[aria-sort='descending'] {
344
+ color: var(--vx-ink);
345
+ }
346
+
347
+ /*
348
+ * The current page is selection state, so it is an ink-mixed fill with an ink label, the `pills` Tab's
349
+ * step (SPEC § 6.12). This is its one home: there is no `Pagination` vars entry in `theme/index.ts`.
350
+ * Mantine writes `--pagination-active-bg` inline only for an explicit `color=`, which therefore keeps
351
+ * its accent fill and Mantine's own label contrast.
352
+ */
353
+ html :global(.mantine-Pagination-root):not([style*='--pagination-active-bg']) {
354
+ --pagination-active-bg: color-mix(in srgb, var(--vx-ink) 12%, var(--vx-surface-panel));
355
+ }
356
+
357
+ /* The label is set on the control: Mantine writes `--pagination-active-color` inline (white), which a
358
+ rule on the root cannot outrank. */
359
+ html
360
+ :global(.mantine-Pagination-root):not([style*='--pagination-active-bg'])
361
+ :global(.mantine-Pagination-control)[data-active] {
362
+ color: var(--vx-ink);
363
+ }
364
+
312
365
  /*
313
366
  * The LAST row's separator is dropped — exactly the rule (and exactly the reasoning) the Accordion
314
367
  * above already carries: a separator BETWEEN items is information, and the same line drawn after the
@@ -1 +1 @@
1
- {"version":3,"file":"ctl-theme.d.ts","sourceRoot":"","sources":["../../src/theme/ctl-theme.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAMV,oBAAoB,EAQrB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOtC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAA+B,CAAA;AAEzE;;iGAEiG;AACjG,eAAO,MAAM,SAAS,EAAE,oBA+BvB,CAAA;AAoCD,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;CACxB,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAY,EAAE,EAAE,YAAY,GAAG,SAAS,CAQ3E"}
1
+ {"version":3,"file":"ctl-theme.d.ts","sourceRoot":"","sources":["../../src/theme/ctl-theme.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAMV,oBAAoB,EAWrB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOtC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAA+B,CAAA;AAEzE;;iGAEiG;AACjG,eAAO,MAAM,SAAS,EAAE,oBAoCvB,CAAA;AAoCD,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;CACxB,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAY,EAAE,EAAE,YAAY,GAAG,SAAS,CAQ3E"}
@@ -12,6 +12,11 @@ const CTL_THEME = {
12
12
  MultiSelect: ext({ defaultProps: { size: "ctl" } }),
13
13
  SegmentedControl: ext({ defaultProps: { size: "ctl" } }),
14
14
  NativeSelect: ext({ defaultProps: { size: "ctl" } }),
15
+ // The form fields a `FormRow` / `SettingsRow` hosts (SPEC § 6.13): the 32 px field without a
16
+ // per-call `size`. `theme/index.ts` already carries the `ctl` stepper column for NumberInput.
17
+ NumberInput: ext({ defaultProps: { size: "ctl" } }),
18
+ PasswordInput: ext({ defaultProps: { size: "ctl" } }),
19
+ Textarea: ext({ defaultProps: { size: "ctl" } }),
15
20
  // The theme keys are the component names Mantine's own `useProps` looks up — `RadioGroup`, not
16
21
  // `Radio.Group` (`RadioGroup.mjs`: `useProps("RadioGroup", …)`).
17
22
  Radio: ext({
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EA0CV,oBAAoB,EAGpB,oBAAoB,EAErB,MAAM,eAAe,CAAA;AAStB,OAAO,KAAK,EAAe,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAKpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAWvD;;;;;GAKG;AACH,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAIvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAMvD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AAenE,OAAO,QAAQ,eAAe,CAAC;IAC7B,UAAU,iBAAiB;QACzB,YAAY,CAAC,EAAE,YAAY,CAAA;QAC3B,WAAW,CAAC,EAAE,iBAAiB,CAAA;QAC/B,YAAY,CAAC,EAAE,YAAY,CAAA;QAC3B,aAAa,CAAC,EAAE,WAAW,CAAA;KAC5B;CACF;AAqgCD;+EAC+E;AAC/E,eAAO,MAAM,S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AM,CAAC,EAAE,iBAAiB,CAAA;IAE1B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAA;CAC7B,CAAA;AAYD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,aAAa,CAAC,EACrD,OAAO,CAAC,EAAE,wBAAwB,GACjC,oBAAoB,CAiCtB"}
@@ -245,11 +245,12 @@ function buildTheme(data, options = {}) {
245
245
  }),
246
246
  Paper: ext({
247
247
  classNames: { root: cardInsetClasses.inset },
248
+ // The radius is in `card-inset.module.css`, not inline: an inline value cannot be stepped
249
+ // down for a Paper floating over a flush card.
248
250
  styles: {
249
251
  root: {
250
252
  backgroundColor: "var(--vx-surface-panel)",
251
- boxShadow: "var(--vx-shadow-card)",
252
- borderRadius: "var(--vx-radius-card)"
253
+ boxShadow: "var(--vx-shadow-card)"
253
254
  }
254
255
  }
255
256
  }),
@@ -779,7 +780,9 @@ function buildTheme(data, options = {}) {
779
780
  }
780
781
  }
781
782
  }),
782
- // Header cells become a micro-label (mono, uppercase, faint) — numeral/tabular styling for
783
+ // Header cells become a micro-label (mono, uppercase; the colour — faint, ink when sorted — is
784
+ // `.tableRoot th` in controls.module.css, since an inline colour here could not be overridden by
785
+ // the sorted state). The head shares the body's fill: no band, only the hairline. Numeral/tabular styling for
783
786
  // body cells is a per-table call-site concern, left to consumers. `--table-border-color`
784
787
  // drives row separators AND the opt-in `withTableBorder` outer border — both drop to the
785
788
  // hairline (Mantine's default reads gray-3/dark-4 = the STRONG line, too heavy in a card).
@@ -797,8 +800,7 @@ function buildTheme(data, options = {}) {
797
800
  fontSize: VX.text.micro,
798
801
  fontWeight: 500,
799
802
  letterSpacing: "0.06em",
800
- textTransform: "uppercase",
801
- color: "var(--vx-faint)"
803
+ textTransform: "uppercase"
802
804
  },
803
805
  td: { height: spacing.step.tableRowHeight, fontSize: VX.text.sm }
804
806
  }
@@ -848,11 +850,9 @@ function buildTheme(data, options = {}) {
848
850
  }
849
851
  })
850
852
  }),
851
- Pagination: ext({
852
- vars: (theme, props) => ({
853
- root: { "--pagination-active-color": onColorFor(theme, props) }
854
- })
855
- }),
853
+ // The current page is ink (SPEC § 6.12); its one home is `controls.module.css`, so this entry only
854
+ // registers the component for the border-coverage gate.
855
+ Pagination: ext({}),
856
856
  // `Pagination`'s own controls (prev/next/page buttons) resolve `PaginationControl`'s
857
857
  // defaultProps independently of the parent — `data-basalt-hit` here is what closes the
858
858
  // gap Switch/Checkbox/Radio already close at their own theme entries.
@@ -958,6 +958,10 @@ function ctlSizeVars() {
958
958
  "--combobox-chevron-size-ctl": pxRem(CTL_CHEVRON_SIZE),
959
959
  "--ni-chevron-size-ctl": pxRem(CTL_NUMBER_CHEVRON_SIZE),
960
960
  "--ni-right-section-width-ctl": `calc(${pxRem(CTL_NUMBER_RIGHT_SECTION_WIDTH)} * var(--mantine-scale))`,
961
+ // PasswordInput's visibility toggle: Mantine's own `xs` pair (22 px button, 16 px icon), the tier
962
+ // whose input height already equals `ctl`; undeclared, `size="ctl"` left the toggle unsized.
963
+ "--psi-button-size-ctl": "calc(1.375rem * var(--mantine-scale))",
964
+ "--psi-icon-size-ctl": "calc(1rem * var(--mantine-scale))",
961
965
  "--badge-padding-x-ctl": `calc(${pxRem(CTL_PADDING_X)} * var(--mantine-scale))`,
962
966
  "--badge-fz-ctl": `calc(${pxRem(VX.text.xs)} * var(--mantine-scale))`,
963
967
  // `= VX.text.sm` per `docs/CONTROLS-SPEC.md` §5 — same `calc(<rem> * var(--mantine-scale))`