basalt-ui 3.0.0 → 3.1.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 (512) hide show
  1. package/AGENTS.md +1 -0
  2. package/CHANGELOG.md +72 -39
  3. package/MIGRATING.md +44 -2
  4. package/README.md +39 -12
  5. package/agent/rules/basalt-tokens.md +1 -1
  6. package/agent/rules/basalt-ui.md +3 -3
  7. package/agent/skills/basalt-app/references/live.md +4 -4
  8. package/agent/skills/basalt-app/references/migrate.md +2 -2
  9. package/agent/skills/basalt-app/references/setup.md +17 -8
  10. package/agent/skills/basalt-app/references/testing.md +8 -6
  11. package/agent/skills/basalt-design/SKILL.md +2 -1
  12. package/agent/skills/basalt-design/references/controls.md +1 -0
  13. package/agent/skills/basalt-design/references/parts.md +5 -1
  14. package/agent/templates/AGENTS-block.md.tpl +6 -23
  15. package/agent/templates/AGENTS-block.site.md.tpl +5 -18
  16. package/agent/templates/AGENTS-block.tokens.md.tpl +3 -7
  17. package/agent/templates/DESIGN.md.tpl +1 -1
  18. package/agent/templates/_app-error.i18n.tpl +8 -32
  19. package/agent/templates/_app-error.tpl +8 -32
  20. package/agent/templates/_app-pending.i18n.tpl +5 -3
  21. package/agent/templates/_app-pending.tpl +5 -4
  22. package/agent/templates/main.i18n.tpl +8 -3
  23. package/agent/templates/main.tpl +8 -3
  24. package/agent/templates/router.start.tpl +8 -3
  25. package/agent/templates/seed-messages.json +0 -30
  26. package/configs/oxlint-app.json +9 -1
  27. package/configs/oxlint-bridge.json +3 -1
  28. package/configs/oxlint-parts.json +9 -1
  29. package/configs/oxlint-site.json +3 -1
  30. package/dist/astro/shiki.d.ts +3 -2
  31. package/dist/astro/shiki.d.ts.map +1 -1
  32. package/dist/cards/bar-list.d.ts.map +1 -1
  33. package/dist/cards/bar-list.js +2 -1
  34. package/dist/cards/chain-view.d.ts +37 -8
  35. package/dist/cards/chain-view.d.ts.map +1 -1
  36. package/dist/cards/chain-view.js +105 -38
  37. package/dist/cards/contract.d.ts +8 -1
  38. package/dist/cards/contract.d.ts.map +1 -1
  39. package/dist/cards/data-panel.d.ts.map +1 -1
  40. package/dist/cards/data-panel.js +1 -0
  41. package/dist/cards/event-list.d.ts.map +1 -1
  42. package/dist/cards/event-list.js +3 -2
  43. package/dist/cards/index.d.ts +1 -1
  44. package/dist/cards/index.d.ts.map +1 -1
  45. package/dist/cards/row-list.d.ts.map +1 -1
  46. package/dist/cards/row-list.js +2 -1
  47. package/dist/cards/stat-card-parts.d.ts +3 -3
  48. package/dist/cards/stat-card-parts.d.ts.map +1 -1
  49. package/dist/cards/stat-card-parts.js +8 -2
  50. package/dist/cards/stat-card.d.ts.map +1 -1
  51. package/dist/cards/stat-card.js +34 -9
  52. package/dist/charts/core/compile.d.ts +2 -0
  53. package/dist/charts/core/compile.d.ts.map +1 -1
  54. package/dist/charts/core/compile.js +16 -8
  55. package/dist/charts/core/cursor.d.ts +2 -1
  56. package/dist/charts/core/cursor.d.ts.map +1 -1
  57. package/dist/charts/core/cursor.js +8 -1
  58. package/dist/charts/core/tooltip-said.d.ts +16 -0
  59. package/dist/charts/core/tooltip-said.d.ts.map +1 -0
  60. package/dist/charts/core/tooltip-said.js +39 -0
  61. package/dist/charts/focus.d.ts.map +1 -1
  62. package/dist/charts/focus.js +1 -1
  63. package/dist/charts/parts/chart-card.d.ts.map +1 -1
  64. package/dist/charts/parts/chart-card.js +1 -0
  65. package/dist/cli/agent-note.d.ts +3 -3
  66. package/dist/cli/agent-note.d.ts.map +1 -1
  67. package/dist/cli/agent-note.js +5 -5
  68. package/dist/cli/budget/index.d.ts +7 -0
  69. package/dist/cli/budget/index.d.ts.map +1 -1
  70. package/dist/cli/budget/index.js +11 -5
  71. package/dist/cli/config.d.ts +1 -1
  72. package/dist/cli/doctor/app.d.ts.map +1 -1
  73. package/dist/cli/doctor/app.js +53 -24
  74. package/dist/cli/doctor/eject.d.ts.map +1 -1
  75. package/dist/cli/doctor/eject.js +16 -9
  76. package/dist/cli/doctor/guards.d.ts.map +1 -1
  77. package/dist/cli/doctor/guards.js +11 -8
  78. package/dist/cli/doctor/hook.js +1 -1
  79. package/dist/cli/doctor/install.d.ts.map +1 -1
  80. package/dist/cli/doctor/install.js +46 -22
  81. package/dist/cli/doctor/translations.d.ts.map +1 -1
  82. package/dist/cli/doctor/translations.js +11 -4
  83. package/dist/cli/doctor/types.d.ts +2 -2
  84. package/dist/cli/doctor/types.d.ts.map +1 -1
  85. package/dist/cli/doctor/types.js +1 -1
  86. package/dist/cli/doctor/wiring.d.ts.map +1 -1
  87. package/dist/cli/doctor/wiring.js +26 -15
  88. package/dist/cli/eject/dropped-slots.d.ts +6 -0
  89. package/dist/cli/eject/dropped-slots.d.ts.map +1 -0
  90. package/dist/cli/eject/dropped-slots.js +9 -0
  91. package/dist/cli/eject/index.d.ts.map +1 -1
  92. package/dist/cli/eject/index.js +9 -8
  93. package/dist/cli/help.d.ts.map +1 -1
  94. package/dist/cli/help.js +7 -2
  95. package/dist/cli/index.d.ts +6 -5
  96. package/dist/cli/index.d.ts.map +1 -1
  97. package/dist/cli/index.js +38 -7
  98. package/dist/cli/init/index.d.ts +10 -0
  99. package/dist/cli/init/index.d.ts.map +1 -1
  100. package/dist/cli/init/index.js +61 -10
  101. package/dist/cli/init/locales.d.ts +7 -0
  102. package/dist/cli/init/locales.d.ts.map +1 -1
  103. package/dist/cli/init/locales.js +21 -6
  104. package/dist/cli/init/router-seeds.d.ts.map +1 -1
  105. package/dist/cli/init/router-seeds.js +16 -3
  106. package/dist/cli/init/steps.d.ts +36 -3
  107. package/dist/cli/init/steps.d.ts.map +1 -1
  108. package/dist/cli/init/steps.js +201 -34
  109. package/dist/cli/lint/baseline.d.ts +27 -0
  110. package/dist/cli/lint/baseline.d.ts.map +1 -0
  111. package/dist/cli/lint/baseline.js +96 -0
  112. package/dist/cli/lint/engine.d.ts +2 -0
  113. package/dist/cli/lint/engine.d.ts.map +1 -1
  114. package/dist/cli/lint/engine.js +18 -8
  115. package/dist/cli/lint/hook.d.ts.map +1 -1
  116. package/dist/cli/lint/hook.js +8 -3
  117. package/dist/cli/lint/index.d.ts +3 -0
  118. package/dist/cli/lint/index.d.ts.map +1 -1
  119. package/dist/cli/lint/index.js +67 -8
  120. package/dist/cli/manifest.d.ts +46 -3
  121. package/dist/cli/manifest.d.ts.map +1 -1
  122. package/dist/cli/manifest.js +71 -1
  123. package/dist/cli/migrate/census.d.ts +6 -0
  124. package/dist/cli/migrate/census.d.ts.map +1 -1
  125. package/dist/cli/migrate/census.js +22 -1
  126. package/dist/cli/migrate/index.d.ts +5 -0
  127. package/dist/cli/migrate/index.d.ts.map +1 -1
  128. package/dist/cli/migrate/index.js +36 -3
  129. package/dist/cli/migrate/lost-classes.d.ts +20 -0
  130. package/dist/cli/migrate/lost-classes.d.ts.map +1 -0
  131. package/dist/cli/migrate/lost-classes.js +145 -0
  132. package/dist/cli/migrate/rows.d.ts +10 -0
  133. package/dist/cli/migrate/rows.d.ts.map +1 -1
  134. package/dist/cli/migrate/rows.js +15 -0
  135. package/dist/cli/package-manager.d.ts.map +1 -1
  136. package/dist/cli/package-manager.js +2 -1
  137. package/dist/cli/peers.d.ts +2 -0
  138. package/dist/cli/peers.d.ts.map +1 -1
  139. package/dist/cli/peers.js +7 -0
  140. package/dist/cli/presets.d.ts.map +1 -1
  141. package/dist/cli/presets.js +27 -11
  142. package/dist/cli/resolver.d.ts +13 -4
  143. package/dist/cli/resolver.d.ts.map +1 -1
  144. package/dist/cli/resolver.js +39 -5
  145. package/dist/cli/router-wiring.d.ts +1 -0
  146. package/dist/cli/router-wiring.d.ts.map +1 -1
  147. package/dist/cli/router-wiring.js +1 -1
  148. package/dist/cli/sync/engine.d.ts +8 -1
  149. package/dist/cli/sync/engine.d.ts.map +1 -1
  150. package/dist/cli/sync/engine.js +25 -14
  151. package/dist/cli/sync/index.d.ts.map +1 -1
  152. package/dist/cli/sync/index.js +7 -4
  153. package/dist/cli/sync/render.d.ts.map +1 -1
  154. package/dist/cli/sync/render.js +21 -28
  155. package/dist/cli/tokens-css.d.ts +2 -0
  156. package/dist/cli/tokens-css.d.ts.map +1 -1
  157. package/dist/cli/tokens-css.js +28 -6
  158. package/dist/controls/contract.d.ts +2 -1
  159. package/dist/controls/contract.d.ts.map +1 -1
  160. package/dist/controls/control-home.d.ts +4 -1
  161. package/dist/controls/control-home.d.ts.map +1 -1
  162. package/dist/controls/control-home.js +5 -3
  163. package/dist/controls/local-control.d.ts +28 -1
  164. package/dist/controls/local-control.d.ts.map +1 -1
  165. package/dist/controls/local-control.js +14 -2
  166. package/dist/core/cn.d.ts.map +1 -1
  167. package/dist/core/cn.js +6 -5
  168. package/dist/core/frame-figure.d.ts +2 -0
  169. package/dist/core/frame-figure.d.ts.map +1 -1
  170. package/dist/core/frame-figure.js +5 -2
  171. package/dist/core/frame-head.d.ts +3 -1
  172. package/dist/core/frame-head.d.ts.map +1 -1
  173. package/dist/core/frame-head.js +28 -7
  174. package/dist/core/frame-regions.d.ts +1 -1
  175. package/dist/core/frame-regions.d.ts.map +1 -1
  176. package/dist/core/frame-regions.js +18 -8
  177. package/dist/core/info-hint.d.ts +5 -0
  178. package/dist/core/info-hint.d.ts.map +1 -1
  179. package/dist/core/info-hint.js +22 -1
  180. package/dist/core/mark-tone.d.ts +6 -2
  181. package/dist/core/mark-tone.d.ts.map +1 -1
  182. package/dist/core/mark-tone.js +1 -1
  183. package/dist/core/mark-types.d.ts +4 -2
  184. package/dist/core/mark-types.d.ts.map +1 -1
  185. package/dist/core/messages/chain.d.ts +2 -1
  186. package/dist/core/messages/chain.d.ts.map +1 -1
  187. package/dist/core/messages/chain.js +1 -0
  188. package/dist/core/messages/index.d.ts +2 -1
  189. package/dist/core/messages/index.d.ts.map +1 -1
  190. package/dist/core/messages/index.js +2 -0
  191. package/dist/core/messages/runs.d.ts +20 -0
  192. package/dist/core/messages/runs.d.ts.map +1 -0
  193. package/dist/core/messages/runs.js +18 -0
  194. package/dist/core/phase.d.ts +25 -2
  195. package/dist/core/phase.d.ts.map +1 -1
  196. package/dist/core/ports.d.ts +4 -1
  197. package/dist/core/ports.d.ts.map +1 -1
  198. package/dist/core/provider.d.ts +3 -1
  199. package/dist/core/provider.d.ts.map +1 -1
  200. package/dist/core/provider.js +5 -3
  201. package/dist/core/scheme.d.ts +2 -1
  202. package/dist/core/scheme.d.ts.map +1 -1
  203. package/dist/core/scheme.js +1 -0
  204. package/dist/core/spark/mini-bars.d.ts +6 -4
  205. package/dist/core/spark/mini-bars.d.ts.map +1 -1
  206. package/dist/core/spark/mini-bars.js +36 -11
  207. package/dist/core/spark/sparkline.d.ts +2 -2
  208. package/dist/core/spark/sparkline.d.ts.map +1 -1
  209. package/dist/core/spark/sparkline.js +21 -2
  210. package/dist/css/bridge.css +63 -0
  211. package/dist/css/generate.d.ts +2 -2
  212. package/dist/css/generate.d.ts.map +1 -1
  213. package/dist/css/generate.js +25 -0
  214. package/dist/data/live/live-query.d.ts +2 -2
  215. package/dist/data/live/live-query.d.ts.map +1 -1
  216. package/dist/data/live/live-query.js +2 -1
  217. package/dist/lint/preset.d.ts +12 -3
  218. package/dist/lint/preset.d.ts.map +1 -1
  219. package/dist/lint/preset.js +30 -10
  220. package/dist/lint/rules/class/table.d.ts.map +1 -1
  221. package/dist/lint/rules/class/table.js +3 -1
  222. package/dist/lint/rules/structure/control-home.js +1 -1
  223. package/dist/lint/rules/structure/import-boundary.d.ts.map +1 -1
  224. package/dist/lint/rules/structure/import-boundary.js +2 -0
  225. package/dist/lint/rules/structure/label-literal.d.ts.map +1 -1
  226. package/dist/lint/rules/structure/label-literal.js +1 -1
  227. package/dist/lint/shadcn.d.ts +562 -0
  228. package/dist/lint/shadcn.d.ts.map +1 -0
  229. package/dist/lint/shadcn.js +52 -0
  230. package/dist/lint/stylelint/render.d.ts +3 -1
  231. package/dist/lint/stylelint/render.d.ts.map +1 -1
  232. package/dist/lint/stylelint/render.js +23 -2
  233. package/dist/lint/stylelint/rules.d.ts +3 -2
  234. package/dist/lint/stylelint/rules.d.ts.map +1 -1
  235. package/dist/lint/stylelint/rules.js +11 -6
  236. package/dist/lint/weakened.d.ts +8 -0
  237. package/dist/lint/weakened.d.ts.map +1 -1
  238. package/dist/lint/weakened.js +44 -1
  239. package/dist/messages/de.d.ts.map +1 -1
  240. package/dist/messages/de.js +15 -0
  241. package/dist/messages/es.d.ts.map +1 -1
  242. package/dist/messages/es.js +15 -0
  243. package/dist/messages/fr.d.ts.map +1 -1
  244. package/dist/messages/fr.js +15 -0
  245. package/dist/messages/zh-hans.d.ts.map +1 -1
  246. package/dist/messages/zh-hans.js +15 -0
  247. package/dist/page/bar-title.d.ts +25 -0
  248. package/dist/page/bar-title.d.ts.map +1 -0
  249. package/dist/page/bar-title.js +10 -0
  250. package/dist/page/contract.d.ts +11 -1
  251. package/dist/page/contract.d.ts.map +1 -1
  252. package/dist/page/empty-state.d.ts +5 -2
  253. package/dist/page/empty-state.d.ts.map +1 -1
  254. package/dist/page/empty-state.js +14 -3
  255. package/dist/page/facts.d.ts +19 -2
  256. package/dist/page/facts.d.ts.map +1 -1
  257. package/dist/page/facts.js +26 -5
  258. package/dist/page/index.d.ts +8 -0
  259. package/dist/page/index.d.ts.map +1 -1
  260. package/dist/page/index.js +9 -0
  261. package/dist/page/page-bar.d.ts.map +1 -1
  262. package/dist/page/page-bar.js +2 -7
  263. package/dist/page/page-summary.d.ts +2 -1
  264. package/dist/page/page-summary.d.ts.map +1 -1
  265. package/dist/page/page-summary.js +1 -1
  266. package/dist/page/run-button.d.ts +26 -0
  267. package/dist/page/run-button.d.ts.map +1 -0
  268. package/dist/page/run-button.js +31 -0
  269. package/dist/page/run-list.d.ts +28 -0
  270. package/dist/page/run-list.d.ts.map +1 -0
  271. package/dist/page/run-list.js +88 -0
  272. package/dist/page/run-queue.d.ts +78 -0
  273. package/dist/page/run-queue.d.ts.map +1 -0
  274. package/dist/page/run-queue.js +93 -0
  275. package/dist/page/section.d.ts +6 -1
  276. package/dist/page/section.d.ts.map +1 -1
  277. package/dist/page/section.js +34 -16
  278. package/dist/shell/commands/command-palette.d.ts.map +1 -1
  279. package/dist/shell/commands/command-palette.js +5 -1
  280. package/dist/shell/parts/header.js +1 -1
  281. package/dist/surfaces.d.ts +15 -1
  282. package/dist/surfaces.d.ts.map +1 -1
  283. package/dist/surfaces.js +19 -2
  284. package/dist/testing/index.d.ts +1 -0
  285. package/dist/testing/index.d.ts.map +1 -1
  286. package/dist/testing/index.js +3 -0
  287. package/dist/testing/pseudo-locale.d.ts +41 -0
  288. package/dist/testing/pseudo-locale.d.ts.map +1 -0
  289. package/dist/testing/pseudo-locale.js +74 -0
  290. package/dist/testing/quality.d.ts +6 -0
  291. package/dist/testing/quality.d.ts.map +1 -1
  292. package/dist/testing/quality.js +139 -1
  293. package/dist/tokens/bridge-sheet.d.ts +21 -0
  294. package/dist/tokens/bridge-sheet.d.ts.map +1 -0
  295. package/dist/tokens/bridge-sheet.js +68 -0
  296. package/dist/tokens/emit.d.ts +6 -1
  297. package/dist/tokens/emit.d.ts.map +1 -1
  298. package/dist/tokens/emit.js +26 -1
  299. package/dist/ui/accordion.js +1 -1
  300. package/dist/ui/card.d.ts +32 -4
  301. package/dist/ui/card.d.ts.map +1 -1
  302. package/dist/ui/card.js +26 -3
  303. package/dist/ui/collapsible.d.ts +4 -2
  304. package/dist/ui/collapsible.d.ts.map +1 -1
  305. package/dist/ui/collapsible.js +1 -1
  306. package/dist/ui/combobox.js +1 -1
  307. package/dist/ui/meter.d.ts +34 -3
  308. package/dist/ui/meter.d.ts.map +1 -1
  309. package/dist/ui/meter.guard.d.ts +2 -0
  310. package/dist/ui/meter.guard.d.ts.map +1 -1
  311. package/dist/ui/meter.guard.js +20 -0
  312. package/dist/ui/meter.js +23 -7
  313. package/dist/ui/primitive.contract.d.ts.map +1 -1
  314. package/dist/ui/primitive.contract.js +7 -0
  315. package/dist/ui/remote-pad.d.ts +62 -0
  316. package/dist/ui/remote-pad.d.ts.map +1 -0
  317. package/dist/ui/remote-pad.guard.d.ts +21 -0
  318. package/dist/ui/remote-pad.guard.d.ts.map +1 -0
  319. package/dist/ui/remote-pad.guard.js +6 -0
  320. package/dist/ui/remote-pad.js +148 -0
  321. package/dist/ui/segmented.d.ts.map +1 -1
  322. package/dist/ui/segmented.js +4 -0
  323. package/dist/ui/skeleton.d.ts +9 -4
  324. package/dist/ui/skeleton.d.ts.map +1 -1
  325. package/dist/ui/skeleton.guard.d.ts +6 -2
  326. package/dist/ui/skeleton.guard.d.ts.map +1 -1
  327. package/dist/ui/skeleton.guard.js +4 -0
  328. package/dist/ui/skeleton.js +2 -1
  329. package/dist/ui/slots.d.ts +2 -1
  330. package/dist/ui/slots.d.ts.map +1 -1
  331. package/dist/ui/slots.js +2 -1
  332. package/dist/vite/allotment.d.ts +1 -1
  333. package/dist/vite/allotment.d.ts.map +1 -1
  334. package/dist/vite/allotment.js +15 -1
  335. package/dist/vite/doc.d.ts +1 -1
  336. package/dist/vite/doc.d.ts.map +1 -1
  337. package/dist/vite/doc.js +12 -2
  338. package/dist/vite/head.d.ts +4 -3
  339. package/dist/vite/head.d.ts.map +1 -1
  340. package/dist/vite/index.d.ts.map +1 -1
  341. package/dist/vite/index.js +4 -1
  342. package/dist/vite/shell-worker.d.ts +6 -0
  343. package/dist/vite/shell-worker.d.ts.map +1 -0
  344. package/dist/vite/shell-worker.js +92 -0
  345. package/docs/astro.md +19 -4
  346. package/docs/bar-list.md +3 -2
  347. package/docs/bar-title.md +33 -0
  348. package/docs/basalt-provider.md +2 -1
  349. package/docs/card.md +24 -4
  350. package/docs/chain-view.md +12 -7
  351. package/docs/chart-card.md +3 -2
  352. package/docs/collapsible.md +4 -2
  353. package/docs/control-home.md +4 -2
  354. package/docs/create-run-queue.md +40 -0
  355. package/docs/data-panel.md +3 -2
  356. package/docs/de.md +1 -1
  357. package/docs/empty-state.md +3 -1
  358. package/docs/es.md +1 -1
  359. package/docs/event-list.md +3 -2
  360. package/docs/fact.md +6 -1
  361. package/docs/facts.md +5 -1
  362. package/docs/fr.md +1 -1
  363. package/docs/live-query.md +1 -1
  364. package/docs/meter.md +17 -13
  365. package/docs/mini-bars.md +7 -5
  366. package/docs/pseudo-basalt-messages.md +30 -0
  367. package/docs/pseudo-messages.md +27 -0
  368. package/docs/quality.md +2 -1
  369. package/docs/recipes/localise-app.md +2 -2
  370. package/docs/remote-pad.md +40 -0
  371. package/docs/row-list.md +3 -2
  372. package/docs/run-button.md +45 -0
  373. package/docs/run-list.md +71 -0
  374. package/docs/section.md +7 -1
  375. package/docs/set-scheme.md +2 -2
  376. package/docs/skeleton.md +4 -3
  377. package/docs/slots.md +1 -1
  378. package/docs/sparkline.md +5 -2
  379. package/docs/stat-card.md +6 -4
  380. package/docs/testing.md +64 -0
  381. package/docs/use-local-control.md +8 -1
  382. package/docs/use-runs.md +32 -0
  383. package/docs/vite.md +12 -2
  384. package/docs/zh-hans.md +1 -1
  385. package/llms.txt +88 -21
  386. package/migrations/areas/shadcn.json +338 -0
  387. package/package.json +9 -2
  388. package/src/astro/shiki.ts +3 -1
  389. package/src/cards/bar-list.tsx +2 -1
  390. package/src/cards/chain-view.tsx +167 -55
  391. package/src/cards/contract.ts +8 -1
  392. package/src/cards/data-panel.tsx +1 -0
  393. package/src/cards/event-list.tsx +2 -1
  394. package/src/cards/index.ts +1 -0
  395. package/src/cards/row-list.tsx +2 -1
  396. package/src/cards/stat-card-parts.tsx +9 -7
  397. package/src/cards/stat-card.tsx +39 -12
  398. package/src/charts/core/compile.ts +31 -19
  399. package/src/charts/core/cursor.ts +11 -3
  400. package/src/charts/core/tooltip-said.ts +55 -0
  401. package/src/charts/focus.tsx +4 -1
  402. package/src/charts/parts/chart-card.tsx +1 -0
  403. package/src/cli/agent-note.ts +12 -5
  404. package/src/cli/budget/index.ts +22 -5
  405. package/src/cli/config.ts +1 -1
  406. package/src/cli/doctor/app.ts +75 -23
  407. package/src/cli/doctor/eject.ts +30 -10
  408. package/src/cli/doctor/guards.ts +11 -8
  409. package/src/cli/doctor/hook.ts +1 -1
  410. package/src/cli/doctor/install.ts +61 -24
  411. package/src/cli/doctor/translations.ts +13 -4
  412. package/src/cli/doctor/types.ts +2 -3
  413. package/src/cli/doctor/wiring.ts +30 -16
  414. package/src/cli/eject/dropped-slots.ts +11 -0
  415. package/src/cli/eject/index.ts +13 -9
  416. package/src/cli/help.ts +34 -10
  417. package/src/cli/index.ts +56 -14
  418. package/src/cli/init/index.ts +64 -5
  419. package/src/cli/init/locales.ts +41 -8
  420. package/src/cli/init/router-seeds.ts +17 -3
  421. package/src/cli/init/steps.ts +308 -41
  422. package/src/cli/lint/baseline.ts +141 -0
  423. package/src/cli/lint/engine.ts +33 -10
  424. package/src/cli/lint/hook.ts +11 -3
  425. package/src/cli/lint/index.ts +77 -12
  426. package/src/cli/manifest.ts +132 -4
  427. package/src/cli/migrate/census.ts +35 -1
  428. package/src/cli/migrate/index.ts +46 -3
  429. package/src/cli/migrate/lost-classes.ts +203 -0
  430. package/src/cli/migrate/rows.ts +21 -0
  431. package/src/cli/package-manager.ts +4 -1
  432. package/src/cli/peers.ts +11 -0
  433. package/src/cli/presets.ts +32 -11
  434. package/src/cli/resolver.ts +58 -10
  435. package/src/cli/router-wiring.ts +3 -1
  436. package/src/cli/sync/engine.ts +30 -14
  437. package/src/cli/sync/index.ts +7 -4
  438. package/src/cli/sync/render.ts +29 -37
  439. package/src/cli/tokens-css.ts +42 -5
  440. package/src/controls/contract.ts +2 -0
  441. package/src/controls/control-home.tsx +15 -4
  442. package/src/controls/local-control.ts +49 -3
  443. package/src/core/cn.ts +9 -5
  444. package/src/core/frame-figure.tsx +7 -1
  445. package/src/core/frame-head.tsx +32 -6
  446. package/src/core/frame-regions.tsx +18 -8
  447. package/src/core/info-hint.tsx +26 -0
  448. package/src/core/mark-tone.ts +10 -3
  449. package/src/core/mark-types.ts +4 -2
  450. package/src/core/messages/chain.ts +2 -1
  451. package/src/core/messages/index.ts +4 -0
  452. package/src/core/messages/runs.ts +40 -0
  453. package/src/core/phase.ts +22 -2
  454. package/src/core/ports.ts +13 -1
  455. package/src/core/provider.tsx +7 -3
  456. package/src/core/scheme.ts +6 -2
  457. package/src/core/spark/mini-bars.tsx +59 -15
  458. package/src/core/spark/sparkline.tsx +26 -4
  459. package/src/css/bridge.css +63 -0
  460. package/src/css/generate.ts +40 -3
  461. package/src/data/live/live-query.ts +4 -3
  462. package/src/lint/preset.ts +52 -13
  463. package/src/lint/rules/class/table.ts +3 -1
  464. package/src/lint/rules/structure/control-home.ts +1 -1
  465. package/src/lint/rules/structure/import-boundary.ts +2 -0
  466. package/src/lint/rules/structure/label-literal.ts +3 -1
  467. package/src/lint/shadcn.ts +91 -0
  468. package/src/lint/stylelint/render.ts +31 -1
  469. package/src/lint/stylelint/rules.ts +19 -7
  470. package/src/lint/weakened.ts +59 -1
  471. package/src/messages/de.ts +20 -0
  472. package/src/messages/es.ts +20 -0
  473. package/src/messages/fr.ts +20 -0
  474. package/src/messages/zh-hans.ts +20 -0
  475. package/src/page/bar-title.tsx +35 -0
  476. package/src/page/contract.ts +11 -1
  477. package/src/page/empty-state.tsx +18 -8
  478. package/src/page/facts.tsx +43 -5
  479. package/src/page/index.ts +8 -0
  480. package/src/page/page-bar.tsx +2 -9
  481. package/src/page/page-summary.tsx +4 -3
  482. package/src/page/run-button.tsx +52 -0
  483. package/src/page/run-list.tsx +151 -0
  484. package/src/page/run-queue.ts +185 -0
  485. package/src/page/section.tsx +30 -5
  486. package/src/shell/commands/command-palette.tsx +10 -1
  487. package/src/shell/parts/header.tsx +1 -1
  488. package/src/surfaces.ts +18 -1
  489. package/src/testing/index.ts +1 -0
  490. package/src/testing/pseudo-locale.ts +149 -0
  491. package/src/testing/quality.ts +188 -0
  492. package/src/tokens/bridge-sheet.ts +80 -0
  493. package/src/tokens/emit.ts +45 -6
  494. package/src/ui/accordion.tsx +1 -1
  495. package/src/ui/card.tsx +56 -6
  496. package/src/ui/collapsible.tsx +5 -3
  497. package/src/ui/combobox.tsx +1 -1
  498. package/src/ui/meter.guard.ts +23 -0
  499. package/src/ui/meter.tsx +76 -27
  500. package/src/ui/no-restyle.generated.json +8 -0
  501. package/src/ui/primitive.contract.ts +7 -0
  502. package/src/ui/remote-pad.guard.ts +24 -0
  503. package/src/ui/remote-pad.tsx +249 -0
  504. package/src/ui/segmented.tsx +6 -0
  505. package/src/ui/skeleton.guard.ts +7 -2
  506. package/src/ui/skeleton.tsx +10 -4
  507. package/src/ui/slots.ts +2 -1
  508. package/src/vite/allotment.ts +15 -1
  509. package/src/vite/doc.ts +12 -2
  510. package/src/vite/head.ts +4 -3
  511. package/src/vite/index.ts +4 -1
  512. package/src/vite/shell-worker.ts +115 -0
