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
  }