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/AGENTS.md CHANGED
@@ -36,6 +36,7 @@ Everything else is internal: `./guard`, `./data/virtual`, `./llms.txt` and `./pa
36
36
  | `basalt-ui/messages/zh-hans` | headless |
37
37
  | `basalt-ui/shell` | ui |
38
38
  | `basalt-ui/lint` | build-tooling |
39
+ | `basalt-ui/lint/shadcn` | build-tooling |
39
40
  | `basalt-ui/stylelint` | build-tooling |
40
41
  | `basalt-ui/testing` | build-tooling |
41
42
  | `basalt-ui/theme-script` | build-tooling |
package/CHANGELOG.md CHANGED
@@ -1,3 +1,75 @@
1
+ # Changelog
2
+
3
+ Every release of basalt-ui. Entries are written with each change (`bunx changie new`); this file is rebuilt by `changie merge` on release and never edited by hand.
4
+
5
+ ## [3.1.0](https://github.com/jkrumm/basalt-ui/compare/v3.0.0...v3.1.0) (2026-12-03)
6
+
7
+ ### Added
8
+
9
+ * `pushed` queries take `safety: false`: while the stream is live they issue no timed request, so a stream that sends whole snapshots needs no polling loop.
10
+ * A monorepo app keeps its AGENTS block and DESIGN.md beside it: the manifest keys `agents` and `design` (`init --agents`, `init --design`) say where each lives, and `doctor` reads them there. The managed AGENTS block shrinks from 4.3 kB to under 1.5 kB: it names where the rules, skills and reviewer are and no longer repeats them, and the manifest key `report` replaces its one sentence on where a defect in basalt-ui goes.
11
+ * `basalt-ui tokens:css --pick <token,…>` emits only those tokens and the ones they reference, in every scheme block, so a standalone HTML document keeps its token block current with `--check` instead of a copy script.
12
+ * `.basalt/manifest.json` takes `partialLocales`: languages of `locales` still being translated, whose catalogues `basalt-ui doctor` requires but does not require to be complete.
13
+ * `basalt-ui lint --baseline` records an app's existing findings per file and rule in `.basalt/baseline.json`, so screens written before basalt are adopted one at a time without a waiver per element: lint reports only what goes above a count, and `lint --stats` lowers it. A `bespoke` directory's stylesheets may also paint surfaces with status, chart and brand tokens and size grid tracks by a length (run `basalt-ui sync`).
14
+ * `basalt-ui migrate` maps each shadcn copy under `components/ui/<name>.tsx` to its shipped import, with the prop, variant and size map, at any `--from`; `basalt-ui doctor` says to delete and import a `components/ui` copy of a shipped part instead of offering to adopt it.
15
+ * `RemotePad` (`basalt-ui/ui/remote-pad`): a remote control with a D-pad, rows of keys, one `onKey` handler and press-and-hold repeat.
16
+ * `basalt-ui/page` has `createRunQueue`, `RunButton`, `RunList` and `useRuns` for a command that takes seconds: waiting, running with its elapsed time, done, or failed with the failing step's text.
17
+ * `ControlHome home="command"` homes a control that sends a request instead of storing a value, such as a volume slider sent on release: `basalt/control-home` passes it without a waiver and it adds no "Filters" group name.
18
+ * `basalt({ app: { serviceWorker: 'shell' } })` emits and registers a worker with no dependency: the page and the built assets work offline, and `/api` is never touched.
19
+ * The manifest key `wordModules` names the `.ts` words modules of a `site` root in a multi-locale repo, where `basalt/label-literal` and `react/jsx-no-literals` stand down; run `basalt-ui sync` after adding it.
20
+ * `basalt-ui/bridge.css`, an opt-in sheet for an app with its own components: import it after `tailwind.css` to get back `sm:`, `lg:`, `2xl:`, the Tailwind radius, shadow and large text names and the shadcn color names. `basalt-ui migrate` now lists every class that no longer emits, with its count and whether the sheet restores it.
21
+ * `StatCard` takes `subLines` (1 to 3) so a server-written sentence under the figure wraps instead of losing its figures, and a footer fact (`Fact`, on every card footer) takes `value: null` with a `reason` and an `info` glyph. A quantity of a total is `value: 39.7` with `unit: 'of 64 GB'`: a unit counts for less width in the step-down rule, so the figure keeps its display size in a narrow card.
22
+ * `CardBand` takes `wrap`, so a title that is a sentence wraps instead of ending in an ellipsis, and `BarTitle` from `basalt-ui/page` is the `h1` of a screen that draws its own top bar outside `Page`. A `PageBar` title outside a shell now breaks a long unbroken token instead of overflowing the band.
23
+ * `BasaltProvider` takes `persist={false}` to stamp `data-theme` without storing the scheme under `basalt:scheme`, for an app that keeps its own preference. `setScheme(value, { persist: false })` does the same and skips the cookie mirror too.
24
+ * Sparkline takes `tone` (any status tone, default `neutral`) that paints its line, its area and the now dot.
25
+ * `Meter` takes `bare`: a scale drawn as the track alone (no readout, no zones, no ticks) for a table cell or a status strip, whose value above the minimum keeps a 4 px stub of fill; a `MeterPart` takes `quiet` to draw its tone at the quiet strength (two parts of one hue read apart) or, as `false`, at full strength.
26
+ * A frame takes `headingLevel` (2, 3 or 4; 3 by default) for the level of its title heading, and `info` takes an array that draws one paragraph per entry; a footer label is never cut, and facts that do not fit one row stack.
27
+ * `useLocalControl(initial, { key, kind, options })` returns a widget-scoped `ControlHandle` over component state, so `filterSlot([spec(handle, 'Window')])` fits a card's `controls` slot with no `externalField` wrapper and no `scope: 'widget'` added by hand.
28
+ * ChainView nodes can show linked record cards with an icon, metadata chips, a reason and age, planned and selected states, and a viewport fit request for revealed nodes.
29
+ * `Section` takes `headingLevel`, `info` and `divided`, `Facts` a `stacked` layout in up to four columns, `Skeleton` a `height` in px, `EmptyState` a `bare` section tier, and `ui/card` has a `CardLink` that makes a hand-built card one link.
30
+ * `basalt-ui/testing` has `quality.textOverflow`, which fails on a cut or overflowing label, and a pseudo-locale (`pseudoMessages` for compiled Lingui catalogues, `pseudoBasaltMessages` for the package's own labels); `docs/testing.md` wires named states and baselines on Playwright Test.
31
+ * A frame's `info` entry may be `{ text, href, label }`: the paragraph ends with a link (`Read more`) drawn through the provider's link, inside the glyph's panel.
32
+
33
+ ### Changed
34
+
35
+ * `EmptyState` draws its `title` on the `section` tier too; it was accepted and dropped before.
36
+ * MiniBars draws a counted zero as a 2 px mark in a firmer ink, so it no longer reads as a dropped run, and a `ticks` item tells its state by height as well as hue (neutral shortest, the common tone next, exceptions taller, `bad` the full strip).
37
+
38
+ ### Fixed
39
+
40
+ * init refuses to run in a package below the git root that no workspace lists and that does not declare "basalt": { "sibling": true }, and writes nothing; it used to install at the git root. The setup guide and init --help name the sibling declaration.
41
+ * The generated token sheet header no longer records the `--out` path as typed, so `tokens:css --check` agrees from any working directory.
42
+ * `init` writes no second `.oxfmtrc.json` beside `oxfmt.config.ts` or `.oxfmtrc.jsonc` (oxfmt rejects both) and prints the ignore lines instead, and adds no root `lint` or `format` script where a Makefile or a `check` script is the gate.
43
+ * `init` and `sync` name a file of yours that shadows a shipped rule, and doctor check 4 says to rename it, then run `sync --force`.
44
+ * init refuses a --root that holds a Vite config or index.html, and doctor names the directories it searched for one
45
+ * The generated `.oxlintrc.basalt.json` covers the declared roots only: the top level turns every basalt rule off and each root switches its profile on, so server, CLI and test code in a monorepo stays on the base. In an isolated workspace its `extends` goes through the link in the app that depends on the package, with no install hash in the path.
46
+ * A file's own `tv` or `cva` function is no longer read as the class libraries: the shipped oxlint presets load the `@shadcn/lint` rules through `basalt-ui/lint/shadcn`, so a local `tv(room, 'on')` no longer reports "on is no class or variant". Run `basalt-ui sync` to refresh the preset.
47
+ * `basalt-ui lint` exits 1 and says why when the `.oxlintrc.json` in use does not extend the preset, the preset is missing, or a jsPlugin (`basalt-ui`, `@shadcn/lint`) does not resolve from the install root, where it used to report no findings.
48
+ * basaltShiki type-checks as Astro's markdown.shikiConfig: its themes are Shiki theme names, so `shikiConfig: basaltShiki` needs no cast.
49
+ * doctor's budget ratchet names the fetch that gives a shallow CI checkout its base ref, and the setup guide's CI step shows it
50
+ * `init` finds `vite.config.cjs` and `vite.config.cts`, and `init` and `eject` pick the config Vite itself loads when an app has several (`vite.config.js` before `vite.config.ts`).
51
+ * `init` no longer writes a catalogue scaffold or router seeds into an app whose manifest `catalogs` points elsewhere (`--catalogs <pattern>` records it), and a Chinese tag in the simplified script (`zh`, `zh-CN`) takes the `zh-hans` words.
52
+ * One install can mix profiles: `init` keeps the highest profile in the manifest and floors each root at the one it was added with, `doctor` reads app wiring and peers per root, a second workspace package that takes only the tokens no longer stops `init`, a refused run writes nothing, `init` never lowers a major that is above a supported range (`doctor` names TypeScript 7 beside a site), and `init --help` prints init's own flags.
53
+ * A chart's first category label on the x axis no longer covers the y axis' lowest label, and a screen reader hears the tooltip as a sentence (`Dec 15, Rounds: 537`), values included.
54
+ * The `init` route seeds no longer put `basalt-ui/page` (about 80 kB gzip) into an app's first load: the pending screen imports nothing from the package, the entry loads the error and not-found screens through `lazyRouteComponent`, and the error screen ships the crash copy only (no 401 or 403 strings). The seeds are yours, so an existing app copies the new shapes from `agent/templates/`.
55
+ * `init` installs the peers into the workspace package that holds the declared root, not the workspace root, and where the repo saves exact versions (`bunfig.toml` `exact = true` or `.npmrc` `save-exact=true`) a ranged peer is written as the version it resolved.
56
+ * Dense category x labels keep whole names where a cut would make two of them read alike; the engine thins them instead.
57
+ * doctor check 3 names the workspace package each peer fix line runs in, the same one init installs into, instead of a bare command that lands in the workspace root.
58
+ * init finds the app of a pnpm workspace: the packages list of pnpm-workspace.yaml is read beside the workspaces field
59
+ * `cn()` keeps a text color beside `text-xl` and up, and merges `shadow-sm` as a shadow instead of a shadow color.
60
+ * Vite and Astro retain Tailwind styles for sibling primitives used by components such as CopyButton and PasswordInput.
61
+ * basalt/motion-off-scale passes a data id such as 'duration-bands'; a duration or delay is a finding only with a number, an arbitrary or interpolated value or initial behind it
62
+ * init in a workspace names the root devDependencies (basalt-ui and the lint tools) the root lint config needs, so doctor's hook and budget checks pass after the add
63
+ * ChainView outlines nodes waiting on an open blocker in the warn tone.
64
+ * A "./"-prefixed workspace glob (`./apps/*`) in pnpm-workspace.yaml or package.json workspaces now finds its packages; init no longer places peers at the root.
65
+ * MiniBars draws a counted zero as a baseline tick and shrinks its gaps so a dense strip stays inside its box.
66
+ * ArrowLeft from rest on a chart with a `focus` enters at the oldest point, as the same chart without one does (the engine's keyboard); it entered at the newest.
67
+ * A frame's title (`ChartCard`, `StatCard`, `DataPanel` and the hand-built card head) is an `h3` heading, so a screen reader lists it and `getByRole('heading')` finds it; it was a paragraph.
68
+ * An open `CollapsibleContent` or `AccordionContent` no longer clips a focus ring, a shadow or a tooltip that reaches past its edge; it clips only while closed or moving.
69
+ * The command palette's list popup is no longer an unnamed second dialog, so axe reports no aria-dialog-name violation.
70
+ * An inline Autocomplete popup is no longer an unnamed dialog and carries role presentation, so axe reports no aria-dialog-name violation.
71
+ * Segmented now passes its data-* attributes, such as data-testid, to its root element.
72
+ * The command palette focuses its search field on every opening, also when it is reopened while the dialog is still fading out.
1
73
  ## [3.0.0](https://github.com/jkrumm/basalt-ui/compare/v2.29.0...v3.0.0) (2026-12-02) — Rebuilt from scratch for rich, data-dense apps
2
74
 
3
75
  basalt-ui 3 is a new framework under the old name. Install it and your app starts with a shell, tables, charts and forms that already look finished, in light and dark — and your coding agent is held to the same bar.
@@ -221,7 +293,6 @@ bun add basalt-ui
221
293
  - tables pin the first column and scroll at compact ([df0c10d](https://github.com/jkrumm/basalt-ui/commit/df0c10dbe50aa8766319f47b4bcae15c3a8f5b81))
222
294
  - tables size columns to content and keep honest state chrome ([f912884](https://github.com/jkrumm/basalt-ui/commit/f912884e320df6c331297ac432fb9d7cffad92ee))
223
295
  - tune form rows and sections to the S6 settings pass ([dff30c4](https://github.com/jkrumm/basalt-ui/commit/dff30c4dffa10815d619b67b8186243fc073af95))
224
-
225
296
  ## [2.27.2](https://github.com/jkrumm/basalt-ui/compare/v2.27.1...v2.27.2) (2026-10-19)
226
297
 
227
298
  ### Bug Fixes
@@ -232,7 +303,6 @@ bun add basalt-ui
232
303
  - one home for the chart ring, tidy the w41 chip test ([b9938a7](https://github.com/jkrumm/basalt-ui/commit/b9938a713f793ae575bda448a3c6797ec96d37ec))
233
304
  - open the info bubble below the card's header block ([a5d57cd](https://github.com/jkrumm/basalt-ui/commit/a5d57cd4c4416aa8e95512238560acaf9e659fd9))
234
305
  - slotted bars chip clears the plot's focus ring and swatch ([d456c08](https://github.com/jkrumm/basalt-ui/commit/d456c0856f7bb7d270f4263795f42f2fc768ae83))
235
-
236
306
  ## [2.27.1](https://github.com/jkrumm/basalt-ui/compare/v2.27.0...v2.27.1) (2026-10-19)
237
307
 
238
308
  ### Bug Fixes
@@ -676,14 +746,12 @@ bun add basalt-ui
676
746
  - export date, time, dateTime and duration from the format subpath ([b66c5bb](https://github.com/jkrumm/basalt-ui/commit/b66c5bb61f7c47401e0b74be050bc020d5023746))
677
747
  - money keeps cents, locale-aware km/kcal, provider locale and timeZone ([8332275](https://github.com/jkrumm/basalt-ui/commit/8332275b102849e65f4a3c84d8b8a5c86e179cab))
678
748
  - one relative-time formatter, plus date, time, dateTime and duration ([c5f3312](https://github.com/jkrumm/basalt-ui/commit/c5f33125c4d06331ecda374d7e3ed40d21d82a60))
679
-
680
749
  ## [2.13.3](https://github.com/jkrumm/basalt-ui/compare/v2.13.2...v2.13.3) (2026-10-16)
681
750
 
682
751
  ### Bug Fixes
683
752
 
684
753
  - router default screens render without a provider ([8391f36](https://github.com/jkrumm/basalt-ui/commit/8391f36d81ca53e7f7bc4a4912b59e98bc7c833f))
685
754
  - share the fallback styling, move the router defaults to their own module ([9efda55](https://github.com/jkrumm/basalt-ui/commit/9efda55175531a3f4f3b39c9c77bab350bd82a1f))
686
-
687
755
  ## [2.13.2](https://github.com/jkrumm/basalt-ui/compare/v2.13.1...v2.13.2) (2026-10-16)
688
756
 
689
757
  ### Bug Fixes
@@ -693,7 +761,6 @@ bun add basalt-ui
693
761
  - followers draw the cursor dots, one cursor-dot mark per getMarker series ([5a1a70f](https://github.com/jkrumm/basalt-ui/commit/5a1a70fe6d1f7a6d67e144f04f233503cc173c41))
694
762
  - give the Modal close button an accessible name ([8e9527f](https://github.com/jkrumm/basalt-ui/commit/8e9527fc6b91431ecd4692d906e465fd2adcb6f7))
695
763
  - type the follower contract and narrow the compact line swatch ([45e08e6](https://github.com/jkrumm/basalt-ui/commit/45e08e6537593419cf92a47805d614cb3a393aa3))
696
-
697
764
  ## [2.13.1](https://github.com/jkrumm/basalt-ui/compare/v2.13.0...v2.13.1) (2026-10-16)
698
765
 
699
766
  ### Bug Fixes
@@ -739,7 +806,6 @@ bun add basalt-ui
739
806
  ### Features
740
807
 
741
808
  - provider bundles Spotlight, modals, hotkeys only when defined ([37c3477](https://github.com/jkrumm/basalt-ui/commit/37c347743a83db4b291173cf0238f37d6aa2fb42))
742
-
743
809
  ## [2.11.1](https://github.com/jkrumm/basalt-ui/compare/v2.11.0...v2.11.1) (2026-10-15)
744
810
 
745
811
  ### Bug Fixes
@@ -771,7 +837,6 @@ bun add basalt-ui
771
837
  ### Features
772
838
 
773
839
  - band charts hide a pending legend and mirror their fills ([22a491e](https://github.com/jkrumm/basalt-ui/commit/22a491ef5cfdbcd9bfac1c5284c8566f453b50af))
774
-
775
840
  ## [2.9.1](https://github.com/jkrumm/basalt-ui/compare/v2.9.0...v2.9.1) (2026-10-15)
776
841
 
777
842
  ### Bug Fixes
@@ -801,7 +866,6 @@ bun add basalt-ui
801
866
  - export foldBands for testing a band merge ([8343f19](https://github.com/jkrumm/basalt-ui/commit/8343f1985fffef07447ce202f512b17ebbf3ce7c))
802
867
  - name the unset state of a number filter ([02ed3ba](https://github.com/jkrumm/basalt-ui/commit/02ed3bacc5094fca61401795a6440513754150aa))
803
868
  - remove the 1.x compatibility layer from 2.x ([66f4517](https://github.com/jkrumm/basalt-ui/commit/66f4517df998f5a304a90d2cd9824654772de31d))
804
-
805
869
  ## [2.8.1](https://github.com/jkrumm/basalt-ui/compare/v2.8.0...v2.8.1) (2026-10-15)
806
870
 
807
871
  ### Bug Fixes
@@ -848,19 +912,16 @@ bun add basalt-ui
848
912
 
849
913
  - give BandStrip an absent state ([6ed20bd](https://github.com/jkrumm/basalt-ui/commit/6ed20bdb01df2b4105bfb7936ae4296c6da674bc))
850
914
  - let BasaltProvider live inside a router it does not own ([d108547](https://github.com/jkrumm/basalt-ui/commit/d108547b2c4e57adf66f5abbbc79e07ef7da7b3e))
851
-
852
915
  ## [2.7.3](https://github.com/jkrumm/basalt-ui/compare/v2.7.2...v2.7.3) (2026-10-15)
853
916
 
854
917
  ### Bug Fixes
855
918
 
856
919
  - state the TableOfContents ⇄ Markdown heading-id contract where agents read ([01ff90e](https://github.com/jkrumm/basalt-ui/commit/01ff90ea6999d5615aba9be73079a05bb8962c5f))
857
-
858
920
  ## [2.7.2](https://github.com/jkrumm/basalt-ui/compare/v2.7.1...v2.7.2) (2026-10-15)
859
921
 
860
922
  ### Bug Fixes
861
923
 
862
924
  - llms.txt lists component props for every subpath, one legend swatch shape ([80b1e91](https://github.com/jkrumm/basalt-ui/commit/80b1e91d372fdc063290776807bb38964cea22ea))
863
-
864
925
  ## [2.7.1](https://github.com/jkrumm/basalt-ui/compare/v2.7.0...v2.7.1) (2026-10-15)
865
926
 
866
927
  ### Bug Fixes
@@ -883,7 +944,6 @@ bun add basalt-ui
883
944
  - checkbox and switch bindings and typed field errors in basalt-ui/forms ([0041e51](https://github.com/jkrumm/basalt-ui/commit/0041e511d8895fb6f14c856c772aad06240e8964))
884
945
  - rowActions loading, per-row names and a sharper row-action lint ([1e0fa59](https://github.com/jkrumm/basalt-ui/commit/1e0fa59f7779dd6b58185bf7cf4451c2704d47fe))
885
946
  - type the checkbox binding strictly and export InputProps ([a3538ab](https://github.com/jkrumm/basalt-ui/commit/a3538abeb028f8585c93c01c1d9aa50350a6eeaf))
886
-
887
947
  ## [2.6.1](https://github.com/jkrumm/basalt-ui/compare/v2.6.0...v2.6.1) (2026-10-15)
888
948
 
889
949
  ### Bug Fixes
@@ -968,20 +1028,17 @@ bun add basalt-ui
968
1028
  ### Features
969
1029
 
970
1030
  - export toAgentError from basalt-ui/agent ([8f23111](https://github.com/jkrumm/basalt-ui/commit/8f23111b7f4f9eb13c44df135138ff879da89f93))
971
-
972
1031
  ## [2.0.5](https://github.com/jkrumm/basalt-ui/compare/v2.0.4...v2.0.5) (2026-10-14)
973
1032
 
974
1033
  ### Bug Fixes
975
1034
 
976
1035
  - fail loudly on a missing subpath peer ([74593b1](https://github.com/jkrumm/basalt-ui/commit/74593b10672e9f294032126598765029600ad937))
977
-
978
1036
  ## [2.0.4](https://github.com/jkrumm/basalt-ui/compare/v2.0.3...v2.0.4) (2026-10-14)
979
1037
 
980
1038
  ### Bug Fixes
981
1039
 
982
1040
  - assert the visible strip above the sticky header, not raw row overlap ([13b5a7e](https://github.com/jkrumm/basalt-ui/commit/13b5a7e736cfdf4be2c212b9894ea0ab6b1fd41e))
983
1041
  - seal the sticky table header under the app bar, keep narrow columns legible ([9046f21](https://github.com/jkrumm/basalt-ui/commit/9046f2174adaef3d9d71acacc216fe4663181ef5))
984
-
985
1042
  ## [2.0.3](https://github.com/jkrumm/basalt-ui/compare/v2.0.2...v2.0.3) (2026-10-14)
986
1043
 
987
1044
  ### Bug Fixes
@@ -989,7 +1046,6 @@ bun add basalt-ui
989
1046
  - follow the router import in app-wiring and let CI run make check ([47b6152](https://github.com/jkrumm/basalt-ui/commit/47b61526ab3ae959c1d9e4595916782defb0454f))
990
1047
  - label the provider's nav commands and drop duplicate nav entries ([08ec6ee](https://github.com/jkrumm/basalt-ui/commit/08ec6eef320f1ae8e072584c48a903f672222364))
991
1048
  - show nav badges in the collapsed rail ([5e09ea0](https://github.com/jkrumm/basalt-ui/commit/5e09ea07f05822f853c118a19c2cf72fe593501a))
992
-
993
1049
  ## [2.0.2](https://github.com/jkrumm/basalt-ui/compare/v2.0.1...v2.0.2) (2026-10-14)
994
1050
 
995
1051
  ### Bug Fixes
@@ -997,7 +1053,6 @@ bun add basalt-ui
997
1053
  - keep the brand symbol out of keyof a groupTokens result ([27f44d3](https://github.com/jkrumm/basalt-ui/commit/27f44d3da50f07f9adb5b850edc86e8e388d0550))
998
1054
  - make doctor and sync monorepo-aware ([eafb701](https://github.com/jkrumm/basalt-ui/commit/eafb7013d07a7935b393c70553e11d2a57f01c71))
999
1055
  - throw a clear error for a group not built by groupTokens ([7c0dc44](https://github.com/jkrumm/basalt-ui/commit/7c0dc447e2faff22561166f66d6e449be511981c))
1000
-
1001
1056
  ## [2.0.1](https://github.com/jkrumm/basalt-ui/compare/v2.0.0...v2.0.1) (2026-10-14)
1002
1057
 
1003
1058
  ### Bug Fixes
@@ -1117,7 +1172,6 @@ bun add basalt-ui
1117
1172
  ### Features
1118
1173
 
1119
1174
  - place the managed block in AGENTS.md and migrate it out of CLAUDE.md ([ce26af8](https://github.com/jkrumm/basalt-ui/commit/ce26af8a4df0bad33f94a3d697b58c1c7e94f73c))
1120
-
1121
1175
  ## [1.40.3](https://github.com/jkrumm/basalt-ui/compare/v1.40.2...v1.40.3) (2026-10-05)
1122
1176
 
1123
1177
  ### Bug Fixes
@@ -1125,13 +1179,11 @@ bun add basalt-ui
1125
1179
  - chart cursor slider always carries aria-valuenow ([e1bce15](https://github.com/jkrumm/basalt-ui/commit/e1bce15e7b280a4f203bb05173d4478c0a64c7f3))
1126
1180
  - light-scheme text, links, errors and badges clear WCAG AA ([bfa4c0e](https://github.com/jkrumm/basalt-ui/commit/bfa4c0e329138daa0f6ffe7d6a9678644a1b0440))
1127
1181
  - shortcut display uses platform glyphs and Title-case words for named keys ([77733e9](https://github.com/jkrumm/basalt-ui/commit/77733e916892138b42b398188f85dae234877181))
1128
-
1129
1182
  ## [1.40.2](https://github.com/jkrumm/basalt-ui/compare/v1.40.1...v1.40.2) (2026-10-05)
1130
1183
 
1131
1184
  ### Bug Fixes
1132
1185
 
1133
1186
  - sidebar footer rows sit on the nav row's height and 1px pitch ([bbd5c66](https://github.com/jkrumm/basalt-ui/commit/bbd5c66a223af61888df28cca837b89ef95181b1))
1134
-
1135
1187
  ## [1.40.1](https://github.com/jkrumm/basalt-ui/compare/v1.40.0...v1.40.1) (2026-10-05)
1136
1188
 
1137
1189
  ### Bug Fixes
@@ -1154,7 +1206,6 @@ bun add basalt-ui
1154
1206
 
1155
1207
  - add BasaltShell headerHeight for a deliberate, consumer-set header row ([3561361](https://github.com/jkrumm/basalt-ui/commit/3561361279664d3ee51d245586331e057dd62844))
1156
1208
  - remove the deprecated forms layout and useForm re-exports ([9e8b8c6](https://github.com/jkrumm/basalt-ui/commit/9e8b8c69241ea33d8bdf47532358166a809eb4ce))
1157
-
1158
1209
  ## [1.38.1](https://github.com/jkrumm/basalt-ui/compare/v1.38.0...v1.38.1) (2026-10-04)
1159
1210
 
1160
1211
  ### Bug Fixes
@@ -1171,7 +1222,6 @@ bun add basalt-ui
1171
1222
  ### Features
1172
1223
 
1173
1224
  - add --basalt-shell-lead-inset for a native title bar over the header lead ([980c2ff](https://github.com/jkrumm/basalt-ui/commit/980c2ff707a39ec150b64d27780b3ceecb98b922))
1174
-
1175
1225
  ## [1.37.1](https://github.com/jkrumm/basalt-ui/compare/v1.37.0...v1.37.1) (2026-10-02)
1176
1226
 
1177
1227
  ### Bug Fixes
@@ -1188,7 +1238,6 @@ bun add basalt-ui
1188
1238
  ### Features
1189
1239
 
1190
1240
  - let a settings menu entry render as the router link ([55d4023](https://github.com/jkrumm/basalt-ui/commit/55d402360347cf74703530bd843b0c2eae765f6b))
1191
-
1192
1241
  ## [1.36.1](https://github.com/jkrumm/basalt-ui/compare/v1.36.0...v1.36.1) (2026-10-01)
1193
1242
 
1194
1243
  ### Bug Fixes
@@ -1215,7 +1264,6 @@ bun add basalt-ui
1215
1264
 
1216
1265
  - keep a custom sidebar block in the collapsed rail and the mobile drawer ([136481c](https://github.com/jkrumm/basalt-ui/commit/136481cb6485543c9bdd4b386590c5080ed14c3c))
1217
1266
  - let a settings entry be the current page, not only a checked selection ([1da042c](https://github.com/jkrumm/basalt-ui/commit/1da042ce10855e6d6cc364b94358220be2064c4d))
1218
-
1219
1267
  ## [1.34.1](https://github.com/jkrumm/basalt-ui/compare/v1.34.0...v1.34.1) (2026-10-01)
1220
1268
 
1221
1269
  ### Bug Fixes
@@ -1281,7 +1329,6 @@ bun add basalt-ui
1281
1329
  - budget the provider-only first paint in check-budgets ([d36bed2](https://github.com/jkrumm/basalt-ui/commit/d36bed2c9c898490fddde0de126a36541ee25860))
1282
1330
  - fold every dev-only gate out of production bundles ([25f94b7](https://github.com/jkrumm/basalt-ui/commit/25f94b79e81b045c05fe5eefb9479edebe195c43))
1283
1331
  - keep the theme lab's store out of production first paint ([4e7512b](https://github.com/jkrumm/basalt-ui/commit/4e7512b41846e54fbb3d196ec157435c03b1c582))
1284
-
1285
1332
  ## [1.32.1](https://github.com/jkrumm/basalt-ui/compare/v1.32.0...v1.32.1) (2026-09-30)
1286
1333
 
1287
1334
  ### Bug Fixes
@@ -1341,13 +1388,11 @@ bun add basalt-ui
1341
1388
  - size-class shell docking, measured page-bar fold and toast bottom inset ([1fd619d](https://github.com/jkrumm/basalt-ui/commit/1fd619db7f58d81b60b20832b6353968b957c905))
1342
1389
  - spend compact-width axes on the plot, not the gutters ([b0d5b49](https://github.com/jkrumm/basalt-ui/commit/b0d5b49f442a471f1a53b2fb57c90144efb66095))
1343
1390
  - three-axis responsive foundations and --vx-hit ([6609ec1](https://github.com/jkrumm/basalt-ui/commit/6609ec1d62d189184dd512c12334963fb8fe0b84))
1344
-
1345
1391
  ## [1.30.2](https://github.com/jkrumm/basalt-ui/compare/v1.30.1...v1.30.2) (2026-09-09)
1346
1392
 
1347
1393
  ### Bug Fixes
1348
1394
 
1349
1395
  - stop legendWins collapsing a self-measured fill frame to no plot ([07f0fcd](https://github.com/jkrumm/basalt-ui/commit/07f0fcd65df5047caec1ce09aaaf7f05958e58ad))
1350
-
1351
1396
  ## [1.30.1](https://github.com/jkrumm/basalt-ui/compare/v1.30.0...v1.30.1) (2026-09-09)
1352
1397
 
1353
1398
  ### Bug Fixes
@@ -1362,13 +1407,11 @@ bun add basalt-ui
1362
1407
  - mount the aside on the dashboard and make the playground phone-honest ([d72914b](https://github.com/jkrumm/basalt-ui/commit/d72914b41ee4cd1f98ea51af15666e5c0f764ec9))
1363
1408
  - promote four guard rules to error, extend the C1 pair to 1.31.0 ([121f8d2](https://github.com/jkrumm/basalt-ui/commit/121f8d29859cfbe89a8413ee9e8e1ae1c81443a9))
1364
1409
  - rebuild the shell chrome for phones, gutters and container columns ([0f63581](https://github.com/jkrumm/basalt-ui/commit/0f63581ef9d86a3ff3c69c7bed7c4d456156c8b5))
1365
-
1366
1410
  ## [1.29.2](https://github.com/jkrumm/basalt-ui/compare/v1.29.1...v1.29.2) (2026-09-03)
1367
1411
 
1368
1412
  ### Bug Fixes
1369
1413
 
1370
1414
  - distribute unwrap's NonNullable over Eden's union response shape ([d46bc00](https://github.com/jkrumm/basalt-ui/commit/d46bc00ae46fcbe76e0b89516140735b1f3295fb))
1371
-
1372
1415
  ## [1.29.1](https://github.com/jkrumm/basalt-ui/compare/v1.29.0...v1.29.1) (2026-09-03)
1373
1416
 
1374
1417
  ### Bug Fixes
@@ -1486,7 +1529,6 @@ bun add basalt-ui
1486
1529
 
1487
1530
  - playground routes for QueryState and the table body chrome ([e150a00](https://github.com/jkrumm/basalt-ui/commit/e150a0051bf743137751a3d5c17f202c0984aaa7))
1488
1531
  - ship the query loading/error branch and the table body chrome ([963bf04](https://github.com/jkrumm/basalt-ui/commit/963bf047cf9ac4fac3cecceecbd0c378ee37f79d))
1489
-
1490
1532
  ## [1.23.1](https://github.com/jkrumm/basalt-ui/compare/v1.23.0...v1.23.1) (2026-08-22)
1491
1533
 
1492
1534
  ### Bug Fixes
@@ -1558,7 +1600,6 @@ bun add basalt-ui
1558
1600
  - make the escape hatch usable and close the holes round 4 found ([5b8420d](https://github.com/jkrumm/basalt-ui/commit/5b8420d24647b84818dfbb65e9f0c52ea1e79c2c))
1559
1601
  - scan the app shell, wire the tokens-only profile, ship **APP_VERSION** ([61b1792](https://github.com/jkrumm/basalt-ui/commit/61b1792e8ea1bff3c59128ba65137b27d40df81a))
1560
1602
  - stop the toolchain reporting green while enforcing nothing ([d3d8e34](https://github.com/jkrumm/basalt-ui/commit/d3d8e3434893516e62413acafdd166be13b86541))
1561
-
1562
1603
  ## [1.19.1](https://github.com/jkrumm/basalt-ui/compare/v1.19.0...v1.19.1) (2026-08-20)
1563
1604
 
1564
1605
  ### Bug Fixes
@@ -1695,7 +1736,6 @@ bun add basalt-ui
1695
1736
  - normalise the emitted --vx-* names to kebab-case ([17bd239](https://github.com/jkrumm/basalt-ui/commit/17bd239bb3192c8b1a2f9dbd4f9ce513282df979))
1696
1737
  - report the source declaration and unblind the chart kinds ([2d791f0](https://github.com/jkrumm/basalt-ui/commit/2d791f03f229e86eced5afda2f5ae90c8ec99533))
1697
1738
  - ship zero runtime dependencies ([144327f](https://github.com/jkrumm/basalt-ui/commit/144327f76cb6a6bf863bed3d023181320a60246d))
1698
-
1699
1739
  ## [1.4.1](https://github.com/jkrumm/basalt-ui/compare/v1.4.0...v1.4.1) (2026-07-28)
1700
1740
 
1701
1741
  ### Bug Fixes
@@ -1756,7 +1796,6 @@ bun add basalt-ui
1756
1796
  - mention the radius knob in the Derive panel copy ([7a1b064](https://github.com/jkrumm/basalt-ui/commit/7a1b064c548f98143350d366696eb1f7ab8e6b6f))
1757
1797
  - scan CSS modules in the theme guard ([2b0d9d4](https://github.com/jkrumm/basalt-ui/commit/2b0d9d433917ef5bcc55d0400e76de50f622c526))
1758
1798
  - tighten the sidebar, open up components — retune the level-0 spacing bases ([8b6119a](https://github.com/jkrumm/basalt-ui/commit/8b6119aa601793f8947302288d02cfb1803dc1b8))
1759
-
1760
1799
  ## [1.1.1](https://github.com/jkrumm/basalt-ui/compare/v1.1.0...v1.1.1) (2026-07-17)
1761
1800
 
1762
1801
  ### Bug Fixes
@@ -1768,13 +1807,11 @@ bun add basalt-ui
1768
1807
  ### Features
1769
1808
 
1770
1809
  - split the import boundary into three independent rules ([784b673](https://github.com/jkrumm/basalt-ui/commit/784b6739367a25b9ffe379603c02322896e43658))
1771
-
1772
1810
  ## [1.0.2](https://github.com/jkrumm/basalt-ui/compare/v1.0.1...v1.0.2) (2026-07-17)
1773
1811
 
1774
1812
  ### Bug Fixes
1775
1813
 
1776
1814
  - make the import boundary unclobberable and stop false drift on sync ([98aba84](https://github.com/jkrumm/basalt-ui/commit/98aba8497eb359cbc86e3bee289d21d3e2dbd099))
1777
-
1778
1815
  ## [1.0.1](https://github.com/jkrumm/basalt-ui/compare/v1.0.0...v1.0.1) (2026-07-17)
1779
1816
 
1780
1817
  ### Bug Fixes
@@ -1949,13 +1986,11 @@ from 0.x carries over.
1949
1986
  Everything, deliberately: 0.4.2 had no external consumers. Treat 1.0 as a new library — start from
1950
1987
  the README quick-start (`BasaltProvider` + `createBasaltTheme` + the `styles.layer.css` import
1951
1988
  order) and let `basalt init` lay down the doctrine.
1952
-
1953
1989
  ## [0.4.2](https://github.com/jkrumm/basalt-ui/compare/v0.4.1...v0.4.2) (2026-03-12)
1954
1990
 
1955
1991
  ### Bug Fixes
1956
1992
 
1957
1993
  - add sideEffects and provenance to package.json ([3a1e512](https://github.com/jkrumm/basalt-ui/commit/3a1e51219fb500bebe17eb8a9031ec77296fc1d6))
1958
-
1959
1994
  ## [0.4.1](https://github.com/jkrumm/basalt-ui/compare/v0.4.0...v0.4.1) (2026-03-12)
1960
1995
 
1961
1996
  ### Bug Fixes
@@ -1992,13 +2027,11 @@ order) and let `basalt init` lay down the doctrine.
1992
2027
  - add OCI labels to Docker images ([cd8fcfb](https://github.com/jkrumm/basalt-ui/commit/cd8fcfb46e079a023065d09fa4b7f8d100a33086))
1993
2028
 
1994
2029
  # Changelog
1995
-
1996
2030
  ## [0.2.2](https://github.com/jkrumm/basalt-ui/compare/v0.2.1...v0.2.2) (2026-02-27)
1997
2031
 
1998
2032
  ### Performance Improvements
1999
2033
 
2000
2034
  - change font-display from block to swap ([ed485ba](https://github.com/jkrumm/basalt-ui/commit/ed485ba0bdddad77ed6f3e773dc0c565f4a7523d))
2001
-
2002
2035
  ## [0.2.1](https://github.com/jkrumm/basalt-ui/compare/v0.2.0...v0.2.1) (2026-02-09)
2003
2036
 
2004
2037
  ### Bug Fixes
package/MIGRATING.md CHANGED
@@ -1,14 +1,56 @@
1
1
  # Migrating basalt-ui
2
2
 
3
- <!-- Generated by scripts/release-migrating.ts from migrations/areas (digest 8e2ec85e8f9d78278525f88ecb066ad86a8d2a243d82d5238d83c578dc8fe45d). Do not edit. -->
3
+ <!-- Generated by scripts/release-migrating.ts from migrations/areas (digest d02dac9e6305af71a2218d3a18edcd8f81e4eea185518ce303f93ece78688226). Do not edit. -->
4
4
 
5
5
  What each release renamed, removed or changed, newest first. `basalt-ui migrate --from <your version>
6
- --profile <profile>` prints the rows newer than that version that your app touches, with file:line.
6
+ --profile <profile>` prints the rows newer than that version that your app touches, with file:line;
7
+ a `file:` row, for a source file your app holds, prints at any version.
7
8
 
8
9
  3.0 is a rewrite of the styling and component layer, and 2.x consumers migrate when they choose: 2.x
9
10
  stays on npm as published and a pin keeps working. Every public name a release removed or renamed has a
10
11
  row under that release.
11
12
 
13
+ ## 3.1.0
14
+
15
+ ### shadcn
16
+
17
+ - `file:components/ui/accordion.tsx` → `basalt-ui/ui/accordion` (replace, `shadcn-accordion`): a shadcn copy: delete the file and import the shipped part. Item, Trigger and Content keep their names. type="multiple" is the multiple prop (one item is open by default), collapsible is dropped, value and defaultValue are arrays, asChild is render
18
+ - `file:components/ui/alert.tsx` → `basalt-ui/ui/alert` (replace, `shadcn-alert`): a shadcn copy: delete the file and import the shipped part. variant destructive is tone="bad", default is tone="neutral"; AlertTitle is the title prop, AlertDescription is the children
19
+ - `file:components/ui/alert-dialog.tsx` → `basalt-ui/ui/dialog` (replace, `shadcn-alert-dialog`): a shadcn copy: delete the file and import basalt-ui/ui/dialog. AlertDialog, AlertDialogTrigger and AlertDialogContent: the content takes title (required) and description in place of Header, Title and Description; the answers are its children, each a DialogClose with render={<Button />} (AlertDialogAction: variant="danger" or "primary"); asChild is render
20
+ - `file:components/ui/avatar.tsx` → `basalt-ui/ui/avatar` (replace, `shadcn-avatar`): a shadcn copy: delete the file and import the shipped part. one Avatar with name (required, draws the initials) and src; AvatarImage and AvatarFallback are dropped. size is a prop
21
+ - `file:components/ui/badge.tsx` → `basalt-ui/ui/badge` (replace, `shadcn-badge`): a shadcn copy: delete the file and import the shipped part. variant default is tone="accent", secondary and outline are tone="neutral", destructive is tone="bad" (also good, warn, info). children is a string; a leading glyph is icon, a state dot is dot. A number is CountBadge, a change is DeltaBadge; there is no asChild
22
+ - `file:components/ui/button.tsx` → `basalt-ui/ui/button` (replace, `shadcn-button`): a shadcn copy: delete the file and import the shipped part. variant default (and none) is "primary"; outline and secondary are "secondary" (the default here); ghost is "ghost"; destructive is "danger"; link is an <a> with no Button. size default and lg are "md"; sm and xs are "sm"; icon is shape="icon" with a required aria-label; icon-sm and icon-xs are shape="icon" size="sm". asChild is render (with nativeButton={false} for a link). buttonVariants takes the same values
23
+ - `file:components/ui/calendar.tsx` → `basalt-ui/ui/calendar` (replace, `shadcn-calendar`): a shadcn copy: delete the file and import the shipped part. value and onValueChange carry YYYY-MM-DD strings in place of selected and onSelect with a Date; mode is "single" or "range"; aria-label or aria-labelledby is required; disabled is a function of the day
24
+ - `file:components/ui/card.tsx` → `basalt-ui/ui/card` (replace, `shadcn-card`): a shadcn copy: delete the file and import the shipped part. Card and flush; CardHeader, CardTitle, CardDescription and CardAction are CardBand (title, subtitle, actions), CardContent is children or Inset; CardFooter is app markup. A framed chart or number is ChartCard or StatCard from basalt-ui/cards
25
+ - `file:components/ui/checkbox.tsx` → `basalt-ui/ui/checkbox` (replace, `shadcn-checkbox`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs checkbox` before swapping the import
26
+ - `file:components/ui/collapsible.tsx` → `basalt-ui/ui/collapsible` (replace, `shadcn-collapsible`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs collapsible` before swapping the import
27
+ - `file:components/ui/combobox.tsx` → `basalt-ui/ui/combobox` (replace, `shadcn-combobox`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs combobox` before swapping the import
28
+ - `file:components/ui/context-menu.tsx` → `basalt-ui/ui/context-menu` (replace, `shadcn-context-menu`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs context-menu` before swapping the import
29
+ - `file:components/ui/dialog.tsx` → `basalt-ui/ui/dialog` (replace, `shadcn-dialog`): a shadcn copy: delete the file and import the shipped part. DialogContent takes title (required) and description in place of DialogHeader, DialogTitle and DialogDescription; DialogOverlay, DialogPortal and the close button are built in; DialogFooter is a div; max-width classes are size sm|md|lg|wide; asChild is render
30
+ - `file:components/ui/drawer.tsx` → `basalt-ui/ui/sheet` (replace, `shadcn-drawer`): a shadcn copy: delete the file and import basalt-ui/ui/sheet. Sheet, SheetTrigger, SheetContent (title is a prop, footer is the footer prop), SheetClose; asChild is render
31
+ - `file:components/ui/dropdown-menu.tsx` → `basalt-ui/ui/menu` (replace, `shadcn-dropdown-menu`): a shadcn copy: delete the file and import basalt-ui/ui/menu. DropdownMenu* is Menu, MenuTrigger, MenuContent, MenuItem, MenuGroup (label prop), MenuCheckboxItem, MenuRadioGroup, MenuRadioItem, MenuSub (label prop), MenuSeparator; a destructive item is the destructive prop; onSelect is onClick; asChild is render
32
+ - `file:components/ui/input.tsx` → `basalt-ui/ui/input` (replace, `shadcn-input`): a shadcn copy: delete the file and import the shipped part. same name; size is "md" (default) or "sm" and replaces height classes; onValueChange gives the text (onChange still works); start and end draw an icon or unit inside the field
33
+ - `file:components/ui/input-otp.tsx` → `basalt-ui/ui/one-time-code` (replace, `shadcn-input-otp`): a shadcn copy: delete the file and import basalt-ui/ui/one-time-code. OneTimeCode is one part: the slot and group subcomponents are dropped
34
+ - `file:components/ui/kbd.tsx` → `basalt-ui/ui/kbd` (replace, `shadcn-kbd`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs kbd` before swapping the import
35
+ - `file:components/ui/label.tsx` → `basalt-ui/ui/field` (replace, `shadcn-label`): a shadcn copy: delete the file and import basalt-ui/ui/field. a Field with label, description and error props, or FieldLabel inside Field; htmlFor is not needed inside a Field
36
+ - `file:components/ui/popover.tsx` → `basalt-ui/ui/popover` (replace, `shadcn-popover`): a shadcn copy: delete the file and import the shipped part. PopoverContent needs aria-label or aria-labelledby; side, align, sideOffset and anchor are on it (PopoverAnchor is dropped); PopoverHeader and PopoverTitle are markup; asChild is render
37
+ - `file:components/ui/progress.tsx` → `basalt-ui/ui/progress` (replace, `shadcn-progress`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs progress` before swapping the import
38
+ - `file:components/ui/radio-group.tsx` → `basalt-ui/ui/radio-group` (replace, `shadcn-radio-group`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs radio-group` before swapping the import
39
+ - `file:components/ui/resizable.tsx` → `basalt-ui/ui/resizable` (replace, `shadcn-resizable`): a shadcn copy: delete the file and import the shipped part. ResizablePanelGroup, ResizablePanel and ResizableHandle keep their names; direction is orientation, withHandle is grip; sizes follow react-resizable-panels ("35%", a bare number is px)
40
+ - `file:components/ui/scroll-area.tsx` → `basalt-ui/ui/scroll-area` (replace, `shadcn-scroll-area`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs scroll-area` before swapping the import
41
+ - `file:components/ui/select.tsx` → `basalt-ui/ui/select` (replace, `shadcn-select`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs select` before swapping the import
42
+ - `file:components/ui/separator.tsx` → `basalt-ui/ui/separator` (replace, `shadcn-separator`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs separator` before swapping the import
43
+ - `file:components/ui/sheet.tsx` → `basalt-ui/ui/sheet` (replace, `shadcn-sheet`): a shadcn copy: delete the file and import the shipped part. SheetContent takes title (required) in place of SheetHeader and SheetTitle, and footer in place of SheetFooter; asChild is render
44
+ - `file:components/ui/skeleton.tsx` → `basalt-ui/ui/skeleton` (replace, `shadcn-skeleton`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs skeleton` before swapping the import
45
+ - `file:components/ui/slider.tsx` → `basalt-ui/ui/slider` (replace, `shadcn-slider`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs slider` before swapping the import
46
+ - `file:components/ui/sonner.tsx` → `basalt-ui/ui/toast` (replace, `shadcn-sonner`): a shadcn copy: delete the file and import basalt-ui/ui/toast. call notify('success', { message }) from basalt-ui instead of toast(); the app mounts ToastHost, not a Toaster
47
+ - `file:components/ui/switch.tsx` → `basalt-ui/ui/switch` (replace, `shadcn-switch`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs switch` before swapping the import
48
+ - `file:components/ui/table.tsx` → `basalt-ui/ui/table` (replace, `shadcn-table`): a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs table` before swapping the import
49
+ - `file:components/ui/tabs.tsx` → `basalt-ui/ui/tabs` (replace, `shadcn-tabs`): a shadcn copy: delete the file and import the shipped part. Tabs, TabsList, TabsTrigger and TabsContent keep their names. The shadcn default look is variant="segment" on Tabs, its line look is the default "line"; size is "md" or "sm"; asChild is render
50
+ - `file:components/ui/textarea.tsx` → `basalt-ui/ui/textarea` (replace, `shadcn-textarea`): a shadcn copy: delete the file and import the shipped part. same name; size "md" or "sm"; rows (default 3) sets the floor and it grows to 10; value and defaultValue are strings; onValueChange gives the text
51
+ - `file:components/ui/toggle-group.tsx` → `basalt-ui/ui/segmented` (replace, `shadcn-toggle-group`): a shadcn copy: delete the file and import basalt-ui/ui/segmented. Segmented takes options; type="multiple" is multiple
52
+ - `file:components/ui/tooltip.tsx` → `basalt-ui/ui/tooltip` (replace, `shadcn-tooltip`): a shadcn copy: delete the file and import the shipped part. one Tooltip: TooltipProvider, TooltipTrigger and TooltipContent are dropped. <Tooltip label="Copy" side="top"><Button .../></Tooltip>; label is a string, delayDuration is delay. Rich content is a Popover
53
+
12
54
  ## 3.0.0
13
55
 
14
56
  ### tokens
package/README.md CHANGED
@@ -39,7 +39,7 @@ peer has a range matched to how tightly basalt is coupled to it (the table in `M
39
39
  Dependencies: a caret for a stable package, a tilde for one whose internals basalt reads, an exact pin for
40
40
  0.x or alpha tooling). `@tanstack/router-plugin` is pinned at `1.168.40` but accepts any newer 1.x. An
41
41
  app already on a version inside the range keeps it, and a fresh install takes the newest one: a peer basalt
42
- pins exactly is saved exactly, a ranged peer is saved with its caret or tilde. A dependency the app already had whose version falls outside the range or pin is changed, and
42
+ pins exactly is saved exactly, a ranged peer is saved with its caret or tilde, or as the version it resolved where `bunfig.toml` or `.npmrc` saves exact. The peers go into the workspace package that holds the declared root, never the workspace root. A dependency the app already had whose version falls outside the range or pin is changed, and
43
43
  `init` prints one line for it (for example `oxlint ^1.90.0` moves to the preset's pin). Installing the
44
44
  peers yourself first only pins them twice. A peer a subpath needs that `init` does not install
45
45
  (`./form`, `./motion`) is named by `basalt()` (the Vite plugin) as the exact `bun add` line. Exact
@@ -64,6 +64,10 @@ at all:
64
64
  bunx basalt-ui tokens:css --out src/tokens.css
65
65
  ```
66
66
 
67
+ A standalone HTML document that inlines its styles takes only the tokens it uses: `--pick canvas,ink,hairline`
68
+ keeps those and the ones their values reference, light by default and dark by `data-theme` or the OS
69
+ setting. `--check` fails a stale copy.
70
+
67
71
  ### 2. Scaffold the app and the repo doctrine (`basalt-ui init`)
68
72
 
69
73
  ```bash
@@ -74,12 +78,12 @@ bunx basalt-ui tokens:css --out src/tokens.css
74
78
  (paths relative to the repo root) is declared with it; with none, `init` takes the roots already recorded
75
79
  at that profile (before there is a 3.x manifest, `package.json` `basalt.roots`), else `.`. Step 1 installed the package, so
76
80
  `init` runs from the local bin like every later command, never `bunx`. There is no
77
- plugin, no marketplace and no second version to track. `init` writes at the git root:
81
+ plugin, no marketplace and no second version to track. `init` writes at the git root, except the peers:
78
82
 
79
83
  - `.basalt/manifest.json` — the profile, the declared roots, the `tokens:css` outputs and the sha256 of every managed file `sync` placed
80
84
  - the `tokens:css` outputs (`--tokens-out`, `--tokens-json-out`, `--extra`, with the `--accent --neutral --vibrancy --selector` flags recorded in the manifest)
81
85
  - `.stylelintrc.basalt.json` for every profile; `.oxlintrc.basalt.json` and an `.oxlintrc.json` that extends it from `site` up
82
- - the profile's peers within their declared ranges, a pin saved exactly and a range as the range (stylelint and postcss-html; `site` and above add oxlint and `@shadcn/lint`), installed with the lockfile's package manager (`--no-install` prints the command instead)
86
+ - the profile's peers within their declared ranges, a pin saved exactly and a range as the range, or as its resolved version where `bunfig.toml` or `.npmrc` saves exact, into the workspace package that holds the declared root (stylelint and postcss-html; `site` and above add oxlint and `@shadcn/lint`), installed with the lockfile's package manager (`--no-install` prints the command instead)
83
87
  - above `tokens`: the `basalt-*` rules, skills, design reviewer and editor hook for each coding agent in the manifest's `harnesses` (`claude-code`, `codex`, `opencode`, `pi`; `--harness` names them, else `init` detects them and falls back to Claude Code), the managed `<!-- basalt:begin/end -->` block in `AGENTS.md` that says where each agent finds them, and a thin `DESIGN.md` seed when no declared root has one. `basalt-ui remove` takes the agent layer out again; `"hook": false` keeps it without the hook
84
88
  - `.basalt/budget.json` (the eject ceiling) and the formatter ignore for the managed paths
85
89
  - `site` (static pages on Astro) writes no router scaffold: an untouched create-astro `astro.config` becomes one with `integrations: [react(), basaltAstro()]`; any other config is left and `doctor` names the step
@@ -101,6 +105,13 @@ src/
101
105
  It ends in `basalt-ui doctor`, which reports, then prints the session note when its run wrote agent-read files, and a last line: the agent goes on with the `basalt-app` skill until `doctor` passes. Running `init` twice changes nothing; `sync` refreshes
102
106
  what `init` placed and never creates an install.
103
107
 
108
+ **Mixed profiles in one install.** Run `init` once per profile with its own `--root` (`--profile app --root
109
+ apps/web/src`, then `--profile tokens --root apps/game/src`). Each root is held to its own profile: `doctor` reads app
110
+ wiring and peers per root, `.basalt/budget.json` floors each root at the profile it was added with, and the
111
+ manifest's `profile` stays the highest. A second Vite package that takes only the tokens is no second install; with
112
+ several Vite packages, the one holding the app root is the app, or name it with `"basalt": { "app": "apps/web" }` in
113
+ the root `package.json`.
114
+
104
115
  The editor hook runs `basalt-ui lint` after each edit. Claude Code labels a finding it prints "PostToolUse:Write hook blocking error": the file was written, and the finding blocks the turn until you fix it.
105
116
 
106
117
  `init` on an **existing** app is a lint-debt event, not a no-op: the generated preset switches on
@@ -117,9 +128,11 @@ commented file you copy them from `.oxlintrc.basalt.json` yourself.
117
128
  `.oxlintrc.basalt.json` itself extends the shared `basalt-config` base (`eqeqeq`, `no-eval`, `no-unused-vars`,
118
129
  `no-var`, `import/no-duplicates`), as the shipped `configs/oxlint-<profile>.json` files do. The path,
119
130
  `./node_modules/basalt-ui/../basalt-config/oxlint.json`, goes through the `basalt-ui` link, so your
120
- `package.json` does not name `basalt-config`. Type-aware rules and the `suspicious` category stay off;
131
+ `package.json` does not name `basalt-config`. Where an isolated workspace links the package into the app that depends on it and not into the root, the path goes through that link (`./apps/room/node_modules/basalt-ui/../basalt-config/oxlint.json`), so it holds no install hash. Type-aware rules and the `suspicious` category stay off;
121
132
  `options.typeAware` in your own `.oxlintrc.json` turns the first on once `oxlint-tsgolint` and TypeScript 7 are there.
122
133
 
134
+ The preset covers the declared roots only: its top level turns every basalt rule off and each root switches its profile on, so the server, CLI and test code of a monorepo that sits outside the roots stays on the `basalt-config` base and the root `.oxlintrc.json` can extend the preset repo-wide. Declare each interface directory as a root (`roots` in `.basalt/manifest.json`). oxlint loads `jsPlugins` relative to the config, so `basalt-ui` and `@shadcn/lint` must be dependencies of the root `package.json`; `basalt-ui lint` exits 1 and names the one that does not resolve, and one whose `.oxlintrc.json` does not extend the preset.
135
+
123
136
  Every file is either **managed** (basalt owns it, `sync` refreshes it, local edits are skipped and
124
137
  reported — exactly the files Claude reads, which cannot load from `node_modules`) or a **seed**
125
138
  (written once, then yours forever). One rule decides which: does Claude read the file?
@@ -137,16 +150,21 @@ the app, and the root barrel (`basalt-ui`) is in none of them.
137
150
  // src/main.tsx — builds the router from `routerDefaults` and mounts it
138
151
  import './index.css'
139
152
  import { QueryClientProvider } from '@tanstack/react-query'
140
- import { RouterProvider, createRouter } from '@tanstack/react-router'
153
+ import { RouterProvider, createRouter, lazyRouteComponent } from '@tanstack/react-router'
141
154
  import type { ReactNode } from 'react'
142
155
  import { createRoot } from 'react-dom/client'
143
156
  import { createQueryClient } from 'basalt-ui/data'
144
157
  import { BasaltProvider, routerDefaults } from 'basalt-ui/router'
145
- import { RouteError } from './components/route-error'
146
- import { RouteMissing } from './components/route-missing'
147
158
  import { RoutePending } from './components/route-pending'
148
159
  import { routeTree } from './routeTree.gen'
149
160
 
161
+ // The error and not-found screens compose `basalt-ui/page` (about 80 kB gzip), so each is its own
162
+ // chunk, fetched at start: a loader that fails offline still has its screen.
163
+ const RouteError = lazyRouteComponent(() => import('./components/route-error'), 'RouteError')
164
+ const RouteMissing = lazyRouteComponent(() => import('./components/route-missing'), 'RouteMissing')
165
+ void RouteError.preload?.()
166
+ void RouteMissing.preload?.()
167
+
150
168
  const queryClient = createQueryClient()
151
169
  const defaults = routerDefaults()
152
170
 
@@ -181,7 +199,9 @@ restoration and the route transition; its `link` goes on `BasaltProvider` once,
181
199
  (`StatCard href`, `CardAction`, `col.entity`) navigates through the router with no document load.
182
200
  `createQueryClient` is the one `QueryClient` the router context carries. The pending, error and
183
201
  not-found components are yours; a router with no pending component never shows pending, and
184
- `doctor` check 12 fails on it. `Register` is what types `defineNav`, `navTarget` and every
202
+ `doctor` check 12 fails on it. What the entry imports is first-load weight: `Page` and `PageBar` from
203
+ `basalt-ui/page` are about 80 kB gzip and `EmptyState` alone about 8, so the pending screen imports
204
+ nothing from the package and the other two load lazily. `Register` is what types `defineNav`, `navTarget` and every
185
205
  `<Link to>`.
186
206
 
187
207
  <!-- readme-check: skip init writes this route and the nav it imports; the template is tested with the CLI -->
@@ -336,6 +356,11 @@ a filter slot, a custom shell entry, a declared control kind (`defineControlKind
336
356
  it. `sync --check` and `doctor` fail while it is stale, so a new one is a line in the pull request's diff.
337
357
  The one ceiling left in `.basalt/budget.json` is the eject count.
338
358
 
359
+ **An app with screens of its own adopts with a baseline.** `basalt-ui lint --baseline` writes
360
+ `.basalt/baseline.json` once: today's findings, counted per file and rule. Lint and the edit hook then
361
+ report only what goes above a count, `lint --stats` lowers it, and a full lint fails while it holds more
362
+ than is left.
363
+
339
364
  ### Consumer-series extensibility
340
365
 
341
366
  App-specific series colors live in the consumer, authored once in the app's `basalt.tokens.ts`. `init` seeds it at `bridge` and above (`--extra <file>` at `tokens` and `site`), emits `basalt.tokens.css` from it with `tokens:css --extra`, and imports that sheet in the stylesheet entry. The file is import-free, the one place raw color is written, and a pair is `{ light, dark }`:
@@ -499,11 +524,13 @@ arm admits relative image sources. Styling goes on a wrapper element: the root i
499
524
 
500
525
  ### `./vite` — PWA / head metadata (optional peer)
501
526
 
502
- `basalt()` (see [Wire the runtime](#wire-the-runtime) above) needs no install by default — its
503
- `app.serviceWorker` option is the only part with an optional peer, and it's off unless you opt in:
527
+ `basalt()` (see [Wire the runtime](#wire-the-runtime) above) needs no install by default.
528
+ `app.serviceWorker` is off unless you opt in. `'shell'` needs nothing: it emits and registers a worker
529
+ that serves the page and the built assets offline and never touches `/api`. Only the workbox form
530
+ (`true` or an object) has an optional peer:
504
531
 
505
532
  ```bash
506
- bun add -D vite-plugin-pwa workbox-build workbox-window # only if serviceWorker is enabled
533
+ bun add -D vite-plugin-pwa workbox-build workbox-window # only for serviceWorker: true or an object
507
534
  ```
508
535
 
509
536
  Without the peer installed, `serviceWorker: true` degrades to a one-line console warning (no
@@ -577,7 +604,7 @@ strict flags), `react-app` (`base` + DOM/JSX libs) and `node` (`base` + Node typ
577
604
  `tsc` checks every file in the program with the program's options, so a workspace package imported from source is checked under the preset's flags and no compiler option excludes it. Give each package its own tsconfig and link them with TS project references (`references` + `composite: true`), or consume the package's built `.d.ts`.
578
605
 
579
606
  `.oxfmtrc.json` has no `extends` of its own — copy `configs/oxfmt.json` verbatim. `basalt-ui init`
580
- adds the `ignorePatterns` for the managed paths to an existing file and writes a new one when none exists;
607
+ adds the `ignorePatterns` for the managed paths to an existing file and writes a new one when none exists (beside an `oxfmt.config.ts` it prints the lines to add instead);
581
608
  a sibling app's new file copies the repo root's formatter settings (not its `ignorePatterns`).
582
609
 
583
610
  ---
@@ -38,7 +38,7 @@ Every value is a token and the palette is derived, never authored; each bullet n
38
38
 
39
39
  not guarded:
40
40
 
41
- - `auto` means the `data-theme` attribute is absent and the system scheme applies; an explicit choice sets the attribute and is stored under the `basalt:scheme` key. Never write either by hand.
41
+ - `auto` means the `data-theme` attribute is absent and the system scheme applies; an explicit choice sets the attribute and is stored under the `basalt:scheme` key, unless the app passes `persist={false}` (`setScheme` `{ persist: false }`), which sets the attribute only. Never write either by hand.
42
42
  - Radius has no knob in 3.0 (four fixed values, `tokens/table.ts`): never override it locally. Density is the `data-density` attribute (`dense`, `normal`, `comfortable`) on `<html>` or a subtree; never set `--basalt-ctl-h` or `--basalt-row-h` by hand. `basalt()` takes no radius, density or fonts option; the three faces ship in `fonts.css`.
43
43
  - The reader's density, frame and accent are `data-density`, `data-frame` and `data-accent` on `<html>`, written by `setAppearance` (`basalt-ui`) and offered by `AppearanceSwitcher`; never write them or `basalt:appearance` by hand. An accent works only if the app ships it: a `tokens` output in `.basalt/manifest.json` with the flags `--accents violet,teal`, written by `basalt-ui tokens:css --accents violet,teal --out src/accents.css` and imported after `tokens.css`.
44
44
  - A token name you did not see in `basalt-ui/tokens` does not exist; read the generated token list before inventing one.