@six-vallees/ui-react 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/README.md +9 -13
  2. package/dist/actions/button-group.d.ts +21 -0
  3. package/dist/actions/button-group.js +8 -0
  4. package/dist/actions/button-group.js.map +1 -0
  5. package/dist/actions/context-menu.d.ts +48 -0
  6. package/dist/actions/context-menu.js +38 -0
  7. package/dist/actions/context-menu.js.map +1 -0
  8. package/dist/actions/dropdown-menu.d.ts +49 -0
  9. package/dist/actions/dropdown-menu.js +38 -0
  10. package/dist/actions/dropdown-menu.js.map +1 -0
  11. package/dist/actions/icon-button.d.ts +34 -0
  12. package/dist/actions/icon-button.js +10 -0
  13. package/dist/actions/icon-button.js.map +1 -0
  14. package/dist/actions/link.d.ts +23 -0
  15. package/dist/actions/link.js +8 -0
  16. package/dist/actions/link.js.map +1 -0
  17. package/dist/actions/menu-styles.d.ts +25 -0
  18. package/dist/actions/menu-styles.js +23 -0
  19. package/dist/actions/menu-styles.js.map +1 -0
  20. package/dist/avatar/avatar.d.ts +1 -1
  21. package/dist/avatar/avatar.js +1 -1
  22. package/dist/badge/badge.d.ts +3 -3
  23. package/dist/badge/badge.js +1 -1
  24. package/dist/button/button.d.ts +7 -4
  25. package/dist/button/button.js +1 -1
  26. package/dist/card/card.d.ts +11 -3
  27. package/dist/card/card.js +1 -1
  28. package/dist/charts/bar-chart.d.ts +50 -11
  29. package/dist/charts/bar-chart.js +7 -2
  30. package/dist/charts/benchmark-table.d.ts +47 -0
  31. package/dist/charts/benchmark-table.js +10 -0
  32. package/dist/charts/benchmark-table.js.map +1 -0
  33. package/dist/charts/delta.d.ts +23 -0
  34. package/dist/charts/delta.js +8 -0
  35. package/dist/charts/delta.js.map +1 -0
  36. package/dist/charts/dot-matrix.d.ts +38 -0
  37. package/dist/charts/dot-matrix.js +13 -0
  38. package/dist/charts/dot-matrix.js.map +1 -0
  39. package/dist/charts/heatmap.d.ts +33 -0
  40. package/dist/charts/heatmap.js +13 -0
  41. package/dist/charts/heatmap.js.map +1 -0
  42. package/dist/charts/lib/scale.d.ts +17 -0
  43. package/dist/charts/lib/scale.js +15 -0
  44. package/dist/charts/lib/scale.js.map +1 -0
  45. package/dist/charts/lib/series.d.ts +76 -44
  46. package/dist/charts/lib/series.js +25 -11
  47. package/dist/charts/lib/use-chart.d.ts +48 -0
  48. package/dist/charts/lib/use-chart.js +16 -0
  49. package/dist/charts/lib/use-chart.js.map +1 -0
  50. package/dist/charts/line-chart.d.ts +52 -19
  51. package/dist/charts/line-chart.js +11 -2
  52. package/dist/charts/meter.d.ts +30 -0
  53. package/dist/charts/meter.js +12 -0
  54. package/dist/charts/meter.js.map +1 -0
  55. package/dist/charts/primitives/chart-frame.d.ts +25 -0
  56. package/dist/charts/primitives/chart-frame.js +8 -0
  57. package/dist/charts/primitives/chart-frame.js.map +1 -0
  58. package/dist/charts/primitives/chart-grid.d.ts +29 -0
  59. package/dist/charts/primitives/chart-grid.js +9 -0
  60. package/dist/charts/primitives/chart-grid.js.map +1 -0
  61. package/dist/charts/primitives/chart-legend.d.ts +23 -0
  62. package/dist/charts/primitives/chart-legend.js +9 -0
  63. package/dist/charts/primitives/chart-legend.js.map +1 -0
  64. package/dist/charts/primitives/chart-tooltip.d.ts +31 -0
  65. package/dist/charts/primitives/chart-tooltip.js +9 -0
  66. package/dist/charts/primitives/chart-tooltip.js.map +1 -0
  67. package/dist/charts/rank-list.d.ts +29 -0
  68. package/dist/charts/rank-list.js +12 -0
  69. package/dist/charts/rank-list.js.map +1 -0
  70. package/dist/charts/ring.d.ts +25 -24
  71. package/dist/charts/ring.js +4 -2
  72. package/dist/charts/scatter-chart.d.ts +42 -0
  73. package/dist/charts/scatter-chart.js +14 -0
  74. package/dist/charts/scatter-chart.js.map +1 -0
  75. package/dist/charts/segmented-bar.d.ts +16 -11
  76. package/dist/charts/segmented-bar.js +6 -2
  77. package/dist/charts/sparkline.d.ts +32 -0
  78. package/dist/charts/sparkline.js +10 -0
  79. package/dist/charts/sparkline.js.map +1 -0
  80. package/dist/charts/stat.d.ts +13 -7
  81. package/dist/charts/stat.js +2 -1
  82. package/dist/chunk-24T7KWXQ.js +84 -0
  83. package/dist/chunk-24T7KWXQ.js.map +1 -0
  84. package/dist/chunk-2NJFAPRG.js +40 -0
  85. package/dist/chunk-2NJFAPRG.js.map +1 -0
  86. package/dist/chunk-3PHVZB3A.js +73 -0
  87. package/dist/chunk-3PHVZB3A.js.map +1 -0
  88. package/dist/chunk-5EGRSN37.js +102 -0
  89. package/dist/chunk-5EGRSN37.js.map +1 -0
  90. package/dist/chunk-7FRDEE43.js +35 -0
  91. package/dist/chunk-7FRDEE43.js.map +1 -0
  92. package/dist/{chunk-ULEDFFUJ.js → chunk-7YKHLP4S.js} +1 -1
  93. package/dist/chunk-7YKHLP4S.js.map +1 -0
  94. package/dist/{chunk-7GXL7U5X.js → chunk-A65X3XYB.js} +4 -3
  95. package/dist/chunk-A65X3XYB.js.map +1 -0
  96. package/dist/chunk-AGKLGZSW.js +74 -0
  97. package/dist/chunk-AGKLGZSW.js.map +1 -0
  98. package/dist/chunk-AQHYE6EF.js +109 -0
  99. package/dist/chunk-AQHYE6EF.js.map +1 -0
  100. package/dist/chunk-AWVTRQZJ.js +117 -0
  101. package/dist/chunk-AWVTRQZJ.js.map +1 -0
  102. package/dist/chunk-BDQUFQE7.js +30 -0
  103. package/dist/chunk-BDQUFQE7.js.map +1 -0
  104. package/dist/chunk-BJKQSXX4.js +54 -0
  105. package/dist/chunk-BJKQSXX4.js.map +1 -0
  106. package/dist/chunk-BKSKRGK7.js +81 -0
  107. package/dist/chunk-BKSKRGK7.js.map +1 -0
  108. package/dist/chunk-BVNDNRPW.js +44 -0
  109. package/dist/chunk-BVNDNRPW.js.map +1 -0
  110. package/dist/chunk-CN6QNKYV.js +24 -0
  111. package/dist/chunk-CN6QNKYV.js.map +1 -0
  112. package/dist/chunk-DD6QBBV2.js +119 -0
  113. package/dist/chunk-DD6QBBV2.js.map +1 -0
  114. package/dist/chunk-DHPFIP7P.js +50 -0
  115. package/dist/chunk-DHPFIP7P.js.map +1 -0
  116. package/dist/chunk-DRJWJ7KG.js +109 -0
  117. package/dist/chunk-DRJWJ7KG.js.map +1 -0
  118. package/dist/chunk-DUJEWU5O.js +72 -0
  119. package/dist/chunk-DUJEWU5O.js.map +1 -0
  120. package/dist/chunk-EKQQBSFF.js +79 -0
  121. package/dist/chunk-EKQQBSFF.js.map +1 -0
  122. package/dist/{chunk-RXDJPRH5.js → chunk-EM5UHI3U.js} +2 -2
  123. package/dist/chunk-EM5UHI3U.js.map +1 -0
  124. package/dist/chunk-ENL5WNFM.js +101 -0
  125. package/dist/chunk-ENL5WNFM.js.map +1 -0
  126. package/dist/chunk-EVKFEIM2.js +37 -0
  127. package/dist/chunk-EVKFEIM2.js.map +1 -0
  128. package/dist/chunk-EXEJG4IG.js +101 -0
  129. package/dist/chunk-EXEJG4IG.js.map +1 -0
  130. package/dist/chunk-FSVKQPMR.js +45 -0
  131. package/dist/chunk-FSVKQPMR.js.map +1 -0
  132. package/dist/chunk-GASC427L.js +34 -0
  133. package/dist/chunk-GASC427L.js.map +1 -0
  134. package/dist/chunk-GGQ6GQ75.js +24 -0
  135. package/dist/chunk-GGQ6GQ75.js.map +1 -0
  136. package/dist/chunk-GHXR4PCK.js +147 -0
  137. package/dist/chunk-GHXR4PCK.js.map +1 -0
  138. package/dist/{chunk-WHD5CSTB.js → chunk-HC3SNY5O.js} +5 -5
  139. package/dist/chunk-HC3SNY5O.js.map +1 -0
  140. package/dist/chunk-HJ7ICELB.js +76 -0
  141. package/dist/chunk-HJ7ICELB.js.map +1 -0
  142. package/dist/chunk-I355QWHH.js +40 -0
  143. package/dist/chunk-I355QWHH.js.map +1 -0
  144. package/dist/chunk-I6D5E5ZD.js +34 -0
  145. package/dist/chunk-I6D5E5ZD.js.map +1 -0
  146. package/dist/chunk-IBY25I76.js +49 -0
  147. package/dist/chunk-IBY25I76.js.map +1 -0
  148. package/dist/chunk-IGOTX5DA.js +19 -0
  149. package/dist/chunk-IGOTX5DA.js.map +1 -0
  150. package/dist/{chunk-WHJ4JVO6.js → chunk-JI4UZW6G.js} +2 -2
  151. package/dist/chunk-JI4UZW6G.js.map +1 -0
  152. package/dist/chunk-JZNXMBZ6.js +93 -0
  153. package/dist/chunk-JZNXMBZ6.js.map +1 -0
  154. package/dist/chunk-LAATHRKX.js +39 -0
  155. package/dist/chunk-LAATHRKX.js.map +1 -0
  156. package/dist/{chunk-POUL3ZTV.js → chunk-LL5GBPQN.js} +8 -4
  157. package/dist/chunk-LL5GBPQN.js.map +1 -0
  158. package/dist/chunk-ML3IXSZV.js +78 -0
  159. package/dist/chunk-ML3IXSZV.js.map +1 -0
  160. package/dist/chunk-MNECWWTU.js +62 -0
  161. package/dist/chunk-MNECWWTU.js.map +1 -0
  162. package/dist/chunk-MPYL4ED3.js +171 -0
  163. package/dist/chunk-MPYL4ED3.js.map +1 -0
  164. package/dist/chunk-MS7ZK2O6.js +65 -0
  165. package/dist/chunk-MS7ZK2O6.js.map +1 -0
  166. package/dist/chunk-MZVQ32JU.js +29 -0
  167. package/dist/chunk-MZVQ32JU.js.map +1 -0
  168. package/dist/chunk-NC4IUB2C.js +33 -0
  169. package/dist/chunk-NC4IUB2C.js.map +1 -0
  170. package/dist/chunk-NCAHIMIB.js +96 -0
  171. package/dist/chunk-NCAHIMIB.js.map +1 -0
  172. package/dist/chunk-NJVKZ5DE.js +114 -0
  173. package/dist/chunk-NJVKZ5DE.js.map +1 -0
  174. package/dist/chunk-OGSHLSI2.js +22 -0
  175. package/dist/chunk-OGSHLSI2.js.map +1 -0
  176. package/dist/chunk-OIAZH5EU.js +36 -0
  177. package/dist/chunk-OIAZH5EU.js.map +1 -0
  178. package/dist/chunk-P22B7HQS.js +45 -0
  179. package/dist/chunk-P22B7HQS.js.map +1 -0
  180. package/dist/{chunk-DCKWB3EY.js → chunk-P2CWISVU.js} +2 -2
  181. package/dist/chunk-P2CWISVU.js.map +1 -0
  182. package/dist/chunk-P4G5WFHH.js +18 -0
  183. package/dist/chunk-P4G5WFHH.js.map +1 -0
  184. package/dist/chunk-QNIIWNSR.js +78 -0
  185. package/dist/chunk-QNIIWNSR.js.map +1 -0
  186. package/dist/chunk-R23U2FRV.js +23 -0
  187. package/dist/chunk-R23U2FRV.js.map +1 -0
  188. package/dist/chunk-RB6DUG3M.js +9 -0
  189. package/dist/chunk-RB6DUG3M.js.map +1 -0
  190. package/dist/chunk-RKG72NSW.js +26 -0
  191. package/dist/chunk-RKG72NSW.js.map +1 -0
  192. package/dist/chunk-SAVUGRDZ.js +31 -0
  193. package/dist/chunk-SAVUGRDZ.js.map +1 -0
  194. package/dist/chunk-SEMDDFFB.js +37 -0
  195. package/dist/chunk-SEMDDFFB.js.map +1 -0
  196. package/dist/{chunk-R7BM6J75.js → chunk-SNTRWOF6.js} +2 -5
  197. package/dist/chunk-SNTRWOF6.js.map +1 -0
  198. package/dist/chunk-SOWWBAOB.js +36 -0
  199. package/dist/chunk-SOWWBAOB.js.map +1 -0
  200. package/dist/chunk-SYGAPDKX.js +45 -0
  201. package/dist/chunk-SYGAPDKX.js.map +1 -0
  202. package/dist/chunk-TBZIUIP2.js +87 -0
  203. package/dist/chunk-TBZIUIP2.js.map +1 -0
  204. package/dist/chunk-TD2NGENS.js +43 -0
  205. package/dist/chunk-TD2NGENS.js.map +1 -0
  206. package/dist/chunk-TH6WBEEL.js +58 -0
  207. package/dist/chunk-TH6WBEEL.js.map +1 -0
  208. package/dist/chunk-TUY3ZMDE.js +42 -0
  209. package/dist/chunk-TUY3ZMDE.js.map +1 -0
  210. package/dist/chunk-U4G72DSG.js +67 -0
  211. package/dist/chunk-U4G72DSG.js.map +1 -0
  212. package/dist/chunk-UG5TRIRZ.js +42 -0
  213. package/dist/chunk-UG5TRIRZ.js.map +1 -0
  214. package/dist/chunk-UOJZEP6N.js +39 -0
  215. package/dist/chunk-UOJZEP6N.js.map +1 -0
  216. package/dist/chunk-V5QWZ3LA.js +77 -0
  217. package/dist/chunk-V5QWZ3LA.js.map +1 -0
  218. package/dist/chunk-VDKJLIEZ.js +291 -0
  219. package/dist/chunk-VDKJLIEZ.js.map +1 -0
  220. package/dist/chunk-W2NESPKL.js +100 -0
  221. package/dist/chunk-W2NESPKL.js.map +1 -0
  222. package/dist/{chunk-HHUI32DT.js → chunk-W3RIYQPO.js} +3 -2
  223. package/dist/chunk-W3RIYQPO.js.map +1 -0
  224. package/dist/chunk-WO33CSUW.js +52 -0
  225. package/dist/chunk-WO33CSUW.js.map +1 -0
  226. package/dist/chunk-WSTHL6H7.js +33 -0
  227. package/dist/chunk-WSTHL6H7.js.map +1 -0
  228. package/dist/chunk-WZONN76V.js +55 -0
  229. package/dist/chunk-WZONN76V.js.map +1 -0
  230. package/dist/chunk-XGFM7GVN.js +39 -0
  231. package/dist/chunk-XGFM7GVN.js.map +1 -0
  232. package/dist/chunk-XSYY67X3.js +142 -0
  233. package/dist/chunk-XSYY67X3.js.map +1 -0
  234. package/dist/chunk-YFKM4ZLH.js +111 -0
  235. package/dist/chunk-YFKM4ZLH.js.map +1 -0
  236. package/dist/{chunk-OVF2VS3L.js → chunk-YM2TZ5UT.js} +4 -4
  237. package/dist/{chunk-OVF2VS3L.js.map → chunk-YM2TZ5UT.js.map} +1 -1
  238. package/dist/chunk-YP766ABA.js +268 -0
  239. package/dist/chunk-YP766ABA.js.map +1 -0
  240. package/dist/chunk-YT2PR4LF.js +38 -0
  241. package/dist/chunk-YT2PR4LF.js.map +1 -0
  242. package/dist/chunk-ZI4AJKES.js +29 -0
  243. package/dist/chunk-ZI4AJKES.js.map +1 -0
  244. package/dist/chunk-ZXVCMTM2.js +57 -0
  245. package/dist/chunk-ZXVCMTM2.js.map +1 -0
  246. package/dist/data-display/code-block.d.ts +26 -0
  247. package/dist/data-display/code-block.js +9 -0
  248. package/dist/data-display/code-block.js.map +1 -0
  249. package/dist/data-display/separator.d.ts +11 -0
  250. package/dist/data-display/separator.js +9 -0
  251. package/dist/data-display/separator.js.map +1 -0
  252. package/dist/data-display/stepper.d.ts +27 -0
  253. package/dist/data-display/stepper.js +8 -0
  254. package/dist/data-display/stepper.js.map +1 -0
  255. package/dist/data-display/table.d.ts +43 -0
  256. package/dist/data-display/table.js +24 -0
  257. package/dist/data-display/table.js.map +1 -0
  258. package/dist/data-display/tag.d.ts +27 -0
  259. package/dist/data-display/tag.js +10 -0
  260. package/dist/data-display/tag.js.map +1 -0
  261. package/dist/data-display/timeline.d.ts +24 -0
  262. package/dist/data-display/timeline.js +10 -0
  263. package/dist/data-display/timeline.js.map +1 -0
  264. package/dist/disclosure/accordion.d.ts +18 -0
  265. package/dist/disclosure/accordion.js +15 -0
  266. package/dist/disclosure/accordion.js.map +1 -0
  267. package/dist/disclosure/collapsible.d.ts +14 -0
  268. package/dist/disclosure/collapsible.js +13 -0
  269. package/dist/disclosure/collapsible.js.map +1 -0
  270. package/dist/disclosure/dialog.d.ts +43 -0
  271. package/dist/disclosure/dialog.js +27 -0
  272. package/dist/disclosure/dialog.js.map +1 -0
  273. package/dist/disclosure/hover-card.d.ts +21 -0
  274. package/dist/disclosure/hover-card.js +13 -0
  275. package/dist/disclosure/hover-card.js.map +1 -0
  276. package/dist/dots/dots.d.ts +41 -0
  277. package/dist/dots/dots.js +8 -0
  278. package/dist/dots/dots.js.map +1 -0
  279. package/dist/feedback/alert.d.ts +27 -0
  280. package/dist/feedback/alert.js +13 -0
  281. package/dist/feedback/alert.js.map +1 -0
  282. package/dist/feedback/empty-state.d.ts +28 -0
  283. package/dist/feedback/empty-state.js +8 -0
  284. package/dist/feedback/empty-state.js.map +1 -0
  285. package/dist/feedback/progress.d.ts +19 -0
  286. package/dist/feedback/progress.js +9 -0
  287. package/dist/feedback/progress.js.map +1 -0
  288. package/dist/feedback/skeleton.d.ts +16 -0
  289. package/dist/feedback/skeleton.js +8 -0
  290. package/dist/feedback/skeleton.js.map +1 -0
  291. package/dist/feedback/spinner.d.ts +19 -0
  292. package/dist/feedback/spinner.js +8 -0
  293. package/dist/feedback/spinner.js.map +1 -0
  294. package/dist/feedback/toast.d.ts +35 -0
  295. package/dist/feedback/toast.js +22 -0
  296. package/dist/feedback/toast.js.map +1 -0
  297. package/dist/feedback/tone.d.ts +20 -0
  298. package/dist/feedback/tone.js +11 -0
  299. package/dist/feedback/tone.js.map +1 -0
  300. package/dist/index.d.ts +78 -4
  301. package/dist/index.js +527 -41
  302. package/dist/input/chat-composer.d.ts +40 -0
  303. package/dist/input/chat-composer.js +9 -0
  304. package/dist/input/chat-composer.js.map +1 -0
  305. package/dist/input/checkbox.d.ts +15 -0
  306. package/dist/input/checkbox.js +9 -0
  307. package/dist/input/checkbox.js.map +1 -0
  308. package/dist/input/combobox.d.ts +121 -0
  309. package/dist/input/combobox.js +25 -0
  310. package/dist/input/combobox.js.map +1 -0
  311. package/dist/input/field-styles.d.ts +14 -0
  312. package/dist/input/field-styles.js +9 -0
  313. package/dist/input/field-styles.js.map +1 -0
  314. package/dist/input/input.d.ts +6 -11
  315. package/dist/input/input.js +2 -1
  316. package/dist/input/kbd.d.ts +11 -0
  317. package/dist/input/kbd.js +8 -0
  318. package/dist/input/kbd.js.map +1 -0
  319. package/dist/input/label.d.ts +10 -4
  320. package/dist/input/label.js +1 -1
  321. package/dist/input/radio-group.d.ts +15 -0
  322. package/dist/input/radio-group.js +11 -0
  323. package/dist/input/radio-group.js.map +1 -0
  324. package/dist/input/search-field.d.ts +24 -0
  325. package/dist/input/search-field.js +11 -0
  326. package/dist/input/search-field.js.map +1 -0
  327. package/dist/input/select.d.ts +29 -0
  328. package/dist/input/select.js +25 -0
  329. package/dist/input/select.js.map +1 -0
  330. package/dist/input/slider.d.ts +19 -0
  331. package/dist/input/slider.js +9 -0
  332. package/dist/input/slider.js.map +1 -0
  333. package/dist/input/switch.d.ts +15 -0
  334. package/dist/input/switch.js +9 -0
  335. package/dist/input/switch.js.map +1 -0
  336. package/dist/input/textarea.d.ts +1 -5
  337. package/dist/input/textarea.js +2 -1
  338. package/dist/logo/cairn-mark.d.ts +24 -0
  339. package/dist/logo/cairn-mark.js +8 -0
  340. package/dist/logo/cairn-mark.js.map +1 -0
  341. package/dist/marketing/carousel-dots.d.ts +22 -0
  342. package/dist/marketing/carousel-dots.js +8 -0
  343. package/dist/marketing/carousel-dots.js.map +1 -0
  344. package/dist/marketing/cta-band.d.ts +24 -0
  345. package/dist/marketing/cta-band.js +9 -0
  346. package/dist/marketing/cta-band.js.map +1 -0
  347. package/dist/marketing/feature-grid.d.ts +30 -0
  348. package/dist/marketing/feature-grid.js +10 -0
  349. package/dist/marketing/feature-grid.js.map +1 -0
  350. package/dist/marketing/footer.d.ts +33 -0
  351. package/dist/marketing/footer.js +18 -0
  352. package/dist/marketing/footer.js.map +1 -0
  353. package/dist/marketing/hero-badge.d.ts +19 -0
  354. package/dist/marketing/hero-badge.js +8 -0
  355. package/dist/marketing/hero-badge.js.map +1 -0
  356. package/dist/marketing/logo-strip.d.ts +28 -0
  357. package/dist/marketing/logo-strip.js +8 -0
  358. package/dist/marketing/logo-strip.js.map +1 -0
  359. package/dist/marketing/pricing-card.d.ts +37 -0
  360. package/dist/marketing/pricing-card.js +10 -0
  361. package/dist/marketing/pricing-card.js.map +1 -0
  362. package/dist/marketing/section-header.d.ts +23 -0
  363. package/dist/marketing/section-header.js +8 -0
  364. package/dist/marketing/section-header.js.map +1 -0
  365. package/dist/navigation/anchor-rail.d.ts +27 -0
  366. package/dist/navigation/anchor-rail.js +9 -0
  367. package/dist/navigation/anchor-rail.js.map +1 -0
  368. package/dist/navigation/breadcrumb.d.ts +33 -0
  369. package/dist/navigation/breadcrumb.js +20 -0
  370. package/dist/navigation/breadcrumb.js.map +1 -0
  371. package/dist/navigation/nav-bar.d.ts +47 -0
  372. package/dist/navigation/nav-bar.js +21 -0
  373. package/dist/navigation/nav-bar.js.map +1 -0
  374. package/dist/navigation/navigation-menu.d.ts +23 -0
  375. package/dist/navigation/navigation-menu.js +25 -0
  376. package/dist/navigation/navigation-menu.js.map +1 -0
  377. package/dist/navigation/pagination.d.ts +31 -0
  378. package/dist/navigation/pagination.js +20 -0
  379. package/dist/navigation/pagination.js.map +1 -0
  380. package/dist/navigation/side-nav.d.ts +31 -0
  381. package/dist/navigation/side-nav.js +13 -0
  382. package/dist/navigation/side-nav.js.map +1 -0
  383. package/dist/overlay/alert-dialog.d.ts +3 -3
  384. package/dist/overlay/alert-dialog.js +1 -1
  385. package/dist/overlay/popover.d.ts +3 -4
  386. package/dist/overlay/popover.js +1 -1
  387. package/dist/overlay/sheet.d.ts +4 -4
  388. package/dist/overlay/sheet.js +1 -1
  389. package/dist/overlay/tooltip.d.ts +1 -1
  390. package/dist/overlay/tooltip.js +1 -1
  391. package/dist/tabs/tabs.d.ts +1 -1
  392. package/dist/tabs/tabs.js +1 -1
  393. package/dist/tabs/toggle-group.js +1 -1
  394. package/package.json +17 -7
  395. package/dist/chunk-7GXL7U5X.js.map +0 -1
  396. package/dist/chunk-BWYWI4BC.js +0 -43
  397. package/dist/chunk-BWYWI4BC.js.map +0 -1
  398. package/dist/chunk-BYZCFI7X.js +0 -32
  399. package/dist/chunk-BYZCFI7X.js.map +0 -1
  400. package/dist/chunk-CZ3JB37A.js +0 -72
  401. package/dist/chunk-CZ3JB37A.js.map +0 -1
  402. package/dist/chunk-DCKWB3EY.js.map +0 -1
  403. package/dist/chunk-G2XJK244.js +0 -96
  404. package/dist/chunk-G2XJK244.js.map +0 -1
  405. package/dist/chunk-GNHNTI5A.js +0 -30
  406. package/dist/chunk-GNHNTI5A.js.map +0 -1
  407. package/dist/chunk-HHUI32DT.js.map +0 -1
  408. package/dist/chunk-OWIUMX76.js +0 -91
  409. package/dist/chunk-OWIUMX76.js.map +0 -1
  410. package/dist/chunk-POUL3ZTV.js.map +0 -1
  411. package/dist/chunk-R7BM6J75.js.map +0 -1
  412. package/dist/chunk-RXDJPRH5.js.map +0 -1
  413. package/dist/chunk-S4HVXD6Z.js +0 -92
  414. package/dist/chunk-S4HVXD6Z.js.map +0 -1
  415. package/dist/chunk-ULEDFFUJ.js.map +0 -1
  416. package/dist/chunk-WHD5CSTB.js.map +0 -1
  417. package/dist/chunk-WHJ4JVO6.js.map +0 -1
  418. package/dist/chunk-XGYKA3GE.js +0 -30
  419. package/dist/chunk-XGYKA3GE.js.map +0 -1
  420. package/dist/chunk-YX6MSLUB.js +0 -98
  421. package/dist/chunk-YX6MSLUB.js.map +0 -1
