@usalyt/ui 0.0.0-stage → 0.0.1

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 (948) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +674 -0
  3. package/NOTICE +32 -0
  4. package/README.md +148 -2
  5. package/THIRD_PARTY_NOTICES.md +446 -0
  6. package/dist/app-shell-layout-C63PPxCb.mjs +115 -0
  7. package/dist/app-shell-layout-C63PPxCb.mjs.map +1 -0
  8. package/dist/app-shell-layout-S_85mtFG.cjs +120 -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/dashboard-header/index.cjs +91 -0
  28. package/dist/blocks/dashboard-header/index.d.cts +19 -0
  29. package/dist/blocks/dashboard-header/index.d.cts.map +1 -0
  30. package/dist/blocks/dashboard-header/index.d.mts +19 -0
  31. package/dist/blocks/dashboard-header/index.d.mts.map +1 -0
  32. package/dist/blocks/dashboard-header/index.mjs +90 -0
  33. package/dist/blocks/dashboard-header/index.mjs.map +1 -0
  34. package/dist/blocks/data-table-with-filters/index.cjs +86 -0
  35. package/dist/blocks/data-table-with-filters/index.d.cts +19 -0
  36. package/dist/blocks/data-table-with-filters/index.d.cts.map +1 -0
  37. package/dist/blocks/data-table-with-filters/index.d.mts +19 -0
  38. package/dist/blocks/data-table-with-filters/index.d.mts.map +1 -0
  39. package/dist/blocks/data-table-with-filters/index.mjs +85 -0
  40. package/dist/blocks/data-table-with-filters/index.mjs.map +1 -0
  41. package/dist/blocks/empty-state-block/index.cjs +4 -0
  42. package/dist/blocks/empty-state-block/index.d.cts +2 -0
  43. package/dist/blocks/empty-state-block/index.d.mts +2 -0
  44. package/dist/blocks/empty-state-block/index.mjs +3 -0
  45. package/dist/blocks/evaluation-summary-report/index.cjs +4 -0
  46. package/dist/blocks/evaluation-summary-report/index.d.cts +2 -0
  47. package/dist/blocks/evaluation-summary-report/index.d.mts +2 -0
  48. package/dist/blocks/evaluation-summary-report/index.mjs +3 -0
  49. package/dist/blocks/form-with-validation/index.cjs +119 -0
  50. package/dist/blocks/form-with-validation/index.d.cts +27 -0
  51. package/dist/blocks/form-with-validation/index.d.cts.map +1 -0
  52. package/dist/blocks/form-with-validation/index.d.mts +27 -0
  53. package/dist/blocks/form-with-validation/index.d.mts.map +1 -0
  54. package/dist/blocks/form-with-validation/index.mjs +117 -0
  55. package/dist/blocks/form-with-validation/index.mjs.map +1 -0
  56. package/dist/blocks/heuristic-finding-card/index.cjs +4 -0
  57. package/dist/blocks/heuristic-finding-card/index.d.cts +2 -0
  58. package/dist/blocks/heuristic-finding-card/index.d.mts +2 -0
  59. package/dist/blocks/heuristic-finding-card/index.mjs +3 -0
  60. package/dist/blocks/inspector-split-view/index.cjs +4 -0
  61. package/dist/blocks/inspector-split-view/index.d.cts +2 -0
  62. package/dist/blocks/inspector-split-view/index.d.mts +2 -0
  63. package/dist/blocks/inspector-split-view/index.mjs +3 -0
  64. package/dist/blocks/project-kanban-board/index.cjs +4 -0
  65. package/dist/blocks/project-kanban-board/index.d.cts +2 -0
  66. package/dist/blocks/project-kanban-board/index.d.mts +2 -0
  67. package/dist/blocks/project-kanban-board/index.mjs +3 -0
  68. package/dist/blocks/stats-card-grid/index.cjs +54 -0
  69. package/dist/blocks/stats-card-grid/index.d.cts +20 -0
  70. package/dist/blocks/stats-card-grid/index.d.cts.map +1 -0
  71. package/dist/blocks/stats-card-grid/index.d.mts +20 -0
  72. package/dist/blocks/stats-card-grid/index.d.mts.map +1 -0
  73. package/dist/blocks/stats-card-grid/index.mjs +53 -0
  74. package/dist/blocks/stats-card-grid/index.mjs.map +1 -0
  75. package/dist/blocks/team-members-table/index.cjs +4 -0
  76. package/dist/blocks/team-members-table/index.d.cts +2 -0
  77. package/dist/blocks/team-members-table/index.d.mts +2 -0
  78. package/dist/blocks/team-members-table/index.mjs +3 -0
  79. package/dist/carousel-BvB82spx.mjs +138 -0
  80. package/dist/carousel-BvB82spx.mjs.map +1 -0
  81. package/dist/carousel-DU60VwEf.cjs +174 -0
  82. package/dist/collaboration-chat-panel-D-o2i4-Y.cjs +118 -0
  83. package/dist/collaboration-chat-panel-DuIoQQ6W.mjs +113 -0
  84. package/dist/collaboration-chat-panel-DuIoQQ6W.mjs.map +1 -0
  85. package/dist/color-swatch-XzO6dwhR.mjs +47 -0
  86. package/dist/color-swatch-XzO6dwhR.mjs.map +1 -0
  87. package/dist/color-swatch-nICTKGMP.cjs +58 -0
  88. package/dist/components/accordion/index.cjs +44 -0
  89. package/dist/components/accordion/index.d.cts +11 -0
  90. package/dist/components/accordion/index.d.cts.map +1 -0
  91. package/dist/components/accordion/index.d.mts +11 -0
  92. package/dist/components/accordion/index.d.mts.map +1 -0
  93. package/dist/components/accordion/index.mjs +39 -0
  94. package/dist/components/accordion/index.mjs.map +1 -0
  95. package/dist/components/alert/index.cjs +42 -0
  96. package/dist/components/alert/index.d.cts +14 -0
  97. package/dist/components/alert/index.d.cts.map +1 -0
  98. package/dist/components/alert/index.d.mts +14 -0
  99. package/dist/components/alert/index.d.mts.map +1 -0
  100. package/dist/components/alert/index.mjs +38 -0
  101. package/dist/components/alert/index.mjs.map +1 -0
  102. package/dist/components/alert-dialog/index.cjs +61 -0
  103. package/dist/components/alert-dialog/index.d.cts +23 -0
  104. package/dist/components/alert-dialog/index.d.cts.map +1 -0
  105. package/dist/components/alert-dialog/index.d.mts +23 -0
  106. package/dist/components/alert-dialog/index.d.mts.map +1 -0
  107. package/dist/components/alert-dialog/index.mjs +50 -0
  108. package/dist/components/alert-dialog/index.mjs.map +1 -0
  109. package/dist/components/aspect-ratio/index.cjs +4 -0
  110. package/dist/components/aspect-ratio/index.d.cts +2 -0
  111. package/dist/components/aspect-ratio/index.d.mts +2 -0
  112. package/dist/components/aspect-ratio/index.mjs +3 -0
  113. package/dist/components/avatar/index.cjs +42 -0
  114. package/dist/components/avatar/index.d.cts +14 -0
  115. package/dist/components/avatar/index.d.cts.map +1 -0
  116. package/dist/components/avatar/index.d.mts +14 -0
  117. package/dist/components/avatar/index.d.mts.map +1 -0
  118. package/dist/components/avatar/index.mjs +38 -0
  119. package/dist/components/avatar/index.mjs.map +1 -0
  120. package/dist/components/badge/index.cjs +36 -0
  121. package/dist/components/badge/index.d.cts +11 -0
  122. package/dist/components/badge/index.d.cts.map +1 -0
  123. package/dist/components/badge/index.d.mts +11 -0
  124. package/dist/components/badge/index.d.mts.map +1 -0
  125. package/dist/components/badge/index.mjs +34 -0
  126. package/dist/components/badge/index.mjs.map +1 -0
  127. package/dist/components/breadcrumb/index.cjs +70 -0
  128. package/dist/components/breadcrumb/index.d.cts +18 -0
  129. package/dist/components/breadcrumb/index.d.cts.map +1 -0
  130. package/dist/components/breadcrumb/index.d.mts +18 -0
  131. package/dist/components/breadcrumb/index.d.mts.map +1 -0
  132. package/dist/components/breadcrumb/index.mjs +63 -0
  133. package/dist/components/breadcrumb/index.mjs.map +1 -0
  134. package/dist/components/button/index.cjs +65 -0
  135. package/dist/components/button/index.d.cts +2 -0
  136. package/dist/components/button/index.d.mts +2 -0
  137. package/dist/components/button/index.mjs +63 -0
  138. package/dist/components/button/index.mjs.map +1 -0
  139. package/dist/components/calendar/index.cjs +125 -0
  140. package/dist/components/calendar/index.d.cts +12 -0
  141. package/dist/components/calendar/index.d.cts.map +1 -0
  142. package/dist/components/calendar/index.d.mts +12 -0
  143. package/dist/components/calendar/index.d.mts.map +1 -0
  144. package/dist/components/calendar/index.mjs +124 -0
  145. package/dist/components/calendar/index.mjs.map +1 -0
  146. package/dist/components/card/index.cjs +63 -0
  147. package/dist/components/card/index.d.cts +16 -0
  148. package/dist/components/card/index.d.cts.map +1 -0
  149. package/dist/components/card/index.d.mts +16 -0
  150. package/dist/components/card/index.d.mts.map +1 -0
  151. package/dist/components/card/index.mjs +56 -0
  152. package/dist/components/card/index.mjs.map +1 -0
  153. package/dist/components/carousel/index.cjs +9 -0
  154. package/dist/components/carousel/index.d.cts +2 -0
  155. package/dist/components/carousel/index.d.mts +2 -0
  156. package/dist/components/carousel/index.mjs +3 -0
  157. package/dist/components/chart/index.cjs +63 -0
  158. package/dist/components/chart/index.d.cts +21 -0
  159. package/dist/components/chart/index.d.cts.map +1 -0
  160. package/dist/components/chart/index.d.mts +21 -0
  161. package/dist/components/chart/index.d.mts.map +1 -0
  162. package/dist/components/chart/index.mjs +60 -0
  163. package/dist/components/chart/index.mjs.map +1 -0
  164. package/dist/components/checkbox/index.cjs +34 -0
  165. package/dist/components/checkbox/index.d.cts +10 -0
  166. package/dist/components/checkbox/index.d.cts.map +1 -0
  167. package/dist/components/checkbox/index.d.mts +10 -0
  168. package/dist/components/checkbox/index.d.mts.map +1 -0
  169. package/dist/components/checkbox/index.mjs +33 -0
  170. package/dist/components/checkbox/index.mjs.map +1 -0
  171. package/dist/components/collapsible/index.cjs +22 -0
  172. package/dist/components/collapsible/index.d.cts +8 -0
  173. package/dist/components/collapsible/index.d.cts.map +1 -0
  174. package/dist/components/collapsible/index.d.mts +8 -0
  175. package/dist/components/collapsible/index.d.mts.map +1 -0
  176. package/dist/components/collapsible/index.mjs +19 -0
  177. package/dist/components/collapsible/index.mjs.map +1 -0
  178. package/dist/components/color-swatch/index.cjs +5 -0
  179. package/dist/components/color-swatch/index.d.cts +2 -0
  180. package/dist/components/color-swatch/index.d.mts +2 -0
  181. package/dist/components/color-swatch/index.mjs +3 -0
  182. package/dist/components/combobox/index.cjs +192 -0
  183. package/dist/components/combobox/index.d.cts +27 -0
  184. package/dist/components/combobox/index.d.cts.map +1 -0
  185. package/dist/components/combobox/index.d.mts +27 -0
  186. package/dist/components/combobox/index.d.mts.map +1 -0
  187. package/dist/components/combobox/index.mjs +191 -0
  188. package/dist/components/combobox/index.mjs.map +1 -0
  189. package/dist/components/command/index.cjs +96 -0
  190. package/dist/components/command/index.d.cts +75 -0
  191. package/dist/components/command/index.d.cts.map +1 -0
  192. package/dist/components/command/index.d.mts +75 -0
  193. package/dist/components/command/index.d.mts.map +1 -0
  194. package/dist/components/command/index.mjs +88 -0
  195. package/dist/components/command/index.mjs.map +1 -0
  196. package/dist/components/context-menu/index.cjs +55 -0
  197. package/dist/components/context-menu/index.d.cts +19 -0
  198. package/dist/components/context-menu/index.d.cts.map +1 -0
  199. package/dist/components/context-menu/index.d.mts +19 -0
  200. package/dist/components/context-menu/index.d.mts.map +1 -0
  201. package/dist/components/context-menu/index.mjs +47 -0
  202. package/dist/components/context-menu/index.mjs.map +1 -0
  203. package/dist/components/copy-button/index.cjs +4 -0
  204. package/dist/components/copy-button/index.d.cts +2 -0
  205. package/dist/components/copy-button/index.d.mts +2 -0
  206. package/dist/components/copy-button/index.mjs +3 -0
  207. package/dist/components/data-table/index.cjs +152 -0
  208. package/dist/components/data-table/index.d.cts +20 -0
  209. package/dist/components/data-table/index.d.cts.map +1 -0
  210. package/dist/components/data-table/index.d.mts +20 -0
  211. package/dist/components/data-table/index.d.mts.map +1 -0
  212. package/dist/components/data-table/index.mjs +150 -0
  213. package/dist/components/data-table/index.mjs.map +1 -0
  214. package/dist/components/date-picker/index.cjs +48 -0
  215. package/dist/components/date-picker/index.d.cts +13 -0
  216. package/dist/components/date-picker/index.d.cts.map +1 -0
  217. package/dist/components/date-picker/index.d.mts +13 -0
  218. package/dist/components/date-picker/index.d.mts.map +1 -0
  219. package/dist/components/date-picker/index.mjs +47 -0
  220. package/dist/components/date-picker/index.mjs.map +1 -0
  221. package/dist/components/dialog/index.cjs +67 -0
  222. package/dist/components/dialog/index.d.cts +22 -0
  223. package/dist/components/dialog/index.d.cts.map +1 -0
  224. package/dist/components/dialog/index.d.mts +22 -0
  225. package/dist/components/dialog/index.d.mts.map +1 -0
  226. package/dist/components/dialog/index.mjs +57 -0
  227. package/dist/components/dialog/index.mjs.map +1 -0
  228. package/dist/components/drawer/index.cjs +59 -0
  229. package/dist/components/drawer/index.d.cts +24 -0
  230. package/dist/components/drawer/index.d.cts.map +1 -0
  231. package/dist/components/drawer/index.d.mts +24 -0
  232. package/dist/components/drawer/index.d.mts.map +1 -0
  233. package/dist/components/drawer/index.mjs +49 -0
  234. package/dist/components/drawer/index.mjs.map +1 -0
  235. package/dist/components/dropdown-menu/index.cjs +58 -0
  236. package/dist/components/dropdown-menu/index.d.cts +21 -0
  237. package/dist/components/dropdown-menu/index.d.cts.map +1 -0
  238. package/dist/components/dropdown-menu/index.d.mts +21 -0
  239. package/dist/components/dropdown-menu/index.d.mts.map +1 -0
  240. package/dist/components/dropdown-menu/index.mjs +49 -0
  241. package/dist/components/dropdown-menu/index.mjs.map +1 -0
  242. package/dist/components/file-input/index.cjs +60 -0
  243. package/dist/components/file-input/index.d.cts +11 -0
  244. package/dist/components/file-input/index.d.cts.map +1 -0
  245. package/dist/components/file-input/index.d.mts +11 -0
  246. package/dist/components/file-input/index.d.mts.map +1 -0
  247. package/dist/components/file-input/index.mjs +59 -0
  248. package/dist/components/file-input/index.mjs.map +1 -0
  249. package/dist/components/form/index.cjs +121 -0
  250. package/dist/components/form/index.d.cts +26 -0
  251. package/dist/components/form/index.d.cts.map +1 -0
  252. package/dist/components/form/index.d.mts +26 -0
  253. package/dist/components/form/index.d.mts.map +1 -0
  254. package/dist/components/form/index.mjs +113 -0
  255. package/dist/components/form/index.mjs.map +1 -0
  256. package/dist/components/hover-card/index.cjs +57 -0
  257. package/dist/components/hover-card/index.d.cts +43 -0
  258. package/dist/components/hover-card/index.d.cts.map +1 -0
  259. package/dist/components/hover-card/index.d.mts +43 -0
  260. package/dist/components/hover-card/index.d.mts.map +1 -0
  261. package/dist/components/hover-card/index.mjs +53 -0
  262. package/dist/components/hover-card/index.mjs.map +1 -0
  263. package/dist/components/input/index.cjs +32 -0
  264. package/dist/components/input/index.d.cts +11 -0
  265. package/dist/components/input/index.d.cts.map +1 -0
  266. package/dist/components/input/index.d.mts +11 -0
  267. package/dist/components/input/index.d.mts.map +1 -0
  268. package/dist/components/input/index.mjs +30 -0
  269. package/dist/components/input/index.mjs.map +1 -0
  270. package/dist/components/input-otp/index.cjs +7 -0
  271. package/dist/components/input-otp/index.d.cts +2 -0
  272. package/dist/components/input-otp/index.d.mts +2 -0
  273. package/dist/components/input-otp/index.mjs +3 -0
  274. package/dist/components/kbd/index.cjs +5 -0
  275. package/dist/components/kbd/index.d.cts +2 -0
  276. package/dist/components/kbd/index.d.mts +2 -0
  277. package/dist/components/kbd/index.mjs +3 -0
  278. package/dist/components/label/index.cjs +24 -0
  279. package/dist/components/label/index.d.cts +2 -0
  280. package/dist/components/label/index.d.mts +2 -0
  281. package/dist/components/label/index.mjs +22 -0
  282. package/dist/components/label/index.mjs.map +1 -0
  283. package/dist/components/menubar/index.cjs +63 -0
  284. package/dist/components/menubar/index.d.cts +19 -0
  285. package/dist/components/menubar/index.d.cts.map +1 -0
  286. package/dist/components/menubar/index.d.mts +19 -0
  287. package/dist/components/menubar/index.d.mts.map +1 -0
  288. package/dist/components/menubar/index.mjs +55 -0
  289. package/dist/components/menubar/index.mjs.map +1 -0
  290. package/dist/components/navigation-menu/index.cjs +62 -0
  291. package/dist/components/navigation-menu/index.d.cts +27 -0
  292. package/dist/components/navigation-menu/index.d.cts.map +1 -0
  293. package/dist/components/navigation-menu/index.d.mts +27 -0
  294. package/dist/components/navigation-menu/index.d.mts.map +1 -0
  295. package/dist/components/navigation-menu/index.mjs +56 -0
  296. package/dist/components/navigation-menu/index.mjs.map +1 -0
  297. package/dist/components/number-field/index.cjs +41 -0
  298. package/dist/components/number-field/index.d.cts +11 -0
  299. package/dist/components/number-field/index.d.cts.map +1 -0
  300. package/dist/components/number-field/index.d.mts +11 -0
  301. package/dist/components/number-field/index.d.mts.map +1 -0
  302. package/dist/components/number-field/index.mjs +37 -0
  303. package/dist/components/number-field/index.mjs.map +1 -0
  304. package/dist/components/pagination/index.cjs +10 -0
  305. package/dist/components/pagination/index.d.cts +2 -0
  306. package/dist/components/pagination/index.d.mts +2 -0
  307. package/dist/components/pagination/index.mjs +3 -0
  308. package/dist/components/popover/index.cjs +29 -0
  309. package/dist/components/popover/index.d.cts +14 -0
  310. package/dist/components/popover/index.d.cts.map +1 -0
  311. package/dist/components/popover/index.d.mts +14 -0
  312. package/dist/components/popover/index.d.mts.map +1 -0
  313. package/dist/components/popover/index.mjs +24 -0
  314. package/dist/components/popover/index.mjs.map +1 -0
  315. package/dist/components/progress/index.cjs +46 -0
  316. package/dist/components/progress/index.d.cts +18 -0
  317. package/dist/components/progress/index.d.cts.map +1 -0
  318. package/dist/components/progress/index.d.mts +18 -0
  319. package/dist/components/progress/index.d.mts.map +1 -0
  320. package/dist/components/progress/index.mjs +43 -0
  321. package/dist/components/progress/index.mjs.map +1 -0
  322. package/dist/components/radio-group/index.cjs +43 -0
  323. package/dist/components/radio-group/index.d.cts +17 -0
  324. package/dist/components/radio-group/index.d.cts.map +1 -0
  325. package/dist/components/radio-group/index.d.mts +17 -0
  326. package/dist/components/radio-group/index.d.mts.map +1 -0
  327. package/dist/components/radio-group/index.mjs +41 -0
  328. package/dist/components/radio-group/index.mjs.map +1 -0
  329. package/dist/components/rating/index.cjs +4 -0
  330. package/dist/components/rating/index.d.cts +2 -0
  331. package/dist/components/rating/index.d.mts +2 -0
  332. package/dist/components/rating/index.mjs +3 -0
  333. package/dist/components/resizable/index.cjs +6 -0
  334. package/dist/components/resizable/index.d.cts +2 -0
  335. package/dist/components/resizable/index.d.mts +2 -0
  336. package/dist/components/resizable/index.mjs +3 -0
  337. package/dist/components/scroll-area/index.cjs +35 -0
  338. package/dist/components/scroll-area/index.d.cts +9 -0
  339. package/dist/components/scroll-area/index.d.cts.map +1 -0
  340. package/dist/components/scroll-area/index.d.mts +9 -0
  341. package/dist/components/scroll-area/index.d.mts.map +1 -0
  342. package/dist/components/scroll-area/index.mjs +33 -0
  343. package/dist/components/scroll-area/index.mjs.map +1 -0
  344. package/dist/components/select/index.cjs +53 -0
  345. package/dist/components/select/index.d.cts +17 -0
  346. package/dist/components/select/index.d.cts.map +1 -0
  347. package/dist/components/select/index.d.mts +17 -0
  348. package/dist/components/select/index.d.mts.map +1 -0
  349. package/dist/components/select/index.mjs +45 -0
  350. package/dist/components/select/index.mjs.map +1 -0
  351. package/dist/components/separator/index.cjs +18 -0
  352. package/dist/components/separator/index.d.cts +6 -0
  353. package/dist/components/separator/index.d.cts.map +1 -0
  354. package/dist/components/separator/index.d.mts +6 -0
  355. package/dist/components/separator/index.d.mts.map +1 -0
  356. package/dist/components/separator/index.mjs +17 -0
  357. package/dist/components/separator/index.mjs.map +1 -0
  358. package/dist/components/sheet/index.cjs +67 -0
  359. package/dist/components/sheet/index.d.cts +25 -0
  360. package/dist/components/sheet/index.d.cts.map +1 -0
  361. package/dist/components/sheet/index.d.mts +25 -0
  362. package/dist/components/sheet/index.d.mts.map +1 -0
  363. package/dist/components/sheet/index.mjs +59 -0
  364. package/dist/components/sheet/index.mjs.map +1 -0
  365. package/dist/components/sidebar/index.cjs +16 -0
  366. package/dist/components/sidebar/index.d.cts +2 -0
  367. package/dist/components/sidebar/index.d.mts +2 -0
  368. package/dist/components/sidebar/index.mjs +3 -0
  369. package/dist/components/skeleton/index.cjs +19 -0
  370. package/dist/components/skeleton/index.d.cts +7 -0
  371. package/dist/components/skeleton/index.d.cts.map +1 -0
  372. package/dist/components/skeleton/index.d.mts +7 -0
  373. package/dist/components/skeleton/index.d.mts.map +1 -0
  374. package/dist/components/skeleton/index.mjs +18 -0
  375. package/dist/components/skeleton/index.mjs.map +1 -0
  376. package/dist/components/slider/index.cjs +30 -0
  377. package/dist/components/slider/index.d.cts +10 -0
  378. package/dist/components/slider/index.d.cts.map +1 -0
  379. package/dist/components/slider/index.d.mts +10 -0
  380. package/dist/components/slider/index.d.mts.map +1 -0
  381. package/dist/components/slider/index.mjs +29 -0
  382. package/dist/components/slider/index.mjs.map +1 -0
  383. package/dist/components/sonner/index.cjs +6 -0
  384. package/dist/components/sonner/index.d.cts +2 -0
  385. package/dist/components/sonner/index.d.mts +2 -0
  386. package/dist/components/sonner/index.mjs +3 -0
  387. package/dist/components/spinner/index.cjs +53 -0
  388. package/dist/components/spinner/index.d.cts +14 -0
  389. package/dist/components/spinner/index.d.cts.map +1 -0
  390. package/dist/components/spinner/index.d.mts +14 -0
  391. package/dist/components/spinner/index.d.mts.map +1 -0
  392. package/dist/components/spinner/index.mjs +51 -0
  393. package/dist/components/spinner/index.mjs.map +1 -0
  394. package/dist/components/stepper/index.cjs +9 -0
  395. package/dist/components/stepper/index.d.cts +2 -0
  396. package/dist/components/stepper/index.d.mts +2 -0
  397. package/dist/components/stepper/index.mjs +3 -0
  398. package/dist/components/switch/index.cjs +18 -0
  399. package/dist/components/switch/index.d.cts +8 -0
  400. package/dist/components/switch/index.d.cts.map +1 -0
  401. package/dist/components/switch/index.d.mts +8 -0
  402. package/dist/components/switch/index.d.mts.map +1 -0
  403. package/dist/components/switch/index.mjs +17 -0
  404. package/dist/components/switch/index.mjs.map +1 -0
  405. package/dist/components/table/index.cjs +69 -0
  406. package/dist/components/table/index.d.cts +13 -0
  407. package/dist/components/table/index.d.cts.map +1 -0
  408. package/dist/components/table/index.d.mts +13 -0
  409. package/dist/components/table/index.d.mts.map +1 -0
  410. package/dist/components/table/index.mjs +61 -0
  411. package/dist/components/table/index.mjs.map +1 -0
  412. package/dist/components/tabs/index.cjs +33 -0
  413. package/dist/components/tabs/index.d.cts +9 -0
  414. package/dist/components/tabs/index.d.cts.map +1 -0
  415. package/dist/components/tabs/index.d.mts +9 -0
  416. package/dist/components/tabs/index.d.mts.map +1 -0
  417. package/dist/components/tabs/index.mjs +29 -0
  418. package/dist/components/tabs/index.mjs.map +1 -0
  419. package/dist/components/textarea/index.cjs +32 -0
  420. package/dist/components/textarea/index.d.cts +11 -0
  421. package/dist/components/textarea/index.d.cts.map +1 -0
  422. package/dist/components/textarea/index.d.mts +11 -0
  423. package/dist/components/textarea/index.d.mts.map +1 -0
  424. package/dist/components/textarea/index.mjs +30 -0
  425. package/dist/components/textarea/index.mjs.map +1 -0
  426. package/dist/components/timeline/index.cjs +12 -0
  427. package/dist/components/timeline/index.d.cts +2 -0
  428. package/dist/components/timeline/index.d.mts +2 -0
  429. package/dist/components/timeline/index.mjs +3 -0
  430. package/dist/components/toast/index.cjs +91 -0
  431. package/dist/components/toast/index.d.cts +25 -0
  432. package/dist/components/toast/index.d.cts.map +1 -0
  433. package/dist/components/toast/index.d.mts +25 -0
  434. package/dist/components/toast/index.d.mts.map +1 -0
  435. package/dist/components/toast/index.mjs +79 -0
  436. package/dist/components/toast/index.mjs.map +1 -0
  437. package/dist/components/toggle/index.cjs +5 -0
  438. package/dist/components/toggle/index.d.cts +2 -0
  439. package/dist/components/toggle/index.d.mts +2 -0
  440. package/dist/components/toggle/index.mjs +3 -0
  441. package/dist/components/toggle-group/index.cjs +45 -0
  442. package/dist/components/toggle-group/index.d.cts +13 -0
  443. package/dist/components/toggle-group/index.d.cts.map +1 -0
  444. package/dist/components/toggle-group/index.d.mts +13 -0
  445. package/dist/components/toggle-group/index.d.mts.map +1 -0
  446. package/dist/components/toggle-group/index.mjs +43 -0
  447. package/dist/components/toggle-group/index.mjs.map +1 -0
  448. package/dist/components/tooltip/index.cjs +29 -0
  449. package/dist/components/tooltip/index.d.cts +13 -0
  450. package/dist/components/tooltip/index.d.cts.map +1 -0
  451. package/dist/components/tooltip/index.d.mts +13 -0
  452. package/dist/components/tooltip/index.d.mts.map +1 -0
  453. package/dist/components/tooltip/index.mjs +24 -0
  454. package/dist/components/tooltip/index.mjs.map +1 -0
  455. package/dist/components/tree-view/index.cjs +7 -0
  456. package/dist/components/tree-view/index.d.cts +2 -0
  457. package/dist/components/tree-view/index.d.mts +2 -0
  458. package/dist/components/tree-view/index.mjs +3 -0
  459. package/dist/copy-button-CQR9ba95.cjs +45 -0
  460. package/dist/copy-button-DebO1rhk.mjs +40 -0
  461. package/dist/copy-button-DebO1rhk.mjs.map +1 -0
  462. package/dist/empty-state-block-CW1vdx89.cjs +57 -0
  463. package/dist/empty-state-block-DePTPvzM.mjs +52 -0
  464. package/dist/empty-state-block-DePTPvzM.mjs.map +1 -0
  465. package/dist/evaluation-summary-report-Bx2iT1Pd.cjs +212 -0
  466. package/dist/evaluation-summary-report-CbaikB0Q.mjs +207 -0
  467. package/dist/evaluation-summary-report-CbaikB0Q.mjs.map +1 -0
  468. package/dist/files/Inter-OFL.txt +93 -0
  469. package/dist/files/inter-cyrillic-ext-wght-normal.woff2 +0 -0
  470. package/dist/files/inter-cyrillic-wght-normal.woff2 +0 -0
  471. package/dist/files/inter-greek-ext-wght-normal.woff2 +0 -0
  472. package/dist/files/inter-greek-wght-normal.woff2 +0 -0
  473. package/dist/files/inter-latin-ext-wght-normal.woff2 +0 -0
  474. package/dist/files/inter-latin-wght-normal.woff2 +0 -0
  475. package/dist/files/inter-vietnamese-wght-normal.woff2 +0 -0
  476. package/dist/heuristic-finding-card-B5zpJp27.cjs +130 -0
  477. package/dist/heuristic-finding-card-BFwXci2U.mjs +125 -0
  478. package/dist/heuristic-finding-card-BFwXci2U.mjs.map +1 -0
  479. package/dist/index-6OorKnHX.d.cts +21 -0
  480. package/dist/index-6OorKnHX.d.cts.map +1 -0
  481. package/dist/index-6OorKnHX.d.mts +21 -0
  482. package/dist/index-6OorKnHX.d.mts.map +1 -0
  483. package/dist/index-B8Z5coVq.d.cts +25 -0
  484. package/dist/index-B8Z5coVq.d.cts.map +1 -0
  485. package/dist/index-B8Z5coVq.d.mts +25 -0
  486. package/dist/index-B8Z5coVq.d.mts.map +1 -0
  487. package/dist/index-BHz32vzo.d.cts +17 -0
  488. package/dist/index-BHz32vzo.d.cts.map +1 -0
  489. package/dist/index-BHz32vzo.d.mts +17 -0
  490. package/dist/index-BHz32vzo.d.mts.map +1 -0
  491. package/dist/index-BUL5nXfL.d.cts +22 -0
  492. package/dist/index-BUL5nXfL.d.cts.map +1 -0
  493. package/dist/index-BUL5nXfL.d.mts +22 -0
  494. package/dist/index-BUL5nXfL.d.mts.map +1 -0
  495. package/dist/index-BVVCNb2w.d.cts +29 -0
  496. package/dist/index-BVVCNb2w.d.cts.map +1 -0
  497. package/dist/index-BVVCNb2w.d.mts +29 -0
  498. package/dist/index-BVVCNb2w.d.mts.map +1 -0
  499. package/dist/index-BfHoUosL.d.cts +25 -0
  500. package/dist/index-BfHoUosL.d.cts.map +1 -0
  501. package/dist/index-BfHoUosL.d.mts +25 -0
  502. package/dist/index-BfHoUosL.d.mts.map +1 -0
  503. package/dist/index-CTCm9Rd3.d.cts +46 -0
  504. package/dist/index-CTCm9Rd3.d.cts.map +1 -0
  505. package/dist/index-CY6x-q24.d.cts +27 -0
  506. package/dist/index-CY6x-q24.d.cts.map +1 -0
  507. package/dist/index-CY6x-q24.d.mts +27 -0
  508. package/dist/index-CY6x-q24.d.mts.map +1 -0
  509. package/dist/index-ClitDRHg.d.mts +12 -0
  510. package/dist/index-ClitDRHg.d.mts.map +1 -0
  511. package/dist/index-CsF26Fe8.d.cts +23 -0
  512. package/dist/index-CsF26Fe8.d.cts.map +1 -0
  513. package/dist/index-CsF26Fe8.d.mts +23 -0
  514. package/dist/index-CsF26Fe8.d.mts.map +1 -0
  515. package/dist/index-CvHlThTj.d.cts +10 -0
  516. package/dist/index-CvHlThTj.d.cts.map +1 -0
  517. package/dist/index-CvHlThTj.d.mts +10 -0
  518. package/dist/index-CvHlThTj.d.mts.map +1 -0
  519. package/dist/index-CxCGf9_1.d.mts +46 -0
  520. package/dist/index-CxCGf9_1.d.mts.map +1 -0
  521. package/dist/index-D0R6bxY7.d.cts +12 -0
  522. package/dist/index-D0R6bxY7.d.cts.map +1 -0
  523. package/dist/index-D56D0Sa2.d.cts +13 -0
  524. package/dist/index-D56D0Sa2.d.cts.map +1 -0
  525. package/dist/index-D56D0Sa2.d.mts +13 -0
  526. package/dist/index-D56D0Sa2.d.mts.map +1 -0
  527. package/dist/index-D5sQcRHf.d.cts +23 -0
  528. package/dist/index-D5sQcRHf.d.cts.map +1 -0
  529. package/dist/index-D5sQcRHf.d.mts +23 -0
  530. package/dist/index-D5sQcRHf.d.mts.map +1 -0
  531. package/dist/index-DCrV07Ko.d.cts +31 -0
  532. package/dist/index-DCrV07Ko.d.cts.map +1 -0
  533. package/dist/index-DISRvpYF.d.cts +31 -0
  534. package/dist/index-DISRvpYF.d.cts.map +1 -0
  535. package/dist/index-DjbxiLM8.d.cts +12 -0
  536. package/dist/index-DjbxiLM8.d.cts.map +1 -0
  537. package/dist/index-DjbxiLM8.d.mts +12 -0
  538. package/dist/index-DjbxiLM8.d.mts.map +1 -0
  539. package/dist/index-DlP_5d_g.d.cts +21 -0
  540. package/dist/index-DlP_5d_g.d.cts.map +1 -0
  541. package/dist/index-DlP_5d_g.d.mts +21 -0
  542. package/dist/index-DlP_5d_g.d.mts.map +1 -0
  543. package/dist/index-N-mHPudY.d.mts +31 -0
  544. package/dist/index-N-mHPudY.d.mts.map +1 -0
  545. package/dist/index-Q6oL7Ku9.d.cts +8 -0
  546. package/dist/index-Q6oL7Ku9.d.cts.map +1 -0
  547. package/dist/index-Q6oL7Ku9.d.mts +8 -0
  548. package/dist/index-Q6oL7Ku9.d.mts.map +1 -0
  549. package/dist/index-Wut4L1Y4.d.mts +31 -0
  550. package/dist/index-Wut4L1Y4.d.mts.map +1 -0
  551. package/dist/index-Ymzy10FB.d.cts +21 -0
  552. package/dist/index-Ymzy10FB.d.cts.map +1 -0
  553. package/dist/index-Ymzy10FB.d.mts +21 -0
  554. package/dist/index-Ymzy10FB.d.mts.map +1 -0
  555. package/dist/index-bO8Bd2qN.d.cts +39 -0
  556. package/dist/index-bO8Bd2qN.d.cts.map +1 -0
  557. package/dist/index-bO8Bd2qN.d.mts +39 -0
  558. package/dist/index-bO8Bd2qN.d.mts.map +1 -0
  559. package/dist/index-bZKcWdNm.d.cts +15 -0
  560. package/dist/index-bZKcWdNm.d.cts.map +1 -0
  561. package/dist/index-bZKcWdNm.d.mts +15 -0
  562. package/dist/index-bZKcWdNm.d.mts.map +1 -0
  563. package/dist/index-jYLDWfZc.d.cts +15 -0
  564. package/dist/index-jYLDWfZc.d.cts.map +1 -0
  565. package/dist/index-jYLDWfZc.d.mts +15 -0
  566. package/dist/index-jYLDWfZc.d.mts.map +1 -0
  567. package/dist/index-joP2_4d6.d.cts +11 -0
  568. package/dist/index-joP2_4d6.d.cts.map +1 -0
  569. package/dist/index-joP2_4d6.d.mts +11 -0
  570. package/dist/index-joP2_4d6.d.mts.map +1 -0
  571. package/dist/index-zlEzdw7N.d.cts +15 -0
  572. package/dist/index-zlEzdw7N.d.cts.map +1 -0
  573. package/dist/index-zlEzdw7N.d.mts +15 -0
  574. package/dist/index-zlEzdw7N.d.mts.map +1 -0
  575. package/dist/index.cjs +357 -0
  576. package/dist/index.d.cts +80 -0
  577. package/dist/index.d.cts.map +1 -0
  578. package/dist/index.d.mts +80 -0
  579. package/dist/index.d.mts.map +1 -0
  580. package/dist/index.mjs +77 -0
  581. package/dist/input-otp-CXy8gtKM.mjs +44 -0
  582. package/dist/input-otp-CXy8gtKM.mjs.map +1 -0
  583. package/dist/input-otp-DyBlKPGM.cjs +67 -0
  584. package/dist/inspector-split-view-CQeClX4k.mjs +139 -0
  585. package/dist/inspector-split-view-CQeClX4k.mjs.map +1 -0
  586. package/dist/inspector-split-view-CSPoFJJC.cjs +144 -0
  587. package/dist/kbd-D9Ymi9Pt.mjs +37 -0
  588. package/dist/kbd-D9Ymi9Pt.mjs.map +1 -0
  589. package/dist/kbd-Dhz_xrKs.cjs +48 -0
  590. package/dist/pagination-B8J2t1Vr.cjs +105 -0
  591. package/dist/pagination-ivrgsud6.mjs +64 -0
  592. package/dist/pagination-ivrgsud6.mjs.map +1 -0
  593. package/dist/project-kanban-board-BGypLhTA.cjs +143 -0
  594. package/dist/project-kanban-board-TUeAebbI.mjs +138 -0
  595. package/dist/project-kanban-board-TUeAebbI.mjs.map +1 -0
  596. package/dist/rating-CtXEsqKU.cjs +72 -0
  597. package/dist/rating-pFb5zNn2.mjs +67 -0
  598. package/dist/rating-pFb5zNn2.mjs.map +1 -0
  599. package/dist/resizable-DrJqbD5t.mjs +23 -0
  600. package/dist/resizable-DrJqbD5t.mjs.map +1 -0
  601. package/dist/resizable-VZ7tgMu9.cjs +41 -0
  602. package/dist/rolldown-runtime-D6vf50IK.cjs +28 -0
  603. package/dist/sidebar-BCBtb6sS.mjs +232 -0
  604. package/dist/sidebar-BCBtb6sS.mjs.map +1 -0
  605. package/dist/sidebar-BilZg_Lv.cjs +309 -0
  606. package/dist/sonner-Ba68yk7d.mjs +20 -0
  607. package/dist/sonner-Ba68yk7d.mjs.map +1 -0
  608. package/dist/sonner-Crak-gYY.cjs +25 -0
  609. package/dist/stepper-CgBpI7sb.cjs +96 -0
  610. package/dist/stepper-Dtf208dW.mjs +61 -0
  611. package/dist/stepper-Dtf208dW.mjs.map +1 -0
  612. package/dist/styles.css +2 -0
  613. package/dist/team-members-table-ChWMZMYw.mjs +121 -0
  614. package/dist/team-members-table-ChWMZMYw.mjs.map +1 -0
  615. package/dist/team-members-table-Cu5gCqMg.cjs +126 -0
  616. package/dist/timeline-CAPfreK3.cjs +118 -0
  617. package/dist/timeline-CBMvtk3M.mjs +65 -0
  618. package/dist/timeline-CBMvtk3M.mjs.map +1 -0
  619. package/dist/toggle-BjthGxVv.cjs +48 -0
  620. package/dist/toggle-C2RktAMd.mjs +37 -0
  621. package/dist/toggle-C2RktAMd.mjs.map +1 -0
  622. package/dist/toggle-CpGSEgUK.d.cts +13 -0
  623. package/dist/toggle-CpGSEgUK.d.cts.map +1 -0
  624. package/dist/toggle-CpGSEgUK.d.mts +13 -0
  625. package/dist/toggle-CpGSEgUK.d.mts.map +1 -0
  626. package/dist/tree-view-BB1ghmfC.mjs +69 -0
  627. package/dist/tree-view-BB1ghmfC.mjs.map +1 -0
  628. package/dist/tree-view-BFzVxqkZ.cjs +92 -0
  629. package/dist/utils-BVF9WCwH.mjs +38 -0
  630. package/dist/utils-BVF9WCwH.mjs.map +1 -0
  631. package/dist/utils-YZxtPI0Y.cjs +40 -0
  632. package/package.json +843 -3
  633. package/scripts/audit-bundle-size.ts +80 -0
  634. package/scripts/generate-storybook-stories.ts +79 -0
  635. package/scripts/postbuild.mjs +132 -0
  636. package/scripts/public-entries.d.mts +25 -0
  637. package/scripts/public-entries.mjs +123 -0
  638. package/scripts/verify-artifacts.mjs +361 -0
  639. package/scripts/write-all-rich-stories.ts +402 -0
  640. package/src/__tests__/storybook-preview.test.tsx +164 -0
  641. package/src/blocks/app-shell-layout/app-shell-layout.stories.tsx +62 -0
  642. package/src/blocks/app-shell-layout/app-shell-layout.test.tsx +59 -0
  643. package/src/blocks/app-shell-layout/app-shell-layout.tsx +180 -0
  644. package/src/blocks/app-shell-layout/index.ts +5 -0
  645. package/src/blocks/auth-form/auth-form.stories.tsx +36 -0
  646. package/src/blocks/auth-form/auth-form.test.tsx +72 -0
  647. package/src/blocks/auth-form/auth-form.tsx +136 -0
  648. package/src/blocks/auth-form/index.ts +1 -0
  649. package/src/blocks/collaboration-chat-panel/collaboration-chat-panel.stories.tsx +45 -0
  650. package/src/blocks/collaboration-chat-panel/collaboration-chat-panel.test.tsx +101 -0
  651. package/src/blocks/collaboration-chat-panel/collaboration-chat-panel.tsx +180 -0
  652. package/src/blocks/collaboration-chat-panel/index.ts +5 -0
  653. package/src/blocks/dashboard-header/dashboard-header.stories.tsx +41 -0
  654. package/src/blocks/dashboard-header/dashboard-header.test.tsx +76 -0
  655. package/src/blocks/dashboard-header/dashboard-header.tsx +128 -0
  656. package/src/blocks/dashboard-header/index.ts +1 -0
  657. package/src/blocks/data-table-with-filters/data-table-with-filters.stories.tsx +41 -0
  658. package/src/blocks/data-table-with-filters/data-table-with-filters.test.tsx +40 -0
  659. package/src/blocks/data-table-with-filters/data-table-with-filters.tsx +87 -0
  660. package/src/blocks/data-table-with-filters/index.ts +1 -0
  661. package/src/blocks/empty-state-block/empty-state-block.stories.tsx +39 -0
  662. package/src/blocks/empty-state-block/empty-state-block.test.tsx +76 -0
  663. package/src/blocks/empty-state-block/empty-state-block.tsx +82 -0
  664. package/src/blocks/empty-state-block/index.ts +4 -0
  665. package/src/blocks/evaluation-summary-report/evaluation-summary-report.stories.tsx +77 -0
  666. package/src/blocks/evaluation-summary-report/evaluation-summary-report.test.tsx +79 -0
  667. package/src/blocks/evaluation-summary-report/evaluation-summary-report.tsx +208 -0
  668. package/src/blocks/evaluation-summary-report/index.ts +5 -0
  669. package/src/blocks/form-with-validation/form-with-validation.stories.tsx +48 -0
  670. package/src/blocks/form-with-validation/form-with-validation.test.tsx +95 -0
  671. package/src/blocks/form-with-validation/form-with-validation.tsx +145 -0
  672. package/src/blocks/form-with-validation/index.ts +1 -0
  673. package/src/blocks/heuristic-finding-card/heuristic-finding-card.stories.tsx +125 -0
  674. package/src/blocks/heuristic-finding-card/heuristic-finding-card.test.tsx +68 -0
  675. package/src/blocks/heuristic-finding-card/heuristic-finding-card.tsx +172 -0
  676. package/src/blocks/heuristic-finding-card/index.ts +6 -0
  677. package/src/blocks/inspector-split-view/index.ts +5 -0
  678. package/src/blocks/inspector-split-view/inspector-split-view.stories.tsx +99 -0
  679. package/src/blocks/inspector-split-view/inspector-split-view.test.tsx +96 -0
  680. package/src/blocks/inspector-split-view/inspector-split-view.tsx +190 -0
  681. package/src/blocks/project-kanban-board/index.ts +6 -0
  682. package/src/blocks/project-kanban-board/project-kanban-board.stories.tsx +107 -0
  683. package/src/blocks/project-kanban-board/project-kanban-board.test.tsx +112 -0
  684. package/src/blocks/project-kanban-board/project-kanban-board.tsx +243 -0
  685. package/src/blocks/stats-card-grid/index.ts +1 -0
  686. package/src/blocks/stats-card-grid/stats-card-grid.stories.tsx +66 -0
  687. package/src/blocks/stats-card-grid/stats-card-grid.test.tsx +53 -0
  688. package/src/blocks/stats-card-grid/stats-card-grid.tsx +101 -0
  689. package/src/blocks/team-members-table/index.ts +6 -0
  690. package/src/blocks/team-members-table/team-members-table.stories.tsx +41 -0
  691. package/src/blocks/team-members-table/team-members-table.test.tsx +58 -0
  692. package/src/blocks/team-members-table/team-members-table.tsx +178 -0
  693. package/src/components/accordion/accordion.stories.tsx +85 -0
  694. package/src/components/accordion/accordion.test.tsx +125 -0
  695. package/src/components/accordion/accordion.tsx +57 -0
  696. package/src/components/accordion/index.ts +1 -0
  697. package/src/components/alert/alert.stories.tsx +90 -0
  698. package/src/components/alert/alert.test.tsx +104 -0
  699. package/src/components/alert/alert.tsx +68 -0
  700. package/src/components/alert/index.ts +1 -0
  701. package/src/components/alert-dialog/alert-dialog.stories.tsx +129 -0
  702. package/src/components/alert-dialog/alert-dialog.test.tsx +187 -0
  703. package/src/components/alert-dialog/alert-dialog.tsx +91 -0
  704. package/src/components/alert-dialog/index.ts +1 -0
  705. package/src/components/aspect-ratio/aspect-ratio.stories.tsx +22 -0
  706. package/src/components/aspect-ratio/aspect-ratio.test.tsx +43 -0
  707. package/src/components/aspect-ratio/aspect-ratio.tsx +39 -0
  708. package/src/components/aspect-ratio/index.ts +1 -0
  709. package/src/components/avatar/avatar.stories.tsx +98 -0
  710. package/src/components/avatar/avatar.test.tsx +72 -0
  711. package/src/components/avatar/avatar.tsx +63 -0
  712. package/src/components/avatar/index.ts +1 -0
  713. package/src/components/badge/badge.stories.tsx +83 -0
  714. package/src/components/badge/badge.test.tsx +79 -0
  715. package/src/components/badge/badge.tsx +55 -0
  716. package/src/components/badge/index.ts +1 -0
  717. package/src/components/breadcrumb/breadcrumb.stories.tsx +89 -0
  718. package/src/components/breadcrumb/breadcrumb.test.tsx +132 -0
  719. package/src/components/breadcrumb/breadcrumb.tsx +115 -0
  720. package/src/components/breadcrumb/index.ts +1 -0
  721. package/src/components/button/button.stories.tsx +150 -0
  722. package/src/components/button/button.test.tsx +183 -0
  723. package/src/components/button/button.tsx +90 -0
  724. package/src/components/button/index.ts +1 -0
  725. package/src/components/calendar/calendar.stories.tsx +64 -0
  726. package/src/components/calendar/calendar.test.tsx +80 -0
  727. package/src/components/calendar/calendar.tsx +161 -0
  728. package/src/components/calendar/index.ts +1 -0
  729. package/src/components/card/card.stories.tsx +118 -0
  730. package/src/components/card/card.test.tsx +113 -0
  731. package/src/components/card/card.tsx +94 -0
  732. package/src/components/card/index.ts +1 -0
  733. package/src/components/carousel/carousel.stories.tsx +40 -0
  734. package/src/components/carousel/carousel.test.tsx +30 -0
  735. package/src/components/carousel/carousel.tsx +241 -0
  736. package/src/components/carousel/index.ts +10 -0
  737. package/src/components/chart/chart.stories.tsx +71 -0
  738. package/src/components/chart/chart.test.tsx +74 -0
  739. package/src/components/chart/chart.tsx +96 -0
  740. package/src/components/chart/index.ts +1 -0
  741. package/src/components/checkbox/checkbox.stories.tsx +118 -0
  742. package/src/components/checkbox/checkbox.test.tsx +118 -0
  743. package/src/components/checkbox/checkbox.tsx +58 -0
  744. package/src/components/checkbox/index.ts +1 -0
  745. package/src/components/collapsible/collapsible.stories.tsx +75 -0
  746. package/src/components/collapsible/collapsible.test.tsx +98 -0
  747. package/src/components/collapsible/collapsible.tsx +23 -0
  748. package/src/components/collapsible/index.ts +1 -0
  749. package/src/components/color-swatch/color-swatch.stories.tsx +28 -0
  750. package/src/components/color-swatch/color-swatch.test.tsx +86 -0
  751. package/src/components/color-swatch/color-swatch.tsx +72 -0
  752. package/src/components/color-swatch/index.ts +5 -0
  753. package/src/components/combobox/combobox.stories.tsx +72 -0
  754. package/src/components/combobox/combobox.test.tsx +146 -0
  755. package/src/components/combobox/combobox.tsx +273 -0
  756. package/src/components/combobox/index.ts +1 -0
  757. package/src/components/command/command.stories.tsx +88 -0
  758. package/src/components/command/command.test.tsx +174 -0
  759. package/src/components/command/command.tsx +152 -0
  760. package/src/components/command/index.ts +1 -0
  761. package/src/components/context-menu/context-menu.stories.tsx +62 -0
  762. package/src/components/context-menu/context-menu.test.tsx +94 -0
  763. package/src/components/context-menu/context-menu.tsx +85 -0
  764. package/src/components/context-menu/index.ts +1 -0
  765. package/src/components/copy-button/copy-button.stories.tsx +21 -0
  766. package/src/components/copy-button/copy-button.test.tsx +33 -0
  767. package/src/components/copy-button/copy-button.tsx +71 -0
  768. package/src/components/copy-button/index.ts +1 -0
  769. package/src/components/data-table/data-table.stories.tsx +85 -0
  770. package/src/components/data-table/data-table.test.tsx +117 -0
  771. package/src/components/data-table/data-table.tsx +243 -0
  772. package/src/components/data-table/index.ts +1 -0
  773. package/src/components/date-picker/date-picker.stories.tsx +49 -0
  774. package/src/components/date-picker/date-picker.test.tsx +50 -0
  775. package/src/components/date-picker/date-picker.tsx +78 -0
  776. package/src/components/date-picker/index.ts +1 -0
  777. package/src/components/dialog/dialog.stories.tsx +131 -0
  778. package/src/components/dialog/dialog.test.tsx +197 -0
  779. package/src/components/dialog/dialog.tsx +94 -0
  780. package/src/components/dialog/index.ts +1 -0
  781. package/src/components/drawer/drawer.stories.tsx +158 -0
  782. package/src/components/drawer/drawer.test.tsx +189 -0
  783. package/src/components/drawer/drawer.tsx +97 -0
  784. package/src/components/drawer/index.ts +1 -0
  785. package/src/components/dropdown-menu/dropdown-menu.stories.tsx +96 -0
  786. package/src/components/dropdown-menu/dropdown-menu.test.tsx +139 -0
  787. package/src/components/dropdown-menu/dropdown-menu.tsx +88 -0
  788. package/src/components/dropdown-menu/index.ts +1 -0
  789. package/src/components/file-input/file-input.stories.tsx +50 -0
  790. package/src/components/file-input/file-input.test.tsx +85 -0
  791. package/src/components/file-input/file-input.tsx +91 -0
  792. package/src/components/file-input/index.ts +1 -0
  793. package/src/components/form/form.stories.tsx +86 -0
  794. package/src/components/form/form.test.tsx +246 -0
  795. package/src/components/form/form.tsx +210 -0
  796. package/src/components/form/index.ts +1 -0
  797. package/src/components/hover-card/hover-card.stories.tsx +74 -0
  798. package/src/components/hover-card/hover-card.test.tsx +63 -0
  799. package/src/components/hover-card/hover-card.tsx +85 -0
  800. package/src/components/hover-card/index.ts +1 -0
  801. package/src/components/input/index.ts +1 -0
  802. package/src/components/input/input.stories.tsx +146 -0
  803. package/src/components/input/input.test.tsx +74 -0
  804. package/src/components/input/input.tsx +38 -0
  805. package/src/components/input-otp/index.ts +6 -0
  806. package/src/components/input-otp/input-otp.stories.tsx +35 -0
  807. package/src/components/input-otp/input-otp.test.tsx +52 -0
  808. package/src/components/input-otp/input-otp.tsx +69 -0
  809. package/src/components/kbd/index.ts +1 -0
  810. package/src/components/kbd/kbd.stories.tsx +22 -0
  811. package/src/components/kbd/kbd.test.tsx +25 -0
  812. package/src/components/kbd/kbd.tsx +41 -0
  813. package/src/components/label/index.ts +1 -0
  814. package/src/components/label/label.stories.tsx +44 -0
  815. package/src/components/label/label.test.tsx +47 -0
  816. package/src/components/label/label.tsx +31 -0
  817. package/src/components/menubar/index.ts +1 -0
  818. package/src/components/menubar/menubar.stories.tsx +70 -0
  819. package/src/components/menubar/menubar.test.tsx +103 -0
  820. package/src/components/menubar/menubar.tsx +103 -0
  821. package/src/components/navigation-menu/index.ts +1 -0
  822. package/src/components/navigation-menu/navigation-menu.stories.tsx +118 -0
  823. package/src/components/navigation-menu/navigation-menu.test.tsx +84 -0
  824. package/src/components/navigation-menu/navigation-menu.tsx +111 -0
  825. package/src/components/number-field/index.ts +1 -0
  826. package/src/components/number-field/number-field.stories.tsx +69 -0
  827. package/src/components/number-field/number-field.test.tsx +76 -0
  828. package/src/components/number-field/number-field.tsx +48 -0
  829. package/src/components/pagination/index.ts +10 -0
  830. package/src/components/pagination/pagination.stories.tsx +46 -0
  831. package/src/components/pagination/pagination.test.tsx +48 -0
  832. package/src/components/pagination/pagination.tsx +106 -0
  833. package/src/components/popover/index.ts +1 -0
  834. package/src/components/popover/popover.stories.tsx +106 -0
  835. package/src/components/popover/popover.test.tsx +111 -0
  836. package/src/components/popover/popover.tsx +30 -0
  837. package/src/components/progress/index.ts +1 -0
  838. package/src/components/progress/progress.stories.tsx +133 -0
  839. package/src/components/progress/progress.test.tsx +68 -0
  840. package/src/components/progress/progress.tsx +64 -0
  841. package/src/components/radio-group/index.ts +1 -0
  842. package/src/components/radio-group/radio-group.stories.tsx +125 -0
  843. package/src/components/radio-group/radio-group.test.tsx +160 -0
  844. package/src/components/radio-group/radio-group.tsx +56 -0
  845. package/src/components/rating/index.ts +1 -0
  846. package/src/components/rating/rating.stories.tsx +39 -0
  847. package/src/components/rating/rating.test.tsx +103 -0
  848. package/src/components/rating/rating.tsx +134 -0
  849. package/src/components/resizable/index.ts +5 -0
  850. package/src/components/resizable/resizable.stories.tsx +36 -0
  851. package/src/components/resizable/resizable.test.tsx +42 -0
  852. package/src/components/resizable/resizable.tsx +43 -0
  853. package/src/components/scroll-area/index.ts +1 -0
  854. package/src/components/scroll-area/scroll-area.stories.tsx +48 -0
  855. package/src/components/scroll-area/scroll-area.test.tsx +52 -0
  856. package/src/components/scroll-area/scroll-area.tsx +46 -0
  857. package/src/components/select/index.ts +1 -0
  858. package/src/components/select/select.stories.tsx +89 -0
  859. package/src/components/select/select.test.tsx +162 -0
  860. package/src/components/select/select.tsx +88 -0
  861. package/src/components/separator/index.ts +1 -0
  862. package/src/components/separator/separator.stories.tsx +68 -0
  863. package/src/components/separator/separator.test.tsx +35 -0
  864. package/src/components/separator/separator.tsx +25 -0
  865. package/src/components/sheet/index.ts +1 -0
  866. package/src/components/sheet/sheet.stories.tsx +164 -0
  867. package/src/components/sheet/sheet.test.tsx +187 -0
  868. package/src/components/sheet/sheet.tsx +116 -0
  869. package/src/components/sidebar/index.ts +18 -0
  870. package/src/components/sidebar/sidebar.stories.tsx +100 -0
  871. package/src/components/sidebar/sidebar.test.tsx +108 -0
  872. package/src/components/sidebar/sidebar.tsx +428 -0
  873. package/src/components/skeleton/index.ts +1 -0
  874. package/src/components/skeleton/skeleton.stories.tsx +51 -0
  875. package/src/components/skeleton/skeleton.test.tsx +41 -0
  876. package/src/components/skeleton/skeleton.tsx +22 -0
  877. package/src/components/slider/index.ts +1 -0
  878. package/src/components/slider/slider.stories.tsx +95 -0
  879. package/src/components/slider/slider.test.tsx +58 -0
  880. package/src/components/slider/slider.tsx +34 -0
  881. package/src/components/sonner/index.ts +1 -0
  882. package/src/components/sonner/sonner.stories.tsx +34 -0
  883. package/src/components/sonner/sonner.test.tsx +15 -0
  884. package/src/components/sonner/sonner.tsx +28 -0
  885. package/src/components/spinner/index.ts +1 -0
  886. package/src/components/spinner/spinner.stories.tsx +66 -0
  887. package/src/components/spinner/spinner.test.tsx +49 -0
  888. package/src/components/spinner/spinner.tsx +65 -0
  889. package/src/components/stepper/index.ts +11 -0
  890. package/src/components/stepper/stepper.stories.tsx +51 -0
  891. package/src/components/stepper/stepper.test.tsx +50 -0
  892. package/src/components/stepper/stepper.tsx +129 -0
  893. package/src/components/switch/index.ts +1 -0
  894. package/src/components/switch/switch.stories.tsx +81 -0
  895. package/src/components/switch/switch.test.tsx +81 -0
  896. package/src/components/switch/switch.tsx +26 -0
  897. package/src/components/table/index.ts +1 -0
  898. package/src/components/table/table.stories.tsx +100 -0
  899. package/src/components/table/table.test.tsx +89 -0
  900. package/src/components/table/table.tsx +120 -0
  901. package/src/components/tabs/index.ts +1 -0
  902. package/src/components/tabs/tabs.stories.tsx +95 -0
  903. package/src/components/tabs/tabs.test.tsx +175 -0
  904. package/src/components/tabs/tabs.tsx +55 -0
  905. package/src/components/textarea/index.ts +1 -0
  906. package/src/components/textarea/textarea.stories.tsx +103 -0
  907. package/src/components/textarea/textarea.test.tsx +65 -0
  908. package/src/components/textarea/textarea.tsx +38 -0
  909. package/src/components/timeline/index.ts +12 -0
  910. package/src/components/timeline/timeline.stories.tsx +104 -0
  911. package/src/components/timeline/timeline.test.tsx +39 -0
  912. package/src/components/timeline/timeline.tsx +135 -0
  913. package/src/components/toast/index.ts +1 -0
  914. package/src/components/toast/toast.stories.tsx +170 -0
  915. package/src/components/toast/toast.test.tsx +159 -0
  916. package/src/components/toast/toast.tsx +133 -0
  917. package/src/components/toggle/index.ts +1 -0
  918. package/src/components/toggle/toggle.stories.tsx +106 -0
  919. package/src/components/toggle/toggle.test.tsx +87 -0
  920. package/src/components/toggle/toggle.tsx +41 -0
  921. package/src/components/toggle-group/index.ts +1 -0
  922. package/src/components/toggle-group/toggle-group.stories.tsx +123 -0
  923. package/src/components/toggle-group/toggle-group.test.tsx +102 -0
  924. package/src/components/toggle-group/toggle-group.tsx +58 -0
  925. package/src/components/tooltip/index.ts +1 -0
  926. package/src/components/tooltip/tooltip.stories.tsx +82 -0
  927. package/src/components/tooltip/tooltip.test.tsx +103 -0
  928. package/src/components/tooltip/tooltip.tsx +30 -0
  929. package/src/components/tree-view/index.ts +8 -0
  930. package/src/components/tree-view/tree-view.stories.tsx +61 -0
  931. package/src/components/tree-view/tree-view.test.tsx +36 -0
  932. package/src/components/tree-view/tree-view.tsx +116 -0
  933. package/src/index.ts +74 -0
  934. package/src/lib/utils.ts +38 -0
  935. package/src/test/contrast.ts +139 -0
  936. package/src/test/docs-component-usability.test.tsx +98 -0
  937. package/src/test/palette-contract.test.ts +694 -0
  938. package/src/test/public-entries.test.ts +118 -0
  939. package/src/test/setup.ts +94 -0
  940. package/src/test/sidebar-contract.test.ts +194 -0
  941. package/src/test/type-contract.test.ts +253 -0
  942. package/src/test/vitest-axe.d.ts +10 -0
  943. package/src/typography/typography.stories.tsx +172 -0
  944. package/styles/compiled.css +19 -0
  945. package/styles/globals.css +27 -0
  946. package/styles/theme.css +342 -0
  947. package/tsconfig.json +11 -0
  948. package/tsdown.config.ts +34 -0
