@usalyt/ui 0.0.0-stage → 0.0.2

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 (979) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/LICENSE +21 -0
  3. package/NOTICE +31 -0
  4. package/README.md +147 -2
  5. package/THIRD_PARTY_NOTICES.md +446 -0
  6. package/dist/app-shell-layout-BwhU0DNY.cjs +120 -0
  7. package/dist/app-shell-layout-Dpl6jPni.mjs +115 -0
  8. package/dist/app-shell-layout-Dpl6jPni.mjs.map +1 -0
  9. package/dist/aspect-ratio-D-UR6be8.cjs +36 -0
  10. package/dist/aspect-ratio-DkBx-nZ0.mjs +31 -0
  11. package/dist/aspect-ratio-DkBx-nZ0.mjs.map +1 -0
  12. package/dist/blocks/app-shell-layout/index.cjs +4 -0
  13. package/dist/blocks/app-shell-layout/index.d.cts +2 -0
  14. package/dist/blocks/app-shell-layout/index.d.mts +2 -0
  15. package/dist/blocks/app-shell-layout/index.mjs +3 -0
  16. package/dist/blocks/auth-form/index.cjs +110 -0
  17. package/dist/blocks/auth-form/index.d.cts +25 -0
  18. package/dist/blocks/auth-form/index.d.cts.map +1 -0
  19. package/dist/blocks/auth-form/index.d.mts +25 -0
  20. package/dist/blocks/auth-form/index.d.mts.map +1 -0
  21. package/dist/blocks/auth-form/index.mjs +109 -0
  22. package/dist/blocks/auth-form/index.mjs.map +1 -0
  23. package/dist/blocks/collaboration-chat-panel/index.cjs +4 -0
  24. package/dist/blocks/collaboration-chat-panel/index.d.cts +2 -0
  25. package/dist/blocks/collaboration-chat-panel/index.d.mts +2 -0
  26. package/dist/blocks/collaboration-chat-panel/index.mjs +3 -0
  27. package/dist/blocks/color-palette-sheet/index.cjs +191 -0
  28. package/dist/blocks/color-palette-sheet/index.d.cts +42 -0
  29. package/dist/blocks/color-palette-sheet/index.d.cts.map +1 -0
  30. package/dist/blocks/color-palette-sheet/index.d.mts +42 -0
  31. package/dist/blocks/color-palette-sheet/index.d.mts.map +1 -0
  32. package/dist/blocks/color-palette-sheet/index.mjs +190 -0
  33. package/dist/blocks/color-palette-sheet/index.mjs.map +1 -0
  34. package/dist/blocks/dashboard-header/index.cjs +91 -0
  35. package/dist/blocks/dashboard-header/index.d.cts +19 -0
  36. package/dist/blocks/dashboard-header/index.d.cts.map +1 -0
  37. package/dist/blocks/dashboard-header/index.d.mts +19 -0
  38. package/dist/blocks/dashboard-header/index.d.mts.map +1 -0
  39. package/dist/blocks/dashboard-header/index.mjs +90 -0
  40. package/dist/blocks/dashboard-header/index.mjs.map +1 -0
  41. package/dist/blocks/data-table-with-filters/index.cjs +87 -0
  42. package/dist/blocks/data-table-with-filters/index.d.cts +19 -0
  43. package/dist/blocks/data-table-with-filters/index.d.cts.map +1 -0
  44. package/dist/blocks/data-table-with-filters/index.d.mts +19 -0
  45. package/dist/blocks/data-table-with-filters/index.d.mts.map +1 -0
  46. package/dist/blocks/data-table-with-filters/index.mjs +86 -0
  47. package/dist/blocks/data-table-with-filters/index.mjs.map +1 -0
  48. package/dist/blocks/empty-state-block/index.cjs +4 -0
  49. package/dist/blocks/empty-state-block/index.d.cts +2 -0
  50. package/dist/blocks/empty-state-block/index.d.mts +2 -0
  51. package/dist/blocks/empty-state-block/index.mjs +3 -0
  52. package/dist/blocks/evaluation-summary-report/index.cjs +4 -0
  53. package/dist/blocks/evaluation-summary-report/index.d.cts +2 -0
  54. package/dist/blocks/evaluation-summary-report/index.d.mts +2 -0
  55. package/dist/blocks/evaluation-summary-report/index.mjs +3 -0
  56. package/dist/blocks/form-with-validation/index.cjs +122 -0
  57. package/dist/blocks/form-with-validation/index.d.cts +27 -0
  58. package/dist/blocks/form-with-validation/index.d.cts.map +1 -0
  59. package/dist/blocks/form-with-validation/index.d.mts +27 -0
  60. package/dist/blocks/form-with-validation/index.d.mts.map +1 -0
  61. package/dist/blocks/form-with-validation/index.mjs +120 -0
  62. package/dist/blocks/form-with-validation/index.mjs.map +1 -0
  63. package/dist/blocks/heuristic-finding-card/index.cjs +4 -0
  64. package/dist/blocks/heuristic-finding-card/index.d.cts +2 -0
  65. package/dist/blocks/heuristic-finding-card/index.d.mts +2 -0
  66. package/dist/blocks/heuristic-finding-card/index.mjs +3 -0
  67. package/dist/blocks/inspector-split-view/index.cjs +4 -0
  68. package/dist/blocks/inspector-split-view/index.d.cts +2 -0
  69. package/dist/blocks/inspector-split-view/index.d.mts +2 -0
  70. package/dist/blocks/inspector-split-view/index.mjs +3 -0
  71. package/dist/blocks/instrument-metrics-grid/index.cjs +225 -0
  72. package/dist/blocks/instrument-metrics-grid/index.d.cts +32 -0
  73. package/dist/blocks/instrument-metrics-grid/index.d.cts.map +1 -0
  74. package/dist/blocks/instrument-metrics-grid/index.d.mts +32 -0
  75. package/dist/blocks/instrument-metrics-grid/index.d.mts.map +1 -0
  76. package/dist/blocks/instrument-metrics-grid/index.mjs +224 -0
  77. package/dist/blocks/instrument-metrics-grid/index.mjs.map +1 -0
  78. package/dist/blocks/project-kanban-board/index.cjs +4 -0
  79. package/dist/blocks/project-kanban-board/index.d.cts +2 -0
  80. package/dist/blocks/project-kanban-board/index.d.mts +2 -0
  81. package/dist/blocks/project-kanban-board/index.mjs +3 -0
  82. package/dist/blocks/schedule-timeline-board/index.cjs +327 -0
  83. package/dist/blocks/schedule-timeline-board/index.d.cts +51 -0
  84. package/dist/blocks/schedule-timeline-board/index.d.cts.map +1 -0
  85. package/dist/blocks/schedule-timeline-board/index.d.mts +51 -0
  86. package/dist/blocks/schedule-timeline-board/index.d.mts.map +1 -0
  87. package/dist/blocks/schedule-timeline-board/index.mjs +326 -0
  88. package/dist/blocks/schedule-timeline-board/index.mjs.map +1 -0
  89. package/dist/blocks/stats-card-grid/index.cjs +55 -0
  90. package/dist/blocks/stats-card-grid/index.d.cts +22 -0
  91. package/dist/blocks/stats-card-grid/index.d.cts.map +1 -0
  92. package/dist/blocks/stats-card-grid/index.d.mts +22 -0
  93. package/dist/blocks/stats-card-grid/index.d.mts.map +1 -0
  94. package/dist/blocks/stats-card-grid/index.mjs +54 -0
  95. package/dist/blocks/stats-card-grid/index.mjs.map +1 -0
  96. package/dist/blocks/team-members-table/index.cjs +4 -0
  97. package/dist/blocks/team-members-table/index.d.cts +2 -0
  98. package/dist/blocks/team-members-table/index.d.mts +2 -0
  99. package/dist/blocks/team-members-table/index.mjs +3 -0
  100. package/dist/carousel-BvB82spx.mjs +138 -0
  101. package/dist/carousel-BvB82spx.mjs.map +1 -0
  102. package/dist/carousel-DU60VwEf.cjs +174 -0
  103. package/dist/collaboration-chat-panel-BO-k0fqo.mjs +113 -0
  104. package/dist/collaboration-chat-panel-BO-k0fqo.mjs.map +1 -0
  105. package/dist/collaboration-chat-panel-CR14FNw6.cjs +118 -0
  106. package/dist/color-swatch-XzO6dwhR.mjs +47 -0
  107. package/dist/color-swatch-XzO6dwhR.mjs.map +1 -0
  108. package/dist/color-swatch-nICTKGMP.cjs +58 -0
  109. package/dist/components/accordion/index.cjs +44 -0
  110. package/dist/components/accordion/index.d.cts +11 -0
  111. package/dist/components/accordion/index.d.cts.map +1 -0
  112. package/dist/components/accordion/index.d.mts +11 -0
  113. package/dist/components/accordion/index.d.mts.map +1 -0
  114. package/dist/components/accordion/index.mjs +39 -0
  115. package/dist/components/accordion/index.mjs.map +1 -0
  116. package/dist/components/alert/index.cjs +46 -0
  117. package/dist/components/alert/index.d.cts +14 -0
  118. package/dist/components/alert/index.d.cts.map +1 -0
  119. package/dist/components/alert/index.d.mts +14 -0
  120. package/dist/components/alert/index.d.mts.map +1 -0
  121. package/dist/components/alert/index.mjs +42 -0
  122. package/dist/components/alert/index.mjs.map +1 -0
  123. package/dist/components/alert-dialog/index.cjs +61 -0
  124. package/dist/components/alert-dialog/index.d.cts +23 -0
  125. package/dist/components/alert-dialog/index.d.cts.map +1 -0
  126. package/dist/components/alert-dialog/index.d.mts +23 -0
  127. package/dist/components/alert-dialog/index.d.mts.map +1 -0
  128. package/dist/components/alert-dialog/index.mjs +50 -0
  129. package/dist/components/alert-dialog/index.mjs.map +1 -0
  130. package/dist/components/aspect-ratio/index.cjs +4 -0
  131. package/dist/components/aspect-ratio/index.d.cts +2 -0
  132. package/dist/components/aspect-ratio/index.d.mts +2 -0
  133. package/dist/components/aspect-ratio/index.mjs +3 -0
  134. package/dist/components/avatar/index.cjs +42 -0
  135. package/dist/components/avatar/index.d.cts +14 -0
  136. package/dist/components/avatar/index.d.cts.map +1 -0
  137. package/dist/components/avatar/index.d.mts +14 -0
  138. package/dist/components/avatar/index.d.mts.map +1 -0
  139. package/dist/components/avatar/index.mjs +38 -0
  140. package/dist/components/avatar/index.mjs.map +1 -0
  141. package/dist/components/badge/index.cjs +38 -0
  142. package/dist/components/badge/index.d.cts +11 -0
  143. package/dist/components/badge/index.d.cts.map +1 -0
  144. package/dist/components/badge/index.d.mts +11 -0
  145. package/dist/components/badge/index.d.mts.map +1 -0
  146. package/dist/components/badge/index.mjs +36 -0
  147. package/dist/components/badge/index.mjs.map +1 -0
  148. package/dist/components/breadcrumb/index.cjs +70 -0
  149. package/dist/components/breadcrumb/index.d.cts +18 -0
  150. package/dist/components/breadcrumb/index.d.cts.map +1 -0
  151. package/dist/components/breadcrumb/index.d.mts +18 -0
  152. package/dist/components/breadcrumb/index.d.mts.map +1 -0
  153. package/dist/components/breadcrumb/index.mjs +63 -0
  154. package/dist/components/breadcrumb/index.mjs.map +1 -0
  155. package/dist/components/button/index.cjs +100 -0
  156. package/dist/components/button/index.d.cts +2 -0
  157. package/dist/components/button/index.d.mts +2 -0
  158. package/dist/components/button/index.mjs +98 -0
  159. package/dist/components/button/index.mjs.map +1 -0
  160. package/dist/components/calendar/index.cjs +125 -0
  161. package/dist/components/calendar/index.d.cts +12 -0
  162. package/dist/components/calendar/index.d.cts.map +1 -0
  163. package/dist/components/calendar/index.d.mts +12 -0
  164. package/dist/components/calendar/index.d.mts.map +1 -0
  165. package/dist/components/calendar/index.mjs +124 -0
  166. package/dist/components/calendar/index.mjs.map +1 -0
  167. package/dist/components/card/index.cjs +65 -0
  168. package/dist/components/card/index.d.cts +16 -0
  169. package/dist/components/card/index.d.cts.map +1 -0
  170. package/dist/components/card/index.d.mts +16 -0
  171. package/dist/components/card/index.d.mts.map +1 -0
  172. package/dist/components/card/index.mjs +58 -0
  173. package/dist/components/card/index.mjs.map +1 -0
  174. package/dist/components/carousel/index.cjs +9 -0
  175. package/dist/components/carousel/index.d.cts +2 -0
  176. package/dist/components/carousel/index.d.mts +2 -0
  177. package/dist/components/carousel/index.mjs +3 -0
  178. package/dist/components/chart/index.cjs +63 -0
  179. package/dist/components/chart/index.d.cts +21 -0
  180. package/dist/components/chart/index.d.cts.map +1 -0
  181. package/dist/components/chart/index.d.mts +21 -0
  182. package/dist/components/chart/index.d.mts.map +1 -0
  183. package/dist/components/chart/index.mjs +60 -0
  184. package/dist/components/chart/index.mjs.map +1 -0
  185. package/dist/components/checkbox/index.cjs +34 -0
  186. package/dist/components/checkbox/index.d.cts +10 -0
  187. package/dist/components/checkbox/index.d.cts.map +1 -0
  188. package/dist/components/checkbox/index.d.mts +10 -0
  189. package/dist/components/checkbox/index.d.mts.map +1 -0
  190. package/dist/components/checkbox/index.mjs +33 -0
  191. package/dist/components/checkbox/index.mjs.map +1 -0
  192. package/dist/components/collapsible/index.cjs +22 -0
  193. package/dist/components/collapsible/index.d.cts +8 -0
  194. package/dist/components/collapsible/index.d.cts.map +1 -0
  195. package/dist/components/collapsible/index.d.mts +8 -0
  196. package/dist/components/collapsible/index.d.mts.map +1 -0
  197. package/dist/components/collapsible/index.mjs +19 -0
  198. package/dist/components/collapsible/index.mjs.map +1 -0
  199. package/dist/components/color-swatch/index.cjs +5 -0
  200. package/dist/components/color-swatch/index.d.cts +2 -0
  201. package/dist/components/color-swatch/index.d.mts +2 -0
  202. package/dist/components/color-swatch/index.mjs +3 -0
  203. package/dist/components/combobox/index.cjs +192 -0
  204. package/dist/components/combobox/index.d.cts +27 -0
  205. package/dist/components/combobox/index.d.cts.map +1 -0
  206. package/dist/components/combobox/index.d.mts +27 -0
  207. package/dist/components/combobox/index.d.mts.map +1 -0
  208. package/dist/components/combobox/index.mjs +191 -0
  209. package/dist/components/combobox/index.mjs.map +1 -0
  210. package/dist/components/command/index.cjs +96 -0
  211. package/dist/components/command/index.d.cts +75 -0
  212. package/dist/components/command/index.d.cts.map +1 -0
  213. package/dist/components/command/index.d.mts +75 -0
  214. package/dist/components/command/index.d.mts.map +1 -0
  215. package/dist/components/command/index.mjs +88 -0
  216. package/dist/components/command/index.mjs.map +1 -0
  217. package/dist/components/context-menu/index.cjs +55 -0
  218. package/dist/components/context-menu/index.d.cts +19 -0
  219. package/dist/components/context-menu/index.d.cts.map +1 -0
  220. package/dist/components/context-menu/index.d.mts +19 -0
  221. package/dist/components/context-menu/index.d.mts.map +1 -0
  222. package/dist/components/context-menu/index.mjs +47 -0
  223. package/dist/components/context-menu/index.mjs.map +1 -0
  224. package/dist/components/copy-button/index.cjs +4 -0
  225. package/dist/components/copy-button/index.d.cts +2 -0
  226. package/dist/components/copy-button/index.d.mts +2 -0
  227. package/dist/components/copy-button/index.mjs +3 -0
  228. package/dist/components/data-table/index.cjs +152 -0
  229. package/dist/components/data-table/index.d.cts +20 -0
  230. package/dist/components/data-table/index.d.cts.map +1 -0
  231. package/dist/components/data-table/index.d.mts +20 -0
  232. package/dist/components/data-table/index.d.mts.map +1 -0
  233. package/dist/components/data-table/index.mjs +150 -0
  234. package/dist/components/data-table/index.mjs.map +1 -0
  235. package/dist/components/date-picker/index.cjs +48 -0
  236. package/dist/components/date-picker/index.d.cts +13 -0
  237. package/dist/components/date-picker/index.d.cts.map +1 -0
  238. package/dist/components/date-picker/index.d.mts +13 -0
  239. package/dist/components/date-picker/index.d.mts.map +1 -0
  240. package/dist/components/date-picker/index.mjs +47 -0
  241. package/dist/components/date-picker/index.mjs.map +1 -0
  242. package/dist/components/dialog/index.cjs +68 -0
  243. package/dist/components/dialog/index.d.cts +24 -0
  244. package/dist/components/dialog/index.d.cts.map +1 -0
  245. package/dist/components/dialog/index.d.mts +24 -0
  246. package/dist/components/dialog/index.d.mts.map +1 -0
  247. package/dist/components/dialog/index.mjs +58 -0
  248. package/dist/components/dialog/index.mjs.map +1 -0
  249. package/dist/components/drawer/index.cjs +61 -0
  250. package/dist/components/drawer/index.d.cts +24 -0
  251. package/dist/components/drawer/index.d.cts.map +1 -0
  252. package/dist/components/drawer/index.d.mts +24 -0
  253. package/dist/components/drawer/index.d.mts.map +1 -0
  254. package/dist/components/drawer/index.mjs +51 -0
  255. package/dist/components/drawer/index.mjs.map +1 -0
  256. package/dist/components/dropdown-menu/index.cjs +58 -0
  257. package/dist/components/dropdown-menu/index.d.cts +21 -0
  258. package/dist/components/dropdown-menu/index.d.cts.map +1 -0
  259. package/dist/components/dropdown-menu/index.d.mts +21 -0
  260. package/dist/components/dropdown-menu/index.d.mts.map +1 -0
  261. package/dist/components/dropdown-menu/index.mjs +49 -0
  262. package/dist/components/dropdown-menu/index.mjs.map +1 -0
  263. package/dist/components/file-input/index.cjs +60 -0
  264. package/dist/components/file-input/index.d.cts +11 -0
  265. package/dist/components/file-input/index.d.cts.map +1 -0
  266. package/dist/components/file-input/index.d.mts +11 -0
  267. package/dist/components/file-input/index.d.mts.map +1 -0
  268. package/dist/components/file-input/index.mjs +59 -0
  269. package/dist/components/file-input/index.mjs.map +1 -0
  270. package/dist/components/form/index.cjs +121 -0
  271. package/dist/components/form/index.d.cts +26 -0
  272. package/dist/components/form/index.d.cts.map +1 -0
  273. package/dist/components/form/index.d.mts +26 -0
  274. package/dist/components/form/index.d.mts.map +1 -0
  275. package/dist/components/form/index.mjs +113 -0
  276. package/dist/components/form/index.mjs.map +1 -0
  277. package/dist/components/hover-card/index.cjs +57 -0
  278. package/dist/components/hover-card/index.d.cts +43 -0
  279. package/dist/components/hover-card/index.d.cts.map +1 -0
  280. package/dist/components/hover-card/index.d.mts +43 -0
  281. package/dist/components/hover-card/index.d.mts.map +1 -0
  282. package/dist/components/hover-card/index.mjs +53 -0
  283. package/dist/components/hover-card/index.mjs.map +1 -0
  284. package/dist/components/input/index.cjs +33 -0
  285. package/dist/components/input/index.d.cts +11 -0
  286. package/dist/components/input/index.d.cts.map +1 -0
  287. package/dist/components/input/index.d.mts +11 -0
  288. package/dist/components/input/index.d.mts.map +1 -0
  289. package/dist/components/input/index.mjs +31 -0
  290. package/dist/components/input/index.mjs.map +1 -0
  291. package/dist/components/input-otp/index.cjs +7 -0
  292. package/dist/components/input-otp/index.d.cts +2 -0
  293. package/dist/components/input-otp/index.d.mts +2 -0
  294. package/dist/components/input-otp/index.mjs +3 -0
  295. package/dist/components/kbd/index.cjs +5 -0
  296. package/dist/components/kbd/index.d.cts +2 -0
  297. package/dist/components/kbd/index.d.mts +2 -0
  298. package/dist/components/kbd/index.mjs +3 -0
  299. package/dist/components/label/index.cjs +24 -0
  300. package/dist/components/label/index.d.cts +2 -0
  301. package/dist/components/label/index.d.mts +2 -0
  302. package/dist/components/label/index.mjs +22 -0
  303. package/dist/components/label/index.mjs.map +1 -0
  304. package/dist/components/menubar/index.cjs +63 -0
  305. package/dist/components/menubar/index.d.cts +19 -0
  306. package/dist/components/menubar/index.d.cts.map +1 -0
  307. package/dist/components/menubar/index.d.mts +19 -0
  308. package/dist/components/menubar/index.d.mts.map +1 -0
  309. package/dist/components/menubar/index.mjs +55 -0
  310. package/dist/components/menubar/index.mjs.map +1 -0
  311. package/dist/components/navigation-menu/index.cjs +62 -0
  312. package/dist/components/navigation-menu/index.d.cts +27 -0
  313. package/dist/components/navigation-menu/index.d.cts.map +1 -0
  314. package/dist/components/navigation-menu/index.d.mts +27 -0
  315. package/dist/components/navigation-menu/index.d.mts.map +1 -0
  316. package/dist/components/navigation-menu/index.mjs +56 -0
  317. package/dist/components/navigation-menu/index.mjs.map +1 -0
  318. package/dist/components/number-field/index.cjs +41 -0
  319. package/dist/components/number-field/index.d.cts +11 -0
  320. package/dist/components/number-field/index.d.cts.map +1 -0
  321. package/dist/components/number-field/index.d.mts +11 -0
  322. package/dist/components/number-field/index.d.mts.map +1 -0
  323. package/dist/components/number-field/index.mjs +37 -0
  324. package/dist/components/number-field/index.mjs.map +1 -0
  325. package/dist/components/pagination/index.cjs +10 -0
  326. package/dist/components/pagination/index.d.cts +2 -0
  327. package/dist/components/pagination/index.d.mts +2 -0
  328. package/dist/components/pagination/index.mjs +3 -0
  329. package/dist/components/popover/index.cjs +29 -0
  330. package/dist/components/popover/index.d.cts +14 -0
  331. package/dist/components/popover/index.d.cts.map +1 -0
  332. package/dist/components/popover/index.d.mts +14 -0
  333. package/dist/components/popover/index.d.mts.map +1 -0
  334. package/dist/components/popover/index.mjs +24 -0
  335. package/dist/components/popover/index.mjs.map +1 -0
  336. package/dist/components/progress/index.cjs +94 -0
  337. package/dist/components/progress/index.d.cts +20 -0
  338. package/dist/components/progress/index.d.cts.map +1 -0
  339. package/dist/components/progress/index.d.mts +20 -0
  340. package/dist/components/progress/index.d.mts.map +1 -0
  341. package/dist/components/progress/index.mjs +91 -0
  342. package/dist/components/progress/index.mjs.map +1 -0
  343. package/dist/components/radio-group/index.cjs +43 -0
  344. package/dist/components/radio-group/index.d.cts +17 -0
  345. package/dist/components/radio-group/index.d.cts.map +1 -0
  346. package/dist/components/radio-group/index.d.mts +17 -0
  347. package/dist/components/radio-group/index.d.mts.map +1 -0
  348. package/dist/components/radio-group/index.mjs +41 -0
  349. package/dist/components/radio-group/index.mjs.map +1 -0
  350. package/dist/components/rating/index.cjs +4 -0
  351. package/dist/components/rating/index.d.cts +2 -0
  352. package/dist/components/rating/index.d.mts +2 -0
  353. package/dist/components/rating/index.mjs +3 -0
  354. package/dist/components/resizable/index.cjs +6 -0
  355. package/dist/components/resizable/index.d.cts +2 -0
  356. package/dist/components/resizable/index.d.mts +2 -0
  357. package/dist/components/resizable/index.mjs +3 -0
  358. package/dist/components/scroll-area/index.cjs +35 -0
  359. package/dist/components/scroll-area/index.d.cts +9 -0
  360. package/dist/components/scroll-area/index.d.cts.map +1 -0
  361. package/dist/components/scroll-area/index.d.mts +9 -0
  362. package/dist/components/scroll-area/index.d.mts.map +1 -0
  363. package/dist/components/scroll-area/index.mjs +33 -0
  364. package/dist/components/scroll-area/index.mjs.map +1 -0
  365. package/dist/components/select/index.cjs +54 -0
  366. package/dist/components/select/index.d.cts +17 -0
  367. package/dist/components/select/index.d.cts.map +1 -0
  368. package/dist/components/select/index.d.mts +17 -0
  369. package/dist/components/select/index.d.mts.map +1 -0
  370. package/dist/components/select/index.mjs +46 -0
  371. package/dist/components/select/index.mjs.map +1 -0
  372. package/dist/components/separator/index.cjs +18 -0
  373. package/dist/components/separator/index.d.cts +6 -0
  374. package/dist/components/separator/index.d.cts.map +1 -0
  375. package/dist/components/separator/index.d.mts +6 -0
  376. package/dist/components/separator/index.d.mts.map +1 -0
  377. package/dist/components/separator/index.mjs +17 -0
  378. package/dist/components/separator/index.mjs.map +1 -0
  379. package/dist/components/sheet/index.cjs +69 -0
  380. package/dist/components/sheet/index.d.cts +27 -0
  381. package/dist/components/sheet/index.d.cts.map +1 -0
  382. package/dist/components/sheet/index.d.mts +27 -0
  383. package/dist/components/sheet/index.d.mts.map +1 -0
  384. package/dist/components/sheet/index.mjs +61 -0
  385. package/dist/components/sheet/index.mjs.map +1 -0
  386. package/dist/components/sidebar/index.cjs +16 -0
  387. package/dist/components/sidebar/index.d.cts +2 -0
  388. package/dist/components/sidebar/index.d.mts +2 -0
  389. package/dist/components/sidebar/index.mjs +3 -0
  390. package/dist/components/skeleton/index.cjs +19 -0
  391. package/dist/components/skeleton/index.d.cts +7 -0
  392. package/dist/components/skeleton/index.d.cts.map +1 -0
  393. package/dist/components/skeleton/index.d.mts +7 -0
  394. package/dist/components/skeleton/index.d.mts.map +1 -0
  395. package/dist/components/skeleton/index.mjs +18 -0
  396. package/dist/components/skeleton/index.mjs.map +1 -0
  397. package/dist/components/slider/index.cjs +30 -0
  398. package/dist/components/slider/index.d.cts +10 -0
  399. package/dist/components/slider/index.d.cts.map +1 -0
  400. package/dist/components/slider/index.d.mts +10 -0
  401. package/dist/components/slider/index.d.mts.map +1 -0
  402. package/dist/components/slider/index.mjs +29 -0
  403. package/dist/components/slider/index.mjs.map +1 -0
  404. package/dist/components/sonner/index.cjs +6 -0
  405. package/dist/components/sonner/index.d.cts +2 -0
  406. package/dist/components/sonner/index.d.mts +2 -0
  407. package/dist/components/sonner/index.mjs +3 -0
  408. package/dist/components/spinner/index.cjs +53 -0
  409. package/dist/components/spinner/index.d.cts +14 -0
  410. package/dist/components/spinner/index.d.cts.map +1 -0
  411. package/dist/components/spinner/index.d.mts +14 -0
  412. package/dist/components/spinner/index.d.mts.map +1 -0
  413. package/dist/components/spinner/index.mjs +51 -0
  414. package/dist/components/spinner/index.mjs.map +1 -0
  415. package/dist/components/stepper/index.cjs +9 -0
  416. package/dist/components/stepper/index.d.cts +2 -0
  417. package/dist/components/stepper/index.d.mts +2 -0
  418. package/dist/components/stepper/index.mjs +3 -0
  419. package/dist/components/switch/index.cjs +18 -0
  420. package/dist/components/switch/index.d.cts +8 -0
  421. package/dist/components/switch/index.d.cts.map +1 -0
  422. package/dist/components/switch/index.d.mts +8 -0
  423. package/dist/components/switch/index.d.mts.map +1 -0
  424. package/dist/components/switch/index.mjs +17 -0
  425. package/dist/components/switch/index.mjs.map +1 -0
  426. package/dist/components/table/index.cjs +69 -0
  427. package/dist/components/table/index.d.cts +13 -0
  428. package/dist/components/table/index.d.cts.map +1 -0
  429. package/dist/components/table/index.d.mts +13 -0
  430. package/dist/components/table/index.d.mts.map +1 -0
  431. package/dist/components/table/index.mjs +61 -0
  432. package/dist/components/table/index.mjs.map +1 -0
  433. package/dist/components/tabs/index.cjs +36 -0
  434. package/dist/components/tabs/index.d.cts +9 -0
  435. package/dist/components/tabs/index.d.cts.map +1 -0
  436. package/dist/components/tabs/index.d.mts +9 -0
  437. package/dist/components/tabs/index.d.mts.map +1 -0
  438. package/dist/components/tabs/index.mjs +32 -0
  439. package/dist/components/tabs/index.mjs.map +1 -0
  440. package/dist/components/textarea/index.cjs +32 -0
  441. package/dist/components/textarea/index.d.cts +11 -0
  442. package/dist/components/textarea/index.d.cts.map +1 -0
  443. package/dist/components/textarea/index.d.mts +11 -0
  444. package/dist/components/textarea/index.d.mts.map +1 -0
  445. package/dist/components/textarea/index.mjs +30 -0
  446. package/dist/components/textarea/index.mjs.map +1 -0
  447. package/dist/components/timeline/index.cjs +12 -0
  448. package/dist/components/timeline/index.d.cts +2 -0
  449. package/dist/components/timeline/index.d.mts +2 -0
  450. package/dist/components/timeline/index.mjs +3 -0
  451. package/dist/components/toast/index.cjs +92 -0
  452. package/dist/components/toast/index.d.cts +27 -0
  453. package/dist/components/toast/index.d.cts.map +1 -0
  454. package/dist/components/toast/index.d.mts +27 -0
  455. package/dist/components/toast/index.d.mts.map +1 -0
  456. package/dist/components/toast/index.mjs +80 -0
  457. package/dist/components/toast/index.mjs.map +1 -0
  458. package/dist/components/toggle/index.cjs +5 -0
  459. package/dist/components/toggle/index.d.cts +2 -0
  460. package/dist/components/toggle/index.d.mts +2 -0
  461. package/dist/components/toggle/index.mjs +3 -0
  462. package/dist/components/toggle-group/index.cjs +45 -0
  463. package/dist/components/toggle-group/index.d.cts +13 -0
  464. package/dist/components/toggle-group/index.d.cts.map +1 -0
  465. package/dist/components/toggle-group/index.d.mts +13 -0
  466. package/dist/components/toggle-group/index.d.mts.map +1 -0
  467. package/dist/components/toggle-group/index.mjs +43 -0
  468. package/dist/components/toggle-group/index.mjs.map +1 -0
  469. package/dist/components/tooltip/index.cjs +29 -0
  470. package/dist/components/tooltip/index.d.cts +13 -0
  471. package/dist/components/tooltip/index.d.cts.map +1 -0
  472. package/dist/components/tooltip/index.d.mts +13 -0
  473. package/dist/components/tooltip/index.d.mts.map +1 -0
  474. package/dist/components/tooltip/index.mjs +24 -0
  475. package/dist/components/tooltip/index.mjs.map +1 -0
  476. package/dist/components/tree-view/index.cjs +7 -0
  477. package/dist/components/tree-view/index.d.cts +2 -0
  478. package/dist/components/tree-view/index.d.mts +2 -0
  479. package/dist/components/tree-view/index.mjs +3 -0
  480. package/dist/copy-button-CQR9ba95.cjs +45 -0
  481. package/dist/copy-button-DebO1rhk.mjs +40 -0
  482. package/dist/copy-button-DebO1rhk.mjs.map +1 -0
  483. package/dist/empty-state-block-DlccTgvo.mjs +53 -0
  484. package/dist/empty-state-block-DlccTgvo.mjs.map +1 -0
  485. package/dist/empty-state-block-rrYF_ai9.cjs +58 -0
  486. package/dist/evaluation-summary-report-CIa4moWm.cjs +245 -0
  487. package/dist/evaluation-summary-report-COZZFLS6.mjs +240 -0
  488. package/dist/evaluation-summary-report-COZZFLS6.mjs.map +1 -0
  489. package/dist/files/Inter-OFL.txt +93 -0
  490. package/dist/files/inter-cyrillic-ext-wght-normal.woff2 +0 -0
  491. package/dist/files/inter-cyrillic-wght-normal.woff2 +0 -0
  492. package/dist/files/inter-greek-ext-wght-normal.woff2 +0 -0
  493. package/dist/files/inter-greek-wght-normal.woff2 +0 -0
  494. package/dist/files/inter-latin-ext-wght-normal.woff2 +0 -0
  495. package/dist/files/inter-latin-wght-normal.woff2 +0 -0
  496. package/dist/files/inter-vietnamese-wght-normal.woff2 +0 -0
  497. package/dist/heuristic-finding-card-CeJzuzuN.cjs +153 -0
  498. package/dist/heuristic-finding-card-hlDwM_of.mjs +148 -0
  499. package/dist/heuristic-finding-card-hlDwM_of.mjs.map +1 -0
  500. package/dist/index-2Vh9mMtN.d.mts +12 -0
  501. package/dist/index-2Vh9mMtN.d.mts.map +1 -0
  502. package/dist/index-6OorKnHX.d.cts +21 -0
  503. package/dist/index-6OorKnHX.d.cts.map +1 -0
  504. package/dist/index-6OorKnHX.d.mts +21 -0
  505. package/dist/index-6OorKnHX.d.mts.map +1 -0
  506. package/dist/index-B6epY4xT.d.cts +18 -0
  507. package/dist/index-B6epY4xT.d.cts.map +1 -0
  508. package/dist/index-B8Z5coVq.d.cts +25 -0
  509. package/dist/index-B8Z5coVq.d.cts.map +1 -0
  510. package/dist/index-B8Z5coVq.d.mts +25 -0
  511. package/dist/index-B8Z5coVq.d.mts.map +1 -0
  512. package/dist/index-BHz32vzo.d.cts +17 -0
  513. package/dist/index-BHz32vzo.d.cts.map +1 -0
  514. package/dist/index-BHz32vzo.d.mts +17 -0
  515. package/dist/index-BHz32vzo.d.mts.map +1 -0
  516. package/dist/index-BUL5nXfL.d.cts +22 -0
  517. package/dist/index-BUL5nXfL.d.cts.map +1 -0
  518. package/dist/index-BUL5nXfL.d.mts +22 -0
  519. package/dist/index-BUL5nXfL.d.mts.map +1 -0
  520. package/dist/index-BVVCNb2w.d.cts +29 -0
  521. package/dist/index-BVVCNb2w.d.cts.map +1 -0
  522. package/dist/index-BVVCNb2w.d.mts +29 -0
  523. package/dist/index-BVVCNb2w.d.mts.map +1 -0
  524. package/dist/index-B_JrTcxF.d.cts +31 -0
  525. package/dist/index-B_JrTcxF.d.cts.map +1 -0
  526. package/dist/index-C3V4MOJH.d.mts +18 -0
  527. package/dist/index-C3V4MOJH.d.mts.map +1 -0
  528. package/dist/index-C3ol_8Kk.d.cts +31 -0
  529. package/dist/index-C3ol_8Kk.d.cts.map +1 -0
  530. package/dist/index-C5ugjRen.d.cts +25 -0
  531. package/dist/index-C5ugjRen.d.cts.map +1 -0
  532. package/dist/index-C5ugjRen.d.mts +25 -0
  533. package/dist/index-C5ugjRen.d.mts.map +1 -0
  534. package/dist/index-CI5EwPm7.d.cts +39 -0
  535. package/dist/index-CI5EwPm7.d.cts.map +1 -0
  536. package/dist/index-CI5EwPm7.d.mts +39 -0
  537. package/dist/index-CI5EwPm7.d.mts.map +1 -0
  538. package/dist/index-CU-siW-K.d.mts +46 -0
  539. package/dist/index-CU-siW-K.d.mts.map +1 -0
  540. package/dist/index-CsF26Fe8.d.cts +23 -0
  541. package/dist/index-CsF26Fe8.d.cts.map +1 -0
  542. package/dist/index-CsF26Fe8.d.mts +23 -0
  543. package/dist/index-CsF26Fe8.d.mts.map +1 -0
  544. package/dist/index-CvHlThTj.d.cts +10 -0
  545. package/dist/index-CvHlThTj.d.cts.map +1 -0
  546. package/dist/index-CvHlThTj.d.mts +10 -0
  547. package/dist/index-CvHlThTj.d.mts.map +1 -0
  548. package/dist/index-D56D0Sa2.d.cts +13 -0
  549. package/dist/index-D56D0Sa2.d.cts.map +1 -0
  550. package/dist/index-D56D0Sa2.d.mts +13 -0
  551. package/dist/index-D56D0Sa2.d.mts.map +1 -0
  552. package/dist/index-D5_0x-hC.d.cts +12 -0
  553. package/dist/index-D5_0x-hC.d.cts.map +1 -0
  554. package/dist/index-D5sQcRHf.d.cts +23 -0
  555. package/dist/index-D5sQcRHf.d.cts.map +1 -0
  556. package/dist/index-D5sQcRHf.d.mts +23 -0
  557. package/dist/index-D5sQcRHf.d.mts.map +1 -0
  558. package/dist/index-DeDN45Ha.d.mts +31 -0
  559. package/dist/index-DeDN45Ha.d.mts.map +1 -0
  560. package/dist/index-DjbxiLM8.d.cts +12 -0
  561. package/dist/index-DjbxiLM8.d.cts.map +1 -0
  562. package/dist/index-DjbxiLM8.d.mts +12 -0
  563. package/dist/index-DjbxiLM8.d.mts.map +1 -0
  564. package/dist/index-DlP_5d_g.d.cts +21 -0
  565. package/dist/index-DlP_5d_g.d.cts.map +1 -0
  566. package/dist/index-DlP_5d_g.d.mts +21 -0
  567. package/dist/index-DlP_5d_g.d.mts.map +1 -0
  568. package/dist/index-DtPmPGcN.d.cts +27 -0
  569. package/dist/index-DtPmPGcN.d.cts.map +1 -0
  570. package/dist/index-DtPmPGcN.d.mts +27 -0
  571. package/dist/index-DtPmPGcN.d.mts.map +1 -0
  572. package/dist/index-Q6oL7Ku9.d.cts +8 -0
  573. package/dist/index-Q6oL7Ku9.d.cts.map +1 -0
  574. package/dist/index-Q6oL7Ku9.d.mts +8 -0
  575. package/dist/index-Q6oL7Ku9.d.mts.map +1 -0
  576. package/dist/index-Ymzy10FB.d.cts +21 -0
  577. package/dist/index-Ymzy10FB.d.cts.map +1 -0
  578. package/dist/index-Ymzy10FB.d.mts +21 -0
  579. package/dist/index-Ymzy10FB.d.mts.map +1 -0
  580. package/dist/index-bZKcWdNm.d.cts +15 -0
  581. package/dist/index-bZKcWdNm.d.cts.map +1 -0
  582. package/dist/index-bZKcWdNm.d.mts +15 -0
  583. package/dist/index-bZKcWdNm.d.mts.map +1 -0
  584. package/dist/index-joP2_4d6.d.cts +11 -0
  585. package/dist/index-joP2_4d6.d.cts.map +1 -0
  586. package/dist/index-joP2_4d6.d.mts +11 -0
  587. package/dist/index-joP2_4d6.d.mts.map +1 -0
  588. package/dist/index-o7W0pKFo.d.mts +31 -0
  589. package/dist/index-o7W0pKFo.d.mts.map +1 -0
  590. package/dist/index-y8s6jpSR.d.cts +46 -0
  591. package/dist/index-y8s6jpSR.d.cts.map +1 -0
  592. package/dist/index-zlEzdw7N.d.cts +15 -0
  593. package/dist/index-zlEzdw7N.d.cts.map +1 -0
  594. package/dist/index-zlEzdw7N.d.mts +15 -0
  595. package/dist/index-zlEzdw7N.d.mts.map +1 -0
  596. package/dist/index.cjs +363 -0
  597. package/dist/index.d.cts +83 -0
  598. package/dist/index.d.cts.map +1 -0
  599. package/dist/index.d.mts +83 -0
  600. package/dist/index.d.mts.map +1 -0
  601. package/dist/index.mjs +80 -0
  602. package/dist/input-otp-C7O7AtXb.cjs +67 -0
  603. package/dist/input-otp-CFNLnAuu.mjs +44 -0
  604. package/dist/input-otp-CFNLnAuu.mjs.map +1 -0
  605. package/dist/inspector-split-view-Cwsvl3-m.cjs +150 -0
  606. package/dist/inspector-split-view-D5tX9P5r.mjs +145 -0
  607. package/dist/inspector-split-view-D5tX9P5r.mjs.map +1 -0
  608. package/dist/kbd-D9Ymi9Pt.mjs +37 -0
  609. package/dist/kbd-D9Ymi9Pt.mjs.map +1 -0
  610. package/dist/kbd-Dhz_xrKs.cjs +48 -0
  611. package/dist/pagination-B8J2t1Vr.cjs +105 -0
  612. package/dist/pagination-ivrgsud6.mjs +64 -0
  613. package/dist/pagination-ivrgsud6.mjs.map +1 -0
  614. package/dist/project-kanban-board-BHLRHooH.mjs +138 -0
  615. package/dist/project-kanban-board-BHLRHooH.mjs.map +1 -0
  616. package/dist/project-kanban-board-DUaDiHZC.cjs +143 -0
  617. package/dist/rating-CtXEsqKU.cjs +72 -0
  618. package/dist/rating-pFb5zNn2.mjs +67 -0
  619. package/dist/rating-pFb5zNn2.mjs.map +1 -0
  620. package/dist/resizable-DrJqbD5t.mjs +23 -0
  621. package/dist/resizable-DrJqbD5t.mjs.map +1 -0
  622. package/dist/resizable-VZ7tgMu9.cjs +41 -0
  623. package/dist/rolldown-runtime-D6vf50IK.cjs +28 -0
  624. package/dist/sidebar-BCBtb6sS.mjs +232 -0
  625. package/dist/sidebar-BCBtb6sS.mjs.map +1 -0
  626. package/dist/sidebar-BilZg_Lv.cjs +309 -0
  627. package/dist/sonner-Ba68yk7d.mjs +20 -0
  628. package/dist/sonner-Ba68yk7d.mjs.map +1 -0
  629. package/dist/sonner-Crak-gYY.cjs +25 -0
  630. package/dist/stepper-CgBpI7sb.cjs +96 -0
  631. package/dist/stepper-Dtf208dW.mjs +61 -0
  632. package/dist/stepper-Dtf208dW.mjs.map +1 -0
  633. package/dist/styles.css +2 -0
  634. package/dist/team-members-table-5OWUc6Ib.cjs +126 -0
  635. package/dist/team-members-table-DW52BAKr.mjs +121 -0
  636. package/dist/team-members-table-DW52BAKr.mjs.map +1 -0
  637. package/dist/timeline-CAPfreK3.cjs +118 -0
  638. package/dist/timeline-CBMvtk3M.mjs +65 -0
  639. package/dist/timeline-CBMvtk3M.mjs.map +1 -0
  640. package/dist/toggle-CZG8xQeG.cjs +48 -0
  641. package/dist/toggle-CpGSEgUK.d.cts +13 -0
  642. package/dist/toggle-CpGSEgUK.d.cts.map +1 -0
  643. package/dist/toggle-CpGSEgUK.d.mts +13 -0
  644. package/dist/toggle-CpGSEgUK.d.mts.map +1 -0
  645. package/dist/toggle-CpsU8EEk.mjs +37 -0
  646. package/dist/toggle-CpsU8EEk.mjs.map +1 -0
  647. package/dist/tree-view-BB1ghmfC.mjs +69 -0
  648. package/dist/tree-view-BB1ghmfC.mjs.map +1 -0
  649. package/dist/tree-view-BFzVxqkZ.cjs +92 -0
  650. package/dist/utils-BVF9WCwH.mjs +38 -0
  651. package/dist/utils-BVF9WCwH.mjs.map +1 -0
  652. package/dist/utils-YZxtPI0Y.cjs +40 -0
  653. package/package.json +873 -3
  654. package/scripts/audit-bundle-size.ts +80 -0
  655. package/scripts/generate-storybook-stories.ts +79 -0
  656. package/scripts/postbuild.mjs +132 -0
  657. package/scripts/public-entries.d.mts +25 -0
  658. package/scripts/public-entries.mjs +123 -0
  659. package/scripts/verify-artifacts.mjs +361 -0
  660. package/scripts/write-all-rich-stories.ts +402 -0
  661. package/src/blocks/app-shell-layout/app-shell-layout.stories.tsx +62 -0
  662. package/src/blocks/app-shell-layout/app-shell-layout.test.tsx +59 -0
  663. package/src/blocks/app-shell-layout/app-shell-layout.tsx +180 -0
  664. package/src/blocks/app-shell-layout/index.ts +5 -0
  665. package/src/blocks/auth-form/auth-form.stories.tsx +36 -0
  666. package/src/blocks/auth-form/auth-form.test.tsx +72 -0
  667. package/src/blocks/auth-form/auth-form.tsx +136 -0
  668. package/src/blocks/auth-form/index.ts +1 -0
  669. package/src/blocks/collaboration-chat-panel/collaboration-chat-panel.stories.tsx +45 -0
  670. package/src/blocks/collaboration-chat-panel/collaboration-chat-panel.test.tsx +101 -0
  671. package/src/blocks/collaboration-chat-panel/collaboration-chat-panel.tsx +180 -0
  672. package/src/blocks/collaboration-chat-panel/index.ts +5 -0
  673. package/src/blocks/color-palette-sheet/color-palette-sheet.stories.tsx +161 -0
  674. package/src/blocks/color-palette-sheet/color-palette-sheet.test.tsx +45 -0
  675. package/src/blocks/color-palette-sheet/color-palette-sheet.tsx +287 -0
  676. package/src/blocks/color-palette-sheet/index.ts +1 -0
  677. package/src/blocks/dashboard-header/dashboard-header.stories.tsx +41 -0
  678. package/src/blocks/dashboard-header/dashboard-header.test.tsx +76 -0
  679. package/src/blocks/dashboard-header/dashboard-header.tsx +128 -0
  680. package/src/blocks/dashboard-header/index.ts +1 -0
  681. package/src/blocks/data-table-with-filters/data-table-with-filters.stories.tsx +41 -0
  682. package/src/blocks/data-table-with-filters/data-table-with-filters.test.tsx +40 -0
  683. package/src/blocks/data-table-with-filters/data-table-with-filters.tsx +88 -0
  684. package/src/blocks/data-table-with-filters/index.ts +1 -0
  685. package/src/blocks/empty-state-block/empty-state-block.stories.tsx +39 -0
  686. package/src/blocks/empty-state-block/empty-state-block.test.tsx +76 -0
  687. package/src/blocks/empty-state-block/empty-state-block.tsx +83 -0
  688. package/src/blocks/empty-state-block/index.ts +4 -0
  689. package/src/blocks/evaluation-summary-report/evaluation-summary-report.stories.tsx +77 -0
  690. package/src/blocks/evaluation-summary-report/evaluation-summary-report.test.tsx +87 -0
  691. package/src/blocks/evaluation-summary-report/evaluation-summary-report.tsx +291 -0
  692. package/src/blocks/evaluation-summary-report/index.ts +5 -0
  693. package/src/blocks/form-with-validation/form-with-validation.stories.tsx +48 -0
  694. package/src/blocks/form-with-validation/form-with-validation.test.tsx +95 -0
  695. package/src/blocks/form-with-validation/form-with-validation.tsx +145 -0
  696. package/src/blocks/form-with-validation/index.ts +1 -0
  697. package/src/blocks/heuristic-finding-card/heuristic-finding-card.stories.tsx +125 -0
  698. package/src/blocks/heuristic-finding-card/heuristic-finding-card.test.tsx +68 -0
  699. package/src/blocks/heuristic-finding-card/heuristic-finding-card.tsx +218 -0
  700. package/src/blocks/heuristic-finding-card/index.ts +6 -0
  701. package/src/blocks/inspector-split-view/index.ts +5 -0
  702. package/src/blocks/inspector-split-view/inspector-split-view.stories.tsx +99 -0
  703. package/src/blocks/inspector-split-view/inspector-split-view.test.tsx +96 -0
  704. package/src/blocks/inspector-split-view/inspector-split-view.tsx +190 -0
  705. package/src/blocks/instrument-metrics-grid/index.ts +1 -0
  706. package/src/blocks/instrument-metrics-grid/instrument-metrics-grid.stories.tsx +41 -0
  707. package/src/blocks/instrument-metrics-grid/instrument-metrics-grid.test.tsx +17 -0
  708. package/src/blocks/instrument-metrics-grid/instrument-metrics-grid.tsx +277 -0
  709. package/src/blocks/project-kanban-board/index.ts +6 -0
  710. package/src/blocks/project-kanban-board/project-kanban-board.stories.tsx +107 -0
  711. package/src/blocks/project-kanban-board/project-kanban-board.test.tsx +112 -0
  712. package/src/blocks/project-kanban-board/project-kanban-board.tsx +243 -0
  713. package/src/blocks/schedule-timeline-board/index.ts +1 -0
  714. package/src/blocks/schedule-timeline-board/schedule-timeline-board.stories.tsx +202 -0
  715. package/src/blocks/schedule-timeline-board/schedule-timeline-board.test.tsx +67 -0
  716. package/src/blocks/schedule-timeline-board/schedule-timeline-board.tsx +495 -0
  717. package/src/blocks/stats-card-grid/index.ts +1 -0
  718. package/src/blocks/stats-card-grid/stats-card-grid.stories.tsx +66 -0
  719. package/src/blocks/stats-card-grid/stats-card-grid.test.tsx +53 -0
  720. package/src/blocks/stats-card-grid/stats-card-grid.tsx +127 -0
  721. package/src/blocks/team-members-table/index.ts +6 -0
  722. package/src/blocks/team-members-table/team-members-table.stories.tsx +41 -0
  723. package/src/blocks/team-members-table/team-members-table.test.tsx +58 -0
  724. package/src/blocks/team-members-table/team-members-table.tsx +178 -0
  725. package/src/components/accordion/accordion.stories.tsx +85 -0
  726. package/src/components/accordion/accordion.test.tsx +125 -0
  727. package/src/components/accordion/accordion.tsx +57 -0
  728. package/src/components/accordion/index.ts +1 -0
  729. package/src/components/alert/alert.stories.tsx +90 -0
  730. package/src/components/alert/alert.test.tsx +118 -0
  731. package/src/components/alert/alert.tsx +72 -0
  732. package/src/components/alert/index.ts +1 -0
  733. package/src/components/alert-dialog/alert-dialog.stories.tsx +129 -0
  734. package/src/components/alert-dialog/alert-dialog.test.tsx +187 -0
  735. package/src/components/alert-dialog/alert-dialog.tsx +91 -0
  736. package/src/components/alert-dialog/index.ts +1 -0
  737. package/src/components/aspect-ratio/aspect-ratio.stories.tsx +22 -0
  738. package/src/components/aspect-ratio/aspect-ratio.test.tsx +43 -0
  739. package/src/components/aspect-ratio/aspect-ratio.tsx +39 -0
  740. package/src/components/aspect-ratio/index.ts +1 -0
  741. package/src/components/avatar/avatar.stories.tsx +98 -0
  742. package/src/components/avatar/avatar.test.tsx +72 -0
  743. package/src/components/avatar/avatar.tsx +63 -0
  744. package/src/components/avatar/index.ts +1 -0
  745. package/src/components/badge/badge.stories.tsx +83 -0
  746. package/src/components/badge/badge.test.tsx +79 -0
  747. package/src/components/badge/badge.tsx +58 -0
  748. package/src/components/badge/index.ts +1 -0
  749. package/src/components/breadcrumb/breadcrumb.stories.tsx +89 -0
  750. package/src/components/breadcrumb/breadcrumb.test.tsx +132 -0
  751. package/src/components/breadcrumb/breadcrumb.tsx +115 -0
  752. package/src/components/breadcrumb/index.ts +1 -0
  753. package/src/components/button/button.stories.tsx +150 -0
  754. package/src/components/button/button.test.tsx +192 -0
  755. package/src/components/button/button.tsx +140 -0
  756. package/src/components/button/index.ts +1 -0
  757. package/src/components/calendar/calendar.stories.tsx +64 -0
  758. package/src/components/calendar/calendar.test.tsx +80 -0
  759. package/src/components/calendar/calendar.tsx +161 -0
  760. package/src/components/calendar/index.ts +1 -0
  761. package/src/components/card/card.stories.tsx +118 -0
  762. package/src/components/card/card.test.tsx +113 -0
  763. package/src/components/card/card.tsx +98 -0
  764. package/src/components/card/index.ts +1 -0
  765. package/src/components/carousel/carousel.stories.tsx +40 -0
  766. package/src/components/carousel/carousel.test.tsx +30 -0
  767. package/src/components/carousel/carousel.tsx +241 -0
  768. package/src/components/carousel/index.ts +10 -0
  769. package/src/components/chart/chart.stories.tsx +71 -0
  770. package/src/components/chart/chart.test.tsx +74 -0
  771. package/src/components/chart/chart.tsx +96 -0
  772. package/src/components/chart/index.ts +1 -0
  773. package/src/components/checkbox/checkbox.stories.tsx +118 -0
  774. package/src/components/checkbox/checkbox.test.tsx +118 -0
  775. package/src/components/checkbox/checkbox.tsx +58 -0
  776. package/src/components/checkbox/index.ts +1 -0
  777. package/src/components/collapsible/collapsible.stories.tsx +75 -0
  778. package/src/components/collapsible/collapsible.test.tsx +98 -0
  779. package/src/components/collapsible/collapsible.tsx +23 -0
  780. package/src/components/collapsible/index.ts +1 -0
  781. package/src/components/color-swatch/color-swatch.stories.tsx +28 -0
  782. package/src/components/color-swatch/color-swatch.test.tsx +86 -0
  783. package/src/components/color-swatch/color-swatch.tsx +72 -0
  784. package/src/components/color-swatch/index.ts +5 -0
  785. package/src/components/combobox/combobox.stories.tsx +72 -0
  786. package/src/components/combobox/combobox.test.tsx +146 -0
  787. package/src/components/combobox/combobox.tsx +273 -0
  788. package/src/components/combobox/index.ts +1 -0
  789. package/src/components/command/command.stories.tsx +88 -0
  790. package/src/components/command/command.test.tsx +174 -0
  791. package/src/components/command/command.tsx +152 -0
  792. package/src/components/command/index.ts +1 -0
  793. package/src/components/context-menu/context-menu.stories.tsx +62 -0
  794. package/src/components/context-menu/context-menu.test.tsx +94 -0
  795. package/src/components/context-menu/context-menu.tsx +85 -0
  796. package/src/components/context-menu/index.ts +1 -0
  797. package/src/components/copy-button/copy-button.stories.tsx +21 -0
  798. package/src/components/copy-button/copy-button.test.tsx +33 -0
  799. package/src/components/copy-button/copy-button.tsx +71 -0
  800. package/src/components/copy-button/index.ts +1 -0
  801. package/src/components/data-table/data-table.stories.tsx +85 -0
  802. package/src/components/data-table/data-table.test.tsx +117 -0
  803. package/src/components/data-table/data-table.tsx +243 -0
  804. package/src/components/data-table/index.ts +1 -0
  805. package/src/components/date-picker/date-picker.stories.tsx +49 -0
  806. package/src/components/date-picker/date-picker.test.tsx +50 -0
  807. package/src/components/date-picker/date-picker.tsx +78 -0
  808. package/src/components/date-picker/index.ts +1 -0
  809. package/src/components/dialog/dialog.stories.tsx +131 -0
  810. package/src/components/dialog/dialog.test.tsx +197 -0
  811. package/src/components/dialog/dialog.tsx +97 -0
  812. package/src/components/dialog/index.ts +1 -0
  813. package/src/components/drawer/drawer.stories.tsx +158 -0
  814. package/src/components/drawer/drawer.test.tsx +189 -0
  815. package/src/components/drawer/drawer.tsx +99 -0
  816. package/src/components/drawer/index.ts +1 -0
  817. package/src/components/dropdown-menu/dropdown-menu.stories.tsx +96 -0
  818. package/src/components/dropdown-menu/dropdown-menu.test.tsx +139 -0
  819. package/src/components/dropdown-menu/dropdown-menu.tsx +88 -0
  820. package/src/components/dropdown-menu/index.ts +1 -0
  821. package/src/components/file-input/file-input.stories.tsx +50 -0
  822. package/src/components/file-input/file-input.test.tsx +85 -0
  823. package/src/components/file-input/file-input.tsx +91 -0
  824. package/src/components/file-input/index.ts +1 -0
  825. package/src/components/form/form.stories.tsx +86 -0
  826. package/src/components/form/form.test.tsx +246 -0
  827. package/src/components/form/form.tsx +210 -0
  828. package/src/components/form/index.ts +1 -0
  829. package/src/components/hover-card/hover-card.stories.tsx +74 -0
  830. package/src/components/hover-card/hover-card.test.tsx +63 -0
  831. package/src/components/hover-card/hover-card.tsx +85 -0
  832. package/src/components/hover-card/index.ts +1 -0
  833. package/src/components/input/index.ts +1 -0
  834. package/src/components/input/input.stories.tsx +146 -0
  835. package/src/components/input/input.test.tsx +74 -0
  836. package/src/components/input/input.tsx +39 -0
  837. package/src/components/input-otp/index.ts +6 -0
  838. package/src/components/input-otp/input-otp.stories.tsx +35 -0
  839. package/src/components/input-otp/input-otp.test.tsx +52 -0
  840. package/src/components/input-otp/input-otp.tsx +69 -0
  841. package/src/components/kbd/index.ts +1 -0
  842. package/src/components/kbd/kbd.stories.tsx +22 -0
  843. package/src/components/kbd/kbd.test.tsx +25 -0
  844. package/src/components/kbd/kbd.tsx +41 -0
  845. package/src/components/label/index.ts +1 -0
  846. package/src/components/label/label.stories.tsx +44 -0
  847. package/src/components/label/label.test.tsx +47 -0
  848. package/src/components/label/label.tsx +31 -0
  849. package/src/components/menubar/index.ts +1 -0
  850. package/src/components/menubar/menubar.stories.tsx +70 -0
  851. package/src/components/menubar/menubar.test.tsx +103 -0
  852. package/src/components/menubar/menubar.tsx +103 -0
  853. package/src/components/navigation-menu/index.ts +1 -0
  854. package/src/components/navigation-menu/navigation-menu.stories.tsx +118 -0
  855. package/src/components/navigation-menu/navigation-menu.test.tsx +84 -0
  856. package/src/components/navigation-menu/navigation-menu.tsx +111 -0
  857. package/src/components/number-field/index.ts +1 -0
  858. package/src/components/number-field/number-field.stories.tsx +69 -0
  859. package/src/components/number-field/number-field.test.tsx +76 -0
  860. package/src/components/number-field/number-field.tsx +48 -0
  861. package/src/components/pagination/index.ts +10 -0
  862. package/src/components/pagination/pagination.stories.tsx +46 -0
  863. package/src/components/pagination/pagination.test.tsx +48 -0
  864. package/src/components/pagination/pagination.tsx +106 -0
  865. package/src/components/popover/index.ts +1 -0
  866. package/src/components/popover/popover.stories.tsx +106 -0
  867. package/src/components/popover/popover.test.tsx +111 -0
  868. package/src/components/popover/popover.tsx +30 -0
  869. package/src/components/progress/index.ts +1 -0
  870. package/src/components/progress/progress.stories.tsx +172 -0
  871. package/src/components/progress/progress.test.tsx +68 -0
  872. package/src/components/progress/progress.tsx +156 -0
  873. package/src/components/radio-group/index.ts +1 -0
  874. package/src/components/radio-group/radio-group.stories.tsx +125 -0
  875. package/src/components/radio-group/radio-group.test.tsx +160 -0
  876. package/src/components/radio-group/radio-group.tsx +56 -0
  877. package/src/components/rating/index.ts +1 -0
  878. package/src/components/rating/rating.stories.tsx +39 -0
  879. package/src/components/rating/rating.test.tsx +103 -0
  880. package/src/components/rating/rating.tsx +134 -0
  881. package/src/components/resizable/index.ts +5 -0
  882. package/src/components/resizable/resizable.stories.tsx +36 -0
  883. package/src/components/resizable/resizable.test.tsx +42 -0
  884. package/src/components/resizable/resizable.tsx +43 -0
  885. package/src/components/scroll-area/index.ts +1 -0
  886. package/src/components/scroll-area/scroll-area.stories.tsx +48 -0
  887. package/src/components/scroll-area/scroll-area.test.tsx +52 -0
  888. package/src/components/scroll-area/scroll-area.tsx +46 -0
  889. package/src/components/select/index.ts +1 -0
  890. package/src/components/select/select.stories.tsx +89 -0
  891. package/src/components/select/select.test.tsx +162 -0
  892. package/src/components/select/select.tsx +89 -0
  893. package/src/components/separator/index.ts +1 -0
  894. package/src/components/separator/separator.stories.tsx +68 -0
  895. package/src/components/separator/separator.test.tsx +35 -0
  896. package/src/components/separator/separator.tsx +25 -0
  897. package/src/components/sheet/index.ts +1 -0
  898. package/src/components/sheet/sheet.stories.tsx +164 -0
  899. package/src/components/sheet/sheet.test.tsx +187 -0
  900. package/src/components/sheet/sheet.tsx +119 -0
  901. package/src/components/sidebar/index.ts +18 -0
  902. package/src/components/sidebar/sidebar.stories.tsx +100 -0
  903. package/src/components/sidebar/sidebar.test.tsx +108 -0
  904. package/src/components/sidebar/sidebar.tsx +428 -0
  905. package/src/components/skeleton/index.ts +1 -0
  906. package/src/components/skeleton/skeleton.stories.tsx +51 -0
  907. package/src/components/skeleton/skeleton.test.tsx +41 -0
  908. package/src/components/skeleton/skeleton.tsx +22 -0
  909. package/src/components/slider/index.ts +1 -0
  910. package/src/components/slider/slider.stories.tsx +95 -0
  911. package/src/components/slider/slider.test.tsx +58 -0
  912. package/src/components/slider/slider.tsx +34 -0
  913. package/src/components/sonner/index.ts +1 -0
  914. package/src/components/sonner/sonner.stories.tsx +34 -0
  915. package/src/components/sonner/sonner.test.tsx +15 -0
  916. package/src/components/sonner/sonner.tsx +28 -0
  917. package/src/components/spinner/index.ts +1 -0
  918. package/src/components/spinner/spinner.stories.tsx +66 -0
  919. package/src/components/spinner/spinner.test.tsx +49 -0
  920. package/src/components/spinner/spinner.tsx +65 -0
  921. package/src/components/stepper/index.ts +11 -0
  922. package/src/components/stepper/stepper.stories.tsx +51 -0
  923. package/src/components/stepper/stepper.test.tsx +50 -0
  924. package/src/components/stepper/stepper.tsx +129 -0
  925. package/src/components/switch/index.ts +1 -0
  926. package/src/components/switch/switch.stories.tsx +81 -0
  927. package/src/components/switch/switch.test.tsx +81 -0
  928. package/src/components/switch/switch.tsx +26 -0
  929. package/src/components/table/index.ts +1 -0
  930. package/src/components/table/table.stories.tsx +100 -0
  931. package/src/components/table/table.test.tsx +89 -0
  932. package/src/components/table/table.tsx +120 -0
  933. package/src/components/tabs/index.ts +1 -0
  934. package/src/components/tabs/tabs.stories.tsx +95 -0
  935. package/src/components/tabs/tabs.test.tsx +175 -0
  936. package/src/components/tabs/tabs.tsx +58 -0
  937. package/src/components/textarea/index.ts +1 -0
  938. package/src/components/textarea/textarea.stories.tsx +103 -0
  939. package/src/components/textarea/textarea.test.tsx +65 -0
  940. package/src/components/textarea/textarea.tsx +38 -0
  941. package/src/components/timeline/index.ts +12 -0
  942. package/src/components/timeline/timeline.stories.tsx +104 -0
  943. package/src/components/timeline/timeline.test.tsx +39 -0
  944. package/src/components/timeline/timeline.tsx +135 -0
  945. package/src/components/toast/index.ts +1 -0
  946. package/src/components/toast/toast.stories.tsx +170 -0
  947. package/src/components/toast/toast.test.tsx +159 -0
  948. package/src/components/toast/toast.tsx +136 -0
  949. package/src/components/toggle/index.ts +1 -0
  950. package/src/components/toggle/toggle.stories.tsx +106 -0
  951. package/src/components/toggle/toggle.test.tsx +87 -0
  952. package/src/components/toggle/toggle.tsx +41 -0
  953. package/src/components/toggle-group/index.ts +1 -0
  954. package/src/components/toggle-group/toggle-group.stories.tsx +123 -0
  955. package/src/components/toggle-group/toggle-group.test.tsx +102 -0
  956. package/src/components/toggle-group/toggle-group.tsx +58 -0
  957. package/src/components/tooltip/index.ts +1 -0
  958. package/src/components/tooltip/tooltip.stories.tsx +82 -0
  959. package/src/components/tooltip/tooltip.test.tsx +103 -0
  960. package/src/components/tooltip/tooltip.tsx +30 -0
  961. package/src/components/tree-view/index.ts +8 -0
  962. package/src/components/tree-view/tree-view.stories.tsx +61 -0
  963. package/src/components/tree-view/tree-view.test.tsx +36 -0
  964. package/src/components/tree-view/tree-view.tsx +116 -0
  965. package/src/index.ts +77 -0
  966. package/src/lib/utils.ts +38 -0
  967. package/src/test/contrast.ts +139 -0
  968. package/src/test/palette-contract.test.ts +697 -0
  969. package/src/test/public-entries.test.ts +118 -0
  970. package/src/test/setup.ts +94 -0
  971. package/src/test/sidebar-contract.test.ts +196 -0
  972. package/src/test/type-contract.test.ts +253 -0
  973. package/src/test/vitest-axe.d.ts +10 -0
  974. package/src/typography/typography.stories.tsx +172 -0
  975. package/styles/compiled.css +19 -0
  976. package/styles/globals.css +27 -0
  977. package/styles/theme.css +430 -0
  978. package/tsconfig.json +11 -0
  979. package/tsdown.config.ts +34 -0
