basalt-ui 2.29.0 → 3.0.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 (5020) hide show
  1. package/AGENTS.md +67 -108
  2. package/CHANGELOG.md +41 -0
  3. package/MIGRATING.md +1634 -6569
  4. package/README.md +373 -505
  5. package/agent/reviewer/basalt-design-reviewer.md +33 -0
  6. package/agent/reviewer/basalt-site-reviewer.md +27 -0
  7. package/agent/reviewer/rubric-site.md +98 -0
  8. package/agent/reviewer/rubric.md +140 -0
  9. package/agent/rules/basalt-charts.md +25 -23
  10. package/agent/rules/basalt-page.md +60 -0
  11. package/agent/rules/basalt-site.md +35 -0
  12. package/agent/rules/basalt-state.md +37 -30
  13. package/agent/rules/basalt-tokens.md +25 -37
  14. package/agent/rules/basalt-ui.md +45 -0
  15. package/agent/skills/basalt-app/SKILL.md +59 -274
  16. package/agent/skills/basalt-app/references/live.md +112 -0
  17. package/agent/skills/basalt-app/references/migrate.md +111 -0
  18. package/agent/skills/basalt-app/references/performance.md +69 -0
  19. package/agent/skills/basalt-app/references/recipes.md +50 -0
  20. package/agent/skills/basalt-app/references/setup.md +101 -0
  21. package/agent/skills/basalt-app/references/testing.md +35 -0
  22. package/agent/skills/basalt-charts/SKILL.md +18 -32
  23. package/agent/skills/basalt-charts/references/advanced.md +43 -0
  24. package/agent/skills/basalt-charts/references/custom-marks.md +80 -0
  25. package/agent/skills/basalt-charts/references/linked-parts.md +83 -0
  26. package/agent/skills/basalt-design/SKILL.md +46 -25
  27. package/agent/skills/basalt-design/references/ai.md +64 -0
  28. package/agent/skills/basalt-design/references/anti-defaults.md +54 -18
  29. package/agent/skills/basalt-design/references/cards.md +73 -0
  30. package/agent/skills/basalt-design/references/chart-color.md +30 -0
  31. package/agent/skills/basalt-design/references/chart-form.md +43 -0
  32. package/agent/skills/basalt-design/references/chart-honest.md +35 -0
  33. package/agent/skills/basalt-design/references/chart-labels.md +32 -0
  34. package/agent/skills/basalt-design/references/chart-view.md +40 -0
  35. package/agent/skills/basalt-design/references/charts.md +15 -0
  36. package/agent/skills/basalt-design/references/concept.md +55 -27
  37. package/agent/skills/basalt-design/references/controls.md +28 -0
  38. package/agent/skills/basalt-design/references/copy.md +65 -0
  39. package/agent/skills/basalt-design/references/encoding.md +87 -0
  40. package/agent/skills/basalt-design/references/forms.md +70 -0
  41. package/agent/skills/basalt-design/references/gaps.md +54 -0
  42. package/agent/skills/basalt-design/references/ladder.md +60 -0
  43. package/agent/skills/basalt-design/references/motion.md +73 -0
  44. package/agent/skills/basalt-design/references/parts.md +199 -0
  45. package/agent/skills/basalt-design/references/phone.md +53 -0
  46. package/agent/skills/basalt-design/references/state.md +40 -0
  47. package/agent/skills/basalt-design/references/states.md +30 -27
  48. package/agent/skills/basalt-design/references/table.md +141 -0
  49. package/agent/skills/basalt-site/SKILL.md +43 -0
  50. package/agent/skills/basalt-site/references/content.md +37 -0
  51. package/agent/templates/AGENTS-block.md.tpl +18 -21
  52. package/agent/templates/AGENTS-block.site.md.tpl +28 -0
  53. package/agent/templates/AGENTS-block.tokens.md.tpl +15 -0
  54. package/agent/templates/DESIGN.md.tpl +22 -31
  55. package/agent/templates/__root.start.tpl +64 -0
  56. package/agent/templates/__root.tpl +9 -18
  57. package/agent/templates/_app-error.i18n.tpl +69 -0
  58. package/agent/templates/_app-error.tpl +67 -0
  59. package/agent/templates/_app-index.i18n.tpl +27 -0
  60. package/agent/templates/_app-index.tpl +24 -0
  61. package/agent/templates/_app-missing.i18n.tpl +35 -0
  62. package/agent/templates/_app-missing.tpl +32 -0
  63. package/agent/templates/_app-pending.i18n.tpl +17 -0
  64. package/agent/templates/_app-pending.tpl +15 -0
  65. package/agent/templates/_app.tpl +23 -0
  66. package/agent/templates/basalt.tokens.ts.tpl +15 -0
  67. package/agent/templates/e2e-app.spec.ts.tpl +11 -0
  68. package/agent/templates/hook-opencode.js.tpl +42 -0
  69. package/agent/templates/hook-pi.js.tpl +45 -0
  70. package/agent/templates/hook-run.js.tpl +52 -0
  71. package/agent/templates/hook.mjs.tpl +45 -0
  72. package/agent/templates/i18n.ts.tpl +78 -0
  73. package/agent/templates/lingui.config.ts.tpl +18 -0
  74. package/agent/templates/localized-provider.tsx.tpl +42 -0
  75. package/agent/templates/main.i18n.tpl +59 -0
  76. package/agent/templates/main.tpl +42 -9
  77. package/agent/templates/nav.i18n.tpl +23 -0
  78. package/agent/templates/nav.tpl +12 -10
  79. package/agent/templates/playwright.config.ts.tpl +16 -0
  80. package/agent/templates/po.d.ts.tpl +4 -0
  81. package/agent/templates/router.start.tpl +44 -0
  82. package/agent/templates/seed-messages.json +104 -0
  83. package/agent/templates/site-index.astro.tpl +11 -0
  84. package/agent/templates/site-layout.astro.tpl +28 -0
  85. package/bin/basalt-ui.mjs +7 -3
  86. package/blocks/assistant/Assistant.tsx +168 -0
  87. package/blocks/assistant/block.json +23 -0
  88. package/blocks/assistant/model.ts +15 -0
  89. package/blocks/assistant/words.ts +18 -0
  90. package/blocks/create-flow/NewOrderDialog.tsx +300 -0
  91. package/blocks/create-flow/block.json +31 -0
  92. package/blocks/create-flow/model.ts +18 -0
  93. package/blocks/create-flow/words.ts +77 -0
  94. package/blocks/list-page/ListPage.tsx +318 -0
  95. package/blocks/list-page/PartRecord.tsx +142 -0
  96. package/blocks/list-page/block.json +31 -0
  97. package/blocks/list-page/model.ts +49 -0
  98. package/blocks/list-page/words.ts +85 -0
  99. package/blocks/mailbox/Mailbox.tsx +714 -0
  100. package/blocks/mailbox/block.json +34 -0
  101. package/blocks/mailbox/model.ts +39 -0
  102. package/blocks/mailbox/words.ts +60 -0
  103. package/blocks/notes-list/NotesList.tsx +176 -0
  104. package/blocks/notes-list/block.json +23 -0
  105. package/blocks/notes-list/model.ts +16 -0
  106. package/blocks/notes-list/words.ts +38 -0
  107. package/blocks/record-page/RecordPage.tsx +575 -0
  108. package/blocks/record-page/block.json +31 -0
  109. package/blocks/record-page/model.ts +84 -0
  110. package/blocks/record-page/words.ts +106 -0
  111. package/blocks/settings-page/SettingsPage.tsx +372 -0
  112. package/blocks/settings-page/block.json +31 -0
  113. package/blocks/settings-page/model.ts +11 -0
  114. package/blocks/settings-page/words.ts +115 -0
  115. package/configs/check.yml +2 -4
  116. package/configs/lefthook.yml +6 -49
  117. package/configs/oxfmt-tailwind.json +11 -0
  118. package/configs/oxlint-app.json +795 -0
  119. package/configs/oxlint-bridge.json +308 -0
  120. package/configs/oxlint-parts.json +800 -0
  121. package/configs/oxlint-site.json +351 -0
  122. package/configs/stylelint.basalt.json +154 -0
  123. package/dist/ai/caret.d.ts +7 -0
  124. package/dist/ai/caret.d.ts.map +1 -0
  125. package/dist/ai/caret.js +47 -0
  126. package/dist/ai/catalog/block.d.ts +4 -0
  127. package/dist/ai/catalog/block.d.ts.map +1 -0
  128. package/dist/ai/catalog/block.js +87 -0
  129. package/dist/ai/catalog/define.d.ts +53 -0
  130. package/dist/ai/catalog/define.d.ts.map +1 -0
  131. package/dist/ai/catalog/define.js +36 -0
  132. package/dist/ai/catalog/validate.d.ts +24 -0
  133. package/dist/ai/catalog/validate.d.ts.map +1 -0
  134. package/dist/ai/catalog/validate.js +95 -0
  135. package/dist/ai/composer.d.ts +74 -0
  136. package/dist/ai/composer.d.ts.map +1 -0
  137. package/dist/ai/composer.js +423 -0
  138. package/dist/ai/contract.d.ts +162 -0
  139. package/dist/ai/contract.d.ts.map +1 -0
  140. package/dist/ai/glyphs.d.ts +19 -0
  141. package/dist/ai/glyphs.d.ts.map +1 -0
  142. package/dist/ai/glyphs.js +44 -0
  143. package/dist/ai/index.d.ts +23 -0
  144. package/dist/ai/index.d.ts.map +1 -0
  145. package/dist/ai/index.js +16 -0
  146. package/dist/ai/mention-text.d.ts +49 -0
  147. package/dist/ai/mention-text.d.ts.map +1 -0
  148. package/dist/ai/mention-text.js +57 -0
  149. package/dist/ai/message.d.ts +69 -0
  150. package/dist/ai/message.d.ts.map +1 -0
  151. package/dist/ai/message.js +119 -0
  152. package/dist/ai/model-picker.d.ts +42 -0
  153. package/dist/ai/model-picker.d.ts.map +1 -0
  154. package/dist/ai/model-picker.js +98 -0
  155. package/dist/ai/part-view.d.ts +18 -0
  156. package/dist/ai/part-view.d.ts.map +1 -0
  157. package/dist/ai/part-view.js +87 -0
  158. package/dist/ai/reasoning-trace.d.ts +34 -0
  159. package/dist/ai/reasoning-trace.d.ts.map +1 -0
  160. package/dist/ai/reasoning-trace.js +138 -0
  161. package/dist/ai/tool-view.d.ts +30 -0
  162. package/dist/ai/tool-view.d.ts.map +1 -0
  163. package/dist/ai/tool-view.js +29 -0
  164. package/dist/astro/BasaltFonts.astro +32 -0
  165. package/dist/astro/SiteHead.astro +21 -0
  166. package/dist/astro/build.d.ts +17 -0
  167. package/dist/astro/build.d.ts.map +1 -0
  168. package/dist/astro/build.js +69 -0
  169. package/dist/astro/fonts.d.ts +22 -0
  170. package/dist/astro/fonts.d.ts.map +1 -0
  171. package/dist/astro/fonts.js +23 -0
  172. package/dist/astro/head.d.ts +78 -0
  173. package/dist/astro/head.d.ts.map +1 -0
  174. package/dist/astro/head.js +84 -0
  175. package/dist/astro/index.d.ts +76 -0
  176. package/dist/astro/index.d.ts.map +1 -0
  177. package/dist/astro/index.js +111 -0
  178. package/dist/astro/islands.d.ts +22 -0
  179. package/dist/astro/islands.d.ts.map +1 -0
  180. package/dist/astro/islands.js +63 -0
  181. package/dist/astro/mdx/Chart.astro +25 -0
  182. package/dist/astro/mdx/DataTable.astro +27 -0
  183. package/dist/astro/mdx/chart-island.d.ts +60 -0
  184. package/dist/astro/mdx/chart-island.d.ts.map +1 -0
  185. package/dist/astro/mdx/chart-island.js +94 -0
  186. package/dist/astro/mdx/messages.d.ts +9 -0
  187. package/dist/astro/mdx/messages.d.ts.map +1 -0
  188. package/dist/astro/mdx/table-island.d.ts +27 -0
  189. package/dist/astro/mdx/table-island.d.ts.map +1 -0
  190. package/dist/astro/mdx/table-island.js +45 -0
  191. package/dist/astro/notes.d.ts +30 -0
  192. package/dist/astro/notes.d.ts.map +1 -0
  193. package/dist/astro/notes.js +147 -0
  194. package/dist/astro/parts.d.ts +24 -0
  195. package/dist/astro/parts.d.ts.map +1 -0
  196. package/dist/astro/parts.js +492 -0
  197. package/dist/astro/shiki.d.ts +28 -0
  198. package/dist/astro/shiki.d.ts.map +1 -0
  199. package/dist/astro/shiki.js +8 -0
  200. package/dist/astro/sources.d.ts +18 -0
  201. package/dist/astro/sources.d.ts.map +1 -0
  202. package/dist/astro/sources.js +72 -0
  203. package/dist/cards/bar-list-scroll.d.ts +29 -0
  204. package/dist/cards/bar-list-scroll.d.ts.map +1 -0
  205. package/dist/cards/bar-list-scroll.js +53 -0
  206. package/dist/cards/bar-list.d.ts +107 -0
  207. package/dist/cards/bar-list.d.ts.map +1 -0
  208. package/dist/cards/bar-list.js +269 -0
  209. package/dist/cards/board.d.ts +80 -0
  210. package/dist/cards/board.d.ts.map +1 -0
  211. package/dist/cards/board.js +314 -0
  212. package/dist/cards/chain-layout.d.ts +59 -0
  213. package/dist/cards/chain-layout.d.ts.map +1 -0
  214. package/dist/cards/chain-layout.js +211 -0
  215. package/dist/cards/chain-view.d.ts +73 -0
  216. package/dist/cards/chain-view.d.ts.map +1 -0
  217. package/dist/cards/chain-view.js +481 -0
  218. package/dist/cards/contract.d.ts +180 -0
  219. package/dist/cards/contract.d.ts.map +1 -0
  220. package/dist/cards/data-panel.d.ts +54 -0
  221. package/dist/cards/data-panel.d.ts.map +1 -0
  222. package/dist/cards/data-panel.js +351 -0
  223. package/dist/cards/edge-path.d.ts +38 -0
  224. package/dist/cards/edge-path.d.ts.map +1 -0
  225. package/dist/cards/edge-path.js +36 -0
  226. package/dist/cards/event-list-model.d.ts +67 -0
  227. package/dist/cards/event-list-model.d.ts.map +1 -0
  228. package/dist/cards/event-list-model.js +98 -0
  229. package/dist/cards/event-list.d.ts +84 -0
  230. package/dist/cards/event-list.d.ts.map +1 -0
  231. package/dist/cards/event-list.js +358 -0
  232. package/dist/cards/flow-canvas.d.ts +54 -0
  233. package/dist/cards/flow-canvas.d.ts.map +1 -0
  234. package/dist/cards/flow-canvas.js +668 -0
  235. package/dist/cards/flow-checklist.d.ts +25 -0
  236. package/dist/cards/flow-checklist.d.ts.map +1 -0
  237. package/dist/cards/flow-checklist.js +67 -0
  238. package/dist/cards/flow.d.ts +93 -0
  239. package/dist/cards/flow.d.ts.map +1 -0
  240. package/dist/cards/flow.js +45 -0
  241. package/dist/cards/frame-kit.d.ts +67 -0
  242. package/dist/cards/frame-kit.d.ts.map +1 -0
  243. package/dist/cards/frame-kit.js +60 -0
  244. package/dist/cards/frame-types.type-guard.d.ts +17 -0
  245. package/dist/cards/frame-types.type-guard.d.ts.map +1 -0
  246. package/dist/cards/frame-types.type-guard.js +29 -0
  247. package/dist/cards/index.d.ts +41 -0
  248. package/dist/cards/index.d.ts.map +1 -0
  249. package/dist/cards/index.js +49 -0
  250. package/dist/cards/kanban-actions.d.ts +17 -0
  251. package/dist/cards/kanban-actions.d.ts.map +1 -0
  252. package/dist/cards/kanban-actions.js +26 -0
  253. package/dist/cards/kanban-card.d.ts +34 -0
  254. package/dist/cards/kanban-card.d.ts.map +1 -0
  255. package/dist/cards/kanban-card.js +264 -0
  256. package/dist/cards/list-focus.d.ts +76 -0
  257. package/dist/cards/list-focus.d.ts.map +1 -0
  258. package/dist/cards/list-focus.js +212 -0
  259. package/dist/cards/mail-list.d.ts +104 -0
  260. package/dist/cards/mail-list.d.ts.map +1 -0
  261. package/dist/cards/mail-list.js +436 -0
  262. package/dist/cards/mail-thread.d.ts +56 -0
  263. package/dist/cards/mail-thread.d.ts.map +1 -0
  264. package/dist/cards/mail-thread.js +142 -0
  265. package/dist/cards/period-label.d.ts +8 -0
  266. package/dist/cards/period-label.d.ts.map +1 -0
  267. package/dist/cards/period-label.js +27 -0
  268. package/dist/cards/relationship-card.d.ts +67 -0
  269. package/dist/cards/relationship-card.d.ts.map +1 -0
  270. package/dist/cards/relationship-card.js +82 -0
  271. package/dist/cards/row-list.d.ts +98 -0
  272. package/dist/cards/row-list.d.ts.map +1 -0
  273. package/dist/cards/row-list.js +190 -0
  274. package/dist/cards/schedule-model.d.ts +81 -0
  275. package/dist/cards/schedule-model.d.ts.map +1 -0
  276. package/dist/cards/schedule-model.js +80 -0
  277. package/dist/cards/schedule.d.ts +106 -0
  278. package/dist/cards/schedule.d.ts.map +1 -0
  279. package/dist/cards/schedule.js +925 -0
  280. package/dist/cards/stat-card-parts.d.ts +18 -0
  281. package/dist/cards/stat-card-parts.d.ts.map +1 -0
  282. package/dist/cards/stat-card-parts.js +56 -0
  283. package/dist/cards/stat-card.d.ts +37 -0
  284. package/dist/cards/stat-card.d.ts.map +1 -0
  285. package/dist/cards/stat-card.js +234 -0
  286. package/dist/cards/stat-cell.d.ts +56 -0
  287. package/dist/cards/stat-cell.d.ts.map +1 -0
  288. package/dist/cards/stat-cell.js +410 -0
  289. package/dist/cards/stat-group-shared.d.ts +21 -0
  290. package/dist/cards/stat-group-shared.d.ts.map +1 -0
  291. package/dist/cards/stat-group-shared.js +26 -0
  292. package/dist/cards/stat-group.d.ts +44 -0
  293. package/dist/cards/stat-group.d.ts.map +1 -0
  294. package/dist/cards/stat-group.js +183 -0
  295. package/dist/cards/step-rail.d.ts +45 -0
  296. package/dist/cards/step-rail.d.ts.map +1 -0
  297. package/dist/cards/step-rail.js +125 -0
  298. package/dist/cards/viewport.d.ts +66 -0
  299. package/dist/cards/viewport.d.ts.map +1 -0
  300. package/dist/cards/viewport.js +219 -0
  301. package/dist/charts/axis-gaps.d.ts +170 -0
  302. package/dist/charts/axis-gaps.d.ts.map +1 -0
  303. package/dist/charts/axis-gaps.js +310 -0
  304. package/dist/charts/box.d.ts +8 -2
  305. package/dist/charts/box.d.ts.map +1 -1
  306. package/dist/charts/box.js +28 -8
  307. package/dist/charts/canvas.d.ts +45 -0
  308. package/dist/charts/canvas.d.ts.map +1 -0
  309. package/dist/charts/canvas.js +103 -0
  310. package/dist/charts/card-context.d.ts +6 -0
  311. package/dist/charts/card-context.d.ts.map +1 -1
  312. package/dist/charts/card-context.js +5 -0
  313. package/dist/charts/chart-box.module.css +199 -43
  314. package/dist/charts/chart-box.module.css.d.ts +2 -0
  315. package/dist/charts/chart-dates.d.ts +8 -6
  316. package/dist/charts/chart-dates.d.ts.map +1 -1
  317. package/dist/charts/chart-dates.js +21 -6
  318. package/dist/charts/chart-labels-widths.gen.d.ts +22 -0
  319. package/dist/charts/chart-labels-widths.gen.d.ts.map +1 -0
  320. package/dist/charts/chart-labels-widths.gen.js +879 -0
  321. package/dist/charts/chart-labels.d.ts +173 -0
  322. package/dist/charts/chart-labels.d.ts.map +1 -0
  323. package/dist/charts/chart-labels.js +93 -0
  324. package/dist/charts/chart-legend.module.css +50 -5
  325. package/dist/charts/chart-legend.module.css.d.ts +1 -0
  326. package/dist/charts/contract.d.ts +647 -0
  327. package/dist/charts/contract.d.ts.map +1 -0
  328. package/dist/charts/core/axis-ext.d.ts +86 -0
  329. package/dist/charts/core/axis-ext.d.ts.map +1 -0
  330. package/dist/charts/core/axis-ext.js +369 -0
  331. package/dist/charts/core/bar-values.d.ts +44 -0
  332. package/dist/charts/core/bar-values.d.ts.map +1 -0
  333. package/dist/charts/core/bar-values.js +682 -0
  334. package/dist/charts/core/compile.d.ts +258 -0
  335. package/dist/charts/core/compile.d.ts.map +1 -0
  336. package/dist/charts/core/compile.js +2234 -0
  337. package/dist/charts/core/cursor.d.ts +107 -0
  338. package/dist/charts/core/cursor.d.ts.map +1 -0
  339. package/dist/charts/core/cursor.js +249 -0
  340. package/dist/charts/core/curves.d.ts +12 -0
  341. package/dist/charts/core/curves.d.ts.map +1 -0
  342. package/dist/charts/core/curves.js +86 -0
  343. package/dist/charts/core/label-backing.d.ts +29 -0
  344. package/dist/charts/core/label-backing.d.ts.map +1 -0
  345. package/dist/charts/core/label-backing.js +40 -0
  346. package/dist/charts/core/label-ties.d.ts +16 -0
  347. package/dist/charts/core/label-ties.d.ts.map +1 -0
  348. package/dist/charts/core/label-ties.js +62 -0
  349. package/dist/charts/core/plot-context.d.ts +24 -0
  350. package/dist/charts/core/plot-context.d.ts.map +1 -0
  351. package/dist/charts/core/plot-context.js +55 -0
  352. package/dist/charts/core/portal.d.ts +7 -0
  353. package/dist/charts/core/portal.d.ts.map +1 -0
  354. package/dist/charts/core/portal.js +124 -0
  355. package/dist/charts/core/probe/bar.d.ts +2 -0
  356. package/dist/charts/core/probe/bar.d.ts.map +1 -0
  357. package/dist/charts/core/probe/bar.js +23 -0
  358. package/dist/charts/core/probe/base0.d.ts +2 -0
  359. package/dist/charts/core/probe/base0.d.ts.map +1 -0
  360. package/dist/charts/core/probe/base0.js +4 -0
  361. package/dist/charts/core/probe/line.d.ts +2 -0
  362. package/dist/charts/core/probe/line.d.ts.map +1 -0
  363. package/dist/charts/core/probe/line.js +19 -0
  364. package/dist/charts/core/probe/sparkline.d.ts +2 -0
  365. package/dist/charts/core/probe/sparkline.d.ts.map +1 -0
  366. package/dist/charts/core/probe/sparkline.js +52 -0
  367. package/dist/charts/core/readout-clear.d.ts +106 -0
  368. package/dist/charts/core/readout-clear.d.ts.map +1 -0
  369. package/dist/charts/core/readout-clear.js +87 -0
  370. package/dist/charts/core/rich-tooltip.d.ts +56 -0
  371. package/dist/charts/core/rich-tooltip.d.ts.map +1 -0
  372. package/dist/charts/core/rich-tooltip.js +71 -0
  373. package/dist/charts/core/right-pin.d.ts +17 -0
  374. package/dist/charts/core/right-pin.d.ts.map +1 -0
  375. package/dist/charts/core/right-pin.js +52 -0
  376. package/dist/charts/core/scales.d.ts +91 -0
  377. package/dist/charts/core/scales.d.ts.map +1 -0
  378. package/dist/charts/core/scales.js +326 -0
  379. package/dist/charts/core/spread.d.ts +37 -0
  380. package/dist/charts/core/spread.d.ts.map +1 -0
  381. package/dist/charts/core/spread.js +98 -0
  382. package/dist/charts/core/theme.d.ts +88 -0
  383. package/dist/charts/core/theme.d.ts.map +1 -0
  384. package/dist/charts/core/theme.js +85 -0
  385. package/dist/charts/core/ticks.d.ts.map +1 -0
  386. package/dist/charts/core/ticks.js +42 -0
  387. package/dist/charts/csv.d.ts +6 -0
  388. package/dist/charts/csv.d.ts.map +1 -0
  389. package/dist/charts/csv.js +27 -0
  390. package/dist/charts/date-tick-format.d.ts +3 -3
  391. package/dist/charts/date-tick-format.d.ts.map +1 -1
  392. package/dist/charts/date-tick-format.js +21 -16
  393. package/dist/charts/engine-marks.d.ts +77 -0
  394. package/dist/charts/engine-marks.d.ts.map +1 -0
  395. package/dist/charts/engine-marks.js +20 -0
  396. package/dist/charts/focus.d.ts +96 -0
  397. package/dist/charts/focus.d.ts.map +1 -0
  398. package/dist/charts/focus.js +115 -0
  399. package/dist/charts/host.d.ts +7 -3
  400. package/dist/charts/host.d.ts.map +1 -1
  401. package/dist/charts/host.js +40 -24
  402. package/dist/charts/index.d.ts +23 -20
  403. package/dist/charts/index.d.ts.map +1 -1
  404. package/dist/charts/index.js +36 -21
  405. package/dist/charts/label-obstacles.d.ts +91 -0
  406. package/dist/charts/label-obstacles.d.ts.map +1 -0
  407. package/dist/charts/label-obstacles.js +142 -0
  408. package/dist/charts/label-place.d.ts +47 -0
  409. package/dist/charts/label-place.d.ts.map +1 -0
  410. package/dist/charts/label-place.js +209 -0
  411. package/dist/charts/label-widths.d.ts +10 -0
  412. package/dist/charts/label-widths.d.ts.map +1 -0
  413. package/dist/charts/label-widths.js +14 -0
  414. package/dist/charts/labels.d.ts +75 -2
  415. package/dist/charts/labels.d.ts.map +1 -1
  416. package/dist/charts/labels.js +220 -14
  417. package/dist/charts/legend.d.ts +25 -4
  418. package/dist/charts/legend.d.ts.map +1 -1
  419. package/dist/charts/legend.js +175 -39
  420. package/dist/charts/marks.d.ts +71 -2
  421. package/dist/charts/marks.d.ts.map +1 -1
  422. package/dist/charts/marks.js +123 -12
  423. package/dist/charts/pane-gutter.d.ts +8 -0
  424. package/dist/charts/pane-gutter.d.ts.map +1 -0
  425. package/dist/charts/pane-gutter.js +5 -0
  426. package/dist/charts/parts/band-fold.d.ts +65 -0
  427. package/dist/charts/parts/band-fold.d.ts.map +1 -0
  428. package/dist/charts/parts/band-fold.js +46 -0
  429. package/dist/charts/parts/band-strip.d.ts +95 -0
  430. package/dist/charts/parts/band-strip.d.ts.map +1 -0
  431. package/dist/charts/parts/band-strip.js +434 -0
  432. package/dist/charts/parts/bars-marks.d.ts +41 -0
  433. package/dist/charts/parts/bars-marks.d.ts.map +1 -0
  434. package/dist/charts/parts/bars-marks.js +225 -0
  435. package/dist/charts/parts/bars.d.ts +39 -0
  436. package/dist/charts/parts/bars.d.ts.map +1 -0
  437. package/dist/charts/parts/bars.js +8 -0
  438. package/dist/charts/parts/cartesian-adapt.d.ts +82 -0
  439. package/dist/charts/parts/cartesian-adapt.d.ts.map +1 -0
  440. package/dist/charts/parts/cartesian-adapt.js +277 -0
  441. package/dist/charts/parts/cartesian-selection.d.ts +12 -0
  442. package/dist/charts/parts/cartesian-selection.d.ts.map +1 -0
  443. package/dist/charts/parts/cartesian-selection.js +17 -0
  444. package/dist/charts/parts/cartesian.d.ts +54 -0
  445. package/dist/charts/parts/cartesian.d.ts.map +1 -0
  446. package/dist/charts/parts/cartesian.js +701 -0
  447. package/dist/charts/parts/chart-card-frame.d.ts +34 -0
  448. package/dist/charts/parts/chart-card-frame.d.ts.map +1 -0
  449. package/dist/charts/parts/chart-card-frame.js +112 -0
  450. package/dist/charts/parts/chart-card.d.ts +95 -0
  451. package/dist/charts/parts/chart-card.d.ts.map +1 -0
  452. package/dist/charts/parts/chart-card.js +350 -0
  453. package/dist/charts/parts/chart-panes.d.ts +26 -0
  454. package/dist/charts/parts/chart-panes.d.ts.map +1 -0
  455. package/dist/charts/parts/chart-panes.js +70 -0
  456. package/dist/charts/parts/heatmap-fill.d.ts.map +1 -0
  457. package/dist/charts/parts/heatmap-ink.d.ts +9 -0
  458. package/dist/charts/parts/heatmap-ink.d.ts.map +1 -0
  459. package/dist/charts/parts/heatmap-ink.js +19 -0
  460. package/dist/charts/parts/heatmap.d.ts +156 -0
  461. package/dist/charts/parts/heatmap.d.ts.map +1 -0
  462. package/dist/charts/parts/heatmap.js +450 -0
  463. package/dist/charts/parts/interval-layout.d.ts +45 -0
  464. package/dist/charts/parts/interval-layout.d.ts.map +1 -0
  465. package/dist/charts/parts/interval-layout.js +45 -0
  466. package/dist/charts/parts/interval-track.d.ts +109 -0
  467. package/dist/charts/parts/interval-track.d.ts.map +1 -0
  468. package/dist/charts/parts/interval-track.js +543 -0
  469. package/dist/charts/parts/legend.d.ts +33 -0
  470. package/dist/charts/parts/legend.d.ts.map +1 -0
  471. package/dist/charts/parts/legend.js +62 -0
  472. package/dist/charts/parts/lines-marks.d.ts +32 -0
  473. package/dist/charts/parts/lines-marks.d.ts.map +1 -0
  474. package/dist/charts/parts/lines-marks.js +175 -0
  475. package/dist/charts/parts/lines.d.ts +35 -0
  476. package/dist/charts/parts/lines.d.ts.map +1 -0
  477. package/dist/charts/parts/lines.js +8 -0
  478. package/dist/charts/parts/range-navigator.d.ts +70 -0
  479. package/dist/charts/parts/range-navigator.d.ts.map +1 -0
  480. package/dist/charts/parts/range-navigator.js +128 -0
  481. package/dist/charts/parts/range-navigator.module.css +50 -0
  482. package/dist/charts/parts/range-navigator.module.css.d.ts +9 -0
  483. package/dist/charts/parts/sparkline-probe/both.d.ts +2 -0
  484. package/dist/charts/parts/sparkline-probe/both.d.ts.map +1 -0
  485. package/dist/charts/parts/sparkline-probe/both.js +31 -0
  486. package/dist/charts/parts/sparkline-probe/mini-bars.d.ts +2 -0
  487. package/dist/charts/parts/sparkline-probe/mini-bars.d.ts.map +1 -0
  488. package/dist/charts/parts/sparkline-probe/mini-bars.js +17 -0
  489. package/dist/charts/parts/sparkline-probe/sparkline.d.ts +2 -0
  490. package/dist/charts/parts/sparkline-probe/sparkline.d.ts.map +1 -0
  491. package/dist/charts/parts/sparkline-probe/sparkline.js +19 -0
  492. package/dist/charts/parts/tooltip.d.ts +41 -0
  493. package/dist/charts/parts/tooltip.d.ts.map +1 -0
  494. package/dist/charts/parts/tooltip.js +42 -0
  495. package/dist/charts/parts/waterfall.d.ts +64 -0
  496. package/dist/charts/parts/waterfall.d.ts.map +1 -0
  497. package/dist/charts/parts/waterfall.js +112 -0
  498. package/dist/charts/plot-context.d.ts +4 -1
  499. package/dist/charts/plot-context.d.ts.map +1 -1
  500. package/dist/charts/plot-context.js +1 -1
  501. package/dist/charts/ref-label.d.ts +41 -4
  502. package/dist/charts/ref-label.d.ts.map +1 -1
  503. package/dist/charts/ref-label.js +94 -16
  504. package/dist/charts/seams/bar-opacity.d.ts +6 -0
  505. package/dist/charts/seams/bar-opacity.d.ts.map +1 -0
  506. package/dist/charts/seams/bar-opacity.js +8 -0
  507. package/dist/charts/seams/define.d.ts +51 -0
  508. package/dist/charts/seams/define.d.ts.map +1 -0
  509. package/dist/charts/seams/define.js +25 -0
  510. package/dist/charts/seams/lone-point.d.ts +3 -0
  511. package/dist/charts/seams/lone-point.d.ts.map +1 -0
  512. package/dist/charts/seams/lone-point.js +8 -0
  513. package/dist/charts/seams/pixel-extent.d.ts +23 -0
  514. package/dist/charts/seams/pixel-extent.d.ts.map +1 -0
  515. package/dist/charts/seams/pixel-extent.js +23 -0
  516. package/dist/charts/seams/plot-data.d.ts +3 -0
  517. package/dist/charts/seams/plot-data.d.ts.map +1 -0
  518. package/dist/charts/seams/plot-data.js +8 -0
  519. package/dist/charts/seams/plot-px.d.ts +11 -0
  520. package/dist/charts/seams/plot-px.d.ts.map +1 -0
  521. package/dist/charts/seams/plot-px.js +17 -0
  522. package/dist/charts/seams/plot-scales.d.ts +29 -0
  523. package/dist/charts/seams/plot-scales.d.ts.map +1 -0
  524. package/dist/charts/seams/plot-scales.js +33 -0
  525. package/dist/charts/seams/series-axis.d.ts +3 -0
  526. package/dist/charts/seams/series-axis.d.ts.map +1 -0
  527. package/dist/charts/seams/series-axis.js +8 -0
  528. package/dist/charts/seams/series-dash.d.ts +3 -0
  529. package/dist/charts/seams/series-dash.d.ts.map +1 -0
  530. package/dist/charts/seams/series-dash.js +8 -0
  531. package/dist/charts/seams/series-format.d.ts +3 -0
  532. package/dist/charts/seams/series-format.d.ts.map +1 -0
  533. package/dist/charts/seams/series-format.js +8 -0
  534. package/dist/charts/seams/series-gaps.d.ts +3 -0
  535. package/dist/charts/seams/series-gaps.d.ts.map +1 -0
  536. package/dist/charts/seams/series-gaps.js +8 -0
  537. package/dist/charts/seams/series-legend-tooltip.d.ts +3 -0
  538. package/dist/charts/seams/series-legend-tooltip.d.ts.map +1 -0
  539. package/dist/charts/seams/series-legend-tooltip.js +8 -0
  540. package/dist/charts/seams/series-marker.d.ts +3 -0
  541. package/dist/charts/seams/series-marker.d.ts.map +1 -0
  542. package/dist/charts/seams/series-marker.js +8 -0
  543. package/dist/charts/seams/series-note.d.ts +3 -0
  544. package/dist/charts/seams/series-note.d.ts.map +1 -0
  545. package/dist/charts/seams/series-note.js +8 -0
  546. package/dist/charts/seams/series-parent.d.ts +3 -0
  547. package/dist/charts/seams/series-parent.d.ts.map +1 -0
  548. package/dist/charts/seams/series-parent.js +8 -0
  549. package/dist/charts/seams/series-role.d.ts +3 -0
  550. package/dist/charts/seams/series-role.d.ts.map +1 -0
  551. package/dist/charts/seams/series-role.js +8 -0
  552. package/dist/charts/seams/series-weight.d.ts +3 -0
  553. package/dist/charts/seams/series-weight.d.ts.map +1 -0
  554. package/dist/charts/seams/series-weight.js +8 -0
  555. package/dist/charts/seams/x-domain.d.ts +3 -0
  556. package/dist/charts/seams/x-domain.d.ts.map +1 -0
  557. package/dist/charts/seams/x-domain.js +8 -0
  558. package/dist/charts/seams/y-domain.d.ts +32 -0
  559. package/dist/charts/seams/y-domain.d.ts.map +1 -0
  560. package/dist/charts/seams/y-domain.js +93 -0
  561. package/dist/charts/seams/y-gutter.d.ts +12 -0
  562. package/dist/charts/seams/y-gutter.d.ts.map +1 -0
  563. package/dist/charts/seams/y-gutter.js +18 -0
  564. package/dist/charts/seams.d.ts +18 -0
  565. package/dist/charts/seams.d.ts.map +1 -0
  566. package/dist/charts/seams.js +49 -0
  567. package/dist/charts/sizing.d.ts +11 -0
  568. package/dist/charts/sizing.d.ts.map +1 -1
  569. package/dist/charts/sizing.js +6 -2
  570. package/dist/charts/state.d.ts +2 -2
  571. package/dist/charts/state.d.ts.map +1 -1
  572. package/dist/charts/state.js +45 -22
  573. package/dist/charts/text-measure.d.ts +10 -0
  574. package/dist/charts/text-measure.d.ts.map +1 -0
  575. package/dist/charts/text-measure.js +26 -0
  576. package/dist/charts/tooltip-body.d.ts +16 -0
  577. package/dist/charts/tooltip-body.d.ts.map +1 -0
  578. package/dist/charts/tooltip-body.js +59 -0
  579. package/dist/charts/track.d.ts +101 -0
  580. package/dist/charts/track.d.ts.map +1 -0
  581. package/dist/charts/track.js +189 -0
  582. package/dist/charts/types.d.ts +126 -12
  583. package/dist/charts/types.d.ts.map +1 -1
  584. package/dist/cli/add/catalog.d.ts +26 -0
  585. package/dist/cli/add/catalog.d.ts.map +1 -0
  586. package/dist/cli/add/catalog.js +70 -0
  587. package/dist/cli/add/help.d.ts +4 -0
  588. package/dist/cli/add/help.d.ts.map +1 -0
  589. package/dist/cli/add/help.js +42 -0
  590. package/dist/cli/add/index.d.ts +6 -0
  591. package/dist/cli/add/index.d.ts.map +1 -0
  592. package/dist/cli/add/index.js +157 -0
  593. package/dist/cli/agent-note.d.ts +21 -0
  594. package/dist/cli/agent-note.d.ts.map +1 -0
  595. package/dist/cli/agent-note.js +107 -0
  596. package/dist/cli/board-freshness.d.ts +6 -4
  597. package/dist/cli/board-freshness.d.ts.map +1 -1
  598. package/dist/cli/board-freshness.js +18 -11
  599. package/dist/cli/budget/index.d.ts +35 -0
  600. package/dist/cli/budget/index.d.ts.map +1 -0
  601. package/dist/cli/budget/index.js +96 -0
  602. package/dist/cli/config.d.ts +14 -142
  603. package/dist/cli/config.d.ts.map +1 -1
  604. package/dist/cli/config.js +0 -16
  605. package/dist/cli/docs/catalog.d.ts +38 -0
  606. package/dist/cli/docs/catalog.d.ts.map +1 -0
  607. package/dist/cli/docs/catalog.js +129 -0
  608. package/dist/cli/docs/index.d.ts +3 -0
  609. package/dist/cli/docs/index.d.ts.map +1 -0
  610. package/dist/cli/docs/index.js +56 -0
  611. package/dist/cli/doctor/app.d.ts +8 -0
  612. package/dist/cli/doctor/app.d.ts.map +1 -0
  613. package/dist/cli/doctor/app.js +256 -0
  614. package/dist/cli/doctor/eject.d.ts +5 -0
  615. package/dist/cli/doctor/eject.d.ts.map +1 -0
  616. package/dist/cli/doctor/eject.js +130 -0
  617. package/dist/cli/doctor/guards.d.ts +3 -0
  618. package/dist/cli/doctor/guards.d.ts.map +1 -0
  619. package/dist/cli/doctor/guards.js +111 -0
  620. package/dist/cli/doctor/hook.d.ts +10 -0
  621. package/dist/cli/doctor/hook.d.ts.map +1 -0
  622. package/dist/cli/doctor/hook.js +294 -0
  623. package/dist/cli/doctor/index.d.ts +8 -0
  624. package/dist/cli/doctor/index.d.ts.map +1 -0
  625. package/dist/cli/doctor/index.js +92 -0
  626. package/dist/cli/doctor/install.d.ts +14 -0
  627. package/dist/cli/doctor/install.d.ts.map +1 -0
  628. package/dist/cli/doctor/install.js +266 -0
  629. package/dist/cli/doctor/legacy.d.ts +3 -0
  630. package/dist/cli/doctor/legacy.d.ts.map +1 -0
  631. package/dist/cli/doctor/legacy.js +144 -0
  632. package/dist/cli/doctor/translations.d.ts +17 -0
  633. package/dist/cli/doctor/translations.d.ts.map +1 -0
  634. package/dist/cli/doctor/translations.js +246 -0
  635. package/dist/cli/doctor/types.d.ts +64 -0
  636. package/dist/cli/doctor/types.d.ts.map +1 -0
  637. package/dist/cli/doctor/types.js +110 -0
  638. package/dist/cli/doctor/wiring.d.ts +10 -0
  639. package/dist/cli/doctor/wiring.d.ts.map +1 -0
  640. package/dist/cli/doctor/wiring.js +202 -0
  641. package/dist/cli/eject/git.d.ts +5 -0
  642. package/dist/cli/eject/git.d.ts.map +1 -0
  643. package/dist/cli/eject/git.js +35 -0
  644. package/dist/cli/eject/help.d.ts +4 -0
  645. package/dist/cli/eject/help.d.ts.map +1 -0
  646. package/dist/cli/eject/help.js +57 -0
  647. package/dist/cli/eject/index.d.ts +6 -0
  648. package/dist/cli/eject/index.d.ts.map +1 -0
  649. package/dist/cli/eject/index.js +423 -0
  650. package/dist/cli/eject/ledger.d.ts +73 -0
  651. package/dist/cli/eject/ledger.d.ts.map +1 -0
  652. package/dist/cli/eject/ledger.js +101 -0
  653. package/dist/cli/eject/tsconfig.d.ts +14 -0
  654. package/dist/cli/eject/tsconfig.d.ts.map +1 -0
  655. package/dist/cli/eject/tsconfig.js +207 -0
  656. package/dist/cli/harness.d.ts +65 -0
  657. package/dist/cli/harness.d.ts.map +1 -0
  658. package/dist/cli/harness.js +91 -0
  659. package/dist/cli/help.d.ts.map +1 -1
  660. package/dist/cli/help.js +51 -20
  661. package/dist/cli/index.d.ts +24 -387
  662. package/dist/cli/index.d.ts.map +1 -1
  663. package/dist/cli/index.js +41 -849
  664. package/dist/cli/init/app-files.d.ts +21 -0
  665. package/dist/cli/init/app-files.d.ts.map +1 -0
  666. package/dist/cli/init/app-files.js +99 -0
  667. package/dist/cli/init/index.d.ts +61 -0
  668. package/dist/cli/init/index.d.ts.map +1 -0
  669. package/dist/cli/init/index.js +244 -0
  670. package/dist/cli/init/locales.d.ts +28 -0
  671. package/dist/cli/init/locales.d.ts.map +1 -0
  672. package/dist/cli/init/locales.js +84 -0
  673. package/dist/cli/init/router-seeds.d.ts +10 -0
  674. package/dist/cli/init/router-seeds.d.ts.map +1 -0
  675. package/dist/cli/init/router-seeds.js +201 -0
  676. package/dist/cli/init/site.d.ts +19 -0
  677. package/dist/cli/init/site.d.ts.map +1 -0
  678. package/dist/cli/init/site.js +37 -0
  679. package/dist/cli/init/steps.d.ts +163 -0
  680. package/dist/cli/init/steps.d.ts.map +1 -0
  681. package/dist/cli/init/steps.js +791 -0
  682. package/dist/cli/init/stock.d.ts +24 -0
  683. package/dist/cli/init/stock.d.ts.map +1 -0
  684. package/dist/cli/init/stock.js +50 -0
  685. package/dist/cli/init/upgrade.d.ts +8 -0
  686. package/dist/cli/init/upgrade.d.ts.map +1 -0
  687. package/dist/cli/init/upgrade.js +47 -0
  688. package/dist/cli/install-root.d.ts +15 -5
  689. package/dist/cli/install-root.d.ts.map +1 -1
  690. package/dist/cli/install-root.js +28 -17
  691. package/dist/cli/legacy-2x-files.d.ts +2 -0
  692. package/dist/cli/legacy-2x-files.d.ts.map +1 -0
  693. package/dist/cli/legacy-2x-files.js +25 -0
  694. package/dist/cli/legacy-2x.d.ts +18 -0
  695. package/dist/cli/legacy-2x.d.ts.map +1 -0
  696. package/dist/cli/legacy-2x.js +71 -0
  697. package/dist/cli/lint/engine.d.ts +51 -0
  698. package/dist/cli/lint/engine.d.ts.map +1 -0
  699. package/dist/cli/lint/engine.js +253 -0
  700. package/dist/cli/lint/hook.d.ts +43 -0
  701. package/dist/cli/lint/hook.d.ts.map +1 -0
  702. package/dist/cli/lint/hook.js +222 -0
  703. package/dist/cli/lint/index.d.ts +22 -0
  704. package/dist/cli/lint/index.d.ts.map +1 -0
  705. package/dist/cli/lint/index.js +146 -0
  706. package/dist/cli/lint/record.d.ts +18 -0
  707. package/dist/cli/lint/record.d.ts.map +1 -0
  708. package/dist/cli/lint/record.js +77 -0
  709. package/dist/cli/lint/seams.d.ts +62 -0
  710. package/dist/cli/lint/seams.d.ts.map +1 -0
  711. package/dist/cli/lint/seams.js +351 -0
  712. package/dist/cli/lint/settings.d.ts +61 -0
  713. package/dist/cli/lint/settings.d.ts.map +1 -0
  714. package/dist/cli/lint/settings.js +229 -0
  715. package/dist/cli/lint/stats.d.ts +36 -0
  716. package/dist/cli/lint/stats.d.ts.map +1 -0
  717. package/dist/cli/lint/stats.js +119 -0
  718. package/dist/cli/lint/template-classes.d.ts +17 -0
  719. package/dist/cli/lint/template-classes.d.ts.map +1 -0
  720. package/dist/cli/lint/template-classes.js +91 -0
  721. package/dist/cli/lint-settings.d.ts +15 -0
  722. package/dist/cli/lint-settings.d.ts.map +1 -0
  723. package/dist/cli/lint-settings.js +81 -0
  724. package/dist/cli/manifest.d.ts +84 -0
  725. package/dist/cli/manifest.d.ts.map +1 -0
  726. package/dist/cli/manifest.js +199 -0
  727. package/dist/cli/merge/formatter.d.ts +12 -0
  728. package/dist/cli/merge/formatter.d.ts.map +1 -0
  729. package/dist/cli/merge/formatter.js +44 -0
  730. package/dist/cli/merge/header.d.ts +20 -0
  731. package/dist/cli/merge/header.d.ts.map +1 -0
  732. package/dist/cli/merge/header.js +25 -0
  733. package/dist/cli/merge/merge-file.d.ts +20 -0
  734. package/dist/cli/merge/merge-file.d.ts.map +1 -0
  735. package/dist/cli/merge/merge-file.js +46 -0
  736. package/dist/cli/merge/seed.d.ts +25 -0
  737. package/dist/cli/merge/seed.d.ts.map +1 -0
  738. package/dist/cli/merge/seed.js +72 -0
  739. package/dist/cli/migrate/census.d.ts +28 -0
  740. package/dist/cli/migrate/census.d.ts.map +1 -0
  741. package/dist/cli/migrate/census.js +209 -0
  742. package/dist/cli/migrate/index.d.ts +75 -0
  743. package/dist/cli/migrate/index.d.ts.map +1 -0
  744. package/dist/cli/migrate/index.js +250 -0
  745. package/dist/cli/migrate/rows.d.ts +120 -0
  746. package/dist/cli/migrate/rows.d.ts.map +1 -0
  747. package/dist/cli/migrate/rows.js +207 -0
  748. package/dist/cli/package-manager.d.ts +11 -0
  749. package/dist/cli/package-manager.d.ts.map +1 -0
  750. package/dist/cli/package-manager.js +44 -0
  751. package/dist/cli/peers.d.ts +21 -0
  752. package/dist/cli/peers.d.ts.map +1 -0
  753. package/dist/cli/peers.js +80 -0
  754. package/dist/cli/presets.d.ts +39 -0
  755. package/dist/cli/presets.d.ts.map +1 -0
  756. package/dist/cli/presets.js +118 -0
  757. package/dist/cli/resolver.d.ts +13 -0
  758. package/dist/cli/resolver.d.ts.map +1 -0
  759. package/dist/cli/resolver.js +25 -0
  760. package/dist/cli/route-tree.d.ts +21 -0
  761. package/dist/cli/route-tree.d.ts.map +1 -0
  762. package/dist/cli/route-tree.js +57 -0
  763. package/dist/cli/router-wiring.d.ts +44 -4
  764. package/dist/cli/router-wiring.d.ts.map +1 -1
  765. package/dist/cli/router-wiring.js +44 -4
  766. package/dist/cli/shot/board.d.ts +4 -2
  767. package/dist/cli/shot/board.d.ts.map +1 -1
  768. package/dist/cli/shot/board.js +35 -60
  769. package/dist/cli/shot/capture.d.ts +62 -110
  770. package/dist/cli/shot/capture.d.ts.map +1 -1
  771. package/dist/cli/shot/capture.js +415 -467
  772. package/dist/cli/shot/detect.d.ts +1 -13
  773. package/dist/cli/shot/detect.d.ts.map +1 -1
  774. package/dist/cli/shot/detect.js +260 -256
  775. package/dist/cli/shot/facts.d.ts +28 -0
  776. package/dist/cli/shot/facts.d.ts.map +1 -0
  777. package/dist/cli/shot/facts.js +184 -0
  778. package/dist/cli/shot/index.d.ts +14 -20
  779. package/dist/cli/shot/index.d.ts.map +1 -1
  780. package/dist/cli/shot/index.js +120 -215
  781. package/dist/cli/shot/measure.d.ts +9 -27
  782. package/dist/cli/shot/measure.d.ts.map +1 -1
  783. package/dist/cli/shot/measure.js +140 -107
  784. package/dist/cli/shot/playwright.d.ts +27 -27
  785. package/dist/cli/shot/playwright.d.ts.map +1 -1
  786. package/dist/cli/shot/playwright.js +16 -11
  787. package/dist/cli/shot/real-data.js +1 -1
  788. package/dist/cli/shot/serve.d.ts +8 -2
  789. package/dist/cli/shot/serve.d.ts.map +1 -1
  790. package/dist/cli/shot/serve.js +92 -21
  791. package/dist/cli/shot/types.d.ts +89 -31
  792. package/dist/cli/shot/types.d.ts.map +1 -1
  793. package/dist/cli/shot/types.js +49 -9
  794. package/dist/cli/source-text.d.ts +2 -0
  795. package/dist/cli/source-text.d.ts.map +1 -1
  796. package/dist/cli/source-text.js +8 -0
  797. package/dist/cli/sync/block.d.ts +20 -0
  798. package/dist/cli/sync/block.d.ts.map +1 -0
  799. package/dist/cli/sync/block.js +51 -0
  800. package/dist/cli/sync/blocks.d.ts +12 -0
  801. package/dist/cli/sync/blocks.d.ts.map +1 -0
  802. package/dist/cli/sync/blocks.js +111 -0
  803. package/dist/cli/sync/engine.d.ts +37 -0
  804. package/dist/cli/sync/engine.d.ts.map +1 -0
  805. package/dist/cli/sync/engine.js +134 -0
  806. package/dist/cli/sync/formats.d.ts +18 -0
  807. package/dist/cli/sync/formats.d.ts.map +1 -0
  808. package/dist/cli/sync/formats.js +64 -0
  809. package/dist/cli/sync/index.d.ts +17 -0
  810. package/dist/cli/sync/index.d.ts.map +1 -0
  811. package/dist/cli/sync/index.js +150 -0
  812. package/dist/cli/sync/render.d.ts +77 -0
  813. package/dist/cli/sync/render.d.ts.map +1 -0
  814. package/dist/cli/sync/render.js +342 -0
  815. package/dist/cli/sync/sibling.d.ts +28 -0
  816. package/dist/cli/sync/sibling.d.ts.map +1 -0
  817. package/dist/cli/sync/sibling.js +41 -0
  818. package/dist/cli/sync/three-way.d.ts +45 -0
  819. package/dist/cli/sync/three-way.d.ts.map +1 -0
  820. package/dist/cli/sync/three-way.js +165 -0
  821. package/dist/cli/tokens-css-extra.d.ts +26 -0
  822. package/dist/cli/tokens-css-extra.d.ts.map +1 -0
  823. package/dist/cli/tokens-css-extra.js +149 -0
  824. package/dist/cli/tokens-css.d.ts +33 -15
  825. package/dist/cli/tokens-css.d.ts.map +1 -1
  826. package/dist/cli/tokens-css.js +178 -75
  827. package/dist/common/basalt-families.d.ts +6 -0
  828. package/dist/common/basalt-families.d.ts.map +1 -0
  829. package/dist/common/basalt-families.js +65 -0
  830. package/dist/common/basalt-family.d.ts +10 -0
  831. package/dist/common/basalt-family.d.ts.map +1 -0
  832. package/dist/common/basalt-family.js +12 -0
  833. package/dist/common/errors.d.ts +2 -2
  834. package/dist/common/errors.js +5 -5
  835. package/dist/common/focus.d.ts +24 -0
  836. package/dist/common/focus.d.ts.map +1 -0
  837. package/dist/common/focus.js +47 -0
  838. package/dist/common/hit-floor.d.ts +1 -1
  839. package/dist/common/isomorphic-layout-effect.d.ts +3 -3
  840. package/dist/common/isomorphic-layout-effect.d.ts.map +1 -1
  841. package/dist/common/nest.d.ts +7 -0
  842. package/dist/common/nest.d.ts.map +1 -0
  843. package/dist/common/nest.js +25 -0
  844. package/dist/common/props.d.ts +7 -30
  845. package/dist/common/props.d.ts.map +1 -1
  846. package/dist/common/retry-button.d.ts +4 -2
  847. package/dist/common/retry-button.d.ts.map +1 -1
  848. package/dist/common/retry-button.js +3 -2
  849. package/dist/common/retry-button.module.css +23 -22
  850. package/dist/common/use-media-query.d.ts +1 -1
  851. package/dist/common/use-media-query.d.ts.map +1 -1
  852. package/dist/common/validate.d.ts +1 -1
  853. package/dist/content/code-block.d.ts +16 -20
  854. package/dist/content/code-block.d.ts.map +1 -1
  855. package/dist/content/code-block.js +76 -76
  856. package/dist/content/contract.d.ts +42 -0
  857. package/dist/content/contract.d.ts.map +1 -0
  858. package/dist/content/fence-trust.d.ts +8 -0
  859. package/dist/content/fence-trust.d.ts.map +1 -0
  860. package/dist/content/fence-trust.js +5 -0
  861. package/dist/content/fences.d.ts +42 -0
  862. package/dist/content/fences.d.ts.map +1 -0
  863. package/dist/content/fences.js +73 -0
  864. package/dist/content/headings.d.ts +15 -0
  865. package/dist/content/headings.d.ts.map +1 -0
  866. package/dist/content/headings.js +58 -0
  867. package/dist/content/highlighter.d.ts +20 -1
  868. package/dist/content/highlighter.d.ts.map +1 -1
  869. package/dist/content/highlighter.js +57 -6
  870. package/dist/content/index.d.ts +10 -17
  871. package/dist/content/index.d.ts.map +1 -1
  872. package/dist/content/index.js +4 -15
  873. package/dist/content/markdown.d.ts +25 -152
  874. package/dist/content/markdown.d.ts.map +1 -1
  875. package/dist/content/markdown.js +77 -270
  876. package/dist/content/mermaid.d.ts +9 -32
  877. package/dist/content/mermaid.d.ts.map +1 -1
  878. package/dist/content/mermaid.js +73 -51
  879. package/dist/content/pele-peer.d.ts +10 -0
  880. package/dist/content/pele-peer.d.ts.map +1 -0
  881. package/dist/content/pele-peer.js +19 -0
  882. package/dist/content/sanitize.d.ts +18 -167
  883. package/dist/content/sanitize.d.ts.map +1 -1
  884. package/dist/content/sanitize.js +39 -170
  885. package/dist/controls/appearance-switcher.d.ts +49 -0
  886. package/dist/controls/appearance-switcher.d.ts.map +1 -0
  887. package/dist/controls/appearance-switcher.js +176 -0
  888. package/dist/controls/contract.d.ts +153 -0
  889. package/dist/controls/contract.d.ts.map +1 -0
  890. package/dist/controls/control-home.d.ts +41 -0
  891. package/dist/controls/control-home.d.ts.map +1 -0
  892. package/dist/controls/control-home.js +72 -0
  893. package/dist/controls/control-kind.d.ts +26 -0
  894. package/dist/controls/control-kind.d.ts.map +1 -0
  895. package/dist/controls/control-kind.js +6 -0
  896. package/dist/controls/control-view.d.ts +25 -0
  897. package/dist/controls/control-view.d.ts.map +1 -0
  898. package/dist/controls/control-view.handles.d.ts +40 -0
  899. package/dist/controls/control-view.handles.d.ts.map +1 -0
  900. package/dist/controls/control-view.handles.js +95 -0
  901. package/dist/controls/control-view.js +116 -0
  902. package/dist/controls/draft.d.ts +23 -0
  903. package/dist/controls/draft.d.ts.map +1 -0
  904. package/dist/controls/draft.js +94 -0
  905. package/dist/controls/facets.d.ts +26 -0
  906. package/dist/controls/facets.d.ts.map +1 -0
  907. package/dist/controls/facets.js +13 -0
  908. package/dist/controls/filter-set-census.d.ts +34 -0
  909. package/dist/controls/filter-set-census.d.ts.map +1 -0
  910. package/dist/controls/filter-set-census.js +62 -0
  911. package/dist/controls/filter-set-fold.d.ts +13 -0
  912. package/dist/controls/filter-set-fold.d.ts.map +1 -0
  913. package/dist/controls/filter-set-fold.js +59 -0
  914. package/dist/controls/filter-set-menu.d.ts +30 -0
  915. package/dist/controls/filter-set-menu.d.ts.map +1 -0
  916. package/dist/controls/filter-set-menu.js +201 -0
  917. package/dist/controls/filter-set-spec.d.ts +12 -0
  918. package/dist/controls/filter-set-spec.d.ts.map +1 -0
  919. package/dist/controls/filter-set-spec.js +265 -0
  920. package/dist/controls/filter-set.d.ts +32 -13
  921. package/dist/controls/filter-set.d.ts.map +1 -1
  922. package/dist/controls/filter-set.js +4 -144
  923. package/dist/controls/filter-slot.d.ts +57 -0
  924. package/dist/controls/filter-slot.d.ts.map +1 -0
  925. package/dist/controls/filter-slot.js +139 -0
  926. package/dist/controls/form-field.d.ts +85 -0
  927. package/dist/controls/form-field.d.ts.map +1 -0
  928. package/dist/controls/form-field.js +233 -0
  929. package/dist/controls/form-footer.d.ts +43 -0
  930. package/dist/controls/form-footer.d.ts.map +1 -0
  931. package/dist/controls/form-footer.js +134 -0
  932. package/dist/controls/form-row.d.ts +35 -0
  933. package/dist/controls/form-row.d.ts.map +1 -0
  934. package/dist/controls/form-row.js +22 -0
  935. package/dist/controls/form-section.d.ts +65 -0
  936. package/dist/controls/form-section.d.ts.map +1 -0
  937. package/dist/controls/form-section.js +148 -0
  938. package/dist/controls/globals.d.ts +9 -0
  939. package/dist/controls/globals.d.ts.map +1 -0
  940. package/dist/controls/globals.js +20 -0
  941. package/dist/controls/index.d.ts +33 -11
  942. package/dist/controls/index.d.ts.map +1 -1
  943. package/dist/controls/index.js +39 -18
  944. package/dist/controls/local-control.d.ts +25 -0
  945. package/dist/controls/local-control.d.ts.map +1 -0
  946. package/dist/controls/local-control.js +12 -0
  947. package/dist/controls/renderers.d.ts +26 -0
  948. package/dist/controls/renderers.d.ts.map +1 -0
  949. package/dist/controls/renderers.js +415 -0
  950. package/dist/controls/row-icon.d.ts +10 -0
  951. package/dist/controls/row-icon.d.ts.map +1 -0
  952. package/dist/controls/row-icon.js +15 -0
  953. package/dist/controls/settings-rows.d.ts +84 -0
  954. package/dist/controls/settings-rows.d.ts.map +1 -0
  955. package/dist/controls/settings-rows.js +232 -0
  956. package/dist/controls/spec.d.ts +50 -0
  957. package/dist/controls/spec.d.ts.map +1 -0
  958. package/dist/controls/spec.js +12 -0
  959. package/dist/controls/stepper.d.ts +49 -0
  960. package/dist/controls/stepper.d.ts.map +1 -0
  961. package/dist/controls/stepper.js +170 -0
  962. package/dist/controls/submit.d.ts +27 -0
  963. package/dist/controls/submit.d.ts.map +1 -0
  964. package/dist/controls/submit.js +58 -0
  965. package/dist/controls/use-committed-field.d.ts +37 -0
  966. package/dist/controls/use-committed-field.d.ts.map +1 -0
  967. package/dist/controls/use-committed-field.js +66 -0
  968. package/dist/controls/view-tabs.d.ts +37 -13
  969. package/dist/controls/view-tabs.d.ts.map +1 -1
  970. package/dist/controls/view-tabs.js +124 -97
  971. package/dist/controls/view-tabs.test-support.d.ts +40 -0
  972. package/dist/controls/view-tabs.test-support.d.ts.map +1 -0
  973. package/dist/controls/view-tabs.test-support.js +39 -0
  974. package/dist/controls/wizard-dialog.d.ts +68 -0
  975. package/dist/controls/wizard-dialog.d.ts.map +1 -0
  976. package/dist/controls/wizard-dialog.js +243 -0
  977. package/dist/core/action-menu-items.d.ts +15 -0
  978. package/dist/core/action-menu-items.d.ts.map +1 -0
  979. package/dist/core/action-menu-items.js +46 -0
  980. package/dist/core/action.d.ts +54 -0
  981. package/dist/core/action.d.ts.map +1 -0
  982. package/dist/core/action.js +6 -0
  983. package/dist/core/appearance.d.ts +51 -0
  984. package/dist/core/appearance.d.ts.map +1 -0
  985. package/dist/core/appearance.js +117 -0
  986. package/dist/core/binding.d.ts +16 -0
  987. package/dist/core/binding.d.ts.map +1 -0
  988. package/dist/core/binding.js +21 -0
  989. package/dist/core/card-menu.d.ts +27 -0
  990. package/dist/core/card-menu.d.ts.map +1 -0
  991. package/dist/core/card-menu.js +179 -0
  992. package/dist/core/channel-transport.d.ts +25 -0
  993. package/dist/core/channel-transport.d.ts.map +1 -0
  994. package/dist/core/channel-transport.js +52 -0
  995. package/dist/core/channel.d.ts +111 -0
  996. package/dist/core/channel.d.ts.map +1 -0
  997. package/dist/core/channel.js +318 -0
  998. package/dist/core/chord-keys.d.ts +16 -0
  999. package/dist/core/chord-keys.d.ts.map +1 -0
  1000. package/dist/core/chord-keys.js +20 -0
  1001. package/dist/core/chord.d.ts +86 -0
  1002. package/dist/core/chord.d.ts.map +1 -0
  1003. package/dist/core/chord.js +129 -0
  1004. package/dist/core/clipboard.d.ts +3 -0
  1005. package/dist/core/clipboard.d.ts.map +1 -0
  1006. package/dist/core/clipboard.js +27 -0
  1007. package/dist/core/cn-theme.d.ts +11 -0
  1008. package/dist/core/cn-theme.d.ts.map +1 -0
  1009. package/dist/core/cn-theme.gen.d.ts +13 -0
  1010. package/dist/core/cn-theme.gen.d.ts.map +1 -0
  1011. package/dist/core/cn-theme.gen.js +59 -0
  1012. package/dist/core/cn-theme.js +62 -0
  1013. package/dist/core/cn.d.ts +10 -0
  1014. package/dist/core/cn.d.ts.map +1 -0
  1015. package/dist/core/cn.js +366 -0
  1016. package/dist/core/commit-key.d.ts +16 -0
  1017. package/dist/core/commit-key.d.ts.map +1 -0
  1018. package/dist/core/commit-key.js +6 -0
  1019. package/dist/core/context-trigger.d.ts +109 -0
  1020. package/dist/core/context-trigger.d.ts.map +1 -0
  1021. package/dist/core/context-trigger.js +175 -0
  1022. package/dist/core/control-scope.d.ts +34 -0
  1023. package/dist/core/control-scope.d.ts.map +1 -0
  1024. package/dist/core/control-scope.js +21 -0
  1025. package/dist/core/could-not-load.d.ts +8 -0
  1026. package/dist/core/could-not-load.d.ts.map +1 -0
  1027. package/dist/core/could-not-load.js +5 -0
  1028. package/dist/core/date-stepper.d.ts +39 -0
  1029. package/dist/core/date-stepper.d.ts.map +1 -0
  1030. package/dist/core/date-stepper.js +83 -0
  1031. package/dist/core/debounce.d.ts +19 -0
  1032. package/dist/core/debounce.d.ts.map +1 -0
  1033. package/dist/core/debounce.js +46 -0
  1034. package/dist/core/drag-landing.d.ts +8 -0
  1035. package/dist/core/drag-landing.d.ts.map +1 -0
  1036. package/dist/core/drag-landing.js +7 -0
  1037. package/dist/core/error-dot.d.ts +7 -0
  1038. package/dist/core/error-dot.d.ts.map +1 -0
  1039. package/dist/core/error-dot.js +14 -0
  1040. package/dist/core/external-field.d.ts +45 -0
  1041. package/dist/core/external-field.d.ts.map +1 -0
  1042. package/dist/core/external-field.js +40 -0
  1043. package/dist/core/focus-handle.d.ts +32 -0
  1044. package/dist/core/focus-handle.d.ts.map +1 -0
  1045. package/dist/core/focus-handle.js +182 -0
  1046. package/dist/core/focus-release.d.ts +19 -0
  1047. package/dist/core/focus-release.d.ts.map +1 -0
  1048. package/dist/core/focus-release.js +10 -0
  1049. package/dist/core/focus-store.d.ts +151 -0
  1050. package/dist/core/focus-store.d.ts.map +1 -0
  1051. package/dist/core/focus-store.js +422 -0
  1052. package/dist/core/form-dirty.d.ts +24 -0
  1053. package/dist/core/form-dirty.d.ts.map +1 -0
  1054. package/dist/core/form-dirty.js +31 -0
  1055. package/dist/core/format.d.ts +80 -0
  1056. package/dist/core/format.d.ts.map +1 -0
  1057. package/dist/core/format.js +188 -0
  1058. package/dist/core/frame-arm.d.ts +19 -0
  1059. package/dist/core/frame-arm.d.ts.map +1 -0
  1060. package/dist/core/frame-arm.js +5 -0
  1061. package/dist/core/frame-figure.d.ts +19 -0
  1062. package/dist/core/frame-figure.d.ts.map +1 -0
  1063. package/dist/core/frame-figure.js +153 -0
  1064. package/dist/core/frame-head.d.ts +51 -0
  1065. package/dist/core/frame-head.d.ts.map +1 -0
  1066. package/dist/core/frame-head.js +331 -0
  1067. package/dist/core/frame-regions.d.ts +101 -0
  1068. package/dist/core/frame-regions.d.ts.map +1 -0
  1069. package/dist/core/frame-regions.js +373 -0
  1070. package/dist/core/frame-spec.test-support.d.ts +43 -0
  1071. package/dist/core/frame-spec.test-support.d.ts.map +1 -0
  1072. package/dist/core/frame-spec.test-support.js +58 -0
  1073. package/dist/core/frame-tiles.d.ts +23 -0
  1074. package/dist/core/frame-tiles.d.ts.map +1 -0
  1075. package/dist/core/frame-tiles.js +79 -0
  1076. package/dist/core/href.d.ts +22 -0
  1077. package/dist/core/href.d.ts.map +1 -0
  1078. package/dist/core/href.js +29 -0
  1079. package/dist/core/info-hint.d.ts +19 -0
  1080. package/dist/core/info-hint.d.ts.map +1 -0
  1081. package/dist/core/info-hint.js +126 -0
  1082. package/dist/core/keyboard.d.ts +16 -0
  1083. package/dist/core/keyboard.d.ts.map +1 -0
  1084. package/dist/core/keyboard.js +50 -0
  1085. package/dist/core/label-text.d.ts +9 -0
  1086. package/dist/core/label-text.d.ts.map +1 -0
  1087. package/dist/core/label-text.js +8 -0
  1088. package/dist/core/label.d.ts +29 -0
  1089. package/dist/core/label.d.ts.map +1 -0
  1090. package/dist/core/label.js +21 -0
  1091. package/dist/core/lanes.d.ts +33 -0
  1092. package/dist/core/lanes.d.ts.map +1 -0
  1093. package/dist/core/lanes.js +58 -0
  1094. package/dist/core/leave-guard.d.ts +61 -0
  1095. package/dist/core/leave-guard.d.ts.map +1 -0
  1096. package/dist/core/leave-guard.js +121 -0
  1097. package/dist/core/link.d.ts +9 -0
  1098. package/dist/core/link.d.ts.map +1 -0
  1099. package/dist/core/link.js +10 -0
  1100. package/dist/core/list/engine.d.ts +138 -0
  1101. package/dist/core/list/engine.d.ts.map +1 -0
  1102. package/dist/core/list/engine.js +397 -0
  1103. package/dist/core/list/option-row.d.ts +63 -0
  1104. package/dist/core/list/option-row.d.ts.map +1 -0
  1105. package/dist/core/list/option-row.js +135 -0
  1106. package/dist/core/list/options.d.ts +91 -0
  1107. package/dist/core/list/options.d.ts.map +1 -0
  1108. package/dist/core/list/options.js +77 -0
  1109. package/dist/core/list/popup.d.ts +18 -0
  1110. package/dist/core/list/popup.d.ts.map +1 -0
  1111. package/dist/core/list/popup.js +57 -0
  1112. package/dist/core/list/rank.d.ts +25 -0
  1113. package/dist/core/list/rank.d.ts.map +1 -0
  1114. package/dist/core/list/rank.js +30 -0
  1115. package/dist/core/list-link.d.ts +43 -0
  1116. package/dist/core/list-link.d.ts.map +1 -0
  1117. package/dist/core/list-link.js +57 -0
  1118. package/dist/core/live-actions.d.ts +46 -0
  1119. package/dist/core/live-actions.d.ts.map +1 -0
  1120. package/dist/core/live-actions.js +72 -0
  1121. package/dist/core/mark-focus.d.ts +26 -0
  1122. package/dist/core/mark-focus.d.ts.map +1 -0
  1123. package/dist/core/mark-focus.js +63 -0
  1124. package/dist/core/mark-tone.d.ts +21 -0
  1125. package/dist/core/mark-tone.d.ts.map +1 -0
  1126. package/dist/core/mark-tone.js +28 -0
  1127. package/dist/core/mark-types.d.ts +87 -0
  1128. package/dist/core/mark-types.d.ts.map +1 -0
  1129. package/dist/core/menu-key.d.ts +6 -0
  1130. package/dist/core/menu-key.d.ts.map +1 -0
  1131. package/dist/core/menu-key.js +4 -0
  1132. package/dist/core/messages/ai.d.ts +40 -0
  1133. package/dist/core/messages/ai.d.ts.map +1 -0
  1134. package/dist/core/messages/ai.js +29 -0
  1135. package/dist/core/messages/base.d.ts +21 -0
  1136. package/dist/core/messages/base.d.ts.map +1 -0
  1137. package/dist/core/messages/base.js +13 -0
  1138. package/dist/core/messages/cards.d.ts +13 -0
  1139. package/dist/core/messages/cards.d.ts.map +1 -0
  1140. package/dist/core/messages/cards.js +7 -0
  1141. package/dist/core/messages/chain.d.ts +17 -0
  1142. package/dist/core/messages/chain.d.ts.map +1 -0
  1143. package/dist/core/messages/chain.js +13 -0
  1144. package/dist/core/messages/charts.d.ts +27 -0
  1145. package/dist/core/messages/charts.d.ts.map +1 -0
  1146. package/dist/core/messages/charts.js +23 -0
  1147. package/dist/core/messages/common.d.ts +96 -0
  1148. package/dist/core/messages/common.d.ts.map +1 -0
  1149. package/dist/core/messages/common.js +93 -0
  1150. package/dist/core/messages/content.d.ts +6 -0
  1151. package/dist/core/messages/content.d.ts.map +1 -0
  1152. package/dist/core/messages/content.js +6 -0
  1153. package/dist/core/messages/controls.d.ts +46 -0
  1154. package/dist/core/messages/controls.d.ts.map +1 -0
  1155. package/dist/core/messages/controls.js +34 -0
  1156. package/dist/core/messages/date.d.ts +15 -0
  1157. package/dist/core/messages/date.d.ts.map +1 -0
  1158. package/dist/core/messages/date.js +11 -0
  1159. package/dist/core/messages/dialogs.d.ts +15 -0
  1160. package/dist/core/messages/dialogs.d.ts.map +1 -0
  1161. package/dist/core/messages/dialogs.js +7 -0
  1162. package/dist/core/messages/filters.d.ts +24 -0
  1163. package/dist/core/messages/filters.d.ts.map +1 -0
  1164. package/dist/core/messages/filters.js +11 -0
  1165. package/dist/core/messages/flow.d.ts +19 -0
  1166. package/dist/core/messages/flow.d.ts.map +1 -0
  1167. package/dist/core/messages/flow.js +15 -0
  1168. package/dist/core/messages/home.d.ts +13 -0
  1169. package/dist/core/messages/home.d.ts.map +1 -0
  1170. package/dist/core/messages/home.js +6 -0
  1171. package/dist/core/messages/index.d.ts +32 -0
  1172. package/dist/core/messages/index.d.ts.map +1 -0
  1173. package/dist/core/messages/index.js +61 -0
  1174. package/dist/core/messages/kanban.d.ts +16 -0
  1175. package/dist/core/messages/kanban.d.ts.map +1 -0
  1176. package/dist/core/messages/kanban.js +11 -0
  1177. package/dist/core/messages/keys.d.ts +16 -0
  1178. package/dist/core/messages/keys.d.ts.map +1 -0
  1179. package/dist/core/messages/keys.js +12 -0
  1180. package/dist/core/messages/lists.d.ts +36 -0
  1181. package/dist/core/messages/lists.d.ts.map +1 -0
  1182. package/dist/core/messages/lists.js +42 -0
  1183. package/dist/core/messages/live.d.ts +26 -0
  1184. package/dist/core/messages/live.d.ts.map +1 -0
  1185. package/dist/core/messages/live.js +28 -0
  1186. package/dist/core/messages/mark.d.ts +22 -0
  1187. package/dist/core/messages/mark.d.ts.map +1 -0
  1188. package/dist/core/messages/mark.js +11 -0
  1189. package/dist/core/messages/menu.d.ts +10 -0
  1190. package/dist/core/messages/menu.d.ts.map +1 -0
  1191. package/dist/core/messages/menu.js +10 -0
  1192. package/dist/core/messages/page.d.ts +40 -0
  1193. package/dist/core/messages/page.d.ts.map +1 -0
  1194. package/dist/core/messages/page.js +31 -0
  1195. package/dist/core/messages/schedule.d.ts +18 -0
  1196. package/dist/core/messages/schedule.d.ts.map +1 -0
  1197. package/dist/core/messages/schedule.js +17 -0
  1198. package/dist/core/messages/select.d.ts +15 -0
  1199. package/dist/core/messages/select.d.ts.map +1 -0
  1200. package/dist/core/messages/select.js +8 -0
  1201. package/dist/core/messages/shell.d.ts +48 -0
  1202. package/dist/core/messages/shell.d.ts.map +1 -0
  1203. package/dist/core/messages/shell.js +34 -0
  1204. package/dist/core/messages/sortable.d.ts +9 -0
  1205. package/dist/core/messages/sortable.d.ts.map +1 -0
  1206. package/dist/core/messages/sortable.js +8 -0
  1207. package/dist/core/messages/status.d.ts +16 -0
  1208. package/dist/core/messages/status.d.ts.map +1 -0
  1209. package/dist/core/messages/status.js +12 -0
  1210. package/dist/core/messages/table.d.ts +170 -0
  1211. package/dist/core/messages/table.d.ts.map +1 -0
  1212. package/dist/core/messages/table.js +165 -0
  1213. package/dist/core/messages/tree.d.ts +29 -0
  1214. package/dist/core/messages/tree.d.ts.map +1 -0
  1215. package/dist/core/messages/tree.js +38 -0
  1216. package/dist/core/messages/upload.d.ts +27 -0
  1217. package/dist/core/messages/upload.d.ts.map +1 -0
  1218. package/dist/core/messages/upload.js +23 -0
  1219. package/dist/core/messages/use-messages.d.ts +12 -0
  1220. package/dist/core/messages/use-messages.d.ts.map +1 -0
  1221. package/dist/core/messages/use-messages.js +26 -0
  1222. package/dist/core/messages/use-text.d.ts +8 -0
  1223. package/dist/core/messages/use-text.d.ts.map +1 -0
  1224. package/dist/core/messages/use-text.js +9 -0
  1225. package/dist/core/notify.d.ts +94 -0
  1226. package/dist/core/notify.d.ts.map +1 -0
  1227. package/dist/core/notify.js +161 -0
  1228. package/dist/core/object-menu-popup.d.ts +18 -0
  1229. package/dist/core/object-menu-popup.d.ts.map +1 -0
  1230. package/dist/core/object-menu-popup.js +32 -0
  1231. package/dist/core/object-menu.d.ts +49 -0
  1232. package/dist/core/object-menu.d.ts.map +1 -0
  1233. package/dist/core/object-menu.js +81 -0
  1234. package/dist/core/offline-line.d.ts +7 -0
  1235. package/dist/core/offline-line.d.ts.map +1 -0
  1236. package/dist/core/offline-line.js +11 -0
  1237. package/dist/core/panel.d.ts +73 -0
  1238. package/dist/core/panel.d.ts.map +1 -0
  1239. package/dist/core/panel.js +172 -0
  1240. package/dist/core/parse-number.d.ts +8 -0
  1241. package/dist/core/parse-number.d.ts.map +1 -0
  1242. package/dist/core/parse-number.js +38 -0
  1243. package/dist/core/persisted.d.ts +59 -0
  1244. package/dist/core/persisted.d.ts.map +1 -0
  1245. package/dist/core/persisted.js +276 -0
  1246. package/dist/core/phase-boundary.d.ts +30 -0
  1247. package/dist/core/phase-boundary.d.ts.map +1 -0
  1248. package/dist/core/phase-boundary.js +18 -0
  1249. package/dist/core/phase.d.ts +354 -0
  1250. package/dist/core/phase.d.ts.map +1 -0
  1251. package/dist/core/phase.js +94 -0
  1252. package/dist/core/popup-position.d.ts +33 -0
  1253. package/dist/core/popup-position.d.ts.map +1 -0
  1254. package/dist/core/popup-position.js +9 -0
  1255. package/dist/core/ports.d.ts +434 -0
  1256. package/dist/core/ports.d.ts.map +1 -0
  1257. package/dist/core/ports.js +0 -0
  1258. package/dist/core/provider-props.d.ts +40 -0
  1259. package/dist/core/provider-props.d.ts.map +1 -0
  1260. package/dist/core/provider-props.js +28 -0
  1261. package/dist/core/provider.d.ts +48 -0
  1262. package/dist/core/provider.d.ts.map +1 -0
  1263. package/dist/core/provider.js +39 -0
  1264. package/dist/core/record-address.d.ts +16 -0
  1265. package/dist/core/record-address.d.ts.map +1 -0
  1266. package/dist/core/record-address.js +17 -0
  1267. package/dist/core/record-steps.d.ts +22 -0
  1268. package/dist/core/record-steps.d.ts.map +1 -0
  1269. package/dist/core/record-steps.js +40 -0
  1270. package/dist/core/resolved-tokens.d.ts +32 -0
  1271. package/dist/core/resolved-tokens.d.ts.map +1 -0
  1272. package/dist/core/resolved-tokens.js +135 -0
  1273. package/dist/core/retry-label.d.ts +5 -0
  1274. package/dist/core/retry-label.d.ts.map +1 -0
  1275. package/dist/core/retry-label.js +10 -0
  1276. package/dist/core/retry-owner.d.ts +31 -0
  1277. package/dist/core/retry-owner.d.ts.map +1 -0
  1278. package/dist/core/retry-owner.js +58 -0
  1279. package/dist/core/rows-shown.d.ts +3 -0
  1280. package/dist/core/rows-shown.d.ts.map +1 -0
  1281. package/dist/core/rows-shown.js +9 -0
  1282. package/dist/core/scheme.d.ts +24 -0
  1283. package/dist/core/scheme.d.ts.map +1 -0
  1284. package/dist/core/scheme.js +62 -0
  1285. package/dist/core/sheet-tools.d.ts +3 -0
  1286. package/dist/core/sheet-tools.d.ts.map +1 -0
  1287. package/dist/core/sheet-tools.js +5 -0
  1288. package/dist/core/slot-home.d.ts +10 -0
  1289. package/dist/core/slot-home.d.ts.map +1 -0
  1290. package/dist/core/slot-home.js +5 -0
  1291. package/dist/core/slug.d.ts.map +1 -0
  1292. package/dist/core/slug.js +22 -0
  1293. package/dist/core/spark/compile-spark.d.ts +59 -0
  1294. package/dist/core/spark/compile-spark.d.ts.map +1 -0
  1295. package/dist/core/spark/compile-spark.js +78 -0
  1296. package/dist/core/spark/mini-bars.d.ts +36 -0
  1297. package/dist/core/spark/mini-bars.d.ts.map +1 -0
  1298. package/dist/core/spark/mini-bars.js +202 -0
  1299. package/dist/core/spark/sparkline-shared.d.ts +99 -0
  1300. package/dist/core/spark/sparkline-shared.d.ts.map +1 -0
  1301. package/dist/core/spark/sparkline-shared.js +257 -0
  1302. package/dist/core/spark/sparkline.d.ts +42 -0
  1303. package/dist/core/spark/sparkline.d.ts.map +1 -0
  1304. package/dist/core/spark/sparkline.js +305 -0
  1305. package/dist/core/standard-actions.d.ts +29 -0
  1306. package/dist/core/standard-actions.d.ts.map +1 -0
  1307. package/dist/core/standard-actions.js +67 -0
  1308. package/dist/core/stat-row.d.ts +9 -0
  1309. package/dist/core/stat-row.d.ts.map +1 -0
  1310. package/dist/core/stat-row.js +14 -0
  1311. package/dist/core/tree-model.d.ts +53 -0
  1312. package/dist/core/tree-model.d.ts.map +1 -0
  1313. package/dist/core/tree-model.js +117 -0
  1314. package/dist/core/url.d.ts +22 -0
  1315. package/dist/core/url.d.ts.map +1 -0
  1316. package/dist/core/url.js +44 -0
  1317. package/dist/core/use-control.d.ts +27 -0
  1318. package/dist/core/use-control.d.ts.map +1 -0
  1319. package/dist/core/use-control.js +6 -0
  1320. package/dist/core/use-locale.d.ts +9 -0
  1321. package/dist/core/use-locale.d.ts.map +1 -0
  1322. package/dist/core/use-locale.js +7 -0
  1323. package/dist/core/use-now.d.ts +10 -0
  1324. package/dist/core/use-now.d.ts.map +1 -0
  1325. package/dist/core/use-now.js +36 -0
  1326. package/dist/core/use-resolved-tokens.d.ts +15 -0
  1327. package/dist/core/use-resolved-tokens.d.ts.map +1 -0
  1328. package/dist/core/use-resolved-tokens.js +8 -0
  1329. package/dist/core/use-standard-actions.d.ts +5 -0
  1330. package/dist/core/use-standard-actions.d.ts.map +1 -0
  1331. package/dist/core/use-standard-actions.js +11 -0
  1332. package/dist/core/write-batch.d.ts +13 -0
  1333. package/dist/core/write-batch.d.ts.map +1 -0
  1334. package/dist/core/write-batch.js +30 -0
  1335. package/dist/core/zoned.d.ts +58 -0
  1336. package/dist/core/zoned.d.ts.map +1 -0
  1337. package/dist/core/zoned.js +128 -0
  1338. package/dist/css/archify.css +37 -0
  1339. package/dist/css/base.css +286 -0
  1340. package/dist/css/cursor.css +119 -0
  1341. package/dist/css/files/hubot-sans-latin-ext-wdth-normal.woff2 +0 -0
  1342. package/dist/css/files/hubot-sans-latin-wdth-normal.woff2 +0 -0
  1343. package/dist/css/files/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
  1344. package/dist/css/files/jetbrains-mono-latin-wght-normal.woff2 +0 -0
  1345. package/dist/css/files/nunito-sans-latin-ext-wght-normal.woff2 +0 -0
  1346. package/dist/css/files/nunito-sans-latin-wght-normal.woff2 +0 -0
  1347. package/dist/css/fonts.css +84 -0
  1348. package/dist/css/generate.d.ts +24 -0
  1349. package/dist/css/generate.d.ts.map +1 -0
  1350. package/dist/css/generate.js +218 -0
  1351. package/dist/css/prose.css +214 -0
  1352. package/dist/css/starlight.css +342 -0
  1353. package/dist/css/static.css +263 -0
  1354. package/dist/css/tailwind.css +254 -0
  1355. package/dist/css/templates/fonts.css +82 -0
  1356. package/dist/css/templates/prose.css +230 -0
  1357. package/dist/css/templates/starlight.css +356 -0
  1358. package/dist/css/templates/typography.css +50 -0
  1359. package/dist/css/theme-script.d.ts +27 -0
  1360. package/dist/css/theme-script.d.ts.map +1 -0
  1361. package/dist/css/theme-script.js +29 -0
  1362. package/dist/css/tokens.css +233 -0
  1363. package/dist/css/touch.css +36 -0
  1364. package/dist/css/typography.css +89 -0
  1365. package/dist/data/index.d.ts +17 -0
  1366. package/dist/data/index.d.ts.map +1 -0
  1367. package/dist/data/index.js +22 -0
  1368. package/dist/data/live/bind-invalidation.d.ts +77 -0
  1369. package/dist/data/live/bind-invalidation.d.ts.map +1 -0
  1370. package/dist/data/live/bind-invalidation.js +166 -0
  1371. package/dist/data/live/connection.d.ts +47 -0
  1372. package/dist/data/live/connection.d.ts.map +1 -0
  1373. package/dist/data/live/connection.js +181 -0
  1374. package/dist/data/live/freshness.d.ts +30 -0
  1375. package/dist/data/live/freshness.d.ts.map +1 -0
  1376. package/dist/data/live/freshness.js +91 -0
  1377. package/dist/data/live/live-query-runtime.d.ts +39 -0
  1378. package/dist/data/live/live-query-runtime.d.ts.map +1 -0
  1379. package/dist/data/live/live-query-runtime.js +59 -0
  1380. package/dist/data/live/live-query.d.ts +55 -0
  1381. package/dist/data/live/live-query.d.ts.map +1 -0
  1382. package/dist/data/live/live-query.js +127 -0
  1383. package/dist/data/optimistic.d.ts +60 -0
  1384. package/dist/data/optimistic.d.ts.map +1 -0
  1385. package/dist/data/optimistic.js +34 -0
  1386. package/dist/data/query-client.d.ts +29 -0
  1387. package/dist/data/query-client.d.ts.map +1 -0
  1388. package/dist/data/query-client.js +35 -0
  1389. package/dist/data/shot-state.d.ts +68 -0
  1390. package/dist/data/shot-state.d.ts.map +1 -0
  1391. package/dist/data/shot-state.js +59 -0
  1392. package/dist/data/synced-runtime.d.ts +90 -0
  1393. package/dist/data/synced-runtime.d.ts.map +1 -0
  1394. package/dist/data/synced-runtime.js +380 -0
  1395. package/dist/data/synced.d.ts +91 -0
  1396. package/dist/data/synced.d.ts.map +1 -0
  1397. package/dist/data/synced.js +110 -0
  1398. package/dist/data/unwrap.d.ts +45 -0
  1399. package/dist/data/unwrap.d.ts.map +1 -0
  1400. package/dist/data/unwrap.js +28 -0
  1401. package/dist/form/contexts.d.ts +2 -0
  1402. package/dist/form/contexts.d.ts.map +1 -0
  1403. package/dist/form/contexts.js +8 -0
  1404. package/dist/form/hook.d.ts +110 -0
  1405. package/dist/form/hook.d.ts.map +1 -0
  1406. package/dist/form/hook.js +60 -0
  1407. package/dist/form/index.d.ts +9 -0
  1408. package/dist/form/index.d.ts.map +1 -0
  1409. package/dist/form/index.js +6 -0
  1410. package/dist/form/parts.d.ts +48 -0
  1411. package/dist/form/parts.d.ts.map +1 -0
  1412. package/dist/form/parts.js +50 -0
  1413. package/dist/format/locale.d.ts +4 -0
  1414. package/dist/format/locale.d.ts.map +1 -0
  1415. package/dist/format/locale.js +4 -0
  1416. package/dist/format/number.d.ts +2 -46
  1417. package/dist/format/number.d.ts.map +1 -1
  1418. package/dist/format/number.js +4 -57
  1419. package/dist/format/shared.d.ts +8 -45
  1420. package/dist/format/shared.d.ts.map +1 -1
  1421. package/dist/format/shared.js +15 -53
  1422. package/dist/index.d.ts +27 -18
  1423. package/dist/index.d.ts.map +1 -1
  1424. package/dist/index.js +26 -72
  1425. package/dist/lint/bin.d.ts +13 -0
  1426. package/dist/lint/bin.d.ts.map +1 -0
  1427. package/dist/lint/bin.js +20 -0
  1428. package/dist/lint/blanket-disable.d.ts +23 -0
  1429. package/dist/lint/blanket-disable.d.ts.map +1 -0
  1430. package/dist/lint/blanket-disable.js +85 -0
  1431. package/dist/lint/check-tokens.d.ts +39 -0
  1432. package/dist/lint/check-tokens.d.ts.map +1 -0
  1433. package/dist/lint/check-tokens.js +160 -0
  1434. package/dist/lint/factory.d.ts +101 -0
  1435. package/dist/lint/factory.d.ts.map +1 -0
  1436. package/dist/lint/factory.js +318 -0
  1437. package/dist/lint/generated/gen-site-classes.d.ts +5 -0
  1438. package/dist/lint/generated/gen-site-classes.d.ts.map +1 -0
  1439. package/dist/lint/generated/gen-site-classes.js +45 -0
  1440. package/dist/lint/generated/gen-zone-a.d.ts +4 -0
  1441. package/dist/lint/generated/gen-zone-a.d.ts.map +1 -0
  1442. package/dist/lint/generated/gen-zone-a.js +62 -0
  1443. package/dist/lint/generated/site-classes.d.ts +2 -0
  1444. package/dist/lint/generated/site-classes.d.ts.map +1 -0
  1445. package/dist/lint/generated/site-classes.js +48 -0
  1446. package/dist/lint/generated/zone-a.d.ts +16 -0
  1447. package/dist/lint/generated/zone-a.d.ts.map +1 -0
  1448. package/dist/lint/generated/zone-a.js +90 -0
  1449. package/dist/lint/index.d.ts +4 -0
  1450. package/dist/lint/index.d.ts.map +1 -0
  1451. package/dist/lint/index.js +37 -0
  1452. package/dist/lint/lintable.d.ts +3 -0
  1453. package/dist/lint/lintable.d.ts.map +1 -0
  1454. package/dist/lint/lintable.js +4 -0
  1455. package/dist/lint/preset.d.ts +189 -0
  1456. package/dist/lint/preset.d.ts.map +1 -0
  1457. package/dist/lint/preset.js +429 -0
  1458. package/dist/lint/renamed-rules.d.ts +7 -0
  1459. package/dist/lint/renamed-rules.d.ts.map +1 -0
  1460. package/dist/lint/renamed-rules.js +9 -0
  1461. package/dist/lint/rule-table.d.ts +125 -0
  1462. package/dist/lint/rule-table.d.ts.map +1 -0
  1463. package/dist/lint/rule-table.js +222 -0
  1464. package/dist/lint/rules/class/detect.d.ts +133 -0
  1465. package/dist/lint/rules/class/detect.d.ts.map +1 -0
  1466. package/dist/lint/rules/class/detect.js +858 -0
  1467. package/dist/lint/rules/class/table.d.ts +296 -0
  1468. package/dist/lint/rules/class/table.d.ts.map +1 -0
  1469. package/dist/lint/rules/class/table.js +453 -0
  1470. package/dist/lint/rules/structure/ast.d.ts +15 -0
  1471. package/dist/lint/rules/structure/ast.d.ts.map +1 -0
  1472. package/dist/lint/rules/structure/ast.js +48 -0
  1473. package/dist/lint/rules/structure/color-literal.d.ts +51 -0
  1474. package/dist/lint/rules/structure/color-literal.d.ts.map +1 -0
  1475. package/dist/lint/rules/structure/color-literal.js +127 -0
  1476. package/dist/lint/rules/structure/control-home.d.ts +10 -0
  1477. package/dist/lint/rules/structure/control-home.d.ts.map +1 -0
  1478. package/dist/lint/rules/structure/control-home.js +246 -0
  1479. package/dist/lint/rules/structure/data-primitive-live.d.ts +5 -0
  1480. package/dist/lint/rules/structure/data-primitive-live.d.ts.map +1 -0
  1481. package/dist/lint/rules/structure/data-primitive-live.js +95 -0
  1482. package/dist/lint/rules/structure/data-primitive.d.ts +38 -0
  1483. package/dist/lint/rules/structure/data-primitive.d.ts.map +1 -0
  1484. package/dist/lint/rules/structure/data-primitive.js +587 -0
  1485. package/dist/lint/rules/structure/format-home.d.ts +15 -0
  1486. package/dist/lint/rules/structure/format-home.d.ts.map +1 -0
  1487. package/dist/lint/rules/structure/format-home.js +416 -0
  1488. package/dist/lint/rules/structure/import-boundary.d.ts +40 -0
  1489. package/dist/lint/rules/structure/import-boundary.d.ts.map +1 -0
  1490. package/dist/lint/rules/structure/import-boundary.js +829 -0
  1491. package/dist/lint/rules/structure/label-literal.d.ts +23 -0
  1492. package/dist/lint/rules/structure/label-literal.d.ts.map +1 -0
  1493. package/dist/lint/rules/structure/label-literal.js +492 -0
  1494. package/dist/lint/rules/structure/motion-literal.d.ts +26 -0
  1495. package/dist/lint/rules/structure/motion-literal.d.ts.map +1 -0
  1496. package/dist/lint/rules/structure/motion-literal.js +147 -0
  1497. package/dist/lint/rules/structure/page-root.d.ts +10 -0
  1498. package/dist/lint/rules/structure/page-root.d.ts.map +1 -0
  1499. package/dist/lint/rules/structure/page-root.js +162 -0
  1500. package/dist/lint/rules/structure/primitive-bypass.d.ts +8 -0
  1501. package/dist/lint/rules/structure/primitive-bypass.d.ts.map +1 -0
  1502. package/dist/lint/rules/structure/primitive-bypass.js +1014 -0
  1503. package/dist/lint/rules/structure/query-home.d.ts +12 -0
  1504. package/dist/lint/rules/structure/query-home.d.ts.map +1 -0
  1505. package/dist/lint/rules/structure/query-home.js +171 -0
  1506. package/dist/lint/rules/structure/router-search.d.ts +10 -0
  1507. package/dist/lint/rules/structure/router-search.d.ts.map +1 -0
  1508. package/dist/lint/rules/structure/router-search.js +321 -0
  1509. package/dist/lint/rules/structure/untrusted-markdown.d.ts +22 -0
  1510. package/dist/lint/rules/structure/untrusted-markdown.d.ts.map +1 -0
  1511. package/dist/lint/rules/structure/untrusted-markdown.js +374 -0
  1512. package/dist/lint/rules/structure/waiver-needs-reason.d.ts +41 -0
  1513. package/dist/lint/rules/structure/waiver-needs-reason.d.ts.map +1 -0
  1514. package/dist/lint/rules/structure/waiver-needs-reason.js +128 -0
  1515. package/dist/lint/stylelint/gen.d.ts +2 -0
  1516. package/dist/lint/stylelint/gen.d.ts.map +1 -0
  1517. package/dist/lint/stylelint/gen.js +28 -0
  1518. package/dist/lint/stylelint/index.d.ts +3 -0
  1519. package/dist/lint/stylelint/index.d.ts.map +1 -0
  1520. package/dist/lint/stylelint/index.js +5 -0
  1521. package/dist/lint/stylelint/render.d.ts +37 -0
  1522. package/dist/lint/stylelint/render.d.ts.map +1 -0
  1523. package/dist/lint/stylelint/render.js +48 -0
  1524. package/dist/lint/stylelint/rules.d.ts +75 -0
  1525. package/dist/lint/stylelint/rules.d.ts.map +1 -0
  1526. package/dist/lint/stylelint/rules.js +239 -0
  1527. package/dist/lint/weakened.d.ts +68 -0
  1528. package/dist/lint/weakened.d.ts.map +1 -0
  1529. package/dist/lint/weakened.js +404 -0
  1530. package/dist/lint/weakening-edit.d.ts +6 -0
  1531. package/dist/lint/weakening-edit.d.ts.map +1 -0
  1532. package/dist/lint/weakening-edit.js +63 -0
  1533. package/dist/messages/de.d.ts +16 -0
  1534. package/dist/messages/de.d.ts.map +1 -0
  1535. package/dist/messages/de.js +621 -0
  1536. package/dist/messages/es.d.ts +16 -0
  1537. package/dist/messages/es.d.ts.map +1 -0
  1538. package/dist/messages/es.js +626 -0
  1539. package/dist/messages/fr.d.ts +16 -0
  1540. package/dist/messages/fr.d.ts.map +1 -0
  1541. package/dist/messages/fr.js +621 -0
  1542. package/dist/messages/zh-hans.d.ts +16 -0
  1543. package/dist/messages/zh-hans.d.ts.map +1 -0
  1544. package/dist/messages/zh-hans.js +628 -0
  1545. package/dist/motion/index.d.ts +20 -0
  1546. package/dist/motion/index.d.ts.map +1 -0
  1547. package/dist/motion/index.js +13 -0
  1548. package/dist/motion/presets.d.ts +45 -0
  1549. package/dist/motion/presets.d.ts.map +1 -0
  1550. package/dist/motion/presets.js +37 -0
  1551. package/dist/page/article-layout.d.ts +67 -0
  1552. package/dist/page/article-layout.d.ts.map +1 -0
  1553. package/dist/page/article-layout.js +127 -0
  1554. package/dist/page/article-progress.d.ts +20 -0
  1555. package/dist/page/article-progress.d.ts.map +1 -0
  1556. package/dist/page/article-progress.js +59 -0
  1557. package/dist/page/callout.d.ts +27 -0
  1558. package/dist/page/callout.d.ts.map +1 -0
  1559. package/dist/page/callout.js +32 -0
  1560. package/dist/page/card-grid.d.ts +42 -0
  1561. package/dist/page/card-grid.d.ts.map +1 -0
  1562. package/dist/page/card-grid.js +41 -0
  1563. package/dist/page/connection-indicator.d.ts +25 -0
  1564. package/dist/page/connection-indicator.d.ts.map +1 -0
  1565. package/dist/page/connection-indicator.js +115 -0
  1566. package/dist/page/contract.d.ts +295 -0
  1567. package/dist/page/contract.d.ts.map +1 -0
  1568. package/dist/page/contract.js +0 -0
  1569. package/dist/page/core/article-date.d.ts +17 -0
  1570. package/dist/page/core/article-date.d.ts.map +1 -0
  1571. package/dist/page/core/article-date.js +13 -0
  1572. package/dist/page/core/bar-measure.d.ts +32 -0
  1573. package/dist/page/core/bar-measure.d.ts.map +1 -0
  1574. package/dist/page/core/bar-measure.js +34 -0
  1575. package/dist/page/core/claims.d.ts +66 -0
  1576. package/dist/page/core/claims.d.ts.map +1 -0
  1577. package/dist/page/core/claims.js +84 -0
  1578. package/dist/page/core/docking.d.ts +66 -0
  1579. package/dist/page/core/docking.d.ts.map +1 -0
  1580. package/dist/page/core/docking.js +26 -0
  1581. package/dist/page/core/panel-store.d.ts +24 -0
  1582. package/dist/page/core/panel-store.d.ts.map +1 -0
  1583. package/dist/page/core/panel-store.js +35 -0
  1584. package/dist/page/define-overlays.d.ts +95 -0
  1585. package/dist/page/define-overlays.d.ts.map +1 -0
  1586. package/dist/page/define-overlays.js +56 -0
  1587. package/dist/page/dock.d.ts +67 -0
  1588. package/dist/page/dock.d.ts.map +1 -0
  1589. package/dist/page/dock.js +179 -0
  1590. package/dist/page/empty-state.d.ts +49 -0
  1591. package/dist/page/empty-state.d.ts.map +1 -0
  1592. package/dist/page/empty-state.js +67 -0
  1593. package/dist/page/error-cause.d.ts +13 -0
  1594. package/dist/page/error-cause.d.ts.map +1 -0
  1595. package/dist/page/error-cause.js +14 -0
  1596. package/dist/page/facts.d.ts +33 -0
  1597. package/dist/page/facts.d.ts.map +1 -0
  1598. package/dist/page/facts.js +16 -0
  1599. package/dist/page/favorites.d.ts +59 -0
  1600. package/dist/page/favorites.d.ts.map +1 -0
  1601. package/dist/page/favorites.js +106 -0
  1602. package/dist/page/index.d.ts +43 -0
  1603. package/dist/page/index.d.ts.map +1 -0
  1604. package/dist/page/index.js +58 -0
  1605. package/dist/page/mdx.d.ts +18 -0
  1606. package/dist/page/mdx.d.ts.map +1 -0
  1607. package/dist/page/mdx.js +86 -0
  1608. package/dist/page/overlay-host.d.ts +23 -0
  1609. package/dist/page/overlay-host.d.ts.map +1 -0
  1610. package/dist/page/overlay-host.js +78 -0
  1611. package/dist/page/page-aside.d.ts +66 -0
  1612. package/dist/page/page-aside.d.ts.map +1 -0
  1613. package/dist/page/page-aside.js +273 -0
  1614. package/dist/page/page-bar.d.ts +85 -0
  1615. package/dist/page/page-bar.d.ts.map +1 -0
  1616. package/dist/page/page-bar.js +512 -0
  1617. package/dist/page/page-summary.d.ts +62 -0
  1618. package/dist/page/page-summary.d.ts.map +1 -0
  1619. package/dist/page/page-summary.js +112 -0
  1620. package/dist/page/page-tabs.d.ts +9 -0
  1621. package/dist/page/page-tabs.d.ts.map +1 -0
  1622. package/dist/page/page-tabs.js +49 -0
  1623. package/dist/page/page.d.ts +87 -0
  1624. package/dist/page/page.d.ts.map +1 -0
  1625. package/dist/page/page.js +101 -0
  1626. package/dist/page/page.test-support.d.ts +25 -0
  1627. package/dist/page/page.test-support.d.ts.map +1 -0
  1628. package/dist/page/page.test-support.js +81 -0
  1629. package/dist/page/panel-steps.d.ts +19 -0
  1630. package/dist/page/panel-steps.d.ts.map +1 -0
  1631. package/dist/page/panel-steps.js +66 -0
  1632. package/dist/page/parts/inner-nav.d.ts +55 -0
  1633. package/dist/page/parts/inner-nav.d.ts.map +1 -0
  1634. package/dist/page/parts/inner-nav.js +261 -0
  1635. package/dist/page/parts/inner-nav.test-support.d.ts +8 -0
  1636. package/dist/page/parts/inner-nav.test-support.d.ts.map +1 -0
  1637. package/dist/page/parts/inner-nav.test-support.js +59 -0
  1638. package/dist/page/parts/split-page.d.ts +35 -0
  1639. package/dist/page/parts/split-page.d.ts.map +1 -0
  1640. package/dist/page/parts/split-page.js +161 -0
  1641. package/dist/page/peek-window.d.ts +38 -0
  1642. package/dist/page/peek-window.d.ts.map +1 -0
  1643. package/dist/page/peek-window.js +226 -0
  1644. package/dist/page/peek.d.ts +112 -0
  1645. package/dist/page/peek.d.ts.map +1 -0
  1646. package/dist/page/peek.js +498 -0
  1647. package/dist/page/present-glyph.d.ts +9 -0
  1648. package/dist/page/present-glyph.d.ts.map +1 -0
  1649. package/dist/page/present-glyph.js +31 -0
  1650. package/dist/page/property-list.d.ts +127 -0
  1651. package/dist/page/property-list.d.ts.map +1 -0
  1652. package/dist/page/property-list.js +335 -0
  1653. package/dist/page/prose.d.ts +28 -0
  1654. package/dist/page/prose.d.ts.map +1 -0
  1655. package/dist/page/prose.js +25 -0
  1656. package/dist/page/query-state.d.ts +41 -0
  1657. package/dist/page/query-state.d.ts.map +1 -0
  1658. package/dist/page/query-state.js +79 -0
  1659. package/dist/page/record-panel.d.ts +106 -0
  1660. package/dist/page/record-panel.d.ts.map +1 -0
  1661. package/dist/page/record-panel.js +242 -0
  1662. package/dist/page/refresh-button.d.ts +41 -0
  1663. package/dist/page/refresh-button.d.ts.map +1 -0
  1664. package/dist/page/refresh-button.js +148 -0
  1665. package/dist/page/search-hint.d.ts +13 -0
  1666. package/dist/page/search-hint.d.ts.map +1 -0
  1667. package/dist/page/search-hint.js +33 -0
  1668. package/dist/page/section.d.ts +30 -0
  1669. package/dist/page/section.d.ts.map +1 -0
  1670. package/dist/page/section.js +96 -0
  1671. package/dist/page/settings-layout.d.ts +36 -0
  1672. package/dist/page/settings-layout.d.ts.map +1 -0
  1673. package/dist/page/settings-layout.js +83 -0
  1674. package/dist/page/toast-host.d.ts +15 -0
  1675. package/dist/page/toast-host.d.ts.map +1 -0
  1676. package/dist/page/toast-host.js +57 -0
  1677. package/dist/page/toc-click-pin.d.ts.map +1 -0
  1678. package/dist/page/toc-click-pin.js +112 -0
  1679. package/dist/page/toc-spy.d.ts.map +1 -0
  1680. package/dist/page/toc.d.ts +43 -0
  1681. package/dist/page/toc.d.ts.map +1 -0
  1682. package/dist/page/toc.js +151 -0
  1683. package/dist/page/use-size-class.d.ts +20 -0
  1684. package/dist/page/use-size-class.d.ts.map +1 -0
  1685. package/dist/page/use-size-class.js +23 -0
  1686. package/dist/register.d.ts +11 -48
  1687. package/dist/register.d.ts.map +1 -1
  1688. package/dist/router/controls/brand.d.ts +72 -0
  1689. package/dist/router/controls/brand.d.ts.map +1 -0
  1690. package/dist/router/controls/brand.js +37 -0
  1691. package/dist/router/controls/codec.d.ts +78 -0
  1692. package/dist/router/controls/codec.d.ts.map +1 -0
  1693. package/dist/router/controls/codec.js +112 -0
  1694. package/dist/router/controls/define.d.ts +234 -0
  1695. package/dist/router/controls/define.d.ts.map +1 -0
  1696. package/dist/router/controls/define.js +379 -0
  1697. package/dist/router/controls/field.d.ts +156 -0
  1698. package/dist/router/controls/field.d.ts.map +1 -0
  1699. package/dist/router/controls/field.js +104 -0
  1700. package/dist/router/controls/href.d.ts +5 -0
  1701. package/dist/router/controls/href.d.ts.map +1 -0
  1702. package/dist/router/controls/href.js +19 -0
  1703. package/dist/router/controls/middleware.d.ts +34 -0
  1704. package/dist/router/controls/middleware.d.ts.map +1 -0
  1705. package/dist/router/controls/middleware.js +41 -0
  1706. package/dist/router/controls/ownership.d.ts +19 -0
  1707. package/dist/router/controls/ownership.d.ts.map +1 -0
  1708. package/dist/router/controls/ownership.js +57 -0
  1709. package/dist/router/controls/precedence.d.ts +16 -0
  1710. package/dist/router/controls/precedence.d.ts.map +1 -0
  1711. package/dist/router/controls/precedence.js +8 -0
  1712. package/dist/router/controls/values.d.ts +24 -0
  1713. package/dist/router/controls/values.d.ts.map +1 -0
  1714. package/dist/router/controls/values.js +0 -0
  1715. package/dist/router/controls/widgets.d.ts +131 -0
  1716. package/dist/router/controls/widgets.d.ts.map +1 -0
  1717. package/dist/router/controls/widgets.js +199 -0
  1718. package/dist/router/defaults.d.ts +74 -0
  1719. package/dist/router/defaults.d.ts.map +1 -0
  1720. package/dist/router/defaults.js +45 -0
  1721. package/dist/router/index.d.ts +17 -0
  1722. package/dist/router/index.d.ts.map +1 -0
  1723. package/dist/router/index.js +19 -0
  1724. package/dist/router/nav/anchor.d.ts +8 -0
  1725. package/dist/router/nav/anchor.d.ts.map +1 -0
  1726. package/dist/router/nav/anchor.js +18 -0
  1727. package/dist/router/nav/define-nav.d.ts +46 -0
  1728. package/dist/router/nav/define-nav.d.ts.map +1 -0
  1729. package/dist/router/nav/define-nav.js +6 -0
  1730. package/dist/router/nav/read-labels.d.ts +4 -0
  1731. package/dist/router/nav/read-labels.d.ts.map +1 -0
  1732. package/dist/router/nav/read-labels.js +72 -0
  1733. package/dist/router/nav/registry.d.ts +9 -0
  1734. package/dist/router/nav/registry.d.ts.map +1 -0
  1735. package/dist/router/nav/registry.js +22 -0
  1736. package/dist/router/nav/resolve-active.d.ts +46 -0
  1737. package/dist/router/nav/resolve-active.d.ts.map +1 -0
  1738. package/dist/router/nav/resolve-active.js +84 -0
  1739. package/dist/router/nav/types.d.ts +274 -0
  1740. package/dist/router/nav/types.d.ts.map +1 -0
  1741. package/dist/router/nav/types.js +0 -0
  1742. package/dist/router/nav-target.d.ts +40 -0
  1743. package/dist/router/nav-target.d.ts.map +1 -0
  1744. package/dist/router/nav-target.js +55 -0
  1745. package/dist/router/peek.d.ts +107 -0
  1746. package/dist/router/peek.d.ts.map +1 -0
  1747. package/dist/router/peek.js +224 -0
  1748. package/dist/router/unsaved-guard.d.ts +30 -0
  1749. package/dist/router/unsaved-guard.d.ts.map +1 -0
  1750. package/dist/router/unsaved-guard.js +30 -0
  1751. package/dist/shell/app-shell-host.d.ts +27 -0
  1752. package/dist/shell/app-shell-host.d.ts.map +1 -0
  1753. package/dist/shell/app-shell-host.js +52 -0
  1754. package/dist/shell/app-shell.d.ts +64 -0
  1755. package/dist/shell/app-shell.d.ts.map +1 -0
  1756. package/dist/shell/app-shell.js +281 -0
  1757. package/dist/shell/chrome.d.ts +45 -0
  1758. package/dist/shell/chrome.d.ts.map +1 -0
  1759. package/dist/shell/chrome.js +63 -0
  1760. package/dist/shell/commands/area.d.ts +6 -0
  1761. package/dist/shell/commands/area.d.ts.map +1 -0
  1762. package/dist/shell/commands/area.js +11 -0
  1763. package/dist/shell/commands/bindings.d.ts +51 -0
  1764. package/dist/shell/commands/bindings.d.ts.map +1 -0
  1765. package/dist/shell/commands/bindings.js +93 -0
  1766. package/dist/shell/commands/command-palette.d.ts +71 -0
  1767. package/dist/shell/commands/command-palette.d.ts.map +1 -0
  1768. package/dist/shell/commands/command-palette.js +269 -0
  1769. package/dist/shell/commands/define-commands.d.ts +127 -0
  1770. package/dist/shell/commands/define-commands.d.ts.map +1 -0
  1771. package/dist/shell/commands/define-commands.js +171 -0
  1772. package/dist/shell/commands/nav-commands.d.ts +14 -0
  1773. package/dist/shell/commands/nav-commands.d.ts.map +1 -0
  1774. package/dist/shell/commands/nav-commands.js +34 -0
  1775. package/dist/shell/commands/palette-sheet.d.ts +13 -0
  1776. package/dist/shell/commands/palette-sheet.d.ts.map +1 -0
  1777. package/dist/shell/commands/palette-sheet.js +23 -0
  1778. package/dist/shell/commands/palette-sources.d.ts +64 -0
  1779. package/dist/shell/commands/palette-sources.d.ts.map +1 -0
  1780. package/dist/shell/commands/palette-sources.js +106 -0
  1781. package/dist/shell/commands/rank.d.ts +23 -0
  1782. package/dist/shell/commands/rank.d.ts.map +1 -0
  1783. package/dist/shell/commands/rank.js +15 -0
  1784. package/dist/shell/commands/runnable.d.ts +8 -0
  1785. package/dist/shell/commands/runnable.d.ts.map +1 -0
  1786. package/dist/shell/commands/runnable.js +71 -0
  1787. package/dist/shell/commands/shortcut-overlay.d.ts +14 -0
  1788. package/dist/shell/commands/shortcut-overlay.d.ts.map +1 -0
  1789. package/dist/shell/commands/shortcut-overlay.js +33 -0
  1790. package/dist/shell/commands/shortcut-rows.d.ts +30 -0
  1791. package/dist/shell/commands/shortcut-rows.d.ts.map +1 -0
  1792. package/dist/shell/commands/shortcut-rows.js +20 -0
  1793. package/dist/shell/contract.d.ts +191 -0
  1794. package/dist/shell/contract.d.ts.map +1 -0
  1795. package/dist/shell/contract.js +0 -0
  1796. package/dist/shell/core/badges.d.ts +32 -0
  1797. package/dist/shell/core/badges.d.ts.map +1 -0
  1798. package/dist/shell/core/badges.js +41 -0
  1799. package/dist/shell/core/block-model.d.ts +100 -0
  1800. package/dist/shell/core/block-model.d.ts.map +1 -0
  1801. package/dist/shell/core/block-model.js +36 -0
  1802. package/dist/shell/core/column.d.ts +24 -0
  1803. package/dist/shell/core/column.d.ts.map +1 -0
  1804. package/dist/shell/core/column.js +33 -0
  1805. package/dist/shell/core/crumbs.d.ts +75 -0
  1806. package/dist/shell/core/crumbs.d.ts.map +1 -0
  1807. package/dist/shell/core/crumbs.js +54 -0
  1808. package/dist/shell/core/header-tiers.d.ts +49 -0
  1809. package/dist/shell/core/header-tiers.d.ts.map +1 -0
  1810. package/dist/shell/core/header-tiers.js +37 -0
  1811. package/dist/shell/core/nav-runtime.d.ts +42 -0
  1812. package/dist/shell/core/nav-runtime.d.ts.map +1 -0
  1813. package/dist/shell/core/nav-runtime.js +44 -0
  1814. package/dist/shell/core/phone-groups.d.ts +41 -0
  1815. package/dist/shell/core/phone-groups.d.ts.map +1 -0
  1816. package/dist/shell/core/phone-groups.js +33 -0
  1817. package/dist/shell/core/projector.d.ts +82 -0
  1818. package/dist/shell/core/projector.d.ts.map +1 -0
  1819. package/dist/shell/core/projector.js +92 -0
  1820. package/dist/shell/core/types.d.ts +70 -0
  1821. package/dist/shell/core/types.d.ts.map +1 -0
  1822. package/dist/shell/core/types.js +0 -0
  1823. package/dist/shell/favorites-host.d.ts +4 -0
  1824. package/dist/shell/favorites-host.d.ts.map +1 -0
  1825. package/dist/shell/favorites-host.js +41 -0
  1826. package/dist/shell/index.d.ts +12 -203
  1827. package/dist/shell/index.d.ts.map +1 -1
  1828. package/dist/shell/index.js +12 -253
  1829. package/dist/shell/menu-template.d.ts +42 -0
  1830. package/dist/shell/menu-template.d.ts.map +1 -0
  1831. package/dist/shell/menu-template.js +72 -0
  1832. package/dist/shell/parts/a11y.d.ts +51 -0
  1833. package/dist/shell/parts/a11y.d.ts.map +1 -0
  1834. package/dist/shell/parts/a11y.js +147 -0
  1835. package/dist/shell/parts/account.d.ts +8 -0
  1836. package/dist/shell/parts/account.d.ts.map +1 -0
  1837. package/dist/shell/parts/account.js +115 -0
  1838. package/dist/shell/parts/blocks.d.ts +12 -0
  1839. package/dist/shell/parts/blocks.d.ts.map +1 -0
  1840. package/dist/shell/parts/blocks.js +209 -0
  1841. package/dist/shell/parts/crumbs.d.ts +6 -0
  1842. package/dist/shell/parts/crumbs.d.ts.map +1 -0
  1843. package/dist/shell/parts/crumbs.js +63 -0
  1844. package/dist/shell/parts/grid.d.ts +166 -0
  1845. package/dist/shell/parts/grid.d.ts.map +1 -0
  1846. package/dist/shell/parts/grid.js +395 -0
  1847. package/dist/shell/parts/header-kebab.d.ts +21 -0
  1848. package/dist/shell/parts/header-kebab.d.ts.map +1 -0
  1849. package/dist/shell/parts/header-kebab.js +89 -0
  1850. package/dist/shell/parts/header.d.ts +34 -0
  1851. package/dist/shell/parts/header.d.ts.map +1 -0
  1852. package/dist/shell/parts/header.js +353 -0
  1853. package/dist/shell/parts/mobile/retap.d.ts +42 -0
  1854. package/dist/shell/parts/mobile/retap.d.ts.map +1 -0
  1855. package/dist/shell/parts/mobile/retap.js +52 -0
  1856. package/dist/shell/parts/mobile/section-nav/chrome-state.d.ts +5 -0
  1857. package/dist/shell/parts/mobile/section-nav/chrome-state.d.ts.map +1 -0
  1858. package/dist/shell/parts/mobile/section-nav/chrome-state.js +39 -0
  1859. package/dist/shell/parts/mobile/section-nav/drawer.d.ts +4 -0
  1860. package/dist/shell/parts/mobile/section-nav/drawer.d.ts.map +1 -0
  1861. package/dist/shell/parts/mobile/section-nav/drawer.js +231 -0
  1862. package/dist/shell/parts/mobile/section-nav/host.d.ts +37 -0
  1863. package/dist/shell/parts/mobile/section-nav/host.d.ts.map +1 -0
  1864. package/dist/shell/parts/mobile/section-nav/host.js +52 -0
  1865. package/dist/shell/parts/mobile/section-nav/measure.d.ts +2 -0
  1866. package/dist/shell/parts/mobile/section-nav/measure.d.ts.map +1 -0
  1867. package/dist/shell/parts/mobile/section-nav/measure.js +19 -0
  1868. package/dist/shell/parts/mobile/section-nav/model.d.ts +38 -0
  1869. package/dist/shell/parts/mobile/section-nav/model.d.ts.map +1 -0
  1870. package/dist/shell/parts/mobile/section-nav/model.js +63 -0
  1871. package/dist/shell/parts/mobile/section-nav/parts.d.ts +34 -0
  1872. package/dist/shell/parts/mobile/section-nav/parts.d.ts.map +1 -0
  1873. package/dist/shell/parts/mobile/section-nav/parts.js +86 -0
  1874. package/dist/shell/parts/mobile/section-nav/phone-actions.d.ts +13 -0
  1875. package/dist/shell/parts/mobile/section-nav/phone-actions.d.ts.map +1 -0
  1876. package/dist/shell/parts/mobile/section-nav/phone-actions.js +65 -0
  1877. package/dist/shell/parts/mobile/section-nav/phone-rail.d.ts +10 -0
  1878. package/dist/shell/parts/mobile/section-nav/phone-rail.d.ts.map +1 -0
  1879. package/dist/shell/parts/mobile/section-nav/phone-rail.js +187 -0
  1880. package/dist/shell/parts/mobile/section-nav/rows.d.ts +5 -0
  1881. package/dist/shell/parts/mobile/section-nav/rows.d.ts.map +1 -0
  1882. package/dist/shell/parts/mobile/section-nav/rows.js +63 -0
  1883. package/dist/shell/parts/mobile/section-nav/safe.d.ts +8 -0
  1884. package/dist/shell/parts/mobile/section-nav/safe.d.ts.map +1 -0
  1885. package/dist/shell/parts/mobile/section-nav/safe.js +4 -0
  1886. package/dist/shell/parts/mobile/section-nav/section-bar.d.ts +24 -0
  1887. package/dist/shell/parts/mobile/section-nav/section-bar.d.ts.map +1 -0
  1888. package/dist/shell/parts/mobile/section-nav/section-bar.js +101 -0
  1889. package/dist/shell/parts/mobile/section-nav/snaps.d.ts +25 -0
  1890. package/dist/shell/parts/mobile/section-nav/snaps.d.ts.map +1 -0
  1891. package/dist/shell/parts/mobile/section-nav/snaps.js +17 -0
  1892. package/dist/shell/parts/mounts.d.ts +14 -0
  1893. package/dist/shell/parts/mounts.d.ts.map +1 -0
  1894. package/dist/shell/parts/mounts.js +29 -0
  1895. package/dist/shell/parts/nav-row-menu.d.ts +17 -0
  1896. package/dist/shell/parts/nav-row-menu.d.ts.map +1 -0
  1897. package/dist/shell/parts/nav-row-menu.js +56 -0
  1898. package/dist/shell/parts/print.d.ts +14 -0
  1899. package/dist/shell/parts/print.d.ts.map +1 -0
  1900. package/dist/shell/parts/print.js +33 -0
  1901. package/dist/shell/parts/rail-favorites.d.ts +4 -0
  1902. package/dist/shell/parts/rail-favorites.d.ts.map +1 -0
  1903. package/dist/shell/parts/rail-favorites.js +118 -0
  1904. package/dist/shell/parts/rail-folds.d.ts +5 -0
  1905. package/dist/shell/parts/rail-folds.d.ts.map +1 -0
  1906. package/dist/shell/parts/rail-folds.js +32 -0
  1907. package/dist/shell/parts/rail-resize.d.ts +3 -0
  1908. package/dist/shell/parts/rail-resize.d.ts.map +1 -0
  1909. package/dist/shell/parts/rail-resize.js +92 -0
  1910. package/dist/shell/parts/rail-rows.d.ts +9 -0
  1911. package/dist/shell/parts/rail-rows.d.ts.map +1 -0
  1912. package/dist/shell/parts/rail-rows.js +169 -0
  1913. package/dist/shell/parts/rail-search.d.ts +10 -0
  1914. package/dist/shell/parts/rail-search.d.ts.map +1 -0
  1915. package/dist/shell/parts/rail-search.js +56 -0
  1916. package/dist/shell/parts/rail-section.d.ts +7 -0
  1917. package/dist/shell/parts/rail-section.d.ts.map +1 -0
  1918. package/dist/shell/parts/rail-section.js +112 -0
  1919. package/dist/shell/parts/rail-test-kit.d.ts +12 -0
  1920. package/dist/shell/parts/rail-test-kit.d.ts.map +1 -0
  1921. package/dist/shell/parts/rail-test-kit.js +38 -0
  1922. package/dist/shell/parts/rail-text.d.ts +9 -0
  1923. package/dist/shell/parts/rail-text.d.ts.map +1 -0
  1924. package/dist/shell/parts/rail-text.js +16 -0
  1925. package/dist/shell/parts/rail.d.ts +19 -0
  1926. package/dist/shell/parts/rail.d.ts.map +1 -0
  1927. package/dist/shell/parts/rail.js +117 -0
  1928. package/dist/shell/parts/section-column.d.ts +11 -0
  1929. package/dist/shell/parts/section-column.d.ts.map +1 -0
  1930. package/dist/shell/parts/section-column.js +89 -0
  1931. package/dist/shell/parts/settings.d.ts +18 -0
  1932. package/dist/shell/parts/settings.d.ts.map +1 -0
  1933. package/dist/shell/parts/settings.js +73 -0
  1934. package/dist/shell/parts/top-nav.d.ts +20 -0
  1935. package/dist/shell/parts/top-nav.d.ts.map +1 -0
  1936. package/dist/shell/parts/top-nav.js +143 -0
  1937. package/dist/shell/parts/workspace-switcher.d.ts +19 -0
  1938. package/dist/shell/parts/workspace-switcher.d.ts.map +1 -0
  1939. package/dist/shell/parts/workspace-switcher.js +98 -0
  1940. package/dist/static/article-layout.d.ts +62 -0
  1941. package/dist/static/article-layout.d.ts.map +1 -0
  1942. package/dist/static/article-layout.js +129 -0
  1943. package/dist/static/bento.d.ts +50 -0
  1944. package/dist/static/bento.d.ts.map +1 -0
  1945. package/dist/static/bento.js +49 -0
  1946. package/dist/static/blocks.d.ts +25 -0
  1947. package/dist/static/blocks.d.ts.map +1 -0
  1948. package/dist/static/blocks.js +34 -0
  1949. package/dist/static/call-to-action.d.ts +23 -0
  1950. package/dist/static/call-to-action.d.ts.map +1 -0
  1951. package/dist/static/call-to-action.js +36 -0
  1952. package/dist/static/callout.d.ts +27 -0
  1953. package/dist/static/callout.d.ts.map +1 -0
  1954. package/dist/static/callout.js +57 -0
  1955. package/dist/static/changelog.d.ts +41 -0
  1956. package/dist/static/changelog.d.ts.map +1 -0
  1957. package/dist/static/changelog.js +47 -0
  1958. package/dist/static/code-block.d.ts +28 -0
  1959. package/dist/static/code-block.d.ts.map +1 -0
  1960. package/dist/static/code-block.js +34 -0
  1961. package/dist/static/comparison.d.ts +55 -0
  1962. package/dist/static/comparison.d.ts.map +1 -0
  1963. package/dist/static/comparison.js +100 -0
  1964. package/dist/static/data-table.d.ts +35 -0
  1965. package/dist/static/data-table.d.ts.map +1 -0
  1966. package/dist/static/data-table.js +46 -0
  1967. package/dist/static/dates.d.ts +5 -0
  1968. package/dist/static/dates.d.ts.map +1 -0
  1969. package/dist/static/dates.js +11 -0
  1970. package/dist/static/form.d.ts +71 -0
  1971. package/dist/static/form.d.ts.map +1 -0
  1972. package/dist/static/form.js +88 -0
  1973. package/dist/static/glyphs.d.ts +20 -0
  1974. package/dist/static/glyphs.d.ts.map +1 -0
  1975. package/dist/static/glyphs.js +33 -0
  1976. package/dist/static/hero.d.ts +36 -0
  1977. package/dist/static/hero.d.ts.map +1 -0
  1978. package/dist/static/hero.js +36 -0
  1979. package/dist/static/index.d.ts +47 -0
  1980. package/dist/static/index.d.ts.map +1 -0
  1981. package/dist/static/index.js +51 -0
  1982. package/dist/static/markup.d.ts +21 -0
  1983. package/dist/static/markup.d.ts.map +1 -0
  1984. package/dist/static/markup.js +17 -0
  1985. package/dist/static/mdx.d.ts +28 -0
  1986. package/dist/static/mdx.d.ts.map +1 -0
  1987. package/dist/static/mdx.js +74 -0
  1988. package/dist/static/post-list.d.ts +43 -0
  1989. package/dist/static/post-list.d.ts.map +1 -0
  1990. package/dist/static/post-list.js +52 -0
  1991. package/dist/static/question-list.d.ts +36 -0
  1992. package/dist/static/question-list.d.ts.map +1 -0
  1993. package/dist/static/question-list.js +43 -0
  1994. package/dist/static/site-footer.d.ts +28 -0
  1995. package/dist/static/site-footer.d.ts.map +1 -0
  1996. package/dist/static/site-footer.js +39 -0
  1997. package/dist/static/site-header.d.ts +57 -0
  1998. package/dist/static/site-header.d.ts.map +1 -0
  1999. package/dist/static/site-header.js +250 -0
  2000. package/dist/static/site-nav.d.ts +38 -0
  2001. package/dist/static/site-nav.d.ts.map +1 -0
  2002. package/dist/static/site-nav.js +29 -0
  2003. package/dist/static/site-script.d.ts +20 -0
  2004. package/dist/static/site-script.d.ts.map +1 -0
  2005. package/dist/static/site-script.js +89 -0
  2006. package/dist/static/tabs.d.ts +46 -0
  2007. package/dist/static/tabs.d.ts.map +1 -0
  2008. package/dist/static/tabs.js +53 -0
  2009. package/dist/static/theme-switch.d.ts +23 -0
  2010. package/dist/static/theme-switch.d.ts.map +1 -0
  2011. package/dist/static/theme-switch.js +35 -0
  2012. package/dist/static/toc.d.ts +23 -0
  2013. package/dist/static/toc.d.ts.map +1 -0
  2014. package/dist/static/toc.js +36 -0
  2015. package/dist/static/types.d.ts +60 -0
  2016. package/dist/static/types.d.ts.map +1 -0
  2017. package/dist/static/types.js +0 -0
  2018. package/dist/surfaces.d.ts +297 -193
  2019. package/dist/surfaces.d.ts.map +1 -1
  2020. package/dist/surfaces.js +268 -326
  2021. package/dist/table/contract.d.ts +576 -0
  2022. package/dist/table/contract.d.ts.map +1 -0
  2023. package/dist/table/contract.js +0 -0
  2024. package/dist/table/core/arrange.d.ts +44 -0
  2025. package/dist/table/core/arrange.d.ts.map +1 -0
  2026. package/dist/table/core/arrange.js +51 -0
  2027. package/dist/table/core/cell-parts.d.ts +67 -0
  2028. package/dist/table/core/cell-parts.d.ts.map +1 -0
  2029. package/dist/table/core/cell-parts.js +90 -0
  2030. package/dist/table/core/codec.d.ts +84 -0
  2031. package/dist/table/core/codec.d.ts.map +1 -0
  2032. package/dist/table/core/codec.js +237 -0
  2033. package/dist/table/core/features.d.ts +111 -0
  2034. package/dist/table/core/features.d.ts.map +1 -0
  2035. package/dist/table/core/features.js +81 -0
  2036. package/dist/table/core/filters.d.ts +77 -0
  2037. package/dist/table/core/filters.d.ts.map +1 -0
  2038. package/dist/table/core/filters.js +123 -0
  2039. package/dist/table/core/keyboard.d.ts +64 -0
  2040. package/dist/table/core/keyboard.d.ts.map +1 -0
  2041. package/dist/table/core/keyboard.js +308 -0
  2042. package/dist/table/core/kind-icons.d.ts +5 -0
  2043. package/dist/table/core/kind-icons.d.ts.map +1 -0
  2044. package/dist/table/core/kind-icons.js +94 -0
  2045. package/dist/table/core/kinds-cells.d.ts +325 -0
  2046. package/dist/table/core/kinds-cells.d.ts.map +1 -0
  2047. package/dist/table/core/kinds-cells.js +834 -0
  2048. package/dist/table/core/kinds-codec.d.ts +34 -0
  2049. package/dist/table/core/kinds-codec.d.ts.map +1 -0
  2050. package/dist/table/core/kinds-codec.js +30 -0
  2051. package/dist/table/core/kinds-engine.d.ts +7 -0
  2052. package/dist/table/core/kinds-engine.d.ts.map +1 -0
  2053. package/dist/table/core/kinds-engine.js +37 -0
  2054. package/dist/table/core/kinds-spec.d.ts +253 -0
  2055. package/dist/table/core/kinds-spec.d.ts.map +1 -0
  2056. package/dist/table/core/kinds-spec.js +298 -0
  2057. package/dist/table/core/kinds.d.ts +550 -0
  2058. package/dist/table/core/kinds.d.ts.map +1 -0
  2059. package/dist/table/core/kinds.js +1387 -0
  2060. package/dist/table/core/plan.d.ts +131 -0
  2061. package/dist/table/core/plan.d.ts.map +1 -0
  2062. package/dist/table/core/plan.js +252 -0
  2063. package/dist/table/core/selection.d.ts +47 -0
  2064. package/dist/table/core/selection.d.ts.map +1 -0
  2065. package/dist/table/core/selection.js +85 -0
  2066. package/dist/table/core/state.d.ts +76 -0
  2067. package/dist/table/core/state.d.ts.map +1 -0
  2068. package/dist/table/core/state.js +160 -0
  2069. package/dist/table/index.d.ts +25 -15
  2070. package/dist/table/index.d.ts.map +1 -1
  2071. package/dist/table/index.js +21 -4
  2072. package/dist/table/layouts/add-menu.d.ts +16 -0
  2073. package/dist/table/layouts/add-menu.d.ts.map +1 -0
  2074. package/dist/table/layouts/add-menu.js +35 -0
  2075. package/dist/table/layouts/board-layout.d.ts +11 -0
  2076. package/dist/table/layouts/board-layout.d.ts.map +1 -0
  2077. package/dist/table/layouts/board-layout.js +182 -0
  2078. package/dist/table/layouts/card-tick.d.ts +15 -0
  2079. package/dist/table/layouts/card-tick.d.ts.map +1 -0
  2080. package/dist/table/layouts/card-tick.js +28 -0
  2081. package/dist/table/layouts/gallery-layout.d.ts +6 -0
  2082. package/dist/table/layouts/gallery-layout.d.ts.map +1 -0
  2083. package/dist/table/layouts/gallery-layout.js +135 -0
  2084. package/dist/table/layouts/glyphs.d.ts +14 -0
  2085. package/dist/table/layouts/glyphs.d.ts.map +1 -0
  2086. package/dist/table/layouts/glyphs.js +34 -0
  2087. package/dist/table/layouts/layout-phase.d.ts +18 -0
  2088. package/dist/table/layouts/layout-phase.d.ts.map +1 -0
  2089. package/dist/table/layouts/layout-phase.js +107 -0
  2090. package/dist/table/layouts/model.d.ts +57 -0
  2091. package/dist/table/layouts/model.d.ts.map +1 -0
  2092. package/dist/table/layouts/model.js +109 -0
  2093. package/dist/table/layouts/specs.d.ts +26 -0
  2094. package/dist/table/layouts/specs.d.ts.map +1 -0
  2095. package/dist/table/layouts/specs.js +42 -0
  2096. package/dist/table/layouts/toggle.d.ts +31 -0
  2097. package/dist/table/layouts/toggle.d.ts.map +1 -0
  2098. package/dist/table/layouts/toggle.js +55 -0
  2099. package/dist/table/parts/add-filter.d.ts +7 -0
  2100. package/dist/table/parts/add-filter.d.ts.map +1 -0
  2101. package/dist/table/parts/add-filter.js +47 -0
  2102. package/dist/table/parts/auto-detail.d.ts +17 -0
  2103. package/dist/table/parts/auto-detail.d.ts.map +1 -0
  2104. package/dist/table/parts/auto-detail.js +24 -0
  2105. package/dist/table/parts/body.d.ts +57 -0
  2106. package/dist/table/parts/body.d.ts.map +1 -0
  2107. package/dist/table/parts/body.js +335 -0
  2108. package/dist/table/parts/bulk-bar.d.ts +40 -0
  2109. package/dist/table/parts/bulk-bar.d.ts.map +1 -0
  2110. package/dist/table/parts/bulk-bar.js +172 -0
  2111. package/dist/table/parts/category-order.d.ts +14 -0
  2112. package/dist/table/parts/category-order.d.ts.map +1 -0
  2113. package/dist/table/parts/category-order.js +52 -0
  2114. package/dist/table/parts/cell-filter.d.ts +42 -0
  2115. package/dist/table/parts/cell-filter.d.ts.map +1 -0
  2116. package/dist/table/parts/cell-filter.js +52 -0
  2117. package/dist/table/parts/chips.d.ts +26 -0
  2118. package/dist/table/parts/chips.d.ts.map +1 -0
  2119. package/dist/table/parts/chips.js +81 -0
  2120. package/dist/table/parts/column-actions.d.ts +48 -0
  2121. package/dist/table/parts/column-actions.d.ts.map +1 -0
  2122. package/dist/table/parts/column-actions.js +170 -0
  2123. package/dist/table/parts/data-table.d.ts +37 -0
  2124. package/dist/table/parts/data-table.d.ts.map +1 -0
  2125. package/dist/table/parts/data-table.js +338 -0
  2126. package/dist/table/parts/detail-sheet.d.ts +9 -0
  2127. package/dist/table/parts/detail-sheet.d.ts.map +1 -0
  2128. package/dist/table/parts/detail-sheet.js +102 -0
  2129. package/dist/table/parts/filter-text.d.ts +12 -0
  2130. package/dist/table/parts/filter-text.d.ts.map +1 -0
  2131. package/dist/table/parts/filter-text.js +34 -0
  2132. package/dist/table/parts/footer-model.d.ts +54 -0
  2133. package/dist/table/parts/footer-model.d.ts.map +1 -0
  2134. package/dist/table/parts/footer-model.js +73 -0
  2135. package/dist/table/parts/footer.d.ts +38 -0
  2136. package/dist/table/parts/footer.d.ts.map +1 -0
  2137. package/dist/table/parts/footer.js +131 -0
  2138. package/dist/table/parts/group-row-model.d.ts +36 -0
  2139. package/dist/table/parts/group-row-model.d.ts.map +1 -0
  2140. package/dist/table/parts/group-row-model.js +50 -0
  2141. package/dist/table/parts/group-row.d.ts +32 -0
  2142. package/dist/table/parts/group-row.d.ts.map +1 -0
  2143. package/dist/table/parts/group-row.js +143 -0
  2144. package/dist/table/parts/head.d.ts +53 -0
  2145. package/dist/table/parts/head.d.ts.map +1 -0
  2146. package/dist/table/parts/head.js +462 -0
  2147. package/dist/table/parts/live-row-actions.d.ts +9 -0
  2148. package/dist/table/parts/live-row-actions.d.ts.map +1 -0
  2149. package/dist/table/parts/live-row-actions.js +62 -0
  2150. package/dist/table/parts/order-list.d.ts +22 -0
  2151. package/dist/table/parts/order-list.d.ts.map +1 -0
  2152. package/dist/table/parts/order-list.js +166 -0
  2153. package/dist/table/parts/pager.d.ts +35 -0
  2154. package/dist/table/parts/pager.d.ts.map +1 -0
  2155. package/dist/table/parts/pager.js +184 -0
  2156. package/dist/table/parts/phases.d.ts +50 -0
  2157. package/dist/table/parts/phases.d.ts.map +1 -0
  2158. package/dist/table/parts/phases.js +200 -0
  2159. package/dist/table/parts/plus-glyph.d.ts +6 -0
  2160. package/dist/table/parts/plus-glyph.d.ts.map +1 -0
  2161. package/dist/table/parts/plus-glyph.js +8 -0
  2162. package/dist/table/parts/range-editor.d.ts +17 -0
  2163. package/dist/table/parts/range-editor.d.ts.map +1 -0
  2164. package/dist/table/parts/range-editor.js +153 -0
  2165. package/dist/table/parts/row-focus.d.ts +45 -0
  2166. package/dist/table/parts/row-focus.d.ts.map +1 -0
  2167. package/dist/table/parts/row-focus.js +131 -0
  2168. package/dist/table/parts/row-menu.d.ts +14 -0
  2169. package/dist/table/parts/row-menu.d.ts.map +1 -0
  2170. package/dist/table/parts/row-menu.js +35 -0
  2171. package/dist/table/parts/row-number.d.ts +40 -0
  2172. package/dist/table/parts/row-number.d.ts.map +1 -0
  2173. package/dist/table/parts/row-number.js +48 -0
  2174. package/dist/table/parts/search-label.d.ts +5 -0
  2175. package/dist/table/parts/search-label.d.ts.map +1 -0
  2176. package/dist/table/parts/search-label.js +9 -0
  2177. package/dist/table/parts/select-cell.d.ts +23 -0
  2178. package/dist/table/parts/select-cell.d.ts.map +1 -0
  2179. package/dist/table/parts/select-cell.js +77 -0
  2180. package/dist/table/parts/tick-column.d.ts +29 -0
  2181. package/dist/table/parts/tick-column.d.ts.map +1 -0
  2182. package/dist/table/parts/tick-column.js +40 -0
  2183. package/dist/table/parts/tiers.d.ts +40 -0
  2184. package/dist/table/parts/tiers.d.ts.map +1 -0
  2185. package/dist/table/parts/tiers.js +83 -0
  2186. package/dist/table/parts/toolbar-editor.d.ts +14 -0
  2187. package/dist/table/parts/toolbar-editor.d.ts.map +1 -0
  2188. package/dist/table/parts/toolbar-editor.js +154 -0
  2189. package/dist/table/parts/toolbar-filters.d.ts +35 -0
  2190. package/dist/table/parts/toolbar-filters.d.ts.map +1 -0
  2191. package/dist/table/parts/toolbar-filters.js +31 -0
  2192. package/dist/table/parts/toolbar.d.ts +25 -0
  2193. package/dist/table/parts/toolbar.d.ts.map +1 -0
  2194. package/dist/table/parts/toolbar.js +146 -0
  2195. package/dist/table/parts/tree-row-model.d.ts +38 -0
  2196. package/dist/table/parts/tree-row-model.d.ts.map +1 -0
  2197. package/dist/table/parts/tree-row-model.js +75 -0
  2198. package/dist/table/parts/tri-state-header.d.ts +23 -0
  2199. package/dist/table/parts/tri-state-header.d.ts.map +1 -0
  2200. package/dist/table/parts/tri-state-header.js +40 -0
  2201. package/dist/table/parts/view-door.d.ts +17 -0
  2202. package/dist/table/parts/view-door.d.ts.map +1 -0
  2203. package/dist/table/parts/view-door.js +51 -0
  2204. package/dist/table/parts/view-panel.d.ts +7 -0
  2205. package/dist/table/parts/view-panel.d.ts.map +1 -0
  2206. package/dist/table/parts/view-panel.js +605 -0
  2207. package/dist/table/parts/view-tab-menu.d.ts +17 -0
  2208. package/dist/table/parts/view-tab-menu.d.ts.map +1 -0
  2209. package/dist/table/parts/view-tab-menu.js +47 -0
  2210. package/dist/table/parts/views-model.d.ts +64 -0
  2211. package/dist/table/parts/views-model.d.ts.map +1 -0
  2212. package/dist/table/parts/views-model.js +228 -0
  2213. package/dist/table/parts/views.d.ts +126 -0
  2214. package/dist/table/parts/views.d.ts.map +1 -0
  2215. package/dist/table/parts/views.js +564 -0
  2216. package/dist/table/parts/virtual.d.ts +33 -0
  2217. package/dist/table/parts/virtual.d.ts.map +1 -0
  2218. package/dist/table/parts/virtual.js +120 -0
  2219. package/dist/table/table.css +2688 -0
  2220. package/dist/table/use-data-table.d.ts +284 -0
  2221. package/dist/table/use-data-table.d.ts.map +1 -0
  2222. package/dist/table/use-data-table.js +751 -0
  2223. package/dist/testing/dom-shims.d.ts +29 -0
  2224. package/dist/testing/dom-shims.d.ts.map +1 -0
  2225. package/dist/testing/dom-shims.js +114 -0
  2226. package/dist/testing/expect-catalog.d.ts +30 -0
  2227. package/dist/testing/expect-catalog.d.ts.map +1 -0
  2228. package/dist/testing/expect-catalog.js +102 -0
  2229. package/dist/testing/fake-channel.d.ts +17 -0
  2230. package/dist/testing/fake-channel.d.ts.map +1 -0
  2231. package/dist/testing/fake-channel.js +78 -0
  2232. package/dist/testing/index.d.ts +8 -0
  2233. package/dist/testing/index.d.ts.map +1 -0
  2234. package/dist/testing/index.js +14 -0
  2235. package/dist/testing/quality.d.ts +101 -0
  2236. package/dist/testing/quality.d.ts.map +1 -0
  2237. package/dist/testing/quality.js +419 -0
  2238. package/dist/testing/settled.d.ts +37 -0
  2239. package/dist/testing/settled.d.ts.map +1 -0
  2240. package/dist/testing/settled.js +42 -0
  2241. package/dist/testing/shell-invariants.d.ts +134 -0
  2242. package/dist/testing/shell-invariants.d.ts.map +1 -0
  2243. package/dist/testing/shell-invariants.js +274 -0
  2244. package/dist/testing/slots.d.ts +16 -0
  2245. package/dist/testing/slots.d.ts.map +1 -0
  2246. package/dist/testing/slots.js +5 -0
  2247. package/dist/tokens/accents.d.ts +37 -0
  2248. package/dist/tokens/accents.d.ts.map +1 -0
  2249. package/dist/tokens/accents.js +26 -0
  2250. package/dist/tokens/basalt-names.d.ts +3 -0
  2251. package/dist/tokens/basalt-names.d.ts.map +1 -0
  2252. package/dist/tokens/basalt-names.js +367 -0
  2253. package/dist/tokens/chart-vars.d.ts +85 -0
  2254. package/dist/tokens/chart-vars.d.ts.map +1 -0
  2255. package/dist/tokens/chart-vars.js +212 -0
  2256. package/dist/tokens/core.d.ts +68 -124
  2257. package/dist/tokens/core.d.ts.map +1 -1
  2258. package/dist/tokens/core.js +114 -197
  2259. package/dist/tokens/ctl-vars.d.ts +1 -9
  2260. package/dist/tokens/ctl-vars.d.ts.map +1 -1
  2261. package/dist/tokens/ctl-vars.js +1 -11
  2262. package/dist/tokens/derive.d.ts +132 -4
  2263. package/dist/tokens/derive.d.ts.map +1 -1
  2264. package/dist/tokens/derive.js +236 -13
  2265. package/dist/tokens/emit-fallback.d.ts +21 -0
  2266. package/dist/tokens/emit-fallback.d.ts.map +1 -0
  2267. package/dist/tokens/emit-fallback.js +22 -0
  2268. package/dist/tokens/emit-json.d.ts +19 -0
  2269. package/dist/tokens/emit-json.d.ts.map +1 -0
  2270. package/dist/tokens/emit-json.js +29 -0
  2271. package/dist/tokens/emit.d.ts +71 -0
  2272. package/dist/tokens/emit.d.ts.map +1 -0
  2273. package/dist/tokens/emit.js +179 -0
  2274. package/dist/tokens/gates.d.ts +36 -0
  2275. package/dist/tokens/gates.d.ts.map +1 -0
  2276. package/dist/tokens/gates.js +177 -0
  2277. package/dist/tokens/golden/default.css +233 -0
  2278. package/dist/tokens/golden/hue-268-vibrancy-1.css +233 -0
  2279. package/dist/tokens/hct.d.ts +1 -1
  2280. package/dist/tokens/index.d.ts +4 -2
  2281. package/dist/tokens/index.d.ts.map +1 -1
  2282. package/dist/tokens/index.js +19 -5
  2283. package/dist/tokens/motion.d.ts +140 -0
  2284. package/dist/tokens/motion.d.ts.map +1 -0
  2285. package/dist/tokens/motion.js +41 -0
  2286. package/dist/tokens/oklab.d.ts +3 -3
  2287. package/dist/tokens/oklab.d.ts.map +1 -1
  2288. package/dist/tokens/palette.d.ts +122 -146
  2289. package/dist/tokens/palette.d.ts.map +1 -1
  2290. package/dist/tokens/palette.js +81 -79
  2291. package/dist/tokens/part-vars.d.ts +8 -0
  2292. package/dist/tokens/part-vars.d.ts.map +1 -0
  2293. package/dist/tokens/part-vars.js +72 -0
  2294. package/dist/tokens/ramps.d.ts +44 -0
  2295. package/dist/tokens/ramps.d.ts.map +1 -0
  2296. package/dist/tokens/ramps.js +32 -0
  2297. package/dist/tokens/site-text.d.ts +8 -0
  2298. package/dist/tokens/site-text.d.ts.map +1 -0
  2299. package/dist/tokens/site-text.js +7 -0
  2300. package/dist/tokens/size-classes.d.ts +12 -15
  2301. package/dist/tokens/size-classes.d.ts.map +1 -1
  2302. package/dist/tokens/size-classes.js +4 -4
  2303. package/dist/tokens/space-scale.d.ts +2 -2
  2304. package/dist/tokens/status-text.d.ts +16 -1
  2305. package/dist/tokens/status-text.d.ts.map +1 -1
  2306. package/dist/tokens/status-text.js +15 -0
  2307. package/dist/tokens/table.d.ts +93 -0
  2308. package/dist/tokens/table.d.ts.map +1 -0
  2309. package/dist/tokens/table.js +599 -0
  2310. package/dist/ui/accordion.d.ts +58 -0
  2311. package/dist/ui/accordion.d.ts.map +1 -0
  2312. package/dist/ui/accordion.guard.d.ts +13 -0
  2313. package/dist/ui/accordion.guard.d.ts.map +1 -0
  2314. package/dist/ui/accordion.guard.js +6 -0
  2315. package/dist/ui/accordion.js +96 -0
  2316. package/dist/ui/alert.d.ts +35 -0
  2317. package/dist/ui/alert.d.ts.map +1 -0
  2318. package/dist/ui/alert.guard.d.ts +14 -0
  2319. package/dist/ui/alert.guard.d.ts.map +1 -0
  2320. package/dist/ui/alert.guard.js +8 -0
  2321. package/dist/ui/alert.js +76 -0
  2322. package/dist/ui/avatar.d.ts +75 -0
  2323. package/dist/ui/avatar.d.ts.map +1 -0
  2324. package/dist/ui/avatar.guard.d.ts +29 -0
  2325. package/dist/ui/avatar.guard.d.ts.map +1 -0
  2326. package/dist/ui/avatar.guard.js +14 -0
  2327. package/dist/ui/avatar.js +154 -0
  2328. package/dist/ui/badge.d.ts +95 -0
  2329. package/dist/ui/badge.d.ts.map +1 -0
  2330. package/dist/ui/badge.guard.d.ts +16 -0
  2331. package/dist/ui/badge.guard.d.ts.map +1 -0
  2332. package/dist/ui/badge.guard.js +8 -0
  2333. package/dist/ui/badge.js +162 -0
  2334. package/dist/ui/button.d.ts +73 -0
  2335. package/dist/ui/button.d.ts.map +1 -0
  2336. package/dist/ui/button.guard.d.ts +24 -0
  2337. package/dist/ui/button.guard.d.ts.map +1 -0
  2338. package/dist/ui/button.guard.js +12 -0
  2339. package/dist/ui/button.js +127 -0
  2340. package/dist/ui/calendar-grid.d.ts +31 -0
  2341. package/dist/ui/calendar-grid.d.ts.map +1 -0
  2342. package/dist/ui/calendar-grid.js +133 -0
  2343. package/dist/ui/calendar.d.ts +74 -0
  2344. package/dist/ui/calendar.d.ts.map +1 -0
  2345. package/dist/ui/calendar.guard.d.ts +42 -0
  2346. package/dist/ui/calendar.guard.d.ts.map +1 -0
  2347. package/dist/ui/calendar.guard.js +12 -0
  2348. package/dist/ui/calendar.js +119 -0
  2349. package/dist/ui/card.d.ts +129 -0
  2350. package/dist/ui/card.d.ts.map +1 -0
  2351. package/dist/ui/card.guard.d.ts +12 -0
  2352. package/dist/ui/card.guard.d.ts.map +1 -0
  2353. package/dist/ui/card.guard.js +6 -0
  2354. package/dist/ui/card.js +202 -0
  2355. package/dist/ui/checkbox-matrix.d.ts +82 -0
  2356. package/dist/ui/checkbox-matrix.d.ts.map +1 -0
  2357. package/dist/ui/checkbox-matrix.guard.d.ts +24 -0
  2358. package/dist/ui/checkbox-matrix.guard.d.ts.map +1 -0
  2359. package/dist/ui/checkbox-matrix.guard.js +6 -0
  2360. package/dist/ui/checkbox-matrix.js +226 -0
  2361. package/dist/ui/checkbox.d.ts +71 -0
  2362. package/dist/ui/checkbox.d.ts.map +1 -0
  2363. package/dist/ui/checkbox.guard.d.ts +24 -0
  2364. package/dist/ui/checkbox.guard.d.ts.map +1 -0
  2365. package/dist/ui/checkbox.guard.js +8 -0
  2366. package/dist/ui/checkbox.js +110 -0
  2367. package/dist/ui/choice-card.d.ts +41 -0
  2368. package/dist/ui/choice-card.d.ts.map +1 -0
  2369. package/dist/ui/choice-card.guard.d.ts +17 -0
  2370. package/dist/ui/choice-card.guard.d.ts.map +1 -0
  2371. package/dist/ui/choice-card.guard.js +6 -0
  2372. package/dist/ui/choice-card.js +51 -0
  2373. package/dist/ui/collapsible.d.ts +44 -0
  2374. package/dist/ui/collapsible.d.ts.map +1 -0
  2375. package/dist/ui/collapsible.guard.d.ts +13 -0
  2376. package/dist/ui/collapsible.guard.d.ts.map +1 -0
  2377. package/dist/ui/collapsible.guard.js +6 -0
  2378. package/dist/ui/collapsible.js +43 -0
  2379. package/dist/ui/combobox.d.ts +310 -0
  2380. package/dist/ui/combobox.d.ts.map +1 -0
  2381. package/dist/ui/combobox.guard.d.ts +22 -0
  2382. package/dist/ui/combobox.guard.d.ts.map +1 -0
  2383. package/dist/ui/combobox.guard.js +12 -0
  2384. package/dist/ui/combobox.js +642 -0
  2385. package/dist/ui/context-menu.d.ts +66 -0
  2386. package/dist/ui/context-menu.d.ts.map +1 -0
  2387. package/dist/ui/context-menu.js +130 -0
  2388. package/dist/ui/control-group.d.ts +129 -0
  2389. package/dist/ui/control-group.d.ts.map +1 -0
  2390. package/dist/ui/control-group.guard.d.ts +21 -0
  2391. package/dist/ui/control-group.guard.d.ts.map +1 -0
  2392. package/dist/ui/control-group.guard.js +12 -0
  2393. package/dist/ui/control-group.js +132 -0
  2394. package/dist/ui/copy-button.d.ts +35 -0
  2395. package/dist/ui/copy-button.d.ts.map +1 -0
  2396. package/dist/ui/copy-button.js +80 -0
  2397. package/dist/ui/date-picker.d.ts +104 -0
  2398. package/dist/ui/date-picker.d.ts.map +1 -0
  2399. package/dist/ui/date-picker.guard.d.ts +38 -0
  2400. package/dist/ui/date-picker.guard.d.ts.map +1 -0
  2401. package/dist/ui/date-picker.guard.js +13 -0
  2402. package/dist/ui/date-picker.js +265 -0
  2403. package/dist/ui/dialog.d.ts +172 -0
  2404. package/dist/ui/dialog.d.ts.map +1 -0
  2405. package/dist/ui/dialog.guard.d.ts +30 -0
  2406. package/dist/ui/dialog.guard.d.ts.map +1 -0
  2407. package/dist/ui/dialog.guard.js +16 -0
  2408. package/dist/ui/dialog.js +207 -0
  2409. package/dist/ui/drag-auto-scroll.d.ts +31 -0
  2410. package/dist/ui/drag-auto-scroll.d.ts.map +1 -0
  2411. package/dist/ui/drag-auto-scroll.js +78 -0
  2412. package/dist/ui/entity.d.ts +81 -0
  2413. package/dist/ui/entity.d.ts.map +1 -0
  2414. package/dist/ui/entity.guard.d.ts +25 -0
  2415. package/dist/ui/entity.guard.d.ts.map +1 -0
  2416. package/dist/ui/entity.guard.js +14 -0
  2417. package/dist/ui/entity.js +124 -0
  2418. package/dist/ui/field.d.ts +115 -0
  2419. package/dist/ui/field.d.ts.map +1 -0
  2420. package/dist/ui/field.guard.d.ts +16 -0
  2421. package/dist/ui/field.guard.d.ts.map +1 -0
  2422. package/dist/ui/field.guard.js +8 -0
  2423. package/dist/ui/field.js +112 -0
  2424. package/dist/ui/file-upload.d.ts +75 -0
  2425. package/dist/ui/file-upload.d.ts.map +1 -0
  2426. package/dist/ui/file-upload.guard.d.ts +24 -0
  2427. package/dist/ui/file-upload.guard.d.ts.map +1 -0
  2428. package/dist/ui/file-upload.guard.js +10 -0
  2429. package/dist/ui/file-upload.js +330 -0
  2430. package/dist/ui/guard-completeness.d.ts +28 -0
  2431. package/dist/ui/guard-completeness.d.ts.map +1 -0
  2432. package/dist/ui/guard-completeness.js +164 -0
  2433. package/dist/ui/header-actions.d.ts +9 -0
  2434. package/dist/ui/header-actions.d.ts.map +1 -0
  2435. package/dist/ui/header-actions.js +22 -0
  2436. package/dist/ui/info-hint.d.ts +61 -0
  2437. package/dist/ui/info-hint.d.ts.map +1 -0
  2438. package/dist/ui/info-hint.guard.d.ts +23 -0
  2439. package/dist/ui/info-hint.guard.d.ts.map +1 -0
  2440. package/dist/ui/info-hint.guard.js +10 -0
  2441. package/dist/ui/info-hint.js +28 -0
  2442. package/dist/ui/input.d.ts +41 -0
  2443. package/dist/ui/input.d.ts.map +1 -0
  2444. package/dist/ui/input.guard.d.ts +12 -0
  2445. package/dist/ui/input.guard.d.ts.map +1 -0
  2446. package/dist/ui/input.guard.js +6 -0
  2447. package/dist/ui/input.js +59 -0
  2448. package/dist/ui/kbd.d.ts +30 -0
  2449. package/dist/ui/kbd.d.ts.map +1 -0
  2450. package/dist/ui/kbd.guard.d.ts +13 -0
  2451. package/dist/ui/kbd.guard.d.ts.map +1 -0
  2452. package/dist/ui/kbd.guard.js +6 -0
  2453. package/dist/ui/kbd.js +40 -0
  2454. package/dist/ui/leave-confirm.d.ts +20 -0
  2455. package/dist/ui/leave-confirm.d.ts.map +1 -0
  2456. package/dist/ui/leave-confirm.js +34 -0
  2457. package/dist/ui/list-sheet.d.ts +25 -0
  2458. package/dist/ui/list-sheet.d.ts.map +1 -0
  2459. package/dist/ui/list-sheet.js +8 -0
  2460. package/dist/ui/menu.d.ts +159 -0
  2461. package/dist/ui/menu.d.ts.map +1 -0
  2462. package/dist/ui/menu.guard.d.ts +51 -0
  2463. package/dist/ui/menu.guard.d.ts.map +1 -0
  2464. package/dist/ui/menu.guard.js +18 -0
  2465. package/dist/ui/menu.js +248 -0
  2466. package/dist/ui/meter.d.ts +143 -0
  2467. package/dist/ui/meter.d.ts.map +1 -0
  2468. package/dist/ui/meter.guard.d.ts +26 -0
  2469. package/dist/ui/meter.guard.d.ts.map +1 -0
  2470. package/dist/ui/meter.guard.js +26 -0
  2471. package/dist/ui/meter.js +380 -0
  2472. package/dist/ui/num.d.ts +37 -0
  2473. package/dist/ui/num.d.ts.map +1 -0
  2474. package/dist/ui/num.guard.d.ts +15 -0
  2475. package/dist/ui/num.guard.d.ts.map +1 -0
  2476. package/dist/ui/num.guard.js +8 -0
  2477. package/dist/ui/num.js +36 -0
  2478. package/dist/ui/number-field.d.ts +45 -0
  2479. package/dist/ui/number-field.d.ts.map +1 -0
  2480. package/dist/ui/number-field.guard.d.ts +18 -0
  2481. package/dist/ui/number-field.guard.d.ts.map +1 -0
  2482. package/dist/ui/number-field.guard.js +6 -0
  2483. package/dist/ui/number-field.js +87 -0
  2484. package/dist/ui/one-time-code.d.ts +54 -0
  2485. package/dist/ui/one-time-code.d.ts.map +1 -0
  2486. package/dist/ui/one-time-code.guard.d.ts +18 -0
  2487. package/dist/ui/one-time-code.guard.d.ts.map +1 -0
  2488. package/dist/ui/one-time-code.guard.js +6 -0
  2489. package/dist/ui/one-time-code.js +65 -0
  2490. package/dist/ui/overlay-presenter.d.ts +65 -0
  2491. package/dist/ui/overlay-presenter.d.ts.map +1 -0
  2492. package/dist/ui/overlay-presenter.js +82 -0
  2493. package/dist/ui/overlay-sheet.d.ts +8 -0
  2494. package/dist/ui/overlay-sheet.d.ts.map +1 -0
  2495. package/dist/ui/overlay-sheet.js +37 -0
  2496. package/dist/ui/password-input.d.ts +18 -0
  2497. package/dist/ui/password-input.d.ts.map +1 -0
  2498. package/dist/ui/password-input.js +66 -0
  2499. package/dist/ui/popover.d.ts +77 -0
  2500. package/dist/ui/popover.d.ts.map +1 -0
  2501. package/dist/ui/popover.guard.d.ts +31 -0
  2502. package/dist/ui/popover.guard.d.ts.map +1 -0
  2503. package/dist/ui/popover.guard.js +12 -0
  2504. package/dist/ui/popover.js +118 -0
  2505. package/dist/ui/primitive.contract.d.ts +63 -0
  2506. package/dist/ui/primitive.contract.d.ts.map +1 -0
  2507. package/dist/ui/primitive.contract.js +302 -0
  2508. package/dist/ui/progress.d.ts +84 -0
  2509. package/dist/ui/progress.d.ts.map +1 -0
  2510. package/dist/ui/progress.guard.d.ts +27 -0
  2511. package/dist/ui/progress.guard.d.ts.map +1 -0
  2512. package/dist/ui/progress.guard.js +14 -0
  2513. package/dist/ui/progress.js +150 -0
  2514. package/dist/ui/quick-picks.d.ts +46 -0
  2515. package/dist/ui/quick-picks.d.ts.map +1 -0
  2516. package/dist/ui/quick-picks.guard.d.ts +18 -0
  2517. package/dist/ui/quick-picks.guard.d.ts.map +1 -0
  2518. package/dist/ui/quick-picks.guard.js +6 -0
  2519. package/dist/ui/quick-picks.js +45 -0
  2520. package/dist/ui/radio-group.d.ts +79 -0
  2521. package/dist/ui/radio-group.d.ts.map +1 -0
  2522. package/dist/ui/radio-group.guard.d.ts +21 -0
  2523. package/dist/ui/radio-group.guard.d.ts.map +1 -0
  2524. package/dist/ui/radio-group.guard.js +8 -0
  2525. package/dist/ui/radio-group.js +86 -0
  2526. package/dist/ui/resizable.d.ts +62 -0
  2527. package/dist/ui/resizable.d.ts.map +1 -0
  2528. package/dist/ui/resizable.js +42 -0
  2529. package/dist/ui/scroll-area.d.ts +35 -0
  2530. package/dist/ui/scroll-area.d.ts.map +1 -0
  2531. package/dist/ui/scroll-area.guard.d.ts +13 -0
  2532. package/dist/ui/scroll-area.guard.d.ts.map +1 -0
  2533. package/dist/ui/scroll-area.guard.js +8 -0
  2534. package/dist/ui/scroll-area.js +75 -0
  2535. package/dist/ui/segmented.d.ts +102 -0
  2536. package/dist/ui/segmented.d.ts.map +1 -0
  2537. package/dist/ui/segmented.guard.d.ts +22 -0
  2538. package/dist/ui/segmented.guard.d.ts.map +1 -0
  2539. package/dist/ui/segmented.guard.js +8 -0
  2540. package/dist/ui/segmented.js +134 -0
  2541. package/dist/ui/select.d.ts +211 -0
  2542. package/dist/ui/select.d.ts.map +1 -0
  2543. package/dist/ui/select.guard.d.ts +27 -0
  2544. package/dist/ui/select.guard.d.ts.map +1 -0
  2545. package/dist/ui/select.guard.js +14 -0
  2546. package/dist/ui/select.js +467 -0
  2547. package/dist/ui/separator.d.ts +32 -0
  2548. package/dist/ui/separator.d.ts.map +1 -0
  2549. package/dist/ui/separator.guard.d.ts +12 -0
  2550. package/dist/ui/separator.guard.d.ts.map +1 -0
  2551. package/dist/ui/separator.guard.js +6 -0
  2552. package/dist/ui/separator.js +30 -0
  2553. package/dist/ui/sheet.d.ts +150 -0
  2554. package/dist/ui/sheet.d.ts.map +1 -0
  2555. package/dist/ui/sheet.guard.d.ts +28 -0
  2556. package/dist/ui/sheet.guard.d.ts.map +1 -0
  2557. package/dist/ui/sheet.guard.js +15 -0
  2558. package/dist/ui/sheet.js +359 -0
  2559. package/dist/ui/skeleton.d.ts +52 -0
  2560. package/dist/ui/skeleton.d.ts.map +1 -0
  2561. package/dist/ui/skeleton.guard.d.ts +15 -0
  2562. package/dist/ui/skeleton.guard.d.ts.map +1 -0
  2563. package/dist/ui/skeleton.guard.js +8 -0
  2564. package/dist/ui/skeleton.js +54 -0
  2565. package/dist/ui/slider.d.ts +43 -0
  2566. package/dist/ui/slider.d.ts.map +1 -0
  2567. package/dist/ui/slider.guard.d.ts +20 -0
  2568. package/dist/ui/slider.guard.d.ts.map +1 -0
  2569. package/dist/ui/slider.guard.js +6 -0
  2570. package/dist/ui/slider.js +56 -0
  2571. package/dist/ui/slots.d.ts +60 -0
  2572. package/dist/ui/slots.d.ts.map +1 -0
  2573. package/dist/ui/slots.js +112 -0
  2574. package/dist/ui/sortable-list.d.ts +67 -0
  2575. package/dist/ui/sortable-list.d.ts.map +1 -0
  2576. package/dist/ui/sortable-list.js +275 -0
  2577. package/dist/ui/status.d.ts +62 -0
  2578. package/dist/ui/status.d.ts.map +1 -0
  2579. package/dist/ui/status.guard.d.ts +16 -0
  2580. package/dist/ui/status.guard.d.ts.map +1 -0
  2581. package/dist/ui/status.guard.js +12 -0
  2582. package/dist/ui/status.js +43 -0
  2583. package/dist/ui/swatch-picker.d.ts +59 -0
  2584. package/dist/ui/swatch-picker.d.ts.map +1 -0
  2585. package/dist/ui/swatch-picker.guard.d.ts +20 -0
  2586. package/dist/ui/swatch-picker.guard.d.ts.map +1 -0
  2587. package/dist/ui/swatch-picker.guard.js +6 -0
  2588. package/dist/ui/swatch-picker.js +198 -0
  2589. package/dist/ui/switch.d.ts +31 -0
  2590. package/dist/ui/switch.d.ts.map +1 -0
  2591. package/dist/ui/switch.guard.d.ts +16 -0
  2592. package/dist/ui/switch.guard.d.ts.map +1 -0
  2593. package/dist/ui/switch.guard.js +6 -0
  2594. package/dist/ui/switch.js +16 -0
  2595. package/dist/ui/table.d.ts +91 -0
  2596. package/dist/ui/table.d.ts.map +1 -0
  2597. package/dist/ui/table.guard.d.ts +14 -0
  2598. package/dist/ui/table.guard.d.ts.map +1 -0
  2599. package/dist/ui/table.guard.js +8 -0
  2600. package/dist/ui/table.js +132 -0
  2601. package/dist/ui/tabs.d.ts +103 -0
  2602. package/dist/ui/tabs.d.ts.map +1 -0
  2603. package/dist/ui/tabs.guard.d.ts +12 -0
  2604. package/dist/ui/tabs.guard.d.ts.map +1 -0
  2605. package/dist/ui/tabs.guard.js +6 -0
  2606. package/dist/ui/tabs.js +148 -0
  2607. package/dist/ui/tag-input.d.ts +59 -0
  2608. package/dist/ui/tag-input.d.ts.map +1 -0
  2609. package/dist/ui/tag-input.guard.d.ts +19 -0
  2610. package/dist/ui/tag-input.guard.d.ts.map +1 -0
  2611. package/dist/ui/tag-input.guard.js +6 -0
  2612. package/dist/ui/tag-input.js +191 -0
  2613. package/dist/ui/textarea.d.ts +39 -0
  2614. package/dist/ui/textarea.d.ts.map +1 -0
  2615. package/dist/ui/textarea.guard.d.ts +17 -0
  2616. package/dist/ui/textarea.guard.d.ts.map +1 -0
  2617. package/dist/ui/textarea.guard.js +6 -0
  2618. package/dist/ui/textarea.js +66 -0
  2619. package/dist/ui/toast.d.ts +77 -0
  2620. package/dist/ui/toast.d.ts.map +1 -0
  2621. package/dist/ui/toast.guard.d.ts +12 -0
  2622. package/dist/ui/toast.guard.d.ts.map +1 -0
  2623. package/dist/ui/toast.guard.js +6 -0
  2624. package/dist/ui/toast.js +109 -0
  2625. package/dist/ui/toolbar.d.ts +101 -0
  2626. package/dist/ui/toolbar.d.ts.map +1 -0
  2627. package/dist/ui/toolbar.guard.d.ts +16 -0
  2628. package/dist/ui/toolbar.guard.d.ts.map +1 -0
  2629. package/dist/ui/toolbar.guard.js +10 -0
  2630. package/dist/ui/toolbar.js +68 -0
  2631. package/dist/ui/tooltip.d.ts +48 -0
  2632. package/dist/ui/tooltip.d.ts.map +1 -0
  2633. package/dist/ui/tooltip.guard.d.ts +19 -0
  2634. package/dist/ui/tooltip.guard.d.ts.map +1 -0
  2635. package/dist/ui/tooltip.guard.js +8 -0
  2636. package/dist/ui/tooltip.js +122 -0
  2637. package/dist/ui/tree.d.ts +170 -0
  2638. package/dist/ui/tree.d.ts.map +1 -0
  2639. package/dist/ui/tree.guard.d.ts +41 -0
  2640. package/dist/ui/tree.guard.d.ts.map +1 -0
  2641. package/dist/ui/tree.guard.js +10 -0
  2642. package/dist/ui/tree.js +1290 -0
  2643. package/dist/ui/virtual-list.d.ts +94 -0
  2644. package/dist/ui/virtual-list.d.ts.map +1 -0
  2645. package/dist/ui/virtual-list.guard.d.ts +20 -0
  2646. package/dist/ui/virtual-list.guard.d.ts.map +1 -0
  2647. package/dist/ui/virtual-list.guard.js +13 -0
  2648. package/dist/ui/virtual-list.js +93 -0
  2649. package/dist/vite/allotment.d.ts +26 -0
  2650. package/dist/vite/allotment.d.ts.map +1 -0
  2651. package/dist/vite/allotment.js +108 -0
  2652. package/dist/vite/doc.d.ts +4 -0
  2653. package/dist/vite/doc.d.ts.map +1 -0
  2654. package/dist/vite/doc.js +92 -0
  2655. package/dist/vite/ejects.d.ts +19 -0
  2656. package/dist/vite/ejects.d.ts.map +1 -0
  2657. package/dist/vite/ejects.js +46 -0
  2658. package/dist/vite/graph.d.ts +36 -0
  2659. package/dist/vite/graph.d.ts.map +1 -0
  2660. package/dist/vite/graph.js +167 -0
  2661. package/dist/vite/head.d.ts +72 -0
  2662. package/dist/vite/head.d.ts.map +1 -0
  2663. package/dist/vite/head.js +201 -0
  2664. package/dist/vite/index.d.ts +25 -0
  2665. package/dist/vite/index.d.ts.map +1 -0
  2666. package/dist/vite/index.js +143 -0
  2667. package/dist/vite/sources.d.ts +16 -0
  2668. package/dist/vite/sources.d.ts.map +1 -0
  2669. package/dist/vite/sources.js +32 -0
  2670. package/dist/vite/table-sheet.d.ts +3 -0
  2671. package/dist/vite/table-sheet.d.ts.map +1 -0
  2672. package/dist/vite/table-sheet.js +12 -0
  2673. package/docs/accordion.md +60 -0
  2674. package/docs/add.md +34 -0
  2675. package/docs/alert.md +37 -0
  2676. package/docs/app-shell.md +71 -0
  2677. package/docs/appearance-switcher.md +38 -0
  2678. package/docs/apply-move.md +28 -0
  2679. package/docs/area-y.md +27 -0
  2680. package/docs/article-layout.md +48 -0
  2681. package/docs/astro-parts.md +22 -0
  2682. package/docs/astro.md +404 -0
  2683. package/docs/avatar.md +63 -0
  2684. package/docs/badge.md +77 -0
  2685. package/docs/band-strip.md +38 -0
  2686. package/docs/bar-list.md +57 -0
  2687. package/docs/bars.md +55 -0
  2688. package/docs/basalt-astro.md +40 -0
  2689. package/docs/basalt-provider.md +40 -0
  2690. package/docs/basalt-shiki.md +27 -0
  2691. package/docs/basalt.md +36 -0
  2692. package/docs/bind-invalidation.md +52 -0
  2693. package/docs/block-frame.md +26 -0
  2694. package/docs/board.md +45 -0
  2695. package/docs/bulk-bar.md +36 -0
  2696. package/docs/button.md +58 -0
  2697. package/docs/calendar.md +49 -0
  2698. package/docs/callout.md +36 -0
  2699. package/docs/card-figure.md +29 -0
  2700. package/docs/card-footer.md +30 -0
  2701. package/docs/card-grid.md +33 -0
  2702. package/docs/card-strip.md +29 -0
  2703. package/docs/card-tabs.md +29 -0
  2704. package/docs/card.md +102 -0
  2705. package/docs/cartesian-chart-guide.md +204 -0
  2706. package/docs/cartesian-chart.md +57 -0
  2707. package/docs/cell-meta.md +28 -0
  2708. package/docs/cell-stack.md +32 -0
  2709. package/docs/chain-view.md +53 -0
  2710. package/docs/chart-card-states.md +52 -0
  2711. package/docs/chart-card.md +79 -0
  2712. package/docs/chart-cursor.md +20 -0
  2713. package/docs/chart-labels.md +62 -0
  2714. package/docs/checkbox-matrix.md +53 -0
  2715. package/docs/checkbox.md +55 -0
  2716. package/docs/choice-card.md +40 -0
  2717. package/docs/code-block.md +37 -0
  2718. package/docs/col.md +113 -0
  2719. package/docs/collapsible.md +50 -0
  2720. package/docs/combobox.md +212 -0
  2721. package/docs/command-palette.md +55 -0
  2722. package/docs/composer.md +41 -0
  2723. package/docs/connection-indicator.md +36 -0
  2724. package/docs/context-menu.md +56 -0
  2725. package/docs/control-group.md +108 -0
  2726. package/docs/control-home.md +31 -0
  2727. package/docs/control-property.md +36 -0
  2728. package/docs/control-view.md +33 -0
  2729. package/docs/copy-button.md +35 -0
  2730. package/docs/create-app-form.md +35 -0
  2731. package/docs/create-channel.md +46 -0
  2732. package/docs/create-format.md +24 -0
  2733. package/docs/create-query-client.md +26 -0
  2734. package/docs/create-synced-state.md +69 -0
  2735. package/docs/data-panel.md +89 -0
  2736. package/docs/data-table-body.md +34 -0
  2737. package/docs/data-table.md +38 -0
  2738. package/docs/date-picker.md +81 -0
  2739. package/docs/date-stepper.md +43 -0
  2740. package/docs/de.md +29 -0
  2741. package/docs/define-block.md +55 -0
  2742. package/docs/define-catalog.md +36 -0
  2743. package/docs/define-commands.md +32 -0
  2744. package/docs/define-control-kind.md +31 -0
  2745. package/docs/define-controls.md +80 -0
  2746. package/docs/define-nav.md +53 -0
  2747. package/docs/define-overlays.md +34 -0
  2748. package/docs/delta.md +31 -0
  2749. package/docs/dialog.md +135 -0
  2750. package/docs/dock.md +56 -0
  2751. package/docs/dot.md +27 -0
  2752. package/docs/eject.md +49 -0
  2753. package/docs/empty-state.md +49 -0
  2754. package/docs/empty.md +33 -0
  2755. package/docs/entity.md +63 -0
  2756. package/docs/es.md +29 -0
  2757. package/docs/event-list.md +55 -0
  2758. package/docs/expect-catalog.md +32 -0
  2759. package/docs/expect-shell-invariants.md +36 -0
  2760. package/docs/external-field.md +33 -0
  2761. package/docs/external-href.md +30 -0
  2762. package/docs/facet-counts.md +28 -0
  2763. package/docs/fact.md +30 -0
  2764. package/docs/facts.md +33 -0
  2765. package/docs/favorite-toggle.md +38 -0
  2766. package/docs/field.md +110 -0
  2767. package/docs/file-upload.md +54 -0
  2768. package/docs/filter-set.md +42 -0
  2769. package/docs/filter-slot.md +32 -0
  2770. package/docs/flow-canvas.md +57 -0
  2771. package/docs/flow-checklist.md +34 -0
  2772. package/docs/foot-facts.md +27 -0
  2773. package/docs/form-action-row.md +38 -0
  2774. package/docs/form-confirm-row.md +40 -0
  2775. package/docs/form-field.md +53 -0
  2776. package/docs/form-footer.md +35 -0
  2777. package/docs/form-group-row.md +44 -0
  2778. package/docs/form-row.md +35 -0
  2779. package/docs/form-section.md +52 -0
  2780. package/docs/fr.md +29 -0
  2781. package/docs/frame-tabs.md +45 -0
  2782. package/docs/frame-tiles.md +47 -0
  2783. package/docs/heatmap.md +44 -0
  2784. package/docs/info-hint.md +32 -0
  2785. package/docs/inner-nav.md +62 -0
  2786. package/docs/input.md +36 -0
  2787. package/docs/install-dom-shims.md +27 -0
  2788. package/docs/interval-track.md +47 -0
  2789. package/docs/intl-scope.md +35 -0
  2790. package/docs/kanban-card.md +52 -0
  2791. package/docs/kbd.md +33 -0
  2792. package/docs/line-y.md +27 -0
  2793. package/docs/lines.md +55 -0
  2794. package/docs/link.md +27 -0
  2795. package/docs/live-query.md +36 -0
  2796. package/docs/mail-list.md +59 -0
  2797. package/docs/mail-thread.md +36 -0
  2798. package/docs/mdx-components.md +30 -0
  2799. package/docs/menu.md +141 -0
  2800. package/docs/message-actions.md +30 -0
  2801. package/docs/message.md +33 -0
  2802. package/docs/meter.md +65 -0
  2803. package/docs/mini-bars.md +58 -0
  2804. package/docs/model-picker.md +39 -0
  2805. package/docs/motion-duration.md +26 -0
  2806. package/docs/motion-ease-enter.md +21 -0
  2807. package/docs/motion-ease-exit.md +21 -0
  2808. package/docs/motion-ease-standard.md +21 -0
  2809. package/docs/motion-preset.md +29 -0
  2810. package/docs/motion-spring.md +26 -0
  2811. package/docs/motion-stagger.md +19 -0
  2812. package/docs/motion.md +82 -0
  2813. package/docs/nav-target.md +29 -0
  2814. package/docs/notify.md +32 -0
  2815. package/docs/num.md +37 -0
  2816. package/docs/number-field.md +41 -0
  2817. package/docs/one-time-code.md +52 -0
  2818. package/docs/optimistic.md +35 -0
  2819. package/docs/overlay-host.md +30 -0
  2820. package/docs/page-aside.md +39 -0
  2821. package/docs/page-bar.md +92 -0
  2822. package/docs/page-summary.md +45 -0
  2823. package/docs/page.md +47 -0
  2824. package/docs/part-view.md +31 -0
  2825. package/docs/password-input.md +29 -0
  2826. package/docs/peek.md +60 -0
  2827. package/docs/period-of.md +29 -0
  2828. package/docs/persisted.md +67 -0
  2829. package/docs/popover.md +60 -0
  2830. package/docs/progress.md +63 -0
  2831. package/docs/property-list.md +37 -0
  2832. package/docs/prose.md +36 -0
  2833. package/docs/quality.md +38 -0
  2834. package/docs/query-state.md +40 -0
  2835. package/docs/quick-picks.md +41 -0
  2836. package/docs/radio-group.md +53 -0
  2837. package/docs/range-navigator.md +34 -0
  2838. package/docs/reasoning-trace.md +31 -0
  2839. package/docs/recipes/.gitkeep +0 -0
  2840. package/docs/recipes/add-page.md +33 -0
  2841. package/docs/recipes/ai-approvals-sources.md +51 -0
  2842. package/docs/recipes/ai-artifacts.md +59 -0
  2843. package/docs/recipes/ai-blocks.md +59 -0
  2844. package/docs/recipes/ai-card.md +47 -0
  2845. package/docs/recipes/ai-external-runtime.md +59 -0
  2846. package/docs/recipes/ai-sdk-tools.md +57 -0
  2847. package/docs/recipes/app-shell.md +27 -0
  2848. package/docs/recipes/band.md +59 -0
  2849. package/docs/recipes/board.md +39 -0
  2850. package/docs/recipes/candlestick.md +50 -0
  2851. package/docs/recipes/card-regions.md +60 -0
  2852. package/docs/recipes/chat-thread-composer.md +43 -0
  2853. package/docs/recipes/chat-thread-scroll.md +45 -0
  2854. package/docs/recipes/chat-thread.md +60 -0
  2855. package/docs/recipes/cursor-table.md +56 -0
  2856. package/docs/recipes/dashboard-cells.md +60 -0
  2857. package/docs/recipes/dependent-validation.md +50 -0
  2858. package/docs/recipes/end-marker.md +54 -0
  2859. package/docs/recipes/export.md +38 -0
  2860. package/docs/recipes/field-array.md +54 -0
  2861. package/docs/recipes/file-drop.md +53 -0
  2862. package/docs/recipes/forecast-segment.md +44 -0
  2863. package/docs/recipes/inner-nav.md +52 -0
  2864. package/docs/recipes/loader-suspense.md +50 -0
  2865. package/docs/recipes/localise-app.md +61 -0
  2866. package/docs/recipes/lollipop.md +56 -0
  2867. package/docs/recipes/markdown.md +40 -0
  2868. package/docs/recipes/mdx.md +33 -0
  2869. package/docs/recipes/memory-state.md +48 -0
  2870. package/docs/recipes/optimistic-list.md +60 -0
  2871. package/docs/recipes/optimistic.md +26 -0
  2872. package/docs/recipes/realtime-client.md +50 -0
  2873. package/docs/recipes/remembered-values.md +47 -0
  2874. package/docs/recipes/saved-views.md +60 -0
  2875. package/docs/recipes/seam-bar.md +59 -0
  2876. package/docs/recipes/seam-linked.md +56 -0
  2877. package/docs/recipes/seam-track.md +61 -0
  2878. package/docs/recipes/shot-state.md +21 -0
  2879. package/docs/recipes/threshold-recolor.md +46 -0
  2880. package/docs/recipes/timeline.md +59 -0
  2881. package/docs/recipes/trend-line.md +43 -0
  2882. package/docs/recipes/two-pane.md +51 -0
  2883. package/docs/recipes/view-switch.md +55 -0
  2884. package/docs/recipes/websocket-transport.md +60 -0
  2885. package/docs/recipes/window-key.md +40 -0
  2886. package/docs/record-at.md +33 -0
  2887. package/docs/rect.md +27 -0
  2888. package/docs/refresh-button.md +45 -0
  2889. package/docs/relationship-card.md +50 -0
  2890. package/docs/resizable.md +58 -0
  2891. package/docs/router-defaults.md +41 -0
  2892. package/docs/row-list.md +66 -0
  2893. package/docs/schedule.md +59 -0
  2894. package/docs/scroll-area.md +36 -0
  2895. package/docs/section.md +40 -0
  2896. package/docs/segmented.md +66 -0
  2897. package/docs/select.md +145 -0
  2898. package/docs/separator.md +33 -0
  2899. package/docs/set-appearance.md +26 -0
  2900. package/docs/set-scheme.md +23 -0
  2901. package/docs/settings-layout.md +40 -0
  2902. package/docs/settled.md +31 -0
  2903. package/docs/sheet.md +95 -0
  2904. package/docs/shot-state.md +49 -0
  2905. package/docs/site-article.md +43 -0
  2906. package/docs/site-bento.md +35 -0
  2907. package/docs/site-call-to-action.md +32 -0
  2908. package/docs/site-callout.md +36 -0
  2909. package/docs/site-changelog.md +32 -0
  2910. package/docs/site-code-block.md +35 -0
  2911. package/docs/site-comparison.md +47 -0
  2912. package/docs/site-data-table.md +34 -0
  2913. package/docs/site-feature.md +31 -0
  2914. package/docs/site-field.md +38 -0
  2915. package/docs/site-footer.md +35 -0
  2916. package/docs/site-form.md +35 -0
  2917. package/docs/site-header.md +59 -0
  2918. package/docs/site-hero.md +41 -0
  2919. package/docs/site-mdx-components.md +37 -0
  2920. package/docs/site-nav.md +34 -0
  2921. package/docs/site-pager.md +32 -0
  2922. package/docs/site-post-list.md +35 -0
  2923. package/docs/site-question-list.md +37 -0
  2924. package/docs/site-script.md +30 -0
  2925. package/docs/site-submit.md +27 -0
  2926. package/docs/site-tab.md +31 -0
  2927. package/docs/site-tabs.md +36 -0
  2928. package/docs/skeleton.md +52 -0
  2929. package/docs/slider.md +40 -0
  2930. package/docs/slots.md +28 -0
  2931. package/docs/sortable-list.md +43 -0
  2932. package/docs/sparkline.md +64 -0
  2933. package/docs/spec.md +41 -0
  2934. package/docs/split-page.md +44 -0
  2935. package/docs/stagger-delay.md +26 -0
  2936. package/docs/stat-card.md +77 -0
  2937. package/docs/stat-cell.md +66 -0
  2938. package/docs/stat-group.md +37 -0
  2939. package/docs/static-site.md +163 -0
  2940. package/docs/status.md +53 -0
  2941. package/docs/step-rail.md +39 -0
  2942. package/docs/stepper.md +35 -0
  2943. package/docs/swatch-picker.md +48 -0
  2944. package/docs/switch.md +33 -0
  2945. package/docs/table-codec.md +39 -0
  2946. package/docs/table-pager.md +29 -0
  2947. package/docs/table-toolbar.md +33 -0
  2948. package/docs/table.md +101 -0
  2949. package/docs/tabs.md +80 -0
  2950. package/docs/tag-input.md +53 -0
  2951. package/docs/testing.md +59 -0
  2952. package/docs/text.md +27 -0
  2953. package/docs/textarea.md +38 -0
  2954. package/docs/theme-script.md +36 -0
  2955. package/docs/theme-switch.md +34 -0
  2956. package/docs/to-menu-template.md +31 -0
  2957. package/docs/to-submit-errors.md +28 -0
  2958. package/docs/toast-host.md +27 -0
  2959. package/docs/toast.md +83 -0
  2960. package/docs/toc.md +37 -0
  2961. package/docs/toolbar.md +87 -0
  2962. package/docs/tooltip.md +39 -0
  2963. package/docs/tree.md +63 -0
  2964. package/docs/unwrap.md +29 -0
  2965. package/docs/use-app-form.md +36 -0
  2966. package/docs/use-appearance.md +27 -0
  2967. package/docs/use-chart-focus.md +54 -0
  2968. package/docs/use-connection.md +30 -0
  2969. package/docs/use-control.md +30 -0
  2970. package/docs/use-data-table.md +85 -0
  2971. package/docs/use-favorite.md +34 -0
  2972. package/docs/use-flow.md +30 -0
  2973. package/docs/use-focus-scope.md +24 -0
  2974. package/docs/use-form-draft.md +40 -0
  2975. package/docs/use-format.md +31 -0
  2976. package/docs/use-freshness.md +33 -0
  2977. package/docs/use-hotkey.md +28 -0
  2978. package/docs/use-local-control.md +28 -0
  2979. package/docs/use-motion-preset.md +29 -0
  2980. package/docs/use-now.md +19 -0
  2981. package/docs/use-peek.md +32 -0
  2982. package/docs/use-resolved-tokens.md +29 -0
  2983. package/docs/use-size-class.md +32 -0
  2984. package/docs/use-table-views.md +39 -0
  2985. package/docs/use-unsaved-guard.md +52 -0
  2986. package/docs/use-window-chrome.md +30 -0
  2987. package/docs/verdict.md +27 -0
  2988. package/docs/view-tabs.md +44 -0
  2989. package/docs/virtual-list.md +51 -0
  2990. package/docs/vite.md +79 -0
  2991. package/docs/waterfall.md +53 -0
  2992. package/docs/widgets.md +79 -0
  2993. package/docs/with-form.md +32 -0
  2994. package/docs/wizard-dialog.md +40 -0
  2995. package/docs/zh-hans.md +29 -0
  2996. package/llms.txt +1924 -1169
  2997. package/migrations/areas/agent.json +10 -0
  2998. package/migrations/areas/ai.json +10 -0
  2999. package/migrations/areas/cards.json +696 -0
  3000. package/migrations/areas/charts.json +898 -0
  3001. package/migrations/areas/cli.json +146 -0
  3002. package/migrations/areas/content.json +268 -0
  3003. package/migrations/areas/controls.json +425 -0
  3004. package/migrations/areas/data.json +133 -0
  3005. package/migrations/areas/legacy-1x.json +663 -0
  3006. package/migrations/areas/lint.json +130 -0
  3007. package/migrations/areas/page.json +251 -0
  3008. package/migrations/areas/removed-2x.json +421 -0
  3009. package/migrations/areas/router.json +144 -0
  3010. package/migrations/areas/shell.json +489 -0
  3011. package/migrations/areas/state.json +511 -0
  3012. package/migrations/areas/table.json +536 -0
  3013. package/migrations/areas/tokens.json +3294 -0
  3014. package/migrations/areas/ui.json +1651 -0
  3015. package/package.json +451 -153
  3016. package/src/ai/caret.ts +51 -0
  3017. package/src/ai/catalog/block.tsx +113 -0
  3018. package/src/ai/catalog/define.ts +86 -0
  3019. package/src/ai/catalog/validate.ts +144 -0
  3020. package/src/ai/composer.tsx +545 -0
  3021. package/src/ai/contract.ts +142 -0
  3022. package/src/ai/glyphs.tsx +89 -0
  3023. package/src/ai/index.ts +31 -0
  3024. package/src/ai/mention-text.ts +106 -0
  3025. package/src/ai/message.tsx +178 -0
  3026. package/src/ai/model-picker.tsx +144 -0
  3027. package/src/ai/part-view.tsx +146 -0
  3028. package/src/ai/reasoning-trace.tsx +190 -0
  3029. package/src/ai/tool-view.ts +54 -0
  3030. package/src/astro/BasaltFonts.astro +32 -0
  3031. package/src/astro/SiteHead.astro +21 -0
  3032. package/src/astro/build.ts +94 -0
  3033. package/src/astro/fonts.ts +25 -0
  3034. package/src/astro/head.ts +157 -0
  3035. package/src/astro/index.ts +227 -0
  3036. package/src/astro/islands.ts +81 -0
  3037. package/src/astro/mdx/Chart.astro +25 -0
  3038. package/src/astro/mdx/DataTable.astro +27 -0
  3039. package/src/astro/mdx/chart-island.tsx +166 -0
  3040. package/src/astro/mdx/css.d.ts +2 -0
  3041. package/src/astro/mdx/messages.ts +9 -0
  3042. package/src/astro/mdx/table-island.tsx +77 -0
  3043. package/src/astro/notes.ts +203 -0
  3044. package/src/astro/parts.ts +514 -0
  3045. package/src/astro/shiki.ts +30 -0
  3046. package/src/astro/sources.ts +103 -0
  3047. package/src/cards/bar-list-scroll.tsx +92 -0
  3048. package/src/cards/bar-list.tsx +453 -0
  3049. package/src/cards/bar-list.type-guard.tsx +107 -0
  3050. package/src/cards/board.tsx +448 -0
  3051. package/src/cards/cards.type-guard.tsx +82 -0
  3052. package/src/cards/chain-layout.ts +291 -0
  3053. package/src/cards/chain-view.tsx +597 -0
  3054. package/src/cards/contract.ts +193 -0
  3055. package/src/cards/data-panel.tsx +557 -0
  3056. package/src/cards/edge-path.ts +70 -0
  3057. package/src/cards/event-list-model.ts +167 -0
  3058. package/src/cards/event-list.tsx +496 -0
  3059. package/src/cards/flow-canvas.tsx +780 -0
  3060. package/src/cards/flow-checklist.tsx +94 -0
  3061. package/src/cards/flow.ts +136 -0
  3062. package/src/cards/frame-caps.type-guard.tsx +94 -0
  3063. package/src/cards/frame-kit.tsx +125 -0
  3064. package/src/cards/frame-types.type-guard.ts +35 -0
  3065. package/src/cards/index.ts +82 -0
  3066. package/src/cards/kanban-actions.ts +41 -0
  3067. package/src/cards/kanban-card.tsx +347 -0
  3068. package/src/cards/kanban-card.type-guard.tsx +57 -0
  3069. package/src/cards/list-focus.ts +304 -0
  3070. package/src/cards/mail-list.tsx +580 -0
  3071. package/src/cards/mail-thread.tsx +219 -0
  3072. package/src/cards/optional-undefined.type-guard.tsx +84 -0
  3073. package/src/cards/period-label.ts +31 -0
  3074. package/src/cards/relationship-card.tsx +161 -0
  3075. package/src/cards/row-list.tsx +326 -0
  3076. package/src/cards/row-list.type-guard.tsx +67 -0
  3077. package/src/cards/schedule-model.ts +178 -0
  3078. package/src/cards/schedule.tsx +1236 -0
  3079. package/src/cards/stat-card-parts.tsx +69 -0
  3080. package/src/cards/stat-card.tsx +303 -0
  3081. package/src/cards/stat-cell.tsx +615 -0
  3082. package/src/cards/stat-group-shared.ts +39 -0
  3083. package/src/cards/stat-group.tsx +356 -0
  3084. package/src/cards/stat-group.type-guard.tsx +146 -0
  3085. package/src/cards/step-rail.tsx +201 -0
  3086. package/src/cards/viewport.ts +310 -0
  3087. package/src/charts/axis-gaps.ts +524 -0
  3088. package/src/charts/box.tsx +44 -10
  3089. package/src/charts/canvas.ts +164 -0
  3090. package/src/charts/card-context.ts +10 -0
  3091. package/src/charts/chart-box.module.css +199 -43
  3092. package/src/charts/chart-box.module.css.d.ts +2 -0
  3093. package/src/charts/chart-dates.ts +32 -14
  3094. package/src/charts/chart-labels-widths.gen.ts +101 -0
  3095. package/src/charts/chart-labels.ts +220 -0
  3096. package/src/charts/chart-legend.module.css +50 -5
  3097. package/src/charts/chart-legend.module.css.d.ts +1 -0
  3098. package/src/charts/contract.ts +707 -0
  3099. package/src/charts/core/axis-ext.ts +569 -0
  3100. package/src/charts/core/bar-values.ts +989 -0
  3101. package/src/charts/core/compile.ts +3412 -0
  3102. package/src/charts/core/cursor.ts +461 -0
  3103. package/src/charts/core/curves.ts +111 -0
  3104. package/src/charts/core/label-backing.ts +75 -0
  3105. package/src/charts/core/label-ties.ts +80 -0
  3106. package/src/charts/core/plot-context.ts +69 -0
  3107. package/src/charts/core/portal.ts +180 -0
  3108. package/src/charts/core/probe/bar.tsx +28 -0
  3109. package/src/charts/core/probe/base0.tsx +4 -0
  3110. package/src/charts/core/probe/line.tsx +22 -0
  3111. package/src/charts/core/probe/sparkline.tsx +59 -0
  3112. package/src/charts/core/readout-clear.ts +244 -0
  3113. package/src/charts/core/rich-tooltip.ts +128 -0
  3114. package/src/charts/core/right-pin.ts +66 -0
  3115. package/src/charts/core/scales.ts +505 -0
  3116. package/src/charts/core/spread.ts +144 -0
  3117. package/src/charts/core/theme.ts +114 -0
  3118. package/src/charts/core/ticks.ts +61 -0
  3119. package/src/charts/csv.ts +40 -0
  3120. package/src/charts/date-tick-format.ts +29 -23
  3121. package/src/charts/engine-marks.ts +82 -0
  3122. package/src/charts/focus.tsx +258 -0
  3123. package/src/charts/host.tsx +64 -41
  3124. package/src/charts/index.ts +94 -38
  3125. package/src/charts/label-obstacles.ts +216 -0
  3126. package/src/charts/label-place.ts +329 -0
  3127. package/src/charts/label-widths.ts +21 -0
  3128. package/src/charts/labels.ts +368 -19
  3129. package/src/charts/legend.tsx +227 -35
  3130. package/src/charts/marks.ts +223 -13
  3131. package/src/charts/optional-undefined.type-guard.tsx +73 -0
  3132. package/src/charts/pane-gutter.ts +16 -0
  3133. package/src/charts/parts/band-fold.ts +107 -0
  3134. package/src/charts/parts/band-strip.tsx +690 -0
  3135. package/src/charts/parts/bars-marks.ts +360 -0
  3136. package/src/charts/parts/bars.tsx +43 -0
  3137. package/src/charts/parts/cartesian-adapt.ts +375 -0
  3138. package/src/charts/parts/cartesian-selection.ts +35 -0
  3139. package/src/charts/parts/cartesian.tsx +894 -0
  3140. package/src/charts/parts/chart-card-frame.tsx +193 -0
  3141. package/src/charts/parts/chart-card.tsx +523 -0
  3142. package/src/charts/parts/chart-panes.tsx +113 -0
  3143. package/src/charts/parts/heatmap-ink.ts +35 -0
  3144. package/src/charts/parts/heatmap.tsx +735 -0
  3145. package/src/charts/parts/interval-layout.ts +103 -0
  3146. package/src/charts/parts/interval-track.tsx +781 -0
  3147. package/src/charts/parts/legend.tsx +97 -0
  3148. package/src/charts/parts/lines-marks.ts +234 -0
  3149. package/src/charts/parts/lines.tsx +39 -0
  3150. package/src/charts/parts/range-navigator.module.css +50 -0
  3151. package/src/charts/parts/range-navigator.module.css.d.ts +9 -0
  3152. package/src/charts/parts/range-navigator.tsx +226 -0
  3153. package/src/charts/parts/sparkline-probe/both.tsx +25 -0
  3154. package/src/charts/parts/sparkline-probe/mini-bars.tsx +14 -0
  3155. package/src/charts/parts/sparkline-probe/sparkline.tsx +16 -0
  3156. package/src/charts/parts/tooltip.ts +85 -0
  3157. package/src/charts/parts/waterfall.tsx +190 -0
  3158. package/src/charts/plot-context.ts +6 -2
  3159. package/src/charts/ref-label.ts +155 -30
  3160. package/src/charts/seams/bar-opacity.ts +11 -0
  3161. package/src/charts/seams/define.ts +68 -0
  3162. package/src/charts/seams/lone-point.ts +8 -0
  3163. package/src/charts/seams/pixel-extent.ts +43 -0
  3164. package/src/charts/seams/plot-data.ts +8 -0
  3165. package/src/charts/seams/plot-px.ts +23 -0
  3166. package/src/charts/seams/plot-scales.ts +62 -0
  3167. package/src/charts/seams/series-axis.ts +8 -0
  3168. package/src/charts/seams/series-dash.ts +8 -0
  3169. package/src/charts/seams/series-format.ts +8 -0
  3170. package/src/charts/seams/series-gaps.ts +8 -0
  3171. package/src/charts/seams/series-legend-tooltip.ts +8 -0
  3172. package/src/charts/seams/series-marker.ts +8 -0
  3173. package/src/charts/seams/series-note.ts +8 -0
  3174. package/src/charts/seams/series-parent.ts +8 -0
  3175. package/src/charts/seams/series-role.ts +8 -0
  3176. package/src/charts/seams/series-weight.ts +8 -0
  3177. package/src/charts/seams/x-domain.ts +8 -0
  3178. package/src/charts/seams/y-domain.ts +139 -0
  3179. package/src/charts/seams/y-gutter.ts +29 -0
  3180. package/src/charts/seams.ts +66 -0
  3181. package/src/charts/sizing.ts +12 -1
  3182. package/src/charts/state.tsx +51 -28
  3183. package/src/charts/text-measure.ts +57 -0
  3184. package/src/charts/tooltip-body.tsx +98 -0
  3185. package/src/charts/track.ts +370 -0
  3186. package/src/charts/types.ts +124 -12
  3187. package/src/cli/add/catalog.ts +101 -0
  3188. package/src/cli/add/help.ts +35 -0
  3189. package/src/cli/add/index.ts +194 -0
  3190. package/src/cli/agent-note.ts +155 -0
  3191. package/src/cli/board-freshness.ts +21 -7
  3192. package/src/cli/budget/index.ts +132 -0
  3193. package/src/cli/config.ts +16 -158
  3194. package/src/cli/docs/catalog.ts +187 -0
  3195. package/src/cli/docs/index.ts +68 -0
  3196. package/src/cli/doctor/app.ts +336 -0
  3197. package/src/cli/doctor/eject.ts +149 -0
  3198. package/src/cli/doctor/guards.ts +136 -0
  3199. package/src/cli/doctor/hook.ts +375 -0
  3200. package/src/cli/doctor/index.ts +114 -0
  3201. package/src/cli/doctor/install.ts +343 -0
  3202. package/src/cli/doctor/legacy.ts +188 -0
  3203. package/src/cli/doctor/translations.ts +310 -0
  3204. package/src/cli/doctor/types.ts +161 -0
  3205. package/src/cli/doctor/wiring.ts +231 -0
  3206. package/src/cli/eject/git.ts +43 -0
  3207. package/src/cli/eject/help.ts +50 -0
  3208. package/src/cli/eject/index.ts +535 -0
  3209. package/src/cli/eject/ledger.ts +159 -0
  3210. package/src/cli/eject/tsconfig.ts +246 -0
  3211. package/src/cli/harness.ts +144 -0
  3212. package/src/cli/help.ts +171 -64
  3213. package/src/cli/index.ts +55 -1418
  3214. package/src/cli/init/app-files.ts +133 -0
  3215. package/src/cli/init/index.ts +323 -0
  3216. package/src/cli/init/locales.ts +124 -0
  3217. package/src/cli/init/router-seeds.ts +278 -0
  3218. package/src/cli/init/site.ts +43 -0
  3219. package/src/cli/init/steps.ts +1088 -0
  3220. package/src/cli/init/stock.ts +88 -0
  3221. package/src/cli/init/upgrade.ts +67 -0
  3222. package/src/cli/install-root.ts +39 -21
  3223. package/src/cli/legacy-2x-files.ts +47 -0
  3224. package/src/cli/legacy-2x.ts +115 -0
  3225. package/src/cli/lint/engine.ts +349 -0
  3226. package/src/cli/lint/hook.ts +325 -0
  3227. package/src/cli/lint/index.ts +178 -0
  3228. package/src/cli/lint/record.ts +99 -0
  3229. package/src/cli/lint/seams.ts +386 -0
  3230. package/src/cli/lint/settings.ts +309 -0
  3231. package/src/cli/lint/stats.ts +198 -0
  3232. package/src/cli/lint/template-classes.ts +127 -0
  3233. package/src/cli/lint-settings.ts +107 -0
  3234. package/src/cli/manifest.ts +304 -0
  3235. package/src/cli/merge/formatter.ts +59 -0
  3236. package/src/cli/merge/header.ts +32 -0
  3237. package/src/cli/merge/merge-file.ts +62 -0
  3238. package/src/cli/merge/seed.ts +109 -0
  3239. package/src/cli/migrate/census.ts +262 -0
  3240. package/src/cli/migrate/index.ts +364 -0
  3241. package/src/cli/migrate/rows.ts +347 -0
  3242. package/src/cli/package-manager.ts +62 -0
  3243. package/src/cli/peers.ts +114 -0
  3244. package/src/cli/presets.ts +175 -0
  3245. package/src/cli/resolver.ts +54 -0
  3246. package/src/cli/route-tree.ts +103 -0
  3247. package/src/cli/router-wiring.ts +56 -5
  3248. package/src/cli/shot/board.ts +59 -106
  3249. package/src/cli/shot/capture.ts +552 -672
  3250. package/src/cli/shot/detect.ts +338 -323
  3251. package/src/cli/shot/facts.ts +266 -0
  3252. package/src/cli/shot/index.ts +142 -254
  3253. package/src/cli/shot/measure.ts +192 -143
  3254. package/src/cli/shot/playwright.ts +37 -39
  3255. package/src/cli/shot/serve.ts +115 -27
  3256. package/src/cli/shot/types.ts +118 -36
  3257. package/src/cli/source-text.ts +11 -0
  3258. package/src/cli/sync/block.ts +59 -0
  3259. package/src/cli/sync/blocks.ts +154 -0
  3260. package/src/cli/sync/engine.ts +189 -0
  3261. package/src/cli/sync/formats.ts +74 -0
  3262. package/src/cli/sync/index.ts +198 -0
  3263. package/src/cli/sync/render.ts +507 -0
  3264. package/src/cli/sync/sibling.ts +67 -0
  3265. package/src/cli/sync/three-way.ts +227 -0
  3266. package/src/cli/tokens-css-extra.ts +205 -0
  3267. package/src/cli/tokens-css.ts +235 -97
  3268. package/src/common/basalt-families.ts +68 -0
  3269. package/src/common/basalt-family.ts +21 -0
  3270. package/src/common/errors.ts +2 -2
  3271. package/src/common/focus.ts +65 -0
  3272. package/src/common/hit-floor.ts +1 -1
  3273. package/src/common/isomorphic-layout-effect.ts +1 -1
  3274. package/src/common/nest.ts +32 -0
  3275. package/src/common/props.ts +7 -33
  3276. package/src/common/retry-button.module.css +23 -22
  3277. package/src/common/retry-button.tsx +5 -2
  3278. package/src/common/use-media-query.ts +2 -3
  3279. package/src/common/validate.ts +1 -1
  3280. package/src/content/code-block.tsx +121 -110
  3281. package/src/content/contract.ts +43 -0
  3282. package/src/content/fence-trust.ts +9 -0
  3283. package/src/content/fences.tsx +143 -0
  3284. package/src/content/headings.tsx +96 -0
  3285. package/src/content/highlighter.ts +112 -17
  3286. package/src/content/index.ts +15 -18
  3287. package/src/content/markdown.tsx +156 -622
  3288. package/src/content/mermaid.tsx +104 -98
  3289. package/src/content/pele-peer.ts +28 -0
  3290. package/src/content/sanitize.ts +64 -488
  3291. package/src/controls/appearance-switcher.tsx +239 -0
  3292. package/src/controls/contract.ts +185 -0
  3293. package/src/controls/control-home.tsx +135 -0
  3294. package/src/controls/control-kind.ts +28 -0
  3295. package/src/controls/control-view.handles.ts +136 -0
  3296. package/src/controls/control-view.tsx +160 -0
  3297. package/src/controls/draft.ts +145 -0
  3298. package/src/controls/facets.ts +35 -0
  3299. package/src/controls/filter-set-census.ts +111 -0
  3300. package/src/controls/filter-set-fold.ts +91 -0
  3301. package/src/controls/filter-set-menu.tsx +258 -0
  3302. package/src/controls/filter-set-spec.tsx +342 -0
  3303. package/src/controls/filter-set.tsx +29 -234
  3304. package/src/controls/filter-slot.tsx +252 -0
  3305. package/src/controls/form-field.tsx +370 -0
  3306. package/src/controls/form-footer.tsx +205 -0
  3307. package/src/controls/form-row.tsx +60 -0
  3308. package/src/controls/form-section.tsx +220 -0
  3309. package/src/controls/globals.tsx +56 -0
  3310. package/src/controls/index.ts +73 -13
  3311. package/src/controls/local-control.ts +34 -0
  3312. package/src/controls/renderers.tsx +514 -0
  3313. package/src/controls/row-icon.tsx +18 -0
  3314. package/src/controls/settings-rows.tsx +326 -0
  3315. package/src/controls/spec.ts +82 -0
  3316. package/src/controls/stepper.tsx +226 -0
  3317. package/src/controls/submit.ts +84 -0
  3318. package/src/controls/use-committed-field.ts +117 -0
  3319. package/src/controls/view-tabs.test-support.tsx +72 -0
  3320. package/src/controls/view-tabs.tsx +184 -153
  3321. package/src/controls/wizard-dialog.tsx +312 -0
  3322. package/src/core/action-menu-items.tsx +73 -0
  3323. package/src/core/action.ts +52 -0
  3324. package/src/core/appearance.ts +166 -0
  3325. package/src/core/binding.ts +41 -0
  3326. package/src/core/card-menu.tsx +230 -0
  3327. package/src/core/channel-transport.ts +74 -0
  3328. package/src/core/channel.ts +454 -0
  3329. package/src/core/chord-keys.tsx +36 -0
  3330. package/src/core/chord.ts +234 -0
  3331. package/src/core/clipboard.ts +27 -0
  3332. package/src/core/cn-theme.gen.ts +57 -0
  3333. package/src/core/cn-theme.ts +60 -0
  3334. package/src/core/cn.ts +407 -0
  3335. package/src/core/commit-key.ts +17 -0
  3336. package/src/core/context-trigger.ts +314 -0
  3337. package/src/core/control-scope.ts +50 -0
  3338. package/src/core/could-not-load.ts +9 -0
  3339. package/src/core/date-stepper.tsx +145 -0
  3340. package/src/core/debounce.ts +80 -0
  3341. package/src/core/drag-landing.ts +11 -0
  3342. package/src/core/error-dot.tsx +15 -0
  3343. package/src/core/external-field.golden.json +34 -0
  3344. package/src/core/external-field.ts +104 -0
  3345. package/src/core/focus-handle.tsx +264 -0
  3346. package/src/core/focus-release.ts +26 -0
  3347. package/src/core/focus-store.ts +696 -0
  3348. package/src/core/form-dirty.ts +47 -0
  3349. package/src/core/format.ts +347 -0
  3350. package/src/core/frame-arm.ts +19 -0
  3351. package/src/core/frame-figure.tsx +193 -0
  3352. package/src/core/frame-head.tsx +418 -0
  3353. package/src/core/frame-regions.tsx +579 -0
  3354. package/src/core/frame-spec.test-support.tsx +81 -0
  3355. package/src/core/frame-tiles.tsx +104 -0
  3356. package/src/core/href.ts +51 -0
  3357. package/src/core/info-hint.tsx +164 -0
  3358. package/src/core/keyboard.ts +65 -0
  3359. package/src/core/label-text.tsx +11 -0
  3360. package/src/core/label.ts +45 -0
  3361. package/src/core/lanes.ts +85 -0
  3362. package/src/core/leave-guard.ts +179 -0
  3363. package/src/core/link-href.type-guard.tsx +45 -0
  3364. package/src/core/link.ts +26 -0
  3365. package/src/core/list/engine.tsx +605 -0
  3366. package/src/core/list/option-row.tsx +204 -0
  3367. package/src/core/list/options.ts +165 -0
  3368. package/src/core/list/popup.tsx +83 -0
  3369. package/src/core/list/rank.ts +65 -0
  3370. package/src/core/list-link.ts +109 -0
  3371. package/src/core/live-actions.ts +131 -0
  3372. package/src/core/mark-focus.ts +94 -0
  3373. package/src/core/mark-tone.ts +42 -0
  3374. package/src/core/mark-types.ts +98 -0
  3375. package/src/core/menu-key.ts +3 -0
  3376. package/src/core/menu.type-guard.tsx +34 -0
  3377. package/src/core/messages/ai.ts +71 -0
  3378. package/src/core/messages/base.ts +31 -0
  3379. package/src/core/messages/cards.ts +16 -0
  3380. package/src/core/messages/chain.ts +27 -0
  3381. package/src/core/messages/charts.ts +54 -0
  3382. package/src/core/messages/common.ts +189 -0
  3383. package/src/core/messages/content.ts +8 -0
  3384. package/src/core/messages/controls.ts +80 -0
  3385. package/src/core/messages/date.ts +22 -0
  3386. package/src/core/messages/dialogs.ts +17 -0
  3387. package/src/core/messages/filters.ts +31 -0
  3388. package/src/core/messages/flow.ts +28 -0
  3389. package/src/core/messages/home.ts +15 -0
  3390. package/src/core/messages/index.ts +129 -0
  3391. package/src/core/messages/kanban.ts +25 -0
  3392. package/src/core/messages/keys.ts +21 -0
  3393. package/src/core/messages/lists.ts +78 -0
  3394. package/src/core/messages/live.ts +54 -0
  3395. package/src/core/messages/mark.ts +27 -0
  3396. package/src/core/messages/menu.ts +13 -0
  3397. package/src/core/messages/page.ts +71 -0
  3398. package/src/core/messages/schedule.ts +34 -0
  3399. package/src/core/messages/select.ts +21 -0
  3400. package/src/core/messages/shell.ts +82 -0
  3401. package/src/core/messages/sortable.ts +13 -0
  3402. package/src/core/messages/status.ts +27 -0
  3403. package/src/core/messages/table.ts +352 -0
  3404. package/src/core/messages/tree.ts +67 -0
  3405. package/src/core/messages/upload.ts +57 -0
  3406. package/src/core/messages/use-messages.ts +59 -0
  3407. package/src/core/messages/use-text.ts +19 -0
  3408. package/src/core/notify.ts +287 -0
  3409. package/src/core/object-menu-popup.tsx +55 -0
  3410. package/src/core/object-menu.tsx +134 -0
  3411. package/src/core/offline-line.tsx +13 -0
  3412. package/src/core/panel.tsx +267 -0
  3413. package/src/core/parse-number.ts +54 -0
  3414. package/src/core/persisted.golden.json +117 -0
  3415. package/src/core/persisted.ts +437 -0
  3416. package/src/core/phase-boundary.tsx +35 -0
  3417. package/src/core/phase.ts +485 -0
  3418. package/src/core/popup-position.ts +31 -0
  3419. package/src/core/ports.ts +432 -0
  3420. package/src/core/provider-props.tsx +71 -0
  3421. package/src/core/provider.tsx +104 -0
  3422. package/src/core/record-address.tsx +31 -0
  3423. package/src/core/record-steps.ts +56 -0
  3424. package/src/core/resolved-tokens.ts +175 -0
  3425. package/src/core/retry-label.ts +10 -0
  3426. package/src/core/retry-owner.tsx +103 -0
  3427. package/src/core/rows-shown.ts +8 -0
  3428. package/src/core/scheme.ts +81 -0
  3429. package/src/core/sheet-tools.ts +10 -0
  3430. package/src/core/slot-home.ts +12 -0
  3431. package/src/core/slug.ts +48 -0
  3432. package/src/core/spark/compile-spark.ts +142 -0
  3433. package/src/core/spark/mini-bars.tsx +266 -0
  3434. package/src/core/spark/sparkline-shared.tsx +391 -0
  3435. package/src/core/spark/sparkline.tsx +377 -0
  3436. package/src/core/standard-actions.ts +103 -0
  3437. package/src/core/stat-row.ts +22 -0
  3438. package/src/core/tree-model.ts +169 -0
  3439. package/src/core/url.ts +63 -0
  3440. package/src/core/use-control.ts +28 -0
  3441. package/src/core/use-locale.ts +12 -0
  3442. package/src/core/use-now.ts +60 -0
  3443. package/src/core/use-resolved-tokens.ts +19 -0
  3444. package/src/core/use-standard-actions.ts +12 -0
  3445. package/src/core/write-batch.ts +40 -0
  3446. package/src/core/zoned.ts +189 -0
  3447. package/src/css/archify.css +37 -0
  3448. package/src/css/base.css +286 -0
  3449. package/src/css/cursor.css +119 -0
  3450. package/src/css/fonts.css +84 -0
  3451. package/src/css/generate.ts +365 -0
  3452. package/src/css/prose.css +214 -0
  3453. package/src/css/starlight.css +342 -0
  3454. package/src/css/static.css +263 -0
  3455. package/src/css/tailwind.css +254 -0
  3456. package/src/css/templates/fonts.css +82 -0
  3457. package/src/css/templates/prose.css +230 -0
  3458. package/src/css/templates/starlight.css +356 -0
  3459. package/src/css/templates/typography.css +50 -0
  3460. package/src/css/theme-script.ts +73 -0
  3461. package/src/css/tokens.css +233 -0
  3462. package/src/css/touch.css +36 -0
  3463. package/src/css/typography.css +89 -0
  3464. package/src/data/index.ts +17 -0
  3465. package/src/data/live/bind-invalidation.ts +263 -0
  3466. package/src/data/live/connection.ts +261 -0
  3467. package/src/data/live/freshness.ts +165 -0
  3468. package/src/data/live/live-query-runtime.ts +96 -0
  3469. package/src/data/live/live-query.ts +214 -0
  3470. package/src/data/optimistic.ts +109 -0
  3471. package/src/data/query-client.ts +61 -0
  3472. package/src/data/shot-state.ts +132 -0
  3473. package/src/data/synced-runtime.ts +516 -0
  3474. package/src/data/synced.ts +236 -0
  3475. package/src/data/unwrap.ts +71 -0
  3476. package/src/form/contexts.ts +9 -0
  3477. package/src/form/hook.ts +410 -0
  3478. package/src/form/index.ts +17 -0
  3479. package/src/form/parts.tsx +99 -0
  3480. package/src/format/locale.ts +3 -0
  3481. package/src/format/number.ts +5 -110
  3482. package/src/format/shared.ts +24 -99
  3483. package/src/index.ts +77 -67
  3484. package/src/lint/bin.ts +34 -0
  3485. package/src/lint/blanket-disable.ts +114 -0
  3486. package/src/lint/check-tokens.ts +245 -0
  3487. package/src/lint/factory.ts +443 -0
  3488. package/src/lint/generated/gen-site-classes.ts +58 -0
  3489. package/src/lint/generated/gen-zone-a.ts +95 -0
  3490. package/src/lint/generated/site-classes.ts +46 -0
  3491. package/src/lint/generated/zone-a.ts +88 -0
  3492. package/src/lint/index.ts +49 -0
  3493. package/src/lint/lintable.ts +2 -0
  3494. package/src/lint/preset.ts +734 -0
  3495. package/src/lint/renamed-rules.ts +11 -0
  3496. package/src/lint/rule-table.ts +334 -0
  3497. package/src/lint/rules/class/detect.ts +1321 -0
  3498. package/src/lint/rules/class/table.ts +565 -0
  3499. package/src/lint/rules/structure/ast.ts +56 -0
  3500. package/src/lint/rules/structure/color-literal.ts +232 -0
  3501. package/src/lint/rules/structure/control-home.ts +379 -0
  3502. package/src/lint/rules/structure/data-primitive-live.ts +153 -0
  3503. package/src/lint/rules/structure/data-primitive.ts +759 -0
  3504. package/src/lint/rules/structure/format-home.ts +544 -0
  3505. package/src/lint/rules/structure/import-boundary.ts +1160 -0
  3506. package/src/lint/rules/structure/label-literal.ts +617 -0
  3507. package/src/lint/rules/structure/motion-literal.ts +195 -0
  3508. package/src/lint/rules/structure/page-root.ts +229 -0
  3509. package/src/lint/rules/structure/primitive-bypass.ts +1430 -0
  3510. package/src/lint/rules/structure/query-home.ts +227 -0
  3511. package/src/lint/rules/structure/router-search.ts +483 -0
  3512. package/src/lint/rules/structure/untrusted-markdown.ts +507 -0
  3513. package/src/lint/rules/structure/waiver-needs-reason.ts +188 -0
  3514. package/src/lint/stylelint/gen.ts +33 -0
  3515. package/src/lint/stylelint/index.ts +10 -0
  3516. package/src/lint/stylelint/render.ts +89 -0
  3517. package/src/lint/stylelint/rules.ts +348 -0
  3518. package/src/lint/weakened.ts +600 -0
  3519. package/src/lint/weakening-edit.ts +95 -0
  3520. package/src/messages/GLOSSARY.md +65 -0
  3521. package/src/messages/de.ts +708 -0
  3522. package/src/messages/es.ts +711 -0
  3523. package/src/messages/fr.ts +717 -0
  3524. package/src/messages/zh-hans.ts +691 -0
  3525. package/src/motion/index.ts +38 -0
  3526. package/src/motion/presets.ts +96 -0
  3527. package/src/page/article-layout.tsx +231 -0
  3528. package/src/page/article-progress.tsx +76 -0
  3529. package/src/page/callout.tsx +57 -0
  3530. package/src/page/card-grid.tsx +97 -0
  3531. package/src/page/connection-indicator.tsx +154 -0
  3532. package/src/page/contract.ts +297 -0
  3533. package/src/page/core/article-date.ts +27 -0
  3534. package/src/page/core/bar-measure.ts +68 -0
  3535. package/src/page/core/claims.ts +153 -0
  3536. package/src/page/core/docking.ts +86 -0
  3537. package/src/page/core/panel-store.ts +66 -0
  3538. package/src/page/define-overlays.ts +150 -0
  3539. package/src/page/dock.tsx +260 -0
  3540. package/src/page/empty-state.tsx +115 -0
  3541. package/src/page/error-cause.ts +18 -0
  3542. package/src/page/facts.tsx +50 -0
  3543. package/src/page/favorites.tsx +180 -0
  3544. package/src/page/index.ts +67 -0
  3545. package/src/page/mdx.tsx +142 -0
  3546. package/src/page/overlay-host.tsx +115 -0
  3547. package/src/page/page-aside.tsx +386 -0
  3548. package/src/page/page-bar.tsx +735 -0
  3549. package/src/page/page-kit.type-guard.tsx +135 -0
  3550. package/src/page/page-summary.tsx +209 -0
  3551. package/src/page/page-tabs.tsx +78 -0
  3552. package/src/page/page.test-support.tsx +103 -0
  3553. package/src/page/page.tsx +193 -0
  3554. package/src/page/panel-steps.tsx +70 -0
  3555. package/src/page/parts/inner-nav.test-support.tsx +78 -0
  3556. package/src/page/parts/inner-nav.tsx +373 -0
  3557. package/src/page/parts/split-page.tsx +228 -0
  3558. package/src/page/peek-window.tsx +297 -0
  3559. package/src/page/peek.tsx +660 -0
  3560. package/src/page/present-glyph.tsx +33 -0
  3561. package/src/page/property-list.tsx +574 -0
  3562. package/src/page/prose.tsx +50 -0
  3563. package/src/page/query-state.tsx +163 -0
  3564. package/src/page/record-panel.tsx +357 -0
  3565. package/src/page/refresh-button.tsx +198 -0
  3566. package/src/page/search-hint.ts +56 -0
  3567. package/src/page/section.tsx +146 -0
  3568. package/src/page/settings-layout.tsx +128 -0
  3569. package/src/page/toast-host.tsx +89 -0
  3570. package/src/page/toc-click-pin.ts +157 -0
  3571. package/src/page/toc.tsx +226 -0
  3572. package/src/page/use-size-class.ts +45 -0
  3573. package/src/register.ts +11 -57
  3574. package/src/router/controls/brand.ts +104 -0
  3575. package/src/router/controls/codec.ts +207 -0
  3576. package/src/router/controls/define.ts +795 -0
  3577. package/src/router/controls/field.ts +314 -0
  3578. package/src/router/controls/fixtures/argo-window-stores.json +76 -0
  3579. package/src/router/controls/fixtures/cases.json +8 -0
  3580. package/src/router/controls/fixtures/linewatch-dashboard.json +20 -0
  3581. package/src/router/controls/fixtures/shutterflow-photos-settings.json +26 -0
  3582. package/src/router/controls/href.ts +37 -0
  3583. package/src/router/controls/middleware.ts +80 -0
  3584. package/src/router/controls/ownership.ts +86 -0
  3585. package/src/router/controls/precedence.ts +26 -0
  3586. package/src/router/controls/values.ts +15 -0
  3587. package/src/router/controls/widgets.ts +403 -0
  3588. package/src/router/defaults.ts +124 -0
  3589. package/src/router/index.ts +18 -0
  3590. package/src/router/nav/anchor.ts +37 -0
  3591. package/src/router/nav/define-nav.ts +52 -0
  3592. package/src/router/nav/read-labels.ts +102 -0
  3593. package/src/router/nav/registry.ts +35 -0
  3594. package/src/router/nav/resolve-active.ts +144 -0
  3595. package/src/router/nav/types.ts +282 -0
  3596. package/src/router/nav-target.ts +126 -0
  3597. package/src/router/peek.ts +400 -0
  3598. package/src/router/unsaved-guard.ts +65 -0
  3599. package/src/shell/app-shell-host.ts +90 -0
  3600. package/src/shell/app-shell.tsx +405 -0
  3601. package/src/shell/chrome.tsx +118 -0
  3602. package/src/shell/commands/area.ts +12 -0
  3603. package/src/shell/commands/bindings.ts +150 -0
  3604. package/src/shell/commands/command-palette.tsx +382 -0
  3605. package/src/shell/commands/define-commands.ts +346 -0
  3606. package/src/shell/commands/nav-commands.ts +54 -0
  3607. package/src/shell/commands/palette-sheet.tsx +35 -0
  3608. package/src/shell/commands/palette-sources.ts +202 -0
  3609. package/src/shell/commands/rank.ts +38 -0
  3610. package/src/shell/commands/runnable.ts +85 -0
  3611. package/src/shell/commands/shortcut-overlay.tsx +61 -0
  3612. package/src/shell/commands/shortcut-rows.ts +46 -0
  3613. package/src/shell/contract.ts +169 -0
  3614. package/src/shell/core/badges.ts +71 -0
  3615. package/src/shell/core/block-model.ts +132 -0
  3616. package/src/shell/core/column.ts +60 -0
  3617. package/src/shell/core/crumbs.ts +132 -0
  3618. package/src/shell/core/header-tiers.ts +76 -0
  3619. package/src/shell/core/nav-runtime.ts +92 -0
  3620. package/src/shell/core/phone-groups.ts +76 -0
  3621. package/src/shell/core/projector.ts +195 -0
  3622. package/src/shell/core/types.ts +58 -0
  3623. package/src/shell/favorites-host.ts +50 -0
  3624. package/src/shell/index.ts +32 -0
  3625. package/src/shell/menu-template.golden.json +52 -0
  3626. package/src/shell/menu-template.ts +138 -0
  3627. package/src/shell/parts/a11y.tsx +210 -0
  3628. package/src/shell/parts/account.tsx +136 -0
  3629. package/src/shell/parts/blocks.tsx +296 -0
  3630. package/src/shell/parts/crumbs.tsx +81 -0
  3631. package/src/shell/parts/grid.tsx +638 -0
  3632. package/src/shell/parts/header-kebab.tsx +132 -0
  3633. package/src/shell/parts/header.tsx +436 -0
  3634. package/src/shell/parts/mobile/retap.ts +94 -0
  3635. package/src/shell/parts/mobile/section-nav/chrome-state.ts +50 -0
  3636. package/src/shell/parts/mobile/section-nav/drawer.tsx +253 -0
  3637. package/src/shell/parts/mobile/section-nav/host.tsx +94 -0
  3638. package/src/shell/parts/mobile/section-nav/measure.ts +22 -0
  3639. package/src/shell/parts/mobile/section-nav/model.ts +100 -0
  3640. package/src/shell/parts/mobile/section-nav/parts.tsx +114 -0
  3641. package/src/shell/parts/mobile/section-nav/phone-actions.tsx +92 -0
  3642. package/src/shell/parts/mobile/section-nav/phone-rail.tsx +239 -0
  3643. package/src/shell/parts/mobile/section-nav/rows.tsx +94 -0
  3644. package/src/shell/parts/mobile/section-nav/safe.ts +8 -0
  3645. package/src/shell/parts/mobile/section-nav/section-bar.tsx +136 -0
  3646. package/src/shell/parts/mobile/section-nav/snaps.ts +45 -0
  3647. package/src/shell/parts/mounts.tsx +44 -0
  3648. package/src/shell/parts/nav-row-menu.tsx +86 -0
  3649. package/src/shell/parts/print.ts +48 -0
  3650. package/src/shell/parts/rail-favorites.tsx +162 -0
  3651. package/src/shell/parts/rail-folds.ts +47 -0
  3652. package/src/shell/parts/rail-resize.tsx +97 -0
  3653. package/src/shell/parts/rail-rows.tsx +217 -0
  3654. package/src/shell/parts/rail-search.tsx +55 -0
  3655. package/src/shell/parts/rail-section.tsx +146 -0
  3656. package/src/shell/parts/rail-test-kit.tsx +50 -0
  3657. package/src/shell/parts/rail-text.ts +26 -0
  3658. package/src/shell/parts/rail.tsx +160 -0
  3659. package/src/shell/parts/section-column.tsx +124 -0
  3660. package/src/shell/parts/settings.tsx +89 -0
  3661. package/src/shell/parts/top-nav.tsx +218 -0
  3662. package/src/shell/parts/workspace-switcher.tsx +109 -0
  3663. package/src/static/article-layout.tsx +201 -0
  3664. package/src/static/bento.tsx +106 -0
  3665. package/src/static/blocks.tsx +62 -0
  3666. package/src/static/call-to-action.tsx +53 -0
  3667. package/src/static/callout.tsx +79 -0
  3668. package/src/static/changelog.tsx +110 -0
  3669. package/src/static/code-block.tsx +60 -0
  3670. package/src/static/comparison.tsx +169 -0
  3671. package/src/static/data-table.tsx +101 -0
  3672. package/src/static/dates.ts +10 -0
  3673. package/src/static/form.tsx +163 -0
  3674. package/src/static/glyphs.tsx +35 -0
  3675. package/src/static/hero.tsx +74 -0
  3676. package/src/static/index.ts +55 -0
  3677. package/src/static/markup.ts +30 -0
  3678. package/src/static/mdx.tsx +135 -0
  3679. package/src/static/post-list.tsx +112 -0
  3680. package/src/static/question-list.tsx +82 -0
  3681. package/src/static/site-footer.tsx +77 -0
  3682. package/src/static/site-header.tsx +349 -0
  3683. package/src/static/site-nav.tsx +93 -0
  3684. package/src/static/site-script.ts +125 -0
  3685. package/src/static/tabs.tsx +103 -0
  3686. package/src/static/theme-switch.tsx +53 -0
  3687. package/src/static/toc.tsx +59 -0
  3688. package/src/static/types.ts +69 -0
  3689. package/src/surfaces.ts +302 -428
  3690. package/src/table/action-id.type-guard.tsx +31 -0
  3691. package/src/table/column-ids.type-test.ts +181 -0
  3692. package/src/table/contract.ts +587 -0
  3693. package/src/table/contract.type-test.ts +118 -0
  3694. package/src/table/core/arrange.ts +89 -0
  3695. package/src/table/core/cell-parts.tsx +157 -0
  3696. package/src/table/core/codec.ts +392 -0
  3697. package/src/table/core/features.ts +120 -0
  3698. package/src/table/core/filters.ts +214 -0
  3699. package/src/table/core/keyboard.ts +441 -0
  3700. package/src/table/core/kind-icons.tsx +112 -0
  3701. package/src/table/core/kinds-cells.tsx +1254 -0
  3702. package/src/table/core/kinds-codec.ts +66 -0
  3703. package/src/table/core/kinds-engine.ts +64 -0
  3704. package/src/table/core/kinds-spec.ts +575 -0
  3705. package/src/table/core/kinds.tsx +2421 -0
  3706. package/src/table/core/plan.ts +416 -0
  3707. package/src/table/core/selection.ts +154 -0
  3708. package/src/table/core/state.ts +284 -0
  3709. package/src/table/index.ts +66 -16
  3710. package/src/table/invariants/api.ts +37 -0
  3711. package/src/table/invariants/harness.tsx +47 -0
  3712. package/src/table/layouts/add-menu.tsx +49 -0
  3713. package/src/table/layouts/board-layout.tsx +227 -0
  3714. package/src/table/layouts/card-tick.tsx +37 -0
  3715. package/src/table/layouts/gallery-layout.tsx +176 -0
  3716. package/src/table/layouts/glyphs.tsx +45 -0
  3717. package/src/table/layouts/layout-phase.tsx +172 -0
  3718. package/src/table/layouts/model.ts +186 -0
  3719. package/src/table/layouts/specs.ts +79 -0
  3720. package/src/table/layouts/toggle.tsx +77 -0
  3721. package/src/table/parts/add-filter.tsx +63 -0
  3722. package/src/table/parts/auto-detail.tsx +42 -0
  3723. package/src/table/parts/body.tsx +464 -0
  3724. package/src/table/parts/bulk-bar.tsx +277 -0
  3725. package/src/table/parts/category-order.tsx +80 -0
  3726. package/src/table/parts/cell-filter.tsx +96 -0
  3727. package/src/table/parts/cell-filter.type-test.ts +24 -0
  3728. package/src/table/parts/chips.tsx +98 -0
  3729. package/src/table/parts/column-actions.tsx +269 -0
  3730. package/src/table/parts/data-table.tsx +480 -0
  3731. package/src/table/parts/detail-sheet.tsx +140 -0
  3732. package/src/table/parts/filter-text.ts +57 -0
  3733. package/src/table/parts/footer-model.ts +127 -0
  3734. package/src/table/parts/footer.tsx +178 -0
  3735. package/src/table/parts/group-row-model.ts +86 -0
  3736. package/src/table/parts/group-row.tsx +173 -0
  3737. package/src/table/parts/head.tsx +596 -0
  3738. package/src/table/parts/live-row-actions.ts +92 -0
  3739. package/src/table/parts/order-list.tsx +226 -0
  3740. package/src/table/parts/pager.tsx +232 -0
  3741. package/src/table/parts/phases.tsx +304 -0
  3742. package/src/table/parts/plus-glyph.tsx +11 -0
  3743. package/src/table/parts/range-editor.tsx +199 -0
  3744. package/src/table/parts/row-focus.tsx +196 -0
  3745. package/src/table/parts/row-menu.ts +68 -0
  3746. package/src/table/parts/row-number.tsx +80 -0
  3747. package/src/table/parts/search-label.ts +11 -0
  3748. package/src/table/parts/select-cell.tsx +135 -0
  3749. package/src/table/parts/tick-column.tsx +67 -0
  3750. package/src/table/parts/tiers.tsx +133 -0
  3751. package/src/table/parts/toolbar-editor.tsx +223 -0
  3752. package/src/table/parts/toolbar-filters.ts +68 -0
  3753. package/src/table/parts/toolbar.tsx +218 -0
  3754. package/src/table/parts/tree-row-model.ts +121 -0
  3755. package/src/table/parts/tri-state-header.tsx +53 -0
  3756. package/src/table/parts/view-door.ts +85 -0
  3757. package/src/table/parts/view-panel.tsx +728 -0
  3758. package/src/table/parts/view-tab-menu.tsx +74 -0
  3759. package/src/table/parts/views-model.ts +356 -0
  3760. package/src/table/parts/views.tsx +795 -0
  3761. package/src/table/parts/virtual.tsx +178 -0
  3762. package/src/table/table.css +2688 -0
  3763. package/src/table/use-data-table.ts +1314 -0
  3764. package/src/testing/dom-shims.ts +148 -0
  3765. package/src/testing/expect-catalog.tsx +156 -0
  3766. package/src/testing/fake-channel.ts +100 -0
  3767. package/src/testing/index.ts +8 -0
  3768. package/src/testing/quality.ts +667 -0
  3769. package/src/testing/settled.ts +94 -0
  3770. package/src/testing/shell-invariants.ts +447 -0
  3771. package/src/testing/slots.ts +17 -0
  3772. package/src/tokens/__snapshots__/emit.test.ts.snap +523 -0
  3773. package/src/tokens/accents.ts +50 -0
  3774. package/src/tokens/basalt-names.ts +367 -0
  3775. package/src/tokens/chart-vars.ts +275 -0
  3776. package/src/tokens/core.ts +202 -306
  3777. package/src/tokens/ctl-vars.ts +2 -20
  3778. package/src/tokens/derive.ts +350 -27
  3779. package/src/tokens/emit-fallback.ts +41 -0
  3780. package/src/tokens/emit-json.ts +64 -0
  3781. package/src/tokens/emit.ts +305 -0
  3782. package/src/tokens/gates.ts +253 -0
  3783. package/src/tokens/golden/default.css +233 -0
  3784. package/src/tokens/golden/hue-268-vibrancy-1.css +233 -0
  3785. package/src/tokens/hct.ts +1 -1
  3786. package/src/tokens/index.ts +15 -3
  3787. package/src/tokens/motion.ts +132 -0
  3788. package/src/tokens/oklab.ts +3 -3
  3789. package/src/tokens/palette.ts +130 -154
  3790. package/src/tokens/part-vars.ts +75 -0
  3791. package/src/tokens/ramps.ts +51 -0
  3792. package/src/tokens/site-text.ts +10 -0
  3793. package/src/tokens/size-classes.ts +14 -17
  3794. package/src/tokens/size-classes.type-guard.tsx +20 -0
  3795. package/src/tokens/space-scale.ts +2 -2
  3796. package/src/tokens/status-text.ts +36 -1
  3797. package/src/tokens/table.ts +698 -0
  3798. package/src/ui/accordion.guard.ts +15 -0
  3799. package/src/ui/accordion.tsx +142 -0
  3800. package/src/ui/alert.guard.ts +21 -0
  3801. package/src/ui/alert.tsx +105 -0
  3802. package/src/ui/avatar.guard.ts +41 -0
  3803. package/src/ui/avatar.tsx +237 -0
  3804. package/src/ui/badge.guard.ts +27 -0
  3805. package/src/ui/badge.tsx +269 -0
  3806. package/src/ui/button.guard.ts +30 -0
  3807. package/src/ui/button.tsx +203 -0
  3808. package/src/ui/calendar-grid.ts +193 -0
  3809. package/src/ui/calendar.guard.ts +54 -0
  3810. package/src/ui/calendar.tsx +200 -0
  3811. package/src/ui/card.guard.ts +15 -0
  3812. package/src/ui/card.tsx +392 -0
  3813. package/src/ui/checkbox-matrix.guard.ts +28 -0
  3814. package/src/ui/checkbox-matrix.tsx +344 -0
  3815. package/src/ui/checkbox.guard.ts +36 -0
  3816. package/src/ui/checkbox.tsx +184 -0
  3817. package/src/ui/choice-card.guard.ts +24 -0
  3818. package/src/ui/choice-card.tsx +100 -0
  3819. package/src/ui/collapsible.guard.ts +17 -0
  3820. package/src/ui/collapsible.tsx +79 -0
  3821. package/src/ui/combobox.guard.ts +26 -0
  3822. package/src/ui/combobox.tsx +1053 -0
  3823. package/src/ui/context-menu.tsx +214 -0
  3824. package/src/ui/control-group.guard.ts +29 -0
  3825. package/src/ui/control-group.tsx +266 -0
  3826. package/src/ui/copy-button.tsx +117 -0
  3827. package/src/ui/date-picker.guard.ts +54 -0
  3828. package/src/ui/date-picker.tsx +394 -0
  3829. package/src/ui/dialog.guard.ts +41 -0
  3830. package/src/ui/dialog.tsx +397 -0
  3831. package/src/ui/drag-auto-scroll.ts +125 -0
  3832. package/src/ui/entity.guard.ts +41 -0
  3833. package/src/ui/entity.tsx +219 -0
  3834. package/src/ui/field.guard.ts +24 -0
  3835. package/src/ui/field.tsx +206 -0
  3836. package/src/ui/file-upload.guard.ts +45 -0
  3837. package/src/ui/file-upload.tsx +462 -0
  3838. package/src/ui/guard-completeness.ts +204 -0
  3839. package/src/ui/header-actions.ts +27 -0
  3840. package/src/ui/info-hint.guard.ts +21 -0
  3841. package/src/ui/info-hint.tsx +98 -0
  3842. package/src/ui/input.guard.ts +15 -0
  3843. package/src/ui/input.tsx +95 -0
  3844. package/src/ui/kbd.guard.ts +16 -0
  3845. package/src/ui/kbd.tsx +74 -0
  3846. package/src/ui/leave-confirm.ts +50 -0
  3847. package/src/ui/list-sheet.ts +29 -0
  3848. package/src/ui/menu.guard.ts +70 -0
  3849. package/src/ui/menu.tsx +437 -0
  3850. package/src/ui/meter.guard.ts +53 -0
  3851. package/src/ui/meter.tsx +551 -0
  3852. package/src/ui/no-restyle.generated.json +652 -0
  3853. package/src/ui/num.guard.ts +22 -0
  3854. package/src/ui/num.tsx +66 -0
  3855. package/src/ui/number-field.guard.ts +26 -0
  3856. package/src/ui/number-field.tsx +141 -0
  3857. package/src/ui/one-time-code.guard.ts +28 -0
  3858. package/src/ui/one-time-code.tsx +121 -0
  3859. package/src/ui/overlay-presenter.ts +138 -0
  3860. package/src/ui/overlay-sheet.ts +47 -0
  3861. package/src/ui/password-input.tsx +74 -0
  3862. package/src/ui/popover.guard.ts +43 -0
  3863. package/src/ui/popover.tsx +210 -0
  3864. package/src/ui/primitive.contract.ts +419 -0
  3865. package/src/ui/progress.guard.ts +40 -0
  3866. package/src/ui/progress.tsx +246 -0
  3867. package/src/ui/quick-picks.guard.ts +22 -0
  3868. package/src/ui/quick-picks.tsx +92 -0
  3869. package/src/ui/radio-group.guard.ts +25 -0
  3870. package/src/ui/radio-group.tsx +177 -0
  3871. package/src/ui/resizable.tsx +99 -0
  3872. package/src/ui/scroll-area.guard.ts +18 -0
  3873. package/src/ui/scroll-area.tsx +110 -0
  3874. package/src/ui/segmented.guard.ts +28 -0
  3875. package/src/ui/segmented.tsx +261 -0
  3876. package/src/ui/select.guard.ts +27 -0
  3877. package/src/ui/select.tsx +765 -0
  3878. package/src/ui/separator.guard.ts +15 -0
  3879. package/src/ui/separator.tsx +53 -0
  3880. package/src/ui/sheet.guard.ts +40 -0
  3881. package/src/ui/sheet.tsx +602 -0
  3882. package/src/ui/skeleton.guard.ts +21 -0
  3883. package/src/ui/skeleton.tsx +95 -0
  3884. package/src/ui/slider.guard.ts +30 -0
  3885. package/src/ui/slider.tsx +114 -0
  3886. package/src/ui/slots.ts +116 -0
  3887. package/src/ui/sortable-list.tsx +382 -0
  3888. package/src/ui/status.guard.ts +27 -0
  3889. package/src/ui/status.tsx +101 -0
  3890. package/src/ui/swatch-picker.guard.ts +27 -0
  3891. package/src/ui/swatch-picker.tsx +263 -0
  3892. package/src/ui/switch.guard.ts +23 -0
  3893. package/src/ui/switch.tsx +44 -0
  3894. package/src/ui/table.guard.ts +18 -0
  3895. package/src/ui/table.tsx +205 -0
  3896. package/src/ui/tabs.guard.ts +15 -0
  3897. package/src/ui/tabs.tsx +257 -0
  3898. package/src/ui/tag-input.guard.ts +29 -0
  3899. package/src/ui/tag-input.tsx +243 -0
  3900. package/src/ui/textarea.guard.ts +24 -0
  3901. package/src/ui/textarea.tsx +115 -0
  3902. package/src/ui/toast.guard.ts +15 -0
  3903. package/src/ui/toast.tsx +173 -0
  3904. package/src/ui/toolbar.guard.ts +25 -0
  3905. package/src/ui/toolbar.tsx +163 -0
  3906. package/src/ui/tooltip.guard.ts +27 -0
  3907. package/src/ui/tooltip.tsx +183 -0
  3908. package/src/ui/tree.guard.ts +72 -0
  3909. package/src/ui/tree.tsx +1690 -0
  3910. package/src/ui/virtual-list.guard.ts +31 -0
  3911. package/src/ui/virtual-list.tsx +200 -0
  3912. package/src/vite/allotment.ts +131 -0
  3913. package/src/vite/doc.ts +94 -0
  3914. package/src/vite/ejects.ts +68 -0
  3915. package/src/vite/graph.ts +215 -0
  3916. package/src/vite/head.ts +297 -0
  3917. package/src/vite/index.ts +230 -0
  3918. package/src/vite/sources.ts +57 -0
  3919. package/src/vite/table-sheet.ts +17 -0
  3920. package/agent/agents/basalt-design-reviewer.md +0 -100
  3921. package/agent/rules/basalt-batteries.md +0 -41
  3922. package/agent/rules/basalt-controls.md +0 -46
  3923. package/agent/rules/basalt-mantine.md +0 -48
  3924. package/agent/skills/basalt-design/references/catalogue.md +0 -58
  3925. package/agent/skills/basalt-design/references/encoding-rules.md +0 -45
  3926. package/agent/skills/basalt-design/references/recipes.md +0 -47
  3927. package/agent/skills/basalt-design/references/stat-tile.md +0 -24
  3928. package/configs/card-inset.test.ts +0 -57
  3929. package/configs/oxlint-basalt.json +0 -28
  3930. package/configs/oxlint-plugin.js +0 -4382
  3931. package/configs/oxlint-plugin.test.ts +0 -4480
  3932. package/configs/oxlint.json +0 -63
  3933. package/dist/agent/ai-sdk-transport.d.ts +0 -48
  3934. package/dist/agent/ai-sdk-transport.d.ts.map +0 -1
  3935. package/dist/agent/ai-sdk-transport.js +0 -206
  3936. package/dist/agent/chat/composer.d.ts +0 -144
  3937. package/dist/agent/chat/composer.d.ts.map +0 -1
  3938. package/dist/agent/chat/composer.js +0 -268
  3939. package/dist/agent/chat/message-affordances.d.ts +0 -60
  3940. package/dist/agent/chat/message-affordances.d.ts.map +0 -1
  3941. package/dist/agent/chat/message-affordances.js +0 -7
  3942. package/dist/agent/chat/thread-feed-row.d.ts +0 -93
  3943. package/dist/agent/chat/thread-feed-row.d.ts.map +0 -1
  3944. package/dist/agent/chat/thread-feed-row.js +0 -192
  3945. package/dist/agent/chat/thread-feed.d.ts +0 -58
  3946. package/dist/agent/chat/thread-feed.d.ts.map +0 -1
  3947. package/dist/agent/chat/thread-feed.js +0 -86
  3948. package/dist/agent/chat/thread-message.d.ts +0 -74
  3949. package/dist/agent/chat/thread-message.d.ts.map +0 -1
  3950. package/dist/agent/chat/thread-message.js +0 -367
  3951. package/dist/agent/chat/thread-outcome-card.d.ts +0 -20
  3952. package/dist/agent/chat/thread-outcome-card.d.ts.map +0 -1
  3953. package/dist/agent/chat/thread-outcome-card.js +0 -112
  3954. package/dist/agent/chat/tool-chip.d.ts +0 -22
  3955. package/dist/agent/chat/tool-chip.d.ts.map +0 -1
  3956. package/dist/agent/chat/tool-chip.js +0 -125
  3957. package/dist/agent/chat/use-keyboard-inset.d.ts +0 -2
  3958. package/dist/agent/chat/use-keyboard-inset.d.ts.map +0 -1
  3959. package/dist/agent/chat/use-keyboard-inset.js +0 -34
  3960. package/dist/agent/chat/virtualize.d.ts +0 -162
  3961. package/dist/agent/chat/virtualize.d.ts.map +0 -1
  3962. package/dist/agent/chat/virtualize.js +0 -24
  3963. package/dist/agent/coalesce.d.ts +0 -42
  3964. package/dist/agent/coalesce.d.ts.map +0 -1
  3965. package/dist/agent/coalesce.js +0 -137
  3966. package/dist/agent/error.d.ts +0 -46
  3967. package/dist/agent/error.d.ts.map +0 -1
  3968. package/dist/agent/error.js +0 -18
  3969. package/dist/agent/foreign.d.ts +0 -98
  3970. package/dist/agent/foreign.d.ts.map +0 -1
  3971. package/dist/agent/foreign.js +0 -18
  3972. package/dist/agent/history.d.ts +0 -23
  3973. package/dist/agent/history.d.ts.map +0 -1
  3974. package/dist/agent/id.d.ts +0 -112
  3975. package/dist/agent/id.d.ts.map +0 -1
  3976. package/dist/agent/id.js +0 -44
  3977. package/dist/agent/index.d.ts +0 -28
  3978. package/dist/agent/index.d.ts.map +0 -1
  3979. package/dist/agent/index.js +0 -18
  3980. package/dist/agent/merge.d.ts +0 -8
  3981. package/dist/agent/merge.d.ts.map +0 -1
  3982. package/dist/agent/merge.js +0 -35
  3983. package/dist/agent/outcome.d.ts +0 -60
  3984. package/dist/agent/outcome.d.ts.map +0 -1
  3985. package/dist/agent/part-list.d.ts +0 -90
  3986. package/dist/agent/part-list.d.ts.map +0 -1
  3987. package/dist/agent/part-list.js +0 -185
  3988. package/dist/agent/parts.d.ts +0 -205
  3989. package/dist/agent/parts.d.ts.map +0 -1
  3990. package/dist/agent/parts.js +0 -176
  3991. package/dist/agent/run-committer.d.ts +0 -23
  3992. package/dist/agent/run-committer.d.ts.map +0 -1
  3993. package/dist/agent/run-committer.js +0 -41
  3994. package/dist/agent/run-records.d.ts +0 -86
  3995. package/dist/agent/run-records.d.ts.map +0 -1
  3996. package/dist/agent/run-records.js +0 -82
  3997. package/dist/agent/stick-to-bottom.d.ts +0 -20
  3998. package/dist/agent/stick-to-bottom.d.ts.map +0 -1
  3999. package/dist/agent/stick-to-bottom.js +0 -77
  4000. package/dist/agent/thread.d.ts +0 -118
  4001. package/dist/agent/thread.d.ts.map +0 -1
  4002. package/dist/agent/thread.js +0 -6
  4003. package/dist/agent/transport.d.ts +0 -78
  4004. package/dist/agent/transport.d.ts.map +0 -1
  4005. package/dist/agent/transport.js +0 -6
  4006. package/dist/agent/use-agent-thread-runs.d.ts +0 -147
  4007. package/dist/agent/use-agent-thread-runs.d.ts.map +0 -1
  4008. package/dist/agent/use-agent-thread-runs.js +0 -476
  4009. package/dist/charts/BandStrip.d.ts +0 -62
  4010. package/dist/charts/BandStrip.d.ts.map +0 -1
  4011. package/dist/charts/BandStrip.js +0 -310
  4012. package/dist/charts/Bars.d.ts +0 -19
  4013. package/dist/charts/Bars.d.ts.map +0 -1
  4014. package/dist/charts/Bars.js +0 -144
  4015. package/dist/charts/CartesianChart.d.ts +0 -72
  4016. package/dist/charts/CartesianChart.d.ts.map +0 -1
  4017. package/dist/charts/CartesianChart.js +0 -139
  4018. package/dist/charts/ChartCard.d.ts +0 -91
  4019. package/dist/charts/ChartCard.d.ts.map +0 -1
  4020. package/dist/charts/ChartCard.js +0 -272
  4021. package/dist/charts/Donut.d.ts +0 -25
  4022. package/dist/charts/Donut.d.ts.map +0 -1
  4023. package/dist/charts/Donut.js +0 -203
  4024. package/dist/charts/DualPanel.d.ts +0 -51
  4025. package/dist/charts/DualPanel.d.ts.map +0 -1
  4026. package/dist/charts/DualPanel.js +0 -246
  4027. package/dist/charts/Heatmap.d.ts +0 -84
  4028. package/dist/charts/Heatmap.d.ts.map +0 -1
  4029. package/dist/charts/Heatmap.js +0 -294
  4030. package/dist/charts/Lines.d.ts +0 -14
  4031. package/dist/charts/Lines.d.ts.map +0 -1
  4032. package/dist/charts/Lines.js +0 -106
  4033. package/dist/charts/MirroredBars.d.ts +0 -55
  4034. package/dist/charts/MirroredBars.d.ts.map +0 -1
  4035. package/dist/charts/MirroredBars.js +0 -221
  4036. package/dist/charts/Sparkline.d.ts +0 -70
  4037. package/dist/charts/Sparkline.d.ts.map +0 -1
  4038. package/dist/charts/Sparkline.js +0 -652
  4039. package/dist/charts/StackedArea.d.ts +0 -18
  4040. package/dist/charts/StackedArea.d.ts.map +0 -1
  4041. package/dist/charts/StackedArea.js +0 -56
  4042. package/dist/charts/band-fold.d.ts +0 -65
  4043. package/dist/charts/band-fold.d.ts.map +0 -1
  4044. package/dist/charts/band-fold.js +0 -46
  4045. package/dist/charts/chart-card.module.css +0 -142
  4046. package/dist/charts/chart-card.module.css.d.ts +0 -20
  4047. package/dist/charts/compile.d.ts +0 -146
  4048. package/dist/charts/compile.d.ts.map +0 -1
  4049. package/dist/charts/compile.js +0 -905
  4050. package/dist/charts/cursor.d.ts +0 -93
  4051. package/dist/charts/cursor.d.ts.map +0 -1
  4052. package/dist/charts/cursor.js +0 -211
  4053. package/dist/charts/donut.module.css +0 -54
  4054. package/dist/charts/donut.module.css.d.ts +0 -9
  4055. package/dist/charts/heatmap-fill.d.ts.map +0 -1
  4056. package/dist/charts/panel.d.ts +0 -65
  4057. package/dist/charts/panel.d.ts.map +0 -1
  4058. package/dist/charts/panel.js +0 -130
  4059. package/dist/charts/scales.d.ts +0 -52
  4060. package/dist/charts/scales.d.ts.map +0 -1
  4061. package/dist/charts/scales.js +0 -194
  4062. package/dist/charts/sparkline.module.css +0 -166
  4063. package/dist/charts/sparkline.module.css.d.ts +0 -16
  4064. package/dist/charts/theme.d.ts +0 -40
  4065. package/dist/charts/theme.d.ts.map +0 -1
  4066. package/dist/charts/theme.js +0 -52
  4067. package/dist/charts/ticks.d.ts.map +0 -1
  4068. package/dist/charts/ticks.js +0 -42
  4069. package/dist/cli/audit-allows.d.ts +0 -11
  4070. package/dist/cli/audit-allows.d.ts.map +0 -1
  4071. package/dist/cli/audit-allows.js +0 -240
  4072. package/dist/cli/check-theme.d.ts +0 -10
  4073. package/dist/cli/check-theme.d.ts.map +0 -1
  4074. package/dist/cli/check-theme.js +0 -154
  4075. package/dist/cli/doctor-upgrade.d.ts +0 -86
  4076. package/dist/cli/doctor-upgrade.d.ts.map +0 -1
  4077. package/dist/cli/doctor-upgrade.js +0 -509
  4078. package/dist/cli/doctor.d.ts +0 -38
  4079. package/dist/cli/doctor.d.ts.map +0 -1
  4080. package/dist/cli/doctor.js +0 -352
  4081. package/dist/cli/guard-hook.d.ts +0 -9
  4082. package/dist/cli/guard-hook.d.ts.map +0 -1
  4083. package/dist/cli/guard-hook.js +0 -59
  4084. package/dist/cli/init.d.ts +0 -12
  4085. package/dist/cli/init.d.ts.map +0 -1
  4086. package/dist/cli/init.js +0 -349
  4087. package/dist/cli/provider-tags.d.ts +0 -12
  4088. package/dist/cli/provider-tags.d.ts.map +0 -1
  4089. package/dist/cli/provider-tags.js +0 -28
  4090. package/dist/cli/render-imports.d.ts +0 -24
  4091. package/dist/cli/render-imports.d.ts.map +0 -1
  4092. package/dist/cli/render-imports.js +0 -74
  4093. package/dist/cli/sync.d.ts +0 -27
  4094. package/dist/cli/sync.d.ts.map +0 -1
  4095. package/dist/cli/sync.js +0 -243
  4096. package/dist/commands/ShortcutsHelp.d.ts +0 -18
  4097. package/dist/commands/ShortcutsHelp.d.ts.map +0 -1
  4098. package/dist/commands/ShortcutsHelp.js +0 -69
  4099. package/dist/commands/command-stash.d.ts +0 -15
  4100. package/dist/commands/command-stash.d.ts.map +0 -1
  4101. package/dist/commands/command-stash.js +0 -31
  4102. package/dist/commands/define-commands.d.ts +0 -123
  4103. package/dist/commands/define-commands.d.ts.map +0 -1
  4104. package/dist/commands/define-commands.js +0 -18
  4105. package/dist/commands/define-overlays.d.ts +0 -221
  4106. package/dist/commands/define-overlays.d.ts.map +0 -1
  4107. package/dist/commands/define-overlays.js +0 -140
  4108. package/dist/commands/index.d.ts +0 -26
  4109. package/dist/commands/index.d.ts.map +0 -1
  4110. package/dist/commands/index.js +0 -17
  4111. package/dist/commands/notifications/bell.d.ts +0 -16
  4112. package/dist/commands/notifications/bell.d.ts.map +0 -1
  4113. package/dist/commands/notifications/bell.js +0 -101
  4114. package/dist/commands/notifications/center.d.ts +0 -31
  4115. package/dist/commands/notifications/center.d.ts.map +0 -1
  4116. package/dist/commands/notifications/center.js +0 -130
  4117. package/dist/commands/notifications/define-notifications.d.ts +0 -142
  4118. package/dist/commands/notifications/define-notifications.d.ts.map +0 -1
  4119. package/dist/commands/notifications/define-notifications.js +0 -28
  4120. package/dist/commands/notifications/notify.d.ts +0 -44
  4121. package/dist/commands/notifications/notify.d.ts.map +0 -1
  4122. package/dist/commands/notifications/notify.js +0 -79
  4123. package/dist/commands/notifications/store.d.ts +0 -129
  4124. package/dist/commands/notifications/store.d.ts.map +0 -1
  4125. package/dist/commands/notifications/store.js +0 -117
  4126. package/dist/commands/projectors.d.ts +0 -22
  4127. package/dist/commands/projectors.d.ts.map +0 -1
  4128. package/dist/commands/projectors.js +0 -16
  4129. package/dist/commands/shell-bridge.d.ts +0 -57
  4130. package/dist/commands/shell-bridge.d.ts.map +0 -1
  4131. package/dist/commands/shell-bridge.js +0 -32
  4132. package/dist/commands/shortcut-format.d.ts +0 -54
  4133. package/dist/commands/shortcut-format.d.ts.map +0 -1
  4134. package/dist/commands/shortcut-format.js +0 -63
  4135. package/dist/common/could-not-load.d.ts +0 -13
  4136. package/dist/common/could-not-load.d.ts.map +0 -1
  4137. package/dist/common/could-not-load.js +0 -14
  4138. package/dist/common/index.d.ts +0 -18
  4139. package/dist/common/index.d.ts.map +0 -1
  4140. package/dist/common/index.js +0 -30
  4141. package/dist/common/motion.d.ts +0 -29
  4142. package/dist/common/motion.d.ts.map +0 -1
  4143. package/dist/common/motion.js +0 -12
  4144. package/dist/common/query-state-like.d.ts +0 -43
  4145. package/dist/common/query-state-like.d.ts.map +0 -1
  4146. package/dist/common/query-state-like.js +0 -20
  4147. package/dist/common/refs.d.ts +0 -29
  4148. package/dist/common/refs.d.ts.map +0 -1
  4149. package/dist/common/refs.js +0 -29
  4150. package/dist/common/use-measured-widths.d.ts +0 -37
  4151. package/dist/common/use-measured-widths.d.ts.map +0 -1
  4152. package/dist/common/use-measured-widths.js +0 -53
  4153. package/dist/common/virtual-rows.d.ts +0 -196
  4154. package/dist/common/virtual-rows.d.ts.map +0 -1
  4155. package/dist/common/virtual-rows.js +0 -290
  4156. package/dist/common/vx-families.d.ts +0 -7
  4157. package/dist/common/vx-families.d.ts.map +0 -1
  4158. package/dist/common/vx-families.js +0 -32
  4159. package/dist/common/vx-family.d.ts +0 -11
  4160. package/dist/common/vx-family.d.ts.map +0 -1
  4161. package/dist/common/vx-family.js +0 -12
  4162. package/dist/content/article-layout.d.ts +0 -63
  4163. package/dist/content/article-layout.d.ts.map +0 -1
  4164. package/dist/content/article-layout.js +0 -111
  4165. package/dist/content/article-layout.module.css +0 -183
  4166. package/dist/content/article-layout.module.css.d.ts +0 -23
  4167. package/dist/content/article-model.d.ts +0 -17
  4168. package/dist/content/article-model.d.ts.map +0 -1
  4169. package/dist/content/article-model.js +0 -13
  4170. package/dist/content/callout-alert.d.ts +0 -27
  4171. package/dist/content/callout-alert.d.ts.map +0 -1
  4172. package/dist/content/callout-alert.js +0 -59
  4173. package/dist/content/callout.d.ts +0 -28
  4174. package/dist/content/callout.d.ts.map +0 -1
  4175. package/dist/content/callout.js +0 -75
  4176. package/dist/content/callout.module.css +0 -89
  4177. package/dist/content/callout.module.css.d.ts +0 -17
  4178. package/dist/content/code-block.module.css +0 -135
  4179. package/dist/content/code-block.module.css.d.ts +0 -14
  4180. package/dist/content/copy-action.d.ts +0 -29
  4181. package/dist/content/copy-action.d.ts.map +0 -1
  4182. package/dist/content/copy-action.js +0 -46
  4183. package/dist/content/fence-block.d.ts +0 -46
  4184. package/dist/content/fence-block.d.ts.map +0 -1
  4185. package/dist/content/fence-block.js +0 -89
  4186. package/dist/content/glyphs.d.ts +0 -18
  4187. package/dist/content/glyphs.d.ts.map +0 -1
  4188. package/dist/content/glyphs.js +0 -43
  4189. package/dist/content/guide.d.ts +0 -48
  4190. package/dist/content/guide.d.ts.map +0 -1
  4191. package/dist/content/guide.js +0 -119
  4192. package/dist/content/guide.module.css +0 -62
  4193. package/dist/content/guide.module.css.d.ts +0 -13
  4194. package/dist/content/heading-anchor.d.ts +0 -30
  4195. package/dist/content/heading-anchor.d.ts.map +0 -1
  4196. package/dist/content/heading-anchor.js +0 -37
  4197. package/dist/content/heading-components.d.ts +0 -5
  4198. package/dist/content/heading-components.d.ts.map +0 -1
  4199. package/dist/content/heading-components.js +0 -44
  4200. package/dist/content/mermaid-sanitize.d.ts +0 -15
  4201. package/dist/content/mermaid-sanitize.d.ts.map +0 -1
  4202. package/dist/content/mermaid-sanitize.js +0 -28
  4203. package/dist/content/mermaid.module.css +0 -20
  4204. package/dist/content/mermaid.module.css.d.ts +0 -8
  4205. package/dist/content/prose.d.ts +0 -29
  4206. package/dist/content/prose.d.ts.map +0 -1
  4207. package/dist/content/prose.js +0 -24
  4208. package/dist/content/prose.module.css +0 -346
  4209. package/dist/content/prose.module.css.d.ts +0 -12
  4210. package/dist/content/reading-progress.d.ts +0 -26
  4211. package/dist/content/reading-progress.d.ts.map +0 -1
  4212. package/dist/content/reading-progress.js +0 -54
  4213. package/dist/content/reading-progress.module.css +0 -24
  4214. package/dist/content/reading-progress.module.css.d.ts +0 -9
  4215. package/dist/content/slug.d.ts.map +0 -1
  4216. package/dist/content/slug.js +0 -21
  4217. package/dist/content/toc-click-pin.d.ts.map +0 -1
  4218. package/dist/content/toc-click-pin.js +0 -111
  4219. package/dist/content/toc-spy.d.ts.map +0 -1
  4220. package/dist/content/toc.d.ts +0 -50
  4221. package/dist/content/toc.d.ts.map +0 -1
  4222. package/dist/content/toc.js +0 -136
  4223. package/dist/content/toc.module.css +0 -54
  4224. package/dist/content/toc.module.css.d.ts +0 -13
  4225. package/dist/content/url-hardening.d.ts +0 -23
  4226. package/dist/content/url-hardening.d.ts.map +0 -1
  4227. package/dist/content/url-hardening.js +0 -25
  4228. package/dist/controls/actions.d.ts +0 -250
  4229. package/dist/controls/actions.d.ts.map +0 -1
  4230. package/dist/controls/actions.js +0 -466
  4231. package/dist/controls/actions.module.css +0 -75
  4232. package/dist/controls/actions.module.css.d.ts +0 -14
  4233. package/dist/controls/control-group.d.ts +0 -19
  4234. package/dist/controls/control-group.d.ts.map +0 -1
  4235. package/dist/controls/control-group.js +0 -27
  4236. package/dist/controls/control-name.d.ts +0 -27
  4237. package/dist/controls/control-name.d.ts.map +0 -1
  4238. package/dist/controls/control-name.js +0 -11
  4239. package/dist/controls/controls.module.css +0 -549
  4240. package/dist/controls/controls.module.css.d.ts +0 -35
  4241. package/dist/controls/enum-filter.d.ts +0 -40
  4242. package/dist/controls/enum-filter.d.ts.map +0 -1
  4243. package/dist/controls/enum-filter.js +0 -109
  4244. package/dist/controls/filter-base.d.ts +0 -30
  4245. package/dist/controls/filter-base.d.ts.map +0 -1
  4246. package/dist/controls/filter-context.d.ts +0 -74
  4247. package/dist/controls/filter-context.d.ts.map +0 -1
  4248. package/dist/controls/filter-context.js +0 -73
  4249. package/dist/controls/filter-pill.d.ts +0 -62
  4250. package/dist/controls/filter-pill.d.ts.map +0 -1
  4251. package/dist/controls/filter-pill.js +0 -103
  4252. package/dist/controls/filter-sheet.d.ts +0 -25
  4253. package/dist/controls/filter-sheet.d.ts.map +0 -1
  4254. package/dist/controls/filter-sheet.js +0 -33
  4255. package/dist/controls/form-layout.d.ts +0 -162
  4256. package/dist/controls/form-layout.d.ts.map +0 -1
  4257. package/dist/controls/form-layout.js +0 -172
  4258. package/dist/controls/form-layout.module.css +0 -268
  4259. package/dist/controls/form-layout.module.css.d.ts +0 -22
  4260. package/dist/controls/glyphs.d.ts +0 -37
  4261. package/dist/controls/glyphs.d.ts.map +0 -1
  4262. package/dist/controls/glyphs.js +0 -63
  4263. package/dist/controls/multi-select-filter.d.ts +0 -45
  4264. package/dist/controls/multi-select-filter.d.ts.map +0 -1
  4265. package/dist/controls/multi-select-filter.js +0 -204
  4266. package/dist/controls/number-filter.d.ts +0 -23
  4267. package/dist/controls/number-filter.d.ts.map +0 -1
  4268. package/dist/controls/number-filter.js +0 -195
  4269. package/dist/controls/panel-row.d.ts +0 -129
  4270. package/dist/controls/panel-row.d.ts.map +0 -1
  4271. package/dist/controls/panel-row.js +0 -176
  4272. package/dist/controls/panel-row.module.css +0 -86
  4273. package/dist/controls/panel-row.module.css.d.ts +0 -13
  4274. package/dist/controls/range-filter.d.ts +0 -45
  4275. package/dist/controls/range-filter.d.ts.map +0 -1
  4276. package/dist/controls/range-filter.js +0 -139
  4277. package/dist/controls/search-filter.d.ts +0 -15
  4278. package/dist/controls/search-filter.d.ts.map +0 -1
  4279. package/dist/controls/search-filter.js +0 -135
  4280. package/dist/controls/select-filter.d.ts +0 -63
  4281. package/dist/controls/select-filter.d.ts.map +0 -1
  4282. package/dist/controls/select-filter.js +0 -14
  4283. package/dist/controls/sync-button.d.ts +0 -36
  4284. package/dist/controls/sync-button.d.ts.map +0 -1
  4285. package/dist/controls/sync-button.js +0 -118
  4286. package/dist/controls/sync-button.module.css +0 -96
  4287. package/dist/controls/sync-button.module.css.d.ts +0 -12
  4288. package/dist/controls/toggle-filter.d.ts +0 -11
  4289. package/dist/controls/toggle-filter.d.ts.map +0 -1
  4290. package/dist/controls/toggle-filter.js +0 -60
  4291. package/dist/controls/uncontrolled.d.ts +0 -12
  4292. package/dist/controls/uncontrolled.d.ts.map +0 -1
  4293. package/dist/controls-dates/date-range-picker.d.ts +0 -4
  4294. package/dist/controls-dates/date-range-picker.d.ts.map +0 -1
  4295. package/dist/controls-dates/date-range-picker.js +0 -23
  4296. package/dist/controls-dates/index.d.ts +0 -8
  4297. package/dist/controls-dates/index.d.ts.map +0 -1
  4298. package/dist/controls-dates/index.js +0 -4
  4299. package/dist/dashboard/bar-list.d.ts +0 -48
  4300. package/dist/dashboard/bar-list.d.ts.map +0 -1
  4301. package/dist/dashboard/bar-list.js +0 -117
  4302. package/dist/dashboard/bar-list.module.css +0 -258
  4303. package/dist/dashboard/bar-list.module.css.d.ts +0 -20
  4304. package/dist/dashboard/board-nav.d.ts +0 -22
  4305. package/dist/dashboard/board-nav.d.ts.map +0 -1
  4306. package/dist/dashboard/board-nav.js +0 -49
  4307. package/dist/dashboard/board.d.ts +0 -52
  4308. package/dist/dashboard/board.d.ts.map +0 -1
  4309. package/dist/dashboard/board.js +0 -247
  4310. package/dist/dashboard/board.module.css +0 -179
  4311. package/dist/dashboard/board.module.css.d.ts +0 -28
  4312. package/dist/dashboard/delta-badge.d.ts +0 -24
  4313. package/dist/dashboard/delta-badge.d.ts.map +0 -1
  4314. package/dist/dashboard/delta-badge.js +0 -41
  4315. package/dist/dashboard/empty-state.d.ts +0 -23
  4316. package/dist/dashboard/empty-state.d.ts.map +0 -1
  4317. package/dist/dashboard/empty-state.js +0 -82
  4318. package/dist/dashboard/event-list-model.d.ts +0 -54
  4319. package/dist/dashboard/event-list-model.d.ts.map +0 -1
  4320. package/dist/dashboard/event-list-model.js +0 -76
  4321. package/dist/dashboard/event-list-rows.d.ts +0 -23
  4322. package/dist/dashboard/event-list-rows.d.ts.map +0 -1
  4323. package/dist/dashboard/event-list-rows.js +0 -89
  4324. package/dist/dashboard/event-list-scroll.d.ts +0 -55
  4325. package/dist/dashboard/event-list-scroll.d.ts.map +0 -1
  4326. package/dist/dashboard/event-list-scroll.js +0 -216
  4327. package/dist/dashboard/event-list-skeleton.d.ts +0 -10
  4328. package/dist/dashboard/event-list-skeleton.d.ts.map +0 -1
  4329. package/dist/dashboard/event-list-skeleton.js +0 -34
  4330. package/dist/dashboard/event-list.d.ts +0 -65
  4331. package/dist/dashboard/event-list.d.ts.map +0 -1
  4332. package/dist/dashboard/event-list.js +0 -208
  4333. package/dist/dashboard/event-list.module.css +0 -336
  4334. package/dist/dashboard/event-list.module.css.d.ts +0 -34
  4335. package/dist/dashboard/index.d.ts +0 -15
  4336. package/dist/dashboard/index.d.ts.map +0 -1
  4337. package/dist/dashboard/index.js +0 -28
  4338. package/dist/dashboard/meter-model.d.ts +0 -300
  4339. package/dist/dashboard/meter-model.d.ts.map +0 -1
  4340. package/dist/dashboard/meter-model.js +0 -484
  4341. package/dist/dashboard/meter-parts.d.ts +0 -61
  4342. package/dist/dashboard/meter-parts.d.ts.map +0 -1
  4343. package/dist/dashboard/meter-parts.js +0 -684
  4344. package/dist/dashboard/meter.d.ts +0 -144
  4345. package/dist/dashboard/meter.d.ts.map +0 -1
  4346. package/dist/dashboard/meter.js +0 -89
  4347. package/dist/dashboard/meter.module.css +0 -470
  4348. package/dist/dashboard/meter.module.css.d.ts +0 -47
  4349. package/dist/dashboard/page-summary.d.ts +0 -20
  4350. package/dist/dashboard/page-summary.d.ts.map +0 -1
  4351. package/dist/dashboard/page-summary.js +0 -33
  4352. package/dist/dashboard/page-summary.module.css +0 -92
  4353. package/dist/dashboard/page-summary.module.css.d.ts +0 -15
  4354. package/dist/dashboard/query-state.d.ts +0 -148
  4355. package/dist/dashboard/query-state.d.ts.map +0 -1
  4356. package/dist/dashboard/query-state.js +0 -217
  4357. package/dist/dashboard/scale.d.ts +0 -9
  4358. package/dist/dashboard/scale.d.ts.map +0 -1
  4359. package/dist/dashboard/scale.js +0 -10
  4360. package/dist/dashboard/section.d.ts +0 -95
  4361. package/dist/dashboard/section.d.ts.map +0 -1
  4362. package/dist/dashboard/section.js +0 -162
  4363. package/dist/dashboard/section.module.css +0 -134
  4364. package/dist/dashboard/section.module.css.d.ts +0 -12
  4365. package/dist/dashboard/settings-section.d.ts +0 -39
  4366. package/dist/dashboard/settings-section.d.ts.map +0 -1
  4367. package/dist/dashboard/settings-section.js +0 -113
  4368. package/dist/dashboard/settings-section.module.css +0 -54
  4369. package/dist/dashboard/settings-section.module.css.d.ts +0 -12
  4370. package/dist/dashboard/stat-card-parts.d.ts +0 -46
  4371. package/dist/dashboard/stat-card-parts.d.ts.map +0 -1
  4372. package/dist/dashboard/stat-card-parts.js +0 -75
  4373. package/dist/dashboard/stat-card.d.ts +0 -141
  4374. package/dist/dashboard/stat-card.d.ts.map +0 -1
  4375. package/dist/dashboard/stat-card.js +0 -281
  4376. package/dist/dashboard/stat-card.module.css +0 -508
  4377. package/dist/dashboard/stat-card.module.css.d.ts +0 -39
  4378. package/dist/dashboard/stat-group.d.ts +0 -56
  4379. package/dist/dashboard/stat-group.d.ts.map +0 -1
  4380. package/dist/dashboard/stat-group.js +0 -47
  4381. package/dist/dashboard/stat-group.module.css +0 -124
  4382. package/dist/dashboard/stat-group.module.css.d.ts +0 -9
  4383. package/dist/dashboard/stat-strip.d.ts +0 -93
  4384. package/dist/dashboard/stat-strip.d.ts.map +0 -1
  4385. package/dist/dashboard/stat-strip.js +0 -273
  4386. package/dist/dashboard/stat-strip.module.css +0 -395
  4387. package/dist/dashboard/stat-strip.module.css.d.ts +0 -41
  4388. package/dist/dashboard/visual-slot.d.ts +0 -16
  4389. package/dist/dashboard/visual-slot.d.ts.map +0 -1
  4390. package/dist/dashboard/visual-slot.js +0 -11
  4391. package/dist/dashboard/widget-header.d.ts +0 -142
  4392. package/dist/dashboard/widget-header.d.ts.map +0 -1
  4393. package/dist/dashboard/widget-header.js +0 -219
  4394. package/dist/dashboard/widget-header.module.css +0 -486
  4395. package/dist/dashboard/widget-header.module.css.d.ts +0 -27
  4396. package/dist/dev-dock.d.ts +0 -26
  4397. package/dist/dev-dock.d.ts.map +0 -1
  4398. package/dist/dev-dock.js +0 -90
  4399. package/dist/format/date.d.ts +0 -61
  4400. package/dist/format/date.d.ts.map +0 -1
  4401. package/dist/format/date.js +0 -144
  4402. package/dist/format/index.d.ts +0 -25
  4403. package/dist/format/index.d.ts.map +0 -1
  4404. package/dist/format/index.js +0 -22
  4405. package/dist/format/measure.d.ts +0 -15
  4406. package/dist/format/measure.d.ts.map +0 -1
  4407. package/dist/format/measure.js +0 -27
  4408. package/dist/forms/create-form.d.ts +0 -31
  4409. package/dist/forms/create-form.d.ts.map +0 -1
  4410. package/dist/forms/create-form.js +0 -18
  4411. package/dist/forms/field.d.ts +0 -86
  4412. package/dist/forms/field.d.ts.map +0 -1
  4413. package/dist/forms/field.js +0 -10
  4414. package/dist/forms/form-state.d.ts +0 -42
  4415. package/dist/forms/form-state.d.ts.map +0 -1
  4416. package/dist/forms/form-state.js +0 -26
  4417. package/dist/forms/index.d.ts +0 -18
  4418. package/dist/forms/index.d.ts.map +0 -1
  4419. package/dist/forms/index.js +0 -7
  4420. package/dist/guard/fonts-hint.d.ts +0 -3
  4421. package/dist/guard/fonts-hint.d.ts.map +0 -1
  4422. package/dist/guard/fonts-hint.js +0 -4
  4423. package/dist/guard/guard-hook.d.ts +0 -40
  4424. package/dist/guard/guard-hook.d.ts.map +0 -1
  4425. package/dist/guard/guard-hook.js +0 -57
  4426. package/dist/guard/index.d.ts +0 -431
  4427. package/dist/guard/index.d.ts.map +0 -1
  4428. package/dist/guard/index.js +0 -1313
  4429. package/dist/guard/palette.d.ts +0 -51
  4430. package/dist/guard/palette.d.ts.map +0 -1
  4431. package/dist/guard/palette.js +0 -190
  4432. package/dist/guard/series-file.d.ts +0 -15
  4433. package/dist/guard/series-file.d.ts.map +0 -1
  4434. package/dist/guard/series-file.js +0 -29
  4435. package/dist/guard/types.d.ts +0 -181
  4436. package/dist/guard/types.d.ts.map +0 -1
  4437. package/dist/guard/vx-names.d.ts +0 -3
  4438. package/dist/guard/vx-names.d.ts.map +0 -1
  4439. package/dist/guard/vx-names.js +0 -228
  4440. package/dist/provider/create-router.d.ts +0 -96
  4441. package/dist/provider/create-router.d.ts.map +0 -1
  4442. package/dist/provider/create-router.js +0 -55
  4443. package/dist/provider/error-fallback.module.css +0 -10
  4444. package/dist/provider/error-fallback.module.css.d.ts +0 -8
  4445. package/dist/provider/fallback.module.css +0 -37
  4446. package/dist/provider/fallback.module.css.d.ts +0 -11
  4447. package/dist/provider/hotkeys.d.ts +0 -4
  4448. package/dist/provider/hotkeys.d.ts.map +0 -1
  4449. package/dist/provider/hotkeys.js +0 -45
  4450. package/dist/provider/index.d.ts +0 -120
  4451. package/dist/provider/index.d.ts.map +0 -1
  4452. package/dist/provider/index.js +0 -335
  4453. package/dist/provider/lab-theme.d.ts +0 -40
  4454. package/dist/provider/lab-theme.d.ts.map +0 -1
  4455. package/dist/provider/lab-theme.js +0 -51
  4456. package/dist/provider/modals-mount.d.ts +0 -16
  4457. package/dist/provider/modals-mount.d.ts.map +0 -1
  4458. package/dist/provider/modals-mount.js +0 -42
  4459. package/dist/provider/notifier.d.ts +0 -22
  4460. package/dist/provider/notifier.d.ts.map +0 -1
  4461. package/dist/provider/notifier.js +0 -36
  4462. package/dist/provider/route-defaults.d.ts +0 -10
  4463. package/dist/provider/route-defaults.d.ts.map +0 -1
  4464. package/dist/provider/route-defaults.js +0 -25
  4465. package/dist/provider/route-defaults.module.css +0 -39
  4466. package/dist/provider/route-defaults.module.css.d.ts +0 -10
  4467. package/dist/provider/route-transition.d.ts +0 -76
  4468. package/dist/provider/route-transition.d.ts.map +0 -1
  4469. package/dist/provider/route-transition.js +0 -98
  4470. package/dist/provider/slots.d.ts +0 -25
  4471. package/dist/provider/slots.d.ts.map +0 -1
  4472. package/dist/provider/slots.js +0 -29
  4473. package/dist/provider/spotlight-actions.d.ts +0 -11
  4474. package/dist/provider/spotlight-actions.d.ts.map +0 -1
  4475. package/dist/provider/spotlight-actions.js +0 -56
  4476. package/dist/provider/spotlight-mount.d.ts +0 -3
  4477. package/dist/provider/spotlight-mount.d.ts.map +0 -1
  4478. package/dist/provider/spotlight-mount.js +0 -26
  4479. package/dist/provider/test-router.d.ts +0 -7
  4480. package/dist/provider/test-router.d.ts.map +0 -1
  4481. package/dist/provider/test-router.js +0 -17
  4482. package/dist/query-client.d.ts +0 -9
  4483. package/dist/query-client.d.ts.map +0 -1
  4484. package/dist/query-client.js +0 -30
  4485. package/dist/router-tanstack/index.d.ts +0 -36
  4486. package/dist/router-tanstack/index.d.ts.map +0 -1
  4487. package/dist/router-tanstack/index.js +0 -18
  4488. package/dist/router-tanstack/nav-stash.d.ts +0 -24
  4489. package/dist/router-tanstack/nav-stash.d.ts.map +0 -1
  4490. package/dist/router-tanstack/nav-stash.js +0 -23
  4491. package/dist/router-tanstack/nav.d.ts +0 -169
  4492. package/dist/router-tanstack/nav.d.ts.map +0 -1
  4493. package/dist/router-tanstack/nav.js +0 -35
  4494. package/dist/router-tanstack/search-store-warnings.d.ts +0 -33
  4495. package/dist/router-tanstack/search-store-warnings.d.ts.map +0 -1
  4496. package/dist/router-tanstack/search-store-warnings.js +0 -77
  4497. package/dist/router-tanstack/search-store.d.ts +0 -86
  4498. package/dist/router-tanstack/search-store.d.ts.map +0 -1
  4499. package/dist/router-tanstack/search-store.js +0 -303
  4500. package/dist/router-tanstack/use-nav.d.ts +0 -29
  4501. package/dist/router-tanstack/use-nav.d.ts.map +0 -1
  4502. package/dist/router-tanstack/use-nav.js +0 -149
  4503. package/dist/shell/account-types.d.ts +0 -121
  4504. package/dist/shell/account-types.d.ts.map +0 -1
  4505. package/dist/shell/app-brand.d.ts +0 -13
  4506. package/dist/shell/app-brand.d.ts.map +0 -1
  4507. package/dist/shell/app-brand.js +0 -95
  4508. package/dist/shell/app-brand.module.css +0 -142
  4509. package/dist/shell/app-brand.module.css.d.ts +0 -14
  4510. package/dist/shell/app-breadcrumbs.d.ts +0 -15
  4511. package/dist/shell/app-breadcrumbs.d.ts.map +0 -1
  4512. package/dist/shell/app-breadcrumbs.js +0 -52
  4513. package/dist/shell/app-header.module.css +0 -171
  4514. package/dist/shell/app-header.module.css.d.ts +0 -12
  4515. package/dist/shell/app-main.module.css +0 -215
  4516. package/dist/shell/app-main.module.css.d.ts +0 -12
  4517. package/dist/shell/app-mobile-nav.d.ts +0 -33
  4518. package/dist/shell/app-mobile-nav.d.ts.map +0 -1
  4519. package/dist/shell/app-mobile-nav.js +0 -511
  4520. package/dist/shell/app-mobile-nav.module.css +0 -429
  4521. package/dist/shell/app-mobile-nav.module.css.d.ts +0 -24
  4522. package/dist/shell/app-sidebar-account.d.ts +0 -4
  4523. package/dist/shell/app-sidebar-account.d.ts.map +0 -1
  4524. package/dist/shell/app-sidebar-account.js +0 -123
  4525. package/dist/shell/app-sidebar.d.ts +0 -82
  4526. package/dist/shell/app-sidebar.d.ts.map +0 -1
  4527. package/dist/shell/app-sidebar.js +0 -361
  4528. package/dist/shell/app-sidebar.module.css +0 -812
  4529. package/dist/shell/app-sidebar.module.css.d.ts +0 -50
  4530. package/dist/shell/aside-docking.d.ts +0 -31
  4531. package/dist/shell/aside-docking.d.ts.map +0 -1
  4532. package/dist/shell/aside-docking.js +0 -19
  4533. package/dist/shell/mobile-nav-model.d.ts +0 -71
  4534. package/dist/shell/mobile-nav-model.d.ts.map +0 -1
  4535. package/dist/shell/mobile-nav-model.js +0 -287
  4536. package/dist/shell/nav-count-badge.d.ts +0 -13
  4537. package/dist/shell/nav-count-badge.d.ts.map +0 -1
  4538. package/dist/shell/nav-count-badge.js +0 -31
  4539. package/dist/shell/nav-glyph.d.ts +0 -14
  4540. package/dist/shell/nav-glyph.d.ts.map +0 -1
  4541. package/dist/shell/nav-glyph.js +0 -21
  4542. package/dist/shell/nav-types.d.ts +0 -220
  4543. package/dist/shell/nav-types.d.ts.map +0 -1
  4544. package/dist/shell/page-aside.d.ts +0 -64
  4545. package/dist/shell/page-aside.d.ts.map +0 -1
  4546. package/dist/shell/page-aside.js +0 -226
  4547. package/dist/shell/page-aside.module.css +0 -176
  4548. package/dist/shell/page-aside.module.css.d.ts +0 -14
  4549. package/dist/shell/page-bar.d.ts +0 -134
  4550. package/dist/shell/page-bar.d.ts.map +0 -1
  4551. package/dist/shell/page-bar.js +0 -273
  4552. package/dist/shell/page-bar.module.css +0 -256
  4553. package/dist/shell/page-bar.module.css.d.ts +0 -20
  4554. package/dist/shell/page-title.d.ts +0 -14
  4555. package/dist/shell/page-title.d.ts.map +0 -1
  4556. package/dist/shell/page-title.js +0 -25
  4557. package/dist/shell/page-title.module.css +0 -35
  4558. package/dist/shell/page-title.module.css.d.ts +0 -11
  4559. package/dist/shell/sidebar-block-model.d.ts +0 -48
  4560. package/dist/shell/sidebar-block-model.d.ts.map +0 -1
  4561. package/dist/shell/sidebar-block-model.js +0 -43
  4562. package/dist/shell/sidebar-blocks.d.ts +0 -33
  4563. package/dist/shell/sidebar-blocks.d.ts.map +0 -1
  4564. package/dist/shell/sidebar-blocks.js +0 -177
  4565. package/dist/shell/sidebar-search.d.ts +0 -26
  4566. package/dist/shell/sidebar-search.d.ts.map +0 -1
  4567. package/dist/shell/sidebar-search.js +0 -98
  4568. package/dist/shell/sidebar-search.module.css +0 -102
  4569. package/dist/shell/sidebar-search.module.css.d.ts +0 -13
  4570. package/dist/shell/use-size-class.d.ts +0 -6
  4571. package/dist/shell/use-size-class.d.ts.map +0 -1
  4572. package/dist/shell/use-size-class.js +0 -19
  4573. package/dist/state/fields.d.ts +0 -622
  4574. package/dist/state/fields.d.ts.map +0 -1
  4575. package/dist/state/fields.js +0 -460
  4576. package/dist/state/persisted-or-local.d.ts +0 -12
  4577. package/dist/state/persisted-or-local.d.ts.map +0 -1
  4578. package/dist/state/persisted-or-local.js +0 -25
  4579. package/dist/state/persisted.d.ts +0 -70
  4580. package/dist/state/persisted.d.ts.map +0 -1
  4581. package/dist/state/persisted.js +0 -153
  4582. package/dist/state.d.ts +0 -16
  4583. package/dist/state.d.ts.map +0 -1
  4584. package/dist/state.js +0 -14
  4585. package/dist/styles.css +0 -477
  4586. package/dist/table/cell-kinds.d.ts +0 -47
  4587. package/dist/table/cell-kinds.d.ts.map +0 -1
  4588. package/dist/table/cell-kinds.js +0 -180
  4589. package/dist/table/cell-kinds.module.css +0 -55
  4590. package/dist/table/cell-kinds.module.css.d.ts +0 -15
  4591. package/dist/table/data-table-fold.d.ts +0 -155
  4592. package/dist/table/data-table-fold.d.ts.map +0 -1
  4593. package/dist/table/data-table-fold.js +0 -320
  4594. package/dist/table/data-table-state.d.ts +0 -90
  4595. package/dist/table/data-table-state.d.ts.map +0 -1
  4596. package/dist/table/data-table-state.js +0 -145
  4597. package/dist/table/data-table.d.ts +0 -538
  4598. package/dist/table/data-table.d.ts.map +0 -1
  4599. package/dist/table/data-table.js +0 -1044
  4600. package/dist/table/data-table.module.css +0 -474
  4601. package/dist/table/data-table.module.css.d.ts +0 -41
  4602. package/dist/table/query-branch.d.ts +0 -28
  4603. package/dist/table/query-branch.d.ts.map +0 -1
  4604. package/dist/table/query-branch.js +0 -10
  4605. package/dist/table/table-features.d.ts +0 -99
  4606. package/dist/table/table-features.d.ts.map +0 -1
  4607. package/dist/table/table-features.js +0 -59
  4608. package/dist/telemetry.d.ts +0 -165
  4609. package/dist/telemetry.d.ts.map +0 -1
  4610. package/dist/telemetry.js +0 -61
  4611. package/dist/theme/card-inset.module.css +0 -111
  4612. package/dist/theme/card-inset.module.css.d.ts +0 -9
  4613. package/dist/theme/chrome-vars.d.ts +0 -109
  4614. package/dist/theme/chrome-vars.d.ts.map +0 -1
  4615. package/dist/theme/chrome-vars.js +0 -89
  4616. package/dist/theme/controls.module.css +0 -433
  4617. package/dist/theme/controls.module.css.d.ts +0 -20
  4618. package/dist/theme/ctl-theme.d.ts +0 -33
  4619. package/dist/theme/ctl-theme.d.ts.map +0 -1
  4620. package/dist/theme/ctl-theme.js +0 -54
  4621. package/dist/theme/extend.d.ts +0 -18
  4622. package/dist/theme/extend.d.ts.map +0 -1
  4623. package/dist/theme/extend.js +0 -6
  4624. package/dist/theme/floating.module.css +0 -72
  4625. package/dist/theme/floating.module.css.d.ts +0 -12
  4626. package/dist/theme/icon-slot.d.ts +0 -44
  4627. package/dist/theme/icon-slot.d.ts.map +0 -1
  4628. package/dist/theme/icon-slot.js +0 -21
  4629. package/dist/theme/icon-slot.module.css +0 -47
  4630. package/dist/theme/icon-slot.module.css.d.ts +0 -8
  4631. package/dist/theme/index.d.ts +0 -132
  4632. package/dist/theme/index.d.ts.map +0 -1
  4633. package/dist/theme/index.js +0 -1112
  4634. package/dist/theme/nav-link.module.css +0 -85
  4635. package/dist/theme/nav-link.module.css.d.ts +0 -8
  4636. package/dist/theme/segmented-control.module.css +0 -80
  4637. package/dist/theme/segmented-control.module.css.d.ts +0 -10
  4638. package/dist/theme/status-dot.d.ts +0 -7
  4639. package/dist/theme/status-dot.d.ts.map +0 -1
  4640. package/dist/theme/status-dot.js +0 -18
  4641. package/dist/theme/status-dot.module.css +0 -9
  4642. package/dist/theme/status-dot.module.css.d.ts +0 -8
  4643. package/dist/theme/status-verdict.d.ts +0 -10
  4644. package/dist/theme/status-verdict.d.ts.map +0 -1
  4645. package/dist/theme/status-verdict.js +0 -22
  4646. package/dist/theme/status-verdict.module.css +0 -25
  4647. package/dist/theme/status-verdict.module.css.d.ts +0 -9
  4648. package/dist/theme/theme-toggle.d.ts +0 -9
  4649. package/dist/theme/theme-toggle.d.ts.map +0 -1
  4650. package/dist/theme/theme-toggle.js +0 -136
  4651. package/dist/theme/theme-toggle.module.css +0 -30
  4652. package/dist/theme/theme-toggle.module.css.d.ts +0 -10
  4653. package/dist/theme/timeline.module.css +0 -29
  4654. package/dist/theme/timeline.module.css.d.ts +0 -9
  4655. package/dist/theme/use-basalt-spacing.d.ts +0 -3
  4656. package/dist/theme/use-basalt-spacing.d.ts.map +0 -1
  4657. package/dist/theme/use-basalt-spacing.js +0 -8
  4658. package/dist/theme-lab/boot.d.ts +0 -66
  4659. package/dist/theme-lab/boot.d.ts.map +0 -1
  4660. package/dist/theme-lab/boot.js +0 -82
  4661. package/dist/theme-lab/derive-controls.d.ts +0 -13
  4662. package/dist/theme-lab/derive-controls.d.ts.map +0 -1
  4663. package/dist/theme-lab/derive-controls.js +0 -139
  4664. package/dist/theme-lab/derive-state.d.ts +0 -55
  4665. package/dist/theme-lab/derive-state.d.ts.map +0 -1
  4666. package/dist/theme-lab/derive-state.js +0 -82
  4667. package/dist/theme-lab/index.d.ts +0 -30
  4668. package/dist/theme-lab/index.d.ts.map +0 -1
  4669. package/dist/theme-lab/index.js +0 -154
  4670. package/dist/unwrap.d.ts +0 -29
  4671. package/dist/unwrap.d.ts.map +0 -1
  4672. package/dist/unwrap.js +0 -18
  4673. package/dist/vite-boot.d.ts +0 -25
  4674. package/dist/vite-boot.d.ts.map +0 -1
  4675. package/dist/vite-boot.js +0 -36
  4676. package/dist/vite-color-mix.d.ts +0 -30
  4677. package/dist/vite-color-mix.d.ts.map +0 -1
  4678. package/dist/vite-color-mix.js +0 -80
  4679. package/dist/vite.d.ts +0 -203
  4680. package/dist/vite.d.ts.map +0 -1
  4681. package/dist/vite.js +0 -477
  4682. package/src/agent/ai-sdk-transport.ts +0 -469
  4683. package/src/agent/chat/composer.tsx +0 -648
  4684. package/src/agent/chat/message-affordances.ts +0 -64
  4685. package/src/agent/chat/thread-feed-row.tsx +0 -352
  4686. package/src/agent/chat/thread-feed.tsx +0 -219
  4687. package/src/agent/chat/thread-message.tsx +0 -823
  4688. package/src/agent/chat/thread-outcome-card.tsx +0 -180
  4689. package/src/agent/chat/tool-chip.tsx +0 -225
  4690. package/src/agent/chat/use-keyboard-inset.ts +0 -68
  4691. package/src/agent/chat/virtualize.ts +0 -180
  4692. package/src/agent/coalesce.ts +0 -229
  4693. package/src/agent/error.ts +0 -58
  4694. package/src/agent/foreign.ts +0 -141
  4695. package/src/agent/history.ts +0 -25
  4696. package/src/agent/id.ts +0 -160
  4697. package/src/agent/index.ts +0 -35
  4698. package/src/agent/merge.ts +0 -114
  4699. package/src/agent/outcome.ts +0 -67
  4700. package/src/agent/part-list.tsx +0 -373
  4701. package/src/agent/parts.ts +0 -428
  4702. package/src/agent/run-committer.ts +0 -64
  4703. package/src/agent/run-records.ts +0 -171
  4704. package/src/agent/stick-to-bottom.tsx +0 -153
  4705. package/src/agent/thread.ts +0 -129
  4706. package/src/agent/transport.ts +0 -95
  4707. package/src/agent/use-agent-thread-runs.ts +0 -968
  4708. package/src/charts/BandStrip.tsx +0 -520
  4709. package/src/charts/Bars.tsx +0 -238
  4710. package/src/charts/CartesianChart.tsx +0 -244
  4711. package/src/charts/ChartCard.tsx +0 -474
  4712. package/src/charts/Donut.tsx +0 -264
  4713. package/src/charts/DualPanel.tsx +0 -370
  4714. package/src/charts/Heatmap.tsx +0 -444
  4715. package/src/charts/Lines.tsx +0 -160
  4716. package/src/charts/MirroredBars.tsx +0 -348
  4717. package/src/charts/Sparkline.tsx +0 -957
  4718. package/src/charts/StackedArea.tsx +0 -101
  4719. package/src/charts/band-fold.ts +0 -107
  4720. package/src/charts/chart-card.module.css +0 -142
  4721. package/src/charts/chart-card.module.css.d.ts +0 -20
  4722. package/src/charts/compile.ts +0 -1438
  4723. package/src/charts/cursor.ts +0 -394
  4724. package/src/charts/donut.module.css +0 -54
  4725. package/src/charts/donut.module.css.d.ts +0 -9
  4726. package/src/charts/panel.tsx +0 -245
  4727. package/src/charts/scales.ts +0 -287
  4728. package/src/charts/sparkline.module.css +0 -166
  4729. package/src/charts/sparkline.module.css.d.ts +0 -16
  4730. package/src/charts/theme.ts +0 -65
  4731. package/src/charts/ticks.ts +0 -61
  4732. package/src/cli/audit-allows.ts +0 -348
  4733. package/src/cli/check-theme.ts +0 -244
  4734. package/src/cli/doctor-upgrade.ts +0 -737
  4735. package/src/cli/doctor.ts +0 -488
  4736. package/src/cli/guard-hook.ts +0 -82
  4737. package/src/cli/init.ts +0 -495
  4738. package/src/cli/provider-tags.ts +0 -38
  4739. package/src/cli/render-imports.ts +0 -104
  4740. package/src/cli/sync.ts +0 -342
  4741. package/src/commands/ShortcutsHelp.tsx +0 -135
  4742. package/src/commands/command-stash.ts +0 -44
  4743. package/src/commands/define-commands.ts +0 -150
  4744. package/src/commands/define-overlays.ts +0 -364
  4745. package/src/commands/index.ts +0 -28
  4746. package/src/commands/notifications/bell.tsx +0 -125
  4747. package/src/commands/notifications/center.tsx +0 -248
  4748. package/src/commands/notifications/define-notifications.ts +0 -211
  4749. package/src/commands/notifications/notify.tsx +0 -158
  4750. package/src/commands/notifications/store.ts +0 -302
  4751. package/src/commands/projectors.ts +0 -47
  4752. package/src/commands/shell-bridge.ts +0 -86
  4753. package/src/commands/shortcut-format.ts +0 -123
  4754. package/src/common/could-not-load.ts +0 -22
  4755. package/src/common/index.ts +0 -17
  4756. package/src/common/motion.ts +0 -26
  4757. package/src/common/query-state-like.ts +0 -64
  4758. package/src/common/refs.ts +0 -58
  4759. package/src/common/use-measured-widths.ts +0 -91
  4760. package/src/common/virtual-rows.tsx +0 -682
  4761. package/src/common/vx-families.ts +0 -36
  4762. package/src/common/vx-family.ts +0 -22
  4763. package/src/content/article-layout.module.css +0 -183
  4764. package/src/content/article-layout.module.css.d.ts +0 -23
  4765. package/src/content/article-layout.tsx +0 -221
  4766. package/src/content/article-model.ts +0 -27
  4767. package/src/content/callout-alert.ts +0 -88
  4768. package/src/content/callout.module.css +0 -89
  4769. package/src/content/callout.module.css.d.ts +0 -17
  4770. package/src/content/callout.tsx +0 -115
  4771. package/src/content/code-block.module.css +0 -135
  4772. package/src/content/code-block.module.css.d.ts +0 -14
  4773. package/src/content/copy-action.tsx +0 -79
  4774. package/src/content/fence-block.tsx +0 -265
  4775. package/src/content/glyphs.tsx +0 -53
  4776. package/src/content/guide.module.css +0 -62
  4777. package/src/content/guide.module.css.d.ts +0 -13
  4778. package/src/content/guide.tsx +0 -184
  4779. package/src/content/heading-anchor.tsx +0 -65
  4780. package/src/content/heading-components.tsx +0 -83
  4781. package/src/content/mermaid-sanitize.ts +0 -49
  4782. package/src/content/mermaid.module.css +0 -20
  4783. package/src/content/mermaid.module.css.d.ts +0 -8
  4784. package/src/content/prose.module.css +0 -346
  4785. package/src/content/prose.module.css.d.ts +0 -12
  4786. package/src/content/prose.tsx +0 -53
  4787. package/src/content/reading-progress.module.css +0 -24
  4788. package/src/content/reading-progress.module.css.d.ts +0 -9
  4789. package/src/content/reading-progress.tsx +0 -92
  4790. package/src/content/slug.ts +0 -46
  4791. package/src/content/toc-click-pin.ts +0 -156
  4792. package/src/content/toc.module.css +0 -54
  4793. package/src/content/toc.module.css.d.ts +0 -13
  4794. package/src/content/toc.tsx +0 -220
  4795. package/src/content/url-hardening.ts +0 -52
  4796. package/src/controls/actions.module.css +0 -75
  4797. package/src/controls/actions.module.css.d.ts +0 -14
  4798. package/src/controls/actions.tsx +0 -969
  4799. package/src/controls/control-group.tsx +0 -70
  4800. package/src/controls/control-name.ts +0 -33
  4801. package/src/controls/controls.module.css +0 -549
  4802. package/src/controls/controls.module.css.d.ts +0 -35
  4803. package/src/controls/enum-filter.tsx +0 -188
  4804. package/src/controls/filter-base.ts +0 -31
  4805. package/src/controls/filter-context.tsx +0 -179
  4806. package/src/controls/filter-pill.tsx +0 -203
  4807. package/src/controls/filter-sheet.tsx +0 -79
  4808. package/src/controls/form-layout.module.css +0 -268
  4809. package/src/controls/form-layout.module.css.d.ts +0 -22
  4810. package/src/controls/form-layout.tsx +0 -416
  4811. package/src/controls/glyphs.tsx +0 -114
  4812. package/src/controls/multi-select-filter.tsx +0 -316
  4813. package/src/controls/number-filter.tsx +0 -364
  4814. package/src/controls/panel-row.module.css +0 -86
  4815. package/src/controls/panel-row.module.css.d.ts +0 -13
  4816. package/src/controls/panel-row.tsx +0 -391
  4817. package/src/controls/range-filter.tsx +0 -256
  4818. package/src/controls/search-filter.tsx +0 -200
  4819. package/src/controls/select-filter.tsx +0 -84
  4820. package/src/controls/sync-button.module.css +0 -96
  4821. package/src/controls/sync-button.module.css.d.ts +0 -12
  4822. package/src/controls/sync-button.tsx +0 -211
  4823. package/src/controls/toggle-filter.tsx +0 -83
  4824. package/src/controls/uncontrolled.ts +0 -12
  4825. package/src/controls-dates/date-range-picker.tsx +0 -49
  4826. package/src/controls-dates/index.ts +0 -7
  4827. package/src/dashboard/bar-list.module.css +0 -258
  4828. package/src/dashboard/bar-list.module.css.d.ts +0 -20
  4829. package/src/dashboard/bar-list.tsx +0 -254
  4830. package/src/dashboard/board-nav.ts +0 -67
  4831. package/src/dashboard/board.module.css +0 -179
  4832. package/src/dashboard/board.module.css.d.ts +0 -28
  4833. package/src/dashboard/board.tsx +0 -415
  4834. package/src/dashboard/delta-badge.tsx +0 -103
  4835. package/src/dashboard/empty-state.tsx +0 -128
  4836. package/src/dashboard/event-list-model.ts +0 -125
  4837. package/src/dashboard/event-list-rows.tsx +0 -117
  4838. package/src/dashboard/event-list-scroll.ts +0 -291
  4839. package/src/dashboard/event-list-skeleton.tsx +0 -62
  4840. package/src/dashboard/event-list.module.css +0 -336
  4841. package/src/dashboard/event-list.module.css.d.ts +0 -34
  4842. package/src/dashboard/event-list.tsx +0 -336
  4843. package/src/dashboard/index.ts +0 -14
  4844. package/src/dashboard/meter-model.ts +0 -895
  4845. package/src/dashboard/meter-parts.tsx +0 -1015
  4846. package/src/dashboard/meter.module.css +0 -470
  4847. package/src/dashboard/meter.module.css.d.ts +0 -47
  4848. package/src/dashboard/meter.tsx +0 -311
  4849. package/src/dashboard/page-summary.module.css +0 -92
  4850. package/src/dashboard/page-summary.module.css.d.ts +0 -15
  4851. package/src/dashboard/page-summary.tsx +0 -102
  4852. package/src/dashboard/query-state.tsx +0 -409
  4853. package/src/dashboard/scale.ts +0 -13
  4854. package/src/dashboard/section.module.css +0 -134
  4855. package/src/dashboard/section.module.css.d.ts +0 -12
  4856. package/src/dashboard/section.tsx +0 -380
  4857. package/src/dashboard/settings-section.module.css +0 -54
  4858. package/src/dashboard/settings-section.module.css.d.ts +0 -12
  4859. package/src/dashboard/settings-section.tsx +0 -183
  4860. package/src/dashboard/stat-card-parts.tsx +0 -149
  4861. package/src/dashboard/stat-card.module.css +0 -508
  4862. package/src/dashboard/stat-card.module.css.d.ts +0 -39
  4863. package/src/dashboard/stat-card.tsx +0 -622
  4864. package/src/dashboard/stat-group.module.css +0 -124
  4865. package/src/dashboard/stat-group.module.css.d.ts +0 -9
  4866. package/src/dashboard/stat-group.tsx +0 -113
  4867. package/src/dashboard/stat-strip.module.css +0 -395
  4868. package/src/dashboard/stat-strip.module.css.d.ts +0 -41
  4869. package/src/dashboard/stat-strip.tsx +0 -506
  4870. package/src/dashboard/visual-slot.ts +0 -27
  4871. package/src/dashboard/widget-header.module.css +0 -486
  4872. package/src/dashboard/widget-header.module.css.d.ts +0 -27
  4873. package/src/dashboard/widget-header.tsx +0 -479
  4874. package/src/dev-dock.tsx +0 -149
  4875. package/src/format/date.ts +0 -250
  4876. package/src/format/index.ts +0 -24
  4877. package/src/format/measure.ts +0 -42
  4878. package/src/forms/create-form.ts +0 -57
  4879. package/src/forms/field.ts +0 -134
  4880. package/src/forms/form-state.tsx +0 -94
  4881. package/src/forms/index.ts +0 -18
  4882. package/src/guard/fonts-hint.ts +0 -2
  4883. package/src/guard/guard-hook.ts +0 -129
  4884. package/src/guard/index.ts +0 -2848
  4885. package/src/guard/palette.ts +0 -261
  4886. package/src/guard/series-file.ts +0 -51
  4887. package/src/guard/types.ts +0 -211
  4888. package/src/guard/vx-names.ts +0 -228
  4889. package/src/provider/create-router.tsx +0 -168
  4890. package/src/provider/error-fallback.module.css +0 -10
  4891. package/src/provider/error-fallback.module.css.d.ts +0 -8
  4892. package/src/provider/fallback.module.css +0 -37
  4893. package/src/provider/fallback.module.css.d.ts +0 -11
  4894. package/src/provider/hotkeys.ts +0 -62
  4895. package/src/provider/index.tsx +0 -574
  4896. package/src/provider/lab-theme.ts +0 -175
  4897. package/src/provider/modals-mount.tsx +0 -66
  4898. package/src/provider/notifier.ts +0 -52
  4899. package/src/provider/route-defaults.module.css +0 -39
  4900. package/src/provider/route-defaults.module.css.d.ts +0 -10
  4901. package/src/provider/route-defaults.tsx +0 -39
  4902. package/src/provider/route-transition.ts +0 -199
  4903. package/src/provider/slots.ts +0 -59
  4904. package/src/provider/spotlight-actions.tsx +0 -73
  4905. package/src/provider/spotlight-mount.tsx +0 -33
  4906. package/src/provider/test-router.tsx +0 -25
  4907. package/src/query-client.ts +0 -41
  4908. package/src/router-tanstack/index.ts +0 -51
  4909. package/src/router-tanstack/nav-stash.ts +0 -41
  4910. package/src/router-tanstack/nav.ts +0 -216
  4911. package/src/router-tanstack/search-store-warnings.ts +0 -120
  4912. package/src/router-tanstack/search-store.ts +0 -599
  4913. package/src/router-tanstack/use-nav.ts +0 -283
  4914. package/src/shell/account-types.ts +0 -122
  4915. package/src/shell/app-brand.module.css +0 -142
  4916. package/src/shell/app-brand.module.css.d.ts +0 -14
  4917. package/src/shell/app-brand.tsx +0 -141
  4918. package/src/shell/app-breadcrumbs.tsx +0 -104
  4919. package/src/shell/app-header.module.css +0 -171
  4920. package/src/shell/app-header.module.css.d.ts +0 -12
  4921. package/src/shell/app-main.module.css +0 -215
  4922. package/src/shell/app-main.module.css.d.ts +0 -12
  4923. package/src/shell/app-mobile-nav.module.css +0 -429
  4924. package/src/shell/app-mobile-nav.module.css.d.ts +0 -24
  4925. package/src/shell/app-mobile-nav.tsx +0 -864
  4926. package/src/shell/app-sidebar-account.tsx +0 -180
  4927. package/src/shell/app-sidebar.module.css +0 -812
  4928. package/src/shell/app-sidebar.module.css.d.ts +0 -50
  4929. package/src/shell/app-sidebar.tsx +0 -626
  4930. package/src/shell/aside-docking.ts +0 -54
  4931. package/src/shell/index.tsx +0 -658
  4932. package/src/shell/mobile-nav-model.ts +0 -521
  4933. package/src/shell/nav-count-badge.tsx +0 -44
  4934. package/src/shell/nav-glyph.tsx +0 -38
  4935. package/src/shell/nav-types.ts +0 -232
  4936. package/src/shell/page-aside.module.css +0 -176
  4937. package/src/shell/page-aside.module.css.d.ts +0 -14
  4938. package/src/shell/page-aside.tsx +0 -433
  4939. package/src/shell/page-bar.module.css +0 -256
  4940. package/src/shell/page-bar.module.css.d.ts +0 -20
  4941. package/src/shell/page-bar.tsx +0 -598
  4942. package/src/shell/page-title.module.css +0 -35
  4943. package/src/shell/page-title.module.css.d.ts +0 -11
  4944. package/src/shell/page-title.tsx +0 -57
  4945. package/src/shell/sidebar-block-model.ts +0 -91
  4946. package/src/shell/sidebar-blocks.tsx +0 -326
  4947. package/src/shell/sidebar-search.module.css +0 -102
  4948. package/src/shell/sidebar-search.module.css.d.ts +0 -13
  4949. package/src/shell/sidebar-search.tsx +0 -154
  4950. package/src/shell/use-size-class.ts +0 -33
  4951. package/src/state/fields.ts +0 -1279
  4952. package/src/state/persisted-or-local.ts +0 -56
  4953. package/src/state/persisted.ts +0 -320
  4954. package/src/state.ts +0 -25
  4955. package/src/styles.css +0 -477
  4956. package/src/table/cell-kinds.module.css +0 -55
  4957. package/src/table/cell-kinds.module.css.d.ts +0 -15
  4958. package/src/table/cell-kinds.tsx +0 -263
  4959. package/src/table/data-table-fold.tsx +0 -567
  4960. package/src/table/data-table-state.ts +0 -230
  4961. package/src/table/data-table.module.css +0 -474
  4962. package/src/table/data-table.module.css.d.ts +0 -41
  4963. package/src/table/data-table.tsx +0 -2232
  4964. package/src/table/query-branch.ts +0 -53
  4965. package/src/table/table-features.ts +0 -142
  4966. package/src/telemetry.ts +0 -236
  4967. package/src/theme/__snapshots__/plain-theme.test.ts.snap +0 -2774
  4968. package/src/theme/card-inset.module.css +0 -111
  4969. package/src/theme/card-inset.module.css.d.ts +0 -9
  4970. package/src/theme/chrome-vars.ts +0 -205
  4971. package/src/theme/controls.module.css +0 -433
  4972. package/src/theme/controls.module.css.d.ts +0 -20
  4973. package/src/theme/ctl-theme.tsx +0 -169
  4974. package/src/theme/extend.ts +0 -18
  4975. package/src/theme/floating.module.css +0 -72
  4976. package/src/theme/floating.module.css.d.ts +0 -12
  4977. package/src/theme/icon-slot.module.css +0 -47
  4978. package/src/theme/icon-slot.module.css.d.ts +0 -8
  4979. package/src/theme/icon-slot.tsx +0 -59
  4980. package/src/theme/index.ts +0 -1699
  4981. package/src/theme/nav-link.module.css +0 -85
  4982. package/src/theme/nav-link.module.css.d.ts +0 -8
  4983. package/src/theme/segmented-control.module.css +0 -80
  4984. package/src/theme/segmented-control.module.css.d.ts +0 -10
  4985. package/src/theme/status-dot.module.css +0 -9
  4986. package/src/theme/status-dot.module.css.d.ts +0 -8
  4987. package/src/theme/status-dot.tsx +0 -31
  4988. package/src/theme/status-verdict.module.css +0 -25
  4989. package/src/theme/status-verdict.module.css.d.ts +0 -9
  4990. package/src/theme/status-verdict.tsx +0 -36
  4991. package/src/theme/theme-toggle.module.css +0 -30
  4992. package/src/theme/theme-toggle.module.css.d.ts +0 -10
  4993. package/src/theme/theme-toggle.tsx +0 -164
  4994. package/src/theme/timeline.module.css +0 -29
  4995. package/src/theme/timeline.module.css.d.ts +0 -9
  4996. package/src/theme/use-basalt-spacing.ts +0 -40
  4997. package/src/theme-lab/boot.ts +0 -140
  4998. package/src/theme-lab/derive-controls.tsx +0 -231
  4999. package/src/theme-lab/derive-state.ts +0 -164
  5000. package/src/theme-lab/index.tsx +0 -229
  5001. package/src/unwrap.ts +0 -44
  5002. package/src/vite-boot.ts +0 -109
  5003. package/src/vite-color-mix.ts +0 -137
  5004. package/src/vite.ts +0 -899
  5005. /package/dist/{agent/history.js → ai/contract.js} +0 -0
  5006. /package/dist/{agent/outcome.js → astro/mdx/messages.js} +0 -0
  5007. /package/dist/{controls/filter-base.js → cards/contract.js} +0 -0
  5008. /package/dist/{controls/uncontrolled.js → charts/contract.js} +0 -0
  5009. /package/dist/charts/{ticks.d.ts → core/ticks.d.ts} +0 -0
  5010. /package/dist/charts/{heatmap-fill.d.ts → parts/heatmap-fill.d.ts} +0 -0
  5011. /package/dist/charts/{heatmap-fill.js → parts/heatmap-fill.js} +0 -0
  5012. /package/dist/{guard/types.js → content/contract.js} +0 -0
  5013. /package/dist/{shell/account-types.js → controls/contract.js} +0 -0
  5014. /package/dist/{shell/nav-types.js → core/mark-types.js} +0 -0
  5015. /package/dist/{content → core}/slug.d.ts +0 -0
  5016. /package/dist/{content → page}/toc-click-pin.d.ts +0 -0
  5017. /package/dist/{content → page}/toc-spy.d.ts +0 -0
  5018. /package/dist/{content → page}/toc-spy.js +0 -0
  5019. /package/src/charts/{heatmap-fill.ts → parts/heatmap-fill.ts} +0 -0
  5020. /package/src/{content → page}/toc-spy.ts +0 -0
@@ -1,4480 +0,0 @@
1
- /**
2
- * Integration tests for the shipped `basalt` oxlint JS plugin (`oxlint-plugin.js`) — exercises the
3
- * real oxlint binary against small fixture files, the same way a consumer's lint run would.
4
- *
5
- * Each fixture repo gets a minimal `.oxlintrc.json` pointing `jsPlugins` at the plugin (absolute
6
- * path — verified to resolve the same as the relative path the shipped/repo configs use) and
7
- * enabling every rule this file tests. `run` shells the workspace-root `node_modules/.bin/oxlint`
8
- * binary and returns the parsed set of `basalt/<rule>` diagnostics it printed.
9
- */
10
- import { afterEach, beforeAll, beforeEach, describe, expect, it } from 'bun:test'
11
- import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
12
- import { tmpdir } from 'node:os'
13
- import { dirname, resolve } from 'node:path'
14
- // eslint-disable-next-line -- the plugin is plain JS; the ledger + id set are named exports beside it
15
- import basaltPlugin, {
16
- CTL_THEME_TAGS,
17
- WAIVER_ID_ALIASES,
18
- KNOWN_RULE_IDS,
19
- CHART_ENGINE_ALLOWED_PREFIXES,
20
- CHART_ENGINE_ALLOWED_SUBPATHS,
21
- isAllowedChartEngineSubpath,
22
- PLUGIN_RULE_GRACE,
23
- RAW_BREAKPOINT_RECIPE,
24
- RETIRED_RULE_IDS,
25
- } from './oxlint-plugin.js'
26
- import { CTL_THEME } from '../src/theme/ctl-theme'
27
- import {
28
- GRACE_PERIOD_KINDS,
29
- GUARD_RULES,
30
- PLUGIN_RULE_IDS,
31
- WAIVER_ID_ALIASES as GUARD_WAIVER_ID_ALIASES,
32
- } from '../src/guard/index.ts'
33
- import { PLUGIN_RULE_ID_LIST, SURFACES } from '../src/surfaces.ts'
34
- import { CONTAINER_CLASSES } from '../src/tokens/size-classes.ts'
35
-
36
- const PLUGIN_PATH = resolve(import.meta.dirname, 'oxlint-plugin.js')
37
- const OXLINT_BIN = resolve(import.meta.dirname, '..', '..', '..', 'node_modules', '.bin', 'oxlint')
38
-
39
- let dir: string
40
-
41
- beforeEach(() => {
42
- dir = mkdtempSync(resolve(tmpdir(), 'basalt-oxlint-plugin-'))
43
- writeFileSync(
44
- resolve(dir, '.oxlintrc.json'),
45
- JSON.stringify({
46
- plugins: [],
47
- jsPlugins: [PLUGIN_PATH],
48
- rules: {
49
- 'basalt/query-fn-unwrap': 'error',
50
- 'basalt/forms-field-key': 'error',
51
- 'basalt/no-raw-font-size': 'error',
52
- 'basalt/raw-size-literal': 'error',
53
- 'basalt/card-inset': 'error',
54
- 'basalt/chart-in-raw-surface': 'error',
55
- 'basalt/shadow-basalt-export': 'error',
56
- 'basalt/hand-rolled-shell': 'error',
57
- 'basalt/raw-scroll-container': 'error',
58
- 'basalt/hand-rolled-filter': 'error',
59
- 'basalt/control-outside-home': 'error',
60
- 'basalt/bound-control-outside-home': 'error',
61
- 'basalt/control-size-literal': 'error',
62
- 'basalt/in-body-page-title': 'error',
63
- 'basalt/responsive-twin': 'error',
64
- 'basalt/search-literal-link': 'error',
65
- 'basalt/use-search-from-literal': 'error',
66
- 'basalt/chart-engine-boundary': 'error',
67
- 'basalt/chart-host-single': 'error',
68
- 'basalt/token-layer-boundary': 'error',
69
- 'basalt/agent-no-raw-usechat': 'error',
70
- 'basalt/ai-sdk-major': 'error',
71
- 'basalt/raw-breakpoint': 'error',
72
- 'basalt/no-dev-helper': 'error',
73
- 'basalt/route-view-transition': 'error',
74
- 'basalt/status-fill-as-text': 'error',
75
- },
76
- }),
77
- )
78
- // `shadow-basalt-export` and `ai-sdk-major` both scope through `isBasaltScopedFile`, so a fixture
79
- // repo with NO manifest is out of scope for both and every other assertion here would pass
80
- // vacuously. Written per-test by the `ai-sdk-major` block, which needs its own `ai` pin.
81
- writeFileSync(
82
- resolve(dir, 'package.json'),
83
- JSON.stringify({ name: 'fixture', version: '0.0.0', dependencies: { 'basalt-ui': '^1.21.0' } }),
84
- )
85
- })
86
-
87
- afterEach(() => {
88
- rmSync(dir, { recursive: true, force: true })
89
- })
90
-
91
- /** Writes `source` as the sole fixture file and runs oxlint against the temp fixture repo. */
92
- function run(
93
- source: string,
94
- filename = 'fixture.tsx',
95
- ): { code: number; rules: Set<string>; output: string } {
96
- const filePath = resolve(dir, filename)
97
- mkdirSync(dirname(filePath), { recursive: true })
98
- writeFileSync(filePath, source)
99
- const result = Bun.spawnSync([OXLINT_BIN, '-c', '.oxlintrc.json', filename], { cwd: dir })
100
- const output = `${result.stdout}${result.stderr}`
101
- // A plugin that fails to load must fail the run, not read as "no findings" — otherwise every
102
- // `not.toContain` below is false-green.
103
- if (/Failed to (?:load JS plugin|parse oxlint configuration)/.test(output))
104
- throw new Error(`oxlint could not load the basalt plugin:\n${output}`)
105
- const rules = new Set(
106
- [...output.matchAll(/\(basalt\/([\w-]+)\)/g)].map((match) => match[1] as string),
107
- )
108
- return { code: result.exitCode ?? 0, rules, output }
109
- }
110
-
111
- // The sentinel: one fixture every working plugin reports. If it does not, the plugin is not loaded
112
- // (or not registered under `basalt/`) and nothing else in this file means anything.
113
- beforeAll(() => {
114
- const sentinelDir = mkdtempSync(resolve(tmpdir(), 'basalt-oxlint-sentinel-'))
115
- try {
116
- writeFileSync(
117
- resolve(sentinelDir, '.oxlintrc.json'),
118
- JSON.stringify({ jsPlugins: [PLUGIN_PATH], rules: { 'basalt/no-raw-font-size': 'error' } }),
119
- )
120
- writeFileSync(resolve(sentinelDir, 'sentinel.tsx'), 'export const C = () => <Text fz={10} />\n')
121
- const result = Bun.spawnSync([OXLINT_BIN, '-c', '.oxlintrc.json', 'sentinel.tsx'], {
122
- cwd: sentinelDir,
123
- })
124
- const output = `${result.stdout}${result.stderr}`
125
- if (!output.includes('(basalt/no-raw-font-size)'))
126
- throw new Error(`basalt oxlint plugin did not load — sentinel rule never fired:\n${output}`)
127
- } finally {
128
- rmSync(sentinelDir, { recursive: true, force: true })
129
- }
130
- })
131
-
132
- // ── no-raw-font-size ─────────────────────────────────────────────────────────
133
-
134
- describe('basalt/no-raw-font-size', () => {
135
- it('flags a numeric fz JSX attribute', () => {
136
- const { code, rules } = run(`export const C = () => <Text fz={10}>a</Text>\n`)
137
- expect(code).toBe(1)
138
- expect(rules).toContain('no-raw-font-size')
139
- })
140
-
141
- it('does NOT flag a string fz token', () => {
142
- const { code, rules } = run(`export const C = () => <Text fz="md">a</Text>\n`)
143
- expect(code).toBe(0)
144
- expect(rules).not.toContain('no-raw-font-size')
145
- })
146
-
147
- it('does NOT flag a numeric fontSize with a same-line theme-allow comment', () => {
148
- const { code, rules } = run(
149
- `export const C = () => <Text fz={10} /* theme-allow no-raw-font-size — legacy */>a</Text>\n`,
150
- )
151
- expect(code).toBe(0)
152
- expect(rules).not.toContain('no-raw-font-size')
153
- })
154
-
155
- // F25: symmetric with raw-size-literal's own test-file skip below — the doctrine is about
156
- // shipped UI, not fixtures.
157
- it('does NOT flag a numeric fz inside a *.test.tsx file', () => {
158
- const { code, rules } = run(`export const C = () => <Text fz={10}>a</Text>\n`, 'lib.test.tsx')
159
- expect(code).toBe(0)
160
- expect(rules).not.toContain('no-raw-font-size')
161
- })
162
- })
163
-
164
- // ── raw-size-literal ─────────────────────────────────────────────────────────
165
-
166
- describe('basalt/raw-size-literal', () => {
167
- it('flags a CSS-length string on size', () => {
168
- const { code, rules } = run(`export const C = () => <ThemeIcon size="2rem" />\n`)
169
- expect(code).toBe(1)
170
- expect(rules).toContain('raw-size-literal')
171
- })
172
-
173
- it('flags a CSS-length string on fz', () => {
174
- const { code, rules } = run(`export const C = () => <Text fz="0.8rem">a</Text>\n`)
175
- expect(code).toBe(1)
176
- expect(rules).toContain('raw-size-literal')
177
- })
178
-
179
- it('does NOT flag a scale token on size', () => {
180
- const { code, rules } = run(`export const C = () => <ThemeIcon size="md" />\n`)
181
- expect(code).toBe(0)
182
- expect(rules).not.toContain('raw-size-literal')
183
- })
184
-
185
- it('does NOT flag a numeric size (the documented icon-dimension idiom)', () => {
186
- const { code, rules } = run(`export const C = () => <ThemeIcon size={32} />\n`)
187
- expect(code).toBe(0)
188
- expect(rules).not.toContain('raw-size-literal')
189
- })
190
-
191
- it('does NOT flag with a same-line theme-allow comment', () => {
192
- const { code, rules } = run(
193
- `export const C = () => <Text fz="0.8rem" /* theme-allow raw-size-literal — legacy */>a</Text>\n`,
194
- )
195
- expect(code).toBe(0)
196
- expect(rules).not.toContain('raw-size-literal')
197
- })
198
-
199
- // F25: was the asymmetric half — no-raw-font-size already skipped test files, this rule did not.
200
- it('does NOT flag a CSS-length string inside a *.test.tsx file', () => {
201
- const { code, rules } = run(
202
- `export const C = () => <Text fz="0.8rem">a</Text>\n`,
203
- 'lib.test.tsx',
204
- )
205
- expect(code).toBe(0)
206
- expect(rules).not.toContain('raw-size-literal')
207
- })
208
-
209
- // A3: the /src/tokens/ exemption used to be a bare path-substring check, then a check gated on
210
- // `isBasaltScopedFile` — but that predicate tests "does the nearest package.json depend on
211
- // basalt-ui", not "is this file basalt's own", so a CONSUMER package that merely depends on
212
- // basalt-ui could still put raw literals under its own `src/tokens/` and silence the rule. The
213
- // exemption is deleted outright rather than re-gated on package identity: both rules only ever
214
- // visit JSX, and basalt's real `src/tokens/**` is pure `.ts` data with none, so no gate was ever
215
- // load-bearing there. A `src/tokens/` path — basalt's own or a consumer's — now always fires.
216
- it('DOES flag a CSS-length string inside a src/tokens/ file (no path exemption)', () => {
217
- const { code, rules } = run(
218
- `export const C = () => <ThemeIcon size="2rem" />\n`,
219
- 'src/tokens/palette.tsx',
220
- )
221
- expect(code).toBe(1)
222
- expect(rules).toContain('raw-size-literal')
223
- })
224
- })
225
-
226
- // ── card-inset ───────────────────────────────────────────────────────────────
227
-
228
- describe('basalt/card-inset', () => {
229
- it.each([
230
- ['uniform p="lg"', '<Card p="lg" />'],
231
- ['uniform p="md"', '<Card p="md" />'],
232
- ['uniform p="sm"', '<Card p="sm" />'],
233
- ['uniform padding="sm"', '<Card padding="sm" />'],
234
- ['uniform padding={12}', '<Card padding={12} />'],
235
- ['uniform p={0}', '<Card p={0} />'],
236
- ['a non-literal p', '<Card p={gap} />'],
237
- ['py="md"', '<Paper py="md" px="md" />'],
238
- ['px="xs"', '<Paper py="sm" px="xs" />'],
239
- ['the old xs/sm pair', '<Paper py="xs" px="sm" />'],
240
- ['numeric py/px {8} {12}', '<Paper py={8} px={12} />'],
241
- ['numeric py/px {13} {4}', '<Paper py={13} px={4} />'],
242
- ['a non-literal py', '<Paper py={y} px="md" />'],
243
- ['a non-literal px', '<Paper py="sm" px={x} />'],
244
- ['a lone py="sm"', '<Paper py="sm" />'],
245
- ['a lone px="md"', '<Paper px="md" />'],
246
- ['an explicit radius', '<Card radius="md" />'],
247
- ])('flags %s', (_name, jsx) => {
248
- const { rules } = run(`export const C = () => ${jsx}\n`)
249
- expect(rules).toContain('card-inset')
250
- })
251
-
252
- it.each([
253
- ['no padding at all', '<Card />'],
254
- ['a bare Paper', '<Paper />'],
255
- ['the flush Card', '<Card variant="flush" />'],
256
- ['the flush Paper', '<Paper variant="flush" />'],
257
- ['a full-bleed Card.Section in a padded card', '<Card><Card.Section /></Card>'],
258
- [
259
- 'an explicit inset with a waiver',
260
- '<div>\n{/* theme-allow card-inset — hero map */}\n<Card p={0} />\n</div>',
261
- ],
262
- ])('does NOT flag %s', (_name, jsx) => {
263
- const { rules } = run(`export const C = () => ${jsx}\n`)
264
- expect(rules).not.toContain('card-inset')
265
- })
266
-
267
- // The theme owns the 12/16 inset (Wave 35), so restating it is noise that drifts.
268
- it.each([
269
- ['the sm/md pair', '<Paper py="sm" px="md" />'],
270
- ['the pair in either order', '<Card px="md" py="sm" />'],
271
- ['the pair in expression containers', '<Card py={"sm"} px={"md"} />'],
272
- ])('flags %s as redundant', (_name, jsx) => {
273
- const { rules, output } = run(`export const C = () => ${jsx}\n`)
274
- expect(rules).toContain('card-inset')
275
- expect(output).toContain('redundant')
276
- expect(output).toContain('theme owns')
277
- })
278
-
279
- it('names the flush idiom on any other explicit inset, and not "redundant"', () => {
280
- const { output } = run(`export const C = () => <Card py={0} px={0} />\n`)
281
- expect(output).toContain('variant="flush"')
282
- expect(output).toContain('Card.Section')
283
- expect(output).not.toContain('redundant')
284
- })
285
-
286
- it('flush does not excuse an explicit padding next to it', () => {
287
- const { rules } = run(`export const C = () => <Card variant="flush" p="lg" />\n`)
288
- expect(rules).toContain('card-inset')
289
- })
290
-
291
- it('ships warn through its grace minor, so a flagged card does not fail the run', () => {
292
- const { code, rules } = run(`export const C = () => <Card p="lg" />\n`)
293
- // The fixture config sets the rule to error; the SHIPPED level is pinned by the ledger tests.
294
- expect(rules).toContain('card-inset')
295
- expect(code).toBe(1)
296
- })
297
- })
298
-
299
- // ── chart-in-raw-surface ──────────────────────────────────────────────────────
300
-
301
- describe('basalt/chart-in-raw-surface', () => {
302
- it('flags a chart-kind element inside a raw Card', () => {
303
- const { code, rules } = run(`export const C = () => <Card><Lines data={[]} /></Card>\n`)
304
- expect(code).toBe(1)
305
- expect(rules).toContain('chart-in-raw-surface')
306
- })
307
-
308
- it('does NOT flag a chart passed as a prop value (not a Card/Paper subtree)', () => {
309
- const { code, rules } = run(
310
- `export const C = () => <Card><StatCard sparkline={<Sparkline />} /></Card>\n`,
311
- )
312
- expect(code).toBe(0)
313
- expect(rules).not.toContain('chart-in-raw-surface')
314
- })
315
- })
316
-
317
- // ── chart-engine-boundary ────────────────────────────────────────────────────
318
-
319
- describe('basalt/chart-engine-boundary', () => {
320
- it.each([
321
- ['@visx/scale', `import { scaleLinear } from '@visx/scale'\n`],
322
- ['@visx/tooltip', `import { Tooltip } from '@visx/tooltip'\n`],
323
- ['a source-bearing named re-export', `export { scaleLinear } from '@visx/scale'\n`],
324
- ['a wildcard re-export', `export * from '@visx/scale'\n`],
325
- ['a dynamic import', `export const load = () => import('@visx/shape')\n`],
326
- ])('bans %s outside basalt', (_label, source) => {
327
- const { code, rules } = run(source, 'lib.ts')
328
- expect(code).toBe(1)
329
- expect(rules).toContain('chart-engine-boundary')
330
- })
331
-
332
- it('bans @visx/* inside basalt source and a charts/ directory too', () => {
333
- for (const file of ['charts/lib.tsx', 'packages/basalt-ui/src/charts/lib.tsx']) {
334
- const { code, rules } = run(`import { Bar } from '@visx/shape'\n`, file)
335
- expect([file, code]).toEqual([file, 1])
336
- expect(rules).toContain('chart-engine-boundary')
337
- }
338
- })
339
-
340
- it('still bans @visx/* under a theme-allow comment (no escape hatch)', () => {
341
- const { rules } = run(
342
- `// theme-allow chart-engine-boundary — legacy\nimport { scaleLinear } from '@visx/scale'\n`,
343
- 'lib.ts',
344
- )
345
- expect(rules).toContain('chart-engine-boundary')
346
- })
347
-
348
- it.each([
349
- '@tanstack/charts/line',
350
- '@tanstack/charts/area-x',
351
- '@tanstack/charts/mark/decorative',
352
- '@tanstack/charts/d3/shape',
353
- '@tanstack/charts/scales/linear',
354
- '@tanstack/charts/transform/bin',
355
- '@tanstack/charts/types',
356
- ])('allows %s outside basalt', (specifier) => {
357
- const { code, rules } = run(`import * as m from '${specifier}'\nexport { m }\n`, 'lib.ts')
358
- expect([specifier, code]).toEqual([specifier, 0])
359
- expect(rules).not.toContain('chart-engine-boundary')
360
- })
361
-
362
- it.each([
363
- '@tanstack/charts',
364
- '@tanstack/charts/react',
365
- '@tanstack/charts/react/tooltip',
366
- '@tanstack/charts/svg',
367
- '@tanstack/charts/mark/composite',
368
- '@tanstack/charts/transform',
369
- '@tanstack/charts/scales/',
370
- '@tanstack/charts/line/extra',
371
- ])('bans %s outside basalt and names the allowed alternative', (specifier) => {
372
- const { code, rules, output } = run(
373
- `import * as m from '${specifier}'\nexport { m }\n`,
374
- 'lib.ts',
375
- )
376
- expect([specifier, code]).toEqual([specifier, 1])
377
- expect(rules).toContain('chart-engine-boundary')
378
- expect(output).toContain('basalt-ui/charts')
379
- })
380
-
381
- it.each([
382
- "const m = require('@visx/scale')\n",
383
- "const m = require('@tanstack/charts')\n",
384
- "const m = require('@tanstack/charts/react')\n",
385
- "const m = require('@tanstack/charts/scales/../react')\n",
386
- ])('bans a literal require: %s', (source) => {
387
- const { code, rules } = run(`${source}export { m }\n`, 'lib.ts')
388
- expect([source, code]).toEqual([source, 1])
389
- expect(rules).toContain('chart-engine-boundary')
390
- })
391
-
392
- it('allows a literal require of an allowed subpath and ignores computed ones', () => {
393
- const { code } = run(
394
- `const a = require('@tanstack/charts/line')\nconst b = require(name)\nexport { a, b }\n`,
395
- 'lib.ts',
396
- )
397
- expect(code).toBe(0)
398
- })
399
-
400
- it('bans a traversal out of an allowed family', () => {
401
- const { rules } = run(
402
- `import * as m from '@tanstack/charts/scales/../react'\nexport { m }\n`,
403
- 'lib.ts',
404
- )
405
- expect(rules).toContain('chart-engine-boundary')
406
- })
407
-
408
- it('bans a re-export of the bare root outside basalt', () => {
409
- const { rules } = run(`export { defineChart } from '@tanstack/charts'\n`, 'lib.ts')
410
- expect(rules).toContain('chart-engine-boundary')
411
- })
412
-
413
- it('does NOT apply the allowlist inside basalt source', () => {
414
- const { code, rules } = run(
415
- `import { ChartRuntime } from '@tanstack/charts/react'\nexport { ChartRuntime }\n`,
416
- 'packages/basalt-ui/src/charts/host.tsx',
417
- )
418
- expect(code).toBe(0)
419
- expect(rules).not.toContain('chart-engine-boundary')
420
- })
421
-
422
- it('does not touch unrelated @tanstack packages', () => {
423
- const { code } = run(
424
- `import { useQuery } from '@tanstack/react-query'\nexport { useQuery }\n`,
425
- 'lib.ts',
426
- )
427
- expect(code).toBe(0)
428
- })
429
- })
430
-
431
- describe('isAllowedChartEngineSubpath', () => {
432
- it.each([...CHART_ENGINE_ALLOWED_SUBPATHS, 'scales/linear', 'transform/bin-time'])(
433
- 'allows %s',
434
- (subpath) => expect(isAllowedChartEngineSubpath(subpath)).toBe(true),
435
- )
436
-
437
- it.each([
438
- '',
439
- 'scales',
440
- 'scales/',
441
- 'transform',
442
- 'transform/',
443
- 'react',
444
- 'line/extra',
445
- 'scales/../react',
446
- 'scales/./linear',
447
- 'scales//linear',
448
- '../line',
449
- 'line/..',
450
- ])('rejects %j', (subpath) => expect(isAllowedChartEngineSubpath(subpath)).toBe(false))
451
- })
452
-
453
- // ── chart-host-single ────────────────────────────────────────────────────────
454
-
455
- describe('basalt/chart-host-single', () => {
456
- const REACT_IMPORT = `import { Chart } from '@tanstack/charts/react'\nexport { Chart }\n`
457
-
458
- it('allows @tanstack/charts/react in packages/basalt-ui/src/charts/host.tsx', () => {
459
- const { rules } = run(REACT_IMPORT, 'packages/basalt-ui/src/charts/host.tsx')
460
- expect(rules).not.toContain('chart-host-single')
461
- })
462
-
463
- it.each([
464
- 'packages/basalt-ui/src/charts/kinds/lines.tsx',
465
- 'packages/basalt-ui/src/charts/host.ts',
466
- 'packages/basalt-ui/src/chart.tsx',
467
- ])('flags it in %s', (file) => {
468
- const { code, rules } = run(REACT_IMPORT, file)
469
- expect([file, code]).toEqual([file, 1])
470
- expect(rules).toContain('chart-host-single')
471
- })
472
-
473
- it('stays silent outside basalt source — chart-engine-boundary owns that one diagnostic', () => {
474
- for (const file of ['apps/playground/src/chart.tsx', 'host.tsx']) {
475
- const { rules } = run(REACT_IMPORT, file)
476
- expect([file, rules.has('chart-host-single')]).toEqual([file, false])
477
- }
478
- })
479
-
480
- it('is not waived by theme-allow', () => {
481
- const { rules } = run(
482
- `// theme-allow chart-host-single — just this once\n${REACT_IMPORT}`,
483
- 'packages/basalt-ui/src/charts/kinds/lines.tsx',
484
- )
485
- expect(rules).toContain('chart-host-single')
486
- })
487
-
488
- it('flags require() of the react entry', () => {
489
- const { rules } = run(
490
- `const { Chart } = require('@tanstack/charts/react')\nexport { Chart }\n`,
491
- 'packages/basalt-ui/src/charts/a.ts',
492
- )
493
- expect(rules).toContain('chart-host-single')
494
- })
495
-
496
- it('flags the react sub-entries and a dynamic import too', () => {
497
- expect(
498
- run(
499
- `import 'x'\nexport * from '@tanstack/charts/react/tooltip'\n`,
500
- 'packages/basalt-ui/src/a.ts',
501
- ).rules,
502
- ).toContain('chart-host-single')
503
- expect(
504
- run(
505
- `export const l = () => import('@tanstack/charts/react')\n`,
506
- 'packages/basalt-ui/src/b.ts',
507
- ).rules,
508
- ).toContain('chart-host-single')
509
- })
510
-
511
- it('leaves the mark subpaths alone', () => {
512
- const { rules } = run(`import { line } from '@tanstack/charts/line'\nexport { line }\n`, 'a.ts')
513
- expect(rules).not.toContain('chart-host-single')
514
- })
515
- })
516
-
517
- // ── chart-engine-boundary ↔ the engine's `exports` (V2-SPEC § 9.8) ──────────────────────────────
518
-
519
- /**
520
- * Every `@tanstack/charts` subpath that is deliberately NOT importable outside basalt, classified
521
- * against 1.1.0's `exports` ('' is the bare root). A new engine subpath is in neither this list nor
522
- * the allowlist, so the test below fails until someone decides which it is.
523
- */
524
- const BANNED_ENGINE_SUBPATHS: readonly string[] = [
525
- '',
526
- 'adapter',
527
- 'adapter/renderer',
528
- 'alpine',
529
- 'angular',
530
- 'band',
531
- 'box',
532
- 'canvas',
533
- 'crosshair',
534
- 'cursor',
535
- 'cursor/host',
536
- 'd3/area-x',
537
- 'dodge',
538
- 'dom',
539
- 'export',
540
- 'facet',
541
- 'focus',
542
- 'focus/disabled',
543
- 'focus/guide',
544
- 'focus/mark',
545
- 'frame',
546
- 'geo',
547
- 'group',
548
- 'hexagon',
549
- 'hierarchy/sunburst',
550
- 'hierarchy/tree',
551
- 'hierarchy/treemap',
552
- 'interaction/brush',
553
- 'interaction/cursor',
554
- 'interaction/handle',
555
- 'interaction/signal',
556
- 'interaction/zoom',
557
- 'legend',
558
- 'lit',
559
- 'mark/composite',
560
- 'mark/scale-values',
561
- 'motion',
562
- 'motion/definition',
563
- 'network/force',
564
- 'network/sankey',
565
- 'octane',
566
- 'octane/canvas',
567
- 'octane/core',
568
- 'polar',
569
- 'preact',
570
- 'react',
571
- 'react-native',
572
- 'react-native/tooltip',
573
- 'react/canvas',
574
- 'react/core',
575
- 'react/tooltip',
576
- 'reconcile',
577
- 'regression',
578
- 'renderer',
579
- 'renderer/rect',
580
- 'ridgeline',
581
- 'runtime',
582
- 'scene',
583
- 'selection',
584
- 'solid',
585
- 'spatial/contour',
586
- 'spatial/delaunay',
587
- 'spatial/density',
588
- 'spatial/hexbin',
589
- 'spatial/voronoi',
590
- 'spring',
591
- 'svelte',
592
- 'svg',
593
- 'svg/renderer',
594
- 'svg/resources',
595
- 'tooltip',
596
- 'tooltip/model',
597
- 'tooltip/portal',
598
- 'transform',
599
- 'types/core',
600
- 'universal',
601
- 'view',
602
- 'violin',
603
- 'vue',
604
- 'waffle',
605
- ]
606
-
607
- // The package that declares the peer: bun's isolated linker installs it there, never at the root.
608
- const ENGINE_PACKAGE_JSON = resolve(
609
- import.meta.dirname,
610
- '..',
611
- 'node_modules',
612
- '@tanstack',
613
- 'charts',
614
- 'package.json',
615
- )
616
-
617
- describe('chart-engine-boundary ↔ @tanstack/charts exports', () => {
618
- const exportKeys = (): string[] => {
619
- const manifest = JSON.parse(readFileSync(ENGINE_PACKAGE_JSON, 'utf8')) as {
620
- exports: Record<string, unknown>
621
- }
622
- return Object.keys(manifest.exports).map((key) => (key === '.' ? '' : key.replace(/^\.\//, '')))
623
- }
624
-
625
- it('every exact allowlisted subpath exists in the engine', () => {
626
- const exports = new Set(exportKeys())
627
- for (const subpath of CHART_ENGINE_ALLOWED_SUBPATHS) {
628
- expect([subpath, exports.has(subpath)]).toEqual([subpath, true])
629
- }
630
- })
631
-
632
- it('every allowlisted family matches at least one engine subpath', () => {
633
- for (const prefix of CHART_ENGINE_ALLOWED_PREFIXES) {
634
- expect([prefix, exportKeys().some((key) => key.startsWith(prefix))]).toEqual([prefix, true])
635
- }
636
- })
637
-
638
- it('every engine subpath is allowlisted or deliberately banned', () => {
639
- const unclassified = exportKeys().filter(
640
- (key) => !isAllowedChartEngineSubpath(key) && !BANNED_ENGINE_SUBPATHS.includes(key),
641
- )
642
- expect(unclassified).toEqual([])
643
- })
644
-
645
- it('the banned list has no stale or allowlisted entries', () => {
646
- const exports = new Set(exportKeys())
647
- for (const subpath of BANNED_ENGINE_SUBPATHS) {
648
- expect([subpath, exports.has(subpath), isAllowedChartEngineSubpath(subpath)]).toEqual([
649
- subpath,
650
- true,
651
- false,
652
- ])
653
- }
654
- })
655
- })
656
-
657
- // ── token-layer-boundary ─────────────────────────────────────────────────────
658
-
659
- describe('basalt/token-layer-boundary', () => {
660
- it('flags a @mantine/* import inside charts', () => {
661
- const { code, rules } = run(`import { Button } from '@mantine/core'\n`, 'charts/lib.tsx')
662
- expect(code).toBe(1)
663
- expect(rules).toContain('token-layer-boundary')
664
- })
665
-
666
- it('flags a @mantine/* import inside tokens', () => {
667
- const { code, rules } = run(`import { Button } from '@mantine/core'\n`, 'tokens/lib.ts')
668
- expect(code).toBe(1)
669
- expect(rules).toContain('token-layer-boundary')
670
- })
671
-
672
- it('does NOT flag a @mantine/* import outside charts/tokens', () => {
673
- const { code, rules } = run(`import { Button } from '@mantine/core'\n`, 'lib.tsx')
674
- expect(code).toBe(0)
675
- expect(rules).not.toContain('token-layer-boundary')
676
- })
677
- })
678
-
679
- // ── rule independence ──────────────────────────────────────────────────────────
680
- // Each boundary rule has its own id, so disabling one leaves the others enforced.
681
-
682
- describe('rule independence', () => {
683
- it('disabling basalt/chart-engine-boundary leaves basalt/chart-host-single enforced', () => {
684
- writeFileSync(
685
- resolve(dir, '.oxlintrc.json'),
686
- JSON.stringify({
687
- plugins: [],
688
- jsPlugins: [PLUGIN_PATH],
689
- rules: {
690
- 'basalt/chart-engine-boundary': 'off',
691
- 'basalt/chart-host-single': 'error',
692
- 'basalt/token-layer-boundary': 'error',
693
- },
694
- }),
695
- )
696
- const { code, rules } = run(
697
- `import { scaleLinear } from '@visx/scale'\nimport { Chart } from '@tanstack/charts/react'\n`,
698
- 'packages/basalt-ui/src/lib.ts',
699
- )
700
- expect(code).toBe(1)
701
- expect(rules).not.toContain('chart-engine-boundary')
702
- expect(rules).toContain('chart-host-single')
703
- })
704
- })
705
-
706
- // ── agent-no-raw-usechat ─────────────────────────────────────────────────────
707
-
708
- describe('basalt/agent-no-raw-usechat', () => {
709
- it('flags importing useChat from @ai-sdk/react', () => {
710
- const { code, rules } = run(`import { useChat } from '@ai-sdk/react'\n`, 'lib.ts')
711
- expect(code).toBe(1)
712
- expect(rules).toContain('agent-no-raw-usechat')
713
- })
714
-
715
- it('flags importing useCompletion from @ai-sdk/react', () => {
716
- const { code, rules } = run(`import { useCompletion } from '@ai-sdk/react'\n`, 'lib.ts')
717
- expect(code).toBe(1)
718
- expect(rules).toContain('agent-no-raw-usechat')
719
- })
720
-
721
- it('does NOT flag a type-only import of UIMessage from the same module', () => {
722
- const { code, rules } = run(`import type { UIMessage } from '@ai-sdk/react'\n`, 'lib.ts')
723
- expect(code).toBe(0)
724
- expect(rules).not.toContain('agent-no-raw-usechat')
725
- })
726
-
727
- it('does NOT flag an unrelated import from ai', () => {
728
- const { code, rules } = run(`import { DefaultChatTransport } from 'ai'\n`, 'lib.ts')
729
- expect(code).toBe(0)
730
- expect(rules).not.toContain('agent-no-raw-usechat')
731
- })
732
-
733
- it('does NOT flag useChat imported from a local module', () => {
734
- const { code, rules } = run(`import { useChat } from './my-hooks'\n`, 'lib.ts')
735
- expect(code).toBe(0)
736
- expect(rules).not.toContain('agent-no-raw-usechat')
737
- })
738
-
739
- // The matcher covers TWO source specifiers (RAW_USE_CHAT_SOURCES: '@ai-sdk/react' AND
740
- // 'ai/react') — every fixture above only exercises '@ai-sdk/react'; this pins the other half.
741
- it("flags importing useChat from 'ai/react' (the other matched source)", () => {
742
- const { code, rules } = run(`import { useChat } from 'ai/react'\n`, 'lib.ts')
743
- expect(code).toBe(1)
744
- expect(rules).toContain('agent-no-raw-usechat')
745
- })
746
-
747
- it('does NOT flag an import marked basalt-agent-allow', () => {
748
- const { code, rules } = run(
749
- `// basalt-agent-allow\nimport { useChat } from '@ai-sdk/react'\n`,
750
- 'lib.ts',
751
- )
752
- expect(code).toBe(0)
753
- expect(rules).not.toContain('agent-no-raw-usechat')
754
- })
755
-
756
- it('STILL flags an import marked only theme-allow (wrong escape token)', () => {
757
- const { code, rules } = run(
758
- `// theme-allow\nimport { useChat } from '@ai-sdk/react'\n`,
759
- 'lib.ts',
760
- )
761
- expect(code).toBe(1)
762
- expect(rules).toContain('agent-no-raw-usechat')
763
- })
764
- })
765
-
766
- // ── ai-sdk-major ─────────────────────────────────────────────────────────────
767
- // The lint rule compares the LINTED FILE's nearest package.json against basalt-ui's own declared
768
- // `ai` peer major (read from packages/basalt-ui/package.json — the real file, since the plugin
769
- // resolves it relative to its own module location regardless of where it's invoked from). basalt-ui
770
- // declares "ai": "^7.0.15" (major 7) in both devDependencies and peerDependencies.
771
-
772
- describe('basalt/ai-sdk-major', () => {
773
- it("flags when the nearest package.json declares a different ai major (5 vs basalt's 7)", () => {
774
- writeFileSync(
775
- resolve(dir, 'package.json'),
776
- JSON.stringify({ dependencies: { 'basalt-ui': '^1.19.1', ai: '5.0.196' } }),
777
- )
778
- const { code, rules } = run(`import { streamText } from 'ai'\n`, 'lib.ts')
779
- expect(code).toBe(1)
780
- expect(rules).toContain('ai-sdk-major')
781
- })
782
-
783
- it('does NOT flag when the nearest package.json declares the same major (^7.0.18)', () => {
784
- writeFileSync(
785
- resolve(dir, 'package.json'),
786
- JSON.stringify({ dependencies: { 'basalt-ui': '^1.19.1', ai: '^7.0.18' } }),
787
- )
788
- const { code, rules } = run(`import { streamText } from 'ai'\n`, 'lib.ts')
789
- expect(code).toBe(0)
790
- expect(rules).not.toContain('ai-sdk-major')
791
- })
792
-
793
- it('does NOT flag when there is no ai in the nearest package.json', () => {
794
- writeFileSync(
795
- resolve(dir, 'package.json'),
796
- JSON.stringify({ dependencies: { 'basalt-ui': '^1.19.1' } }),
797
- )
798
- const { code, rules } = run(`import { streamText } from 'ai'\n`, 'lib.ts')
799
- expect(code).toBe(0)
800
- expect(rules).not.toContain('ai-sdk-major')
801
- })
802
-
803
- it('does NOT flag an unrelated import even with a skewed nearest package.json', () => {
804
- writeFileSync(
805
- resolve(dir, 'package.json'),
806
- JSON.stringify({ dependencies: { 'basalt-ui': '^1.19.1', ai: '5.0.196' } }),
807
- )
808
- const { code, rules } = run(`import { useState } from 'react'\n`, 'lib.ts')
809
- expect(code).toBe(0)
810
- expect(rules).not.toContain('ai-sdk-major')
811
- })
812
-
813
- // The matcher covers TWO forms (source === 'ai' OR source.startsWith('@ai-sdk/')) — every
814
- // fixture above only exercises the bare 'ai' specifier; this pins the scoped-package half.
815
- it("flags a scoped '@ai-sdk/*' import when the nearest package.json declares a different ai major", () => {
816
- writeFileSync(
817
- resolve(dir, 'package.json'),
818
- JSON.stringify({ dependencies: { 'basalt-ui': '^1.19.1', ai: '5.0.196' } }),
819
- )
820
- const { code, rules } = run(`import { openai } from '@ai-sdk/openai'\n`, 'lib.ts')
821
- expect(code).toBe(1)
822
- expect(rules).toContain('ai-sdk-major')
823
- })
824
-
825
- it("does NOT flag a scoped '@ai-sdk/*' import when the nearest package.json declares the same major", () => {
826
- writeFileSync(
827
- resolve(dir, 'package.json'),
828
- JSON.stringify({ dependencies: { 'basalt-ui': '^1.19.1', ai: '^7.0.18' } }),
829
- )
830
- const { code, rules } = run(`import { openai } from '@ai-sdk/openai'\n`, 'lib.ts')
831
- expect(code).toBe(0)
832
- expect(rules).not.toContain('ai-sdk-major')
833
- })
834
-
835
- // Unlike the other rules in this file, ai-sdk-major honours `basalt-agent-allow` — the SAME
836
- // token as its agent-chat sibling above — not `theme-allow`. A skewed producer/consumer
837
- // import that is genuinely intentional (see doctor's `aiMajorSkewReason`) can mark the line.
838
- it('does NOT flag an import marked basalt-agent-allow, even with a skewed nearest package.json', () => {
839
- writeFileSync(
840
- resolve(dir, 'package.json'),
841
- JSON.stringify({ dependencies: { 'basalt-ui': '^1.19.1', ai: '5.0.196' } }),
842
- )
843
- const { code, rules } = run(
844
- `// basalt-agent-allow\nimport { streamText } from 'ai'\n`,
845
- 'lib.ts',
846
- )
847
- expect(code).toBe(0)
848
- expect(rules).not.toContain('ai-sdk-major')
849
- })
850
-
851
- it('STILL flags an import marked only theme-allow (wrong escape token)', () => {
852
- writeFileSync(
853
- resolve(dir, 'package.json'),
854
- JSON.stringify({ dependencies: { 'basalt-ui': '^1.19.1', ai: '5.0.196' } }),
855
- )
856
- const { code, rules } = run(`// theme-allow\nimport { streamText } from 'ai'\n`, 'lib.ts')
857
- expect(code).toBe(1)
858
- expect(rules).toContain('ai-sdk-major')
859
- })
860
-
861
- // The scoping fix: a workspace package with no basalt-ui dependency is not a basalt consumer, so
862
- // its `ai` pin is none of this rule's business. rb's `apps/api` took 3 errors for exactly this,
863
- // while `doctor` — which scopes the same concern by workspace — reported green.
864
- it('does NOT flag a package that does not depend on basalt-ui at all', () => {
865
- writeFileSync(resolve(dir, 'package.json'), JSON.stringify({ dependencies: { ai: '5.0.196' } }))
866
- const { code, rules } = run(`import { streamText } from 'ai'\n`, 'lib.ts')
867
- expect(code).toBe(0)
868
- expect(rules).not.toContain('ai-sdk-major')
869
- })
870
-
871
- it('does NOT flag a file outside a declared basalt.roots', () => {
872
- writeFileSync(
873
- resolve(dir, 'package.json'),
874
- JSON.stringify({ basalt: { roots: ['web/src'] }, dependencies: { ai: '5.0.196' } }),
875
- )
876
- const { code, rules } = run(`import { streamText } from 'ai'\n`, 'api/src/llm.ts')
877
- expect(code).toBe(0)
878
- expect(rules).not.toContain('ai-sdk-major')
879
- })
880
-
881
- // The ORDERING half of the scoping fix, and the layout `init` produces for a monorepo: one
882
- // manifest carrying BOTH the workspace-root CLI devDependency and `basalt.roots` naming the app.
883
- // Dep-first returned in-scope on that root before `roots` was ever read, so rb's `apps/api` — no
884
- // basalt dependency, deliberately on a different `ai` major, explicitly outside the roots — kept
885
- // taking 3 errors and kept its `.oxlintrc.json` override.
886
- it('reads basalt.roots BEFORE the basalt-ui dependency in the same manifest', () => {
887
- writeFileSync(
888
- resolve(dir, 'package.json'),
889
- JSON.stringify({
890
- basalt: { roots: ['apps/web/src'] },
891
- devDependencies: { 'basalt-ui': '^1.20.0' },
892
- dependencies: { ai: '5.0.196' },
893
- }),
894
- )
895
- const outside = run(`import { streamText } from 'ai'\n`, 'apps/api/src/llm.ts')
896
- expect(outside.code).toBe(0)
897
- expect(outside.rules).not.toContain('ai-sdk-major')
898
-
899
- // …and the declared root itself is still in scope, so the reorder narrows nothing it shouldn't.
900
- const inside = run(`import { streamText } from 'ai'\n`, 'apps/web/src/llm.ts')
901
- expect(inside.rules).toContain('ai-sdk-major')
902
- })
903
-
904
- it('DOES flag a file inside a declared basalt.roots', () => {
905
- writeFileSync(
906
- resolve(dir, 'package.json'),
907
- JSON.stringify({ basalt: { roots: ['web/src'] }, dependencies: { ai: '5.0.196' } }),
908
- )
909
- const { code, rules } = run(`import { streamText } from 'ai'\n`, 'web/src/llm.ts')
910
- expect(code).toBe(1)
911
- expect(rules).toContain('ai-sdk-major')
912
- })
913
- })
914
-
915
- // ── raw-scroll-container — promotion (off → warn → error shipped) ───────────
916
-
917
- describe('basalt/raw-scroll-container promotion', () => {
918
- it('ships "error" (not "warn"/"off") in the consumer preset', () => {
919
- const shipped = JSON.parse(
920
- readFileSync(resolve(import.meta.dirname, 'oxlint-basalt.json'), 'utf8'),
921
- ) as { rules: Record<string, unknown> }
922
- expect(shipped.rules['basalt/raw-scroll-container']).toBe('error')
923
- })
924
-
925
- it('stays at the shipped level ("error") repo-local', () => {
926
- const repoLocal = JSON.parse(
927
- readFileSync(resolve(import.meta.dirname, '..', '..', '..', '.oxlintrc.json'), 'utf8'),
928
- ) as { rules: Record<string, unknown> }
929
- expect(repoLocal.rules['basalt/raw-scroll-container']).toBe('error')
930
- })
931
-
932
- it('still flags a raw overflow:auto style property at the shipped level', () => {
933
- writeFileSync(
934
- resolve(dir, '.oxlintrc.json'),
935
- JSON.stringify({
936
- plugins: [],
937
- jsPlugins: [PLUGIN_PATH],
938
- rules: { 'basalt/raw-scroll-container': 'warn' },
939
- }),
940
- )
941
- const { rules } = run(`const s = { overflowY: 'auto' }\n`, 'lib.ts')
942
- expect(rules).toContain('raw-scroll-container')
943
- })
944
- })
945
-
946
- // ── agent rules — promotion (warn → error shipped) ──────────────────────────
947
- // The two agent-chat rules were promoted warn → error in the SHIPPED preset alongside
948
- // raw-scroll-container above, but had no equivalent lock — `scripts/gen-oxlint.ts` only regenerates
949
- // the `overrides` array; this top-level `rules` block is hand-maintained and
950
- // `tests/oxlint-preset-sync.test.ts` only checks `overrides` against `projectBanList('shipped')`, so
951
- // a later accidental revert of one of these back to "warn" would pass the suite silently.
952
-
953
- describe('basalt agent rules promotion', () => {
954
- it.each(['basalt/agent-no-raw-usechat', 'basalt/ai-sdk-major'])(
955
- '%s ships "error" (not "warn"/"off") in the consumer preset',
956
- (rule) => {
957
- const shipped = JSON.parse(
958
- readFileSync(resolve(import.meta.dirname, 'oxlint-basalt.json'), 'utf8'),
959
- ) as { rules: Record<string, unknown> }
960
- expect(shipped.rules[rule]).toBe('error')
961
- },
962
- )
963
-
964
- it.each(['basalt/agent-no-raw-usechat', 'basalt/ai-sdk-major'])(
965
- '%s stays at the shipped level ("error") repo-local',
966
- (rule) => {
967
- const repoLocal = JSON.parse(
968
- readFileSync(resolve(import.meta.dirname, '..', '..', '..', '.oxlintrc.json'), 'utf8'),
969
- ) as { rules: Record<string, unknown> }
970
- expect(repoLocal.rules[rule]).toBe('error')
971
- },
972
- )
973
- })
974
-
975
- // ── theme-allow grammar — the accepted and rejected shapes, exhaustively ─────
976
- //
977
- // Two rounds produced three holes in this one contract, so it gets a matrix rather than a case.
978
- // `card-inset` is the vehicle: a node-level rule honouring both scopes, so one fixture shape
979
- // exercises the node waiver, the file declaration and the prefix rule at once.
980
-
981
- describe('theme-allow grammar', () => {
982
- /** Two flagged nodes, with `annotation` placed as a comment-only line above the first. */
983
- function twoNodes(annotation: string): { code: number; rules: Set<string> } {
984
- return run(
985
- `export const C = () => (
986
- <div>
987
- ${annotation}
988
- <Card p="lg" />
989
- <Card p="lg" />
990
- </div>
991
- )\n`,
992
- )
993
- }
994
-
995
- const waivesFirstNodeOnly = (annotation: string) => {
996
- const { rules } = twoNodes(annotation)
997
- expect([annotation, rules.has('card-inset')]).toEqual([annotation, true])
998
- }
999
- const waivesWholeFile = (annotation: string) => {
1000
- const { rules } = twoNodes(annotation)
1001
- expect([annotation, rules.has('card-inset')]).toEqual([annotation, false])
1002
- }
1003
-
1004
- // ── ACCEPTED as a NODE waiver (the second node still reports) ──────────────
1005
-
1006
- it.each([
1007
- '{/* theme-allow */}',
1008
- '{/* theme-allow card-inset */}',
1009
- '{/* theme-allow card-inset — a reason */}',
1010
- '{/* theme-allow basalt/card-inset: a reason */}',
1011
- '{/* theme-allow card-inset, raw-hex — two ids */}',
1012
- '{/*theme-allow card-inset — no space after the opener*/}',
1013
- ])('%s waives its own node and leaves the rest policed', waivesFirstNodeOnly)
1014
-
1015
- // ── ACCEPTED as a FILE declaration (nothing in the file reports) ───────────
1016
-
1017
- it.each([
1018
- '{/* theme-allow-file card-inset — a reason */}',
1019
- '{/* theme-allow-file basalt/card-inset: a reason */}',
1020
- '{/* theme-allow-file card-inset */}',
1021
- '{/* theme-allow-file card-inset, raw-hex — two ids */}',
1022
- ])('%s declares the whole file', waivesWholeFile)
1023
-
1024
- it('a theme-allow-file inside a docblock, detached from any node, declares the file', () => {
1025
- const { code, rules } = run(
1026
- `/**
1027
- * A bespoke shape.
1028
- *
1029
- * theme-allow-file card-inset — the inset is dictated by a third-party embed
1030
- */
1031
- export const C = () => (
1032
- <div>
1033
- <Card p="lg" />
1034
- <Card p="lg" />
1035
- </div>
1036
- )\n`,
1037
- )
1038
- expect(code).toBe(0)
1039
- expect(rules).not.toContain('card-inset')
1040
- })
1041
-
1042
- // ── REJECTED — prose that merely MENTIONS the token (the linewatch defect) ─
1043
-
1044
- // The whole class: a file documenting its own waivers used to disarm itself. Every one of these
1045
- // parsed as the bare blanket form under the old `indexOf('theme-allow')` and silenced the node
1046
- // below it. All four are shapes taken from real consumer source.
1047
- it.each([
1048
- '{/* Since 1.20.0 a `theme-allow` that names a rule is a file declaration */}',
1049
- '{/* see the theme-allow contract for how this file is waived */}',
1050
- '{/* `theme-allow` with a reason declares the whole FILE wherever it is written */}',
1051
- '{/* each with a theme-allow saying why */}',
1052
- ])('%s is prose, not an annotation — it waives nothing', (annotation) => {
1053
- const { code, rules } = twoNodes(annotation)
1054
- expect([annotation, code]).toEqual([annotation, 1])
1055
- expect([annotation, rules.has('card-inset')]).toEqual([annotation, true])
1056
- })
1057
-
1058
- it('a prose docblock line mentioning theme-allow-file does not declare the file', () => {
1059
- const { rules } = twoNodes(
1060
- '{/* the shape to write here is a theme-allow-file card-inset — see the docs */}',
1061
- )
1062
- expect(rules).toContain('card-inset')
1063
- })
1064
-
1065
- // ── REJECTED — a longer word that merely STARTS with the token ─────────────
1066
-
1067
- // `theme-allow-unscoped` is a KIND NAME, written in prose constantly. It used to consume no id,
1068
- // fall through to the empty-`rules` branch, and read as a blanket waiver.
1069
- it('a comment starting with the kind name `theme-allow-unscoped` is not an annotation', () => {
1070
- const { rules } = twoNodes('{/* theme-allow-unscoped is what reports a bare waiver */}')
1071
- expect(rules).toContain('card-inset')
1072
- })
1073
-
1074
- // ── REJECTED — a bare file declaration, and a typo'd id ────────────────────
1075
-
1076
- it('a BARE theme-allow-file waives nothing — file scope must name its ids', () => {
1077
- const { code, rules } = twoNodes('{/* theme-allow-file — everything in here is bespoke */}')
1078
- expect(code).toBe(1)
1079
- expect(rules).toContain('card-inset')
1080
- })
1081
-
1082
- it("a theme-allow-file naming a typo'd id waives nothing", () => {
1083
- const { rules } = twoNodes('{/* theme-allow-file card-insett — a reason */}')
1084
- expect(rules).toContain('card-inset')
1085
- })
1086
-
1087
- it('a theme-allow-file scoped to a DIFFERENT rule does not waive this one', () => {
1088
- const { rules } = twoNodes('{/* theme-allow-file raw-hex — the swatch is a measured pixel */}')
1089
- expect(rules).toContain('card-inset')
1090
- })
1091
-
1092
- // ── REJECTED — the token inside a string literal, not a comment ────────────
1093
-
1094
- it('the token inside a string literal is code, not an annotation', () => {
1095
- const { rules } = twoNodes("{'theme-allow card-inset — a reason'}")
1096
- expect(rules).toContain('card-inset')
1097
- })
1098
- })
1099
-
1100
- // ── shadow-basalt-export ─────────────────────────────────────────────────────
1101
-
1102
- describe('basalt/shadow-basalt-export', () => {
1103
- it('flags a local component that collides with a basalt-ui root export', () => {
1104
- const { code, rules } = run(`export function EmptyState() { return null }\n`)
1105
- expect(code).toBe(1)
1106
- expect(rules).toContain('shadow-basalt-export')
1107
- })
1108
-
1109
- it('flags the arrow/const form too (rb shipped a local StatCard)', () => {
1110
- const { code, rules } = run(`const StatCard = () => null\nexport default StatCard\n`)
1111
- expect(code).toBe(1)
1112
- expect(rules).toContain('shadow-basalt-export')
1113
- })
1114
-
1115
- it('does NOT flag a name basalt does not export', () => {
1116
- const { code, rules } = run(`export function ExerciseSummaryCard() { return null }\n`)
1117
- expect(code).toBe(0)
1118
- expect(rules).not.toContain('shadow-basalt-export')
1119
- })
1120
-
1121
- // The rule read ONLY the root barrel, and `./charts` is deliberately not re-exported from it —
1122
- // so a consumer whose forks all live in the chart layer, which is the layer forks actually live
1123
- // in, could never trip it. Correctly silent, for the wrong reason.
1124
- it('sees the charts layer, not just the root barrel', () => {
1125
- const { code, rules } = run(`export function ChartCard() { return null }\n`)
1126
- expect(code).toBe(1)
1127
- expect(rules).toContain('shadow-basalt-export')
1128
- })
1129
-
1130
- it('sees the content layer too', () => {
1131
- const { rules } = run(`export function Callout() { return null }\n`)
1132
- expect(rules).toContain('shadow-basalt-export')
1133
- })
1134
-
1135
- // …but a barrel is not only basalt's own names. `./charts` re-exports `Bar`, `Line`, `Pie`,
1136
- // `AreaClosed` … straight from `@visx/shape`, and a local `Bar` is not a fork of anything basalt
1137
- // wrote. The playground's own demo tripped on it the moment the rule started reading that barrel.
1138
- it('does NOT flag a name the barrel merely re-exports from a third party', () => {
1139
- const { code, rules } = run(`export function Bar() { return null }\n`)
1140
- expect(code).toBe(0)
1141
- expect(rules).not.toContain('shadow-basalt-export')
1142
- })
1143
-
1144
- // A NAME collision is the whole of the signal, so renaming defeats the rule in one keystroke —
1145
- // linewatch's forks are `Cell` and `Box`, rb's is `Stat`, and all three are invisible here. That
1146
- // limit cannot be closed without intent analysis, so the rule STATES it rather than implying
1147
- // coverage it does not have.
1148
- it('a renamed fork is invisible, and the message says so rather than implying coverage', () => {
1149
- expect(run(`export function Stat() { return null }\n`).rules).not.toContain(
1150
- 'shadow-basalt-export',
1151
- )
1152
- const { output } = run(`export function EmptyState() { return null }\n`)
1153
- expect(output).toContain('tripwire, not coverage')
1154
- expect(output).toContain('Silence here is not evidence')
1155
- })
1156
-
1157
- // The export list is derived from the real barrel, so a TYPE export must not create a collision:
1158
- // a local `StatCardProps` is an ordinary thing for a consumer to declare.
1159
- it('does NOT flag a name that basalt exports only as a type', () => {
1160
- const { code, rules } = run(`export type StatCardProps = { label: string }\n`, 'types.ts')
1161
- expect(code).toBe(0)
1162
- expect(rules).not.toContain('shadow-basalt-export')
1163
- })
1164
-
1165
- it('is waivable with a scoped theme-allow', () => {
1166
- const { code, rules } = run(
1167
- `// theme-allow basalt/shadow-basalt-export — domain-specific, unrelated to the shipped one\nexport function EmptyState() { return null }\n`,
1168
- )
1169
- expect(code).toBe(0)
1170
- expect(rules).not.toContain('shadow-basalt-export')
1171
- })
1172
-
1173
- // The scoping fix, mirroring `ai-sdk-major`'s. obsidian's `packages/obsidian-vault-core` is
1174
- // React-free, carries no basalt-ui dependency, and sits outside the root's declared
1175
- // `basalt.roots` — so it CANNOT import the export it was told it had forked. The rule reported
1176
- // `SlugTracker` there anyway, because it was the one rule in this file that never asked.
1177
- it('does NOT flag a package that does not depend on basalt-ui at all', () => {
1178
- writeFileSync(resolve(dir, 'package.json'), JSON.stringify({ name: 'standalone' }))
1179
- const { code, rules } = run(`export function EmptyState() { return null }\n`)
1180
- expect(code).toBe(0)
1181
- expect(rules).not.toContain('shadow-basalt-export')
1182
- })
1183
-
1184
- it('does NOT flag a file outside a declared basalt.roots', () => {
1185
- writeFileSync(
1186
- resolve(dir, 'package.json'),
1187
- JSON.stringify({
1188
- basalt: { roots: ['packages/ui/src'] },
1189
- devDependencies: { 'basalt-ui': '^1.21.0' },
1190
- }),
1191
- )
1192
- expect(
1193
- run(`export function EmptyState() { return null }\n`, 'packages/core/src/a.tsx').rules,
1194
- ).not.toContain('shadow-basalt-export')
1195
- // …and the declared root is still policed, so the narrowing costs no real coverage.
1196
- expect(
1197
- run(`export function EmptyState() { return null }\n`, 'packages/ui/src/a.tsx').rules,
1198
- ).toContain('shadow-basalt-export')
1199
- })
1200
-
1201
- // The second half: a PascalCase name is not a component. The nine-barrel widening pulled every
1202
- // PascalCase value export into range, and a bare-PascalCase test then matched a plain data class
1203
- // (obsidian's `SlugTracker` — the same NAME basalt's `./content` exports, and nothing else).
1204
- it('does NOT flag a plain class that merely shares a name', () => {
1205
- const { code, rules } = run(`export class SlugTracker {}\n`, 'slug.ts')
1206
- expect(code).toBe(0)
1207
- expect(rules).not.toContain('shadow-basalt-export')
1208
- })
1209
-
1210
- it('DOES still flag a legacy class component (one that extends)', () => {
1211
- const { rules } = run(`export class EmptyState extends Component {}\n`)
1212
- expect(rules).toContain('shadow-basalt-export')
1213
- })
1214
-
1215
- it('does NOT flag a non-function binding that shares a name', () => {
1216
- const { code, rules } = run(`export const EmptyState = { label: 'none' }\n`, 'consts.ts')
1217
- expect(code).toBe(0)
1218
- expect(rules).not.toContain('shadow-basalt-export')
1219
- })
1220
-
1221
- it('DOES still flag a memo/forwardRef-wrapped component', () => {
1222
- expect(run(`export const EmptyState = memo(() => null)\n`).rules).toContain(
1223
- 'shadow-basalt-export',
1224
- )
1225
- expect(run(`export const EmptyState = React.forwardRef(() => null)\n`).rules).toContain(
1226
- 'shadow-basalt-export',
1227
- )
1228
- })
1229
- })
1230
-
1231
- // ── theme-allow shape grid (the plugin half of the annotation contract) ──────
1232
-
1233
- /**
1234
- * The plugin's copy of the grid pinned in `src/guard/check-source.test.ts`, row name for row name.
1235
- *
1236
- * Five holes in four rounds, twice because the two parsers disagreed about what an annotation IS —
1237
- * so the shapes are enumerated over the axes that vary (comment style × token position × where the
1238
- * closer falls × what follows), not collected as anecdotes. Every row here has a twin there; the
1239
- * guard-only dialects (CSS continuation lines, HTML, the JSON member form) have no twin because
1240
- * oxlint never parses those files.
1241
- *
1242
- * `no-raw-font-size` is the vehicle — a JSXAttribute rule, so the reported node's line is exactly
1243
- * the line an annotation has to reach.
1244
- */
1245
- /** Wraps JSX children in a component, so a `{/* … *\/}` child is legal source. */
1246
- const jsxShape = (body: string): string =>
1247
- `export const C = () => (\n <div>\n${body}\n </div>\n)\n`
1248
-
1249
- describe('theme-allow shape grid', () => {
1250
- const REASON = 'deliberate legacy value'
1251
- const A = `theme-allow no-raw-font-size — ${REASON}`
1252
- const AF = `theme-allow-file no-raw-font-size — ${REASON}`
1253
- const T = `<Text fz={10} />`
1254
- const J = jsxShape
1255
-
1256
- const waives = (source: string): boolean => !run(source).rules.has('no-raw-font-size')
1257
-
1258
- it.each([
1259
- ['// own line', `// ${A}\nexport const C = ${T}\n`],
1260
- ['// indented', `function f() {\n // ${A}\n return ${T}\n}\n`],
1261
- ['// no space after the marker', `//${A}\nexport const C = ${T}\n`],
1262
- ['// trailing', `export const C = ${T} // ${A}\n`],
1263
- [
1264
- '// reason wrapped onto a second // comment',
1265
- `// ${A},\n// continued here\nexport const C = ${T}\n`,
1266
- ],
1267
- ['/* */ own line', `/* ${A} */\nexport const C = ${T}\n`],
1268
- ['/* */ trailing', `export const C = ${T} /* ${A} */\n`],
1269
- ['/** */ own line (docblock opener)', `/** ${A} */\nexport const C = ${T}\n`],
1270
- ['/* opener + token, closer on its own line', `/* ${A}\n*/\nexport const C = ${T}\n`],
1271
- ['/* gutter token, closer on the token line', `/*\n ${A} */\nexport const C = ${T}\n`],
1272
- ['/* gutter token, closer on its own line', `/*\n ${A}\n*/\nexport const C = ${T}\n`],
1273
- ['/** star gutter, closer on the token line', `/**\n * ${A} */\nexport const C = ${T}\n`],
1274
- ['/** star gutter, closer on its own line', `/**\n * ${A}\n */\nexport const C = ${T}\n`],
1275
- ['/** token then 1 prose line', `/**\n * ${A}\n * more\n */\nexport const C = ${T}\n`],
1276
- [
1277
- '/** token then 12 prose lines',
1278
- `/**\n * ${A}\n${' * p\n'.repeat(12)} */\nexport const C = ${T}\n`,
1279
- ],
1280
- [
1281
- '/** prose first, token on a later gutter line',
1282
- `/**\n * some prose\n * ${A}\n */\nexport const C = ${T}\n`,
1283
- ],
1284
- ['{/* */} own line', J(` {/* ${A} */}\n ${T}`)],
1285
- ['{/* */} trailing on the target line', J(` ${T} {/* ${A} */}`)],
1286
- ['{/* opener + token, closer on its own line', J(` {/* ${A}\n */}\n ${T}`)],
1287
- ['{/* gutter token, closer on the token line', J(` {/*\n ${A} */}\n ${T}`)],
1288
- ['{/* gutter token, closer on its own line', J(` {/*\n ${A}\n */}\n ${T}`)],
1289
- ['{/** star gutter, closer on the token line', J(` {/**\n * ${A} */}\n ${T}`)],
1290
- ['{/** star gutter, closer on its own line', J(` {/**\n * ${A}\n */}\n ${T}`)],
1291
- [
1292
- '{/** token then 6 prose lines',
1293
- J(` {/**\n * ${A}\n${' * p\n'.repeat(6)} */}\n ${T}`),
1294
- ],
1295
- ['{/* target on the closer line', J(` {/*\n ${A}\n */}${T}`)],
1296
- ['{/* closer alone, tab indented', J(`\t{/*\n\t ${A}\n\t*/}\n\t${T}`)],
1297
- ['{/* closer alone, space between */ and }', J(` {/*\n ${A}\n */ }\n ${T}`)],
1298
- [
1299
- '{/* closer alone, two annotations in one block',
1300
- J(` {/*\n ${A}\n theme-allow card-inset — ${REASON}\n */}\n ${T}`),
1301
- ],
1302
- [
1303
- '/** */ then an unrelated // note',
1304
- `/** ${A} */\n// an unrelated note\nexport const C = ${T}\n`,
1305
- ],
1306
- ['{/* */} then an unrelated {/* */}', J(` {/* ${A} */}\n {/* unrelated */}\n ${T}`)],
1307
- ['theme-allow-file, {/* closer on its own line', J(` {/*\n ${AF}\n */}\n ${T}`)],
1308
- ['theme-allow-file, /** star gutter', `/**\n * ${AF}\n */\nexport const C = ${T}\n`],
1309
- ])('%s waives', (_name, source) => {
1310
- expect(waives(source as string)).toBe(true)
1311
- })
1312
-
1313
- // ── UNSUPPORTED — asserted, so a hole can never pass for a design decision ──
1314
- it.each([
1315
- ['blank line after a // annotation', `// ${A}\n\nexport const C = ${T}\n`],
1316
- ['blank line after a {/* */} annotation', J(` {/* ${A} */}\n\n ${T}`)],
1317
- [
1318
- 'blank line after a {/* closer on its own line',
1319
- J(` {/*\n ${A}\n */}\n\n ${T}`),
1320
- ],
1321
- ['mid-sentence in a line comment', `// we normally write a ${A} here\nexport const C = ${T}\n`],
1322
- [
1323
- 'mid-sentence in a docblock gutter',
1324
- `/**\n * Each value is escaped with a ${A} annotation.\n */\nexport const C = ${T}\n`,
1325
- ],
1326
- [
1327
- 'mid-sentence in a JSX expression comment',
1328
- J(` {/* the shape here is a ${A} comment */}\n ${T}`),
1329
- ],
1330
- [
1331
- 'inside a string literal',
1332
- `const doc = 'theme-allow no-raw-font-size'\nexport const C = ${T}\n`,
1333
- ],
1334
- ['above a multi-line opening tag', J(` {/* ${A} */}\n <Text\n fz={10}\n />`)],
1335
- ])('%s does NOT waive', (_name, source) => {
1336
- expect(waives(source as string)).toBe(false)
1337
- })
1338
- })
1339
-
1340
- // ── hand-rolled-shell ────────────────────────────────────────────────────────
1341
-
1342
- describe('basalt/hand-rolled-shell', () => {
1343
- it('flags a hand-assembled Mantine AppShell', () => {
1344
- const { code, rules } = run(
1345
- `import { AppShell, Burger } from '@mantine/core'
1346
- export const Shell = () => (
1347
- <AppShell>
1348
- <AppShell.Header><Burger opened={false} /></AppShell.Header>
1349
- <AppShell.Navbar>nav</AppShell.Navbar>
1350
- </AppShell>
1351
- )\n`,
1352
- )
1353
- expect(code).toBe(1)
1354
- expect(rules).toContain('hand-rolled-shell')
1355
- })
1356
-
1357
- it('does NOT flag a file that renders BasaltShell', () => {
1358
- const { code, rules } = run(
1359
- `import { AppShell } from '@mantine/core'
1360
- import { BasaltShell } from 'basalt-ui'
1361
- export const Shell = () => <BasaltShell sections={[]}><AppShell.Main>x</AppShell.Main></BasaltShell>\n`,
1362
- )
1363
- expect(code).toBe(0)
1364
- expect(rules).not.toContain('hand-rolled-shell')
1365
- })
1366
-
1367
- // Exempt by DECLARATION, not by path — a rule saying "compose X" cannot fire inside X. (The
1368
- // fixture also trips `shadow-basalt-export`, which is correct for a consumer file and irrelevant
1369
- // here, so this asserts the rule set rather than the exit code.)
1370
- it('does NOT flag the module that DEFINES BasaltShell', () => {
1371
- const { rules } = run(
1372
- `import { AppShell } from '@mantine/core'
1373
- export function BasaltShell() { return <AppShell.Navbar>nav</AppShell.Navbar> }\n`,
1374
- )
1375
- expect(rules).not.toContain('hand-rolled-shell')
1376
- })
1377
-
1378
- it("does NOT flag a consumer's own AppShell-named component with no @mantine import", () => {
1379
- const { code, rules } = run(
1380
- `import { AppShell } from './my-layout'
1381
- export const C = () => <AppShell.Navbar>nav</AppShell.Navbar>\n`,
1382
- )
1383
- expect(code).toBe(0)
1384
- expect(rules).not.toContain('hand-rolled-shell')
1385
- })
1386
-
1387
- it('does NOT flag a standalone Mantine NavLink (deliberately not a trigger)', () => {
1388
- const { code, rules } = run(
1389
- `import { NavLink } from '@mantine/core'
1390
- export const C = () => <NavLink label="Settings" />\n`,
1391
- )
1392
- expect(code).toBe(0)
1393
- expect(rules).not.toContain('hand-rolled-shell')
1394
- })
1395
- })
1396
-
1397
- // ── grace ledger ↔ shipped preset ────────────────────────────────────────────
1398
-
1399
- type GraceEntry = { since: string; promote: string; why: string }
1400
-
1401
- /**
1402
- * Tiny local semver compare — no dependency. Assumes plain `x.y.z`, no pre-release identifiers.
1403
- * Compares each component numerically, not lexically, so `'1.9.0' < '1.10.0'` and
1404
- * `'1.3.0' < '1.26.0'` — a string compare would get both backwards.
1405
- */
1406
- function compareSemver(a: string, b: string): number {
1407
- const partsA = a.split('.').map(Number)
1408
- const partsB = b.split('.').map(Number)
1409
- for (let i = 0; i < 3; i++) {
1410
- const diff = (partsA[i] ?? 0) - (partsB[i] ?? 0)
1411
- if (diff !== 0) return diff > 0 ? 1 : -1
1412
- }
1413
- return 0
1414
- }
1415
-
1416
- /**
1417
- * The C16 gate itself (docs/CONTROLS-SPEC.md §1), extracted so it can be exercised against a
1418
- * synthetic ledger as well as the real `PLUGIN_RULE_GRACE` — an `it.each` over the real ledger ran
1419
- * zero assertions while it was empty, which proved nothing about the gate actually firing. Throws
1420
- * naming the first offending entry when either invariant breaks: `since` must precede `promote`
1421
- * for every entry, and no entry's `promote` may be `<=` the given version.
1422
- *
1423
- * `version` is `package.json`'s, i.e. the version already published, so this half can only fail
1424
- * AFTER the release that shipped a due entry — `release.yml` runs no tests and the
1425
- * `chore: release … [skip ci]` commit skips CI. The pre-release half is
1426
- * `scripts/check-grace.ts`, run by `scripts/release.sh` against the version the dry run computed.
1427
- */
1428
- function assertGraceLedger(ledger: Record<string, GraceEntry>, version: string): void {
1429
- for (const [id, entry] of Object.entries(ledger)) {
1430
- if (compareSemver(entry.since, entry.promote) >= 0) {
1431
- throw new Error(
1432
- `${id}: \`since\` (${entry.since}) must be before \`promote\` (${entry.promote}).`,
1433
- )
1434
- }
1435
- if (compareSemver(version, entry.promote) >= 0) {
1436
- throw new Error(
1437
- `basalt/${id}: shipped preset is at ${version}, which has reached its promote version ` +
1438
- `${entry.promote} — promote to error or extend \`promote\` with a reason.`,
1439
- )
1440
- }
1441
- }
1442
- }
1443
-
1444
- describe('compareSemver', () => {
1445
- it('orders multi-digit components numerically, not lexically', () => {
1446
- expect(compareSemver('1.9.0', '1.10.0')).toBeLessThan(0)
1447
- expect(compareSemver('1.10.0', '1.9.0')).toBeGreaterThan(0)
1448
- expect(compareSemver('1.3.0', '1.26.0')).toBeLessThan(0)
1449
- expect(compareSemver('1.26.0', '1.3.0')).toBeGreaterThan(0)
1450
- })
1451
-
1452
- it('treats equal versions as equal', () => {
1453
- expect(compareSemver('1.25.0', '1.25.0')).toBe(0)
1454
- })
1455
- })
1456
-
1457
- describe('assertGraceLedger', () => {
1458
- it('does not throw on a well-formed entry not yet due', () => {
1459
- const ledger = { 'fake-rule': { since: '1.0.0', promote: '2.0.0', why: 'synthetic' } }
1460
- expect(() => assertGraceLedger(ledger, '1.25.0')).not.toThrow()
1461
- })
1462
-
1463
- it('throws once the given version reaches promote', () => {
1464
- const ledger = { 'fake-rule': { since: '1.0.0', promote: '1.25.0', why: 'synthetic' } }
1465
- expect(() => assertGraceLedger(ledger, '1.25.0')).toThrow(/fake-rule/)
1466
- })
1467
-
1468
- it('throws once the given version is past promote', () => {
1469
- const ledger = { 'fake-rule': { since: '1.0.0', promote: '1.9.0', why: 'synthetic' } }
1470
- expect(() => assertGraceLedger(ledger, '1.10.0')).toThrow(/fake-rule/)
1471
- })
1472
-
1473
- it('throws when since does not precede promote', () => {
1474
- const ledger = { 'fake-rule': { since: '1.5.0', promote: '1.5.0', why: 'synthetic' } }
1475
- expect(() => assertGraceLedger(ledger, '1.0.0')).toThrow(/since/)
1476
- })
1477
- })
1478
-
1479
- // ── twin lanes: one law, two lanes, one promotion ─────────────────────────────
1480
- // A guard kind and a plugin rule that enforce ONE law in two lanes (CSS/text vs. JSX AST) must
1481
- // promote together — a consumer failing one spelling and warned on the other is the confusion the
1482
- // pairing exists to prevent. `raw-media-query` split from `basalt/raw-breakpoint` exactly that way
1483
- // (1.32.0 vs 1.33.0). Twins are DERIVED from declarations that outlive the grace window: a
1484
- // `WAIVER_ID_ALIASES` pair, and a guard kind whose registry message names its `basalt/<id>` twin.
1485
- // (Deriving them from the ledger, as this did until 1.33.0, went vacuous the moment the last pair
1486
- // promoted.)
1487
-
1488
- const pluginGrace = PLUGIN_RULE_GRACE as Record<string, GraceEntry>
1489
- const guardGrace = GRACE_PERIOD_KINDS as Record<string, GraceEntry>
1490
-
1491
- /** A guard message that NAMES a plugin rule in its remedy without being that rule's twin. */
1492
- const REFERRALS = new Set(['card-with-border:card-inset'])
1493
-
1494
- function twinLanes(): Array<[kind: string, rule: string]> {
1495
- const pairs = new Map<string, string>()
1496
- for (const [kind, aliases] of Object.entries(WAIVER_ID_ALIASES)) {
1497
- if (!Object.hasOwn(GUARD_RULES, kind)) continue
1498
- for (const rule of aliases) pairs.set(kind, rule)
1499
- }
1500
- for (const [kind, rule] of Object.entries(GUARD_RULES)) {
1501
- for (const m of rule.message.matchAll(/basalt\/([a-z-]+)/g)) {
1502
- if (REFERRALS.has(`${kind}:${m[1]}`)) continue
1503
- if (m[1] !== undefined && m[1] in basaltPlugin.rules) pairs.set(kind, m[1])
1504
- }
1505
- }
1506
- return [...pairs]
1507
- }
1508
-
1509
- describe('twin lanes share one promotion', () => {
1510
- it('derives the known pairs (the derivation is not silently empty)', () => {
1511
- expect(twinLanes()).toContainEqual(['raw-media-query', 'raw-breakpoint'])
1512
- expect(twinLanes()).toContainEqual(['raw-selection-control', 'control-outside-home'])
1513
- })
1514
-
1515
- it.each(twinLanes())('%s and basalt/%s share one grace state and promote', (kind, rule) => {
1516
- expect([kind, rule, guardGrace[kind]?.promote]).toEqual([
1517
- kind,
1518
- rule,
1519
- pluginGrace[rule]?.promote,
1520
- ])
1521
- })
1522
- })
1523
-
1524
- describe('PLUGIN_RULE_GRACE', () => {
1525
- const shipped = JSON.parse(
1526
- readFileSync(resolve(import.meta.dirname, 'oxlint-basalt.json'), 'utf8'),
1527
- ) as {
1528
- rules: Record<string, unknown>
1529
- }
1530
- const pkgVersion = (
1531
- JSON.parse(readFileSync(resolve(import.meta.dirname, '..', 'package.json'), 'utf8')) as {
1532
- version: string
1533
- }
1534
- ).version
1535
- const graceEntries = Object.entries(PLUGIN_RULE_GRACE) as [string, GraceEntry][]
1536
- const graceIds = graceEntries.map(([id]) => id)
1537
- const shippedBasaltIds = Object.keys(shipped.rules).filter((id) => id.startsWith('basalt/'))
1538
-
1539
- // Empty since 2.26.0 (`card-inset`, the last tenant, promoted). The per-entry tests below run
1540
- // zero assertions on an empty ledger; the gate itself is proven on synthetic ledgers above.
1541
- it('the ledger is empty (card-inset, its last tenant, promoted at 2.26.0)', () => {
1542
- expect(graceIds).toEqual([])
1543
- })
1544
-
1545
- // The mechanism whose ABSENCE let three rules sit at `warn` for up to twelve minors with nothing
1546
- // tracking them. Deleting a ledger entry IS the promotion, and this test makes flipping the
1547
- // shipped level part of the same commit.
1548
- it('every grace entry is warn in the shipped preset', () => {
1549
- for (const id of graceIds) expect(shipped.rules[`basalt/${id}`]).toBe('warn')
1550
- })
1551
-
1552
- it('every shipped rule NOT in the ledger is error', () => {
1553
- for (const id of shippedBasaltIds) {
1554
- const bareId = id.slice('basalt/'.length)
1555
- if (graceIds.includes(bareId)) continue
1556
- expect([id, shipped.rules[id]]).toEqual([id, 'error'])
1557
- }
1558
- })
1559
-
1560
- it('every entry carries a written why', () => {
1561
- for (const [id, entry] of graceEntries) {
1562
- if (entry.why.length <= 40)
1563
- throw new Error(`${id}: \`why\` must be longer than 40 characters.`)
1564
- expect(entry.why.length).toBeGreaterThan(40)
1565
- }
1566
- })
1567
-
1568
- // The C16 version gate, run against the REAL ledger and REAL package version — covers `since` <
1569
- // `promote` and "no entry has reached its promote version" in one call.
1570
- // (see `assertGraceLedger`'s synthetic coverage above for the gate itself).
1571
- it('passes the C16 gate against the real ledger and package version', () => {
1572
- expect(() => assertGraceLedger(Object.fromEntries(graceEntries), pkgVersion)).not.toThrow()
1573
- })
1574
-
1575
- // F27: a grace entry is written for a rule that lands in the NEXT release, so its `since` can sit
1576
- // one minor ahead of `package.json`'s current version (`bound-control-outside-home` at 1.28.0
1577
- // while the published version still reads 1.27.0, exactly like `control-outside-home` before it).
1578
- // What this catches is a `since` that is malformed or planted further out than that — a value
1579
- // static analysis has no way to verify is "the version this actually ships in", so the bound this
1580
- // test enforces is the one thing that IS checkable: well-formed semver, no more than one minor
1581
- // past what is currently published.
1582
- it("every grace entry's since is valid semver, at most one minor past the published version", () => {
1583
- const SEMVER = /^\d+\.\d+\.\d+$/
1584
- const [major, minor] = pkgVersion.split('.').map(Number)
1585
- const nextMinorCeiling = `${major}.${minor + 1}.0`
1586
- for (const [id, entry] of graceEntries) {
1587
- if (!SEMVER.test(entry.since)) {
1588
- throw new Error(`${id}: \`since\` (${entry.since}) is not valid semver.`)
1589
- }
1590
- if (compareSemver(entry.since, nextMinorCeiling) > 0) {
1591
- throw new Error(
1592
- `${id}: \`since\` (${entry.since}) is more than one minor past the published version ` +
1593
- `${pkgVersion}.`,
1594
- )
1595
- }
1596
- }
1597
- })
1598
- })
1599
-
1600
- // ── no-raw-font-size: style-context scoping ──────────────────────────────────
1601
-
1602
- describe('basalt/no-raw-font-size — style context', () => {
1603
- it('flags a fontSize inside a style attribute', () => {
1604
- const { code, rules } = run(`export const C = () => <div style={{ fontSize: 11 }} />\n`)
1605
- expect(code).toBe(1)
1606
- expect(rules).toContain('no-raw-font-size')
1607
- })
1608
-
1609
- it('flags a fontSize inside a Mantine styles per-part object', () => {
1610
- const { code, rules } = run(
1611
- `export const C = () => <TextInput styles={{ input: { fontSize: 12 } }} />\n`,
1612
- )
1613
- expect(code).toBe(1)
1614
- expect(rules).toContain('no-raw-font-size')
1615
- })
1616
-
1617
- it('flags a fontSize in a CSSProperties-annotated const', () => {
1618
- const { code, rules } = run(
1619
- `import type { CSSProperties } from 'react'\nconst rowLook: CSSProperties = { fontSize: 11 }\nexport { rowLook }\n`,
1620
- 'look.ts',
1621
- )
1622
- expect(code).toBe(1)
1623
- expect(rules).toContain('no-raw-font-size')
1624
- })
1625
-
1626
- // The obsidian false positive: a `fontSize` key in a plain data object, in a package with no
1627
- // React and no Mantine, where "route it through VX.text.*" is advice about another domain.
1628
- it('does NOT flag a fontSize key in a plain data object', () => {
1629
- const { code, rules } = run(
1630
- `export const iconizeData = { settings: { fontSize: 16 }, Inbox: 'LiInbox' }\n`,
1631
- 'data.ts',
1632
- )
1633
- expect(code).toBe(0)
1634
- expect(rules).not.toContain('no-raw-font-size')
1635
- })
1636
-
1637
- it('does NOT run in a test file at all', () => {
1638
- const { code, rules } = run(
1639
- `export const C = () => <div style={{ fontSize: 11 }} />\n`,
1640
- 'nav-config.test.tsx',
1641
- )
1642
- expect(code).toBe(0)
1643
- expect(rules).not.toContain('no-raw-font-size')
1644
- })
1645
- })
1646
-
1647
- // ── KNOWN_RULE_IDS — the hand-maintained list a typo'd theme-allow is measured against ──────────
1648
-
1649
- describe('KNOWN_RULE_IDS', () => {
1650
- // Forgetting an entry is not cosmetic: an id this set does not know is treated as a typo, so the
1651
- // annotation naming it waives nothing. Before the fail-closed fix it was worse — an unknown id
1652
- // fell through to the empty-`rules` branch and became a BLANKET waiver, which is how a
1653
- // hand-maintained duplicate turned a missing entry into a hole in the guard.
1654
- it('contains every rule the plugin actually exports', () => {
1655
- for (const id of Object.keys(basaltPlugin.rules)) {
1656
- expect([id, KNOWN_RULE_IDS.has(id)]).toEqual([id, true])
1657
- }
1658
- })
1659
-
1660
- it('contains every guard kind', () => {
1661
- for (const kind of Object.keys(GUARD_RULES)) {
1662
- expect([kind, KNOWN_RULE_IDS.has(kind)]).toEqual([kind, true])
1663
- }
1664
- })
1665
-
1666
- // Deduped, because ONE id is deliberately in both registries: `in-body-page-title` is a plugin
1667
- // rule AND a guard kind (law C8 has an AST half and a text half), so one `theme-allow
1668
- // in-body-page-title — <why>` waives both lanes rather than needing a different word per lane.
1669
- // `RETIRED_RULE_IDS` adds a third component: an id that used to be a guard kind or a plugin
1670
- // rule, is in neither live registry, and must still parse as a (dead) waiver rather than a typo.
1671
- it('contains nothing else — it is exactly the union of the two registries plus retired ids', () => {
1672
- const expected = [
1673
- ...new Set([
1674
- ...Object.keys(basaltPlugin.rules),
1675
- ...Object.keys(GUARD_RULES),
1676
- ...RETIRED_RULE_IDS,
1677
- ]),
1678
- ].toSorted()
1679
- expect([...KNOWN_RULE_IDS].toSorted()).toEqual(expected)
1680
- })
1681
-
1682
- it('shares exactly one id between the two registries — the C8 pair', () => {
1683
- const shared = Object.keys(basaltPlugin.rules).filter((id) => Object.hasOwn(GUARD_RULES, id))
1684
- expect(shared).toEqual(['in-body-page-title'])
1685
- })
1686
-
1687
- // The guard's own copy (`PLUGIN_RULE_IDS`) is what `check-theme --audit-allows` classifies an
1688
- // annotation against: an id in neither registry reads as a typo and is reported unscoped. A new
1689
- // plugin rule missing from it would make every waiver naming it look like a mistake.
1690
- it('every plugin rule is classifiable by the guard — its own id set or a guard kind', () => {
1691
- for (const id of Object.keys(basaltPlugin.rules)) {
1692
- expect([id, PLUGIN_RULE_IDS.has(id) || Object.hasOwn(GUARD_RULES, id)]).toEqual([id, true])
1693
- }
1694
- })
1695
-
1696
- // A retired id has to be classifiable too, on both sides — `RETIRED_RULE_IDS` is this plugin's
1697
- // copy, `PLUGIN_RULE_IDS` (src/guard) is the guard's. Drift between them would mean
1698
- // `--audit-allows` classifies a retired id one way from `check-theme` and another from oxlint.
1699
- it('every retired id is in the guard’s PLUGIN_RULE_IDS too', () => {
1700
- for (const id of RETIRED_RULE_IDS) {
1701
- expect([id, PLUGIN_RULE_IDS.has(id)]).toEqual([id, true])
1702
- }
1703
- })
1704
- })
1705
-
1706
- // ── one law, two rule ids ──────────────────────────────────────────────────────────────────────
1707
-
1708
- /**
1709
- * `basalt/control-outside-home` and the guard's `raw-selection-control` are the SAME law read by
1710
- * two engines — the guard's own message says so — and a waiver naming either used to silence only
1711
- * the lane whose id it spelled. The working annotation was `theme-allow raw-selection-control
1712
- * control-outside-home`: two ids, undocumented, one silent debug cycle per consumer.
1713
- */
1714
- describe('WAIVER_ID_ALIASES', () => {
1715
- it('is identical in both lanes', () => {
1716
- expect(WAIVER_ID_ALIASES).toEqual(GUARD_WAIVER_ID_ALIASES)
1717
- })
1718
-
1719
- it('names only ids both registries know', () => {
1720
- for (const [id, aliases] of Object.entries(WAIVER_ID_ALIASES)) {
1721
- expect([id, KNOWN_RULE_IDS.has(id)]).toEqual([id, true])
1722
- for (const alias of aliases) expect([alias, KNOWN_RULE_IDS.has(alias)]).toEqual([alias, true])
1723
- }
1724
- })
1725
-
1726
- it('waives the plugin rule under the TEXT lane’s id', () => {
1727
- const { code, rules } = run(
1728
- `import { Select } from '@mantine/core'\nexport const C = () => (\n <div>\n` +
1729
- ` {/* theme-allow raw-selection-control — the Tauri header has no shell */}\n` +
1730
- ` <Select data={[]} />\n </div>\n)\n`,
1731
- )
1732
- expect(code).toBe(0)
1733
- expect(rules).not.toContain('control-outside-home')
1734
- })
1735
- })
1736
-
1737
- // ── theme-allow fails closed on a typo ─────────────────────────────────────────────────────────
1738
-
1739
- describe('theme-allow with an unrecognized rule id', () => {
1740
- it('waives nothing rather than escalating to a blanket suppression', () => {
1741
- // `no-raw-font-size` would be waived by a bare `theme-allow`. A typo'd id must not do that.
1742
- const { code, rules } = run(
1743
- `export const C = () => <Text fz={10} /> // theme-allow no-raw-font-sizee — legacy\n`,
1744
- )
1745
- expect(code).toBe(1)
1746
- expect(rules).toContain('no-raw-font-size')
1747
- })
1748
-
1749
- it('a correctly spelled id still waives', () => {
1750
- const { code, rules } = run(
1751
- `export const C = () => <Text fz={10} /> // theme-allow no-raw-font-size — legacy\n`,
1752
- )
1753
- expect(rules).not.toContain('no-raw-font-size')
1754
- expect(code).toBe(0)
1755
- })
1756
-
1757
- it('a bare theme-allow waives nothing', () => {
1758
- const { code, rules } = run(`export const C = () => <Text fz={10} /> // theme-allow\n`)
1759
- expect(code).toBe(1)
1760
- expect(rules).toContain('no-raw-font-size')
1761
- })
1762
-
1763
- it('a prose-only annotation (no rule id) waives nothing', () => {
1764
- const { code, rules } = run(
1765
- `export const C = () => <Text fz={10} /> // theme-allow: legacy widget\n`,
1766
- )
1767
- expect(code).toBe(1)
1768
- expect(rules).toContain('no-raw-font-size')
1769
- })
1770
-
1771
- it('does not resolve an Object.prototype key as a rule id', () => {
1772
- const { code, rules } = run(
1773
- `export const C = () => <Text fz={10} /> // theme-allow constructor — inherited key\n`,
1774
- )
1775
- expect(code).toBe(1)
1776
- expect(rules).toContain('no-raw-font-size')
1777
- })
1778
-
1779
- // The id slot closes at the first space no comma opened — mirrors `parseAllowAnnotation`.
1780
- it('reads an unknown word after a resolved id as the reason, not as a second id', () => {
1781
- const { code, rules } = run(
1782
- `export const C = () => <Text fz={10} /> // theme-allow no-raw-font-size sub-scale micro label\n`,
1783
- )
1784
- expect(rules).not.toContain('no-raw-font-size')
1785
- expect(code).toBe(0)
1786
- })
1787
- })
1788
-
1789
- // ── the control-home rules (docs/CONTROLS-SPEC.md §6) ────────────────────────
1790
-
1791
- const MANTINE_IMPORT = `import { Button, ScrollArea, SegmentedControl, Select } from '@mantine/core'\n`
1792
-
1793
- /**
1794
- * The home components, imported from basalt — the OWNER-tag provenance every slot rule now requires.
1795
- *
1796
- * Not decoration: `Section` is one of the most common local component names there is, and matching
1797
- * the bare tag made a consumer's own `<Section actions={…}>` an `error`-level tiered home. A fixture
1798
- * that renders `<PageBar>` out of thin air proves nothing a real consumer file would hit, so the
1799
- * fixtures import what they render.
1800
- */
1801
- const BASALT_IMPORT = `import { ChartCard, PageBar, Section, SettingsSection } from 'basalt-ui'\n`
1802
-
1803
- describe('basalt/hand-rolled-filter', () => {
1804
- /**
1805
- * The deliberate consequence of teaching the slot resolver to read an object spread: a slot IS a
1806
- * slot in either spelling, so a raw Mantine control conditionally spread into one moves from
1807
- * `control-outside-home` (warn, and the WRONG verdict — it does have a home) to this rule
1808
- * (error, and the right one). One home model or none; a spread that is a home for the rule that
1809
- * exempts and not for the rule that polices is the silent half-application this wave removes.
1810
- */
1811
- it('flags a raw Select handed to a slot written as an object spread', () => {
1812
- const { code, rules } = run(
1813
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = ({ cond }) => (\n` +
1814
- ` <Section {...(cond && { filters: <Select data={[]} /> })}>body</Section>\n)\n`,
1815
- )
1816
- expect(code).toBe(1)
1817
- expect(rules).toContain('hand-rolled-filter')
1818
- expect(rules).not.toContain('control-outside-home')
1819
- })
1820
-
1821
- it('flags a raw Mantine Select handed to a PageBar filters slot', () => {
1822
- const { code, rules } = run(
1823
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <PageBar filters={<Select data={[]} />} />\n`,
1824
- )
1825
- expect(code).toBe(1)
1826
- expect(rules).toContain('hand-rolled-filter')
1827
- })
1828
-
1829
- it('flags it through a hoisted binding — the argo headerExtra shape', () => {
1830
- const { code, rules } = run(
1831
- `${BASALT_IMPORT}${MANTINE_IMPORT}const pills = <Select data={[]} />\n` +
1832
- `export const C = () => <PageBar filters={pills} />\n`,
1833
- )
1834
- expect(code).toBe(1)
1835
- expect(rules).toContain('hand-rolled-filter')
1836
- })
1837
-
1838
- it('flags one inside an ARRAY slot value (filtersEnd={[…]})', () => {
1839
- const { rules } = run(
1840
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <PageBar filtersEnd={[<Select key="a" data={[]} />]} />\n`,
1841
- )
1842
- expect(rules).toContain('hand-rolled-filter')
1843
- })
1844
-
1845
- // The body form is the whole reason the walk stops at the slot ATTRIBUTE: a Section's children
1846
- // are a page region, not a control home, and a form there is C1's third home.
1847
- // `control-outside-home` DOES report this one (a Section body is not a home either) — which is
1848
- // the point of the split: the body form is a warn about placement, never an error about the slot.
1849
- it("does NOT flag a Select in a Section's CHILDREN — the body form", () => {
1850
- const { rules } = run(
1851
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => (\n <Section title="Filters">\n <Select data={[]} />\n </Section>\n)\n`,
1852
- )
1853
- expect(rules).not.toContain('hand-rolled-filter')
1854
- })
1855
-
1856
- it("does NOT flag a slot prop on a tag that is not a home (a consumer's own Toolbar)", () => {
1857
- const { rules } = run(
1858
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <Toolbar filters={<Select data={[]} />} />\n`,
1859
- )
1860
- expect(rules).not.toContain('hand-rolled-filter')
1861
- })
1862
-
1863
- it('does NOT flag a same-named component that is not the Mantine binding', () => {
1864
- const { code, rules } = run(
1865
- `${BASALT_IMPORT}import { Select } from './my-select'\nexport const C = () => <PageBar filters={<Select data={[]} />} />\n`,
1866
- )
1867
- expect(code).toBe(0)
1868
- expect(rules).not.toContain('hand-rolled-filter')
1869
- })
1870
-
1871
- it('does NOT flag a bound basalt control in the same slot', () => {
1872
- const { code, rules } = run(
1873
- `${BASALT_IMPORT}export const C = () => <PageBar filters={<RangeFilter field={f} />} />\n`,
1874
- )
1875
- expect(code).toBe(0)
1876
- expect(rules).not.toContain('hand-rolled-filter')
1877
- })
1878
-
1879
- // The settled reading of law C1's THIRD home (docs/CONTROLS-SPEC.md §5/§6): a form row is not a
1880
- // chrome slot, so a raw input bound to a setting is right there (it mounts its own `CtlSlot` since
1881
- // Wave 46, and a `size` on the control is the opt-out) — `control` / `SettingsRow` are absent from
1882
- // the slot set for exactly that reason.
1883
- it("does NOT flag a raw Select in a SettingsRow's control — the form-row home", () => {
1884
- const { code, rules } = run(
1885
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => (\n <SettingsSection title="S">\n <SettingsRow label="Channel" control={<Select data={[]} />} />\n </SettingsSection>\n)\n`,
1886
- )
1887
- expect(code).toBe(0)
1888
- expect(rules).not.toContain('hand-rolled-filter')
1889
- expect(rules).not.toContain('control-outside-home')
1890
- })
1891
-
1892
- it("still flags one in a SettingsSection's actions header slot — that IS tiered", () => {
1893
- const { rules } = run(
1894
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <SettingsSection title="S" actions={<Select data={[]} />} />\n`,
1895
- )
1896
- expect(rules).toContain('hand-rolled-filter')
1897
- })
1898
-
1899
- it('flags a member tag whose ROOT binding is Mantine (Chip.Group)', () => {
1900
- const { rules } = run(
1901
- `${BASALT_IMPORT}import { Chip } from '@mantine/core'\nexport const C = () => <PageBar filters={<Chip.Group multiple />} />\n`,
1902
- )
1903
- expect(rules).toContain('hand-rolled-filter')
1904
- })
1905
-
1906
- it('honors a scoped theme-allow', () => {
1907
- const { rules } = run(
1908
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => (\n <PageBar\n filters={\n // theme-allow hand-rolled-filter — not a store field\n <Select data={[]} />\n }\n />\n)\n`,
1909
- )
1910
- expect(rules).not.toContain('hand-rolled-filter')
1911
- })
1912
-
1913
- it('honors a theme-allow-file declaration', () => {
1914
- const { rules } = run(
1915
- `// theme-allow-file hand-rolled-filter — a legacy page, migrating next sprint\n` +
1916
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <PageBar filters={<Select data={[]} />} />\n`,
1917
- )
1918
- expect(rules).not.toContain('hand-rolled-filter')
1919
- })
1920
-
1921
- // Colocating a trigger with its overlay in the slot is how a "create" modal and a "custom range"
1922
- // popover are written. The overlay's contents portal out of the slot and are already declared
1923
- // non-homes by `control-outside-home`, so the same code was exempt outside a slot and an `error`
1924
- // inside one.
1925
- it('does NOT flag a Select inside a Modal colocated in an actions slot', () => {
1926
- const { code, rules } = run(
1927
- `${BASALT_IMPORT}import { Button, Modal, Select } from '@mantine/core'\n` +
1928
- `export const C = () => (\n <WidgetHeader\n actions={\n <>\n <Button onClick={open}>New</Button>\n <Modal opened>\n <Select data={[]} />\n </Modal>\n </>\n }\n />\n)\n`,
1929
- )
1930
- expect(code).toBe(0)
1931
- expect(rules).not.toContain('hand-rolled-filter')
1932
- })
1933
-
1934
- it('does NOT flag one inside a Popover.Dropdown colocated in a filters slot', () => {
1935
- const { rules } = run(
1936
- `${BASALT_IMPORT}import { Button, Popover, Select } from '@mantine/core'\n` +
1937
- `export const C = () => (\n <Section\n title="T"\n filters={\n <Popover>\n <Popover.Target>\n <Button>Custom range</Button>\n </Popover.Target>\n <Popover.Dropdown>\n <Select data={[]} />\n </Popover.Dropdown>\n </Popover>\n }\n />\n)\n`,
1938
- )
1939
- expect(rules).not.toContain('hand-rolled-filter')
1940
- })
1941
-
1942
- it('STILL flags a bare sibling Select in the same slot as an exempt overlay', () => {
1943
- const { rules } = run(
1944
- `${BASALT_IMPORT}import { Modal, Select } from '@mantine/core'\n` +
1945
- `export const C = () => (\n <PageBar\n filters={\n <>\n <Select data={[]} />\n <Modal opened>\n <Select data={[]} />\n </Modal>\n </>\n }\n />\n)\n`,
1946
- )
1947
- expect(rules).toContain('hand-rolled-filter')
1948
- })
1949
-
1950
- // `Select as MantineSelect` is the canonical way a consumer wraps a Mantine component — the exact
1951
- // case the provenance comment worried about — and keying membership on the LOCAL name made it
1952
- // invisible.
1953
- it('flags an ALIASED Mantine import in a slot', () => {
1954
- const { code, rules } = run(
1955
- `${BASALT_IMPORT}import { Select as MantineSelect } from '@mantine/core'\n` +
1956
- `export const C = () => <PageBar filters={<MantineSelect data={[]} />} />\n`,
1957
- )
1958
- expect(code).toBe(1)
1959
- expect(rules).toContain('hand-rolled-filter')
1960
- })
1961
-
1962
- it('flags a NAMESPACE-imported Mantine control in a slot', () => {
1963
- const { rules } = run(
1964
- `${BASALT_IMPORT}import * as M from '@mantine/core'\n` +
1965
- `export const C = () => <PageBar filters={<M.SegmentedControl data={[]} />} />\n`,
1966
- )
1967
- expect(rules).toContain('hand-rolled-filter')
1968
- })
1969
-
1970
- it('flags an aliased MEMBER tag (Chip as C → C.Group)', () => {
1971
- const { rules } = run(
1972
- `${BASALT_IMPORT}import { Chip as Ch } from '@mantine/core'\n` +
1973
- `export const C = () => <PageBar filters={<Ch.Group multiple />} />\n`,
1974
- )
1975
- expect(rules).toContain('hand-rolled-filter')
1976
- })
1977
-
1978
- // `control-outside-home` DOES report this one — a local `Section` is not a home, so the control
1979
- // has none. Only this rule's silence is asserted; the exit code belongs to that warn.
1980
- it("does NOT flag a slot on a consumer's own Section — provenance is on the OWNER too", () => {
1981
- const { rules } = run(
1982
- `import { Section } from './layout/section'\n${MANTINE_IMPORT}` +
1983
- `export const C = () => <Section actions={<Select data={[]} />} />\n`,
1984
- )
1985
- expect(rules).not.toContain('hand-rolled-filter')
1986
- })
1987
- })
1988
-
1989
- describe('basalt/control-outside-home', () => {
1990
- it('flags a raw Mantine Select in no home at all', () => {
1991
- const { code, rules } = run(
1992
- `${MANTINE_IMPORT}export const C = () => <div><Select data={[]} /></div>\n`,
1993
- )
1994
- expect(code).toBe(1)
1995
- expect(rules).toContain('control-outside-home')
1996
- })
1997
-
1998
- it('does NOT flag one inside a home slot — that is hand-rolled-filter s business', () => {
1999
- const { rules } = run(
2000
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <PageBar filters={<Select data={[]} />} />\n`,
2001
- )
2002
- expect(rules).not.toContain('control-outside-home')
2003
- })
2004
-
2005
- it.each(['SettingsRow', 'Modal', 'Drawer', 'Composer'])(
2006
- 'does NOT flag one under a declared non-home (%s)',
2007
- (host) => {
2008
- const { rules } = run(
2009
- `${MANTINE_IMPORT}export const C = () => <${host}><Select data={[]} /></${host}>\n`,
2010
- )
2011
- expect(rules).not.toContain('control-outside-home')
2012
- },
2013
- )
2014
-
2015
- // FormRow/FormGroup (`basalt-ui/controls`, still re-exported from `basalt-ui/forms` until 1.39.0)
2016
- // are law C1's third home written for a `<form>` rather than a settings page — the same non-home
2017
- // treatment SettingsRow gets, via the same CONTROL_HOST_TAGS ancestry walk, which matches by NAME
2018
- // so either subpath is a home.
2019
- it.each(
2020
- ['FormRow', 'FormGroup'].flatMap((host) =>
2021
- ['basalt-ui/controls', 'basalt-ui/forms'].map((subpath) => [host, subpath] as const),
2022
- ),
2023
- )('does NOT flag a raw Select nested inside a %s imported from %s', (host, subpath) => {
2024
- const { rules } = run(
2025
- `import { ${host} } from '${subpath}'\n${MANTINE_IMPORT}` +
2026
- `export const C = () => <${host} label="L"><Select data={[]} /></${host}>\n`,
2027
- )
2028
- expect(rules).not.toContain('control-outside-home')
2029
- })
2030
-
2031
- it('still flags a bare Select in a page body with no FormRow/FormGroup around it', () => {
2032
- const { rules } = run(
2033
- `${MANTINE_IMPORT}export const C = () => <div><Select data={[]} /></div>\n`,
2034
- )
2035
- expect(rules).toContain('control-outside-home')
2036
- })
2037
-
2038
- describe('a hand-rolled row action in a column cell', () => {
2039
- const TABLE_IMPORT = `import { createColumnHelper } from 'basalt-ui/table'\n`
2040
- const cell = (body: string) =>
2041
- `${TABLE_IMPORT}${MANTINE_IMPORT}const col = createColumnHelper<Row>()\n` +
2042
- `export const columns = [col.display({ id: 'a', cell: ({ row }) => ${body} })]\n`
2043
-
2044
- it('flags a Mantine Menu in a col.display cell', () => {
2045
- const { code, rules } = run(
2046
- `import { Menu } from '@mantine/core'\n${cell('<Menu><Menu.Target><span /></Menu.Target></Menu>').replace(MANTINE_IMPORT, '')}`,
2047
- )
2048
- expect(code).toBe(1)
2049
- expect(rules).toContain('control-outside-home')
2050
- })
2051
-
2052
- it('flags a Mantine ActionIcon in a cell renderer', () => {
2053
- const { rules } = run(
2054
- `import { ActionIcon } from '@mantine/core'\n${cell('<ActionIcon aria-label="x" />').replace(MANTINE_IMPORT, '')}`,
2055
- )
2056
- expect(rules).toContain('control-outside-home')
2057
- })
2058
-
2059
- it('does NOT flag a Menu outside a cell renderer', () => {
2060
- const { rules } = run(
2061
- `import { Menu } from '@mantine/core'\nexport const C = () => <Menu><Menu.Target><span /></Menu.Target></Menu>\n`,
2062
- )
2063
- expect(rules).not.toContain('control-outside-home')
2064
- })
2065
-
2066
- it('reports a hand-rolled Menu + ActionIcon trigger once, not twice', () => {
2067
- const { output } = run(
2068
- `import { ActionIcon, Menu } from '@mantine/core'\n${TABLE_IMPORT}const col = createColumnHelper<Row>()\n` +
2069
- `export const columns = [col.display({ id: 'a', cell: () => (\n` +
2070
- ` <Menu><Menu.Target><ActionIcon aria-label="x" /></Menu.Target></Menu>\n) })]\n`,
2071
- )
2072
- expect(output.match(/\(basalt\/control-outside-home\)/g)).toHaveLength(1)
2073
- })
2074
-
2075
- it('does NOT flag an ActionIcon already homed in a form row inside a cell', () => {
2076
- const { rules } = run(
2077
- `import { ActionIcon } from '@mantine/core'\nimport { FormRow } from 'basalt-ui/controls'\n${TABLE_IMPORT}` +
2078
- `const col = createColumnHelper<Row>()\nexport const columns = [col.display({ id: 'a', cell: () => (\n` +
2079
- ` <FormRow label="L"><ActionIcon aria-label="x" /></FormRow>\n) })]\n`,
2080
- )
2081
- expect(rules).not.toContain('control-outside-home')
2082
- })
2083
-
2084
- it('does NOT flag one under a Menu.Dropdown inside a cell', () => {
2085
- const { rules } = run(
2086
- `import { ActionIcon } from '@mantine/core'\n${TABLE_IMPORT}const col = createColumnHelper<Row>()\n` +
2087
- `export const columns = [col.display({ id: 'a', cell: () => (\n` +
2088
- ` <Menu.Dropdown><ActionIcon aria-label="x" /></Menu.Dropdown>\n) })]\n`,
2089
- )
2090
- expect(rules).not.toContain('control-outside-home')
2091
- })
2092
-
2093
- it('still flags in a file that imports @mantine/form', () => {
2094
- const { rules } = run(
2095
- `import { useForm } from '@mantine/form'\nimport { ActionIcon } from '@mantine/core'\n${TABLE_IMPORT}` +
2096
- `const col = createColumnHelper<Row>()\nexport const columns = [col.display({ id: 'a', cell: () => <ActionIcon aria-label="x" /> })]\n`,
2097
- )
2098
- expect(rules).toContain('control-outside-home')
2099
- })
2100
-
2101
- it('does not see a cell renderer passed by reference (declared single-file limit)', () => {
2102
- const { rules } = run(
2103
- `import { ActionIcon } from '@mantine/core'\n${TABLE_IMPORT}const col = createColumnHelper<Row>()\n` +
2104
- `const renderActions = () => <ActionIcon aria-label="x" />\n` +
2105
- `export const columns = [col.display({ id: 'a', cell: renderActions })]\n`,
2106
- )
2107
- expect(rules).not.toContain('control-outside-home')
2108
- })
2109
-
2110
- it('honours a theme-allow waiver', () => {
2111
- const { rules } = run(
2112
- `import { ActionIcon } from '@mantine/core'\n${TABLE_IMPORT}const col = createColumnHelper<Row>()\n` +
2113
- `export const columns = [col.display({ id: 'a', cell: () => (\n` +
2114
- ` // theme-allow control-outside-home — a one-off\n <ActionIcon aria-label="x" />\n) })]\n`,
2115
- )
2116
- expect(rules).not.toContain('control-outside-home')
2117
- })
2118
- })
2119
-
2120
- it('does NOT flag one under a member-expression non-home (Menu.Dropdown)', () => {
2121
- const { rules } = run(
2122
- `${MANTINE_IMPORT}export const C = () => <Menu.Dropdown><Select data={[]} /></Menu.Dropdown>\n`,
2123
- )
2124
- expect(rules).not.toContain('control-outside-home')
2125
- })
2126
-
2127
- it('does NOT flag anything in a file that imports @mantine/form — a form is the third home', () => {
2128
- const { code, rules } = run(
2129
- `${MANTINE_IMPORT}import { useForm } from '@mantine/form'\n` +
2130
- `export const C = () => <div><Select data={[]} /></div>\n`,
2131
- )
2132
- expect(code).toBe(0)
2133
- expect(rules).not.toContain('control-outside-home')
2134
- })
2135
-
2136
- // The owner exemption, `hand-rolled-plot`'s shape: the module that IS the bound control cannot be
2137
- // told to use one.
2138
- // `shadow-basalt-export` reports the same fixture (a local `ViewTabs` collides with the shipped
2139
- // one), so only this rule's own silence is asserted — the exit code belongs to that rule.
2140
- it('does NOT flag the module that DEFINES a basalt control', () => {
2141
- const { rules } = run(
2142
- `${MANTINE_IMPORT}export function ViewTabs() {\n return <SegmentedControl data={[]} />\n}\n`,
2143
- )
2144
- expect(rules).not.toContain('control-outside-home')
2145
- })
2146
-
2147
- /**
2148
- * The exemption's SECOND half. `CONTROL_OWNER_NAMES` carries generic names (`PanelRow`,
2149
- * `EnumFilter`, `SliderControl`), so a bare-name match let one local helper switch this rule —
2150
- * and `bound-control-outside-home` and `responsive-twin` with it — off for a whole consumer file.
2151
- * A file that imports `basalt-ui*` is CONSUMING basalt; basalt's own control sources import each
2152
- * other relatively and never name the package.
2153
- */
2154
- it('DOES flag a file that declares its own PanelRow but imports basalt-ui', () => {
2155
- const { rules } = run(
2156
- `import { Section } from 'basalt-ui'\n${MANTINE_IMPORT}` +
2157
- `function PanelRow({ children }) {\n return <div>{children}</div>\n}\n` +
2158
- `export const C = () => (\n <Section title="x">\n <Select value={v} onChange={set} data={[]} />\n </Section>\n)\n`,
2159
- )
2160
- expect(rules).toContain('control-outside-home')
2161
- })
2162
-
2163
- /**
2164
- * The basalt SUBTREE homes, which this rule did not know: `bound-control-outside-home` has read
2165
- * `FilterSet` / `PageAside` / `PanelRow` as homes since it shipped, so a `<Select>` inside a
2166
- * `<PageAside><PanelRow>` reported while the bound control beside it did not — two rules
2167
- * answering one question two ways.
2168
- */
2169
- it('does NOT flag one inside a PageAside > PanelRow subtree', () => {
2170
- const { code, rules } = run(
2171
- `import { PageAside } from 'basalt-ui'\nimport { PanelRow } from 'basalt-ui/controls'\n${MANTINE_IMPORT}` +
2172
- `export const C = () => (\n <PageAside title="Filters">\n <PanelRow label="Scale">\n <Select data={[]} />\n </PanelRow>\n </PageAside>\n)\n`,
2173
- 'src/scale-page.tsx',
2174
- )
2175
- expect(code).toBe(0)
2176
- expect(rules).not.toContain('control-outside-home')
2177
- })
2178
-
2179
- describe('ViewTabs homes', () => {
2180
- const IMPORTS = `import { PageBar, Section, ChartCard } from 'basalt-ui'\nimport { FilterSet, ViewTabs } from 'basalt-ui/controls'\n`
2181
- const refused = (jsx: string): void => {
2182
- const { rules, output } = run(`${IMPORTS}export const C = () => ${jsx}\n`)
2183
- expect(rules).toContain('bound-control-outside-home')
2184
- expect(output).toContain('agent/rules/basalt-controls.md')
2185
- }
2186
- const allowed = (jsx: string): void => {
2187
- const { code, rules } = run(`${IMPORTS}export const C = () => ${jsx}\n`)
2188
- expect(code).toBe(0)
2189
- expect(rules).not.toContain('bound-control-outside-home')
2190
- }
2191
-
2192
- it('allows PageBar.tabs, Section.tabs and a ChartCard actions slot', () => {
2193
- allowed('<PageBar tabs={<ViewTabs field={f} />} />')
2194
- allowed('<Section title="x" tabs={<ViewTabs field={f} />} />')
2195
- allowed('<ChartCard title="x" actions={<ViewTabs field={f} />} />')
2196
- })
2197
-
2198
- it('refuses PageBar actions / filters / filtersEnd / sync', () => {
2199
- for (const slot of ['actions', 'filters', 'filtersEnd', 'sync']) {
2200
- refused(`<PageBar ${slot}={<ViewTabs field={f} />} />`)
2201
- }
2202
- })
2203
-
2204
- it('reads a quoted-key slot spread the way the home resolver does', () => {
2205
- refused("<PageBar {...{ 'actions': <ViewTabs field={f} /> }} />")
2206
- allowed("<PageBar {...{ 'tabs': <ViewTabs field={f} /> }} />")
2207
- })
2208
-
2209
- // Structural lint: only a ViewTabs written inside the slot is seen. Pinned so a change is deliberate.
2210
- it('does not see a hoisted binding handed to a refused slot', () => {
2211
- allowed('(() => { const t = <ViewTabs field={f} />; return <PageBar actions={t} /> })()')
2212
- })
2213
-
2214
- it('uses the ViewTabs wording for one outside any slot', () => {
2215
- const { output } = run(
2216
- `${IMPORTS}export const C = () => <Section title="x"><ViewTabs field={f} /></Section>\n`,
2217
- )
2218
- expect(output).toContain('`ViewTabs` is not in its home')
2219
- })
2220
-
2221
- it('refuses Section.actions and a FilterSet', () => {
2222
- refused('<Section title="x" actions={<ViewTabs field={f} />} />')
2223
- refused('<FilterSet><ViewTabs field={f} /></FilterSet>')
2224
- })
2225
- })
2226
-
2227
- it('does NOT flag one inside a FilterSet subtree', () => {
2228
- const { rules } = run(
2229
- `import { FilterSet } from 'basalt-ui/controls'\n${MANTINE_IMPORT}` +
2230
- `export const C = () => (\n <FilterSet>\n <Select data={[]} />\n </FilterSet>\n)\n`,
2231
- 'src/scale-page.tsx',
2232
- )
2233
- expect(rules).not.toContain('control-outside-home')
2234
- })
2235
-
2236
- // Provenance, the test `SLOT_OWNER_TAGS` already applies: a consumer's own `PanelRow` is a layout
2237
- // helper, not a basalt home, so it exempts nothing.
2238
- it("still flags one inside a consumer's OWN PanelRow", () => {
2239
- const { rules } = run(
2240
- `import { PanelRow } from './panel-row'\n${MANTINE_IMPORT}` +
2241
- `export const C = () => (\n <PanelRow label="Scale">\n <Select data={[]} />\n </PanelRow>\n)\n`,
2242
- 'src/scale-page.tsx',
2243
- )
2244
- expect(rules).toContain('control-outside-home')
2245
- })
2246
-
2247
- it('flags an ALIASED Mantine import with no home', () => {
2248
- const { code, rules } = run(
2249
- `import { Select as MantineSelect } from '@mantine/core'\n` +
2250
- `export const C = () => <div><MantineSelect data={[]} /></div>\n`,
2251
- )
2252
- expect(code).toBe(1)
2253
- expect(rules).toContain('control-outside-home')
2254
- })
2255
-
2256
- it('flags a NAMESPACE-imported Mantine control with no home', () => {
2257
- const { rules } = run(
2258
- `import * as M from '@mantine/core'\n` +
2259
- `export const C = () => <div><M.SegmentedControl data={[]} /></div>\n`,
2260
- )
2261
- expect(rules).toContain('control-outside-home')
2262
- })
2263
-
2264
- it('honors a scoped theme-allow', () => {
2265
- const { rules } = run(
2266
- `${MANTINE_IMPORT}export const C = () => (\n <div>\n {/* theme-allow control-outside-home — a one-off admin picker */}\n <Select data={[]} />\n </div>\n)\n`,
2267
- )
2268
- expect(rules).not.toContain('control-outside-home')
2269
- })
2270
-
2271
- /**
2272
- * The CROSS-FILE case, exempted by a naming convention rather than by ancestry — argo carried 9 of
2273
- * these, each a control in a modal/form module whose `<Modal>` is rendered by the parent route.
2274
- * Nothing in the flagged file can see the host, so the ancestry walk never could have.
2275
- */
2276
- describe('the overlay filename convention', () => {
2277
- const SOURCE = `${MANTINE_IMPORT}export const C = () => <div><Select data={[]} /></div>\n`
2278
-
2279
- it.each([
2280
- 'src/edit-session-modal.tsx',
2281
- 'src/filters-drawer.tsx',
2282
- 'src/column-popover.tsx',
2283
- 'src/detail-panel.tsx',
2284
- 'src/booking-form.tsx',
2285
- ])('does NOT flag %s — its host lives in the parent', (filename) => {
2286
- const { code, rules } = run(SOURCE, filename)
2287
- expect(code).toBe(0)
2288
- expect(rules).not.toContain('control-outside-home')
2289
- })
2290
-
2291
- it('still flags a plain page module beside them', () => {
2292
- const { rules } = run(SOURCE, 'src/bookings-page.tsx')
2293
- expect(rules).toContain('control-outside-home')
2294
- })
2295
-
2296
- // Basename only: a directory of modals holds the page pieces around them too, so a whole
2297
- // `modal/` tree going silent is the version of this exemption that WOULD switch the rule off.
2298
- it('is a BASENAME convention, not a directory one', () => {
2299
- const { rules } = run(SOURCE, 'src/modal/session.tsx')
2300
- expect(rules).toContain('control-outside-home')
2301
- })
2302
-
2303
- // `modal.tsx` with no leading segment is a page module in every consumer that has one; the
2304
- // convention is `<subject>-modal.tsx`, and the regex says so.
2305
- it('needs the leading subject — a bare modal.tsx is not the convention', () => {
2306
- const { rules } = run(SOURCE, 'src/modal.tsx')
2307
- expect(rules).toContain('control-outside-home')
2308
- })
2309
-
2310
- // The SECOND dialect: a repo mandating `PascalCase.tsx` for component files (basalt's own root
2311
- // AGENTS.md included) can never write `foo-panel.tsx`, so the kebab form alone exempted nothing
2312
- // there — which is how the CBBI panel collected four warns for a `<PageAside>` in its parent.
2313
- it.each(['src/EditSessionModal.tsx', 'src/FiltersDrawer.tsx', 'src/CbbiPanel.tsx'])(
2314
- 'does NOT flag %s — the PascalCase dialect of the same convention',
2315
- (filename) => {
2316
- const { code, rules } = run(SOURCE, filename)
2317
- expect(code).toBe(0)
2318
- expect(rules).not.toContain('control-outside-home')
2319
- },
2320
- )
2321
-
2322
- /**
2323
- * The trade, stated as a test rather than only as prose: a `FooPanel.tsx` that renders NO page
2324
- * bar is exempt WHOLE-FILE, so a control that genuinely belongs in a bar goes unreported there.
2325
- * Measured before keeping it — across argo, linewatch, image-share, rb and image-gen the
2326
- * PascalCase dialect matches 9 files, all in image-gen, and NONE of them renders a `<PageBar>`
2327
- * or sits under a `routes/` directory. Nine overlay bodies, zero pages, so the dialect stays
2328
- * whole-file rather than growing a "does it render a page bar" predicate (CONTROLS-SPEC §6).
2329
- */
2330
- it('exempts a FooPanel.tsx that renders no page bar — the measured trade', () => {
2331
- const { code, rules } = run(SOURCE, 'src/components/refine/CropPanel.tsx')
2332
- expect(code).toBe(0)
2333
- expect(rules).not.toContain('control-outside-home')
2334
- })
2335
-
2336
- it('needs the leading subject in the PascalCase dialect too', () => {
2337
- const { rules } = run(SOURCE, 'src/Panel.tsx')
2338
- expect(rules).toContain('control-outside-home')
2339
- })
2340
-
2341
- it('is CASE-sensitive — foopanel.tsx is neither dialect', () => {
2342
- const { rules } = run(SOURCE, 'src/foopanel.tsx')
2343
- expect(rules).toContain('control-outside-home')
2344
- })
2345
- })
2346
- })
2347
-
2348
- /**
2349
- * Ledger G5 (`docs/ASIDE-SPEC.md` §2) — the basalt half of law C1. Mirrors the
2350
- * `control-outside-home` block above case for case, because the two rules answer the same question
2351
- * about a different tag set: that one matches raw Mantine, this one matches a bound basalt control.
2352
- */
2353
- describe('basalt/bound-control-outside-home', () => {
2354
- const CONTROLS_IMPORT = `import { FilterSet, PanelRow, SelectFilter, SliderControl } from 'basalt-ui/controls'\n`
2355
- const ASIDE_IMPORT = `import { PageAside, PageBar, Section } from 'basalt-ui'\n`
2356
-
2357
- it("flags a bound control in a Section's BODY — the stray pill G5 named", () => {
2358
- const { code, rules } = run(
2359
- `${ASIDE_IMPORT}${CONTROLS_IMPORT}export const C = () => (\n <Section title="Composition">\n <SelectFilter field={f} />\n </Section>\n)\n`,
2360
- )
2361
- expect(code).toBe(1)
2362
- expect(rules).toContain('bound-control-outside-home')
2363
- })
2364
-
2365
- it('flags one in a bare page Stack', () => {
2366
- const { rules } = run(
2367
- `import { Stack } from '@mantine/core'\n${CONTROLS_IMPORT}` +
2368
- `export const C = () => (\n <Stack>\n <SelectFilter field={f} />\n </Stack>\n)\n`,
2369
- )
2370
- expect(rules).toContain('bound-control-outside-home')
2371
- })
2372
-
2373
- it('does NOT flag one in a PageBar filters slot', () => {
2374
- const { code, rules } = run(
2375
- `${ASIDE_IMPORT}${CONTROLS_IMPORT}export const C = () => <PageBar filters={<SelectFilter field={f} />} />\n`,
2376
- )
2377
- expect(code).toBe(0)
2378
- expect(rules).not.toContain('bound-control-outside-home')
2379
- })
2380
-
2381
- it('does NOT flag one inside a FilterSet subtree', () => {
2382
- const { code, rules } = run(
2383
- `${CONTROLS_IMPORT}export const C = () => (\n <FilterSet>\n <SelectFilter field={f} />\n </FilterSet>\n)\n`,
2384
- )
2385
- expect(code).toBe(0)
2386
- expect(rules).not.toContain('bound-control-outside-home')
2387
- })
2388
-
2389
- // The aside is a shell REGION whose body IS a home — it scopes its children to the `panel`
2390
- // surface, where the same control renders as a row rather than a pill (docs/ASIDE-SPEC.md §3).
2391
- it('does NOT flag one inside a PageAside subtree, Section and all', () => {
2392
- const { code, rules } = run(
2393
- `${ASIDE_IMPORT}${CONTROLS_IMPORT}export const C = () => (\n <PageAside title="Filters">\n <Section title="Origin">\n <SelectFilter field={f} />\n </Section>\n </PageAside>\n)\n`,
2394
- )
2395
- expect(code).toBe(0)
2396
- expect(rules).not.toContain('bound-control-outside-home')
2397
- })
2398
-
2399
- it("does NOT flag one as a PanelRow's `end` — the attribute hangs off PanelRow itself", () => {
2400
- const { code, rules } = run(
2401
- `${CONTROLS_IMPORT}export const C = () => <PanelRow label="Weight" end={<SelectFilter field={f} />} />\n`,
2402
- )
2403
- expect(code).toBe(0)
2404
- expect(rules).not.toContain('bound-control-outside-home')
2405
- })
2406
-
2407
- it("does NOT flag one in a PanelRow's children — the row IS the home", () => {
2408
- const { rules } = run(
2409
- `${CONTROLS_IMPORT}export const C = () => (\n <PanelRow label="Origin">\n <SelectFilter field={f} />\n </PanelRow>\n)\n`,
2410
- )
2411
- expect(rules).not.toContain('bound-control-outside-home')
2412
- })
2413
-
2414
- it('does NOT flag one inside an overlay host (Modal)', () => {
2415
- const { rules } = run(
2416
- `import { Modal } from '@mantine/core'\n${CONTROLS_IMPORT}` +
2417
- `export const C = () => (\n <Modal opened>\n <SelectFilter field={f} />\n </Modal>\n)\n`,
2418
- )
2419
- expect(rules).not.toContain('bound-control-outside-home')
2420
- })
2421
-
2422
- // FormRow/FormGroup are the same declared non-home as SettingsRow — shared CONTROL_HOST_TAGS walk.
2423
- it.each(['FormRow', 'FormGroup'])('does NOT flag one inside a %s', (host) => {
2424
- const { code, rules } = run(
2425
- `import { ${host} } from 'basalt-ui/controls'\n${CONTROLS_IMPORT}` +
2426
- `export const C = () => <${host} label="L"><SelectFilter field={f} /></${host}>\n`,
2427
- )
2428
- expect(code).toBe(0)
2429
- expect(rules).not.toContain('bound-control-outside-home')
2430
- })
2431
-
2432
- it.each(['src/cbbi-panel.tsx', 'src/CbbiPanel.tsx'])(
2433
- 'does NOT flag %s — a panel body whose host lives in the parent, in either dialect',
2434
- (filename) => {
2435
- const { code, rules } = run(
2436
- `${CONTROLS_IMPORT}export const C = () => <div><SelectFilter field={f} /></div>\n`,
2437
- filename,
2438
- )
2439
- expect(code).toBe(0)
2440
- expect(rules).not.toContain('bound-control-outside-home')
2441
- },
2442
- )
2443
-
2444
- // Both dialects need the leading SUBJECT, and neither is case-insensitive — `foopanel.tsx` is a
2445
- // page module spelled without a separator, not a declaration.
2446
- it.each(['src/foopanel.tsx', 'src/Panel.tsx'])('still flags %s', (filename) => {
2447
- const { rules } = run(
2448
- `${CONTROLS_IMPORT}export const C = () => <div><SelectFilter field={f} /></div>\n`,
2449
- filename,
2450
- )
2451
- expect(rules).toContain('bound-control-outside-home')
2452
- })
2453
-
2454
- it('honors a scoped theme-allow', () => {
2455
- const { rules } = run(
2456
- `${CONTROLS_IMPORT}export const C = () => (\n <div>\n {/* theme-allow bound-control-outside-home — a one-off embedded picker */}\n <SelectFilter field={f} />\n </div>\n)\n`,
2457
- )
2458
- expect(rules).not.toContain('bound-control-outside-home')
2459
- })
2460
-
2461
- it('honors a theme-allow-file declaration', () => {
2462
- const { rules } = run(
2463
- `// theme-allow-file bound-control-outside-home — a legacy page, migrating next sprint\n` +
2464
- `${CONTROLS_IMPORT}export const C = () => <div><SelectFilter field={f} /></div>\n`,
2465
- )
2466
- expect(rules).not.toContain('bound-control-outside-home')
2467
- })
2468
-
2469
- // Provenance, the same test the raw-filter rules apply the other way round: a consumer's own
2470
- // `SelectFilter` is not basalt's, and basalt has no claim over where it is written.
2471
- it('does NOT flag a locally-defined SelectFilter', () => {
2472
- const { code, rules } = run(
2473
- `import { SelectFilter } from './my-filters'\n` +
2474
- `export const C = () => <div><SelectFilter field={f} /></div>\n`,
2475
- )
2476
- expect(code).toBe(0)
2477
- expect(rules).not.toContain('bound-control-outside-home')
2478
- })
2479
-
2480
- it('flags an ALIASED basalt import with no home', () => {
2481
- const { rules } = run(
2482
- `import { SelectFilter as Picker } from 'basalt-ui/controls'\n` +
2483
- `export const C = () => <div><Picker field={f} /></div>\n`,
2484
- )
2485
- expect(rules).toContain('bound-control-outside-home')
2486
- })
2487
-
2488
- /**
2489
- * The owner exemption needs the file to import NOTHING from `basalt-ui*` — see
2490
- * `control-outside-home`'s copy for why. For THIS rule that makes the exemption reachable only
2491
- * inside basalt's own `src/`, which is exactly where it is meant to apply: provenance already
2492
- * requires a basalt import (or a relative one inside that tree), so a consumer file can never be
2493
- * both the owner and a place this rule could fire.
2494
- */
2495
- it('DOES flag a consumer file that declares its own PanelRow', () => {
2496
- const { rules } = run(
2497
- `${CONTROLS_IMPORT}function PanelRow({ children }) {\n return <div>{children}</div>\n}\n` +
2498
- `export const C = () => <div><SelectFilter field={f} /></div>\n`,
2499
- )
2500
- expect(rules).toContain('bound-control-outside-home')
2501
- })
2502
-
2503
- // Provenance on the HOME too, the same test `control-outside-home` applies: a consumer's own
2504
- // `PanelRow` is a layout helper, not the aside's row primitive.
2505
- it("still flags one inside a consumer's OWN PanelRow", () => {
2506
- const { rules } = run(
2507
- `import { SelectFilter } from 'basalt-ui/controls'\nimport { PanelRow } from './panel-row'\n` +
2508
- `export const C = () => (\n <PanelRow label="Scale">\n <SelectFilter field={f} />\n </PanelRow>\n)\n`,
2509
- )
2510
- expect(rules).toContain('bound-control-outside-home')
2511
- })
2512
-
2513
- /**
2514
- * `SliderControl` is NOT policed: it renders its own `PanelRow` and has no pill form at all
2515
- * (`docs/ASIDE-SPEC.md` §3), so "this renders as a stray pill" is false for it and a `Section`
2516
- * body is a legitimate place to write one. The plugin has no per-tag home set, so the honest fix
2517
- * is dropping it from the policed set rather than giving it a private exemption.
2518
- */
2519
- it('does NOT flag a SliderControl in a Section body — it has no pill form', () => {
2520
- const { code, rules } = run(
2521
- `${ASIDE_IMPORT}${CONTROLS_IMPORT}export const C = () => (\n <Section title="Weights">\n <SliderControl field={f} label="Pi" />\n </Section>\n)\n`,
2522
- )
2523
- expect(code).toBe(0)
2524
- expect(rules).not.toContain('bound-control-outside-home')
2525
- })
2526
-
2527
- it('resolves a hoisted binding handed to a slot, like its siblings do', () => {
2528
- const { rules } = run(
2529
- `${ASIDE_IMPORT}${CONTROLS_IMPORT}const pills = <SelectFilter field={f} />\n` +
2530
- `export const C = () => <PageBar filters={pills} />\n`,
2531
- )
2532
- expect(rules).not.toContain('bound-control-outside-home')
2533
- })
2534
-
2535
- /**
2536
- * …and one handed to a subtree home as its CHILDREN, which the ancestry walk cannot see: at the
2537
- * `const` there is no `PageAside` above the node at all. The same `Program:exit` deferral the
2538
- * slot lane uses, over the home's `{expr}` children instead of its attributes.
2539
- */
2540
- it('resolves a hoisted binding rendered as a PageAside CHILD', () => {
2541
- const { code, rules } = run(
2542
- `${ASIDE_IMPORT}${CONTROLS_IMPORT}const rows = <SelectFilter field={f} />\n` +
2543
- `export const C = () => <PageAside title="Filters">{rows}</PageAside>\n`,
2544
- )
2545
- expect(code).toBe(0)
2546
- expect(rules).not.toContain('bound-control-outside-home')
2547
- })
2548
-
2549
- it('still flags the same hoisted binding under a bare Stack', () => {
2550
- const { rules } = run(
2551
- `import { Stack } from '@mantine/core'\n${CONTROLS_IMPORT}const rows = <SelectFilter field={f} />\n` +
2552
- `export const C = () => <Stack>{rows}</Stack>\n`,
2553
- )
2554
- expect(rules).toContain('bound-control-outside-home')
2555
- })
2556
-
2557
- /**
2558
- * A slot written as an OBJECT SPREAD is the same home as a slot written as a JSXAttribute — and
2559
- * `exactOptionalPropertyTypes` FORCES the spread, because `tabs={cond ? <X/> : undefined}` is not
2560
- * assignable to an optional prop. Every control rule resolved homes off JSXAttribute nodes alone,
2561
- * so a strict consumer's conditional slot was a false positive on a rule scheduled to go `error`.
2562
- */
2563
- describe('a slot written as an object spread', () => {
2564
- it.each([
2565
- '{...(cond && { tabs: <SelectFilter field={f} /> })}',
2566
- '{...(cond ? { tabs: <SelectFilter field={f} /> } : {})}',
2567
- '{...{ filters: <SelectFilter field={f} /> }}',
2568
- ])('does NOT flag %s on a Section', (spread) => {
2569
- const { code, rules } = run(
2570
- `${ASIDE_IMPORT}${CONTROLS_IMPORT}export const C = ({ cond }) => (\n <Section ${spread}>body</Section>\n)\n`,
2571
- )
2572
- expect(code).toBe(0)
2573
- expect(rules).not.toContain('bound-control-outside-home')
2574
- })
2575
-
2576
- it('does NOT flag a hoisted binding handed to a spread slot', () => {
2577
- const { rules } = run(
2578
- `${ASIDE_IMPORT}${CONTROLS_IMPORT}const tabs = <SelectFilter field={f} />\n` +
2579
- `export const C = ({ cond }) => <Section {...(cond && { tabs })}>body</Section>\n`,
2580
- )
2581
- expect(rules).not.toContain('bound-control-outside-home')
2582
- })
2583
-
2584
- // Deliberately narrow: only a Property reaching a JSXSpreadAttribute through object / `&&` /
2585
- // `?:` nodes is claimed. A non-slot key, and an object built anywhere else, are not homes.
2586
- it('still flags a non-slot key in the same spread', () => {
2587
- const { rules } = run(
2588
- `${ASIDE_IMPORT}${CONTROLS_IMPORT}export const C = ({ cond }) => (\n` +
2589
- ` <Section {...(cond && { footer: <SelectFilter field={f} /> })}>body</Section>\n)\n`,
2590
- )
2591
- expect(rules).toContain('bound-control-outside-home')
2592
- })
2593
-
2594
- it('still flags a slot-shaped object built inside a .map() callback', () => {
2595
- const { rules } = run(
2596
- `${CONTROLS_IMPORT}export const C = () => [1].map((k) => ({ tabs: <SelectFilter field={f} /> }))\n`,
2597
- )
2598
- expect(rules).toContain('bound-control-outside-home')
2599
- })
2600
-
2601
- it('still flags one on a tag that is not a slot owner', () => {
2602
- const { rules } = run(
2603
- `import { Stack } from '@mantine/core'\n${CONTROLS_IMPORT}export const C = ({ cond }) => (\n` +
2604
- ` <Stack {...(cond && { tabs: <SelectFilter field={f} /> })} />\n)\n`,
2605
- )
2606
- expect(rules).toContain('bound-control-outside-home')
2607
- })
2608
- })
2609
-
2610
- it('names PageBar as the reachable home for a shell-less app', () => {
2611
- const { output } = run(
2612
- `import { Stack } from '@mantine/core'\n${CONTROLS_IMPORT}` +
2613
- `export const C = () => (\n <Stack>\n <SelectFilter field={f} />\n </Stack>\n)\n`,
2614
- )
2615
- expect(output).toContain('PageBar` needs no `BasaltShell`')
2616
- })
2617
- })
2618
-
2619
- describe('basalt/control-size-literal', () => {
2620
- // Same widening as `hand-rolled-filter` above, for the same reason: a slot is a slot in either
2621
- // spelling, and the tier the message promises is mounted by the slot however it was written.
2622
- it('flags a size prop inside a slot written as an object spread', () => {
2623
- const { code, rules } = run(
2624
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = ({ cond }) => (\n` +
2625
- ` <Section {...(cond && { actions: <Button size="xs">Go</Button> })}>body</Section>\n)\n`,
2626
- )
2627
- expect(code).toBe(1)
2628
- expect(rules).toContain('control-size-literal')
2629
- })
2630
-
2631
- it.each(['size="xs"', 'w={200}', 'fullWidth', 'visibleFrom="sm"', 'hiddenFrom="sm"'])(
2632
- 'flags %s on an element inside a home slot',
2633
- (prop) => {
2634
- const { code, rules } = run(
2635
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <PageBar actions={<Button ${prop}>Go</Button>} />\n`,
2636
- )
2637
- expect(code).toBe(1)
2638
- expect(rules).toContain('control-size-literal')
2639
- },
2640
- )
2641
-
2642
- it('flags it through a hoisted slot binding too', () => {
2643
- const { rules } = run(
2644
- `${BASALT_IMPORT}${MANTINE_IMPORT}const acts = <Button size="xs">Go</Button>\n` +
2645
- `export const C = () => <PageBar actions={acts} />\n`,
2646
- )
2647
- expect(rules).toContain('control-size-literal')
2648
- })
2649
-
2650
- it('does NOT flag a size prop in a SettingsRow\'s control — it is a form row, and size="md" is the opt-out of its ctl tier', () => {
2651
- const { code, rules } = run(
2652
- `${MANTINE_IMPORT}export const C = () => (\n <SettingsRow label="L" control={<Button size="compact-sm">Go</Button>} />\n)\n`,
2653
- )
2654
- expect(code).toBe(0)
2655
- expect(rules).not.toContain('control-size-literal')
2656
- })
2657
-
2658
- /**
2659
- * `ChartCard` is the one slot owner whose slot cannot mount the tier theme — it lives inside the
2660
- * Mantine-free chart layer, so it writes `data-basalt-tier` by hand and the control there really
2661
- * does have to state its own size. The rule fires on the `size` ATTRIBUTE and cannot tell a
2662
- * correct `ctl` from the `xs` it exists to catch, so this is an exemption, not a waiver.
2663
- */
2664
- describe('ChartCard.actions — the one slot with no tier theme', () => {
2665
- it('does NOT flag a size prop there', () => {
2666
- const { code, rules } = run(
2667
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <ChartCard title="T" actions={<Button size="ctl">Go</Button>} />
2668
- `,
2669
- )
2670
- expect(code).toBe(0)
2671
- expect(rules).not.toContain('control-size-literal')
2672
- })
2673
-
2674
- // The owner test reads the IMPORTED name, so the alias every wrapper writes still resolves.
2675
- it('does NOT flag it under an aliased ChartCard import', () => {
2676
- const { rules } = run(
2677
- `import { ChartCard as Card } from 'basalt-ui'
2678
- ${MANTINE_IMPORT}` +
2679
- `export const C = () => <Card title="T" actions={<Button size="xs">Go</Button>} />
2680
- `,
2681
- )
2682
- expect(rules).not.toContain('control-size-literal')
2683
- })
2684
-
2685
- // The positive control: every OTHER home does mount the theme, so the rule still fires there.
2686
- it('STILL flags the same prop in a Section slot', () => {
2687
- const { code, rules } = run(
2688
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <Section title="T" actions={<Button size="xs">Go</Button>} />
2689
- `,
2690
- )
2691
- expect(code).toBe(1)
2692
- expect(rules).toContain('control-size-literal')
2693
- })
2694
-
2695
- // The exemption is keyed on the OWNER, and one hoisted binding can be handed to several — so it
2696
- // holds only when EVERY home it reached is tierless. A last-writer-wins owner map made the
2697
- // verdict depend on which attribute came later in the file: same code, opposite answer.
2698
- it('STILL flags a hoisted binding shared with a Section slot — ChartCard last', () => {
2699
- const { rules } = run(
2700
- `${BASALT_IMPORT}${MANTINE_IMPORT}const acts = <Button size="xs">Go</Button>\n` +
2701
- `export const C = () => (\n <>\n <Section title="S" actions={acts} />\n <ChartCard title="T" actions={acts} />\n </>\n)\n`,
2702
- )
2703
- expect(rules).toContain('control-size-literal')
2704
- })
2705
-
2706
- it('STILL flags a hoisted binding shared with a Section slot — ChartCard first', () => {
2707
- const { rules } = run(
2708
- `${BASALT_IMPORT}${MANTINE_IMPORT}const acts = <Button size="xs">Go</Button>\n` +
2709
- `export const C = () => (\n <>\n <ChartCard title="T" actions={acts} />\n <Section title="S" actions={acts} />\n </>\n)\n`,
2710
- )
2711
- expect(rules).toContain('control-size-literal')
2712
- })
2713
-
2714
- it('does NOT flag a hoisted binding handed only to ChartCard', () => {
2715
- const { code, rules } = run(
2716
- `${BASALT_IMPORT}${MANTINE_IMPORT}const acts = <Button size="ctl">Go</Button>\n` +
2717
- `export const C = () => <ChartCard title="T" actions={acts} />\n`,
2718
- )
2719
- expect(code).toBe(0)
2720
- expect(rules).not.toContain('control-size-literal')
2721
- })
2722
-
2723
- // A consumer's OWN `ChartCard` is not basalt's, so it is not a home at all and nothing fires —
2724
- // the same provenance rule every other home tag follows.
2725
- it('hand-rolled-filter is NOT exempted there — the tier is not what makes a filter wrong', () => {
2726
- const { rules } = run(
2727
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <ChartCard title="T" actions={<Select data={[]} />} />
2728
- `,
2729
- )
2730
- expect(rules).toContain('hand-rolled-filter')
2731
- })
2732
- })
2733
-
2734
- it('does NOT flag a size prop on the HOME itself', () => {
2735
- const { code, rules } = run(
2736
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <PageBar w={200} actions={<Button>Go</Button>} />\n`,
2737
- )
2738
- expect(code).toBe(0)
2739
- expect(rules).not.toContain('control-size-literal')
2740
- })
2741
-
2742
- it("does NOT flag a size prop in a Section's CHILDREN", () => {
2743
- const { code, rules } = run(
2744
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => (\n <Section title="T">\n <Button size="xs">Go</Button>\n </Section>\n)\n`,
2745
- )
2746
- expect(code).toBe(0)
2747
- expect(rules).not.toContain('control-size-literal')
2748
- })
2749
-
2750
- // The rule only reaches what the slot's own MantineThemeProvider re-tiers. An icon's `size` IS
2751
- // its only sizing API and the slot theme cannot touch an SVG, so "drop the prop" produced a 24px
2752
- // icon — on the shape the spec's own reference example writes.
2753
- it("does NOT flag an icon's size inside a slot — the slot theme cannot size an SVG", () => {
2754
- const { code, rules } = run(
2755
- `${BASALT_IMPORT}${MANTINE_IMPORT}import { IconDownload } from '@tabler/icons-react'\n` +
2756
- `export const C = () => (\n <PageBar actions={<Button leftSection={<IconDownload size={14} />}>Export</Button>} />\n)\n`,
2757
- )
2758
- expect(code).toBe(0)
2759
- expect(rules).not.toContain('control-size-literal')
2760
- })
2761
-
2762
- it('does NOT flag a Badge or Loader size in a Section actions slot', () => {
2763
- const { code, rules } = run(
2764
- `${BASALT_IMPORT}import { Badge, Loader } from '@mantine/core'\n` +
2765
- `export const C = ({ n, busy }) => (\n <Section title="T" actions={[<Badge key="c" size="sm">{n}</Badge>, busy ? <Loader key="l" size={14} /> : null]} />\n)\n`,
2766
- )
2767
- expect(code).toBe(0)
2768
- expect(rules).not.toContain('control-size-literal')
2769
- })
2770
-
2771
- it("does NOT flag a Modal's own size, or an input's size inside that Modal", () => {
2772
- const { code, rules } = run(
2773
- `${BASALT_IMPORT}import { Button, Modal, TextInput } from '@mantine/core'\n` +
2774
- `export const C = () => (\n <WidgetHeader\n actions={\n <>\n <Button>New</Button>\n <Modal opened size="lg">\n <TextInput size="md" />\n </Modal>\n </>\n }\n />\n)\n`,
2775
- )
2776
- expect(code).toBe(0)
2777
- expect(rules).not.toContain('control-size-literal')
2778
- })
2779
-
2780
- it('STILL flags a raw filter size in the slot beside those exemptions', () => {
2781
- const { rules } = run(
2782
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => (\n <PageBar filters={<Select size="xs" data={[]} />} />\n)\n`,
2783
- )
2784
- expect(rules).toContain('control-size-literal')
2785
- })
2786
-
2787
- it('flags an ALIASED Mantine Button size in a slot', () => {
2788
- const { rules } = run(
2789
- `${BASALT_IMPORT}import { Button as Btn } from '@mantine/core'\n` +
2790
- `export const C = () => <PageBar actions={<Btn size="xs">Go</Btn>} />\n`,
2791
- )
2792
- expect(rules).toContain('control-size-literal')
2793
- })
2794
-
2795
- it("does NOT flag a size prop in a slot on a consumer's own Section", () => {
2796
- const { code, rules } = run(
2797
- `import { Section } from './layout/section'\n${MANTINE_IMPORT}` +
2798
- `export const C = () => <Section actions={<Button size="sm">Go</Button>} />\n`,
2799
- )
2800
- expect(code).toBe(0)
2801
- expect(rules).not.toContain('control-size-literal')
2802
- })
2803
-
2804
- it('honors a scoped theme-allow', () => {
2805
- const { rules } = run(
2806
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => (\n <PageBar\n actions={\n <Button\n // theme-allow control-size-literal — a deliberate 24px tag\n size="xs"\n >\n Go\n </Button>\n }\n />\n)\n`,
2807
- )
2808
- expect(rules).not.toContain('control-size-literal')
2809
- })
2810
- })
2811
-
2812
- // `control-size-literal`'s scope is a copy of the theme's own re-tiering list, because a plain-JS
2813
- // plugin shipped to consumers cannot import Mantine-coupled TS. This is the pin that makes the copy
2814
- // safe: a component added to (or dropped from) CTL_THEME without the rule following is a rule
2815
- // telling someone to drop a prop nothing else sets — or silently ignoring one that matters.
2816
- describe('CTL_THEME_TAGS ↔ CTL_THEME', () => {
2817
- it('is exactly the component map the slot theme re-tiers', () => {
2818
- expect([...(CTL_THEME_TAGS as Set<string>)].toSorted()).toEqual(
2819
- Object.keys(CTL_THEME.components ?? {}).toSorted(),
2820
- )
2821
- })
2822
- })
2823
-
2824
- describe('basalt/in-body-page-title', () => {
2825
- it.each([1, 2])('flags <Title order={%i}> in the body', (order) => {
2826
- const { code, rules } = run(`export const C = () => <Title order={${order}}>Page</Title>\n`)
2827
- expect(code).toBe(1)
2828
- expect(rules).toContain('in-body-page-title')
2829
- })
2830
-
2831
- it('does NOT flag order={3} — a section heading', () => {
2832
- const { code, rules } = run(`export const C = () => <Title order={3}>Section</Title>\n`)
2833
- expect(code).toBe(0)
2834
- expect(rules).not.toContain('in-body-page-title')
2835
- })
2836
-
2837
- it.each(['Prose', 'ArticleLayout', 'Modal', 'Drawer'])(
2838
- 'does NOT flag one under %s — that is a document heading',
2839
- (host) => {
2840
- const { rules } = run(
2841
- `export const C = () => <${host}><Title order={1}>Doc</Title></${host}>\n`,
2842
- )
2843
- expect(rules).not.toContain('in-body-page-title')
2844
- },
2845
- )
2846
-
2847
- it('does NOT flag one under a content/ path segment', () => {
2848
- const { code, rules } = run(
2849
- `export const C = () => <Title order={1}>Doc</Title>\n`,
2850
- 'content/page.tsx',
2851
- )
2852
- expect(code).toBe(0)
2853
- expect(rules).not.toContain('in-body-page-title')
2854
- })
2855
-
2856
- it('honors a scoped theme-allow', () => {
2857
- const { rules } = run(
2858
- `// theme-allow in-body-page-title — a shell-less print view\nexport const C = () => <Title order={1}>Page</Title>\n`,
2859
- )
2860
- expect(rules).not.toContain('in-body-page-title')
2861
- })
2862
-
2863
- // The narrowing that made C8 satisfiable — the law is "one NAME per page", and a name is
2864
- // written in words. rb hit both of these shapes 24 times across 12 files with no legal fix.
2865
- it('does NOT flag a nav-less detail route rendering the document title', () => {
2866
- const { code, rules } = run(
2867
- `export const C = ({ knot }) => <Title order={1}>{knot.title}</Title>\n`,
2868
- )
2869
- expect(code).toBe(0)
2870
- expect(rules).not.toContain('in-body-page-title')
2871
- })
2872
-
2873
- it("does NOT flag a card's hero VALUE at order={2}", () => {
2874
- const { rules } = run(`export const C = ({ g }) => <Title order={2}>{RANK[g.rank]}</Title>\n`)
2875
- expect(rules).not.toContain('in-body-page-title')
2876
- })
2877
-
2878
- // The escape is the EXPRESSION, not the braces: a literal laundered through `{…}` is still a
2879
- // static page name, and so is a substitution-free template.
2880
- it.each([`{'Users'}`, '{`Users`}'])('still flags a laundered literal %s', (child) => {
2881
- const { rules } = run(`export const C = () => <Title order={1}>${child}</Title>\n`)
2882
- expect(rules).toContain('in-body-page-title')
2883
- })
2884
-
2885
- it('still flags a name with a value interpolated into it', () => {
2886
- const { rules } = run(`export const C = ({ n }) => <Title order={1}>Users {n}</Title>\n`)
2887
- expect(rules).toContain('in-body-page-title')
2888
- })
2889
-
2890
- it('still flags a name nested one element deep', () => {
2891
- const { rules } = run(`export const C = () => <Title order={1}><span>Users</span></Title>\n`)
2892
- expect(rules).toContain('in-body-page-title')
2893
- })
2894
-
2895
- it('names PageTitle as the shell-less answer', () => {
2896
- const { output } = run(`export const C = () => <Title order={1}>Page</Title>\n`)
2897
- expect(output).toContain('<PageTitle>')
2898
- })
2899
- })
2900
-
2901
- describe('basalt/responsive-twin', () => {
2902
- it('flags the same control mounted under visibleFrom and hiddenFrom', () => {
2903
- const { code, rules } = run(
2904
- `export const C = () => (\n <div>\n <SegmentedControl visibleFrom="sm" data={[]} />\n <SegmentedControl hiddenFrom="sm" data={[]} />\n </div>\n)\n`,
2905
- )
2906
- expect(code).toBe(1)
2907
- expect(rules).toContain('responsive-twin')
2908
- })
2909
-
2910
- it('flags it when the control sits inside each half rather than being it', () => {
2911
- const { rules } = run(
2912
- `export const C = () => (\n <div>\n <Group visibleFrom="sm"><ViewTabs field={f} /></Group>\n <Stack hiddenFrom="sm"><ViewTabs field={f} /></Stack>\n </div>\n)\n`,
2913
- )
2914
- expect(rules).toContain('responsive-twin')
2915
- })
2916
-
2917
- it('does NOT flag two halves on DIFFERENT breakpoints', () => {
2918
- // `code` is not asserted here: raw visibleFrom/hiddenFrom outside a shell home is its own,
2919
- // unrelated finding (basalt/raw-breakpoint) — this test is only about responsive-twin's silence.
2920
- const { rules } = run(
2921
- `export const C = () => (\n <div>\n <SegmentedControl visibleFrom="sm" data={[]} />\n <SegmentedControl hiddenFrom="md" data={[]} />\n </div>\n)\n`,
2922
- )
2923
- expect(rules).not.toContain('responsive-twin')
2924
- })
2925
-
2926
- it('does NOT flag a pair holding DIFFERENT controls', () => {
2927
- const { rules } = run(
2928
- `export const C = () => (\n <div>\n <SegmentedControl visibleFrom="sm" data={[]} />\n <Select hiddenFrom="sm" data={[]} />\n </div>\n)\n`,
2929
- )
2930
- expect(rules).not.toContain('responsive-twin')
2931
- })
2932
-
2933
- // Same fixture caveat as control-outside-home's owner test: the local `ViewTabs` name is itself a
2934
- // `shadow-basalt-export` finding, so only this rule's silence is asserted.
2935
- it('does NOT flag the module that DEFINES a basalt control — the CSS swap lives there', () => {
2936
- const { rules } = run(
2937
- `export function ViewTabs() {\n return (\n <div>\n <SegmentedControl visibleFrom="sm" data={[]} />\n <SegmentedControl hiddenFrom="sm" data={[]} />\n </div>\n )\n}\n`,
2938
- )
2939
- expect(rules).not.toContain('responsive-twin')
2940
- })
2941
-
2942
- // The owner exemption's second half, the same predicate its two siblings apply: a consumer file
2943
- // that names a helper `PanelRow` and imports basalt is consuming basalt, not defining a control.
2944
- it('DOES flag a file that declares its own PanelRow but imports basalt-ui', () => {
2945
- const { rules } = run(
2946
- `import { Section } from 'basalt-ui'\n` +
2947
- `function PanelRow({ children }) {\n return <div>{children}</div>\n}\n` +
2948
- `export const C = () => (\n <div>\n <SegmentedControl visibleFrom="sm" data={[]} />\n <SegmentedControl hiddenFrom="sm" data={[]} />\n </div>\n)\n`,
2949
- )
2950
- expect(rules).toContain('responsive-twin')
2951
- })
2952
-
2953
- it('honors a scoped theme-allow', () => {
2954
- const { rules } = run(
2955
- `export const C = () => (\n <div>\n <SegmentedControl visibleFrom="sm" data={[]} />\n {/* theme-allow responsive-twin — two genuinely different data sets */}\n <SegmentedControl hiddenFrom="sm" data={[]} />\n </div>\n)\n`,
2956
- )
2957
- expect(rules).not.toContain('responsive-twin')
2958
- })
2959
- })
2960
-
2961
- describe('basalt/search-literal-link', () => {
2962
- const NAV = (search: string) =>
2963
- `export const nav = defineNav({\n sections: [\n { id: 'a', label: 'A', link: linkOptions({ to: '/dashboard'${search} }) },\n ],\n})\n`
2964
-
2965
- it('flags a `search` object literal inside defineNav', () => {
2966
- const { code, rules } = run(NAV(", search: { window: '30d' }"), 'nav.ts')
2967
- expect(code).toBe(1)
2968
- expect(rules).toContain('search-literal-link')
2969
- })
2970
-
2971
- it('flags it inside navGroup too', () => {
2972
- const { rules } = run(
2973
- `export const g = navGroup({ id: 'g', label: 'G' }, [\n { id: 'x', label: 'X', link: linkOptions({ to: '/d', search: { window: '30d' } }) },\n])\n`,
2974
- 'nav.ts',
2975
- )
2976
- expect(rules).toContain('search-literal-link')
2977
- })
2978
-
2979
- it('does NOT flag `search: store.linkSearch` passed by reference', () => {
2980
- const { code, rules } = run(NAV(', search: dashboardFilters.linkSearch'), 'nav.ts')
2981
- expect(code).toBe(0)
2982
- expect(rules).not.toContain('search-literal-link')
2983
- })
2984
-
2985
- it('does NOT flag a linkOptions literal OUTSIDE a nav definition', () => {
2986
- const { code, rules } = run(
2987
- `export const target = linkOptions({ to: '/d', search: { window: '30d' } })\n`,
2988
- 'nav.ts',
2989
- )
2990
- expect(code).toBe(0)
2991
- expect(rules).not.toContain('search-literal-link')
2992
- })
2993
-
2994
- it('honors a scoped theme-allow', () => {
2995
- const { rules } = run(
2996
- `export const nav = defineNav({\n sections: [\n {\n id: 'a',\n label: 'A',\n link: linkOptions({\n to: '/d',\n // theme-allow search-literal-link — a fixed report link, deliberately pinned\n search: { window: '30d' },\n }),\n },\n ],\n})\n`,
2997
- 'nav.ts',
2998
- )
2999
- expect(rules).not.toContain('search-literal-link')
3000
- })
3001
- })
3002
-
3003
- describe('basalt/use-search-from-literal', () => {
3004
- it('flags useSearch({ from: <literal> })', () => {
3005
- const { code, rules } = run(
3006
- `export const useRange = () => useSearch({ from: '/dashboard' })\n`,
3007
- 'hooks.ts',
3008
- )
3009
- expect(code).toBe(1)
3010
- expect(rules).toContain('use-search-from-literal')
3011
- })
3012
-
3013
- it('does NOT flag useSearch({ strict: false })', () => {
3014
- const { code, rules } = run(
3015
- `export const useRange = () => useSearch({ strict: false })\n`,
3016
- 'hooks.ts',
3017
- )
3018
- expect(code).toBe(0)
3019
- expect(rules).not.toContain('use-search-from-literal')
3020
- })
3021
-
3022
- it('honors a scoped theme-allow', () => {
3023
- const { rules } = run(
3024
- `export const useRange = () =>\n useSearch({\n // theme-allow use-search-from-literal — a route-owned loader, never rendered elsewhere\n from: '/dashboard',\n })\n`,
3025
- 'hooks.ts',
3026
- )
3027
- expect(rules).not.toContain('use-search-from-literal')
3028
- })
3029
- })
3030
-
3031
- // ── raw-scroll-container — the C7 widening ───────────────────────────────────
3032
-
3033
- describe('basalt/raw-scroll-container — the home widening (C7)', () => {
3034
- it('flags overflowX inside a home slot', () => {
3035
- const { rules } = run(
3036
- `${BASALT_IMPORT}export const C = () => <PageBar filters={<div style={{ overflowX: 'auto' }} />} />\n`,
3037
- )
3038
- expect(rules).toContain('raw-scroll-container')
3039
- })
3040
-
3041
- // The C7 widening is about a sideways-scrolling row of CONTROLS, which only ever lives in a slot.
3042
- // Counting the body made every wide table and every horizontally scrolling code block on a page
3043
- // an `error` carrying that message — the exact pattern this rule's own comment calls legitimate.
3044
- it('does NOT flag overflowX in a Section BODY — page content, not a control row', () => {
3045
- const { code, rules } = run(
3046
- `${BASALT_IMPORT}export const C = () => (\n <Section title="Raw rows">\n <div style={{ overflowX: 'scroll' }}>\n <table />\n </div>\n </Section>\n)\n`,
3047
- )
3048
- expect(code).toBe(0)
3049
- expect(rules).not.toContain('raw-scroll-container')
3050
- })
3051
-
3052
- it('does NOT flag <ScrollArea scrollbars="x"> around a wide table in a ChartCard body', () => {
3053
- const { rules } = run(
3054
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => (\n <ChartCard title="T">\n <ScrollArea scrollbars="x">\n <table />\n </ScrollArea>\n </ChartCard>\n)\n`,
3055
- )
3056
- expect(rules).not.toContain('raw-scroll-container')
3057
- })
3058
-
3059
- it("does NOT flag a slot on a consumer's own Section — not a basalt home", () => {
3060
- const { code, rules } = run(
3061
- `import { Section } from './layout/section'\n${MANTINE_IMPORT}` +
3062
- `export const C = () => <Section actions={<ScrollArea scrollbars="x" />} />\n`,
3063
- )
3064
- expect(code).toBe(0)
3065
- expect(rules).not.toContain('raw-scroll-container')
3066
- })
3067
-
3068
- it("does NOT flag a consumer's own ScrollArea in a basalt slot", () => {
3069
- const { rules } = run(
3070
- `${BASALT_IMPORT}import { ScrollArea } from './ui/scroll-area'\n` +
3071
- `export const C = () => <PageBar filters={<ScrollArea scrollbars="x" />} />\n`,
3072
- )
3073
- expect(rules).not.toContain('raw-scroll-container')
3074
- })
3075
-
3076
- it('flags <ScrollArea scrollbars="x"> inside a home slot', () => {
3077
- const { rules } = run(
3078
- `${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => <PageBar filters={<ScrollArea scrollbars="x" />} />\n`,
3079
- )
3080
- expect(rules).toContain('raw-scroll-container')
3081
- })
3082
-
3083
- // The original doctrine, unchanged: a horizontal bar outside a home reserves no gutter width, so
3084
- // a code block or a pinned-column table stays its own legitimate pattern.
3085
- it('does NOT flag overflowX outside a home', () => {
3086
- const { code, rules } = run(`const s = { overflowX: 'auto' }\n`, 'lib.ts')
3087
- expect(code).toBe(0)
3088
- expect(rules).not.toContain('raw-scroll-container')
3089
- })
3090
-
3091
- it('does NOT flag <ScrollArea scrollbars="x"> outside a home', () => {
3092
- const { code, rules } = run(
3093
- `${MANTINE_IMPORT}export const C = () => <ScrollArea scrollbars="x" />\n`,
3094
- )
3095
- expect(code).toBe(0)
3096
- expect(rules).not.toContain('raw-scroll-container')
3097
- })
3098
-
3099
- it('honors a scoped theme-allow on the widened half', () => {
3100
- const { rules } = run(
3101
- `${BASALT_IMPORT}export const C = () => (\n <Section\n title="T"\n actions={\n // theme-allow raw-scroll-container — a pinned-column table owns its own scroll node\n <div style={{ overflowX: 'auto' }} />\n }\n />\n)\n`,
3102
- )
3103
- expect(rules).not.toContain('raw-scroll-container')
3104
- })
3105
- })
3106
-
3107
- // ── shadow-basalt-export — the rename table ──────────────────────────────────
3108
-
3109
- describe('basalt/shadow-basalt-export — SHADOW_ALIASES', () => {
3110
- it.each([
3111
- ['PageHeader', 'PageBar'],
3112
- ['WindowSelector', 'RangeFilter'],
3113
- ['SectionTitle', 'Section'],
3114
- ['RefreshButton', 'SyncButton'],
3115
- ['HeroCard', 'StatCard'],
3116
- ])('flags a local %s and names %s as what it forks', (local, canonical) => {
3117
- const { code, rules, output } = run(`export function ${local}() {\n return null\n}\n`)
3118
- expect(code).toBe(1)
3119
- expect(rules).toContain('shadow-basalt-export')
3120
- expect(output).toContain(canonical)
3121
- })
3122
-
3123
- it('flags the const form too', () => {
3124
- const { rules } = run(`export const FilterBar = () => null\n`)
3125
- expect(rules).toContain('shadow-basalt-export')
3126
- })
3127
-
3128
- it('does NOT flag a name that is neither an export nor an alias', () => {
3129
- const { code, rules } = run(`export const RangePickerish = () => null\n`)
3130
- expect(code).toBe(0)
3131
- expect(rules).not.toContain('shadow-basalt-export')
3132
- })
3133
-
3134
- it('is waivable with a scoped theme-allow', () => {
3135
- const { rules } = run(
3136
- `// theme-allow shadow-basalt-export — a marketing hero, unrelated to StatCard\nexport const HeroCard = () => null\n`,
3137
- )
3138
- expect(rules).not.toContain('shadow-basalt-export')
3139
- })
3140
- })
3141
-
3142
- /**
3143
- * The provenance half of the alias table: a file that COMPOSES the export it renames is a wrapper,
3144
- * not a fork. argo's three hero cards each imported `StatCard`, wrapped it, and each took a warn
3145
- * telling them to import the thing they were already importing.
3146
- *
3147
- * Both directions are asserted, because the exemption is only worth having if the rule still fires
3148
- * WITHOUT the import — a wrapper is evidence, and silence on every `HeroCard` in the repo would be
3149
- * the rule switching itself off.
3150
- */
3151
- describe('basalt/shadow-basalt-export — an alias that composes what it renames', () => {
3152
- it('fires on a HeroCard that does not import StatCard', () => {
3153
- const { rules, output } = run(
3154
- `export function HeroCard() {\n return null\n}\n`,
3155
- 'src/hero-card.tsx',
3156
- )
3157
- expect(rules).toContain('shadow-basalt-export')
3158
- expect(output).toContain('StatCard')
3159
- })
3160
-
3161
- it('is silent on a HeroCard that composes the imported StatCard', () => {
3162
- const { code, rules } = run(
3163
- `import { StatCard } from 'basalt-ui'\n` +
3164
- `export function HeroCard() {\n return <StatCard title="x" value="1" />\n}\n`,
3165
- 'src/hero-card.tsx',
3166
- )
3167
- expect(code).toBe(0)
3168
- expect(rules).not.toContain('shadow-basalt-export')
3169
- })
3170
-
3171
- // The provenance test reads the IMPORTED name, not the local one — `StatCard as BaseStatCard` is
3172
- // the canonical way a wrapper avoids shadowing its own import, and a local-name set would answer
3173
- // `BaseStatCard` and miss it.
3174
- it('is silent when the composed export is imported under an alias', () => {
3175
- const { rules } = run(
3176
- `import { StatCard as BaseStatCard } from 'basalt-ui'\n` +
3177
- `export function HeroCard() {\n return <BaseStatCard title="x" value="1" />\n}\n`,
3178
- 'src/hero-card.tsx',
3179
- )
3180
- expect(rules).not.toContain('shadow-basalt-export')
3181
- })
3182
-
3183
- it('is silent from a basalt SUBPATH too, not just the root barrel', () => {
3184
- const { rules } = run(
3185
- `import { RangeFilter } from 'basalt-ui/controls'\n` +
3186
- `export function WindowSelector() {\n return <RangeFilter field={{}} />\n}\n`,
3187
- 'src/window-selector.tsx',
3188
- )
3189
- expect(rules).not.toContain('shadow-basalt-export')
3190
- })
3191
-
3192
- // Importing SOMETHING from basalt is not the exemption — importing the thing you renamed is.
3193
- it('still fires when the file imports a DIFFERENT basalt export', () => {
3194
- const { rules } = run(
3195
- `import { Section } from 'basalt-ui'\n` +
3196
- `export function HeroCard() {\n return <Section title="x" />\n}\n`,
3197
- 'src/hero-card.tsx',
3198
- )
3199
- expect(rules).toContain('shadow-basalt-export')
3200
- })
3201
-
3202
- // The COLLISION half is deliberately not exempted: a local `StatCard` beside an
3203
- // `import { StatCard as Base }` kept the name AND a piece of the original, which is the fork
3204
- // shape this rule most wants to see.
3205
- it('still fires on a name COLLISION even when the export is imported under an alias', () => {
3206
- const { rules } = run(
3207
- `import { StatCard as Base } from 'basalt-ui'\n` +
3208
- `export function StatCard() {\n return <Base title="x" value="1" />\n}\n`,
3209
- 'src/stat-card.tsx',
3210
- )
3211
- expect(rules).toContain('shadow-basalt-export')
3212
- })
3213
-
3214
- // COMPOSITION, not import. A type-only import is erased at compile time, so the shape a
3215
- // props-copying fork actually writes — `ComponentProps<typeof StatCard>` off an
3216
- // `import type` — composes nothing and used to exempt the whole file.
3217
- it('still fires on a type-only import of the export it renames', () => {
3218
- const { rules } = run(
3219
- `import type { StatCard } from 'basalt-ui'\n` +
3220
- `export function HeroCard() {\n return <div />\n}\n`,
3221
- 'src/hero-card.tsx',
3222
- )
3223
- expect(rules).toContain('shadow-basalt-export')
3224
- })
3225
-
3226
- it('still fires on an inline `type` specifier', () => {
3227
- const { rules } = run(
3228
- `import { type StatCard } from 'basalt-ui'\n` +
3229
- `export function HeroCard() {\n return <div />\n}\n`,
3230
- 'src/hero-card.tsx',
3231
- )
3232
- expect(rules).toContain('shadow-basalt-export')
3233
- })
3234
-
3235
- // `typeof StatCard` is a `TSTypeQuery` around a plain Identifier, so a VALUE import used only in
3236
- // a type position has to be rejected too — otherwise the props-copying fork just drops `type`.
3237
- it('still fires when a value import is only used in a type position', () => {
3238
- const { rules } = run(
3239
- `import { StatCard } from 'basalt-ui'\n` +
3240
- `type P = { card: typeof StatCard }\n` +
3241
- `export function HeroCard(props: P) {\n return <div>{String(props)}</div>\n}\n`,
3242
- 'src/hero-card.tsx',
3243
- )
3244
- expect(rules).toContain('shadow-basalt-export')
3245
- })
3246
-
3247
- it('still fires on a dead import left behind after the body was re-rolled', () => {
3248
- const { rules } = run(
3249
- `import { StatCard } from 'basalt-ui'\n` +
3250
- `export function HeroCard() {\n return <div />\n}\n`,
3251
- 'src/hero-card.tsx',
3252
- )
3253
- expect(rules).toContain('shadow-basalt-export')
3254
- })
3255
-
3256
- // A JSX tag is not the only way to compose: a wrapper that hands the component on as a prop or to
3257
- // `createElement` composes it just as much, and a JSX-only test would report both.
3258
- it('is silent when the import is passed on as a prop rather than rendered', () => {
3259
- const { code, rules } = run(
3260
- `import { StatCard } from 'basalt-ui'\n` +
3261
- `export function HeroCard() {\n return <Slot component={StatCard} />\n}\n`,
3262
- 'src/hero-card.tsx',
3263
- )
3264
- expect(code).toBe(0)
3265
- expect(rules).not.toContain('shadow-basalt-export')
3266
- })
3267
- })
3268
-
3269
- // ── SURFACES ↔ the plugin registry ───────────────────────────────────────────
3270
-
3271
- describe('PLUGIN_RULE_ID_LIST ↔ the plugin', () => {
3272
- // surfaces.ts cannot import the plugin (it is dependency-free by contract, and the plugin is a
3273
- // standalone .js loaded out of a consumer's node_modules), so the list is hand-maintained and
3274
- // THIS is the gate that keeps it honest.
3275
- it('is exactly the plugin s registered rule ids', () => {
3276
- expect([...PLUGIN_RULE_ID_LIST].toSorted()).toEqual(Object.keys(basaltPlugin.rules).toSorted())
3277
- })
3278
-
3279
- it('maps every plugin rule to exactly one surface', () => {
3280
- const owners = new Map<string, string[]>()
3281
- for (const [key, spec] of Object.entries(SURFACES)) {
3282
- if (spec.kind !== 'doctrine') continue
3283
- for (const id of spec.pluginRules) owners.set(id, [...(owners.get(id) ?? []), key])
3284
- }
3285
- for (const id of PLUGIN_RULE_ID_LIST) {
3286
- expect([id, owners.get(id)?.length ?? 0]).toEqual([id, 1])
3287
- }
3288
- // …and no surface claims an id the plugin does not register (the type already forbids it; this
3289
- // catches a list entry deleted without its surface).
3290
- for (const id of owners.keys()) {
3291
- expect([id, (PLUGIN_RULE_ID_LIST as readonly string[]).includes(id)]).toEqual([id, true])
3292
- }
3293
- })
3294
-
3295
- it("puts the shell rule on the root barrel's surface (wave 6)", () => {
3296
- expect(SURFACES['.'].pluginRules).toContain('hand-rolled-shell')
3297
- })
3298
-
3299
- it('gives ./controls the control-tier rules', () => {
3300
- expect([...SURFACES['./controls'].pluginRules].toSorted()).toEqual([
3301
- 'bound-control-outside-home',
3302
- 'control-outside-home',
3303
- 'control-size-literal',
3304
- 'hand-rolled-filter',
3305
- 'responsive-twin',
3306
- ])
3307
- })
3308
- })
3309
-
3310
- // ── query-fn-unwrap (F5) ─────────────────────────────────────────────────────
3311
-
3312
- describe('basalt/query-fn-unwrap', () => {
3313
- const IMPORT = `import { unwrap } from 'basalt-ui/query'\n`
3314
-
3315
- it('flags a queryFn that fetches with no unwrap', () => {
3316
- const { code, rules } = run(
3317
- `${IMPORT}export const o = { queryKey: ['t'], queryFn: () => fetch('/api/t') }\n`,
3318
- )
3319
- expect(code).toBe(1)
3320
- expect(rules).toContain('query-fn-unwrap')
3321
- })
3322
-
3323
- it('flags the async .json() form', () => {
3324
- const { code, rules } = run(
3325
- `${IMPORT}export const o = {\n queryKey: ['t'],\n` +
3326
- ` queryFn: async () => (await fetch('/api/t')).json(),\n}\n`,
3327
- )
3328
- expect(code).toBe(1)
3329
- expect(rules).toContain('query-fn-unwrap')
3330
- })
3331
-
3332
- it('does NOT flag a queryFn that wraps the call', () => {
3333
- const { code, rules } = run(
3334
- `${IMPORT}export const o = { queryKey: ['t'], queryFn: () => unwrap(fetch('/api/t')) }\n`,
3335
- )
3336
- expect(code).toBe(0)
3337
- expect(rules).not.toContain('query-fn-unwrap')
3338
- })
3339
-
3340
- it('does NOT flag a queryFn with no fetch in it', () => {
3341
- const { code, rules } = run(
3342
- `${IMPORT}export const o = { queryKey: ['t'], queryFn: () => client.t.get() }\n`,
3343
- )
3344
- expect(code).toBe(0)
3345
- expect(rules).not.toContain('query-fn-unwrap')
3346
- })
3347
-
3348
- // The scope gate: with no basalt-ui/query import this is an opinion about `fetch`, which basalt
3349
- // does not have.
3350
- it('does NOT flag a file that never imports basalt-ui/query', () => {
3351
- const { code, rules } = run(
3352
- `export const o = { queryKey: ['t'], queryFn: () => fetch('/api/t') }\n`,
3353
- )
3354
- expect(code).toBe(0)
3355
- expect(rules).not.toContain('query-fn-unwrap')
3356
- })
3357
-
3358
- // The documented blind spot — a reference, not a function literal. Pinned so a widening moves it.
3359
- it('does NOT see a queryFn passed as a reference', () => {
3360
- const { code, rules } = run(
3361
- `${IMPORT}const load = () => fetch('/api/t')\n` +
3362
- `export const o = { queryKey: ['t'], queryFn: load }\n`,
3363
- )
3364
- expect(code).toBe(0)
3365
- expect(rules).not.toContain('query-fn-unwrap')
3366
- })
3367
-
3368
- it('flags a fetching queryFn in a file importing the root barrel', () => {
3369
- const { code, rules } = run(
3370
- `import { unwrap } from 'basalt-ui'\nexport const o = { queryKey: ['t'], queryFn: () => fetch('/api/t') }\n`,
3371
- )
3372
- expect(code).toBe(1)
3373
- expect(rules).toContain('query-fn-unwrap')
3374
- })
3375
-
3376
- it('honours a theme-allow naming the rule', () => {
3377
- const { code, rules } = run(
3378
- `${IMPORT}export const o = {\n queryKey: ['t'],\n` +
3379
- ` // theme-allow query-fn-unwrap — raw Response is the point, this reads a blob\n` +
3380
- ` queryFn: () => fetch('/api/t'),\n}\n`,
3381
- )
3382
- expect(code).toBe(0)
3383
- expect(rules).not.toContain('query-fn-unwrap')
3384
- })
3385
- })
3386
-
3387
- // ── forms-field-key ──────────────────────────────────────────────────────────
3388
-
3389
- describe('basalt/forms-field-key', () => {
3390
- const FORMS = `import { inputProps } from 'basalt-ui/forms'\n`
3391
-
3392
- it('flags a spread inputProps() with no sibling key', () => {
3393
- const { code, rules, output } = run(
3394
- `${FORMS}export const C = () => <TextInput {...inputProps(form, 'email')} />\n`,
3395
- )
3396
- expect(code).toBe(1)
3397
- expect(rules).toContain('forms-field-key')
3398
- expect(output).toContain('no sibling `key`')
3399
- })
3400
-
3401
- it('does NOT flag the documented two-call idiom', () => {
3402
- const { code, rules } = run(
3403
- `import { fieldKey, inputProps } from 'basalt-ui/forms'\n` +
3404
- `export const C = () => <TextInput key={fieldKey(form, 'e')} {...inputProps(form, 'e')} />\n`,
3405
- )
3406
- expect(code).toBe(0)
3407
- expect(rules).not.toContain('forms-field-key')
3408
- })
3409
-
3410
- // An `inputProps` a consumer wrote themselves is not basalt's — the same provenance gate the
3411
- // control and chart rules take, one lane over.
3412
- it('does NOT flag a same-named helper imported from somewhere else', () => {
3413
- const { code, rules } = run(
3414
- `import { inputProps } from './my-helpers'\n` +
3415
- `export const C = () => <TextInput {...inputProps(form, 'email')} />\n`,
3416
- )
3417
- expect(code).toBe(0)
3418
- expect(rules).not.toContain('forms-field-key')
3419
- })
3420
-
3421
- it('resolves an aliased import — `inputProps as f` is still inputProps', () => {
3422
- const { code, rules } = run(
3423
- `import { inputProps as f } from 'basalt-ui/forms'\n` +
3424
- `export const C = () => <TextInput {...f(form, 'email')} />\n`,
3425
- )
3426
- expect(code).toBe(1)
3427
- expect(rules).toContain('forms-field-key')
3428
- })
3429
-
3430
- // `field` was the @deprecated 1.27 alias and is gone; this rule resolves `inputProps` alone, so a
3431
- // spread `field(…)` import is no longer its concern (the unresolved import fails the compile).
3432
- it('does NOT flag a spread field() — only inputProps is resolved', () => {
3433
- const { rules } = run(
3434
- `import { field } from 'basalt-ui/forms'\n` +
3435
- `export const C = () => <TextInput key="e" {...field(form, 'email')} />\n`,
3436
- )
3437
- expect(rules).not.toContain('forms-field-key')
3438
- })
3439
-
3440
- it('honours a theme-allow naming the rule', () => {
3441
- const { code, rules } = run(
3442
- `${FORMS}export const C = () => (\n` +
3443
- ` // theme-allow forms-field-key — this input is remounted by its parent\n` +
3444
- ` <TextInput {...inputProps(form, 'email')} />\n)\n`,
3445
- )
3446
- expect(code).toBe(0)
3447
- expect(rules).not.toContain('forms-field-key')
3448
- })
3449
-
3450
- // The autofix has to produce COMPILING code: an inserted `fieldKey(…)` with no import is a worse
3451
- // outcome than the missing key it replaced.
3452
- it('autofixes the key in, with the same arguments, and adds fieldKey to the import once', () => {
3453
- const source =
3454
- `${FORMS}export const C = () => (\n` +
3455
- ` <form>\n` +
3456
- ` <TextInput {...inputProps(form, 'email')} label="Email" />\n` +
3457
- ` <TextInput {...inputProps(form, 'name')} />\n` +
3458
- ` </form>\n)\n`
3459
- writeFileSync(resolve(dir, 'fixture.tsx'), source)
3460
- Bun.spawnSync([OXLINT_BIN, '-c', '.oxlintrc.json', '--fix', 'fixture.tsx'], { cwd: dir })
3461
- const fixed = readFileSync(resolve(dir, 'fixture.tsx'), 'utf8')
3462
- expect(fixed).toContain(`import { inputProps, fieldKey } from 'basalt-ui/forms'`)
3463
- expect(fixed).toContain(`key={fieldKey(form, 'email')} {...inputProps(form, 'email')}`)
3464
- expect(fixed).toContain(`key={fieldKey(form, 'name')} {...inputProps(form, 'name')}`)
3465
- // Once, not twice: two overlapping edits to one import declaration would drop one of them.
3466
- expect(fixed.match(/fieldKey,|, fieldKey/g)).toHaveLength(1)
3467
- })
3468
-
3469
- it('does not re-add fieldKey when it is already imported', () => {
3470
- const source =
3471
- `import { fieldKey, inputProps } from 'basalt-ui/forms'\n` +
3472
- `export const C = () => <TextInput {...inputProps(form, 'email')} />\n`
3473
- writeFileSync(resolve(dir, 'fixture.tsx'), source)
3474
- Bun.spawnSync([OXLINT_BIN, '-c', '.oxlintrc.json', '--fix', 'fixture.tsx'], { cwd: dir })
3475
- const fixed = readFileSync(resolve(dir, 'fixture.tsx'), 'utf8')
3476
- expect(fixed).toContain(`import { fieldKey, inputProps } from 'basalt-ui/forms'`)
3477
- expect(fixed).toContain(`key={fieldKey(form, 'email')}`)
3478
- })
3479
- })
3480
-
3481
- // ── raw-breakpoint ────────────────────────────────────────────────────────────
3482
-
3483
- describe('basalt/raw-breakpoint', () => {
3484
- it('flags a responsive-object prop on an imported Mantine component', () => {
3485
- const { rules } = run(
3486
- `import { SimpleGrid } from '@mantine/core'\n` +
3487
- `export const C = () => <SimpleGrid cols={{ base: 1, sm: 2 }} />\n`,
3488
- )
3489
- expect(rules).toContain('raw-breakpoint')
3490
- })
3491
-
3492
- it('flags a responsive object nested one level down (Mantine AppShell idiom)', () => {
3493
- const { rules } = run(
3494
- `import { AppShell } from '@mantine/core'\n` +
3495
- `export const C = () => <AppShell footer={{ height: { base: 60, sm: 0 } }}>hi</AppShell>\n`,
3496
- )
3497
- expect(rules).toContain('raw-breakpoint')
3498
- })
3499
-
3500
- it('flags a responsive object behind a same-file const binding', () => {
3501
- const { rules } = run(
3502
- `import { SimpleGrid } from '@mantine/core'\n` +
3503
- `const responsiveCols = { base: 1, sm: 2 }\n` +
3504
- `export const C = () => <SimpleGrid cols={responsiveCols} />\n`,
3505
- )
3506
- expect(rules).toContain('raw-breakpoint')
3507
- })
3508
-
3509
- // The nested-property half: a property VALUE that is itself an Identifier must resolve through
3510
- // the same-file const map, exactly as the attribute's own top-level value already does.
3511
- it('flags a responsive object behind a const used as a nested property value', () => {
3512
- const { rules } = run(
3513
- `import { AppShell } from '@mantine/core'\n` +
3514
- `const h = { base: 60, sm: 0 }\n` +
3515
- `export const C = () => <AppShell footer={{ height: h }}>hi</AppShell>\n`,
3516
- )
3517
- expect(rules).toContain('raw-breakpoint')
3518
- })
3519
-
3520
- // A name declared twice in the file has no single binding without a scope manager, so it is
3521
- // dropped rather than resolved last-declaration-wins — the outer (non-responsive) `cols` the JSX
3522
- // actually references must not be flagged via the inner function's responsive one.
3523
- it('does NOT flag a name redeclared in the file — an ambiguous binding is skipped, not guessed', () => {
3524
- const { rules } = run(
3525
- `import { SimpleGrid } from '@mantine/core'\n` +
3526
- `const cols = { fixed: 2 }\n` +
3527
- `function Other() {\n const cols = { base: 1, sm: 2 }\n return null\n}\n` +
3528
- `export const C = () => <SimpleGrid cols={cols} />\n`,
3529
- )
3530
- expect(rules).not.toContain('raw-breakpoint')
3531
- })
3532
-
3533
- it('does NOT flag a fixed cols on the same component', () => {
3534
- const { rules } = run(
3535
- `import { SimpleGrid } from '@mantine/core'\n` +
3536
- `export const C = () => <SimpleGrid cols={2} />\n`,
3537
- )
3538
- expect(rules).not.toContain('raw-breakpoint')
3539
- })
3540
-
3541
- it('does NOT flag an object prop on a component never imported from @mantine/*', () => {
3542
- const { rules } = run(`export const C = () => <WidgetGrid cols={{ base: 1, sm: 2 }} />\n`)
3543
- expect(rules).not.toContain('raw-breakpoint')
3544
- })
3545
-
3546
- // The recipe's px keys are CONTAINER_CLASSES written out by hand in two places — the plugin
3547
- // (plain JS, cannot import TS source) and MIGRATING's rule entry. Retuning a class must fail here.
3548
- describe('recipe px literals ↔ CONTAINER_CLASSES', () => {
3549
- const boundaries = new Set<number>(Object.values(CONTAINER_CLASSES).filter((px) => px > 0))
3550
- const pxLiterals = (text: string) => [...text.matchAll(/(\d+)px/g)].map((m) => Number(m[1]))
3551
-
3552
- it('every px key in the rule messages is a CONTAINER_CLASSES boundary', () => {
3553
- const found = pxLiterals(RAW_BREAKPOINT_RECIPE as string)
3554
- expect(found.length).toBeGreaterThan(0)
3555
- for (const px of found) expect([px, boundaries.has(px)]).toEqual([px, true])
3556
- })
3557
-
3558
- it("every px value and the class table in MIGRATING's raw-breakpoint entry match", () => {
3559
- const migrating = readFileSync(resolve(import.meta.dir, '../MIGRATING.md'), 'utf8')
3560
- const start = migrating.indexOf('### `basalt/raw-breakpoint`')
3561
- expect(start).toBeGreaterThan(-1)
3562
- const end = migrating.indexOf('\n### ', start + 1)
3563
- const section = migrating.slice(start, end === -1 ? undefined : end)
3564
- for (const px of pxLiterals(section)) expect([px, boundaries.has(px)]).toEqual([px, true])
3565
- const { compact, regular, wide } = CONTAINER_CLASSES
3566
- expect(section).toContain(`compact ${compact} · regular ${regular} · wide ${wide}`)
3567
- })
3568
- })
3569
-
3570
- // The sanctioned answer, read from @mantine/core 9.3 source: SimpleGrid type="container" writes
3571
- // each key verbatim as `@container simple-grid (min-width: <key>)`, Grid type="container" only
3572
- // goes container WITH a `breakpoints` map. Exempt exactly where Mantine resolves the object.
3573
- describe('Mantine type="container" grids', () => {
3574
- const grid = (jsx: string) =>
3575
- run(`import { Grid, SimpleGrid } from '@mantine/core'\nexport const C = () => ${jsx}\n`)
3576
- const CONTAINER_MESSAGE = /Theme breakpoint name under type="container"/
3577
-
3578
- it('does NOT flag a px-keyed container SimpleGrid (the recipe)', () => {
3579
- expect(
3580
- grid(`<SimpleGrid type="container" cols={{ base: 1, '480px': 2, '800px': 3 }} />`).rules,
3581
- ).not.toContain('raw-breakpoint')
3582
- })
3583
-
3584
- it('does NOT flag CONTAINER_KEYS computed keys (named, aliased, namespace)', () => {
3585
- const keyed = (imp: string, key: string) =>
3586
- run(
3587
- `import { SimpleGrid } from '@mantine/core'\n${imp}\n` +
3588
- `export const C = () => <SimpleGrid type="container" cols={{ base: 1, [${key}.regular]: 2, [${key}.wide]: 3 }} />\n`,
3589
- ).rules
3590
- expect(
3591
- keyed(`import { CONTAINER_KEYS } from 'basalt-ui/tokens'`, 'CONTAINER_KEYS'),
3592
- ).not.toContain('raw-breakpoint')
3593
- expect(keyed(`import { CONTAINER_KEYS as CQ } from 'basalt-ui/tokens'`, 'CQ')).not.toContain(
3594
- 'raw-breakpoint',
3595
- )
3596
- expect(
3597
- keyed(`import * as tokens from 'basalt-ui/tokens'`, 'tokens.CONTAINER_KEYS'),
3598
- ).not.toContain('raw-breakpoint')
3599
- })
3600
-
3601
- it('does NOT flag a lone `base` under type="container"', () => {
3602
- expect(grid(`<SimpleGrid type="container" cols={{ base: 2 }} />`).rules).not.toContain(
3603
- 'raw-breakpoint',
3604
- )
3605
- })
3606
-
3607
- it('flags a theme-named key on a container SimpleGrid — Mantine emits a dead (min-width: sm)', () => {
3608
- const { rules, output } = grid(`<SimpleGrid type="container" cols={{ base: 1, sm: 2 }} />`)
3609
- expect(rules).toContain('raw-breakpoint')
3610
- expect(CONTAINER_MESSAGE.test(output)).toBe(true)
3611
- })
3612
-
3613
- it('still flags type="media" (and a dynamic type) with the viewport message', () => {
3614
- for (const type of [`"media"`, `{kind}`]) {
3615
- const { rules, output } = grid(`<SimpleGrid type=${type} cols={{ base: 1, sm: 2 }} />`)
3616
- expect(rules).toContain('raw-breakpoint')
3617
- expect(CONTAINER_MESSAGE.test(output)).toBe(false)
3618
- }
3619
- })
3620
-
3621
- it('does NOT flag Grid.Col spans under a container Grid with a breakpoints map', () => {
3622
- const src =
3623
- `<Grid type="container" breakpoints={{ xs: '240px', sm: '480px' }}>\n` +
3624
- ` {items.map((i) => <Grid.Col key={i} span={{ base: 12, sm: 6 }}>x</Grid.Col>)}\n` +
3625
- `</Grid>`
3626
- expect(grid(src).rules).not.toContain('raw-breakpoint')
3627
- })
3628
-
3629
- it('flags Grid.Col spans under a container Grid with NO breakpoints — Mantine falls back to media', () => {
3630
- const { rules, output } = grid(
3631
- `<Grid type="container"><Grid.Col span={{ base: 12, sm: 6 }}>x</Grid.Col></Grid>`,
3632
- )
3633
- expect(rules).toContain('raw-breakpoint')
3634
- expect(CONTAINER_MESSAGE.test(output)).toBe(true)
3635
- })
3636
-
3637
- it('reports a const-extracted theme-keyed object on a container SimpleGrid — still a dead query', () => {
3638
- const { rules, output } = run(
3639
- `import { SimpleGrid } from '@mantine/core'\n` +
3640
- `const cols = { base: 1, sm: 2 }\n` +
3641
- `export const C = () => <SimpleGrid type="container" cols={cols} />\n`,
3642
- )
3643
- expect(rules).toContain('raw-breakpoint')
3644
- expect(CONTAINER_MESSAGE.test(output)).toBe(true)
3645
- })
3646
-
3647
- // Grid goes container only on a truthy map, and an empty one emits no query — so the exemption
3648
- // needs a map that statically resolves to a non-empty object, not the attribute's presence.
3649
- it.each([
3650
- ['undefined', `breakpoints={undefined}`, ''],
3651
- ['an empty object', `breakpoints={{}}`, ''],
3652
- ['an unresolvable identifier', `breakpoints={imported}`, `import { imported } from './bp'\n`],
3653
- ])('flags Grid.Col spans under a container Grid whose breakpoints is %s', (_, bp, extra) => {
3654
- const { rules, output } = run(
3655
- `import { Grid } from '@mantine/core'\n${extra}` +
3656
- `export const C = () => <Grid type="container" ${bp}><Grid.Col span={{ base: 12, sm: 6 }}>x</Grid.Col></Grid>\n`,
3657
- )
3658
- expect(rules).toContain('raw-breakpoint')
3659
- expect(CONTAINER_MESSAGE.test(output)).toBe(true)
3660
- })
3661
-
3662
- it('does NOT flag Grid.Col spans under a container Grid whose breakpoints is a same-file const', () => {
3663
- const { rules } = run(
3664
- `import { Grid } from '@mantine/core'\n` +
3665
- `const bp = { xs: '240px', sm: '480px', md: '800px', lg: '800px', xl: '800px' }\n` +
3666
- `export const C = () => <Grid type="container" breakpoints={bp}><Grid.Col span={{ base: 12, sm: 6 }}>x</Grid.Col></Grid>\n`,
3667
- )
3668
- expect(rules).not.toContain('raw-breakpoint')
3669
- })
3670
-
3671
- // The shipped map is the one IMPORTED map trusted: its value is known, so five route files no
3672
- // longer copy the same literal. Provenance-gated on `basalt-ui/tokens`, alias-safe.
3673
- const SPAN = `<Grid.Col span={{ base: 12, sm: 6 }}>x</Grid.Col>`
3674
- it.each([
3675
- [
3676
- 'the named import',
3677
- `import { CONTAINER_GRID_BREAKPOINTS } from 'basalt-ui/tokens'`,
3678
- 'CONTAINER_GRID_BREAKPOINTS',
3679
- ],
3680
- [
3681
- 'an aliased import',
3682
- `import { CONTAINER_GRID_BREAKPOINTS as bp } from 'basalt-ui/tokens'`,
3683
- 'bp',
3684
- ],
3685
- [
3686
- 'a same-file alias of it',
3687
- `import { CONTAINER_GRID_BREAKPOINTS } from 'basalt-ui/tokens'\nconst bp = CONTAINER_GRID_BREAKPOINTS`,
3688
- 'bp',
3689
- ],
3690
- ])(
3691
- 'does NOT flag Grid.Col spans under breakpoints={CONTAINER_GRID_BREAKPOINTS} (%s)',
3692
- (_, imp, ref) => {
3693
- const { rules } = run(
3694
- `import { Grid } from '@mantine/core'\n${imp}\n` +
3695
- `export const C = () => <Grid type="container" breakpoints={${ref}}>${SPAN}</Grid>\n`,
3696
- )
3697
- expect(rules).not.toContain('raw-breakpoint')
3698
- },
3699
- )
3700
-
3701
- it.each([
3702
- ['another module', `import { CONTAINER_GRID_BREAKPOINTS } from './tokens'`],
3703
- ['a type-only import', `import type { CONTAINER_GRID_BREAKPOINTS } from 'basalt-ui/tokens'`],
3704
- [
3705
- 'another basalt-ui/tokens name',
3706
- `import { CONTAINER_CLASSES as CONTAINER_GRID_BREAKPOINTS } from 'basalt-ui/tokens'`,
3707
- ],
3708
- ])('still flags an imported map of the same name from %s', (_, imp) => {
3709
- const { rules, output } = run(
3710
- `import { Grid } from '@mantine/core'\n${imp}\n` +
3711
- `export const C = () => <Grid type="container" breakpoints={CONTAINER_GRID_BREAKPOINTS}>${SPAN}</Grid>\n`,
3712
- )
3713
- expect(rules).toContain('raw-breakpoint')
3714
- expect(CONTAINER_MESSAGE.test(output)).toBe(true)
3715
- })
3716
-
3717
- const NS = `import * as tokens from 'basalt-ui/tokens'`
3718
- it.each([
3719
- ['a member of the namespace import', NS, 'tokens.CONTAINER_GRID_BREAKPOINTS'],
3720
- ['a computed member', NS, `tokens['CONTAINER_GRID_BREAKPOINTS']`],
3721
- ['a const alias of the member', `${NS}\nconst bp = tokens.CONTAINER_GRID_BREAKPOINTS`, 'bp'],
3722
- ])('does NOT flag Grid.Col spans under %s', (_, imp, ref) => {
3723
- const { rules } = run(
3724
- `import { Grid } from '@mantine/core'\n${imp}\n` +
3725
- `export const C = () => <Grid type="container" breakpoints={${ref}}>${SPAN}</Grid>\n`,
3726
- )
3727
- expect(rules).not.toContain('raw-breakpoint')
3728
- })
3729
-
3730
- it.each([
3731
- ['another module', `import * as tokens from './tokens'`, 'tokens.CONTAINER_GRID_BREAKPOINTS'],
3732
- ['another member', NS, 'tokens.CONTAINER_CLASSES'],
3733
- [
3734
- 'a parameter shadowing the namespace',
3735
- `${NS}\nexport const Used = () => tokens.VX`,
3736
- 'tokens.CONTAINER_GRID_BREAKPOINTS',
3737
- '({ tokens }: { tokens: { CONTAINER_GRID_BREAKPOINTS: Record<string, string> } })',
3738
- ],
3739
- ])('still flags a namespace member from %s', (_, imp, ref, params = '()') => {
3740
- const { rules, output } = run(
3741
- `import { Grid } from '@mantine/core'\n${imp}\n` +
3742
- `export const C = ${params} => <Grid type="container" breakpoints={${ref}}>${SPAN}</Grid>\n`,
3743
- )
3744
- expect(rules).toContain('raw-breakpoint')
3745
- expect(CONTAINER_MESSAGE.test(output)).toBe(true)
3746
- })
3747
-
3748
- // Trust follows the BINDING, not the name: a shadow of the import is someone else's value.
3749
- it.each([
3750
- [
3751
- 'a parameter',
3752
- `export const C = ({ bp }: { bp: Record<string, string> }) => <Grid type="container" breakpoints={bp}>${SPAN}</Grid>`,
3753
- ],
3754
- [
3755
- 'an inner const',
3756
- `export const C = () => {\n const bp = pick()\n return <Grid type="container" breakpoints={bp}>${SPAN}</Grid>\n}`,
3757
- ],
3758
- [
3759
- 'an inner const aliasing a parameter',
3760
- `export function C(props: { m: Record<string, string> }) {\n const bp = props.m\n return <Grid type="container" breakpoints={bp}>${SPAN}</Grid>\n}`,
3761
- ],
3762
- ])('flags breakpoints={bp} when bp is %s shadowing the aliased import', (_, component) => {
3763
- const { rules, output } = run(
3764
- `import { Grid } from '@mantine/core'\n` +
3765
- `import { CONTAINER_GRID_BREAKPOINTS as bp } from 'basalt-ui/tokens'\n` +
3766
- `export const Used = () => <Grid type="container" breakpoints={bp}>x</Grid>\n` +
3767
- `${component}\n`,
3768
- )
3769
- expect(rules).toContain('raw-breakpoint')
3770
- expect(CONTAINER_MESSAGE.test(output)).toBe(true)
3771
- })
3772
-
3773
- it('flags a parameter shadowing the unaliased import name', () => {
3774
- const { rules } = run(
3775
- `import { Grid } from '@mantine/core'\n` +
3776
- `import { CONTAINER_GRID_BREAKPOINTS } from 'basalt-ui/tokens'\n` +
3777
- `export const C = ({ CONTAINER_GRID_BREAKPOINTS }: { CONTAINER_GRID_BREAKPOINTS: Record<string, string> }) =>\n` +
3778
- ` <Grid type="container" breakpoints={CONTAINER_GRID_BREAKPOINTS}>${SPAN}</Grid>\n`,
3779
- )
3780
- expect(rules).toContain('raw-breakpoint')
3781
- })
3782
-
3783
- // Only the grid-keyed props route through the container queries; Box style props on the same
3784
- // element still compile to viewport @media, so they keep the ordinary viewport message.
3785
- it.each([
3786
- [
3787
- 'SimpleGrid p',
3788
- `<SimpleGrid type="container" cols={{ base: 1, '480px': 2 }} p={{ base: 'xs', lg: 'md' }} />`,
3789
- ],
3790
- [
3791
- 'Grid mt',
3792
- `<Grid type="container" breakpoints={{ xs: '240px', sm: '480px', md: '800px', lg: '800px', xl: '800px' }} mt={{ base: 0, sm: 'md' }}>x</Grid>`,
3793
- ],
3794
- [
3795
- 'Grid.Col mih',
3796
- `<Grid type="container" breakpoints={{ xs: '240px', sm: '480px', md: '800px', lg: '800px', xl: '800px' }}><Grid.Col span={6} mih={{ base: 80, lg: 120 }}>x</Grid.Col></Grid>`,
3797
- ],
3798
- ])('flags a Box style prop on a container grid as viewport (%s)', (_, jsx) => {
3799
- const { rules, output } = grid(jsx)
3800
- expect(rules).toContain('raw-breakpoint')
3801
- expect(CONTAINER_MESSAGE.test(output)).toBe(false)
3802
- })
3803
-
3804
- it('does NOT flag container-routed spacing props on a container grid', () => {
3805
- const src =
3806
- `<Grid type="container" breakpoints={{ xs: '240px', sm: '480px', md: '800px', lg: '800px', xl: '800px' }} gap={{ base: 'xs', sm: 'md' }}>` +
3807
- `<Grid.Col span={{ base: 12, sm: 6 }} order={{ base: 2, sm: 1 }}>x</Grid.Col></Grid>`
3808
- expect(grid(src).rules).not.toContain('raw-breakpoint')
3809
- })
3810
-
3811
- it('still flags Grid.Col spans under an ordinary Grid', () => {
3812
- expect(
3813
- grid(`<Grid><Grid.Col span={{ base: 12, sm: 6 }}>x</Grid.Col></Grid>`).rules,
3814
- ).toContain('raw-breakpoint')
3815
- })
3816
- })
3817
-
3818
- it('flags visibleFrom/hiddenFrom outside a shell home', () => {
3819
- const { rules } = run(
3820
- `import { Box } from '@mantine/core'\n` +
3821
- `export const C = () => <Box visibleFrom="sm">desktop only</Box>\n`,
3822
- )
3823
- expect(rules).toContain('raw-breakpoint')
3824
- })
3825
-
3826
- it('does NOT flag visibleFrom/hiddenFrom inside a file that DEFINES BasaltShell', () => {
3827
- const { rules } = run(
3828
- `import { Box } from '@mantine/core'\n` +
3829
- `export function BasaltShell() {\n return <Box visibleFrom="sm">desktop only</Box>\n}\n`,
3830
- )
3831
- expect(rules).not.toContain('raw-breakpoint')
3832
- })
3833
-
3834
- // The exemption is uniform across all four shapes: a file that IS the shell may also carry a
3835
- // responsive-object prop, not only visibleFrom/hiddenFrom.
3836
- it('does NOT flag a responsive-object prop inside a file that DEFINES BasaltShell', () => {
3837
- const { rules } = run(
3838
- `import { SimpleGrid } from '@mantine/core'\n` +
3839
- `export function BasaltShell() {\n return null\n}\n` +
3840
- `export const C = () => <SimpleGrid cols={{ base: 1, sm: 2 }} />\n`,
3841
- )
3842
- expect(rules).not.toContain('raw-breakpoint')
3843
- })
3844
-
3845
- it('does NOT flag visibleFrom/hiddenFrom inside a file that DEFINES a C9 control (ViewTabs) and imports no basalt-ui', () => {
3846
- const { rules } = run(
3847
- `import { Box } from '@mantine/core'\n` +
3848
- `export function ViewTabs() {\n return <Box visibleFrom="sm">desktop only</Box>\n}\n`,
3849
- )
3850
- expect(rules).not.toContain('raw-breakpoint')
3851
- })
3852
-
3853
- it('flags an import of useMediaQuery/useMatches/useViewportSize from @mantine/*', () => {
3854
- expect(run(`import { useMediaQuery } from '@mantine/hooks'\n`).rules).toContain(
3855
- 'raw-breakpoint',
3856
- )
3857
- expect(run(`import { useMatches } from '@mantine/core'\n`).rules).toContain('raw-breakpoint')
3858
- expect(run(`import { useViewportSize } from '@mantine/hooks'\n`).rules).toContain(
3859
- 'raw-breakpoint',
3860
- )
3861
- })
3862
-
3863
- it('does NOT flag useMatches imported from a non-Mantine router (name collision)', () => {
3864
- // @tanstack/react-router (and react-router) export their own unrelated `useMatches` —
3865
- // basalt's own `src/router-tanstack/index.ts` imports it; scoped to `@mantine/*` sources only.
3866
- expect(run(`import { useMatches } from '@tanstack/react-router'\n`).rules).not.toContain(
3867
- 'raw-breakpoint',
3868
- )
3869
- expect(run(`import { useViewportSize } from 'some-lib'\n`).rules).not.toContain(
3870
- 'raw-breakpoint',
3871
- )
3872
- })
3873
-
3874
- it('flags window.matchMedia and window.innerWidth', () => {
3875
- expect(run(`const mq = window.matchMedia('(max-width: 600px)')\n`).rules).toContain(
3876
- 'raw-breakpoint',
3877
- )
3878
- expect(run(`const w = window.innerWidth\n`).rules).toContain('raw-breakpoint')
3879
- })
3880
-
3881
- it('flags a bare matchMedia() call', () => {
3882
- expect(run(`const mq = matchMedia('(max-width: 600px)')\n`).rules).toContain('raw-breakpoint')
3883
- })
3884
-
3885
- it('honors a scoped theme-allow on the responsive-object prop', () => {
3886
- const { rules } = run(
3887
- `import { SimpleGrid } from '@mantine/core'\n` +
3888
- `export const C = () => (\n // theme-allow raw-breakpoint — migrating in a follow-up\n <SimpleGrid cols={{ base: 1, sm: 2 }} />\n)\n`,
3889
- )
3890
- expect(rules).not.toContain('raw-breakpoint')
3891
- })
3892
-
3893
- // rb r2 #11: the object sat inside a conditional, so the rule never saw it.
3894
- it('flags a responsive object inside a conditional prop value (Grid.Col, no container)', () => {
3895
- const { rules } = run(
3896
- `import { Grid } from '@mantine/core'\n` +
3897
- `export const C = ({ wide }: { wide: boolean }) => (\n` +
3898
- ` <Grid><Grid.Col span={wide ? { base: 12, md: 4 } : 12}>x</Grid.Col></Grid>\n)\n`,
3899
- )
3900
- expect(rules).toContain('raw-breakpoint')
3901
- })
3902
-
3903
- // Review r1: the unwrap ran before const resolution, so hoisting the conditional bypassed it.
3904
- it('flags a conditional responsive object behind a same-file const', () => {
3905
- const { rules } = run(
3906
- `import { Grid } from '@mantine/core'\n` +
3907
- `export const C = ({ wide }: { wide: boolean }) => {\n` +
3908
- ` const span = wide ? { base: 12, md: 4 } : 12\n` +
3909
- ` return <Grid><Grid.Col span={span}>x</Grid.Col></Grid>\n}\n`,
3910
- )
3911
- expect(rules).toContain('raw-breakpoint')
3912
- })
3913
-
3914
- it('flags through a const alias chain and survives an alias cycle', () => {
3915
- const chained = run(
3916
- `import { SimpleGrid } from '@mantine/core'\n` +
3917
- `const base = { base: 1, sm: 2 }\nconst cols = base\n` +
3918
- `export const C = () => <SimpleGrid cols={cols} />\n`,
3919
- )
3920
- expect(chained.rules).toContain('raw-breakpoint')
3921
- const cyclic = run(
3922
- `import { SimpleGrid } from '@mantine/core'\n` +
3923
- `const a = b\nconst b = a\n` +
3924
- `export const C = () => <SimpleGrid cols={a} />\n`,
3925
- )
3926
- expect(cyclic.rules).not.toContain('raw-breakpoint')
3927
- })
3928
-
3929
- it('flags a responsive object on either side of a logical prop value', () => {
3930
- const { rules } = run(
3931
- `import { SimpleGrid } from '@mantine/core'\n` +
3932
- `export const C = ({ c }: { c?: number }) => <SimpleGrid cols={c ?? { base: 1, sm: 2 }} />\n`,
3933
- )
3934
- expect(rules).toContain('raw-breakpoint')
3935
- })
3936
-
3937
- // rb r2 #13: a base-only object is no breakpoint at all — the message says to write the value.
3938
- it('tells a base-only responsive object to write the bare value', () => {
3939
- const { rules, output } = run(
3940
- `import { SimpleGrid } from '@mantine/core'\n` +
3941
- `export const C = () => <SimpleGrid cols={{ base: 3 }} />\n`,
3942
- )
3943
- expect(rules).toContain('raw-breakpoint')
3944
- expect(output).toContain('cols={3}')
3945
- expect(output).not.toContain('keyed on theme breakpoints')
3946
- })
3947
-
3948
- it('gives the base-only message through a const-bound conditional too', () => {
3949
- const { output } = run(
3950
- `import { SimpleGrid } from '@mantine/core'\n` +
3951
- `export const C = ({ d }: { d: boolean }) => {\n` +
3952
- ` const cols = d ? { base: 3 } : 2\n return <SimpleGrid cols={cols} />\n}\n`,
3953
- )
3954
- expect(output).toContain('cols={3}')
3955
- expect(output).not.toContain('keyed on theme breakpoints')
3956
- })
3957
-
3958
- it('keeps the viewport message when any branch carries a real breakpoint', () => {
3959
- const { output } = run(
3960
- `import { SimpleGrid } from '@mantine/core'\n` +
3961
- `export const C = ({ d }: { d: boolean }) => <SimpleGrid cols={d ? { base: 3 } : { base: 1, sm: 2 }} />\n`,
3962
- )
3963
- expect(output).toContain('keyed on theme breakpoints')
3964
- })
3965
-
3966
- // rb r2 #5.
3967
- it('points a useMediaQuery read at the (pointer: coarse) CSS home', () => {
3968
- const { output } = run(
3969
- `import { useMediaQuery } from '@mantine/hooks'\n` +
3970
- `export const useTouch = () => useMediaQuery('(hover: none)')\n`,
3971
- )
3972
- expect(output).toContain('@media (pointer: coarse)')
3973
- expect(output).toContain('useCoarsePointer() from basalt-ui')
3974
- })
3975
-
3976
- // obsidian r2 #7: a test-setup polyfill lives in `tests/`, not in a `.test` file.
3977
- it.each(['tests/setup/dom.ts', 'test/setup.ts', 'src/__tests__/setup.ts'])(
3978
- 'does NOT flag a matchMedia stub under %s',
3979
- (filename) => {
3980
- const { rules } = run(`window.matchMedia = () => ({ matches: false })\n`, filename)
3981
- expect(rules).not.toContain('raw-breakpoint')
3982
- },
3983
- )
3984
-
3985
- it('still flags a file whose name merely contains "test" outside a test dir', () => {
3986
- const { rules } = run(`const mq = window.matchMedia('(max-width: 600px)')\n`, 'src/latest/a.ts')
3987
- expect(rules).toContain('raw-breakpoint')
3988
- })
3989
- })
3990
-
3991
- // ── control homes: text lane ≡ plugin ────────────────────────────────────────
3992
-
3993
- // 1.32.1 (B2): the plugin homed FormRow/FormGroup while check-theme's `raw-selection-control` did
3994
- // not, so a correctly migrated form reported in one lane only. Both lists are module-private (the
3995
- // guard is dependency-free, the plugin cannot import TS), so this reads them out of the source.
3996
- describe('control homes — lane parity', () => {
3997
- const pluginSource = readFileSync(PLUGIN_PATH, 'utf8')
3998
- const guardSource = readFileSync(resolve(import.meta.dirname, '../src/guard/index.ts'), 'utf8')
3999
-
4000
- const pluginSet = (name: string): string[] => {
4001
- const body = pluginSource.match(new RegExp(`const ${name} = new Set\\(\\[([^\\]]*)\\]`))?.[1]
4002
- if (body === undefined) throw new Error(`${name} not found in oxlint-plugin.js`)
4003
- return [...body.matchAll(/'([^']+)'/g)].map((m) => m[1] as string)
4004
- }
4005
-
4006
- it('check-theme CONTROL_HOST_TAG names exactly CONTROL_HOST_TAGS ∪ BASALT_HOST_TAGS', () => {
4007
- const alternation = guardSource.match(/const CONTROL_HOST_TAG =\s*\/<\(\?:([^)]*)\)/)?.[1]
4008
- if (alternation === undefined) throw new Error('CONTROL_HOST_TAG not found in guard/index.ts')
4009
- const textLane = alternation.split('|').map((tag) => tag.replaceAll('\\.', '.'))
4010
- const pluginLane = [...pluginSet('CONTROL_HOST_TAGS'), ...pluginSet('BASALT_HOST_TAGS')]
4011
- expect(pluginLane).toContain('FormRow')
4012
- expect(textLane.toSorted()).toEqual(pluginLane.toSorted())
4013
- })
4014
- })
4015
-
4016
- // ── agent-no-raw-usechat — the `Chat` class ──────────────────────────────────
4017
-
4018
- describe('basalt/agent-no-raw-usechat — Chat', () => {
4019
- it.each(['@ai-sdk/react', 'ai/react'])('flags `Chat` imported from %s', (source) => {
4020
- const { code, rules } = run(`import { Chat } from '${source}'\n`, 'lib.ts')
4021
- expect(code).toBe(1)
4022
- expect(rules).toContain('agent-no-raw-usechat')
4023
- })
4024
-
4025
- it('does NOT flag a type-only `Chat` import', () => {
4026
- const { code } = run(`import type { Chat } from '@ai-sdk/react'\n`, 'lib.ts')
4027
- expect(code).toBe(0)
4028
- })
4029
-
4030
- it.each([
4031
- ['AI.useChat()', `const c = AI.useChat({ id })\n`],
4032
- ['AI.Chat as a value', `const C = AI.Chat\n`],
4033
- ['new AI.Chat()', `const c = new AI.Chat({ id })\n`],
4034
- ])('flags %s through a namespace import', (_name, use) => {
4035
- const { code, rules } = run(`import * as AI from '@ai-sdk/react'\n${use}`, 'lib.ts')
4036
- expect(code).toBe(1)
4037
- expect(rules).toContain('agent-no-raw-usechat')
4038
- })
4039
-
4040
- it('flags a namespace import of ai/react', () => {
4041
- const { code } = run(`import * as AI from 'ai/react'\nAI.useChat()\n`, 'lib.ts')
4042
- expect(code).toBe(1)
4043
- })
4044
-
4045
- it('does NOT flag a namespace member that is not a chat hook, a local namespace, or a type import', () => {
4046
- expect(run(`import * as AI from '@ai-sdk/react'\nAI.somethingElse()\n`, 'lib.ts').code).toBe(0)
4047
- expect(run(`import * as AI from './mine'\nAI.useChat()\n`, 'lib.ts').code).toBe(0)
4048
- expect(run(`import type * as AI from '@ai-sdk/react'\nAI.useChat()\n`, 'lib.ts').code).toBe(0)
4049
- })
4050
-
4051
- it.each([
4052
- `export { Chat } from '@ai-sdk/react'\n`,
4053
- `export { useChat as chat } from 'ai/react'\n`,
4054
- `export * from '@ai-sdk/react'\n`,
4055
- ])('flags the re-export %s', (source) => {
4056
- const { code, rules } = run(source, 'lib.ts')
4057
- expect(code).toBe(1)
4058
- expect(rules).toContain('agent-no-raw-usechat')
4059
- })
4060
-
4061
- it('does NOT flag a type re-export or an unrelated name', () => {
4062
- expect(run(`export type { UIMessage } from '@ai-sdk/react'\n`, 'lib.ts').code).toBe(0)
4063
- expect(run(`export { Other } from '@ai-sdk/react'\n`, 'lib.ts').code).toBe(0)
4064
- })
4065
- })
4066
-
4067
- // ── no-dev-helper ────────────────────────────────────────────────────────────
4068
-
4069
- describe('basalt/no-dev-helper', () => {
4070
- const LAZY = `const Dock = lazy(() => import('../dev-dock'))\n`
4071
- it.each([
4072
- ['an unguarded devtools import()', `const m = import('@tanstack/react-router-devtools')\n`],
4073
- ['an unguarded theme-lab import()', `export const load = () => import('./theme-lab')\n`],
4074
- ['an isDev() gate', `if (isDev()) import('./dev-dock')\n`],
4075
- ['an eager const import() with no gate', `const m = import('./theme-lab')\n`],
4076
- [
4077
- 'an eager const import() even when a later use is gated',
4078
- `const m = import('./theme-lab')\nif (process.env.NODE_ENV !== 'production') use(m)\n`,
4079
- ],
4080
- [
4081
- 'an import() inside an anonymous callback',
4082
- `useEffect(() => { void import('./dev-dock') }, [])\n`,
4083
- ],
4084
- ['a lazy binding rendered without a gate', `${LAZY}export const C = () => <Dock />\n`],
4085
- [
4086
- 'a lazy binding with one ungated use',
4087
- `${LAZY}export const C = () => (\n <>\n {process.env.NODE_ENV !== 'production' && <Dock />}\n <Dock />\n </>\n)\n`,
4088
- ],
4089
- ['a TS-wrapped ungated use', `const load = () => import('./dev-dock')\nload!()\n`],
4090
- [
4091
- 'a gate that only holds in production',
4092
- `const load = () => import('./dev-dock')\nif (ok && process.env.NODE_ENV === 'production') load()\n`,
4093
- ],
4094
- [
4095
- 'a component that merely contains the import (its uses are not the dev uses)',
4096
- `const App = () => { useEffect(() => { void import('./dev-dock') }, []); return null }\nexport const C = () => <App />\n`,
4097
- ],
4098
- ])('flags %s', (_name, source) => {
4099
- const { code, rules } = run(source, 'lib.tsx')
4100
- expect(code).toBe(1)
4101
- expect(rules).toContain('no-dev-helper')
4102
- })
4103
-
4104
- it.each([
4105
- [
4106
- 'an if-gate',
4107
- `if (process.env.NODE_ENV !== 'production') {\n void import('@tanstack/react-query-devtools')\n}\n`,
4108
- ],
4109
- [
4110
- 'the bracketed spelling',
4111
- `if (process.env['NODE_ENV'] !== 'production') {\n void import('./dev-dock')\n}\n`,
4112
- ],
4113
- [
4114
- '=== development',
4115
- `const m = process.env.NODE_ENV === 'development' ? import('./theme-lab') : null\n`,
4116
- ],
4117
- [
4118
- 'the production alternate',
4119
- `const m = process.env.NODE_ENV === 'production' ? null : import('./dev-dock')\n`,
4120
- ],
4121
- [
4122
- 'a lazy binding used only under the gate',
4123
- `${LAZY}export const C = () => process.env.NODE_ENV !== 'production' && <Dock />\n`,
4124
- ],
4125
- [
4126
- 'a lazy binding whose name also appears as a property key, attribute and type',
4127
- `${LAZY}type T = typeof Dock\nconst o = { Dock: 1 }\nexport const C = () => <X Dock="a" y={o.Dock}>{process.env.NODE_ENV !== 'production' && <Dock />}</X>\n`,
4128
- ],
4129
- [
4130
- 'another binding that shadows the lazy name',
4131
- `${LAZY}export const A = () => process.env.NODE_ENV !== 'production' && <Dock />\nexport const B = (Dock: unknown) => String(Dock)\n`,
4132
- ],
4133
- [
4134
- 'a plain loader called under the gate',
4135
- `const load = () => import('./dev-dock')\nif (process.env.NODE_ENV !== 'production') load()\n`,
4136
- ],
4137
- [
4138
- 'a gate inside an && chain',
4139
- `const load = () => import('./dev-dock')\nexport const f = (ok: boolean) => ok && process.env.NODE_ENV !== 'production' && load()\n`,
4140
- ],
4141
- [
4142
- 'a negated production test',
4143
- `const load = () => import('./dev-dock')\nif (!(process.env.NODE_ENV === 'production')) load()\n`,
4144
- ],
4145
- [
4146
- 'a negated || test',
4147
- `const load = () => import('./dev-dock')\nif (!(ok || process.env.NODE_ENV === 'production')) load()\n`,
4148
- ],
4149
- [
4150
- 'the literal on the left',
4151
- `const load = () => import('./dev-dock')\nif ('production' !== process.env.NODE_ENV) load()\n`,
4152
- ],
4153
- [
4154
- 'TS-wrapped uses under the gate plus a class member of the same name',
4155
- `${LAZY}class K { Dock = 1 }\nexport const C = () => process.env.NODE_ENV !== 'production' && (Dock as unknown as () => null)\n`,
4156
- ],
4157
- ['an unrelated import()', `const m = import('rehype-sanitize')\n`],
4158
- ])('does NOT flag %s', (_name, source) => {
4159
- const { code, rules } = run(source, 'lib.tsx')
4160
- expect(code).toBe(0)
4161
- expect(rules).not.toContain('no-dev-helper')
4162
- })
4163
-
4164
- it('exempts the dev modules themselves', () => {
4165
- const { code } = run(`const m = import('./theme-lab')\n`, 'src/dev-dock.tsx')
4166
- expect(code).toBe(0)
4167
- })
4168
- })
4169
-
4170
- // ── no-import-meta-env — scopes itself to basalt's own source ────────────────
4171
-
4172
- describe('basalt/no-import-meta-env', () => {
4173
- const PKG_ROOT = resolve(import.meta.dirname, '..')
4174
- const visit = (filename: string): number => {
4175
- const reports: unknown[] = []
4176
- const visitor = basaltPlugin.rules['no-import-meta-env'].create({
4177
- filename,
4178
- sourceCode: { getAllComments: () => [] },
4179
- report: (r: unknown) => reports.push(r),
4180
- })
4181
- const node = {
4182
- type: 'MemberExpression',
4183
- computed: false,
4184
- property: { name: 'env' },
4185
- object: { type: 'MetaProperty', meta: { name: 'import' }, property: { name: 'meta' } },
4186
- loc: { start: { line: 1 } },
4187
- }
4188
- visitor.MemberExpression?.(node)
4189
- return reports.length
4190
- }
4191
-
4192
- it('reports inside packages/basalt-ui/src', () => {
4193
- expect(visit(`${PKG_ROOT}/src/x.ts`)).toBe(1)
4194
- })
4195
-
4196
- it('is silent elsewhere (the playground is a consumer) and in tests', () => {
4197
- expect(visit(`${PKG_ROOT}/../../apps/playground/src/main.tsx`)).toBe(0)
4198
- expect(visit(`${PKG_ROOT}/src/x.test.ts`)).toBe(0)
4199
- })
4200
- })
4201
-
4202
- // ── route-view-transition ────────────────────────────────────────────────────
4203
-
4204
- describe('basalt/route-view-transition', () => {
4205
- const RR = `import { Outlet } from '@tanstack/react-router'\n`
4206
- it.each([
4207
- [
4208
- 'a named import',
4209
- `import { ViewTransition } from 'react'\n${RR}export const C = () => <ViewTransition><Outlet /></ViewTransition>\n`,
4210
- ],
4211
- [
4212
- 'an aliased import',
4213
- `import { ViewTransition as VT } from 'react'\n${RR}export const C = () => <VT><Outlet /></VT>\n`,
4214
- ],
4215
- [
4216
- 'React.ViewTransition',
4217
- `import React from 'react'\n${RR}export const C = () => <React.ViewTransition><Outlet /></React.ViewTransition>\n`,
4218
- ],
4219
- [
4220
- 'a namespace import',
4221
- `import * as R from 'react'\n${RR}export const C = () => <R.ViewTransition><Outlet /></R.ViewTransition>\n`,
4222
- ],
4223
- [
4224
- 'an aliased Outlet, nested deep',
4225
- `import { ViewTransition } from 'react'\nimport { Outlet as Page } from '@tanstack/react-router'\nexport const C = () => <ViewTransition><div><main><Page /></main></div></ViewTransition>\n`,
4226
- ],
4227
- [
4228
- 'a nested ViewTransition (both are inert)',
4229
- `import { ViewTransition } from 'react'\n${RR}export const C = () => <ViewTransition><section><ViewTransition><Outlet /></ViewTransition></section></ViewTransition>\n`,
4230
- ],
4231
- [
4232
- 'a namespace Outlet',
4233
- `import { ViewTransition } from 'react'\nimport * as Router from '@tanstack/react-router'\nexport const C = () => <ViewTransition><Router.Outlet /></ViewTransition>\n`,
4234
- ],
4235
- ])('flags %s', (_name, source) => {
4236
- const { code, rules } = run(source, 'lib.tsx')
4237
- expect(code).toBe(1)
4238
- expect(rules).toContain('route-view-transition')
4239
- })
4240
-
4241
- it.each([
4242
- [
4243
- 'a ViewTransition with no Outlet',
4244
- `import { ViewTransition } from 'react'\nexport const C = () => <ViewTransition><p /></ViewTransition>\n`,
4245
- ],
4246
- [
4247
- 'an Outlet beside, not inside, a ViewTransition',
4248
- `import { ViewTransition } from 'react'\n${RR}export const C = () => <><ViewTransition><p /></ViewTransition><Outlet /></>\n`,
4249
- ],
4250
- [
4251
- 'a ViewTransition not from react',
4252
- `import { ViewTransition } from './mine'\n${RR}export const C = () => <ViewTransition><Outlet /></ViewTransition>\n`,
4253
- ],
4254
- [
4255
- 'an Outlet not from the router',
4256
- `import { ViewTransition } from 'react'\nimport { Outlet } from './mine'\nexport const C = () => <ViewTransition><Outlet /></ViewTransition>\n`,
4257
- ],
4258
- [
4259
- 'a type-only Outlet import',
4260
- `import { ViewTransition } from 'react'\nimport type { Outlet } from '@tanstack/react-router'\nexport const C = () => <ViewTransition><Outlet /></ViewTransition>\n`,
4261
- ],
4262
- ])('does NOT flag %s', (_name, source) => {
4263
- const { rules } = run(source, 'lib.tsx')
4264
- expect(rules).not.toContain('route-view-transition')
4265
- })
4266
-
4267
- it('reports each enclosing ViewTransition once', () => {
4268
- const { output } = run(
4269
- `import { ViewTransition } from 'react'\n${RR}export const C = () => <ViewTransition><ViewTransition><Outlet /></ViewTransition></ViewTransition>\n`,
4270
- 'lib.tsx',
4271
- )
4272
- expect(output.match(/basalt\/route-view-transition/g)).toHaveLength(2)
4273
- })
4274
-
4275
- it('does not apply in test files', () => {
4276
- const source = `import { ViewTransition } from 'react'\n${RR}export const C = () => <ViewTransition><Outlet /></ViewTransition>\n`
4277
- expect(run(source, 'lib.test.tsx').rules).not.toContain('route-view-transition')
4278
- })
4279
-
4280
- it('honours a theme-allow annotation naming the rule', () => {
4281
- const source = `import { ViewTransition } from 'react'\n${RR}export const C = () => (\n // theme-allow route-view-transition: legacy page under migration\n <ViewTransition><Outlet /></ViewTransition>\n)\n`
4282
- expect(run(source, 'lib.tsx').rules).not.toContain('route-view-transition')
4283
- })
4284
- })
4285
-
4286
- // ── status-fill-as-text ──────────────────────────────────────────────────────
4287
-
4288
- describe('basalt/status-fill-as-text', () => {
4289
- const VXI = `import { VX } from 'basalt-ui/tokens'\n`
4290
- it.each([
4291
- [
4292
- 'c= on a Text',
4293
- `${VXI}export const C = () => <Text c={VX.status.excellent}>Excellent</Text>\n`,
4294
- ],
4295
- [
4296
- 'c= with the CSS var',
4297
- `export const C = () => <Text c="var(--vx-status-excellent)">x</Text>\n`,
4298
- ],
4299
- [
4300
- 'c= through a ternary',
4301
- `${VXI}export const C = (p: { ok: boolean }) => <Text c={p.ok ? VX.status.excellent : VX.status.warn}>x</Text>\n`,
4302
- ],
4303
- [
4304
- 'a style color key',
4305
- `${VXI}export const C = () => <span style={{ color: VX.status.excellent }}>x</span>\n`,
4306
- ],
4307
- [
4308
- 'a styles-prop color key',
4309
- `${VXI}export const C = () => <Badge styles={{ label: { color: VX.status.excellent } }}>x</Badge>\n`,
4310
- ],
4311
- [
4312
- 'a nested styles key on a non-text part (the CSS color property paints its text)',
4313
- `${VXI}export const C = () => <Progress styles={{ section: { color: VX.status.excellent } }} />\n`,
4314
- ],
4315
- [
4316
- 'a style color with the CSS var',
4317
- `export const C = () => <span style={{ color: 'var(--vx-status-excellent)' }}>x</span>\n`,
4318
- ],
4319
- ])('flags %s', (_name, source) => {
4320
- const { code, rules } = run(source, 'lib.tsx')
4321
- expect(code).toBe(1)
4322
- expect(rules).toContain('status-fill-as-text')
4323
- })
4324
-
4325
- it.each([
4326
- ['bg=', `${VXI}export const C = () => <Box bg={VX.status.excellent} />\n`],
4327
- [
4328
- 'a swatch backgroundColor',
4329
- `${VXI}export const C = () => <i style={{ backgroundColor: VX.status.excellent }} />\n`,
4330
- ],
4331
- [
4332
- 'a style borderColor',
4333
- `${VXI}export const C = () => <i style={{ borderColor: VX.status.excellent }} />\n`,
4334
- ],
4335
- [
4336
- 'fill= and stroke=',
4337
- `${VXI}export const C = () => <rect fill={VX.status.excellent} stroke={VX.status.excellent} />\n`,
4338
- ],
4339
- [
4340
- 'alpha() on a fill',
4341
- `${VXI}export const C = () => <Box bg={alpha(VX.status.excellent, 0.2)} />\n`,
4342
- ],
4343
- [
4344
- 'c= with the solved text token',
4345
- `${VXI}export const C = () => <Text c={VX.status.good}>x</Text>\n`,
4346
- ],
4347
- [
4348
- 'a chart series color key',
4349
- `${VXI}export const S = { zone: { color: VX.status.excellent } }\n`,
4350
- ],
4351
- [
4352
- 'a Badge color prop (fill)',
4353
- `${VXI}export const C = () => <Badge color={VX.status.excellent}>x</Badge>\n`,
4354
- ],
4355
- [
4356
- 'a Progress/Badge color prop and its styles background (fills)',
4357
- `${VXI}export const C = () => <Progress color={VX.status.excellent} styles={{ section: { backgroundColor: VX.status.excellent } }} />\n`,
4358
- ],
4359
- // Out of static reach: argo's ZONE_COLORS map, read later — `c={ZONE_COLORS[grade]}`.
4360
- [
4361
- 'a map value consumed through a lookup (statically out of reach)',
4362
- `${VXI}const ZONE_COLORS = { excellent: VX.status.excellent } as const\nexport const C = () => <Text c={ZONE_COLORS.excellent}>x</Text>\n`,
4363
- ],
4364
- ])('does NOT flag %s', (_name, source) => {
4365
- expect(run(source, 'lib.tsx').rules).not.toContain('status-fill-as-text')
4366
- })
4367
-
4368
- it('does not apply in test files', () => {
4369
- const source = `${VXI}export const C = () => <Text c={VX.status.excellent}>x</Text>\n`
4370
- expect(run(source, 'lib.test.tsx').rules).not.toContain('status-fill-as-text')
4371
- })
4372
-
4373
- it('honours a theme-allow annotation naming the rule', () => {
4374
- const source = `${VXI}export const C = () => (\n // theme-allow status-fill-as-text: decorative large display numeral\n <Text c={VX.status.excellent}>x</Text>\n)\n`
4375
- expect(run(source, 'lib.tsx').rules).not.toContain('status-fill-as-text')
4376
- })
4377
- })
4378
-
4379
- describe('rule level locks', () => {
4380
- const levels = (path: string) =>
4381
- (JSON.parse(readFileSync(path, 'utf8')) as { rules: Record<string, unknown> }).rules
4382
- const shipped = levels(resolve(import.meta.dirname, 'oxlint-basalt.json'))
4383
- const repo = levels(resolve(import.meta.dirname, '..', '..', '..', '.oxlintrc.json'))
4384
-
4385
- it('no-dev-helper is repo-local only, at error', () => {
4386
- expect(shipped).not.toHaveProperty('basalt/no-dev-helper')
4387
- expect(repo['basalt/no-dev-helper']).toBe('error')
4388
- })
4389
- })
4390
-
4391
- // ── dogfood — /.oxlintrc.json ⊇ the shipped basalt/* levels ──────────────────
4392
-
4393
- describe('/.oxlintrc.json dogfoods oxlint-basalt.json', () => {
4394
- const rulesOf = (path: string) =>
4395
- (JSON.parse(readFileSync(path, 'utf8')) as { rules: Record<string, unknown> }).rules
4396
- const shipped = rulesOf(resolve(import.meta.dirname, 'oxlint-basalt.json'))
4397
- const repo = rulesOf(resolve(import.meta.dirname, '..', '..', '..', '.oxlintrc.json'))
4398
-
4399
- // Repo-local is the strict side: `error` for every shipped id, grace entries included (those
4400
- // ship `warn`); every other id ships the very level the repo runs.
4401
- it.each(Object.entries(shipped))('%s is error repo-locally', (id, level) => {
4402
- expect([id, repo[id]]).toEqual([id, 'error'])
4403
- if (!Object.hasOwn(PLUGIN_RULE_GRACE, id.slice('basalt/'.length))) {
4404
- expect([id, level]).toEqual([id, repo[id]])
4405
- }
4406
- })
4407
- })
4408
-
4409
- // ── the `Ships:` claim above each rule (F26) ─────────────────────────────────
4410
-
4411
- /**
4412
- * F26 was a rule's own doc comment claiming a level it did not ship at, with nothing able to catch
4413
- * it: the C16 ledger is asserted against the preset, and a COMMENT is outside the ledger. So the
4414
- * claim is now one normalised line — `// Ships: <level>` directly above each rule's `const` — and
4415
- * this is the assertion that makes it as checkable as the ledger it restates.
4416
- */
4417
- describe('the `Ships:` line above each rule', () => {
4418
- const source = readFileSync(resolve(import.meta.dirname, 'oxlint-plugin.js'), 'utf8')
4419
- const lines = source.split('\n')
4420
- const shipped = JSON.parse(
4421
- readFileSync(resolve(import.meta.dirname, 'oxlint-basalt.json'), 'utf8'),
4422
- ) as {
4423
- rules: Record<string, unknown>
4424
- }
4425
- // The registry block maps rule id → the `const` implementing it.
4426
- const registry = [
4427
- ...source.slice(source.indexOf('export default {')).matchAll(/^ {4}'([\w-]+)': (\w+),$/gm),
4428
- ].map(([, id, binding]) => ({ id: id as string, binding: binding as string }))
4429
-
4430
- it('covers every registered rule', () => {
4431
- expect(registry.map((r) => r.id).toSorted()).toEqual(Object.keys(basaltPlugin.rules).toSorted())
4432
- })
4433
-
4434
- for (const { id, binding } of registry) {
4435
- it(`${id}: the claim matches oxlint-basalt.json`, () => {
4436
- const at = lines.indexOf(`const ${binding} = {`)
4437
- expect([id, at]).not.toEqual([id, -1])
4438
- const claim = /^\/\/ Ships: (.+)$/.exec(lines[at - 1] as string)?.[1]
4439
- const level = shipped.rules[`basalt/${id}`]
4440
- if (level === undefined) {
4441
- expect([id, claim]).toEqual([id, 'repo-local only'])
4442
- return
4443
- }
4444
- if (Object.hasOwn(PLUGIN_RULE_GRACE, id)) {
4445
- const { promote } = PLUGIN_RULE_GRACE[id] as GraceEntry
4446
- expect([id, claim]).toEqual([id, `warn (grace → ${promote})`])
4447
- expect([id, level]).toEqual([id, 'warn'])
4448
- return
4449
- }
4450
- expect([id, claim]).toEqual([id, 'error'])
4451
- expect([id, level]).toEqual([id, 'error'])
4452
- })
4453
- }
4454
- })
4455
-
4456
- // emailgw r4b: wiring the full preset on a repo with history forced unrelated jsx-a11y/unicorn
4457
- // errors before a single basalt/* rule could land. The guards-only preset is the guard lane alone,
4458
- // and the full preset extends it, so every basalt/* level is stated in exactly one file.
4459
- describe('configs/oxlint-basalt.json — the guards-only preset', () => {
4460
- const read = (file: string) =>
4461
- JSON.parse(readFileSync(resolve(import.meta.dirname, file), 'utf8')) as Record<string, unknown>
4462
- const guards = read('oxlint-basalt.json')
4463
- const full = read('oxlint.json')
4464
-
4465
- it('carries the plugin and basalt/* rules, nothing from the generic preset', () => {
4466
- expect(Object.keys(guards).toSorted()).toEqual(['jsPlugins', 'rules'])
4467
- expect(guards['jsPlugins']).toEqual(['./oxlint-plugin.js'])
4468
- const ids = Object.keys(guards['rules'] as object)
4469
- expect(ids.filter((id) => !id.startsWith('basalt/'))).toEqual([])
4470
- expect(ids.length).toBeGreaterThan(0)
4471
- })
4472
-
4473
- it('is extended by the full preset, which states no basalt/* level of its own', () => {
4474
- expect(full['extends']).toEqual(['./oxlint-basalt.json'])
4475
- expect(full['jsPlugins']).toBeUndefined()
4476
- expect(Object.keys(full['rules'] as object).filter((id) => id.startsWith('basalt/'))).toEqual(
4477
- [],
4478
- )
4479
- })
4480
- })