@@ -0,0 +1,118 @@
1
+ // Public entry map contract.
2
+ //
3
+ // Pins the data that scripts/postbuild.mjs, scripts/verify-artifacts.mjs, and
4
+ // the package.json `exports` map consume: every source component/block with an
5
+ // index.ts must have exactly one public subpath, a real source file, and a
6
+ // dual-format (ESM/CJS + matching declarations) output layout.
7
+
8
+ import { existsSync, readdirSync, readFileSync } from "node:fs";
9
+ import path from "node:path";
10
+ import { fileURLToPath } from "node:url";
11
+ import { describe, expect, it } from "vitest";
12
+ import {
13
+ buildExportsMap,
14
+ entryExtensions,
15
+ publicEntries,
16
+ styleFiles,
17
+ } from "../../scripts/public-entries.mjs";
18
+
19
+ const here = path.dirname(fileURLToPath(import.meta.url));
20
+ const packageRoot = path.resolve(here, "../..");
21
+ const sourceRoot = path.join(packageRoot, "src");
22
+
23
+ function sourceEntries(group: "components" | "blocks"): string[] {
24
+ return readdirSync(path.join(sourceRoot, group), { withFileTypes: true })
25
+ .filter(
26
+ (entry) =>
27
+ entry.isDirectory() &&
28
+ existsSync(path.join(sourceRoot, group, entry.name, "index.ts")),
29
+ )
30
+ .map((entry) => `${group}/${entry.name}`)
31
+ .sort();
32
+ }
33
+
34
+ describe("public entry map", () => {
35
+ it("lists the root barrel, every component, and every block exactly once", () => {
36
+ const expectedSources = [
37
+ "src/index.ts",
38
+ ...sourceEntries("components").map((name) => `src/${name}/index.ts`),
39
+ ...sourceEntries("blocks").map((name) => `src/${name}/index.ts`),
40
+ ];
41
+
42
+ expect(
43
+ publicEntries.map((entry) => entry.source).sort(),
44
+ "publicEntries must mirror src/index.ts + every component/block index.ts",
45
+ ).toEqual(expectedSources.sort());
46
+
47
+ const subpaths = publicEntries.map((entry) => entry.subpath);
48
+ expect(new Set(subpaths).size).toBe(subpaths.length);
49
+ expect(subpaths[0]).toBe(".");
50
+ });
51
+
52
+ it("points every entry at a real source file", () => {
53
+ for (const entry of publicEntries) {
54
+ expect(
55
+ existsSync(path.join(packageRoot, entry.source)),
56
+ `${entry.subpath} source must exist (${entry.source})`,
57
+ ).toBe(true);
58
+ }
59
+ });
60
+
61
+ it("re-exports every component and block from the root barrel", () => {
62
+ const barrel = readFileSync(path.join(sourceRoot, "index.ts"), "utf8");
63
+
64
+ for (const entry of publicEntries) {
65
+ if (entry.subpath === ".") continue;
66
+ expect(
67
+ barrel.includes(`export * from "./${entry.source.replace(/^src\//, "").replace(/\/index\.ts$/, "")}";`),
68
+ `src/index.ts must re-export ${entry.subpath}`,
69
+ ).toBe(true);
70
+ }
71
+ });
72
+
73
+ it("declares dual-format targets with matching declaration files", () => {
74
+ const exportsMap = buildExportsMap() as Record<
75
+ string,
76
+ | string
77
+ | {
78
+ import?: { types?: string; default?: string };
79
+ require?: { types?: string; default?: string };
80
+ }
81
+ >;
82
+
83
+ for (const entry of publicEntries) {
84
+ const target = exportsMap[entry.subpath];
85
+ expect(typeof target, `${entry.subpath} must have an export target`).toBe(
86
+ "object",
87
+ );
88
+
89
+ const conditions = target as {
90
+ import: { types: string; default: string };
91
+ require: { types: string; default: string };
92
+ };
93
+
94
+ expect(conditions.import.default).toBe(
95
+ `./${entry.distBase}.${entryExtensions.esm}`,
96
+ );
97
+ expect(conditions.import.types).toBe(
98
+ `./${entry.distBase}.${entryExtensions.esmTypes}`,
99
+ );
100
+ expect(conditions.require.default).toBe(
101
+ `./${entry.distBase}.${entryExtensions.cjs}`,
102
+ );
103
+ expect(conditions.require.types).toBe(
104
+ `./${entry.distBase}.${entryExtensions.cjsTypes}`,
105
+ );
106
+
107
+ // `types` must precede `default` inside each condition for TypeScript to
108
+ // read the declaration instead of the runtime file.
109
+ expect(Object.keys(conditions.import)).toEqual(["types", "default"]);
110
+ expect(Object.keys(conditions.require)).toEqual(["types", "default"]);
111
+ }
112
+
113
+ expect(exportsMap["./styles.css"]).toBe(`./${styleFiles.compiled}`);
114
+ expect(exportsMap["./styles/globals.css"]).toBe(`./${styleFiles.raw}`);
115
+ expect(exportsMap["./styles/theme.css"]).toBe(`./${styleFiles.theme}`);
116
+ expect(exportsMap["./package.json"]).toBe("./package.json");
117
+ });
118
+ });
@@ -0,0 +1,94 @@
1
+ import "@testing-library/jest-dom/vitest";
2
+ import { expect, vi, beforeEach, afterEach } from "vitest";
3
+
4
+ // Set global react act environment flag
5
+ // @ts-ignore
6
+ globalThis.IS_REACT_ACT_ENVIRONMENT = true;
7
+
8
+ if (typeof window !== "undefined" && !window.PointerEvent) {
9
+ class PointerEvent extends MouseEvent {
10
+ public pointerId: number = 1;
11
+ public pointerType: string = "mouse";
12
+ public isPrimary: boolean = true;
13
+
14
+ constructor(type: string, props: PointerEventInit = {}) {
15
+ super(type, props);
16
+ this.pointerId = props.pointerId ?? 1;
17
+ this.pointerType = props.pointerType ?? "mouse";
18
+ this.isPrimary = props.isPrimary ?? true;
19
+ }
20
+ }
21
+ window.PointerEvent = PointerEvent as any;
22
+ }
23
+
24
+ Object.defineProperty(window, "matchMedia", {
25
+ writable: true,
26
+ value: vi.fn().mockImplementation((query: string) => ({
27
+ matches: false,
28
+ media: query,
29
+ onchange: null,
30
+ addListener: vi.fn(),
31
+ removeListener: vi.fn(),
32
+ addEventListener: vi.fn(),
33
+ removeEventListener: vi.fn(),
34
+ dispatchEvent: vi.fn()
35
+ }))
36
+ });
37
+
38
+ // Polyfill ResizeObserver as a constructor for Floating UI / Base UI popups
39
+ class MockResizeObserver {
40
+ observe() {}
41
+ unobserve() {}
42
+ disconnect() {}
43
+ }
44
+ globalThis.ResizeObserver = MockResizeObserver as any;
45
+
46
+ // Polyfill IntersectionObserver for embla-carousel / jsdom
47
+ class MockIntersectionObserver {
48
+ observe() {}
49
+ unobserve() {}
50
+ disconnect() {}
51
+ }
52
+ globalThis.IntersectionObserver = MockIntersectionObserver as any;
53
+
54
+ // Polyfill HTMLElement.prototype.scrollIntoView for cmdk / jsdom
55
+ if (typeof window !== "undefined" && !window.HTMLElement.prototype.scrollIntoView) {
56
+ window.HTMLElement.prototype.scrollIntoView = vi.fn();
57
+ }
58
+
59
+ // Polyfill document.elementFromPoint for input-otp / jsdom
60
+ if (typeof document !== "undefined" && !document.elementFromPoint) {
61
+ document.elementFromPoint = () => null;
62
+ }
63
+
64
+ let consoleWarnSpy: ReturnType<typeof vi.spyOn>;
65
+ let consoleErrorSpy: ReturnType<typeof vi.spyOn>;
66
+
67
+ beforeEach(() => {
68
+ consoleWarnSpy = vi.spyOn(console, "warn").mockImplementation(() => {});
69
+ consoleErrorSpy = vi.spyOn(console, "error").mockImplementation((...args: any[]) => {
70
+ // Ignore React 19 act(...) async warnings for Base UI mount effects in jsdom
71
+ const msg = args.map((a) => (typeof a === "string" ? a : String(a))).join(" ");
72
+ if (
73
+ msg.includes("was not wrapped in act") ||
74
+ msg.includes("testing environment is not configured to support act")
75
+ ) {
76
+ return;
77
+ }
78
+ });
79
+ });
80
+
81
+ afterEach(() => {
82
+ const filteredErrorCalls = consoleErrorSpy.mock.calls.filter((args: any[]) => {
83
+ const msg = args.map((a) => (typeof a === "string" ? a : String(a))).join(" ");
84
+ return (
85
+ !msg.includes("was not wrapped in act") &&
86
+ !msg.includes("testing environment is not configured to support act")
87
+ );
88
+ });
89
+
90
+ expect(consoleWarnSpy).not.toHaveBeenCalled();
91
+ expect(filteredErrorCalls).toHaveLength(0);
92
+ consoleWarnSpy.mockRestore();
93
+ consoleErrorSpy.mockRestore();
94
+ });
@@ -0,0 +1,194 @@
1
+ // Sidebar surface + collapsed-rail contract tests — TDD layer for OpenSpec
2
+ // change refactor-sdd-tdd-full-coverage, task 15 (Redesign Workstream).
3
+ //
4
+ // These tests read the actual source (theme.css tokens + sidebar source)
5
+ // and pin the task-15 sidebar contract:
6
+ // - the six `--color-sidebar*` tokens exist in @theme and are overridden in
7
+ // the light theme block, so `bg-sidebar` / `text-sidebar-foreground` /
8
+ // `hover:bg-sidebar-accent` resolve in BOTH themes,
9
+ // - the sidebar foreground keeps the WCAG AA floor on both sidebar surfaces,
10
+ // - the primitive hides the label slot and centres the icon in the
11
+ // `collapsible=icon` rail instead of clipping text into single letters,
12
+ // - the default story ships a fullscreen layout with icons, real labels and
13
+ // a visible active state.
14
+ //
15
+ // RED state before task 15: none of the `--color-sidebar*` tokens existed in
16
+ // globals.css (the sidebar surface rendered transparent over the page canvas),
17
+ // the story had no `layout: "fullscreen"` (SidebarInset collapsed to a sliver)
18
+ // and the collapsed rail wrapped the brand label and clipped menu labels to single
19
+ // letters.
20
+
21
+ import { readFileSync } from "node:fs";
22
+ import path from "node:path";
23
+ import { fileURLToPath } from "node:url";
24
+ import { describe, expect, it } from "vitest";
25
+ import { contrastRatio, hexToRgb, type RGB } from "./contrast";
26
+
27
+ const here = path.dirname(fileURLToPath(import.meta.url));
28
+ const themeCss = readFileSync(
29
+ path.resolve(here, "../../styles/theme.css"),
30
+ "utf8",
31
+ );
32
+
33
+ const COMPONENT_DIR = path.resolve(here, "../components");
34
+
35
+ function readComponent(relativePath: string): string {
36
+ return readFileSync(path.resolve(COMPONENT_DIR, relativePath), "utf8");
37
+ }
38
+
39
+ const sidebarSource = readComponent("sidebar/sidebar.tsx");
40
+ const sidebarStories = readComponent("sidebar/sidebar.stories.tsx");
41
+
42
+ // ---------------------------------------------------------------------------
43
+ // Minimal theme.css token parser (same contract as palette/type contracts).
44
+ // ---------------------------------------------------------------------------
45
+
46
+ type VarMap = Record<string, string>; // token name (without --) -> raw value
47
+
48
+ const LIGHT_SELECTOR = 'html[data-theme="light"]:not(.dark)';
49
+
50
+ function lightBlockSource(css: string): string {
51
+ const at = css.indexOf(LIGHT_SELECTOR);
52
+ if (at === -1) return "";
53
+ const start = css.indexOf("{", at);
54
+ const end = css.indexOf("}", start);
55
+ return css.slice(start + 1, end);
56
+ }
57
+
58
+ function collectVars(css: string): VarMap {
59
+ const vars: VarMap = {};
60
+ const re = /--([a-z0-9-]+)\s*:\s*([^;]+);/g;
61
+ let m: RegExpExecArray | null;
62
+ while ((m = re.exec(css))) {
63
+ if (!(m[1] in vars)) vars[m[1]] = m[2].trim();
64
+ }
65
+ return vars;
66
+ }
67
+
68
+ const darkVars = collectVars(themeCss);
69
+ const lightVars = collectVars(lightBlockSource(themeCss));
70
+
71
+ /** Resolve a token through up to two `var(--x)` indirections. */
72
+ function resolveVar(scoped: VarMap, name: string): string | undefined {
73
+ let value = scoped[name] ?? darkVars[name];
74
+ for (let hop = 0; hop < 2 && value; hop++) {
75
+ const ref = value.match(/^var\(--([a-z0-9-]+)\)$/);
76
+ if (!ref) break;
77
+ value = scoped[ref[1]] ?? darkVars[ref[1]];
78
+ }
79
+ return value;
80
+ }
81
+
82
+ function resolveColor(name: string, theme: "light" | "dark"): RGB {
83
+ const scoped = theme === "light" ? lightVars : darkVars;
84
+ const value = resolveVar(scoped, name);
85
+ if (!value) throw new Error(`Token --${name} not found in theme.css`);
86
+ const hex = value.match(/^#([0-9a-fA-F]{3,8})$/);
87
+ if (!hex) throw new Error(`--${name} must resolve to a hex color, got "${value}"`);
88
+ return hexToRgb(value);
89
+ }
90
+
91
+ const SIDEBAR_TOKENS = [
92
+ "color-sidebar",
93
+ "color-sidebar-foreground",
94
+ "color-sidebar-border",
95
+ "color-sidebar-ring",
96
+ "color-sidebar-accent",
97
+ "color-sidebar-accent-foreground",
98
+ ] as const;
99
+
100
+ describe("Sidebar surface tokens (task 15)", () => {
101
+ it("declares all six --color-sidebar* tokens in the @theme block", () => {
102
+ for (const token of SIDEBAR_TOKENS) {
103
+ expect(
104
+ darkVars[token],
105
+ `--${token} must be declared in packages/ui/styles/theme.css @theme so bg-sidebar / text-sidebar-foreground resolve`,
106
+ ).toBeTruthy();
107
+ }
108
+ });
109
+
110
+ it("overrides the sidebar surface tokens in the light theme block", () => {
111
+ for (const token of SIDEBAR_TOKENS) {
112
+ expect(
113
+ lightVars[token],
114
+ `--${token} must be overridden in ${LIGHT_SELECTOR}`,
115
+ ).toBeTruthy();
116
+ }
117
+ expect(
118
+ resolveVar(lightVars, "color-sidebar"),
119
+ "the light sidebar surface must differ from the dark carbon surface",
120
+ ).not.toBe(resolveVar(darkVars, "color-sidebar"));
121
+ });
122
+
123
+ it("keeps the sidebar foreground >= 4.5:1 on the sidebar surface in both themes", () => {
124
+ for (const theme of ["dark", "light"] as const) {
125
+ const surface = resolveColor("color-sidebar", theme);
126
+ const foreground = resolveColor("color-sidebar-foreground", theme);
127
+ const ratio = contrastRatio(foreground, surface);
128
+ expect(
129
+ ratio,
130
+ `[${theme}] sidebar foreground on sidebar surface measured ${ratio.toFixed(2)}:1`,
131
+ ).toBeGreaterThanOrEqual(4.5);
132
+ }
133
+ });
134
+
135
+ it("routes the primitive through token utilities instead of dead hsl(var(--sidebar-*)) references", () => {
136
+ expect(sidebarSource).toContain("bg-sidebar");
137
+ expect(sidebarSource).toContain("text-sidebar-foreground");
138
+ expect(sidebarSource).toContain("hover:bg-sidebar-accent");
139
+ expect(sidebarSource).toContain("border-sidebar-border");
140
+ expect(
141
+ sidebarSource.match(/hsl\(var\(--sidebar/g) ?? [],
142
+ "hsl(var(--sidebar-*)) never resolves — use the --color-sidebar-* tokens directly",
143
+ ).toEqual([]);
144
+ });
145
+ });
146
+
147
+ describe("Sidebar collapsed rail (task 15)", () => {
148
+ it("collapses the icon rail to a centred 2rem button and hides the label slot", () => {
149
+ expect(
150
+ sidebarSource,
151
+ "menu buttons must shrink to a centred icon square when collapsible=icon",
152
+ ).toContain("group-data-[collapsible=icon]:size-8");
153
+ expect(
154
+ sidebarSource,
155
+ "menu buttons must centre their icon when collapsible=icon",
156
+ ).toContain("group-data-[collapsible=icon]:justify-center");
157
+ expect(
158
+ sidebarSource,
159
+ "the trailing label span must be hidden when collapsible=icon (no single-letter clipping)",
160
+ ).toMatch(/group-data-\[collapsible=icon\]:\[&>span:last-child\]:hidden/);
161
+ });
162
+
163
+ it("removes the group padding in the collapsed rail so the icon square fits", () => {
164
+ expect(sidebarSource).toContain(
165
+ "group-data-[collapsible=icon]:p-0",
166
+ );
167
+ });
168
+ });
169
+
170
+ describe("Sidebar default story (task 15)", () => {
171
+ it("renders fullscreen in both themes", () => {
172
+ expect(sidebarStories).toContain('layout: "fullscreen"');
173
+ });
174
+
175
+ it("uses real lucide icons and keeps Usalyt demo content", () => {
176
+ expect(sidebarStories).toContain('from "lucide-react"');
177
+ expect(sidebarStories).toContain("Usalyt");
178
+ expect(sidebarStories).not.toContain("UX Check");
179
+ expect(sidebarStories).toContain("Evaluations");
180
+ expect(sidebarStories).toContain("v1.0.0");
181
+ });
182
+
183
+ it("shows one active item and names the icon-only buttons when collapsed", () => {
184
+ expect(sidebarStories).toContain("isActive");
185
+ expect(
186
+ sidebarStories.match(/aria-label=/g)?.length ?? 0,
187
+ "collapsed rail buttons need accessible names (aria-label)",
188
+ ).toBeGreaterThanOrEqual(2);
189
+ expect(
190
+ sidebarStories,
191
+ "collapsed rail labels must hide cleanly through the group-data contract",
192
+ ).toContain("group-data-[collapsible=icon]:hidden");
193
+ });
194
+ });
@@ -0,0 +1,253 @@
1
+ // Type contract tests — TDD layer for OpenSpec change
2
+ // refactor-sdd-tdd-full-coverage, task 12 (Batch 3).
3
+ //
4
+ // These tests read the actual source (theme.css + package.json) and pin the
5
+ // DESIGN.md "Tokens — Typography" contract:
6
+ // - every type-scale token declared with its size / line-height /
7
+ // letter-spacing values,
8
+ // - the 300 / 400 / 510 / 590 weight vocabulary as aliases,
9
+ // - a REAL loading mechanism for Inter Variable (fontsource import +
10
+ // dependency), so consumers never silently receive system fallbacks,
11
+ // - the Berkeley Mono substitution contract (local() first, JetBrains Mono
12
+ // then ui-monospace, never bundled) documented in a CSS comment,
13
+ // - the OpenType feature signature (cv01 / ss03 / zero) applied to the sans
14
+ // stack.
15
+ //
16
+ // RED state (documented in the 2026-09-24 critique, Priority Issue 5):
17
+ // `--text-caption` / `--text-body-sm` etc. do not exist, "Inter Variable" is
18
+ // referenced by name only with no loader, and Berkeley Mono has no declared
19
+ // source at all.
20
+
21
+ import { readFileSync } from "node:fs";
22
+ import path from "node:path";
23
+ import { fileURLToPath } from "node:url";
24
+ import { describe, expect, it } from "vitest";
25
+
26
+ const here = path.dirname(fileURLToPath(import.meta.url));
27
+ const themeCss = readFileSync(
28
+ path.resolve(here, "../../styles/theme.css"),
29
+ "utf8",
30
+ );
31
+ const globalsCss = readFileSync(
32
+ path.resolve(here, "../../styles/globals.css"),
33
+ "utf8",
34
+ );
35
+ const packageJson = readFileSync(
36
+ path.resolve(here, "../../package.json"),
37
+ "utf8",
38
+ );
39
+
40
+ // ---------------------------------------------------------------------------
41
+ // Minimal theme.css token parser (same contract as palette-contract).
42
+ // ---------------------------------------------------------------------------
43
+
44
+ type VarMap = Record<string, string>; // token name (without --) -> raw value
45
+
46
+ function collectVars(css: string): VarMap {
47
+ const vars: VarMap = {};
48
+ const re = /--([a-z0-9-]+)\s*:\s*([^;]+);/g;
49
+ let m: RegExpExecArray | null;
50
+ while ((m = re.exec(css))) {
51
+ if (!(m[1] in vars)) vars[m[1]] = m[2].trim();
52
+ }
53
+ return vars;
54
+ }
55
+
56
+ /** Resolve a token value through at most one `var(--x)` indirection. */
57
+ function resolveValue(vars: VarMap, name: string): string {
58
+ const raw = vars[name];
59
+ if (raw === undefined) {
60
+ throw new Error(`Token --${name} not found in theme.css`);
61
+ }
62
+ const ref = raw.match(/^var\(--([a-z0-9-]+)\)$/);
63
+ return ref ? vars[ref[1]] ?? "" : raw;
64
+ }
65
+
66
+ const vars = collectVars(themeCss);
67
+
68
+ // ---------------------------------------------------------------------------
69
+ // (a) Type scale — every DESIGN.md token declared with exact metrics.
70
+ // Values come from DESIGN.md "Type Scale" and "Type Scale Detail"
71
+ // (micro/label leadings; caption has no tracking by contract).
72
+ // ---------------------------------------------------------------------------
73
+
74
+ const TYPE_SCALE: Record<
75
+ string,
76
+ { size: string; lineHeight: string; letterSpacing: string | null }
77
+ > = {
78
+ micro: { size: "10px", lineHeight: "1.5", letterSpacing: null },
79
+ label: { size: "12px", lineHeight: "1.4", letterSpacing: null },
80
+ caption: { size: "13px", lineHeight: "1.2", letterSpacing: null },
81
+ "body-sm": { size: "15px", lineHeight: "1.6", letterSpacing: "-0.165px" },
82
+ "body-lg": { size: "20px", lineHeight: "1.33", letterSpacing: "-0.24px" },
83
+ subheading: { size: "24px", lineHeight: "1.33", letterSpacing: "-0.288px" },
84
+ "heading-sm": { size: "32px", lineHeight: "1.13", letterSpacing: "-0.704px" },
85
+ heading: { size: "48px", lineHeight: "1", letterSpacing: "-1.056px" },
86
+ "heading-lg": { size: "64px", lineHeight: "1", letterSpacing: "-1.408px" },
87
+ display: { size: "72px", lineHeight: "1", letterSpacing: "-1.584px" },
88
+ };
89
+
90
+ describe("Type scale tokens (task 12)", () => {
91
+ it("declares every DESIGN.md type-scale token with its exact size", () => {
92
+ for (const [name, spec] of Object.entries(TYPE_SCALE)) {
93
+ expect(
94
+ vars[`text-${name}`],
95
+ `--text-${name} must be declared in packages/ui/styles/theme.css @theme`,
96
+ ).toBe(spec.size);
97
+ }
98
+ });
99
+
100
+ it("declares per-size line-height (sub-key) and the granular --leading-* token with the same value", () => {
101
+ for (const [name, spec] of Object.entries(TYPE_SCALE)) {
102
+ const subKey = resolveValue(vars, `text-${name}--line-height`);
103
+ expect(
104
+ subKey,
105
+ `--text-${name}--line-height must exist and resolve to ${spec.lineHeight}`,
106
+ ).toBe(spec.lineHeight);
107
+ expect(
108
+ vars[`leading-${name}`],
109
+ `--leading-${name} must exist for the granular leading utility`,
110
+ ).toBe(spec.lineHeight);
111
+ }
112
+ });
113
+
114
+ it("declares optical letter-spacing per size (and none for micro/label/caption)", () => {
115
+ for (const [name, spec] of Object.entries(TYPE_SCALE)) {
116
+ if (spec.letterSpacing === null) {
117
+ expect(
118
+ vars[`text-${name}--letter-spacing`],
119
+ `--text-${name}--letter-spacing must NOT exist: ${name} ships default tracking per DESIGN.md`,
120
+ ).toBeUndefined();
121
+ continue;
122
+ }
123
+ expect(
124
+ resolveValue(vars, `text-${name}--letter-spacing`),
125
+ `--text-${name}--letter-spacing must resolve to ${spec.letterSpacing}`,
126
+ ).toBe(spec.letterSpacing);
127
+ expect(
128
+ vars[`tracking-${name}`],
129
+ `--tracking-${name} must exist for the granular tracking utility`,
130
+ ).toBe(spec.letterSpacing);
131
+ }
132
+ });
133
+ });
134
+
135
+ // ---------------------------------------------------------------------------
136
+ // (b) Weight aliases — the Linear precision vocabulary (300 / 400 / 510 / 590).
137
+ // ---------------------------------------------------------------------------
138
+
139
+ describe("Font weight aliases (task 12)", () => {
140
+ it("declares light / regular / w510 / w590 aliases", () => {
141
+ expect(vars["font-weight-light"]).toBe("300");
142
+ expect(vars["font-weight-regular"]).toBe("400");
143
+ expect(vars["font-weight-w510"]).toBe("510");
144
+ expect(vars["font-weight-w590"]).toBe("590");
145
+ });
146
+ });
147
+
148
+ // ---------------------------------------------------------------------------
149
+ // (c) Font loading — Inter Variable must have a REAL loading mechanism.
150
+ // A bare `"Inter Variable"` name with no @font-face source silently falls
151
+ // back to system-ui (the critique's Priority Issue 5). The contract is: the
152
+ // @fontsource-variable/inter CSS is imported in globals.css AND shipped as a
153
+ // runtime dependency, so any consumer importing @usalyt/ui/styles.css resolves the
154
+ // actual variable font.
155
+ // ---------------------------------------------------------------------------
156
+
157
+ describe("Inter Variable loading (task 12)", () => {
158
+ it("imports the @fontsource-variable/inter CSS in globals.css", () => {
159
+ expect(
160
+ /@import\s+"@fontsource-variable\/inter"/.test(globalsCss),
161
+ 'globals.css must import "@fontsource-variable/inter" so "Inter Variable" resolves for consumers',
162
+ ).toBe(true);
163
+ });
164
+
165
+ it("ships @fontsource-variable/inter as a runtime dependency", () => {
166
+ const pkg = JSON.parse(packageJson) as { dependencies?: Record<string, string> };
167
+ expect(
168
+ pkg.dependencies?.["@fontsource-variable/inter"],
169
+ "@fontsource-variable/inter must be a dependency of @usalyt/ui (not dev-only) so the import resolves in consumer apps",
170
+ ).toBeTruthy();
171
+ });
172
+
173
+ it("references the Inter Variable family in the sans stacks", () => {
174
+ for (const stack of ["font-sans", "font-inter-variable"]) {
175
+ expect(
176
+ vars[stack],
177
+ `--${stack} must keep "Inter Variable" as its first family`,
178
+ ).toMatch(/^"Inter Variable"/);
179
+ }
180
+ });
181
+ });
182
+
183
+ // ---------------------------------------------------------------------------
184
+ // (d) Berkeley Mono substitution contract — commercial face, never bundled.
185
+ // ---------------------------------------------------------------------------
186
+
187
+ function berkeleyMonoFontFace(css: string): string {
188
+ const at = css.indexOf('@font-face');
189
+ expect(at, 'theme.css must declare an @font-face for Berkeley Mono').toBeGreaterThanOrEqual(0);
190
+ const start = css.indexOf("{", at);
191
+ const end = css.indexOf("}", start);
192
+ return css.slice(start + 1, end);
193
+ }
194
+
195
+ describe("Berkeley Mono substitution contract (task 12)", () => {
196
+ it("declares Berkeley Mono with local() as the first source and never bundles a file", () => {
197
+ const face = berkeleyMonoFontFace(themeCss);
198
+ expect(face).toContain('font-family: "Berkeley Mono"');
199
+ const localAt = face.indexOf('local("Berkeley Mono")');
200
+ expect(
201
+ localAt,
202
+ 'the Berkeley Mono @font-face must start from local("Berkeley Mono")',
203
+ ).toBeGreaterThanOrEqual(0);
204
+ expect(
205
+ face.indexOf("url("),
206
+ "Berkeley Mono is commercial — the @font-face must not bundle a url() source",
207
+ ).toBe(-1);
208
+ });
209
+
210
+ it("falls back to JetBrains Mono then ui-monospace in the mono stacks", () => {
211
+ for (const stack of ["font-mono", "font-berkeley-mono"]) {
212
+ const value = vars[stack];
213
+ expect(value, `--${stack} must keep "Berkeley Mono" first`).toMatch(
214
+ /^"Berkeley Mono"/,
215
+ );
216
+ expect(
217
+ value.indexOf('"JetBrains Mono"'),
218
+ `--${stack} must list "JetBrains Mono" right after Berkeley Mono`,
219
+ ).toBeGreaterThan(-1);
220
+ expect(
221
+ value.indexOf("ui-monospace"),
222
+ `--${stack} must keep ui-monospace after JetBrains Mono`,
223
+ ).toBeGreaterThan(value.indexOf('"JetBrains Mono"'));
224
+ }
225
+ });
226
+
227
+ it("documents the substitution contract in a CSS comment", () => {
228
+ const comments = themeCss.match(/\/\*[\s\S]*?\*\//g) ?? [];
229
+ expect(
230
+ comments.some((c) =>
231
+ /Berkeley Mono/.test(c) && /JetBrains Mono/.test(c) && /never bundled|not bundled/.test(c),
232
+ ),
233
+ "theme.css must carry a comment documenting the Berkeley Mono → JetBrains Mono → ui-monospace substitution contract",
234
+ ).toBe(true);
235
+ });
236
+ });
237
+
238
+ // ---------------------------------------------------------------------------
239
+ // OpenType feature signature — cv01 / ss03 / zero applied to the sans stack.
240
+ // ---------------------------------------------------------------------------
241
+
242
+ describe("OpenType features (task 12)", () => {
243
+ it("applies cv01 / ss03 / zero to the Inter Variable sans stack", () => {
244
+ const bodyRule = globalsCss.match(/body\s*{[^}]*}/)?.[0] ?? "";
245
+ expect(bodyRule, "the base body rule must set font-family: var(--font-sans)").toContain(
246
+ "font-family: var(--font-sans)",
247
+ );
248
+ expect(
249
+ bodyRule,
250
+ 'the base body rule must apply font-feature-settings "cv01", "ss03", "zero"',
251
+ ).toMatch(/font-feature-settings:\s*"cv01"[\s\S]*"ss03"[\s\S]*"zero"/);
252
+ });
253
+ });
@@ -0,0 +1,10 @@
1
+ import "vitest";
2
+
3
+ declare module "vitest" {
4
+ export interface Assertion<T = any> {
5
+ toHaveNoViolations(): T;
6
+ }
7
+ export interface AsymmetricMatchersContaining {
8
+ toHaveNoViolations(): void;
9
+ }
10
+ }