@@ -0,0 +1,697 @@
1
+ // Palette contract tests — TDD layer for OpenSpec change
2
+ // refactor-sdd-tdd-full-coverage, tasks 10-11 (Batch 2).
3
+ //
4
+ // These tests read the actual source (theme.css tokens + component CVA
5
+ // class strings) and verify the DESIGN.md palette contract BY CALCULATION:
6
+ // every chromatic text pair must clear the WCAG AA floor (>= 4.5:1 body
7
+ // text, >= 3:1 non-text) in BOTH the light and dark themes.
8
+ //
9
+ // RED state (documented in .impeccable/critique 2026-09-24, Priority 2 & 4):
10
+ // - `dark:` compiles to prefers-color-scheme media queries because globals.css
11
+ // never declares the class-based dark variant.
12
+ // - Badge chromatic text sits on 10% tints with raw-hue text: light theme
13
+ // measures ~2.1:1 (signal-teal) to ~4.0:1 (iris-violet) vs the 4.5:1 floor.
14
+ // - alert/toast/progress/rating/copy-button still carry shadcn-era
15
+ // emerald/amber/blue washes.
16
+ // - Input/textarea/card fills use theme-blind `bg-white/[0.02]`.
17
+
18
+ import { readFileSync } from "node:fs";
19
+ import path from "node:path";
20
+ import { fileURLToPath } from "node:url";
21
+ import { describe, expect, it } from "vitest";
22
+ import { badgeVariants } from "../components/badge/badge";
23
+ import { alertVariants } from "../components/alert/alert";
24
+ import { toastVariants } from "../components/toast/toast";
25
+ import { indicatorVariants } from "../components/progress/progress";
26
+ import { inputVariants } from "../components/input/input";
27
+ import { textareaVariants } from "../components/textarea/textarea";
28
+ import { cardVariants } from "../components/card/card";
29
+ import {
30
+ blend,
31
+ contrastRatio,
32
+ formatRgb,
33
+ hexToRgb,
34
+ mixOklab,
35
+ relativeLuminance,
36
+ type RGB,
37
+ } from "./contrast";
38
+
39
+ const here = path.dirname(fileURLToPath(import.meta.url));
40
+ const themeCss = readFileSync(
41
+ path.resolve(here, "../../styles/theme.css"),
42
+ "utf8",
43
+ );
44
+
45
+ const COMPONENT_DIR = path.resolve(here, "../components");
46
+
47
+ function readComponent(relativePath: string): string {
48
+ return readFileSync(path.resolve(COMPONENT_DIR, relativePath), "utf8");
49
+ }
50
+
51
+ // ---------------------------------------------------------------------------
52
+ // Minimal theme.css token parser.
53
+ // ---------------------------------------------------------------------------
54
+
55
+ type VarMap = Record<string, string>; // token name (without --) -> raw value
56
+
57
+ const LIGHT_SELECTOR = 'html[data-theme="light"]:not(.dark)';
58
+ const DARK_SELECTOR = '.dark,\n html[data-theme="dark"]';
59
+
60
+ function blockSourceAfter(css: string, selector: string): string {
61
+ const at = css.indexOf(selector);
62
+ if (at === -1) return "";
63
+ const start = css.indexOf("{", at);
64
+ const end = css.indexOf("}", start);
65
+ return css.slice(start + 1, end);
66
+ }
67
+
68
+ function collectVars(css: string): VarMap {
69
+ const vars: VarMap = {};
70
+ const re = /--([a-z0-9-]+)\s*:\s*([^;]+);/g;
71
+ let m: RegExpExecArray | null;
72
+ while ((m = re.exec(css))) {
73
+ if (!(m[1] in vars)) vars[m[1]] = m[2].trim();
74
+ }
75
+ return vars;
76
+ }
77
+
78
+ const baseVars = collectVars(themeCss);
79
+ const lightVars = { ...baseVars, ...collectVars(blockSourceAfter(themeCss, LIGHT_SELECTOR)) };
80
+ const darkVars = { ...baseVars, ...collectVars(blockSourceAfter(themeCss, DARK_SELECTOR)) };
81
+
82
+ /** Resolve a token value to a concrete sRGB triple for the given theme. */
83
+ function resolveToken(name: string, theme: "light" | "dark"): RGB {
84
+ const key = name.startsWith("color-") ? name : `color-${name}`;
85
+ const scoped = theme === "light" ? lightVars : darkVars;
86
+ const value = scoped[key] ?? baseVars[key];
87
+ if (!value) throw new Error(`Token --${key} not found in theme.css`);
88
+
89
+ const hex = value.match(/^#([0-9a-fA-F]{3,8})$/);
90
+ if (hex) return hexToRgb(value);
91
+
92
+ const varRef = value.match(/^var\(--([a-z0-9-]+)\)$/);
93
+ if (varRef) return resolveToken(varRef[1], theme);
94
+
95
+ const colorMix = value.match(
96
+ /^color-mix\(in oklab,\s*var\(--([a-z0-9-]+)\)\s+([\d.]+)%,\s*var\(--([a-z0-9-]+)\)\)$/,
97
+ );
98
+ if (colorMix) {
99
+ const a = resolveToken(colorMix[1], theme);
100
+ const b = resolveToken(colorMix[3], theme);
101
+ return mixOklab(a, b, parseFloat(colorMix[2]));
102
+ }
103
+
104
+ const rgb = value.match(/^rgba?\(.+\)$/);
105
+ if (rgb) {
106
+ const nums = value
107
+ .replace(/^rgba?\(/, "")
108
+ .replace(/\)$/, "")
109
+ .split(/[\s,/]+/)
110
+ .filter(Boolean)
111
+ .map((n) => parseFloat(n));
112
+ return [nums[0], nums[1] ?? 0, nums[2] ?? 0] as RGB;
113
+ }
114
+
115
+ throw new Error(`Unsupported token value for --${key}: "${value}"`);
116
+ }
117
+
118
+ /** Alpha baked into a token declared like `rgb(255 255 255 / 0.02)`. */
119
+ function tokenAlpha(name: string, theme: "light" | "dark"): number {
120
+ const key = name.startsWith("color-") ? name : `color-${name}`;
121
+ const scoped = theme === "light" ? lightVars : darkVars;
122
+ const value = scoped[key] ?? darkVars[key] ?? "";
123
+ const m = value.match(/\/\s*([\d.]+)\s*\)?$/);
124
+ return m ? parseFloat(m[1]) : 1;
125
+ }
126
+
127
+ function classList(variants: string): string[] {
128
+ return variants.split(/\s+/).filter(Boolean);
129
+ }
130
+
131
+ /**
132
+ * Resolve the text/ink token a chromatic variant declares. GREEN contract:
133
+ * an explicit `text-<hue>-foreground` pair. Legacy `text-<hue>` (raw hue as
134
+ * text) is accepted as a fallback so the numeric test can RED with real
135
+ * measured ratios instead of an unresolvable token.
136
+ */
137
+ function resolveInkToken(classes: string[], hue: string): string {
138
+ const explicit = classes.find((c) => c === `text-${hue}-foreground`);
139
+ if (explicit) return `${hue}-foreground`;
140
+ const legacy = classes.find((c) => c === `text-${hue}`);
141
+ if (legacy) return hue;
142
+ throw new Error(
143
+ `No text pair found for hue "${hue}" in classes: ${classes.join(" ")}`,
144
+ );
145
+ }
146
+
147
+ /** Extract `bg-<token>/<alpha>` tint from a CVA class string. */
148
+ function resolveBgTint(classes: string[]): { token: string; alpha: number } {
149
+ const bg = classes.find((c) => /^bg-[a-z0-9-]+\/\d+$/.test(c));
150
+ if (!bg) {
151
+ throw new Error(
152
+ `No tinted surface (bg-<token>/<alpha>) in classes: ${classes.join(" ")}`,
153
+ );
154
+ }
155
+ const [, token, alpha] = bg.match(/^bg-([a-z0-9-]+)\/(\d+)$/)!;
156
+ return { token, alpha: parseInt(alpha, 10) / 100 };
157
+ }
158
+
159
+ // Surfaces each theme can present behind a component (canvas extremes).
160
+ const themeCanvases: Record<"light" | "dark", () => RGB[]> = {
161
+ light: () => [
162
+ resolveToken("background", "light"),
163
+ resolveToken("secondary", "light"),
164
+ resolveToken("accent", "light"),
165
+ ],
166
+ dark: () => [
167
+ resolveToken("void", "dark"),
168
+ resolveToken("carbon", "dark"),
169
+ resolveToken("obsidian", "dark"),
170
+ ],
171
+ };
172
+
173
+ const BODY_FLOOR = 4.5; // text-xs (12px) badge/alert/toast copy
174
+ const NON_TEXT_FLOOR = 3.0; // icons, indicators, star fills
175
+
176
+ type BadgeChromatic =
177
+ | "cobalt"
178
+ | "pulse-green"
179
+ | "coral-red"
180
+ | "signal-teal"
181
+ | "iris-violet"
182
+ | "lavender";
183
+
184
+ const BADGE_CHROMATIC_VARIANTS: BadgeChromatic[] = [
185
+ "cobalt",
186
+ "pulse-green",
187
+ "coral-red",
188
+ "signal-teal",
189
+ "iris-violet",
190
+ "lavender",
191
+ ];
192
+
193
+ // Stock Tailwind palette hues that must not survive the DESIGN.md migration.
194
+ const STOCK_HUE_CLASSES =
195
+ /\b(?:text|bg|border|fill|ring|stroke)-(?:(?:emerald|amber|blue|red|orange|yellow|lime|sky|cyan|teal|violet|purple|fuchsia|pink|rose|indigo|slate|gray|zinc|stone|neutral)-\d{2,3}\b)/;
196
+
197
+ // Utilities that are NOT declared in @theme, so they compile to stock
198
+ // Tailwind defaults instead of the DESIGN.md shadow stack.
199
+ const DEFAULT_SHADOW_LEAK = /\bshadow-(?:2xs|xs|lg|2xl)\b/;
200
+
201
+ function contrastAgainst(
202
+ fg: RGB,
203
+ hueToken: string,
204
+ tintAlpha: number,
205
+ theme: "light" | "dark",
206
+ ): Array<{ canvas: RGB; bg: RGB; ratio: number }> {
207
+ const hueColor = resolveToken(hueToken, theme);
208
+ return themeCanvases[theme]().map((canvas) => {
209
+ const bg = blend({ rgb: hueColor, alpha: tintAlpha }, canvas);
210
+ return { canvas, bg, ratio: contrastRatio(fg, bg) };
211
+ });
212
+ }
213
+
214
+ describe("Theme gate (task 10)", () => {
215
+ it("theme.css gates the dark: variant to the .dark class strategy", () => {
216
+ expect(
217
+ themeCss.includes("@custom-variant dark (&:where(.dark, .dark *));"),
218
+ ).toBe(true);
219
+ });
220
+ });
221
+
222
+ describe("Badge chromatic contrast (Both-Theme Contrast Floor)", () => {
223
+ it("pairs every chromatic tint with an explicit theme-calibrated -foreground", () => {
224
+ for (const variant of BADGE_CHROMATIC_VARIANTS) {
225
+ const classes = classList(badgeVariants({ variant }) as string);
226
+ expect(
227
+ classes.some((c) => c === `text-${variant}-foreground`),
228
+ `badge variant "${variant}" must declare an explicit text-${variant}-foreground pair (packages/ui/src/components/badge/badge.tsx)`,
229
+ ).toBe(true);
230
+ }
231
+ });
232
+
233
+ it("meets >= 4.5:1 on its tinted surface in BOTH themes, computed from tokens", () => {
234
+ const report: string[] = [];
235
+ for (const variant of BADGE_CHROMATIC_VARIANTS) {
236
+ const classes = classList(badgeVariants({ variant }) as string);
237
+ const inkToken = resolveInkToken(classes, variant);
238
+ const { token: tintToken, alpha: tintAlpha } = resolveBgTint(classes);
239
+ for (const theme of ["light", "dark"] as const) {
240
+ const ink = resolveToken(inkToken, theme);
241
+ for (const { bg, ratio } of contrastAgainst(
242
+ ink,
243
+ tintToken,
244
+ tintAlpha,
245
+ theme,
246
+ )) {
247
+ const line = `badge ${variant} [${theme}] ${formatRgb(ink)} on ${formatRgb(bg)} -> ${ratio.toFixed(2)}:1`;
248
+ report.push(line);
249
+ console.log(`[palette-contract] ${line}`);
250
+ expect(
251
+ ratio,
252
+ `badge variant "${variant}" in ${theme} theme: ${formatRgb(ink)} on ${formatRgb(bg)} = ${ratio.toFixed(2)}:1 < ${BODY_FLOOR}:1 (ink token: --${inkToken})`,
253
+ ).toBeGreaterThanOrEqual(BODY_FLOOR);
254
+ }
255
+ }
256
+ }
257
+ console.log(`[palette-contract] badge ratios:\n${report.join("\n")}`);
258
+ });
259
+
260
+ it("keeps the acid-lime and destructive solid fills on-contrast in both themes", () => {
261
+ const lime = classList(badgeVariants({ variant: "acid-lime" }) as string);
262
+ expect(lime).toContain("bg-acid-lime");
263
+ expect(lime).toContain("text-void");
264
+ const destructive = classList(
265
+ badgeVariants({ variant: "destructive" }) as string,
266
+ );
267
+ expect(destructive).toContain("bg-destructive");
268
+ expect(destructive).toContain("text-destructive-foreground");
269
+ for (const theme of ["light", "dark"] as const) {
270
+ const onLime = contrastRatio(
271
+ resolveToken("void", theme),
272
+ resolveToken("acid-lime", theme),
273
+ );
274
+ const onCoral = contrastRatio(
275
+ resolveToken("destructive-foreground", theme),
276
+ resolveToken("destructive", theme),
277
+ );
278
+ expect(onLime).toBeGreaterThanOrEqual(BODY_FLOOR);
279
+ expect(onCoral).toBeGreaterThanOrEqual(BODY_FLOOR);
280
+ }
281
+ });
282
+
283
+ it("keeps the destructive hover fill on-contrast in BOTH themes (owner measured 4.0:1)", () => {
284
+ const destructive = classList(
285
+ badgeVariants({ variant: "destructive" }) as string,
286
+ );
287
+ // The hover fill is declared as `hover:bg-<token>/<alpha>`; resolve it
288
+ // from the CVA string instead of hardcoding so the contract tracks the
289
+ // component.
290
+ const hoverClass = destructive.find((c) => /^hover:bg-[a-z0-9-]+\/\d+$/.test(c));
291
+ expect(
292
+ hoverClass,
293
+ `badge destructive must declare a hover:bg-<token>/<alpha> treatment (${destructive.join(" ")})`,
294
+ ).toBeTruthy();
295
+ const [, hoverToken, hoverAlphaRaw] = hoverClass!.match(
296
+ /^hover:bg-([a-z0-9-]+)\/(\d+)$/,
297
+ )!;
298
+ const hoverAlpha = Number(hoverAlphaRaw) / 100;
299
+ expect(hoverToken).toBe("destructive");
300
+
301
+ // Compute the hover background exactly as the browser would: the token
302
+ // blended at its alpha over each theme canvas, checked against the
303
+ // destructive ink in both themes.
304
+ for (const theme of ["light", "dark"] as const) {
305
+ const ink = resolveToken("destructive-foreground", theme);
306
+ for (const canvas of themeCanvases[theme]()) {
307
+ const bg = blend(
308
+ { rgb: resolveToken(hoverToken, theme), alpha: hoverAlpha },
309
+ canvas,
310
+ );
311
+ const ratio = contrastRatio(ink, bg);
312
+ console.log(
313
+ `[palette-contract] badge destructive hover:${hoverToken}/${hoverAlphaRaw}% [${theme}] ink ${formatRgb(ink)} on ${formatRgb(bg)} -> ${ratio.toFixed(2)}:1`,
314
+ );
315
+ expect(
316
+ ratio,
317
+ `badge destructive hover (${hoverClass}) in ${theme} theme: ${formatRgb(ink)} on ${formatRgb(bg)} = ${ratio.toFixed(2)}:1 < ${BODY_FLOOR}:1`,
318
+ ).toBeGreaterThanOrEqual(BODY_FLOOR);
319
+ }
320
+ }
321
+ });
322
+ });
323
+
324
+ describe("Alert / Toast semantic palettes (task 11)", () => {
325
+ const cases: Array<{
326
+ file: string;
327
+ name: string;
328
+ get: (variant: string) => string;
329
+ variants: Array<[string, string]>;
330
+ }> = [
331
+ {
332
+ file: "alert/alert.tsx",
333
+ name: "alert",
334
+ get: (v) =>
335
+ alertVariants({
336
+ variant: v as "default" | "destructive" | "success" | "warning" | "info",
337
+ }) as string,
338
+ variants: [
339
+ ["success", "pulse-green"],
340
+ ["warning", "amber-signal"],
341
+ ["info", "signal-teal"],
342
+ ["destructive", "coral-red"],
343
+ ],
344
+ },
345
+ {
346
+ file: "toast/toast.tsx",
347
+ name: "toast",
348
+ get: (v) =>
349
+ toastVariants({
350
+ variant: v as "default" | "destructive" | "success" | "warning" | "info",
351
+ }) as string,
352
+ variants: [
353
+ ["success", "pulse-green"],
354
+ ["warning", "amber-signal"],
355
+ ["destructive", "coral-red"],
356
+ ["info", "iris-violet"],
357
+ ],
358
+ },
359
+ ];
360
+
361
+ for (const { file, name, get, variants } of cases) {
362
+ it(`${name} variants map to DESIGN.md chromatics with explicit -foreground pairs`, () => {
363
+ for (const [variant] of variants) {
364
+ const classes = classList(get(variant));
365
+ expect(
366
+ classes.some((c) => /^text-[a-z0-9-]+-foreground$/.test(c)),
367
+ `${name} variant "${variant}" must declare an explicit -foreground pair (${file})`,
368
+ ).toBe(true);
369
+ expect(
370
+ classes.some((c) => /^bg-[a-z0-9-]+\/\d+$/.test(c)),
371
+ `${name} variant "${variant}" must declare a tinted surface (${file})`,
372
+ ).toBe(true);
373
+ }
374
+ });
375
+
376
+ it(`${name} variants meet >= 4.5:1 in BOTH themes (computed)`, () => {
377
+ const report: string[] = [];
378
+ for (const [variant] of variants) {
379
+ const classes = classList(get(variant));
380
+ const inkToken = classes
381
+ .find((c) => /^text-[a-z0-9-]+-foreground$/.test(c))!
382
+ .replace(/^text-/, "");
383
+ const { token: tintToken, alpha: tintAlpha } = resolveBgTint(classes);
384
+ for (const theme of ["light", "dark"] as const) {
385
+ const ink = resolveToken(inkToken, theme);
386
+ for (const { bg, ratio } of contrastAgainst(
387
+ ink,
388
+ tintToken,
389
+ tintAlpha,
390
+ theme,
391
+ )) {
392
+ const softened = contrastRatio(
393
+ blend({ rgb: ink, alpha: 0.9 }, bg),
394
+ bg,
395
+ );
396
+ const line = `${name} ${variant} [${theme}] ${formatRgb(ink)} on ${formatRgb(bg)} -> ${ratio.toFixed(2)}:1 (description @90%: ${softened.toFixed(2)}:1)`;
397
+ report.push(line);
398
+ console.log(`[palette-contract] ${line}`);
399
+ expect(
400
+ ratio,
401
+ `${name} "${variant}" ${theme} theme: ${ratio.toFixed(2)}:1 < ${BODY_FLOOR}:1 (${file})`,
402
+ ).toBeGreaterThanOrEqual(BODY_FLOOR);
403
+ expect(
404
+ softened,
405
+ `${name} "${variant}" ${theme} theme description (90% opacity): ${softened.toFixed(2)}:1 < ${BODY_FLOOR}:1`,
406
+ ).toBeGreaterThanOrEqual(BODY_FLOOR);
407
+ }
408
+ }
409
+ }
410
+ console.log(`[palette-contract] ${name} ratios:\n${report.join("\n")}`);
411
+ });
412
+ }
413
+
414
+ it("no component ships stock Tailwind palette washes anymore", () => {
415
+ const files = [
416
+ "alert/alert.tsx",
417
+ "toast/toast.tsx",
418
+ "progress/progress.tsx",
419
+ "rating/rating.tsx",
420
+ "copy-button/copy-button.tsx",
421
+ ];
422
+ for (const file of files) {
423
+ const source = readComponent(file);
424
+ const hit = source.match(STOCK_HUE_CLASSES);
425
+ expect(
426
+ hit,
427
+ `${file} still carries a stock Tailwind palette class ("${hit?.[0]}") — use DESIGN.md chromatic tokens`,
428
+ ).toBeNull();
429
+ }
430
+ });
431
+ });
432
+
433
+ describe("Progress / Rating / CopyButton chromatic ink (task 11)", () => {
434
+ it("progress indicators hold >= 3:1 against their track in both themes", () => {
435
+ const mapping: Array<[string, string]> = [
436
+ ["success", "pulse-green-foreground"],
437
+ ["warning", "amber-signal-foreground"],
438
+ ["destructive", "destructive"],
439
+ ];
440
+ for (const [variant, token] of mapping) {
441
+ const classes = classList(
442
+ indicatorVariants({
443
+ variant: variant as "default" | "success" | "warning" | "destructive",
444
+ }) as string,
445
+ );
446
+ expect(classes, `progress ${variant} indicator must use bg-${token}`).toContain(
447
+ `bg-${token}`,
448
+ );
449
+ }
450
+ for (const theme of ["light", "dark"] as const) {
451
+ const track = resolveToken("secondary", theme);
452
+ for (const [, token] of mapping) {
453
+ const ink = resolveToken(token, theme);
454
+ const ratio = contrastRatio(ink, track);
455
+ console.log(
456
+ `[palette-contract] progress ${token} [${theme}] on ${formatRgb(track)} -> ${ratio.toFixed(2)}:1`,
457
+ );
458
+ expect(
459
+ ratio,
460
+ `progress indicator ${token} on ${theme} track ${formatRgb(track)}: ${ratio.toFixed(2)}:1 < ${NON_TEXT_FLOOR}:1`,
461
+ ).toBeGreaterThanOrEqual(NON_TEXT_FLOOR);
462
+ }
463
+ }
464
+ });
465
+
466
+ it("rating filled stars hold >= 3:1 in both themes", () => {
467
+ const source = readComponent("rating/rating.tsx");
468
+ expect(source).toContain("fill-pulse-green-foreground");
469
+ expect(source).not.toMatch(STOCK_HUE_CLASSES);
470
+ });
471
+
472
+ it("copy-button confirmation ink holds >= 3:1 in both themes", () => {
473
+ const source = readComponent("copy-button/copy-button.tsx");
474
+ expect(source).toContain("text-pulse-green-foreground");
475
+ expect(source).not.toMatch(STOCK_HUE_CLASSES);
476
+ });
477
+ });
478
+
479
+ describe("Field fills (task 11)", () => {
480
+ it("theme.css declares --color-field with distinct light and dark alphas", () => {
481
+ expect(
482
+ lightVars["color-field"],
483
+ "--color-field must exist in light theme",
484
+ ).toBeTruthy();
485
+ expect(
486
+ darkVars["color-field"],
487
+ "--color-field must be overridden in the dark theme block",
488
+ ).toBeTruthy();
489
+ expect(tokenAlpha("color-field", "light")).toBeGreaterThan(0);
490
+ expect(tokenAlpha("color-field", "light")).toBeLessThan(0.06);
491
+ expect(tokenAlpha("color-field", "dark")).toBeGreaterThan(0);
492
+ expect(tokenAlpha("color-field", "dark")).toBeLessThan(0.06);
493
+ });
494
+
495
+ it("input/textarea/card-subtle fill from the semantic token, not theme-blind white", () => {
496
+ const inputs = classList(inputVariants({}) as string);
497
+ const textareas = classList(textareaVariants({}) as string);
498
+ const subtleCard = classList(cardVariants({ variant: "subtle" }) as string);
499
+ for (const [name, classes] of [
500
+ ["input", inputs],
501
+ ["textarea", textareas],
502
+ ["card subtle", subtleCard],
503
+ ] as const) {
504
+ expect(classes, `${name} must use bg-field`).toContain("bg-field");
505
+ expect(
506
+ classes.some((c) => c.startsWith("bg-white/")),
507
+ `${name} must not use theme-blind bg-white fills`,
508
+ ).toBe(false);
509
+ }
510
+ });
511
+ });
512
+
513
+ // ---------------------------------------------------------------------------
514
+ // Light-theme overlay elevation (task 14): the dark 60%-alpha --shadow-xl
515
+ // halo reads as a black smear around popovers on the light canvas. The light
516
+ // block must soften it; the dark default must stay untouched.
517
+ // ---------------------------------------------------------------------------
518
+
519
+ describe("Light-theme overlay shadow (task 14)", () => {
520
+ it("keeps --shadow-xl soft in light mode and distinct in dark mode", () => {
521
+ expect(
522
+ darkVars["shadow-xl"],
523
+ "--shadow-xl must be declared in the dark theme block",
524
+ ).toBeTruthy();
525
+ const light = lightVars["shadow-xl"];
526
+ expect(
527
+ light,
528
+ '--shadow-xl must exist in the light theme',
529
+ ).toBeTruthy();
530
+ expect(light).not.toBe(darkVars["shadow-xl"]);
531
+
532
+ const alphas = [
533
+ ...light.matchAll(
534
+ /rgba?\(\s*[\d.]+\s*,\s*[\d.]+\s*,\s*[\d.]+\s*,\s*([\d.]+)\s*\)/g,
535
+ ),
536
+ ].map((m) => Number(m[1]));
537
+ expect(
538
+ alphas.length,
539
+ "--shadow-xl light override must declare explicit alpha stops",
540
+ ).toBeGreaterThan(0);
541
+ expect(
542
+ Math.max(...alphas),
543
+ `light --shadow-xl alphas (${alphas.join(", ")}) must stay under 0.25 so overlays do not render a black halo`,
544
+ ).toBeLessThan(0.25);
545
+ });
546
+ });
547
+
548
+ describe("Default-shadow sweep (task 11)", () => {
549
+ it("no component source relies on default Tailwind shadow utilities", () => {
550
+ const files = [
551
+ "alert/alert.tsx",
552
+ "input/input.tsx",
553
+ "textarea/textarea.tsx",
554
+ "card/card.tsx",
555
+ "timeline/timeline.tsx",
556
+ "resizable/resizable.tsx",
557
+ "file-input/file-input.tsx",
558
+ "select/select.tsx",
559
+ "menubar/menubar.tsx",
560
+ "kbd/kbd.tsx",
561
+ "calendar/calendar.tsx",
562
+ "button/button.tsx",
563
+ "number-field/number-field.tsx",
564
+ "radio-group/radio-group.tsx",
565
+ "switch/switch.tsx",
566
+ "chart/chart.tsx",
567
+ "data-table/data-table.tsx",
568
+ "sheet/sheet.tsx",
569
+ "drawer/drawer.tsx",
570
+ "tooltip/tooltip.tsx",
571
+ "popover/popover.tsx",
572
+ "hover-card/hover-card.tsx",
573
+ "context-menu/context-menu.tsx",
574
+ "dropdown-menu/dropdown-menu.tsx",
575
+ "navigation-menu/navigation-menu.tsx",
576
+ "combobox/combobox.tsx",
577
+ "sonner/sonner.tsx",
578
+ "sidebar/sidebar.tsx",
579
+ ];
580
+ for (const file of files) {
581
+ const source = readComponent(file);
582
+ const hit = source.match(DEFAULT_SHADOW_LEAK);
583
+ expect(
584
+ hit,
585
+ `${file} uses a default-Tailwind shadow ("${hit?.[0]}") that stands in for the DESIGN.md elevation system`,
586
+ ).toBeNull();
587
+ }
588
+ });
589
+
590
+ it("floating overlays keep a real authored elevation shadow", () => {
591
+ for (const file of [
592
+ "popover/popover.tsx",
593
+ "dialog/dialog.tsx",
594
+ "tooltip/tooltip.tsx",
595
+ "context-menu/context-menu.tsx",
596
+ ]) {
597
+ expect(
598
+ readComponent(file),
599
+ `${file} must keep a real elevation shadow (shadow-xl) for its floating surface`,
600
+ ).toMatch(/shadow-xl/);
601
+ }
602
+ });
603
+ });
604
+
605
+ // Guard the helpers themselves so the math can't silently rot.
606
+ describe("contrast helper sanity", () => {
607
+ it("reproduces known reference ratios", () => {
608
+ expect(contrastRatio(hexToRgb("#000000"), hexToRgb("#ffffff"))).toBeCloseTo(21, 1);
609
+ expect(contrastRatio(hexToRgb("#ffffff"), hexToRgb("#08090a"))).toBeGreaterThan(18);
610
+ expect(relativeLuminance(hexToRgb("#ffffff"))).toBeCloseTo(1, 5);
611
+ // mixOklab at 100%/0% weight returns the endpoints.
612
+ expect(mixOklab(hexToRgb("#27a644"), hexToRgb("#08090a"), 100)).toEqual([
613
+ 0x27, 0xa6, 0x44,
614
+ ]);
615
+ expect(mixOklab(hexToRgb("#27a644"), hexToRgb("#08090a"), 0)).toEqual([
616
+ 0x08, 0x09, 0x0a,
617
+ ]);
618
+ });
619
+ });
620
+
621
+ // ---------------------------------------------------------------------------
622
+ // Block-level chromatic ink (batch 4 triage — surfaced by the e2e axe audit
623
+ // of blocks-evaluationsummaryreport--default: raw-hue stat labels measured
624
+ // 3.29:1 in light theme, below the 4.5:1 body floor).
625
+ // ---------------------------------------------------------------------------
626
+
627
+ const BLOCK_DIR = path.resolve(here, "../blocks");
628
+
629
+ function readBlock(relativePath: string): string {
630
+ return readFileSync(path.resolve(BLOCK_DIR, relativePath), "utf8");
631
+ }
632
+
633
+ /** Raw hue used directly as ink (`text-<hue>` without a -foreground pair). */
634
+ const RAW_HUE_INK =
635
+ /(?<![\w-])text-(?:destructive|coral-red|pulse-green|signal-teal|iris-violet|lavender|acid-lime)(?!-foreground)/g;
636
+
637
+ describe("Block-level chromatic ink (Both-Theme Contrast Floor)", () => {
638
+ it("blocks never use a raw hue as text ink; they use the theme-calibrated -foreground pairs", () => {
639
+ for (const file of [
640
+ "evaluation-summary-report/evaluation-summary-report.tsx",
641
+ "project-kanban-board/project-kanban-board.tsx",
642
+ "dashboard-header/dashboard-header.tsx",
643
+ ]) {
644
+ const source = readBlock(file);
645
+ const lineOf = (index: number) => source.slice(0, index).split("\n").length;
646
+ RAW_HUE_INK.lastIndex = 0;
647
+ let m: RegExpExecArray | null;
648
+ while ((m = RAW_HUE_INK.exec(source))) {
649
+ expect(
650
+ m[0],
651
+ `${file}:${lineOf(m.index)} uses raw hue ink "${m[0]}" — use the theme-calibrated text-<hue>-foreground pair`,
652
+ ).toBeNull();
653
+ }
654
+ }
655
+ });
656
+
657
+ it("summary-report stat labels hold >= 4.5:1 on their tinted cards in BOTH themes", () => {
658
+ const statCards: Array<[string, string, number]> = [
659
+ // [surface hue token, foreground ink token, tint alpha]
660
+ ["coral-red", "coral-red-foreground", 0.05],
661
+ ["signal-teal", "signal-teal-foreground", 0.05],
662
+ ["pulse-green", "pulse-green-foreground", 0.05],
663
+ ];
664
+ for (const theme of ["light", "dark"] as const) {
665
+ for (const [hue, inkToken, alpha] of statCards) {
666
+ const ink = resolveToken(inkToken, theme);
667
+ for (const { bg, ratio } of contrastAgainst(ink, hue, alpha, theme)) {
668
+ console.log(
669
+ `[palette-contract] block stat ${inkToken} [${theme}] on ${formatRgb(bg)} -> ${ratio.toFixed(2)}:1`,
670
+ );
671
+ expect(
672
+ ratio,
673
+ `evaluation-summary-report stat label --${inkToken} in ${theme} theme: ${ratio.toFixed(2)}:1 < ${BODY_FLOOR}:1 (packages/ui/src/blocks/evaluation-summary-report/evaluation-summary-report.tsx)`,
674
+ ).toBeGreaterThanOrEqual(BODY_FLOOR);
675
+ }
676
+ }
677
+ }
678
+ });
679
+
680
+ it("kanban column icons hold >= 3:1 (non-text) against their card surface in BOTH themes", () => {
681
+ const icons = ["signal-teal-foreground", "iris-violet-foreground", "pulse-green-foreground"];
682
+ for (const theme of ["light", "dark"] as const) {
683
+ const card = resolveToken("card", theme);
684
+ for (const inkToken of icons) {
685
+ const ink = resolveToken(inkToken, theme);
686
+ const ratio = contrastRatio(ink, card);
687
+ console.log(
688
+ `[palette-contract] block kanban icon ${inkToken} [${theme}] on card ${formatRgb(card)} -> ${ratio.toFixed(2)}:1`,
689
+ );
690
+ expect(
691
+ ratio,
692
+ `project-kanban-board icon --${inkToken} in ${theme} theme: ${ratio.toFixed(2)}:1 < ${NON_TEXT_FLOOR}:1 (packages/ui/src/blocks/project-kanban-board/project-kanban-board.tsx)`,
693
+ ).toBeGreaterThanOrEqual(NON_TEXT_FLOOR);
694
+ }
695
+ }
696
+ });
697
+ });