@@ -0,0 +1,45 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-DXRY7AS4.js";
4
+
5
+ // src/logo/cairn-mark.tsx
6
+ import * as React from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
+ var PITCH = 130;
9
+ var R = 62;
10
+ var TILT = -38;
11
+ var POSE = { 2: [R, R], 1: [54, 36], 0: [51, 15] };
12
+ var CELLS = Array.from({ length: 9 }, (_, n) => ({ i: n % 3, j: Math.floor(n / 3) }));
13
+ var CairnMark = React.forwardRef(function CairnMark2({ title = "Cairn", animate = "none", className, ...props }, ref) {
14
+ const animated = animate !== "none";
15
+ return /* @__PURE__ */ jsx(
16
+ "svg",
17
+ {
18
+ ref,
19
+ viewBox: "0 0 390 390",
20
+ fill: "currentColor",
21
+ xmlns: "http://www.w3.org/2000/svg",
22
+ role: title ? "img" : void 0,
23
+ "aria-label": title || void 0,
24
+ "aria-hidden": title ? void 0 : true,
25
+ className: cn(animated && "sv-cairn-mark", animate === "hover" && "sv-cairn-mark--hover", className),
26
+ ...props,
27
+ children: CELLS.map(({ i, j }) => {
28
+ const cx = PITCH * i + PITCH / 2;
29
+ const cy = PITCH * j + PITCH / 2;
30
+ const s = i + j;
31
+ if (!animated) {
32
+ const [rx, ry] = POSE[Math.abs(s - 2)];
33
+ return /* @__PURE__ */ jsx("ellipse", { cx, cy, rx, ry, transform: `rotate(${TILT} ${cx} ${cy})` }, s * 3 + i);
34
+ }
35
+ return /* @__PURE__ */ jsx("g", { transform: `translate(${cx} ${cy}) rotate(${TILT})`, children: /* @__PURE__ */ jsx("circle", { r: R, className: "sv-cairn-disc", style: { animationDelay: `calc(var(--sv-cairn-period) * ${-s / 4})` } }) }, s * 3 + i);
36
+ })
37
+ }
38
+ );
39
+ });
40
+ CairnMark.displayName = "CairnMark";
41
+
42
+ export {
43
+ CairnMark
44
+ };
45
+ //# sourceMappingURL=chunk-FSVKQPMR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/logo/cairn-mark.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '@/lib/utils';\n\nexport interface CairnMarkProps extends Omit<React.SVGProps<SVGSVGElement>, 'children'> {\n /** Accessible name. Pass an empty string for a purely decorative mark. */\n title?: string;\n /**\n * `none`: the static mark. `loop`: the discs keep turning, a wave travelling along the\n * diagonal. `hover`: the mark rests and turns while its nearest `.group` ancestor (or the\n * mark itself) is hovered or focused. Both animated modes rest on the static pose and stop\n * under `prefers-reduced-motion`.\n */\n animate?: 'none' | 'loop' | 'hover';\n}\n\n/* Geometry: a 3 x 3 grid of discs seen at an angle, all on one axis tilted -38 degrees.\n The diagonal sum s = column + row sets the pose: the two far corners (s = 0, 4) are full\n discs, the middle diagonal (s = 2) is edge-on, the rest half turned. */\nconst PITCH = 130;\nconst R = 62;\nconst TILT = -38;\nconst POSE: Record<number, [number, number]> = { 2: [R, R], 1: [54, 36], 0: [51, 15] };\nconst CELLS = Array.from({ length: 9 }, (_, n) => ({ i: n % 3, j: Math.floor(n / 3) }));\n\n/**\n * Cairn mark: nine discs turning in a grid, the dots of SV's motif seen in motion. Colour\n * follows `currentColor`; size with `className` (e.g. `h-6 w-6`).\n *\n * The animation is one keyframe (`sv-cairn-turn`: full disc, edge-on, full disc) on every\n * disc, offset by its diagonal so the static pose is the frame at t = 0; a paused animation\n * therefore shows exactly the static mark.\n */\nexport const CairnMark = React.forwardRef<SVGSVGElement, CairnMarkProps>(function CairnMark(\n { title = 'Cairn', animate = 'none', className, ...props },\n ref\n) {\n const animated = animate !== 'none';\n return (\n <svg\n ref={ref}\n viewBox=\"0 0 390 390\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n role={title ? 'img' : undefined}\n aria-label={title || undefined}\n aria-hidden={title ? undefined : true}\n className={cn(animated && 'sv-cairn-mark', animate === 'hover' && 'sv-cairn-mark--hover', className)}\n {...props}\n >\n {CELLS.map(({ i, j }) => {\n const cx = PITCH * i + PITCH / 2;\n const cy = PITCH * j + PITCH / 2;\n const s = i + j;\n if (!animated) {\n const [rx, ry] = POSE[Math.abs(s - 2)];\n return <ellipse key={s * 3 + i} cx={cx} cy={cy} rx={rx} ry={ry} transform={`rotate(${TILT} ${cx} ${cy})`} />;\n }\n return (\n <g key={s * 3 + i} transform={`translate(${cx} ${cy}) rotate(${TILT})`}>\n {/* Phase: s / 4 of a period, so s = 1 starts half turned and s = 2 edge-on. */}\n <circle r={R} className=\"sv-cairn-disc\" style={{ animationDelay: `calc(var(--sv-cairn-period) * ${-s / 4})` }} />\n </g>\n );\n })}\n </svg>\n );\n});\nCairnMark.displayName = 'CairnMark';\n"],"mappings":";;;;;AAAA,YAAY,WAAW;AAuDN;AArCjB,IAAM,QAAQ;AACd,IAAM,IAAI;AACV,IAAM,OAAO;AACb,IAAM,OAAyC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,IAAI,EAAE,EAAE;AACrF,IAAM,QAAQ,MAAM,KAAK,EAAE,QAAQ,EAAE,GAAG,CAAC,GAAG,OAAO,EAAE,GAAG,IAAI,GAAG,GAAG,KAAK,MAAM,IAAI,CAAC,EAAE,EAAE;AAU/E,IAAM,YAAkB,iBAA0C,SAASA,WAChF,EAAE,QAAQ,SAAS,UAAU,QAAQ,WAAW,GAAG,MAAM,GACzD,KACA;AACA,QAAM,WAAW,YAAY;AAC7B,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,OAAM;AAAA,MACN,MAAM,QAAQ,QAAQ;AAAA,MACtB,cAAY,SAAS;AAAA,MACrB,eAAa,QAAQ,SAAY;AAAA,MACjC,WAAW,GAAG,YAAY,iBAAiB,YAAY,WAAW,wBAAwB,SAAS;AAAA,MAClG,GAAG;AAAA,MAEH,gBAAM,IAAI,CAAC,EAAE,GAAG,EAAE,MAAM;AACvB,cAAM,KAAK,QAAQ,IAAI,QAAQ;AAC/B,cAAM,KAAK,QAAQ,IAAI,QAAQ;AAC/B,cAAM,IAAI,IAAI;AACd,YAAI,CAAC,UAAU;AACb,gBAAM,CAAC,IAAI,EAAE,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,CAAC;AACrC,iBAAO,oBAAC,aAAwB,IAAQ,IAAQ,IAAQ,IAAQ,WAAW,UAAU,IAAI,IAAI,EAAE,IAAI,EAAE,OAAhF,IAAI,IAAI,CAA6E;AAAA,QAC5G;AACA,eACE,oBAAC,OAAkB,WAAW,aAAa,EAAE,IAAI,EAAE,YAAY,IAAI,KAEjE,8BAAC,YAAO,GAAG,GAAG,WAAU,iBAAgB,OAAO,EAAE,gBAAgB,iCAAiC,CAAC,IAAI,CAAC,IAAI,GAAG,KAFzG,IAAI,IAAI,CAGhB;AAAA,MAEJ,CAAC;AAAA;AAAA,EACH;AAEJ,CAAC;AACD,UAAU,cAAc;","names":["CairnMark"]}
@@ -0,0 +1,34 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-DXRY7AS4.js";
4
+
5
+ // src/charts/primitives/chart-frame.tsx
6
+ import * as React from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ function ChartFrame({
9
+ title,
10
+ description,
11
+ legend,
12
+ source,
13
+ titleAs: Title = "h3",
14
+ className,
15
+ children,
16
+ ...props
17
+ }) {
18
+ const id = React.useId();
19
+ return /* @__PURE__ */ jsxs("figure", { className: cn("flex w-full min-w-0 flex-col gap-gap-md", className), "aria-labelledby": title ? `${id}-t` : void 0, ...props, children: [
20
+ (title || description) && /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
21
+ title && /* @__PURE__ */ jsx(Title, { id: `${id}-t`, className: "sv-title-md text-on-surface", children: title }),
22
+ description && /* @__PURE__ */ jsx("p", { className: "sv-body-sm text-chart-label", children: description })
23
+ ] }),
24
+ legend,
25
+ /* @__PURE__ */ jsx("div", { className: "min-w-0", children }),
26
+ source && /* @__PURE__ */ jsx("figcaption", { className: "sv-body-xs text-chart-label", children: source })
27
+ ] });
28
+ }
29
+ ChartFrame.displayName = "ChartFrame";
30
+
31
+ export {
32
+ ChartFrame
33
+ };
34
+ //# sourceMappingURL=chunk-GASC427L.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/charts/primitives/chart-frame.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '@/lib/utils';\n\nexport interface ChartFrameProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {\n /** Title above the chart (the title leads, the chart follows). */\n title?: React.ReactNode;\n /** One line under the title: the measure, the unit. */\n description?: React.ReactNode;\n /** Legend slot, usually a `ChartLegend`, set between the heading and the chart. */\n legend?: React.ReactNode;\n /** Source or method footnote, muted, under the chart. */\n source?: React.ReactNode;\n /** Heading level of the title. */\n titleAs?: 'h2' | 'h3' | 'h4' | 'p';\n}\n\n/**\n * Cairn ChartFrame: the shell every chart sits in. A `figure` with the title above, an optional\n * description and legend, the chart, and a muted source footnote below. No border box, no card:\n * a chart is bare marks on the page; put it in a Card when it needs one.\n */\nexport function ChartFrame({\n title,\n description,\n legend,\n source,\n titleAs: Title = 'h3',\n className,\n children,\n ...props\n}: ChartFrameProps) {\n const id = React.useId();\n return (\n <figure className={cn('flex w-full min-w-0 flex-col gap-gap-md', className)} aria-labelledby={title ? `${id}-t` : undefined} {...props}>\n {(title || description) && (\n <div className=\"flex flex-col gap-1\">\n {title && (\n <Title id={`${id}-t`} className=\"sv-title-md text-on-surface\">\n {title}\n </Title>\n )}\n {description && <p className=\"sv-body-sm text-chart-label\">{description}</p>}\n </div>\n )}\n {legend}\n <div className=\"min-w-0\">{children}</div>\n {source && <figcaption className=\"sv-body-xs text-chart-label\">{source}</figcaption>}\n </figure>\n );\n}\nChartFrame.displayName = 'ChartFrame';\n"],"mappings":";;;;;AAAA,YAAY,WAAW;AAmCf,SAEI,KAFJ;AAdD,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS,QAAQ;AAAA,EACjB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAoB;AAClB,QAAM,KAAW,YAAM;AACvB,SACE,qBAAC,YAAO,WAAW,GAAG,2CAA2C,SAAS,GAAG,mBAAiB,QAAQ,GAAG,EAAE,OAAO,QAAY,GAAG,OAC7H;AAAA,cAAS,gBACT,qBAAC,SAAI,WAAU,uBACZ;AAAA,eACC,oBAAC,SAAM,IAAI,GAAG,EAAE,MAAM,WAAU,+BAC7B,iBACH;AAAA,MAED,eAAe,oBAAC,OAAE,WAAU,+BAA+B,uBAAY;AAAA,OAC1E;AAAA,IAED;AAAA,IACD,oBAAC,SAAI,WAAU,WAAW,UAAS;AAAA,IAClC,UAAU,oBAAC,gBAAW,WAAU,+BAA+B,kBAAO;AAAA,KACzE;AAEJ;AACA,WAAW,cAAc;","names":[]}
@@ -0,0 +1,24 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-DXRY7AS4.js";
4
+
5
+ // src/input/kbd.tsx
6
+ import * as React from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
+ var Kbd = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
9
+ "kbd",
10
+ {
11
+ ref,
12
+ className: cn(
13
+ "inline-flex h-6 min-w-6 shrink-0 items-center justify-center border border-outline bg-surface-subtle px-1.5 sv-body-xs tabular-nums text-on-surface-variant",
14
+ className
15
+ ),
16
+ ...props
17
+ }
18
+ ));
19
+ Kbd.displayName = "Kbd";
20
+
21
+ export {
22
+ Kbd
23
+ };
24
+ //# sourceMappingURL=chunk-GGQ6GQ75.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/input/kbd.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '@/lib/utils';\n\n/**\n * Cairn Kbd. A keycap for a shortcut hint. Cairn has one typeface, so the cap reads as a key\n * through surface and shape (paper step, hairline, square), never through a mono family\n * (AGENTS.md rule 7). The keys are the consumer's text; for a chord, render one `Kbd` per key.\n */\nexport type KbdProps = React.HTMLAttributes<HTMLElement>;\n\nexport const Kbd = React.forwardRef<HTMLElement, KbdProps>(({ className, ...props }, ref) => (\n <kbd\n ref={ref}\n className={cn(\n 'inline-flex h-6 min-w-6 shrink-0 items-center justify-center border border-outline bg-surface-subtle px-1.5 sv-body-xs tabular-nums text-on-surface-variant',\n className\n )}\n {...props}\n />\n));\nKbd.displayName = 'Kbd';\n"],"mappings":";;;;;AAAA,YAAY,WAAW;AAWrB;AADK,IAAM,MAAY,iBAAkC,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QACnF;AAAA,EAAC;AAAA;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,CACD;AACD,IAAI,cAAc;","names":[]}
@@ -0,0 +1,147 @@
1
+ 'use client';
2
+
3
+ import {
4
+ ChartGrid
5
+ } from "./chunk-TD2NGENS.js";
6
+ import {
7
+ ChartTooltip
8
+ } from "./chunk-YT2PR4LF.js";
9
+ import {
10
+ markFocus,
11
+ markMotion,
12
+ useChartEntrance,
13
+ useRoving
14
+ } from "./chunk-W2NESPKL.js";
15
+ import {
16
+ formatNumber,
17
+ niceDomain
18
+ } from "./chunk-I355QWHH.js";
19
+ import {
20
+ brand,
21
+ chartToken,
22
+ markEdge,
23
+ neutral,
24
+ neutralNeedsEdge
25
+ } from "./chunk-5EGRSN37.js";
26
+ import {
27
+ cn
28
+ } from "./chunk-DXRY7AS4.js";
29
+
30
+ // src/charts/scatter-chart.tsx
31
+ import { jsx, jsxs } from "react/jsx-runtime";
32
+ function ScatterChart({
33
+ points,
34
+ xLabel,
35
+ yLabel,
36
+ xDomain,
37
+ yDomain,
38
+ region,
39
+ regionLabel,
40
+ labels = true,
41
+ formatX = formatNumber,
42
+ formatY = formatNumber,
43
+ height = 320,
44
+ "aria-label": ariaLabel,
45
+ className
46
+ }) {
47
+ const xs = points.map((p) => p.x);
48
+ const ys = points.map((p) => p.y);
49
+ const xd = xDomain ? { min: xDomain[0], max: xDomain[1], ticks: niceDomain(xDomain[0], xDomain[1], 5).ticks.filter((t) => t >= xDomain[0] && t <= xDomain[1]) } : niceDomain(Math.min(...xs), Math.max(...xs), 5);
50
+ const yd = yDomain ? { min: yDomain[0], max: yDomain[1], ticks: niceDomain(yDomain[0], yDomain[1], 4).ticks.filter((t) => t >= yDomain[0] && t <= yDomain[1]) } : niceDomain(Math.min(...ys), Math.max(...ys), 4);
51
+ const px = (x) => (x - xd.min) / (xd.max - xd.min || 1) * 100;
52
+ const py = (y) => (1 - (y - yd.min) / (yd.max - yd.min || 1)) * 100;
53
+ const order = points.map((_, i) => i).sort((a, b) => Number(!!points[a].focus) - Number(!!points[b].focus));
54
+ const roving = useRoving(points.length);
55
+ const { ref, style } = useChartEntrance();
56
+ const edge = neutralNeedsEdge(0);
57
+ const describe = (p) => `${p.label}: ${xLabel ?? "x"} ${formatX(p.x)}, ${yLabel ?? "y"} ${formatY(p.y)}`;
58
+ return /* @__PURE__ */ jsxs("div", { ref, style, className: cn("flex w-full min-w-0 flex-col", className), children: [
59
+ yLabel && /* @__PURE__ */ jsx("span", { className: "pb-3 pl-10 sv-body-xs text-chart-label", children: yLabel }),
60
+ /* @__PURE__ */ jsx("div", { className: "pl-10 pb-6", children: /* @__PURE__ */ jsxs(
61
+ "div",
62
+ {
63
+ className: "relative",
64
+ style: { height },
65
+ role: "group",
66
+ "aria-label": ariaLabel ?? `Scatter chart${regionLabel ? `, ${regionLabel} highlighted` : ""}`,
67
+ ...roving.containerProps,
68
+ children: [
69
+ /* @__PURE__ */ jsx(ChartGrid, { ticks: yd.ticks, min: yd.min, max: yd.max, format: formatY }),
70
+ /* @__PURE__ */ jsx(ChartGrid, { axis: "x", ticks: xd.ticks, min: xd.min, max: xd.max, format: formatX }),
71
+ region && region.length > 2 && /* @__PURE__ */ jsx(
72
+ "svg",
73
+ {
74
+ viewBox: "0 0 100 100",
75
+ preserveAspectRatio: "none",
76
+ className: "absolute inset-0 size-full overflow-hidden motion-safe:animate-sv-chart-fade",
77
+ style: markMotion(0),
78
+ "aria-hidden": "true",
79
+ children: /* @__PURE__ */ jsx("polygon", { points: region.map(([x, y]) => `${px(x)},${py(y)}`).join(" "), fill: chartToken.highlight })
80
+ }
81
+ ),
82
+ order.map((i, k) => {
83
+ const p = points[i];
84
+ const flip = px(p.x) > 72;
85
+ return /* @__PURE__ */ jsxs(
86
+ "div",
87
+ {
88
+ role: "img",
89
+ "aria-label": describe(p),
90
+ ...roving.itemProps(i),
91
+ className: cn("absolute -translate-x-1/2 -translate-y-1/2 rounded-full p-1", markFocus),
92
+ style: { left: `${px(p.x)}%`, top: `${py(p.y)}%` },
93
+ children: [
94
+ /* @__PURE__ */ jsx(
95
+ "span",
96
+ {
97
+ className: cn("block rounded-full motion-safe:animate-sv-chart-pop", p.focus ? "size-3.5" : "size-2.5"),
98
+ style: {
99
+ background: p.focus ? brand(0) : neutral(0),
100
+ boxShadow: p.focus ? void 0 : markEdge(edge),
101
+ ...markMotion(k + 2, 0.8)
102
+ }
103
+ }
104
+ ),
105
+ labels && /* @__PURE__ */ jsx(
106
+ "span",
107
+ {
108
+ "aria-hidden": "true",
109
+ className: cn(
110
+ "pointer-events-none absolute top-1/2 -translate-y-1/2 whitespace-nowrap motion-safe:animate-sv-chart-fade",
111
+ flip ? "right-full pr-1" : "left-full pl-1",
112
+ p.focus ? "sv-body-sm font-medium text-chart-value" : "sv-body-xs text-chart-label"
113
+ ),
114
+ style: markMotion(k + 6, 0.8),
115
+ children: p.label
116
+ }
117
+ )
118
+ ]
119
+ },
120
+ p.label
121
+ );
122
+ }),
123
+ roving.active != null && /* @__PURE__ */ jsx(
124
+ ChartTooltip,
125
+ {
126
+ open: true,
127
+ x: px(points[roving.active].x),
128
+ y: py(points[roving.active].y) / 100 * height - 10,
129
+ title: points[roving.active].label,
130
+ rows: [
131
+ { label: xLabel ?? "x", value: formatX(points[roving.active].x) },
132
+ { label: yLabel ?? "y", value: formatY(points[roving.active].y) }
133
+ ]
134
+ }
135
+ )
136
+ ]
137
+ }
138
+ ) }),
139
+ xLabel && /* @__PURE__ */ jsx("span", { className: "pt-2 pl-10 text-right sv-body-xs text-chart-label", children: xLabel })
140
+ ] });
141
+ }
142
+ ScatterChart.displayName = "ScatterChart";
143
+
144
+ export {
145
+ ScatterChart
146
+ };
147
+ //# sourceMappingURL=chunk-GHXR4PCK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/charts/scatter-chart.tsx"],"sourcesContent":["'use client';\nimport { cn } from '@/lib/utils';\nimport { brand, neutral, neutralNeedsEdge, markEdge, chartToken } from './lib/series';\nimport { niceDomain, formatNumber } from './lib/scale';\nimport { useChartEntrance, useRoving, markMotion, markFocus } from './lib/use-chart';\nimport { ChartGrid } from './primitives/chart-grid';\nimport { ChartTooltip } from './primitives/chart-tooltip';\n\nexport interface ScatterPoint {\n label: string;\n x: number;\n y: number;\n /** The subject: warm, larger, labelled in medium weight. */\n focus?: boolean;\n}\n\nexport interface ScatterChartProps {\n points: ScatterPoint[];\n /** Axis titles, e.g. \"Latency, ms per token\" and \"Score\". */\n xLabel?: string;\n yLabel?: string;\n /** Fixed domains; otherwise fitted to the data on round ticks. */\n xDomain?: [number, number];\n yDomain?: [number, number];\n /** Tinted region in data coordinates (a polygon, e.g. the sweet-spot triangle). */\n region?: [number, number][];\n /** Accessible name of the region, read in the chart description. */\n regionLabel?: string;\n /** Print each point's label next to it. On by default. */\n labels?: boolean;\n formatX?: (v: number) => string;\n formatY?: (v: number) => string;\n /** Plot height in px. */\n height?: number;\n 'aria-label'?: string;\n className?: string;\n}\n\n/**\n * Cairn ScatterChart, a \"performance against cost\" plot: comparison points neutral, the\n * subject warm and bold, every point labelled where it sits, an optional tinted `region` (the\n * sweet spot) in `highlight`. Round points are true circles drawn in HTML so they never\n * stretch. Points pop in staggered; one tab stop, arrow keys walk the points.\n */\nexport function ScatterChart({\n points,\n xLabel,\n yLabel,\n xDomain,\n yDomain,\n region,\n regionLabel,\n labels = true,\n formatX = formatNumber,\n formatY = formatNumber,\n height = 320,\n 'aria-label': ariaLabel,\n className,\n}: ScatterChartProps) {\n const xs = points.map((p) => p.x);\n const ys = points.map((p) => p.y);\n const xd = xDomain ? { min: xDomain[0], max: xDomain[1], ticks: niceDomain(xDomain[0], xDomain[1], 5).ticks.filter((t) => t >= xDomain[0] && t <= xDomain[1]) } : niceDomain(Math.min(...xs), Math.max(...xs), 5);\n const yd = yDomain ? { min: yDomain[0], max: yDomain[1], ticks: niceDomain(yDomain[0], yDomain[1], 4).ticks.filter((t) => t >= yDomain[0] && t <= yDomain[1]) } : niceDomain(Math.min(...ys), Math.max(...ys), 4);\n const px = (x: number) => ((x - xd.min) / (xd.max - xd.min || 1)) * 100;\n const py = (y: number) => (1 - (y - yd.min) / (yd.max - yd.min || 1)) * 100;\n\n // Comparisons first, the subject last (on top), in a stable order for the keyboard.\n const order = points.map((_, i) => i).sort((a, b) => Number(!!points[a].focus) - Number(!!points[b].focus));\n const roving = useRoving(points.length);\n const { ref, style } = useChartEntrance<HTMLDivElement>();\n const edge = neutralNeedsEdge(0);\n\n const describe = (p: ScatterPoint) => `${p.label}: ${xLabel ?? 'x'} ${formatX(p.x)}, ${yLabel ?? 'y'} ${formatY(p.y)}`;\n\n return (\n <div ref={ref} style={style} className={cn('flex w-full min-w-0 flex-col', className)}>\n {yLabel && <span className=\"pb-3 pl-10 sv-body-xs text-chart-label\">{yLabel}</span>}\n <div className=\"pl-10 pb-6\">\n <div\n className=\"relative\"\n style={{ height }}\n role=\"group\"\n aria-label={ariaLabel ?? `Scatter chart${regionLabel ? `, ${regionLabel} highlighted` : ''}`}\n {...roving.containerProps}\n >\n <ChartGrid ticks={yd.ticks} min={yd.min} max={yd.max} format={formatY} />\n <ChartGrid axis=\"x\" ticks={xd.ticks} min={xd.min} max={xd.max} format={formatX} />\n {region && region.length > 2 && (\n <svg\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"none\"\n className=\"absolute inset-0 size-full overflow-hidden motion-safe:animate-sv-chart-fade\"\n style={markMotion(0)}\n aria-hidden=\"true\"\n >\n <polygon points={region.map(([x, y]) => `${px(x)},${py(y)}`).join(' ')} fill={chartToken.highlight} />\n </svg>\n )}\n {order.map((i, k) => {\n const p = points[i];\n const flip = px(p.x) > 72;\n return (\n <div\n key={p.label}\n role=\"img\"\n aria-label={describe(p)}\n {...roving.itemProps(i)}\n className={cn('absolute -translate-x-1/2 -translate-y-1/2 rounded-full p-1', markFocus)}\n style={{ left: `${px(p.x)}%`, top: `${py(p.y)}%` }}\n >\n <span\n className={cn('block rounded-full motion-safe:animate-sv-chart-pop', p.focus ? 'size-3.5' : 'size-2.5')}\n style={{\n background: p.focus ? brand(0) : neutral(0),\n boxShadow: p.focus ? undefined : markEdge(edge),\n ...markMotion(k + 2, 0.8),\n }}\n />\n {labels && (\n <span\n aria-hidden=\"true\"\n className={cn(\n 'pointer-events-none absolute top-1/2 -translate-y-1/2 whitespace-nowrap motion-safe:animate-sv-chart-fade',\n flip ? 'right-full pr-1' : 'left-full pl-1',\n p.focus ? 'sv-body-sm font-medium text-chart-value' : 'sv-body-xs text-chart-label'\n )}\n style={markMotion(k + 6, 0.8)}\n >\n {p.label}\n </span>\n )}\n </div>\n );\n })}\n {roving.active != null && (\n <ChartTooltip\n open\n x={px(points[roving.active].x)}\n y={(py(points[roving.active].y) / 100) * height - 10}\n title={points[roving.active].label}\n rows={[\n { label: xLabel ?? 'x', value: formatX(points[roving.active].x) },\n { label: yLabel ?? 'y', value: formatY(points[roving.active].y) },\n ]}\n />\n )}\n </div>\n </div>\n {xLabel && <span className=\"pt-2 pl-10 text-right sv-body-xs text-chart-label\">{xLabel}</span>}\n </div>\n );\n}\nScatterChart.displayName = 'ScatterChart';\n"],"mappings":"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","names":[]}
@@ -18,11 +18,11 @@ var TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
18
18
  className: cn(
19
19
  // min-h-6: the hit target floor (rule 9). A tab is small by nature and
20
20
  // this is the line under which it stops being usable on a touch screen.
21
- "inline-flex min-h-6 items-center rounded-pill px-3 py-1 sv-label-sm whitespace-nowrap",
22
- "text-on-surface-variant transition-[background-color,color] duration-150",
21
+ "inline-flex min-h-6 items-center px-3 py-1 sv-label-sm whitespace-nowrap",
22
+ "text-on-surface-variant transition-[background-color,color] duration-(--sv-sys-motion-duration-fast)",
23
23
  "hover:bg-surface-subtle active:bg-surface-muted",
24
24
  "data-[state=active]:bg-surface-muted data-[state=active]:text-on-surface",
25
- "outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
25
+ "outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
26
26
  "disabled:pointer-events-none disabled:opacity-40",
27
27
  className
28
28
  ),
