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
@@ -4,10 +4,11 @@ import { DEFAULT_LOCALE } from "../format/locale.js";
4
4
  import { LinkContext } from "./link.js";
5
5
  import { IntlScope } from "./provider-props.js";
6
6
  const SCHEME_KEY = "basalt:scheme";
7
- function applyScheme(scheme) {
7
+ function applyScheme(scheme, persist) {
8
8
  const root = document.documentElement;
9
9
  if (scheme === "auto") root.removeAttribute("data-theme");
10
10
  else root.setAttribute("data-theme", scheme);
11
+ if (!persist) return;
11
12
  try {
12
13
  localStorage.setItem(SCHEME_KEY, scheme);
13
14
  } catch {
@@ -15,6 +16,7 @@ function applyScheme(scheme) {
15
16
  }
16
17
  function BasaltProvider({
17
18
  scheme,
19
+ persist = true,
18
20
  locale,
19
21
  timeZone,
20
22
  messages,
@@ -24,8 +26,8 @@ function BasaltProvider({
24
26
  children
25
27
  }) {
26
28
  useEffect(() => {
27
- if (scheme !== void 0) applyScheme(scheme);
28
- }, [scheme]);
29
+ if (scheme !== void 0) applyScheme(scheme, persist);
30
+ }, [scheme, persist]);
29
31
  useEffect(() => {
30
32
  document.documentElement.lang = lang;
31
33
  }, [lang]);
@@ -10,7 +10,7 @@ export declare function readScheme(options?: {
10
10
  }): Scheme | undefined;
11
11
  /**
12
12
  * `setScheme('dark' | 'light' | 'auto')` applies, stores the declared key (default `basalt:scheme`)
13
- * and mirrors the declared cookie. `setScheme()` re-reads storage and applies, overriding any attribute: call it after an
13
+ * and mirrors the declared cookie. `{ persist: false }` applies without either write, for an app that keeps its own preference. `setScheme()` re-reads storage and applies, overriding any attribute: call it after an
14
14
  * async restore (same-tab localStorage writes fire no storage event).
15
15
  *
16
16
  * @useWhen a control or a command switches the color scheme, or an async restore must re-apply the stored one
@@ -20,5 +20,6 @@ export declare function readScheme(options?: {
20
20
  export declare function setScheme(value?: Scheme, options?: {
21
21
  cookie?: string;
22
22
  key?: string;
23
+ persist?: boolean;
23
24
  }): void;
24
25
  //# sourceMappingURL=scheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scheme.d.ts","sourceRoot":"","sources":["../../src/core/scheme.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAE9G,eAAO,MAAM,UAAU,kBAAkB,CAAA;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAA;AAE5C,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;AAO9C,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAE5D;AAsBD,uEAAuE;AACvE,wBAAgB,UAAU,CACxB,OAAO,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAO,GAC1D,MAAM,GAAG,SAAS,CAGpB;AAQD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,IAAI,CAqB/F"}
1
+ {"version":3,"file":"scheme.d.ts","sourceRoot":"","sources":["../../src/core/scheme.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAE9G,eAAO,MAAM,UAAU,kBAAkB,CAAA;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAA;AAE5C,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;AAO9C,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAE5D;AAsBD,uEAAuE;AACvE,wBAAgB,UAAU,CACxB,OAAO,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAO,GAC1D,MAAM,GAAG,SAAS,CAGpB;AAQD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CACvB,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GACjE,IAAI,CAsBN"}
@@ -43,6 +43,7 @@ function setScheme(value, options = {}) {
43
43
  return;
44
44
  }
45
45
  apply(value);
46
+ if (options.persist === false) return;
46
47
  try {
47
48
  localStorage.setItem(declaredKey, value);
48
49
  } catch {
@@ -1,15 +1,17 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { MiniBarsProps } from '../mark-types.js';
3
3
  /**
4
- * A row of small marks, one per item, with the state of each: `bars` from a zero baseline, `ticks` of
5
- * equal height (a fleet by state) or `capsules` whose height is the value (each run's duration; an
6
- * item with a tone and no value is a dot). A `tone` on a point is closed to the tone set: `neutral`
4
+ * A row of small marks, one per item, with the state of each: `bars` from a zero baseline, `ticks`, one per
5
+ * item, whose height ranks its state (a fleet by state) or `capsules` whose height is the value (each run's duration; an
6
+ * item with a tone and no value is a dot). A counted zero is a 2 px baseline mark in a firmer ink, so it
7
+ * never reads as a dropped run (a gap, `null`, draws nothing). A `tone` on a point is closed to the tone set: `neutral`
7
8
  * and the `common` one (default `good`) are drawn quiet, every other tone at full strength, so the
8
9
  * exception stands out of the texture. Untoned bars are dim ink with the `highlight` item (default
9
10
  * the last) lit; the lit bar is drawn in the foreground ink, and a host may set `--basalt-spark-now` to recolor it. No
10
11
  * `color`. `sentence` says what the strip shows and is its name; the marks are hidden from it.
11
12
  * Past 120 `bars` each bar stands for a run of items (the `highlight` one first, then an exception
12
- * one), so a count belongs in the sentence; `ticks` and `capsules` draw every item.
13
+ * one), so a count belongs in the sentence; `ticks` and `capsules` draw every item. A tick tells its
14
+ * state by height as well as hue: `neutral` is the shortest, the common tone next, `bad` the full strip.
13
15
  * With `axisLabels` the arrow keys and a pointer walk the items into the middle label; with a
14
16
  * `focus` (`useChartFocus` over the same items) they walk the page's one focus, and the page reads
15
17
  * `focus.readout`. A `StatCard` or a `StatCell` chart slot draws it as it is.
@@ -1 +1 @@
1
- {"version":3,"file":"mini-bars.d.ts","sourceRoot":"","sources":["../../../src/core/spark/mini-bars.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAKzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAkClD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,YAAY,CAE3D;AAED,gGAAgG;AAChG,wBAAgB,YAAY,CAC1B,KAAK,EAAE,aAAa,GAAG;IACrB,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IACvD,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,GACA,YAAY,CAgHd"}
1
+ {"version":3,"file":"mini-bars.d.ts","sourceRoot":"","sources":["../../../src/core/spark/mini-bars.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAKzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AA2DlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,YAAY,CAE3D;AAED,gGAAgG;AAChG,wBAAgB,YAAY,CAC1B,KAAK,EAAE,aAAa,GAAG;IACrB,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IACvD,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,GACA,YAAY,CAiHd"}
@@ -17,15 +17,28 @@ import {
17
17
  import { useMessages } from "../../core/messages/use-messages.js";
18
18
  import { mark } from "../../core/messages/mark.js";
19
19
  const STRIP = {
20
- bars: "justify-center gap-0.75",
21
- ticks: "h-full max-h-4 justify-start gap-0.5",
22
- capsules: "justify-start gap-0.75"
20
+ bars: "justify-center",
21
+ ticks: "h-full max-h-4 justify-start",
22
+ capsules: "justify-start"
23
23
  };
24
+ const GAP_STEP = { bars: 0.75, ticks: 0.5, capsules: 0.75 };
24
25
  const SLOT = {
25
26
  bars: "max-w-6",
26
27
  ticks: "max-w-1",
27
28
  capsules: "max-w-2.5"
28
29
  };
30
+ function gapOf(form, n) {
31
+ return `max(0px, min(calc(var(--basalt-space) * ${GAP_STEP[form]}), calc((100% - ${n}px) / ${Math.max(n - 1, 1)})))`;
32
+ }
33
+ const TICK_HEIGHT = {
34
+ neutral: 40,
35
+ good: 80,
36
+ accent: 80,
37
+ info: 80,
38
+ warn: 80,
39
+ bad: 100
40
+ };
41
+ const TICK_COMMON = 60;
29
42
  const CAPSULE_FLOOR = "min-h-2";
30
43
  function MiniBars(props) {
31
44
  return /* @__PURE__ */ jsx(MiniBarsView, { ...props });
@@ -95,13 +108,14 @@ function MiniBarsView(props) {
95
108
  // A capped bar keeps the room its off-scale caret takes over it.
96
109
  form !== "ticks" && (capped.size === 0 ? "top-0" : "top-1.5")
97
110
  ),
111
+ style: { columnGap: gapOf(form, rows.length) },
98
112
  children: rows.map((row, i) => /* @__PURE__ */ jsxs(
99
113
  "span",
100
114
  {
101
115
  "data-index": i,
102
116
  ...markItem(focus, i),
103
117
  className: cn(
104
- "relative h-full min-w-px flex-1",
118
+ "relative h-full min-w-0 flex-1",
105
119
  SLOT[form],
106
120
  dimsOthers && i !== active && "opacity-40"
107
121
  ),
@@ -152,8 +166,17 @@ function Mark(props) {
152
166
  "data-tone": row.tone,
153
167
  "data-lit": on ? "" : void 0
154
168
  };
155
- if (form === "ticks")
156
- return /* @__PURE__ */ jsx("span", { ...shared, className: cn("absolute inset-0 rounded-full", paint) });
169
+ if (form === "ticks") {
170
+ const pct = tone === common ? TICK_COMMON : TICK_HEIGHT[tone];
171
+ return /* @__PURE__ */ jsx(
172
+ "span",
173
+ {
174
+ ...shared,
175
+ className: cn("absolute inset-x-0 bottom-0 rounded-full", paint),
176
+ style: { height: `${pct}%` }
177
+ }
178
+ );
179
+ }
157
180
  if (form === "capsules") {
158
181
  if (row.v === null) {
159
182
  return row.tone === void 0 ? null : /* @__PURE__ */ jsx(
@@ -177,7 +200,8 @@ function Mark(props) {
177
200
  }
178
201
  );
179
202
  }
180
- if (rect === null || rect.height === 0) return null;
203
+ if (rect === null) return null;
204
+ const zero = rect.height === 0;
181
205
  return /* @__PURE__ */ jsx(
182
206
  "span",
183
207
  {
@@ -185,12 +209,13 @@ function Mark(props) {
185
209
  className: cn(
186
210
  "absolute inset-x-0",
187
211
  // The data end is rounded: the top of a bar above zero, the bottom of one below.
188
- (row.v ?? 0) < 0 ? "rounded-b-[3px]" : "rounded-t-[3px]",
189
- paint ?? (on ? "" : "bg-foreground/34 dark:bg-foreground/38")
212
+ zero ? "h-0.5 rounded-full" : (row.v ?? 0) < 0 ? "rounded-b-[3px]" : "rounded-t-[3px]",
213
+ paint ?? (on ? "" : zero ? "bg-foreground/60 dark:bg-foreground/64" : "bg-foreground/34 dark:bg-foreground/38")
190
214
  ),
191
215
  style: {
192
- top: `${rect.y}%`,
193
- height: `${rect.height}%`,
216
+ // A zero's tick ends on the zero line and never starts above the strip's top edge.
217
+ top: zero ? `max(0px, calc(${rect.y}% - 2px))` : `${rect.y}%`,
218
+ height: zero ? void 0 : `${rect.height}%`,
194
219
  ...on && !toned ? { background: "var(--basalt-spark-now, var(--color-foreground))" } : {}
195
220
  }
196
221
  }
@@ -9,8 +9,8 @@ import type { SparklineProps } from '../mark-types.js';
9
9
  * crosses it to both edges. `cap` holds an outlier on the top edge under an
10
10
  * off-scale caret. `compare` draws a second series in muted ink on the same scale; `threshold` draws a
11
11
  * dashed rule, names it where the plot is 40 px or taller and dots every breach. With a `focus`
12
- * (`useChartFocus` over the same items) the points walk the page's one focus, and a held run (a table row that stands for several points) is a band over them. No `tone`, no `color`
13
- * for the line: the dot is drawn in the foreground ink, and a host may set `--basalt-spark-now` to recolor it. `sentence` says what the line shows and is its name; the drawing is hidden
12
+ * (`useChartFocus` over the same items) the points walk the page's one focus, and a held run (a table row that stands for several points) is a band over them. `tone` paints the line, its area and the now dot in a status tone (default `neutral`, the muted ink);
13
+ * a host may still set `--basalt-spark-now` to recolor the dot. `sentence` says what the line shows and is its name; the drawing is hidden
14
14
  * from it.
15
15
  *
16
16
  * @useWhen a card, a table row or a strip shows the trend of one metric in a small box
@@ -1 +1 @@
1
- {"version":3,"file":"sparkline.d.ts","sourceRoot":"","sources":["../../../src/core/spark/sparkline.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAKzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAuCnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,YAAY,CAE7D;AAED,gGAAgG;AAChG,wBAAgB,aAAa,CAC3B,KAAK,EAAE,cAAc,GAAG;IAAE,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAAE,GAClF,YAAY,CAkSd"}
1
+ {"version":3,"file":"sparkline.d.ts","sourceRoot":"","sources":["../../../src/core/spark/sparkline.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAKzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AA0DnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,YAAY,CAE7D;AAED,gGAAgG;AAChG,wBAAgB,aAAa,CAC3B,KAAK,EAAE,cAAc,GAAG;IAAE,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAAE,GAClF,YAAY,CAqSd"}
@@ -27,6 +27,22 @@ const FILL_CARET_ROOM = 8;
27
27
  const DIMMED = 0.5;
28
28
  const COMPARE_INK = 0.45;
29
29
  const LABELLED_PLOT = 40;
30
+ const SPARK_INK = {
31
+ neutral: "text-muted-foreground",
32
+ accent: "text-brand",
33
+ good: "text-good",
34
+ warn: "text-warn",
35
+ bad: "text-bad",
36
+ info: "text-info"
37
+ };
38
+ const SPARK_NOW = {
39
+ neutral: "var(--color-foreground)",
40
+ accent: "var(--basalt-brand)",
41
+ good: "var(--basalt-good)",
42
+ warn: "var(--basalt-warn)",
43
+ bad: "var(--basalt-bad)",
44
+ info: "var(--basalt-info)"
45
+ };
30
46
  const isFinite = (v) => v !== null && Number.isFinite(v);
31
47
  function Sparkline(props) {
32
48
  return /* @__PURE__ */ jsx(SparklineView, { ...props });
@@ -35,6 +51,7 @@ function SparklineView(props) {
35
51
  const t = useMessages(mark);
36
52
  const { points, height, width, form = "line", reference, cap, axisLabels, format } = props;
37
53
  const { compare, threshold, focus } = props;
54
+ const tone = props.tone ?? "neutral";
38
55
  const gradient = useId().replaceAll(":", "");
39
56
  const { f, fmt } = useSparkFormat(format);
40
57
  const pooled = (series) => focus === void 0 ? pool(series, LINE_CAP, "line") : series;
@@ -122,7 +139,7 @@ function SparklineView(props) {
122
139
  className: "absolute inset-0 size-full overflow-visible text-muted-foreground",
123
140
  children: [
124
141
  form === "area" && /* @__PURE__ */ jsxs(Fragment, { children: [
125
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: gradient, x1: "0", y1: "0", x2: "0", y2: "1", children: [
142
+ /* @__PURE__ */ jsx("defs", { className: SPARK_INK[tone], children: /* @__PURE__ */ jsxs("linearGradient", { id: gradient, x1: "0", y1: "0", x2: "0", y2: "1", children: [
126
143
  /* @__PURE__ */ jsx("stop", { offset: "0", stopColor: "currentColor", stopOpacity: "0.22" }),
127
144
  /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "currentColor", stopOpacity: "0" })
128
145
  ] }) }),
@@ -226,6 +243,8 @@ function SparklineView(props) {
226
243
  "path",
227
244
  {
228
245
  "data-slot": "spark-line",
246
+ "data-tone": tone,
247
+ className: SPARK_INK[tone],
229
248
  d: g.line,
230
249
  fill: "none",
231
250
  stroke: "currentColor",
@@ -290,7 +309,7 @@ function SparklineView(props) {
290
309
  style: {
291
310
  left: `${now.x / plotW * 100}%`,
292
311
  top: `${now.y / plotH * 100}%`,
293
- background: "var(--basalt-spark-now, var(--color-foreground))"
312
+ background: `var(--basalt-spark-now, ${SPARK_NOW[tone]})`
294
313
  }
295
314
  }
296
315
  )
@@ -0,0 +1,63 @@
1
+ /* @generated basalt-ui — do not edit; regenerate with the command on the next line */
2
+ /* basalt-ui 3.0.0 — `bun packages/basalt-ui/src/css/generate.ts` */
3
+ /* Opt-in, imported after tailwind.css (or static.css): the Tailwind scale names the basalt theme
4
+ clears (sm, lg and 2xl; radius; shadow; text-xl and up) and the shadcn color names. md and xl stay
5
+ 840px and 1200px. primary becomes the brand fill, for basalt parts too: brand text is text-brand. */
6
+ @theme {
7
+ --breakpoint-sm: 640px;
8
+ --breakpoint-lg: 1024px;
9
+ --breakpoint-2xl: 1536px;
10
+ --radius: var(--basalt-radius-chip);
11
+ --radius-xs: var(--basalt-radius-chip);
12
+ --radius-sm: var(--basalt-radius-chip);
13
+ --radius-md: var(--basalt-radius-chip);
14
+ --radius-lg: var(--basalt-radius-ctrl);
15
+ --radius-xl: var(--basalt-radius-card);
16
+ --radius-2xl: var(--basalt-radius-card);
17
+ --radius-3xl: var(--basalt-radius-card);
18
+ --radius-4xl: calc(infinity * 1px);
19
+ --text-xl: 1.25rem;
20
+ --text-xl--line-height: calc(1.75 / 1.25);
21
+ --text-2xl: 1.5rem;
22
+ --text-2xl--line-height: calc(2 / 1.5);
23
+ --text-3xl: 1.875rem;
24
+ --text-3xl--line-height: calc(2.25 / 1.875);
25
+ --text-4xl: 2.25rem;
26
+ --text-4xl--line-height: calc(2.5 / 2.25);
27
+ --text-5xl: 3rem;
28
+ --text-5xl--line-height: 1;
29
+ --text-6xl: 3.75rem;
30
+ --text-6xl--line-height: 1;
31
+ --text-7xl: 4.5rem;
32
+ --text-7xl--line-height: 1;
33
+ --text-8xl: 6rem;
34
+ --text-8xl--line-height: 1;
35
+ --text-9xl: 8rem;
36
+ --text-9xl--line-height: 1;
37
+ }
38
+ @theme inline {
39
+ --shadow: var(--basalt-shadow-raised);
40
+ --shadow-2xs: var(--basalt-shadow-raised);
41
+ --shadow-xs: var(--basalt-shadow-raised);
42
+ --shadow-sm: var(--basalt-shadow-raised);
43
+ --shadow-md: var(--basalt-shadow-overlay);
44
+ --shadow-lg: var(--basalt-shadow-overlay);
45
+ --shadow-xl: var(--basalt-shadow-overlay);
46
+ --shadow-2xl: var(--basalt-shadow-overlay);
47
+ --color-primary: var(--basalt-brand-fill);
48
+ --color-primary-foreground: var(--basalt-on-brand);
49
+ --color-card-foreground: var(--basalt-ink);
50
+ --color-popover-foreground: var(--basalt-ink);
51
+ --color-secondary-foreground: var(--basalt-ink);
52
+ --color-accent-foreground: var(--basalt-ink);
53
+ --color-destructive-foreground: var(--basalt-canvas);
54
+ --color-sidebar: var(--basalt-card);
55
+ --color-sidebar-foreground: var(--basalt-ink);
56
+ --color-sidebar-primary: var(--basalt-brand-fill);
57
+ --color-sidebar-primary-foreground: var(--basalt-on-brand);
58
+ --color-sidebar-accent: var(--basalt-hover);
59
+ --color-sidebar-accent-foreground: var(--basalt-ink);
60
+ --color-sidebar-border: var(--basalt-hairline);
61
+ --color-sidebar-ring: var(--basalt-brand);
62
+ --font-heading: var(--basalt-font-head);
63
+ }
@@ -1,5 +1,5 @@
1
1
  import type { MotionPresetName } from '../tokens/motion.js';
2
- export type CssFileName = 'tokens.css' | 'typography.css' | 'prose.css' | 'fonts.css' | 'tailwind.css' | 'static.css' | 'starlight.css' | 'archify.css';
2
+ export type CssFileName = 'tokens.css' | 'typography.css' | 'prose.css' | 'fonts.css' | 'tailwind.css' | 'static.css' | 'starlight.css' | 'archify.css' | 'bridge.css';
3
3
  /**
4
4
  * The enter presets as CSS: each preset's keyframes start where `MOTION_ENTER_FROM` says and end on the
5
5
  * element's own style (`both` fill), and each animation reads the motion tokens. The keyframes exist only
@@ -19,6 +19,6 @@ export declare const ENTER_KEYFRAMES: string;
19
19
  */
20
20
  export declare const ARCHIFY_CATEGORIES: readonly [readonly ["frontend", "chart-1"], readonly ["backend", "chart-3"], readonly ["database", "chart-4"], readonly ["cloud", "chart-2"], readonly ["messagebus", "chart-5"], readonly ["security", "bad"], readonly ["external", "line"]];
21
21
  export declare const ARCHIFY_VARS: Readonly<Record<string, string>>;
22
- /** The eight CSS entries, byte for byte as committed. */
22
+ /** The nine CSS entries, byte for byte as committed. */
23
23
  export declare function generateCss(): Record<CssFileName, string>;
24
24
  //# sourceMappingURL=generate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/css/generate.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,MAAM,MAAM,WAAW,GACnB,YAAY,GACZ,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,cAAc,GACd,YAAY,GACZ,eAAe,GACf,aAAa,CAAA;AAiCjB;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAIvE,CAAA;AAUD,eAAO,MAAM,eAAe,QAUrB,CAAA;AAuLP;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,gPAQrB,CAAA;AAEV,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4BzD,CAAA;AAkBD,yDAAyD;AACzD,wBAAgB,WAAW,IAAI,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAWzD"}
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/css/generate.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,MAAM,MAAM,WAAW,GACnB,YAAY,GACZ,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,cAAc,GACd,YAAY,GACZ,eAAe,GACf,aAAa,GACb,YAAY,CAAA;AAiChB;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAIvE,CAAA;AAUD,eAAO,MAAM,eAAe,QAUrB,CAAA;AAuLP;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,gPAQrB,CAAA;AAEV,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4BzD,CAAA;AA8CD,wDAAwD;AACxD,wBAAgB,WAAW,IAAI,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAYzD"}
@@ -2,6 +2,13 @@ import { readFileSync, writeFileSync } from "node:fs";
2
2
  import { join } from "node:path";
3
3
  import { emitTokensCss, provenanceHeader } from "../tokens/emit.js";
4
4
  import { bridgeEntries, resolveTokens } from "../tokens/table.js";
5
+ import {
6
+ BRIDGE_BREAKPOINTS,
7
+ BRIDGE_COLORS,
8
+ BRIDGE_RADII,
9
+ BRIDGE_SHADOWS,
10
+ BRIDGE_TYPE_STEPS
11
+ } from "../tokens/bridge-sheet.js";
5
12
  import { MOTION_ENTER_FROM } from "../tokens/motion.js";
6
13
  import { SITE_TEXT_STEPS } from "../tokens/site-text.js";
7
14
  const CONTRACT_VERSION = "3.0.0";
@@ -179,11 +186,29 @@ const archifyCss = () => header() + '/* An archify diagram: put data-preset="bas
179
186
  "[data-preset='basalt']",
180
187
  Object.entries(ARCHIFY_VARS).map(([name, value]) => decl(name, value)).join("")
181
188
  );
189
+ const scaled = (namespace, values) => Object.entries(values).map(
190
+ ([step, value]) => `--${namespace}${step === "" ? "" : `-${step}`}: ${value}`
191
+ );
192
+ const bridgeCss = () => header() + "/* Opt-in, imported after tailwind.css (or static.css): the Tailwind scale names the basalt theme\n clears (sm, lg and 2xl; radius; shadow; text-xl and up) and the shadcn color names. md and xl stay\n 840px and 1200px. primary becomes the brand fill, for basalt parts too: brand text is text-brand. */\n" + block("@theme", [
193
+ ...scaled("breakpoint", BRIDGE_BREAKPOINTS),
194
+ ...scaled("radius", BRIDGE_RADII),
195
+ ...Object.entries(BRIDGE_TYPE_STEPS).flatMap(([step, [size, lineHeight]]) => [
196
+ `--text-${step}: ${size}`,
197
+ `--text-${step}--line-height: ${lineHeight}`
198
+ ])
199
+ ]) + block("@theme inline", [
200
+ ...scaled("shadow", BRIDGE_SHADOWS),
201
+ ...Object.entries(BRIDGE_COLORS).map(
202
+ ([name, token]) => `--color-${name}: var(--basalt-${token})`
203
+ ),
204
+ "--font-heading: var(--basalt-font-head)"
205
+ ]);
182
206
  const staticCss = () => tailwindCss("static");
183
207
  const starlightCss = () => header() + template("starlight");
184
208
  function generateCss() {
185
209
  return {
186
210
  "archify.css": archifyCss(),
211
+ "bridge.css": bridgeCss(),
187
212
  "tokens.css": emitTokensCss({ version: CONTRACT_VERSION }),
188
213
  "typography.css": typographyCss(),
189
214
  "prose.css": proseCss(),
@@ -21,7 +21,7 @@ export type Freshness = 'static' | 'standard' | {
21
21
  } | {
22
22
  class: 'pushed';
23
23
  fallback: number;
24
- safety: number;
24
+ safety: number | false;
25
25
  };
26
26
  /** The shape `liveQuery` reads and returns: any `queryOptions()` result satisfies it. */
27
27
  export type QueryOptionsLike = {
@@ -37,7 +37,7 @@ export type QueryOptionsLike = {
37
37
  * `{ class: 'pushed', fallback, safety }` (objects).
38
38
  * A ticker runs `every` after the previous result, skips while hidden (unless `background`),
39
39
  * offline, mutating (`pauseWhileMutating`) or after a 401/403, and a function `every` returning
40
- * `false` means idle (staleness 30 s, not 0). Needs a client from `createQueryClient`.
40
+ * `false` means idle (staleness 30 s, not 0). A `pushed` query polls at `fallback` while the stream is down and at `safety` while it is live; `safety: false` never polls while live. Needs a client from `createQueryClient`.
41
41
  *
42
42
  * @useWhen a query is polled, pushed, cross-device or static and its cadence belongs in the factory, not the component
43
43
  * @neverWhen an observer would set its own `staleTime` or `refetchInterval`; the class owns both
@@ -1 +1 @@
1
- {"version":3,"file":"live-query.d.ts","sourceRoot":"","sources":["../../../src/data/live/live-query.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAWzE,KAAK,QAAQ,GAAG,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;AACxD,KAAK,OAAO,GAAG,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,GAAG,KAAK,CAAC,CAAA;AAE7D,MAAM,MAAM,SAAS,GACjB,QAAQ,GACR,UAAU,GACV;IACE,KAAK,EAAE,QAAQ,CAAA;IACf,oFAAoF;IACpF,KAAK,EAAE,OAAO,CA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AI,CAAA;IACjB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,IAAI,CAAA;CAChB,GACD;IAAE,KAAK,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAA;CAAE,CAAA;AAEjE,yFAAyF;AACzF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAC3C,CAAA;AAyHD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,gBAAgB,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,GAAG,CAAC,CA8BzF"}
@@ -48,7 +48,8 @@ function planOf(freshness) {
48
48
  if (freshness.class === "pushed") {
49
49
  const { fallback, safety } = freshness;
50
50
  return {
51
- staleTime: safety,
51
+ // `false` polls nothing while the stream is live; Query reads a `false` staleTime as 0, so it takes `fallback`.
52
+ staleTime: safety === false ? fallback : safety,
52
53
  refetchInterval: (query) => skipsTimer(query, "pushed") ? false : isStreamLive(query) ? safety : fallback,
53
54
  refetchOnWindowFocus: true,
54
55
  live: { class: "pushed" }
@@ -44,7 +44,7 @@ export declare function holdsReactRules(manifest: {
44
44
  */
45
45
  export declare function isManagedRuleId(id: string, react?: boolean, translated?: boolean): boolean;
46
46
  /** The npm specifiers oxlint loads as JS plugins; the shipped file extends from a consumer's tree. */
47
- export declare const JS_PLUGINS: readonly ["basalt-ui/lint", "@shadcn/lint"];
47
+ export declare const JS_PLUGINS: readonly ["basalt-ui/lint", "basalt-ui/lint/shadcn"];
48
48
  /** `no-restyle` recognises primitives by import specifier: basalt's own at parts and app. */
49
49
  export declare const PARTS_COMPONENT_IMPORTS: readonly ["^basalt-ui/ui/"];
50
50
  /** At bridge it recognises only the app's own `components/ui` (zone V is where they live). */
@@ -96,6 +96,12 @@ export type PresetInputs = {
96
96
  readonly profile: PresetProfile;
97
97
  /** `manifest.roots`: a path to the profile its files lint at (E6). */
98
98
  readonly roots?: Readonly<Record<string, PresetProfile>>;
99
+ /**
100
+ * The preset applies to `roots` only: the top level turns every rule it owns off, and each root
101
+ * (one at the default profile too) switches its profile's rules on through an override. Server, CLI
102
+ * and test code beside the app then stays on the base. Unset, the default profile covers every file.
103
+ */
104
+ readonly scoped?: boolean;
99
105
  /** Zone E: `manifest.ejected[*].path`. */
100
106
  readonly ejected?: readonly string[];
101
107
  /** Zone S: seeds, in basalt-ui's own repo only. */
@@ -104,6 +110,8 @@ export type PresetInputs = {
104
110
  readonly bespoke?: readonly string[];
105
111
  /** The manifest declares two or more `locales`: the literal-text guards run. */
106
112
  readonly translated?: boolean;
113
+ /** `manifest.wordModules`: a site root's words modules, where the literal-text guards stand down. */
114
+ readonly wordModules?: readonly string[];
107
115
  /** `manifest.classPrefixes`: third-party class prefixes (`maplibregl-`) `no-unknown-classes` lets through. */
108
116
  readonly classPrefixes?: readonly string[];
109
117
  };
@@ -151,7 +159,8 @@ export declare const ruleSettings: (uiSlots: Readonly<Record<string, readonly st
151
159
  export declare function rulesFor(profile: PresetProfile, inputs: PresetInputs): Rules;
152
160
  /**
153
161
  * The preset for a manifest: the default profile's rules at the top, one `overrides` block per
154
- * root whose profile differs (E6), then the zone blocks. `undefined` when every file lints at
162
+ * root whose profile differs (E6), then the zone blocks. With `scoped` the top level holds every rule
163
+ * off and each root, one at the default profile too, carries its rules in its own block. `undefined` when every file lints at
155
164
  * `tokens`: that profile ships no oxlint preset.
156
165
  */
157
166
  export declare function buildPreset(inputs: PresetInputs): PresetConfig | undefined;
@@ -178,7 +187,7 @@ export declare function overBase(preset: PresetConfig, base: string): PresetConf
178
187
  * It extends the `basalt-config` base, so the shared correctness rules sit under the React and design
179
188
  * rules; the preset `sync` writes into an app takes the same base through `overBase`.
180
189
  */
181
- export declare const shippedPreset: (profile: (typeof SHIPPED_PROFILES)[number], inputs: Omit<PresetInputs, "profile" | "roots" | "ejected" | "seeds" | "bespoke">) => PresetConfig;
190
+ export declare const shippedPreset: (profile: (typeof SHIPPED_PROFILES)[number], inputs: Omit<PresetInputs, "profile" | "roots" | "ejected" | "seeds" | "bespoke" | "wordModules">) => PresetConfig;
182
191
  /** The class-merge helpers whose arguments `sortTailwindcss` reorders (the table's class contexts). */
183
192
  export declare const SORTED_FUNCTIONS: readonly ["cn", "clsx", "cx", "cva"];
184
193
  /** The oxfmt options the package's formatter preset starts from. */
@@ -1 +1 @@
1
- {"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../src/lint/preset.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAW,SAAS,EAAE,MAAM,cAAc,CAAA;AAItD,0FAA0F;AAC1F,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAA;AAC1E,eAAO,MAAM,gBAAgB,6CAKU,CAAA;AAEvC,8DAA8D;AAC9D,eAAO,MAAM,kBAAkB,uHAMrB,CAAA;AACV,eAAO,MAAM,cAAc,eAAe,CAAA;AAE1C;;;;GAIG;AACH,eAAO,MAAM,WAAW,0OAUd,CAAA;AAEV;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAMhF,CAAA;AAED,iGAAiG;AACjG,eAAO,MAAM,iBAAiB,0BAA0B,CAAA;AAExD,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAMlE,CAAA;AAED,+EAA+E;AAC/E,eAAO,MAAM,YAAY,GAAI,UAAU;IAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAAG,IAAI,KAA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MAAM,YAAY,GAAI,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;;;;;;;CAG/E,CAAA;AA6DF,mGAAmG;AACnG,wBAAgB,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,GAAG,KAAK,CAc5E;AAqID;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,GAAG,SAAS,CAkD1E;AAKD;;;;GAIG;AACH,eAAO,MAAM,WAAW,oCAAoC,CAAA;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,0DAA0D,CAAA;AAEtF;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAYzE;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,GACxB,SAAS,CAAC,OAAO,gBAAgB,EAAE,MAAM,CAAC,EAC1C,QAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,CAAC,KAChG,YAIF,CAAA;AAID,uGAAuG;AACvG,eAAO,MAAM,gBAAgB,sCAAuC,CAAA;AAEpE,oEAAoE;AACpE,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;AAEzD,sFAAsF;AACtF,eAAO,MAAM,WAAW,GAAI,MAAM,SAAS,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAGlE,CAAA"}
@@ -60,7 +60,7 @@ const isReactRule = (name) => REACT_RULES.includes(name);
60
60
  const coreRuleName = (id) => id.replace(/^eslint\//, "").replace(/^react-hooks\//, "react/");
61
61
  const CORE_PROFILES = ["parts", "app"];
62
62
  const SHADCN_RULES = [...SHADCN_TOKEN_RULES, SHADCN_RESTYLE];
63
- const JS_PLUGINS = ["basalt-ui/lint", "@shadcn/lint"];
63
+ const JS_PLUGINS = ["basalt-ui/lint", "basalt-ui/lint/shadcn"];
64
64
  const PARTS_COMPONENT_IMPORTS = ["^basalt-ui/ui/"];
65
65
  const BRIDGE_COMPONENT_IMPORTS = ["(?:^|/)components/ui(?:/|$)"];
66
66
  const SITE_COMPONENT_IMPORTS = ["^basalt-ui/(?:ui/|static(?:/|$))"];
@@ -269,6 +269,12 @@ function rulesFor(profile, inputs) {
269
269
  }
270
270
  const offAll = (names) => Object.fromEntries(names.map((n) => [n, "off"]));
271
271
  const literalsOff = (inputs) => inputs.translated === true ? { [JSX_LITERALS_RULE]: "off" } : {};
272
+ function wordModuleZone(files) {
273
+ return {
274
+ files: [...files],
275
+ rules: { [JSX_LITERALS_RULE]: "off", [`${PLUGIN_NAME}/label-literal`]: "off" }
276
+ };
277
+ }
272
278
  function structureZone(files, inputs) {
273
279
  const input = presetInput(inputs.table);
274
280
  const names = [.../* @__PURE__ */ new Set([...input.zonesOff.ejected, ...input.zonesOff.seed])];
@@ -294,7 +300,10 @@ function vendoredZone(files, inputs) {
294
300
  }
295
301
  };
296
302
  }
297
- const rootGlob = (root) => `${root.replace(/\/+$/, "")}/**`;
303
+ const rootGlob = (root) => {
304
+ const clean = root.replace(/\/+$/, "");
305
+ return clean === "." || clean === "" ? "**" : `${clean}/**`;
306
+ };
298
307
  function profileOfPath(path, inputs) {
299
308
  const own = Object.entries(inputs.roots ?? {}).filter(
300
309
  ([root]) => root === "." || path === root || path.startsWith(`${root.replace(/\/+$/, "")}/`)
@@ -335,22 +344,33 @@ const ROUTE_FILE_OVERRIDE = {
335
344
  files: ["**/routes/**"],
336
345
  rules: { "react/only-export-components": "off" }
337
346
  };
347
+ const depth = (root) => root === "." ? 0 : root.split("/").length;
338
348
  function buildPreset(inputs) {
339
349
  const roots = Object.entries(inputs.roots ?? {});
340
350
  const profiles = [inputs.profile, ...roots.map(([, profile]) => profile)];
341
351
  if (profiles.every((profile) => profile === "tokens")) return void 0;
342
352
  const overrides = [ROUTE_FILE_OVERRIDE];
343
- if (BRIDGE_LIKE.includes(inputs.profile)) overrides.push(vendoredZone(VENDORED_GLOB, inputs));
344
- for (const [root, profile] of roots) {
345
- if (profile !== inputs.profile) {
353
+ const scoped = inputs.scoped === true;
354
+ if (!scoped && BRIDGE_LIKE.includes(inputs.profile))
355
+ overrides.push(vendoredZone(VENDORED_GLOB, inputs));
356
+ const ordered = scoped ? roots.toSorted(([a], [b]) => depth(a) - depth(b)) : roots;
357
+ const rootZone = (root) => vendoredZone(`${rootGlob(root)}/components/ui/**`, inputs);
358
+ for (const [root, profile] of ordered) {
359
+ if (scoped || profile !== inputs.profile) {
346
360
  overrides.push({ files: [rootGlob(root)], rules: rulesFor(profile, inputs) });
347
361
  }
362
+ if (scoped && BRIDGE_LIKE.includes(profile)) overrides.push(rootZone(root));
363
+ }
364
+ if (!scoped) {
365
+ for (const [root, profile] of roots) {
366
+ if (BRIDGE_LIKE.includes(profile)) overrides.push(rootZone(root));
367
+ }
348
368
  }
349
- for (const [root, profile] of roots) {
350
- if (BRIDGE_LIKE.includes(profile))
351
- overrides.push(vendoredZone(`${rootGlob(root)}/components/ui/**`, inputs));
369
+ if (inputs.translated === true) {
370
+ overrides.push({ files: TEST_GLOBS, rules: literalsOff(inputs) });
371
+ const words = inputs.wordModules ?? [];
372
+ if (words.length > 0) overrides.push(wordModuleZone(words));
352
373
  }
353
- if (inputs.translated === true) overrides.push({ files: TEST_GLOBS, rules: literalsOff(inputs) });
354
374
  overrides.push(...bespokeZones(inputs.bespoke ?? [], inputs));
355
375
  const ejected = inputs.ejected ?? [];
356
376
  if (ejected.length > 0) overrides.push(...ejectedZones(ejected, inputs));
@@ -363,7 +383,7 @@ function buildPreset(inputs) {
363
383
  ...ruleSettings(inputs.uiSlots),
364
384
  basalt: { pins: { oxlint: inputs.pins.oxlint, "@shadcn/lint": inputs.pins.shadcnLint } }
365
385
  },
366
- rules: { ...rulesFor(inputs.profile, inputs), ...A11Y_OFF },
386
+ rules: { ...scoped ? allOff(inputs) : rulesFor(inputs.profile, inputs), ...A11Y_OFF },
367
387
  overrides
368
388
  };
369
389
  }
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/lint/rules/class/table.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,EAEL,eAAe,EACf,cAAc,EACd,iBAAiB,EAKjB,cAAc,EAGf,MAAM,UAAU,CAAA;AA2HjB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0ZtB,CAAA"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/lint/rules/class/table.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,EAEL,eAAe,EACf,cAAc,EACd,iBAAiB,EAKjB,cAAc,EAGf,MAAM,UAAU,CAAA;AA2HjB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4ZtB,CAAA"}
@@ -362,7 +362,9 @@ const CLASS_RULES = defineRules({
362
362
  id: "off-scale",
363
363
  // A duration or delay that is not a scale step (`duration-300`, `delay-[120ms]`), or an
364
364
  // easing that is not the stylesheet's (`ease-linear`, `ease-in`, `ease-[…]`), with or without variants.
365
- pattern: /(?:^|:)!?(?:(?:duration|delay)-(?!(?:fast|base|slow|0)!?$)|ease-(?:(?:linear|in-out|in|out)(?![\w-])|[[(]))/,
365
+ // A duration needs a value shape (a number, `[…]`, `(…)`, `${…}`, `initial`): the walker also reads
366
+ // class-shaped strings in constants, where a data id such as `duration-bands` is no class.
367
+ pattern: /(?:^|:)!?(?:(?:duration|delay)-(?!0!?$)(?:\d|[[(]|\$\{|initial!?$)|ease-(?:(?:linear|in-out|in|out)(?![\w-])|[[(]))/,
366
368
  fix: "Duration and delay from the motion scale: duration-fast, duration-base, duration-slow, duration-0; easing from ease-standard, ease-enter, ease-exit; the stagger utility for a list",
367
369
  next: "A cva variant over those steps, or a reasoned waiver",
368
370
  fixture: "class/motion-off-scale/off-scale.tsx"
@@ -110,7 +110,7 @@ function someDescendant(root, test) {
110
110
  const outsideHome = {
111
111
  id: "outside-home",
112
112
  fix: "Put the control in a home: FormField (or f.FormField from basalt-ui/form), FilterSet, ViewTabs or ControlHome around it, or filterSlot.custom(handle, label, render) over a field handle",
113
- next: 'A value that lives as long as its dialog is useLocalControl(...) bound through FormField control= or a handle prop; a panel-local value of another store takes <ControlHome home="..."> with externalField; a counted line waiver names why no home fits',
113
+ next: 'A value that lives as long as its dialog is useLocalControl(...) bound through FormField control= or a handle prop; a panel-local value of another store takes <ControlHome home="..."> with externalField; a control that sends a request and stores nothing (a volume sent on release) takes <ControlHome home="command">; a counted line waiver names why no home fits',
114
114
  fixture: "control-home/outside-home.tsx",
115
115
  detect: ({ report }) => {
116
116
  const controls = /* @__PURE__ */ new Set();
@@ -1 +1 @@
1
- {"version":3,"file":"import-boundary.d.ts","sourceRoot":"","sources":["../../../../src/lint/rules/structure/import-boundary.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAW,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;EASjB,CAAA;AAEV,6FAA6F;AAC7F,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,CAmB9C,CAAA;AAEF,uFAAuF;AACvF,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAA8B,CAAA;AA6Q3E;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAuDjD,CAAA;AAyWF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,KAAK,MAAM,KAAG,OAGK,CAAA;AAwXpD,eAAO,MAAM,eAAe,EAAE,SAU7B,CAAA;AAED,eAAO,MAAM,mBAAmB;;EAAsD,CAAA"}
1
+ {"version":3,"file":"import-boundary.d.ts","sourceRoot":"","sources":["../../../../src/lint/rules/structure/import-boundary.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAW,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;EASjB,CAAA;AAEV,6FAA6F;AAC7F,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,CAmB9C,CAAA;AAEF,uFAAuF;AACvF,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAA8B,CAAA;AA6Q3E;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAwDjD,CAAA;AAyWF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,KAAK,MAAM,KAAG,OAGK,CAAA;AAyXpD,eAAO,MAAM,eAAe,EAAE,SAU7B,CAAA;AAED,eAAO,MAAM,mBAAmB;;EAAsD,CAAA"}