package/dist/ui/card.d.ts CHANGED
@@ -2,7 +2,7 @@ import { useRender } from '@base-ui/react/use-render';
2
2
  import type { VariantProps } from 'class-variance-authority';
3
3
  import type { ComponentProps, CSSProperties, ReactElement, ReactNode } from 'react';
4
4
  import type { CardMenu as CardMenuEntries, FrameHead, FrameState, HeadActions, HeadControls } from '../core/phase.js';
5
- import type { BoxSlot } from '../core/ports.js';
5
+ import type { BoxSlot, LinkHref } from '../core/ports.js';
6
6
  /**
7
7
  * The `Card` cva table: the ringed card surface. `flush` drops the padding so a band sits on the
8
8
  * shell and an `Inset` takes the gutter. The gutter is the radius difference (card 14 minus inset
@@ -15,14 +15,16 @@ export declare const cardVariants: (props?: ({
15
15
  flush?: boolean | null | undefined;
16
16
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
17
17
  /** Every `data-slot` this module renders, in export order. Read by the generator for `SLOTS`. */
18
- export declare const cardParts: readonly ["card", "card-band", "icon-tile", "inset", "card-phase"];
18
+ export declare const cardParts: readonly ["card", "card-band", "icon-tile", "inset", "card-phase", "card-link"];
19
19
  export type CardProps = Omit<useRender.ComponentProps<'div'>, 'className'> & VariantProps<typeof cardVariants> & {
20
20
  /** Layout only (`w-full`, `col-span-2`, `mt-4`). Display and padding belong to `flush`. */
21
21
  className?: string;
22
22
  };