@@ -35,7 +35,7 @@ var TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
35
35
  {
36
36
  ref,
37
37
  className: cn(
38
- "outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
38
+ "outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
39
39
  className
40
40
  ),
41
41
  ...props
@@ -49,4 +49,4 @@ export {
49
49
  TabsTrigger,
50
50
  TabsContent
51
51
  };
52
- //# sourceMappingURL=chunk-WHD5CSTB.js.map
52
+ //# sourceMappingURL=chunk-HC3SNY5O.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tabs/tabs.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { cn } from '@/lib/utils';\n\n/**\n * Cairn Tabs. Radix, and this one is not negotiable.\n *\n * `role=\"tablist\"` on a row of buttons is the most common accessibility lie in a\n * codebase: it announces a tab list to a screen reader and then ships none of\n * the behaviour that word promises, a single tab stop for the whole set, arrow\n * keys to move between tabs, Home/End, and the selected tab bound to its panel\n * by id. Writing the role without the behaviour is worse than writing no role at\n * all, because it tells the user a lie they will act on. Radix has all of it.\n *\n * The selected tab is marked by the surface ramp, not by hue and not by an\n * underline: `surface-muted` is the selected step, `surface-subtle` the hover\n * step, exactly as `sv-state` uses them elsewhere. One mechanism for state\n * across the system (BRAND.md, law 5).\n */\n\nexport const Tabs = TabsPrimitive.Root;\n\nexport const TabsList = React.forwardRef<\n React.ComponentRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List ref={ref} className={cn('inline-flex items-center gap-gap-xs', className)} {...props} />\n));\nTabsList.displayName = 'TabsList';\n\nexport const TabsTrigger = React.forwardRef<\n React.ComponentRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n // min-h-6: the hit target floor (rule 9). A tab is small by nature and\n // this is the line under which it stops being usable on a touch screen.\n 'inline-flex min-h-6 items-center px-3 py-1 sv-label-sm whitespace-nowrap',\n 'text-on-surface-variant transition-[background-color,color] duration-(--sv-sys-motion-duration-fast)',\n 'hover:bg-surface-subtle active:bg-surface-muted',\n 'data-[state=active]:bg-surface-muted data-[state=active]:text-on-surface',\n 'outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus',\n 'disabled:pointer-events-none disabled:opacity-40',\n className\n )}\n {...props}\n />\n));\nTabsTrigger.displayName = 'TabsTrigger';\n\nexport const TabsContent = React.forwardRef<\n React.ComponentRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n 'outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus',\n className\n )}\n {...props}\n />\n));\nTabsContent.displayName = 'TabsContent';\n"],"mappings":";;;;;AAEA,YAAY,WAAW;AACvB,YAAY,mBAAmB;AAyB7B;AANK,IAAM,OAAqB;AAE3B,IAAM,WAAiB,iBAG5B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B,oBAAe,oBAAd,EAAmB,KAAU,WAAW,GAAG,uCAAuC,SAAS,GAAI,GAAG,OAAO,CAC3G;AACD,SAAS,cAAc;AAEhB,IAAM,cAAoB,iBAG/B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAe;AAAA,EAAd;AAAA,IACC;AAAA,IACA,WAAW;AAAA;AAAA;AAAA,MAGT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,CACD;AACD,YAAY,cAAc;AAEnB,IAAM,cAAoB,iBAG/B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAe;AAAA,EAAd;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,CACD;AACD,YAAY,cAAc;","names":[]}
@@ -0,0 +1,76 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-DXRY7AS4.js";
4
+
5
+ // src/data-display/tag.tsx
6
+ import * as React from "react";
7
+ import { Check, X } from "@phosphor-icons/react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var Tag = React.forwardRef(({ className, onRemove, removeLabel, children, ...props }, ref) => /* @__PURE__ */ jsxs(
10
+ "span",
11
+ {
12
+ ref,
13
+ className: cn("inline-flex items-center gap-gap-xs bg-ghost px-2 py-1 sv-eyebrow text-on-surface whitespace-nowrap", onRemove && "pr-1", className),
14
+ ...props,
15
+ children: [
16
+ children,
17
+ onRemove ? /* @__PURE__ */ jsx(
18
+ "button",
19
+ {
20
+ type: "button",
21
+ onClick: onRemove,
22
+ "aria-label": removeLabel,
23
+ className: cn(
24
+ "inline-flex size-4 items-center justify-center transition-colors duration-(--sv-sys-motion-duration-fast) ease-standard hover:bg-ghost-hover",
25
+ "outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-focus"
26
+ ),
27
+ children: /* @__PURE__ */ jsx(X, { size: 12, weight: "bold", "aria-hidden": true })
28
+ }
29
+ ) : null
30
+ ]
31
+ }
32
+ ));
33
+ Tag.displayName = "Tag";
34
+ var Chip = React.forwardRef(
35
+ ({ className, selected = false, onSelectedChange, onClick, children, type, ...props }, ref) => /* @__PURE__ */ jsxs(
36
+ "button",
37
+ {
38
+ ref,
39
+ type: type ?? "button",
40
+ "aria-pressed": selected,
41
+ onClick: (e) => {
42
+ onClick?.(e);
43
+ if (!e.defaultPrevented) onSelectedChange?.(!selected);
44
+ },
45
+ className: cn(
46
+ "group/chip inline-flex h-8 items-center px-3 sv-label-sm whitespace-nowrap transition-colors duration-(--sv-sys-motion-duration-fast) ease-standard",
47
+ selected ? "bg-primary text-on-primary hover:bg-primary-hover" : "bg-ghost text-on-surface hover:bg-ghost-hover",
48
+ "outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
49
+ "disabled:pointer-events-none disabled:opacity-40",
50
+ className
51
+ ),
52
+ ...props,
53
+ children: [
54
+ /* @__PURE__ */ jsx(
55
+ "span",
56
+ {
57
+ "aria-hidden": true,
58
+ className: cn(
59
+ "inline-flex overflow-hidden transition-[width,margin] duration-(--sv-sys-motion-duration-fast) ease-standard motion-reduce:transition-none",
60
+ selected ? "mr-1 w-3.5" : "w-0"
61
+ ),
62
+ children: /* @__PURE__ */ jsx(Check, { size: 14, weight: "bold" })
63
+ }
64
+ ),
65
+ children
66
+ ]
67
+ }
68
+ )
69
+ );
70
+ Chip.displayName = "Chip";
71
+
72
+ export {
73
+ Tag,
74
+ Chip
75
+ };
76
+ //# sourceMappingURL=chunk-HJ7ICELB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/data-display/tag.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Check, X } from '@phosphor-icons/react';\nimport { cn } from '@/lib/utils';\n\n/**\n * Cairn Tag and Chip (22/11/2026).\n *\n * `Tag` is a label on a thing: the `eyebrow` role (12px, medium, the one sanctioned uppercase,\n * AGENTS.md rule 6) on the 5% ink veil, 8px by 4px inset, square. With `onRemove` it carries a\n * remove button, named by `removeLabel` (required then: the button is a glyph).\n *\n * `Chip` is a filter you switch: a real toggle button (`aria-pressed`), sentence case, the veil\n * stepping to 10% on hover. Selected, it takes the ink primary and a check slides in (the 150ms\n * token); Cairn keeps hue for messages only (rule 4), so selection is ink, never a colour.\n */\nexport interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {\n /** Show a remove button. */\n onRemove?: () => void;\n /** Accessible name of the remove button. Required with `onRemove`. */\n removeLabel?: string;\n}\n\nexport const Tag = React.forwardRef<HTMLSpanElement, TagProps>(({ className, onRemove, removeLabel, children, ...props }, ref) => (\n <span\n ref={ref}\n className={cn('inline-flex items-center gap-gap-xs bg-ghost px-2 py-1 sv-eyebrow text-on-surface whitespace-nowrap', onRemove && 'pr-1', className)}\n {...props}\n >\n {children}\n {onRemove ? (\n <button\n type=\"button\"\n onClick={onRemove}\n aria-label={removeLabel}\n className={cn(\n 'inline-flex size-4 items-center justify-center transition-colors duration-(--sv-sys-motion-duration-fast) ease-standard hover:bg-ghost-hover',\n 'outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-focus'\n )}\n >\n <X size={12} weight=\"bold\" aria-hidden />\n </button>\n ) : null}\n </span>\n));\nTag.displayName = 'Tag';\n\nexport interface ChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {\n selected?: boolean;\n onSelectedChange?: (selected: boolean) => void;\n}\n\nexport const Chip = React.forwardRef<HTMLButtonElement, ChipProps>(\n ({ className, selected = false, onSelectedChange, onClick, children, type, ...props }, ref) => (\n <button\n ref={ref}\n type={type ?? 'button'}\n aria-pressed={selected}\n onClick={(e) => {\n onClick?.(e);\n if (!e.defaultPrevented) onSelectedChange?.(!selected);\n }}\n className={cn(\n 'group/chip inline-flex h-8 items-center px-3 sv-label-sm whitespace-nowrap transition-colors duration-(--sv-sys-motion-duration-fast) ease-standard',\n selected ? 'bg-primary text-on-primary hover:bg-primary-hover' : 'bg-ghost text-on-surface hover:bg-ghost-hover',\n 'outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus',\n 'disabled:pointer-events-none disabled:opacity-40',\n className\n )}\n {...props}\n >\n <span\n aria-hidden\n className={cn(\n 'inline-flex overflow-hidden transition-[width,margin] duration-(--sv-sys-motion-duration-fast) ease-standard motion-reduce:transition-none',\n selected ? 'mr-1 w-3.5' : 'w-0'\n )}\n >\n <Check size={14} weight=\"bold\" />\n </span>\n {children}\n </button>\n )\n);\nChip.displayName = 'Chip';\n"],"mappings":";;;;;AAAA,YAAY,WAAW;AACvB,SAAS,OAAO,SAAS;AAsBvB,SAgBM,KAhBN;AADK,IAAM,MAAY,iBAAsC,CAAC,EAAE,WAAW,UAAU,aAAa,UAAU,GAAG,MAAM,GAAG,QACxH;AAAA,EAAC;AAAA;AAAA,IACC;AAAA,IACA,WAAW,GAAG,uGAAuG,YAAY,QAAQ,SAAS;AAAA,IACjJ,GAAG;AAAA,IAEH;AAAA;AAAA,MACA,WACC;AAAA,QAAC;AAAA;AAAA,UACC,MAAK;AAAA,UACL,SAAS;AAAA,UACT,cAAY;AAAA,UACZ,WAAW;AAAA,YACT;AAAA,YACA;AAAA,UACF;AAAA,UAEA,8BAAC,KAAE,MAAM,IAAI,QAAO,QAAO,eAAW,MAAC;AAAA;AAAA,MACzC,IACE;AAAA;AAAA;AACN,CACD;AACD,IAAI,cAAc;AAOX,IAAM,OAAa;AAAA,EACxB,CAAC,EAAE,WAAW,WAAW,OAAO,kBAAkB,SAAS,UAAU,MAAM,GAAG,MAAM,GAAG,QACrF;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAM,QAAQ;AAAA,MACd,gBAAc;AAAA,MACd,SAAS,CAAC,MAAM;AACd,kBAAU,CAAC;AACX,YAAI,CAAC,EAAE,iBAAkB,oBAAmB,CAAC,QAAQ;AAAA,MACvD;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA,WAAW,sDAAsD;AAAA,QACjE;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,eAAW;AAAA,YACX,WAAW;AAAA,cACT;AAAA,cACA,WAAW,eAAe;AAAA,YAC5B;AAAA,YAEA,8BAAC,SAAM,MAAM,IAAI,QAAO,QAAO;AAAA;AAAA,QACjC;AAAA,QACC;AAAA;AAAA;AAAA,EACH;AAEJ;AACA,KAAK,cAAc;","names":[]}
@@ -0,0 +1,40 @@
1
+ // src/charts/lib/scale.ts
2
+ function niceStep(range, count) {
3
+ const raw = range / Math.max(count, 1);
4
+ const pow = 10 ** Math.floor(Math.log10(raw || 1));
5
+ const f = raw / pow;
6
+ const m = f <= 1 ? 1 : f <= 2 ? 2 : f <= 2.5 ? 2.5 : f <= 5 ? 5 : 10;
7
+ return m * pow;
8
+ }
9
+ function niceDomain(min, max, count = 4) {
10
+ if (!Number.isFinite(min) || !Number.isFinite(max)) return { min: 0, max: 1, ticks: [0, 1] };
11
+ if (min === max) {
12
+ max = min + 1;
13
+ if (min > 0) min = 0;
14
+ }
15
+ const step = niceStep(max - min, count);
16
+ const lo = Math.floor(min / step) * step;
17
+ const hi = Math.ceil(max / step) * step;
18
+ const ticks = [];
19
+ for (let t = lo; t <= hi + step / 2; t += step) ticks.push(Number(t.toFixed(10)));
20
+ return { min: lo, max: hi, ticks };
21
+ }
22
+ function unit(min, max) {
23
+ const span = max - min || 1;
24
+ return (x) => (x - min) / span;
25
+ }
26
+ function formatNumber(v) {
27
+ if (!Number.isFinite(v)) return "";
28
+ return v.toLocaleString("en-US", { maximumFractionDigits: Math.abs(v) < 10 && !Number.isInteger(v) ? 1 : 1 });
29
+ }
30
+ var clamp = (x, lo, hi) => Math.min(Math.max(x, lo), hi);
31
+ var safe = (x) => Number.isFinite(x) ? x : 0;
32
+
33
+ export {
34
+ niceDomain,
35
+ unit,
36
+ formatNumber,
37
+ clamp,
38
+ safe
39
+ };
40
+ //# sourceMappingURL=chunk-I355QWHH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/charts/lib/scale.ts"],"sourcesContent":["/** Numeric helpers shared by the chart family. Pure functions, no DOM. */\n\n/** A \"nice\" step (1, 2, 2.5 or 5 times a power of ten) close to `range / count`. */\nfunction niceStep(range: number, count: number): number {\n const raw = range / Math.max(count, 1);\n const pow = 10 ** Math.floor(Math.log10(raw || 1));\n const f = raw / pow;\n const m = f <= 1 ? 1 : f <= 2 ? 2 : f <= 2.5 ? 2.5 : f <= 5 ? 5 : 10;\n return m * pow;\n}\n\n/** Round domain and ticks covering [min, max], about `count` intervals. */\nexport function niceDomain(min: number, max: number, count = 4): { min: number; max: number; ticks: number[] } {\n if (!Number.isFinite(min) || !Number.isFinite(max)) return { min: 0, max: 1, ticks: [0, 1] };\n if (min === max) {\n max = min + 1;\n if (min > 0) min = 0;\n }\n const step = niceStep(max - min, count);\n const lo = Math.floor(min / step) * step;\n const hi = Math.ceil(max / step) * step;\n const ticks: number[] = [];\n for (let t = lo; t <= hi + step / 2; t += step) ticks.push(Number(t.toFixed(10)));\n return { min: lo, max: hi, ticks };\n}\n\n/** Linear map from a domain to [0, 1]. */\nexport function unit(min: number, max: number) {\n const span = max - min || 1;\n return (x: number) => (x - min) / span;\n}\n\n/** Default number format: up to one decimal, locale grouping. */\nexport function formatNumber(v: number): string {\n if (!Number.isFinite(v)) return '';\n return v.toLocaleString('en-US', { maximumFractionDigits: Math.abs(v) < 10 && !Number.isInteger(v) ? 1 : 1 });\n}\n\n/** Clamp a value to [lo, hi]. */\nexport const clamp = (x: number, lo: number, hi: number) => Math.min(Math.max(x, lo), hi);\n\n/** Coerce non-finite values to 0. */\nexport const safe = (x: number) => (Number.isFinite(x) ? x : 0);\n"],"mappings":";AAGA,SAAS,SAAS,OAAe,OAAuB;AACtD,QAAM,MAAM,QAAQ,KAAK,IAAI,OAAO,CAAC;AACrC,QAAM,MAAM,MAAM,KAAK,MAAM,KAAK,MAAM,OAAO,CAAC,CAAC;AACjD,QAAM,IAAI,MAAM;AAChB,QAAM,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,MAAM,MAAM,KAAK,IAAI,IAAI;AAClE,SAAO,IAAI;AACb;AAGO,SAAS,WAAW,KAAa,KAAa,QAAQ,GAAkD;AAC7G,MAAI,CAAC,OAAO,SAAS,GAAG,KAAK,CAAC,OAAO,SAAS,GAAG,EAAG,QAAO,EAAE,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE;AAC3F,MAAI,QAAQ,KAAK;AACf,UAAM,MAAM;AACZ,QAAI,MAAM,EAAG,OAAM;AAAA,EACrB;AACA,QAAM,OAAO,SAAS,MAAM,KAAK,KAAK;AACtC,QAAM,KAAK,KAAK,MAAM,MAAM,IAAI,IAAI;AACpC,QAAM,KAAK,KAAK,KAAK,MAAM,IAAI,IAAI;AACnC,QAAM,QAAkB,CAAC;AACzB,WAAS,IAAI,IAAI,KAAK,KAAK,OAAO,GAAG,KAAK,KAAM,OAAM,KAAK,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;AAChF,SAAO,EAAE,KAAK,IAAI,KAAK,IAAI,MAAM;AACnC;AAGO,SAAS,KAAK,KAAa,KAAa;AAC7C,QAAM,OAAO,MAAM,OAAO;AAC1B,SAAO,CAAC,OAAe,IAAI,OAAO;AACpC;AAGO,SAAS,aAAa,GAAmB;AAC9C,MAAI,CAAC,OAAO,SAAS,CAAC,EAAG,QAAO;AAChC,SAAO,EAAE,eAAe,SAAS,EAAE,uBAAuB,KAAK,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC;AAC9G;AAGO,IAAM,QAAQ,CAAC,GAAW,IAAY,OAAe,KAAK,IAAI,KAAK,IAAI,GAAG,EAAE,GAAG,EAAE;AAGjF,IAAM,OAAO,CAAC,MAAe,OAAO,SAAS,CAAC,IAAI,IAAI;","names":[]}
@@ -0,0 +1,34 @@
1
+ 'use client';
2
+
3
+ import {
4
+ cn
5
+ } from "./chunk-DXRY7AS4.js";
6
+
7
+ // src/input/radio-group.tsx
8
+ import * as React from "react";
9
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var RadioGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, { ref, className: cn("grid gap-gap-sm", className), ...props }));
12
+ RadioGroup.displayName = "RadioGroup";
13
+ var RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
14
+ RadioGroupPrimitive.Item,
15
+ {
16
+ ref,
17
+ className: cn(
18
+ "peer inline-flex size-5 shrink-0 items-center justify-center rounded-full border border-on-surface-variant bg-surface",
19
+ "transition-colors duration-(--sv-sys-motion-duration-fast) ease-standard hover:border-on-surface data-[state=checked]:border-on-surface",
20
+ "outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
21
+ "disabled:cursor-not-allowed disabled:opacity-40",
22
+ className
23
+ ),
24
+ ...props,
25
+ children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "size-2.5 rounded-full bg-on-surface" })
26
+ }
27
+ ));
28
+ RadioGroupItem.displayName = "RadioGroupItem";
29
+
30
+ export {
31
+ RadioGroup,
32
+ RadioGroupItem
33
+ };
34
+ //# sourceMappingURL=chunk-I6D5E5ZD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/input/radio-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '@/lib/utils';\n\n/**\n * Cairn RadioGroup, on Radix RadioGroup: one tab stop for the set, arrow keys move and select,\n * `role=\"radiogroup\"` and `aria-checked` wired. Name the group (`aria-label` or\n * `aria-labelledby`) and label every item with a `Label`.\n *\n * The radio is one of the few true circles in Cairn, and its indicator is a dot, SV's motif.\n * The ring is drawn in `on-surface-variant` so the boundary clears 3:1 (WCAG 1.4.11).\n */\nexport const RadioGroup = React.forwardRef<\n React.ComponentRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <RadioGroupPrimitive.Root ref={ref} className={cn('grid gap-gap-sm', className)} {...props} />\n));\nRadioGroup.displayName = 'RadioGroup';\n\nexport const RadioGroupItem = React.forwardRef<\n React.ComponentRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'peer inline-flex size-5 shrink-0 items-center justify-center rounded-full border border-on-surface-variant bg-surface',\n 'transition-colors duration-(--sv-sys-motion-duration-fast) ease-standard hover:border-on-surface data-[state=checked]:border-on-surface',\n 'outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus',\n 'disabled:cursor-not-allowed disabled:opacity-40',\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"size-2.5 rounded-full bg-on-surface\" />\n </RadioGroupPrimitive.Item>\n));\nRadioGroupItem.displayName = 'RadioGroupItem';\n"],"mappings":";;;;;AAEA,YAAY,WAAW;AACvB,YAAY,yBAAyB;AAenC;AAJK,IAAM,aAAmB,iBAG9B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B,oBAAqB,0BAApB,EAAyB,KAAU,WAAW,GAAG,mBAAmB,SAAS,GAAI,GAAG,OAAO,CAC7F;AACD,WAAW,cAAc;AAElB,IAAM,iBAAuB,iBAGlC,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAqB;AAAA,EAApB;AAAA,IACC;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA,IAEJ,8BAAqB,+BAApB,EAA8B,WAAU,uCAAsC;AAAA;AACjF,CACD;AACD,eAAe,cAAc;","names":[]}
@@ -0,0 +1,49 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-DXRY7AS4.js";
4
+
5
+ // src/actions/link.tsx
6
+ import * as React from "react";
7
+ import { Slot, Slottable } from "@radix-ui/react-slot";
8
+ import { ArrowRight, ArrowUpRight } from "@phosphor-icons/react";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ var Link = React.forwardRef(
11
+ ({ className, arrow = false, tone = "ink", asChild, children, ...props }, ref) => {
12
+ const Comp = asChild ? Slot : "a";
13
+ const Glyph = arrow === "external" ? ArrowUpRight : ArrowRight;
14
+ return /* @__PURE__ */ jsxs(
15
+ Comp,
16
+ {
17
+ ref,
18
+ className: cn(
19
+ "group/link inline-flex items-center gap-1 underline-offset-4 decoration-1 hover:underline",
20
+ "transition-colors duration-(--sv-sys-motion-duration-fast) ease-standard",
21
+ tone === "ink" ? "text-on-surface" : "text-on-surface-variant hover:text-on-surface",
22
+ "outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
23
+ className
24
+ ),
25
+ ...props,
26
+ children: [
27
+ /* @__PURE__ */ jsx(Slottable, { children }),
28
+ arrow ? /* @__PURE__ */ jsx(
29
+ Glyph,
30
+ {
31
+ size: "1em",
32
+ "aria-hidden": true,
33
+ className: cn(
34
+ "shrink-0 transition-transform duration-(--sv-sys-motion-duration-slow) ease-emphasized motion-reduce:transition-none",
35
+ arrow === "external" ? "group-hover/link:-translate-y-0.5 group-hover/link:translate-x-0.5" : "group-hover/link:translate-x-1"
36
+ )
37
+ }
38
+ ) : null
39
+ ]
40
+ }
41
+ );
42
+ }
43
+ );
44
+ Link.displayName = "Link";
45
+
46
+ export {
47
+ Link
48
+ };
49
+ //# sourceMappingURL=chunk-IBY25I76.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/actions/link.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot, Slottable } from '@radix-ui/react-slot';\nimport { ArrowRight, ArrowUpRight } from '@phosphor-icons/react';\nimport { cn } from '@/lib/utils';\n\n/**\n * Cairn Link (22/11/2026). Ink, never a hue (rule 1): a link is told apart by\n * its underline on hover and, when it leads somewhere worth announcing, a trailing arrow that\n * slides on the 500ms curve, the slowest of the three motion speeds, so the arrow reads as a\n * gesture rather than a state change.\n *\n * `arrow=\"external\"` swaps the glyph for the diagonal one; it does not add `target`, which stays\n * the consumer's call (and, when used, wants `rel=\"noreferrer\"` and a word saying so). The arrow\n * is decorative: the link's words carry the meaning.\n */\n\nexport interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n /** Trailing arrow: `true` (forward) or `'external'` (diagonal). */\n arrow?: boolean | 'external';\n /** `ink` is the default; `muted` starts in the variant tone and steps to ink on hover. */\n tone?: 'ink' | 'muted';\n /** Render as the child element (a framework link) instead of an `<a>`. */\n asChild?: boolean;\n}\n\nexport const Link = React.forwardRef<HTMLAnchorElement, LinkProps>(\n ({ className, arrow = false, tone = 'ink', asChild, children, ...props }, ref) => {\n const Comp = asChild ? Slot : 'a';\n const Glyph = arrow === 'external' ? ArrowUpRight : ArrowRight;\n return (\n <Comp\n ref={ref}\n className={cn(\n 'group/link inline-flex items-center gap-1 underline-offset-4 decoration-1 hover:underline',\n 'transition-colors duration-(--sv-sys-motion-duration-fast) ease-standard',\n tone === 'ink' ? 'text-on-surface' : 'text-on-surface-variant hover:text-on-surface',\n 'outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus',\n className\n )}\n {...props}\n >\n <Slottable>{children}</Slottable>\n {arrow ? (\n <Glyph\n size=\"1em\"\n aria-hidden\n className={cn(\n 'shrink-0 transition-transform duration-(--sv-sys-motion-duration-slow) ease-emphasized motion-reduce:transition-none',\n arrow === 'external'\n ? 'group-hover/link:-translate-y-0.5 group-hover/link:translate-x-0.5'\n : 'group-hover/link:translate-x-1'\n )}\n />\n ) : null}\n </Comp>\n );\n }\n);\nLink.displayName = 'Link';\n"],"mappings":";;;;;AAAA,YAAY,WAAW;AACvB,SAAS,MAAM,iBAAiB;AAChC,SAAS,YAAY,oBAAoB;AA4BnC,SAWE,KAXF;AALC,IAAM,OAAa;AAAA,EACxB,CAAC,EAAE,WAAW,QAAQ,OAAO,OAAO,OAAO,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AAChF,UAAM,OAAO,UAAU,OAAO;AAC9B,UAAM,QAAQ,UAAU,aAAa,eAAe;AACpD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,UACA,SAAS,QAAQ,oBAAoB;AAAA,UACrC;AAAA,UACA;AAAA,QACF;AAAA,QACC,GAAG;AAAA,QAEJ;AAAA,8BAAC,aAAW,UAAS;AAAA,UACpB,QACC;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,eAAW;AAAA,cACX,WAAW;AAAA,gBACT;AAAA,gBACA,UAAU,aACN,uEACA;AAAA,cACN;AAAA;AAAA,UACF,IACE;AAAA;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;AACA,KAAK,cAAc;","names":[]}
@@ -0,0 +1,19 @@
1
+ import {
2
+ FIELD
3
+ } from "./chunk-RB6DUG3M.js";
4
+ import {
5
+ cn
6
+ } from "./chunk-DXRY7AS4.js";
7
+
8
+ // src/input/textarea.tsx
9
+ import * as React from "react";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var Textarea = React.forwardRef(
12
+ ({ className, rows = 3, ...props }, ref) => /* @__PURE__ */ jsx("textarea", { ref, rows, className: cn(FIELD, "resize-y p-inset-md", className), ...props })
13
+ );
14
+ Textarea.displayName = "Textarea";
15
+
16
+ export {
17
+ Textarea
18
+ };
19
+ //# sourceMappingURL=chunk-IGOTX5DA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/input/textarea.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '@/lib/utils';\nimport { FIELD } from './field-styles';\n\n/**\n * Cairn Textarea. `Input`'s multi-line sibling: same field look (`field-styles.ts`), 16px inset.\n */\nexport type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nexport const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, rows = 3, ...props }, ref) => (\n <textarea ref={ref} rows={rows} className={cn(FIELD, 'resize-y p-inset-md', className)} {...props} />\n )\n);\nTextarea.displayName = 'Textarea';\n"],"mappings":";;;;;;;;AAAA,YAAY,WAAW;AAWnB;AAFG,IAAM,WAAiB;AAAA,EAC5B,CAAC,EAAE,WAAW,OAAO,GAAG,GAAG,MAAM,GAAG,QAClC,oBAAC,cAAS,KAAU,MAAY,WAAW,GAAG,OAAO,uBAAuB,SAAS,GAAI,GAAG,OAAO;AAEvG;AACA,SAAS,cAAc;","names":[]}
@@ -20,7 +20,7 @@ var PopoverContent = React.forwardRef(({ className, align = "start", sideOffset
20
20
  sideOffset,
21
21
  collisionPadding,
22
22
  className: cn(
23
- "z-50 w-72 rounded-control border border-outline bg-surface p-inset-sm text-on-surface shadow-overlay",
23
+ "z-50 w-72 border border-outline bg-surface p-inset-sm text-on-surface shadow-overlay",
24
24
  "outline-none",
25
25
  className
26
26
  ),
@@ -36,4 +36,4 @@ export {
36
36
  PopoverClose,
37
37
  PopoverContent
38
38
  };
39
- //# sourceMappingURL=chunk-WHJ4JVO6.js.map
39
+ //# sourceMappingURL=chunk-JI4UZW6G.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/overlay/popover.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport { cn } from '@/lib/utils';\n\n/**\n * Cairn Popover. Radix, for the positioning, which is never as simple as it looks.\n *\n * The hand-rolled version is always the same: absolute coordinates, then a\n * `Math.min/max` to keep the card on screen. It works until the trigger is near\n * an edge and the card should flip to the other side, or the page scrolls under\n * it, or the trigger sits inside its own scroll container. Radix's collision\n * handling covers all of that, and brings what the maths never does: focus moves\n * into the panel on open and returns to the trigger on close, Escape dismisses,\n * an outside click dismisses, and the trigger is wired to the panel with\n * `aria-expanded` / `aria-controls`.\n *\n * `Anchor` is exported because a popover does not always hang off a button: a\n * pin dropped on a page has a position but no trigger element.\n *\n * Square, elevation AND a hairline, deliberately: the shadow\n * carries the lift on the light theme, the hairline is what separates the surface\n * on the dark one, where a black shadow does nothing.\n */\n\nexport const Popover = PopoverPrimitive.Root;\nexport const PopoverTrigger = PopoverPrimitive.Trigger;\nexport const PopoverAnchor = PopoverPrimitive.Anchor;\nexport const PopoverClose = PopoverPrimitive.Close;\n\nexport interface PopoverContentProps\n extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {\n /**\n * Where the portal mounts. Defaults to `document.body`.\n *\n * Override it whenever the theme lives on a subtree rather than on the\n * document, a scoped overlay root, a `data-theme` wrapper, a shadow host.\n * Portalled to the body by default, the panel escapes that subtree and renders\n * with none of its tokens: correct behaviour, no styling, and nothing in the\n * console to say why.\n */\n container?: HTMLElement | null;\n}\n\nexport const PopoverContent = React.forwardRef<\n React.ComponentRef<typeof PopoverPrimitive.Content>,\n PopoverContentProps\n>(({ className, align = 'start', sideOffset = 8, collisionPadding = 12, container, ...props }, ref) => (\n <PopoverPrimitive.Portal container={container ?? undefined}>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n collisionPadding={collisionPadding}\n className={cn(\n 'z-50 w-72 border border-outline bg-surface p-inset-sm text-on-surface shadow-overlay',\n 'outline-none',\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = 'PopoverContent';\n"],"mappings":";;;;;AAEA,YAAY,WAAW;AACvB,YAAY,sBAAsB;AA+C9B;AAxBG,IAAM,UAA2B;AACjC,IAAM,iBAAkC;AACxC,IAAM,gBAAiC;AACvC,IAAM,eAAgC;AAgBtC,IAAM,iBAAuB,iBAGlC,CAAC,EAAE,WAAW,QAAQ,SAAS,aAAa,GAAG,mBAAmB,IAAI,WAAW,GAAG,MAAM,GAAG,QAC7F,oBAAkB,yBAAjB,EAAwB,WAAW,aAAa,QAC/C;AAAA,EAAkB;AAAA,EAAjB;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,MACT;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA;AACN,GACF,CACD;AACD,eAAe,cAAc;","names":[]}