23
23
  /**
24
24
  * The base card: a surface with a radius and a ring. Works with no provider; polymorphism only
25
- * through `render`.
25
+ * through `render`. A card with a header band, a body and a footer is `Card flush` with `CardBand`
26
+ * (or a header row of your own), an `Inset` and `CardFooter` (`basalt-ui/cards`); `CardLink` makes
27
+ * the whole card one link.
26
28
  *
27
29
  * @useWhen a group of content needs a surface of its own in a hand-built layout
28
30
  * @neverWhen a part already frames the content (ChartCard, StatCard, Section), or the content is page text (no surface)
@@ -63,17 +65,43 @@ export type CardBandProps = Omit<FrameHead, 'title'> & {
63
65
  menu?: CardMenuEntries | undefined;
64
66
  /** Whether a right click, a long press or Shift+F10 on the card opens its menu at the pointer. Default true. */
65
67
  contextMenu?: boolean | undefined;
68
+ /** The title wraps onto further lines instead of ending in an ellipsis: set it where the title is a sentence. */
69
+ wrap?: boolean | undefined;
66
70
  };
67
71
  /**
68
72
  * The head every frame shares, for a hand-built card: the icon tile, the title with its definition
69
73
  * glyph and badge, a subtitle of facts, up to three actions, up to two controls and the menu, on the
70
74
  * card's left edge. `StatCard`, `ChartCard` and `DataPanel` draw this same part, so a hand-built frame
71
- * reads as a shipped one. Data only: no node, no class.
75
+ * reads as a shipped one. Data only: no node, no class. The title is one line that ends in an ellipsis;
76
+ * `wrap` lets a title that is a sentence take as many lines as it needs.
72
77
  *
73
78
  * @example
74
79
  * <CardBand icon={GitMerge} title="Shipped" subtitle={['vs last week', '12 repos']} badge={{ label: 'Live', tone: 'good', dot: true }} />
80
+ *
81
+ * @example
82
+ * <CardBand wrap title="This page is out of date: reload to see the latest room" />
75
83
  */
76
84
  export declare function CardBand(props: CardBandProps): ReactElement;
85
+ export type CardLinkProps = {
86
+ href: LinkHref;
87
+ /** The link's accessible name, usually the card's title. */
88
+ label: string;
89
+ /** Layout only. */
90
+ className?: string;
91
+ };
92
+ /**
93
+ * The stretched link of a hand-built card: one transparent link over the whole card, named by
94
+ * `label`, with its focus ring inside the edge. Place it as a direct child of `Card`, first. It
95
+ * covers the card's content, a `CardPhase` body included; a second target after it (a link, a
96
+ * button) needs `relative z-1` to sit above it; `CardBand`'s actions and menu already do.
97
+ *
98
+ * @example
99
+ * <Card flush>
100
+ * <CardLink href="/issues/4" label="Fix the login redirect" />
101
+ * <Inset>Fix the login redirect</Inset>
102
+ * </Card>
103
+ */
104
+ export declare function CardLink({ href, label, className }: CardLinkProps): ReactElement;
77
105
  /** `stack` centres an arm in a box at least 96 px tall; `line` draws it as one row on the edge. */
78
106
  type Arms = 'stack' | 'line';
79
107
  export type CardPhaseProps = FrameState & {
@@ -1 +1 @@
1
- {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOnF,OAAO,KAAK,EACV,QAAQ,IAAI,eAAe,EAG3B,SAAS,EACT,UAAU,EACV,WAAW,EACX,YAAY,EACb,MAAM,eAAe,CAAA;AAItB,OAAO,KAAK,EAAO,OAAO,EAAE,MAAM,eAAe,CAAA;AAEjD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;8EAWxB,CAAA;AAED,iGAAiG;AACjG,eAAO,MAAM,SAAS,oEAAqE,CAAA;AAE3F,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,GACxE,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG;IAClC,2FAA2F;IAC3F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAEH;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,GAAG,YAAY,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ACnB,CAAA;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,aAAa,GAAG,YAAY,CAYhF;AAaD,mGAAmG;AACnG,KAAK,IAAI,GAAG,OAAO,GAAG,MAAM,CAAA;AA+H5B,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG;IACxC,mGAAmG;IACnG,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB;;;OAGG;IACH,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,YAAY,CAAA;IAC/D;;;OAGG;IACH,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAA;IAC7B;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IACX;;;OAGG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;CAClC,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,KAAK,EACL,MAAe,EACf,QAAQ,EACR,QAAQ,EACR,IAAc,EACd,SAAoB,EACpB,SAAS,EACT,KAAK,GACN,EAAE,cAAc,GAAG,YAAY,CA6C/B"}
package/dist/ui/card.js CHANGED
@@ -23,7 +23,14 @@ const cardVariants = cva(
23
23
  defaultVariants: { flush: false }
24
24
  }
25
25
  );
26
- const cardParts = ["card", "card-band", "icon-tile", "inset", "card-phase"];
26
+ const cardParts = [
27
+ "card",
28
+ "card-band",
29
+ "icon-tile",
30
+ "inset",
31
+ "card-phase",
32
+ "card-link"
33
+ ];
27
34
  function Card({ flush, className, render, ref, ...props }) {
28
35
  return useRender({
29
36
  render,
@@ -33,7 +40,8 @@ function Card({ flush, className, render, ref, ...props }) {
33
40
  ...props,
34
41
  "data-slot": "card",
35
42
  "data-surface": "card",
36
- className: cn(cardVariants({ flush }), className)
43
+ // A `CardLink` child positions the card; the class is the part's, not the surface recipe's.
44
+ className: cn(cardVariants({ flush }), "has-[>[data-slot=card-link]]:relative", className)
37
45
  }
38
46
  });
39
47
  }
@@ -45,7 +53,7 @@ function Inset({ className, ...props }) {
45
53
  "data-slot": "inset",
46
54
  "data-surface": "inset",
47
55
  className: cn(
48
- "mx-(--basalt-card-gutter) rounded-inset bg-inset px-[calc(var(--basalt-card-edge)_-_var(--basalt-card-gutter))] py-3 first:mt-(--basalt-card-gutter) last:mb-(--basalt-card-gutter)",
56
+ "mx-(--basalt-card-gutter) rounded-inset bg-inset px-[calc(var(--basalt-card-edge)_-_var(--basalt-card-gutter))] py-3 first:mt-(--basalt-card-gutter) last:mb-(--basalt-card-gutter) [[data-slot=card-link]:first-child+&]:mt-(--basalt-card-gutter)",
49
57
  className
50
58
  )
51
59
  }
@@ -65,6 +73,20 @@ function IconTile({ className, ...props }) {
65
73
  function CardBand(props) {
66
74
  return /* @__PURE__ */ jsx(FrameHeadBand, { slot: "card", ...props });
67
75
  }
76
+ function CardLink({ href, label, className }) {
77
+ return /* @__PURE__ */ jsx(
78
+ AppLink,
79
+ {
80
+ "data-slot": "card-link",
81
+ href,
82
+ "aria-label": label,
83
+ className: cn(
84
+ "absolute inset-0 z-1 rounded-[inherit] focus-ring focus-visible:-outline-offset-2",
85
+ className
86
+ )
87
+ }
88
+ );
89
+ }
68
90
  const ACTION = "relative z-2 inline-flex h-6 shrink-0 items-center rounded-ctrl bg-secondary px-2 text-xs font-medium text-foreground shadow-raised hover:bg-accent focus-ring after:absolute after:inset-x-0 after:top-1/2 after:h-full after:-translate-y-1/2 pointer-coarse:after:min-h-11";
69
91
  const ERROR_KEY = {
70
92
  forbidden: "common.error.forbidden",
@@ -194,6 +216,7 @@ function CardPhase({
194
216
  export {
195
217
  Card,
196
218
  CardBand,
219
+ CardLink,
197
220
  CardPhase,
198
221
  IconTile,
199
222
  Inset,
@@ -24,7 +24,8 @@ export declare function Collapsible({ className, ...props }: CollapsibleProps):
24
24
  export type CollapsibleTriggerProps = Omit<BaseCollapsible.Trigger.Props, 'className'> & LayoutClass;
25
25
  /**
26
26
  * The button that toggles the region. It has no look of its own: it owns focus and the pointer-tier
27
- * hit floor, and the caller styles the content (or passes a `Button` through `render`).
27
+ * hit floor, and the caller styles the content (or passes a `Button` through `render`). Base UI sets
28
+ * its `aria-controls` only while the region is open, also with `keepMounted`: read `aria-expanded`.
28
29
  *
29
30
  * @example
30
31
  * <CollapsibleTrigger className="text-sm font-medium">Advanced options</CollapsibleTrigger>
@@ -33,7 +34,8 @@ export declare function CollapsibleTrigger({ className, ...props }: CollapsibleT
33
34
  export type CollapsibleContentProps = Omit<BaseCollapsible.Panel.Props, 'className'> & LayoutClass;
34
35
  /**
35
36
  * The region. It animates its height from the measured content and skips the animation under
36
- * reduced motion. `hiddenUntilFound` lets the browser's find in page open it on a match;
37
+ * reduced motion. It clips only while closed or moving, so an open region shows a focus ring, a
38
+ * shadow or a tooltip that reaches past its edge. `hiddenUntilFound` lets the browser's find in page open it on a match;
37
39
  * `keepMounted` keeps it in the DOM while closed so inner state survives.
38
40
  *
39
41
  * @example
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../src/ui/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAGzC,iGAAiG;AACjG,eAAO,MAAM,gBAAgB,wEAInB,CAAA;AAEV,KAAK,WAAW,GAAG;IACjB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,WAA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,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,WAAW,CAAA;AAEpG;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,GAAG,YAAY,CAWjG;AAED,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,WAAW,CAAA;AAElG;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,GAAG,YAAY,CAWjG"}
@@ -29,7 +29,7 @@ function CollapsibleContent({ className, ...props }) {
29
29
  ...props,
30
30
  "data-slot": "collapsible-content",
31
31
  className: cn(
32
- 'h-(--collapsible-panel-height) overflow-hidden transition-[height] duration-fast ease-standard motion-reduce:transition-none [&[hidden]:not([hidden="until-found"])]:hidden data-ending-style:h-0 data-starting-style:h-0',
32
+ 'flow-root h-(--collapsible-panel-height) transition-[height,overflow] transition-discrete ease-standard [transition-delay:0s,var(--basalt-dur-fast)] [transition-duration:var(--basalt-dur-fast),0s] data-closed:overflow-hidden data-closed:[transition-delay:0s] data-ending-style:overflow-hidden data-starting-style:overflow-hidden motion-reduce:transition-none [&[hidden]:not([hidden="until-found"])]:hidden data-ending-style:h-0 data-starting-style:h-0',
33
33
  className
34
34
  )
35
35
  }
@@ -598,7 +598,7 @@ function AutocompleteContent({
598
598
  slot: "autocomplete-content",
599
599
  className: cn(autocompleteContentVariants(), className),
600
600
  container,
601
- popupProps: props,
601
+ popupProps: { role: "presentation", ...props },
602
602
  children: [
603
603
  empty !== void 0 && /* @__PURE__ */ jsx(BaseAutocomplete.Empty, { className: "px-2 py-1.5 text-sm text-muted-foreground empty:hidden", children: empty }),
604
604
  /* @__PURE__ */ jsx(BaseAutocomplete.List, { children })
@@ -21,6 +21,7 @@ type MeterShared = {
21
21
  };
22
22
  /** A value on a scale: a fill or zones, with an optional target. */
23
23
  export type MeterScaleProps = MeterSpec & MeterShared & VariantProps<typeof meterVariants> & {
24
+ bare?: never;
24
25
  /**
25
26
  * One or two values marked across the track, each with its `format`ted number under it: a
26
27
  * range's two ends or one limit.
@@ -41,6 +42,27 @@ export type MeterScaleProps = MeterSpec & MeterShared & VariantProps<typeof mete
41
42
  common?: never;
42
43
  focus?: never;
43
44
  };
45
+ /**
46
+ * A scale drawn as the bar alone, for a table cell or a status strip where the words sit elsewhere:
47
+ * no readout, no zone word, no ticks. The `sentence` is its accessible name; a value above `min`
48
+ * keeps a visible stub of fill. A verdict is never color alone, so zones are not offered.
49
+ */
50
+ export type MeterBareProps = Omit<MeterSpec, 'zones' | 'caption'> & Pick<MeterShared, 'className'> & VariantProps<typeof meterVariants> & {
51
+ bare: true;
52
+ /** The bar a value is read against: one tall tick across the track. */
53
+ target?: number | undefined;
54
+ zones?: never;
55
+ caption?: never;
56
+ ticks?: never;
57
+ cause?: never;
58
+ layout?: never;
59
+ segments?: never;
60
+ parts?: never;
61
+ verdict?: never;
62
+ legend?: never;
63
+ common?: never;
64
+ focus?: never;
65
+ };
44
66
  /** One segment of a status meter: what it is and the state it is in. */
45
67
  export type MeterSegment = {
46
68
  label: string;
@@ -62,6 +84,7 @@ type MeterStripShared = MeterShared & {
62
84
  ticks?: never;
63
85
  target?: never;
64
86
  tone?: never;
87
+ bare?: never;
65
88
  };
66
89
  /** Several states side by side, one equal segment each, under a count ("2/3 met"). */
67
90
  export type MeterSegmentsProps = MeterStripShared & {
@@ -76,11 +99,16 @@ export type MeterSegmentsProps = MeterStripShared & {
76
99
  layout?: never;
77
100
  legend?: never;
78
101
  };
79
- /** One part of a whole: its name, its size and its state. */
102
+ /**
103
+ * One part of a whole: its name, its size and its state. `quiet` sets the strength of its tone
104
+ * against the rule (the `common` tone and `neutral` quiet, the rest full): `true` draws any tone at
105
+ * the quiet strength, so two parts of one hue read apart; `false` draws it at full strength.
106
+ */
80
107
  export type MeterPart = {
81
108
  label: string;
82
109
  value: number;
83
110
  tone: Tone;
111
+ quiet?: boolean | undefined;
84
112
  };
85
113
  /** Parts of a total on one track, each as wide as its share. */
86
114
  export type MeterPartsProps = MeterStripShared & {
@@ -98,7 +126,7 @@ export type MeterPartsProps = MeterStripShared & {
98
126
  segments?: never;
99
127
  verdict?: never;
100
128
  };
101
- export type MeterProps = Omit<ComponentProps<'div'>, 'className' | 'children' | 'role' | 'defaultValue' | 'color'> & (MeterScaleProps | MeterSegmentsProps | MeterPartsProps);
129
+ export type MeterProps = Omit<ComponentProps<'div'>, 'className' | 'children' | 'role' | 'defaultValue' | 'color'> & (MeterScaleProps | MeterBareProps | MeterSegmentsProps | MeterPartsProps);
102
130
  /**
103
131
  * A value against a scale, in three forms. A **scale** (`value`, `max`): with `zones` the track is
104
132
  * tinted by zone, a marker sits at the value and the active zone's word is printed under it, so a
@@ -110,7 +138,10 @@ export type MeterProps = Omit<ComponentProps<'div'>, 'className' | 'children' |
110
138
  * meter shows and is its accessible name; the track is hidden from assistive tech. `format` prints
111
139
  * a value (default the page locale's number) and `caption` the words after it that name it on screen
112
140
  * ("US$13.89 spent", "of 150 listed"). `ticks` mark a range's ends or a limit on the track, `cause`
113
- * says why in a line under the readout. A stacked scale is an 8 px track and a 16 px readout under a
141
+ * says why in a line under the readout. `bare` draws a scale as the track alone, with no readout
142
+ * and no zones, for a table cell or a status strip whose words sit elsewhere; a value above the
143
+ * minimum always keeps a 4 px stub of fill. A part's `quiet` overrides the strength its tone gets
144
+ * from the rule above, so two parts of one hue read apart. A stacked scale is an 8 px track and a 16 px readout under a
114
145
  * 4 px gap, so 28 px (a tick row adds 20, a `cause` its lines); a `StatCard` `height` below that
115
146
  * clips the readout, so a meter in its chart slot sets `height={28}` at least. A list of meters
116
147
  * joins one `useChartFocus` through the seam: the list spreads `focus.target`, each meter
@@ -1 +1 @@
1
- {"version":3,"file":"meter.d.ts","sourceRoot":"","sources":["../../src/ui/meter.tsx"],"names":[],"mappings":"AAEA,OA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AAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,gEAAgE;IAChE,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,OAAO,CAAC,EAAE,KAAK,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,cAAc,CAAC,KAAK,CAAC,EACrB,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,cAAc,GAAG,OAAO,CAC7D,GACC,CAAC,eAAe,GAAG,cAAc,GAAG,kBAAkB,GAAG,eAAe,CAAC,CAAA;AAkC3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY,CAIrD"}
@@ -18,6 +18,8 @@ export declare const closedTone: Pick<MeterProps, 'tone'>;
18
18
  export declare const unlabelledZone: Pick<MeterProps, 'zones'>;
19
19
  export declare const oneZone: Pick<MeterProps, 'zones'>;
20
20
  export declare const threeTicks: Pick<MeterProps, 'ticks'>;
21
+ export declare const bareZones: MeterProps;
22
+ export declare const bareCaption: MeterProps;
21
23
  export declare const unnamed: MeterProps;
22
24
  export declare const labelled: MeterProps;
23
25
  export declare const uncounted: MeterProps;
@@ -1 +1 @@
1
- {"version":3,"file":"meter.guard.d.ts","sourceRoot":"","sources":["../../src/ui/meter.guard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC;;;;GAIG;AAGH,KAAK,MAAM,GAAG;IACZ,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAA;IAC9D,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;I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KACR,IAAI,CACL,OAAO,CAAC,UAAU,EAAE;IAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,EAC7C,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,CACzC,CAAA;AAIN,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,CAAsB,CAAA;AAEtE,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,CAMpD,CAAA;AAGD,eAAO,MAAM,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,CAAsD,CAAA;AAGpG,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,CAAwB,CAAA;AAQzE,eAAO,MAAM,SAAS,EAAE,UAMvB,CAAA;AAGD,eAAO,MAAM,WAAW,EAAE,UAMzB,CAAA;AAGD,eAAO,MAAM,OAAO,EAAE,UAAiC,CAAA;AAGvD,eAAO,MAAM,QAAQ,EAAE,UAAgD,CAAA;AAGvE,eAAO,MAAM,SAAS,EAAE,UAAgD,CAAA;AAGxE,eAAO,MAAM,QAAQ,EAAE,UAA0E,CAAA"}
@@ -9,11 +9,31 @@ const unlabelledZone = {
9
9
  };
10
10
  const oneZone = { zones: [{ to: 2, tone: "good", label: "All" }] };
11
11
  const threeTicks = { ticks: [1, 2, 3] };
12
+ const FINE_HIGH = [
13
+ { to: 1, tone: "good", label: "Fine" },
14
+ { to: 2, tone: "bad", label: "High" }
15
+ ];
16
+ const bareZones = {
17
+ bare: true,
18
+ sentence: "Load",
19
+ value: 1,
20
+ max: 2,
21
+ zones: FINE_HIGH
22
+ };
23
+ const bareCaption = {
24
+ bare: true,
25
+ sentence: "Load",
26
+ value: 1,
27
+ max: 2,
28
+ caption: "spent"
29
+ };
12
30
  const unnamed = { value: 1, max: 2 };
13
31
  const labelled = { label: "Load", value: 1, max: 2 };
14
32
  const uncounted = { sentence: "Goals", segments: [] };
15
33
  const twoForms = { sentence: "Goals", segments: [], caption: "0/0", value: 1 };
16
34
  export {
35
+ bareCaption,
36
+ bareZones,
17
37
  closedTone,
18
38
  labelled,
19
39
  oneZone,
package/dist/ui/meter.js CHANGED
@@ -181,7 +181,7 @@ function PartMeter({
181
181
  "data-tone": part.tone,
182
182
  ...markItem(focus, i),
183
183
  style: { "--part": pct(drawn[i] / scale) },
184
- className: cn("h-full w-(--part) shrink-0", markFill(part.tone, common))
184
+ className: cn("h-full w-(--part) shrink-0", markFill(part.tone, common, part.quiet))
185
185
  },
186
186
  part.label
187
187
  )
@@ -210,7 +210,12 @@ function PartMeter({
210
210
  inline && "basis-full"
211
211
  ),
212
212
  children: parts.map((part, i) => /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 whitespace-nowrap", children: [
213
- /* @__PURE__ */ jsx("span", { className: cn("size-1.5 rounded-full", markFill(part.tone, common)) }),
213
+ /* @__PURE__ */ jsx(
214
+ "span",
215
+ {
216
+ className: cn("size-1.5 rounded-full", markFill(part.tone, common, part.quiet))
217
+ }
218
+ ),
214
219
  /* @__PURE__ */ jsx("span", { className: "tabular-nums", children: print(drawn[i]) }),
215
220
  " ",
216
221
  part.label
@@ -235,6 +240,7 @@ function ScaleMeter({
235
240
  layout,
236
241
  cause,
237
242
  tone,
243
+ bare,
238
244
  className,
239
245
  segments: _segments,
240
246
  parts: _parts,
@@ -255,7 +261,7 @@ function ScaleMeter({
255
261
  const fraction = present && span > 0 ? Math.min(1, Math.max(0, (value - min) / span)) : 0;
256
262
  const active = present && zones !== void 0 ? zoneOf(zones, value) : void 0;
257
263
  const marker = Math.min(0.99, Math.max(0.01, fraction));
258
- const inline = (layout ?? (target !== void 0 && zones === void 0 ? "inline" : "stacked")) === "inline";
264
+ const inline = bare !== true && (layout ?? (target !== void 0 && zones === void 0 ? "inline" : "stacked")) === "inline";
259
265
  return /* @__PURE__ */ jsxs(
260
266
  BaseMeter.Root,
261
267
  {
@@ -267,6 +273,7 @@ function ScaleMeter({
267
273
  "aria-describedby": cause === void 0 ? void 0 : causeId,
268
274
  getAriaValueText: () => active ? `${said}, ${active.label}` : said,
269
275
  "data-slot": "meter",
276
+ "data-form": bare === true ? "bare" : void 0,
270
277
  "data-layout": inline ? "inline" : void 0,
271
278
  className: cn(
272
279
  meterVariants({ tone }),
@@ -275,7 +282,16 @@ function ScaleMeter({
275
282
  ),
276
283
  children: [
277
284
  /* @__PURE__ */ jsxs("div", { "aria-hidden": "true", className: cn("relative", inline && "min-w-6 flex-1"), children: [
278
- /* @__PURE__ */ jsx(BaseMeter.Track, { className: "relative block h-2 w-full overflow-hidden rounded-full bg-selected", children: zones === void 0 ? present && /* @__PURE__ */ jsx(BaseMeter.Indicator, { "data-fill": "", className: "block h-full rounded-full" }) : /* @__PURE__ */ jsxs(
285
+ /* @__PURE__ */ jsx(BaseMeter.Track, { className: "relative block h-2 w-full overflow-hidden rounded-full bg-selected", children: zones === void 0 ? present && /* @__PURE__ */ jsx(
286
+ BaseMeter.Indicator,
287
+ {
288
+ "data-fill": "",
289
+ className: cn(
290
+ "block h-full rounded-full",
291
+ bare === true && fraction > 0 && "min-w-1"
292
+ )
293
+ }
294
+ ) : /* @__PURE__ */ jsxs(
279
295
  "svg",
280
296
  {
281
297
  className: "absolute inset-0 size-full",
@@ -325,7 +341,7 @@ function ScaleMeter({
325
341
  }
326
342
  )
327
343
  ] }),
328
- ticks !== void 0 && /* @__PURE__ */ jsx(
344
+ bare !== true && ticks !== void 0 && /* @__PURE__ */ jsx(
329
345
  "div",
330
346
  {
331
347
  "aria-hidden": "true",
@@ -348,7 +364,7 @@ function ScaleMeter({
348
364
  ))
349
365
  }
350
366
  ),
351
- /* @__PURE__ */ jsxs(
367
+ bare !== true && /* @__PURE__ */ jsxs(
352
368
  "div",
353
369
  {
354
370
  "data-readout": "",
@@ -368,7 +384,7 @@ function ScaleMeter({
368
384
  ]
369
385
  }
370
386
  ),
371
- cause !== void 0 && /* @__PURE__ */ jsx("div", { className: cn(inline && "basis-full"), children: /* @__PURE__ */ jsx(Cause, { id: causeId, cause }) })
387
+ bare !== true && cause !== void 0 && /* @__PURE__ */ jsx("div", { className: cn(inline && "basis-full"), children: /* @__PURE__ */ jsx(Cause, { id: causeId, cause }) })
372
388
  ]
373
389
  }
374
390
  );
@@ -1 +1 @@
1
- {"version":3,"file":"primitive.contract.d.ts","sourceRoot":"","sources":["../../src/ui/primitive.contract.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWnE,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,yEAAyE;IACzE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;CACrC,CAAA;AAED,sEAAsE;AACtE,eAAO,MAAM,gBAAgB,GAAI,MAAK,MAA4B,KAAG,MAAM,EAI5D,CAAA;AAEf,iCAAiC;AACjC,eAAO,MAAM,KAAK,GAAI,YAAY,MAAM,KAAG,MACsB,CAAA;AA0BjE;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC,CAAC,CAqB5F;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,GACZ,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC,CAAC,CAgCzD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GACZ,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC,CAAC,CAyBzD;AAED,oEAAoE;AACpE,wBAAgB,eAAe,IAAI,MAAM,CA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Ae,EACpB,IAAI,GAAE,IAAgB,GACrB,OAAO,CAAC,MAAM,EAAE,CAAC,CAkCnB"}
@@ -198,6 +198,13 @@ const PART_PROPS = {
198
198
  "checkbox-matrix": { rows: [], columns: [], "aria-label": "x" },
199
199
  "swatch-picker": { options: [], "aria-label": "x" },
200
200
  "quick-picks": { options: [], "aria-label": "x" },
201
+ "remote-pad": {
202
+ dpad: Object.fromEntries(
203
+ ["up", "left", "select", "right", "down"].map((key) => [key, { key, label: key }])
204
+ ),
205
+ onKey: () => void 0,
206
+ "aria-label": "x"
207
+ },
201
208
  "virtual-list": { count: 0, estimateSize: () => 32, getItemKey: (i) => i },
202
209
  tree: {
203
210
  label: "x",
@@ -0,0 +1,62 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ import type { ButtonProps } from 'basalt-ui/ui/button';
3
+ /**
4
+ * The `RemotePad` cva table: the D-pad and the key rows in one column. No axes.
5
+ *
6
+ * @example
7
+ * remotePadVariants() // class string for a hand-built pad
8
+ */
9
+ export declare const remotePadVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
10
+ /** Every `data-slot` this module renders, in export order. Read by the generator for `SLOTS`. */
11
+ export declare const remotePadParts: readonly ["remote-pad"];
12
+ export type RemoteKey<K extends string = string> = {
13
+ /** What `onKey` receives. */
14
+ key: K;
15
+ /** The key's accessible name, and its text when it has no icon. */
16
+ label: string;
17
+ /** Drawn instead of the label. Decorative: the label stays the name. */
18
+ icon?: ReactNode;
19
+ /** Holding the key down presses it again and again. On by default for the four arrows only. */
20
+ repeat?: boolean;
21
+ variant?: ButtonProps['variant'];
22
+ disabled?: boolean;
23
+ };
24
+ export type RemoteDirection = 'up' | 'left' | 'select' | 'right' | 'down';
25
+ export type RemotePadProps<K extends string = string> = {
26
+ /** The D-pad cluster. An arrow without an `icon` draws its own. */
27
+ dpad: Readonly<Record<RemoteDirection, RemoteKey<K>>>;
28
+ /** Rows of keys under the D-pad (back, home, play; volume); a row splits its width evenly. */
29
+ rows?: readonly (readonly RemoteKey<K>[])[] | undefined;
30
+ /** One press of any key, repeats included. */
31
+ onKey: (key: K) => void;
32
+ disabled?: boolean;
33
+ /** Names the pad: "TV remote". */
34
+ 'aria-label': string;
35
+ /** Layout only (`max-w-xs`). */
36
+ className?: string;
37
+ };
38
+ /**
39
+ * A remote control: a D-pad (up, left, select, right, down) over rows of keys, with one `onKey`
40
+ * handler. It sends and shows nothing else: a key is never busy, so three taps are three presses,
41
+ * and what became of a command belongs to the page. Arrows repeat while held; another key repeats
42
+ * with `repeat`.
43
+ *
44
+ * @useWhen the page drives a device or a cursor key by key: a TV, a player, a camera mount
45
+ * @neverWhen the actions have no spatial or remote layout (use Button in a row or a Toolbar)
46
+ * @instead Button, Toolbar
47
+ * @example
48
+ * <RemotePad
49
+ * aria-label="TV remote"
50
+ * onKey={send}
51
+ * dpad={{
52
+ * up: { key: 'up', label: 'Up' },
53
+ * left: { key: 'left', label: 'Left' },
54
+ * select: { key: 'select', label: 'Select', variant: 'primary' },
55
+ * right: { key: 'right', label: 'Right' },
56
+ * down: { key: 'down', label: 'Down' },
57
+ * }}
58
+ * rows={[[{ key: 'back', label: 'Back' }, { key: 'home', label: 'Home' }]]}
59
+ * />
60
+ */
61
+ export declare function RemotePad<K extends string = string>({ dpad, rows, onKey, disabled, 'aria-label': name, className, }: RemotePadProps<K>): ReactElement;
62
+ //# sourceMappingURL=remote-pad.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-pad.d.ts","sourceRoot":"","sources":["../../src/ui/remote-pad.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA2C,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAG7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,oFAA6B,CAAA;AAM3D,iGAAiG;AACjG,eAAO,MAAM,cAAc,yBAA0B,CAAA;AAMrD,MAAM,MAAM,SAAS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ui/ui/remote-pad';
2
+ /**
3
+ * Hand-authored guard for `remote-pad` (docs/v3/ARCHITECTURE.md 4.2). `requires` survives eject;
4
+ * `closed` is dropped on eject. The guard pins the props a caller binds.
5
+ */
6
+ type CalledKey = {
7
+ key: string;
8
+ label: string;
9
+ repeat?: boolean;
10
+ };
11
+ type CalledRemotePad = {
12
+ dpad: Record<'up' | 'left' | 'select' | 'right' | 'down', CalledKey>;
13
+ rows?: readonly (readonly CalledKey[])[];
14
+ onKey: (key: string) => void;
15
+ disabled?: boolean;
16
+ 'aria-label': string;
17
+ };
18
+ export declare const requiresRemotePad: (c: CalledRemotePad) => Pick<RemotePadProps, "dpad" | "rows" | "onKey" | "disabled" | "aria-label">;
19
+ export declare const nameless: RemotePadProps['dpad']['up'];
20
+ export {};
21
+ //# sourceMappingURL=remote-pad.guard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-pad.guard.d.ts","sourceRoot":"","sources":["../../src/ui/remote-pad.guard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD;;;GAGG;AAGH,KAAK,SAAS,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AACjE,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,EAAE,SAAS,CAAC,CAAA;IACpE,IAAI,CAAC,EAAE,SAAS,CAAC,SAAS,SAAS,EAAE,CAAC,EAAE,CAAA;IACxC,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,iBAAiB,GAC5B,GAAG,eAAe,KACjB,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,YAAY,CAAM,CAAA;AAInF,eAAO,MAAM,QAAQ,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,IAAI,CAAiB,CAAA"}
@@ -0,0 +1,6 @@
1
+ const requiresRemotePad = (c) => c;
2
+ const nameless = { key: "up" };
3
+ export {
4
+ nameless,
5
+ requiresRemotePad
6
+ };