@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
@@ -1,8 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  BarChart
4
- } from "../chunk-S4HVXD6Z.js";
5
- import "../chunk-G2XJK244.js";
4
+ } from "../chunk-VDKJLIEZ.js";
5
+ import "../chunk-TD2NGENS.js";
6
+ import "../chunk-ZI4AJKES.js";
7
+ import "../chunk-YT2PR4LF.js";
8
+ import "../chunk-W2NESPKL.js";
9
+ import "../chunk-I355QWHH.js";
10
+ import "../chunk-5EGRSN37.js";
6
11
  import "../chunk-DXRY7AS4.js";
7
12
  export {
8
13
  BarChart
@@ -0,0 +1,47 @@
1
+ import * as React from 'react';
2
+
3
+ interface BenchmarkColumn {
4
+ label: string;
5
+ /** The subject column: tinted in `highlight` and outlined in `highlight-edge`. */
6
+ focus?: boolean;
7
+ }
8
+ interface BenchmarkRow {
9
+ label: string;
10
+ /** Muted sub-label after the row label, e.g. the evaluation setting. */
11
+ note?: string;
12
+ /** One value per column; `null` prints a dash read as "not reported". */
13
+ values: (number | string | null)[];
14
+ }
15
+ interface BenchmarkGroup {
16
+ /** Small uppercase tag introducing the group. */
17
+ tag?: string;
18
+ rows: BenchmarkRow[];
19
+ /** One merged cell from column `from` to the last column, across every row of the group. */
20
+ unsupported?: {
21
+ from: number;
22
+ label: string;
23
+ };
24
+ }
25
+ interface BenchmarkTableProps extends React.HTMLAttributes<HTMLDivElement> {
26
+ columns: BenchmarkColumn[];
27
+ groups: BenchmarkGroup[];
28
+ /** Header of the row-label column. */
29
+ rowHeader?: string;
30
+ /** Format for numeric values. */
31
+ format?: (v: number) => string;
32
+ /** Table caption, visually hidden unless `showCaption`. */
33
+ caption?: string;
34
+ showCaption?: boolean;
35
+ }
36
+ /**
37
+ * Cairn BenchmarkTable, a comparison table: a real `<table>` on hairline rows, the
38
+ * subject column tinted and outlined in orange from header to last row, groups opened by a small
39
+ * uppercase tag, a muted sub-label after each row name, tabular numerals, and an optional merged
40
+ * cell for a capability a column does not have. Scrolls horizontally on narrow screens.
41
+ */
42
+ declare function BenchmarkTable({ columns, groups, rowHeader, format, caption, showCaption, className, ...props }: BenchmarkTableProps): React.JSX.Element;
43
+ declare namespace BenchmarkTable {
44
+ var displayName: string;
45
+ }
46
+
47
+ export { type BenchmarkColumn, type BenchmarkGroup, type BenchmarkRow, BenchmarkTable, type BenchmarkTableProps };
@@ -0,0 +1,10 @@
1
+ import {
2
+ BenchmarkTable
3
+ } from "../chunk-ENL5WNFM.js";
4
+ import "../chunk-HJ7ICELB.js";
5
+ import "../chunk-5EGRSN37.js";
6
+ import "../chunk-DXRY7AS4.js";
7
+ export {
8
+ BenchmarkTable
9
+ };
10
+ //# sourceMappingURL=benchmark-table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+
3
+ interface DeltaProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ /** The change, pre-formatted ("+7%") or a number (its sign sets the direction). */
5
+ value: string | number;
6
+ /** Direction of the change; derived from a numeric `value` when omitted. */
7
+ direction?: 'up' | 'down' | 'flat';
8
+ /** Whether the change is good news. Defaults: up positive, down negative. Invert it for a
9
+ * metric where lower is better (latency, cost). */
10
+ sentiment?: 'positive' | 'negative' | 'neutral';
11
+ format?: (v: number) => string;
12
+ }
13
+ /**
14
+ * Cairn Delta: a trend badge. The meaning sits in a message container (`success` / `error`
15
+ * container with its on-* text, rule 4), and never on hue alone: the arrow glyph and the signed
16
+ * value say the direction too. Square, the eyebrow-free body size.
17
+ */
18
+ declare function Delta({ value, direction, sentiment, format, className, ...props }: DeltaProps): React.JSX.Element;
19
+ declare namespace Delta {
20
+ var displayName: string;
21
+ }
22
+
23
+ export { Delta, type DeltaProps };
@@ -0,0 +1,8 @@
1
+ import {
2
+ Delta
3
+ } from "../chunk-OIAZH5EU.js";
4
+ import "../chunk-DXRY7AS4.js";
5
+ export {
6
+ Delta
7
+ };
8
+ //# sourceMappingURL=delta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+
3
+ interface DotMatrixPart {
4
+ label: string;
5
+ value: number;
6
+ /** The subject part: warm. Without any flag, the first part is the subject. */
7
+ focus?: boolean;
8
+ }
9
+ interface DotMatrixProps extends React.HTMLAttributes<HTMLDivElement> {
10
+ /** Parts of the whole; each fills its share of the dots in order. */
11
+ parts?: DotMatrixPart[];
12
+ /** Shortcut for one share in percent (0 to 100). */
13
+ value?: number;
14
+ /** Label of `value` in the legend and the summary. */
15
+ label?: string;
16
+ /** Total the parts are a share of; defaults to their sum, or 100 with `value`. */
17
+ total?: number;
18
+ cols?: number;
19
+ rows?: number;
20
+ /** Dot diameter in px. */
21
+ dot?: number;
22
+ /** Space between dots in px. */
23
+ gap?: number;
24
+ legend?: boolean;
25
+ format?: (v: number) => string;
26
+ }
27
+ /**
28
+ * Cairn DotMatrix, the waffle chart in SV's dots: a grid of true circles (10 by 10 by default,
29
+ * one dot per percent) filled in order by each part's share, the subject warm, the rest neutral,
30
+ * the remainder on the empty track. Dots pop in row by row. One `img` with a text summary; the
31
+ * legend prints every value.
32
+ */
33
+ declare function DotMatrix({ parts: partsProp, value, label, total: totalProp, cols, rows, dot, gap, legend, format, className, ...props }: DotMatrixProps): React.JSX.Element;
34
+ declare namespace DotMatrix {
35
+ var displayName: string;
36
+ }
37
+
38
+ export { DotMatrix, type DotMatrixPart, type DotMatrixProps };
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import {
3
+ DotMatrix
4
+ } from "../chunk-EXEJG4IG.js";
5
+ import "../chunk-ZI4AJKES.js";
6
+ import "../chunk-W2NESPKL.js";
7
+ import "../chunk-I355QWHH.js";
8
+ import "../chunk-5EGRSN37.js";
9
+ import "../chunk-DXRY7AS4.js";
10
+ export {
11
+ DotMatrix
12
+ };
13
+ //# sourceMappingURL=dot-matrix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+
3
+ interface HeatmapProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /** Row labels (e.g. weekdays). An empty string leaves a row unlabelled. */
5
+ rows: string[];
6
+ /** Column labels (e.g. weeks). Empty strings keep the axis sparse. */
7
+ cols: string[];
8
+ /** `values[row][col]`; `null` is an empty cell. */
9
+ values: (number | null)[][];
10
+ /** `both` (default): size and tone grow with the value. `tone`: equal dots, tone only. `size`: one tone, size only. */
11
+ encode?: 'both' | 'tone' | 'size';
12
+ /** Cell pitch in px. */
13
+ cell?: number;
14
+ /** Value at full size and tone; defaults to the data maximum. */
15
+ max?: number;
16
+ /** Show the scale legend under the grid. */
17
+ legend?: boolean;
18
+ format?: (v: number) => string;
19
+ /** Accessible name of the grid. */
20
+ 'aria-label'?: string;
21
+ }
22
+ /**
23
+ * Cairn Heatmap, built from SV dots: a grid of true circles where size and tone (the `main`
24
+ * ramp, `sys.chart.sequential`) grow with the value, a contribution-calendar reading. Empty
25
+ * cells are a small dot on the track. Dots pop in column by column. One tab stop: arrow keys
26
+ * move in two dimensions, hover and focus show the same tooltip.
27
+ */
28
+ declare function Heatmap({ rows, cols, values, encode, cell, max: maxProp, legend, format, 'aria-label': ariaLabel, className, ...props }: HeatmapProps): React.JSX.Element;
29
+ declare namespace Heatmap {
30
+ var displayName: string;
31
+ }
32
+
33
+ export { Heatmap, type HeatmapProps };
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import {
3
+ Heatmap
4
+ } from "../chunk-DRJWJ7KG.js";
5
+ import "../chunk-YT2PR4LF.js";
6
+ import "../chunk-W2NESPKL.js";
7
+ import "../chunk-I355QWHH.js";
8
+ import "../chunk-5EGRSN37.js";
9
+ import "../chunk-DXRY7AS4.js";
10
+ export {
11
+ Heatmap
12
+ };
13
+ //# sourceMappingURL=heatmap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,17 @@
1
+ /** Numeric helpers shared by the chart family. Pure functions, no DOM. */
2
+ /** Round domain and ticks covering [min, max], about `count` intervals. */
3
+ declare function niceDomain(min: number, max: number, count?: number): {
4
+ min: number;
5
+ max: number;
6
+ ticks: number[];
7
+ };
8
+ /** Linear map from a domain to [0, 1]. */
9
+ declare function unit(min: number, max: number): (x: number) => number;
10
+ /** Default number format: up to one decimal, locale grouping. */
11
+ declare function formatNumber(v: number): string;
12
+ /** Clamp a value to [lo, hi]. */
13
+ declare const clamp: (x: number, lo: number, hi: number) => number;
14
+ /** Coerce non-finite values to 0. */
15
+ declare const safe: (x: number) => number;
16
+
17
+ export { clamp, formatNumber, niceDomain, safe, unit };
@@ -0,0 +1,15 @@
1
+ import {
2
+ clamp,
3
+ formatNumber,
4
+ niceDomain,
5
+ safe,
6
+ unit
7
+ } from "../../chunk-I355QWHH.js";
8
+ export {
9
+ clamp,
10
+ formatNumber,
11
+ niceDomain,
12
+ safe,
13
+ unit
14
+ };
15
+ //# sourceMappingURL=scale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,55 +1,87 @@
1
1
  /**
2
2
  * Cairn data-viz colour, the single place a series gets a colour.
3
3
  *
4
- * Rule: grayscale first. A single series is `ink`; a comparison series is `muted`.
5
- * Reach for hue only when categories are genuinely unordered (`categorical`, capped
6
- * at 4) or encode magnitude (`sequential`, single-hue). Never hand-pick a hex, every
7
- * value here is a `sys.chart.*` token resolved at runtime via its CSS variable, so a
8
- * theme swap (light↔dark) recolours the charts for free.
4
+ * The rule is "us versus them": the SUBJECT of a chart (the focal series, the focal point, the
5
+ * focal column) is warm, `brand(i)`; everything it is compared with is neutral, `neutral(i)`
6
+ * (cream on light, steel on dark, navy on black). Hue marks the subject, it never decorates.
7
+ * A chart with no declared focus treats its first series as the subject.
8
+ *
9
+ * Every value here is a `sys.chart.*` CSS variable, so the dark and black themes recolour the
10
+ * charts for free. Components never name a hex, never read `--sv-sys-chart-*` directly and
11
+ * never use `currentColor` on a mark: they call the helpers below.
12
+ *
13
+ * Values printed ON a fill take the index-matched `brandOn(i)` / `neutralOn(i)` foreground;
14
+ * each pair is measured AA in every theme (see sys.chart.json). A fill under 3:1 against the
15
+ * surface carries its information through a printed value (WCAG 1.4.11) or, when the value is
16
+ * hidden, through `markEdge()`.
9
17
  */
10
- /** Semantic chart roles → their CSS variable. The single place a chart hue is named;
11
- * components consume these, never the raw `--sv-sys-chart-*` var. `accent` is the one
12
- * opt-in hue (the signature accent) a fixed-shape chart may promote a value to. */
18
+ /** Named chart roles. `value` = text next to a mark, `label` = ticks, categories, footnotes. */
13
19
  declare const chartToken: {
14
- readonly ink: "var(--sv-sys-chart-ink)";
15
- readonly muted: "var(--sv-sys-chart-muted)";
16
- readonly markEdge: "var(--sv-sys-chart-mark-edge)";
17
- readonly accent: "var(--sv-sys-chart-categorical-2)";
18
- readonly grid: "var(--sv-sys-chart-grid)";
19
- readonly axis: "var(--sv-sys-chart-axis)";
20
- readonly track: "var(--sv-sys-chart-track)";
20
+ readonly value: string;
21
+ readonly label: string;
22
+ readonly axis: string;
23
+ readonly grid: string;
24
+ readonly track: string;
25
+ readonly highlight: string;
26
+ readonly highlightEdge: string;
27
+ readonly onHighlight: string;
28
+ readonly markEdge: string;
29
+ readonly tintBase: string;
21
30
  };
22
- declare const CATEGORICAL_MAX: 4;
23
- /** Chart line-mark weights, in px. The single stroke scale for the family: every line mark
24
- * (sparkline, area line, trend line) uses `line`; reference/guide lines use `guide`. Radial
25
- * gauges (Ring) set their own arc thickness. Lives here beside `chartToken` so the whole
26
- * chart visual language (colour + stroke) has one home. */
31
+ declare const BRAND_MAX = 5;
32
+ declare const NEUTRAL_MAX = 5;
33
+ /** Fill of the `i`-th focal series (0-based). brand-1 is the default subject. */
34
+ declare function brand(i?: number): string;
35
+ /** AA foreground for a value printed on `brand(i)`. */
36
+ declare function brandOn(i?: number): string;
37
+ /** Fill of the `i`-th comparison series. neutral-1 and 2 are marks, 3 to 5 are tints. */
38
+ declare function neutral(i?: number): string;
39
+ /** AA foreground for a value printed on `neutral(i)`. */
40
+ declare function neutralOn(i?: number): string;
41
+ /** Alias of `brand`: read as "the focus colour". */
42
+ declare const focus: typeof brand;
43
+ declare function brandNeedsEdge(i?: number): boolean;
44
+ declare function neutralNeedsEdge(i?: number): boolean;
45
+ /** The resolved paint of one series: fill, the foreground for a value on it, and whether the
46
+ * fill needs a keyline when its value is not printed. */
47
+ interface SeriesPaint {
48
+ fill: string;
49
+ on: string;
50
+ pale: boolean;
51
+ focus: boolean;
52
+ }
53
+ /**
54
+ * Assign paints to a list of series: focal series take brand-1, 2... in order,
55
+ * comparison series take neutral-1, 2... in order. When nothing is flagged, the first series is
56
+ * the subject. `mode: 'brand'` paints every series warm (unordered categories with no subject,
57
+ * capped at five hues, a sixth wraps and must be told apart by its label).
58
+ */
59
+ declare function paintSeries(series: readonly {
60
+ focus?: boolean;
61
+ }[], mode?: 'focus' | 'brand'): SeriesPaint[];
62
+ /** A paler step of `color` for stacked extra layers (the maj@k pattern): mixed toward the
63
+ * theme-invariant `tint-base`, so it stays paler than its base and `brandOn` only gains
64
+ * contrast on it. `step` 1 is the first layer above the base. */
65
+ declare function tint(color: string, step: number): string;
66
+ declare function sequentialIndex(i: number, n: number): number;
67
+ declare function sequential(i: number, n: number): string;
68
+ declare function sequentialNeedsEdge(i: number, n: number): boolean;
69
+ /** The keyline itself, or `undefined` when the mark carries its own contrast or its value is
70
+ * printed. Feed straight to a style `boxShadow`. */
71
+ declare function markEdge(needed: boolean): string | undefined;
72
+ /** Chart line weights, in px: `line` for every trend line, `guide` for reference rules,
73
+ * `focus` for the focal series of a multi-series line chart. */
27
74
  declare const chartStroke: {
28
75
  readonly line: 2;
29
76
  readonly guide: 1;
77
+ readonly focus: 2.5;
30
78
  };
31
- /** The mono tone of a chart mark → its `sys.chart.*` colour. `ink` = the single/active series,
32
- * `muted` = a comparison/secondary series, `accent` = the one opt-in hue (the signature accent).
33
- * The single definition of the `tone` option, shared by every chart in the family. */
34
- declare function toneFill(tone: 'ink' | 'muted' | 'accent'): string;
35
- /** Colour for category `i` (0-based). Wraps past the cap, pair with a label/pattern. */
36
- declare function categorical(i: number): string;
37
- /** WCAG-AA foreground for text drawn on `categorical(i)`. */
38
- declare function categoricalOn(i: number): string;
39
- /** Colour for the `i`-th of `n` steps on the single-hue magnitude ramp. */
40
- declare function sequential(i: number, n: number): string;
41
- /** WCAG-AA foreground for text drawn on `sequential(i, n)`. */
42
- declare function sequentialOn(i: number, n: number): string;
43
- /** True when `categorical(i)` needs a keyline. */
44
- declare function categoricalNeedsEdge(i: number): boolean;
45
- /** True when `sequential(i, n)` needs a keyline. */
46
- declare function sequentialNeedsEdge(i: number, n: number): boolean;
47
- /** True when a mono `tone` fill needs a keyline. None do: `muted` moved to neutral.500 and now
48
- * clears 3:1 on its own (4.5:1 light / 3.7:1 dark), so mono marks draw no border at all. Kept as
49
- * a function rather than inlined, so a future tone that IS pale has one place to declare it. */
50
- declare function toneNeedsEdge(_tone: 'ink' | 'muted' | 'accent'): boolean;
51
- /** The keyline itself, or `undefined` when the mark carries its own contrast. Feed straight to
52
- * a style `boxShadow`, so a component never hand-writes the inset shadow. */
53
- declare function markEdge(needed: boolean): string | undefined;
79
+ type Tone = 'focus' | 'neutral' | 'value' | 'ink' | 'muted' | 'accent';
80
+ /** Mono tone of a single mark: `focus` (brand-1, the default), `neutral` (neutral-1), `value`
81
+ * (the text colour, for a quiet monochrome mark). Legacy `ink`, `muted`, `accent` map to
82
+ * value, neutral and focus. */
83
+ declare function toneFill(tone?: Tone): string;
84
+ /** True when a mono `tone` fill needs a keyline on paper when its value is hidden. */
85
+ declare function toneNeedsEdge(tone?: Tone): boolean;
54
86
 
55
- export { CATEGORICAL_MAX, categorical, categoricalNeedsEdge, categoricalOn, chartStroke, chartToken, markEdge, sequential, sequentialNeedsEdge, sequentialOn, toneFill, toneNeedsEdge };
87
+ export { BRAND_MAX, NEUTRAL_MAX, type SeriesPaint, type Tone, brand, brandNeedsEdge, brandOn, chartStroke, chartToken, focus, markEdge, neutral, neutralNeedsEdge, neutralOn, paintSeries, sequential, sequentialIndex, sequentialNeedsEdge, tint, toneFill, toneNeedsEdge };
@@ -1,28 +1,42 @@
1
1
  import {
2
- CATEGORICAL_MAX,
3
- categorical,
4
- categoricalNeedsEdge,
5
- categoricalOn,
2
+ BRAND_MAX,
3
+ NEUTRAL_MAX,
4
+ brand,
5
+ brandNeedsEdge,
6
+ brandOn,
6
7
  chartStroke,
7
8
  chartToken,
9
+ focus,
8
10
  markEdge,
11
+ neutral,
12
+ neutralNeedsEdge,
13
+ neutralOn,
14
+ paintSeries,
9
15
  sequential,
16
+ sequentialIndex,
10
17
  sequentialNeedsEdge,
11
- sequentialOn,
18
+ tint,
12
19
  toneFill,
13
20
  toneNeedsEdge
14
- } from "../../chunk-G2XJK244.js";
21
+ } from "../../chunk-5EGRSN37.js";
15
22
  export {
16
- CATEGORICAL_MAX,
17
- categorical,
18
- categoricalNeedsEdge,
19
- categoricalOn,
23
+ BRAND_MAX,
24
+ NEUTRAL_MAX,
25
+ brand,
26
+ brandNeedsEdge,
27
+ brandOn,
20
28
  chartStroke,
21
29
  chartToken,
30
+ focus,
22
31
  markEdge,
32
+ neutral,
33
+ neutralNeedsEdge,
34
+ neutralOn,
35
+ paintSeries,
23
36
  sequential,
37
+ sequentialIndex,
24
38
  sequentialNeedsEdge,
25
- sequentialOn,
39
+ tint,
26
40
  toneFill,
27
41
  toneNeedsEdge
28
42
  };
@@ -0,0 +1,48 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * Entrance gate. Chart marks animate with `motion-safe:animate-sv-chart-*` and read
5
+ * `animationPlayState` from `--sv-chart-play`. The server renders `running` (a chart without
6
+ * JavaScript is a finished chart); on mount, a chart below the fold is paused until it scrolls
7
+ * into view, so the entrance is seen rather than spent offscreen.
8
+ */
9
+ declare function useChartEntrance<T extends HTMLElement>(): {
10
+ ref: React.RefObject<T | null>;
11
+ style: React.CSSProperties;
12
+ };
13
+ /** Inline style for one animated mark: play state from the gate, staggered delay from the
14
+ * motion token (`delay.short` scaled by `step`). */
15
+ declare function markMotion(step?: number, scale?: number): React.CSSProperties;
16
+ /**
17
+ * Roving focus over a chart's marks: one tab stop for the whole chart, arrow keys move between
18
+ * marks, Home / End jump to the ends. Hover and focus drive the same `active` index, so the
19
+ * tooltip a pointer sees is the tooltip a keyboard sees. With `cols`, Up / Down move by row.
20
+ */
21
+ declare function useRoving(count: number, opts?: {
22
+ cols?: number;
23
+ }): {
24
+ active: number | null;
25
+ setActive: React.Dispatch<React.SetStateAction<number | null>>;
26
+ itemProps: (i: number) => {
27
+ ref: (el: HTMLElement | null) => void;
28
+ tabIndex: number;
29
+ onKeyDown: (e: React.KeyboardEvent) => void;
30
+ onFocus: () => void;
31
+ onBlur: () => void;
32
+ onMouseEnter: () => void;
33
+ };
34
+ containerProps: {
35
+ onMouseLeave: () => void;
36
+ };
37
+ };
38
+ /** The focus outline every focusable mark carries (rule 9). */
39
+ declare const markFocus = "outline-hidden focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus";
40
+ /** Width of an element in px, tracked with a ResizeObserver (0 before mount). Charts use it to
41
+ * drop value labels that would collide when the marks get too narrow; the values stay in the
42
+ * tooltip and the accessible names. */
43
+ declare function useWidth<T extends HTMLElement>(): {
44
+ ref: React.RefObject<T | null>;
45
+ width: number;
46
+ };
47
+
48
+ export { markFocus, markMotion, useChartEntrance, useRoving, useWidth };
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import {
3
+ markFocus,
4
+ markMotion,
5
+ useChartEntrance,
6
+ useRoving,
7
+ useWidth
8
+ } from "../../chunk-W2NESPKL.js";
9
+ export {
10
+ markFocus,
11
+ markMotion,
12
+ useChartEntrance,
13
+ useRoving,
14
+ useWidth
15
+ };
16
+ //# sourceMappingURL=use-chart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,38 +1,71 @@
1
1
  import * as React from 'react';
2
+ import { Tone } from './lib/series.js';
2
3
 
4
+ interface LineSeries {
5
+ label: string;
6
+ values: (number | null)[];
7
+ /** The subject: warm and drawn on top. Without any flag, the first series is the subject. */
8
+ focus?: boolean;
9
+ }
3
10
  interface LineChartProps {
4
- /** Values, or `{ label, value }` points. */
5
- data: (number | {
11
+ /** X labels, one per value. */
12
+ categories?: string[];
13
+ series?: LineSeries[];
14
+ /** Legacy single-series input: values or `{ label, value }` points. */
15
+ data?: (number | {
6
16
  label?: string;
7
17
  value: number;
8
18
  })[];
9
- /** Fill the area under the line. Defaults to filled for block, unfilled for inline. */
10
- area?: boolean;
11
- /** Compact, fixed-width inline mode (a word-sized sparkline) vs the responsive block chart. */
12
- inline?: boolean;
13
- /** Inline width (px). Block mode stretches to its container. */
14
- width?: number;
19
+ /** Fill under the lines: `focus` fills the subject only, `all` every series. `true` = `focus`. */
20
+ area?: boolean | 'focus' | 'all';
21
+ /** Series name and last value printed at the right end of each line. On by default. */
22
+ endLabels?: boolean;
23
+ /** Point markers on the subject. Defaults on up to 16 points. */
24
+ dots?: boolean;
25
+ /** Dashed value grid with tick labels. */
26
+ grid?: boolean;
27
+ /** Start the value axis at zero instead of fitting the data. */
28
+ zero?: boolean;
29
+ /** Legend above the chart (off by default: the end labels name the lines). */
30
+ legend?: boolean;
31
+ palette?: 'focus' | 'brand';
32
+ format?: (v: number) => string;
33
+ /** Plot height in px. */
15
34
  height?: number;
16
- /** Block mode only: index of the point to mark with a guideline + callout dot. */
35
+ /** Index to mark permanently with a guide and a label. */
17
36
  markerIndex?: number;
18
37
  markerLabel?: string;
19
- /** Mono tone of the line/fill: `ink` (default), `muted`, or `accent`. From `sys.chart.*`. */
20
- tone?: 'ink' | 'muted' | 'accent';
21
- /** Explicit colour (a token / CSS colour), overrides `tone`. */
38
+ /** Compact word-sized sparkline (legacy; prefer `Sparkline`). */
39
+ inline?: boolean;
40
+ /** Inline width in px. */
41
+ width?: number;
42
+ /** Inline / single-series tone. */
43
+ tone?: Tone;
44
+ /** @deprecated Explicit colour; use `tone`. */
22
45
  color?: string;
23
- /** Stroke weight in px. Defaults to the shared chart line weight. */
24
46
  strokeWidth?: number;
47
+ 'aria-label'?: string;
25
48
  className?: string;
26
49
  }
27
50
  /**
28
- * Cairn LineChart, the one trend mark: a smooth line with an optional flat area fill, rendered
29
- * either as a responsive block (with an optional marker) or as a compact inline sparkline
30
- * (`inline`). Grayscale-first: colour comes from the chart tokens (`tone`), never `currentColor`,
31
- * and line marks share `chartStroke`. Zero-dependency SVG, renders server-side (Astro-safe).
51
+ * Cairn LineChart: the subject line warm and on top, comparison lines neutral,
52
+ * each line named at its end with its last value (direct labels, no legend hunt), a dashed
53
+ * hairline grid, no frame. `area` fills under the subject: that is the AreaChart. Lines wipe in
54
+ * from the left, points pop in staggered (motion tokens, off under reduced motion). One tab
55
+ * stop: arrow keys walk the x positions, hover and focus show the same tooltip.
32
56
  */
33
- declare function LineChart({ data, area, inline, width, height, markerIndex, markerLabel, tone, color, strokeWidth, className, }: LineChartProps): React.JSX.Element | null;
57
+ declare function LineChart(props: LineChartProps): React.JSX.Element;
34
58
  declare namespace LineChart {
35
59
  var displayName: string;
36
60
  }
61
+ type AreaChartProps = Omit<LineChartProps, 'area'> & {
62
+ area?: 'focus' | 'all';
63
+ };
64
+ /** Cairn AreaChart: the LineChart with its area filled (`focus` by default, or `all`). A named
65
+ * entry point, not a second implementation. */
66
+ declare function AreaChart({ area, ...props }: AreaChartProps): React.JSX.Element;
67
+ declare namespace AreaChart {
68
+ var displayName: string;
69
+ }
37
70
 
38
- export { LineChart, type LineChartProps };
71
+ export { AreaChart, type AreaChartProps, LineChart, type LineChartProps, type LineSeries };
@@ -1,10 +1,19 @@
1
+ "use client";
1
2
  import {
3
+ AreaChart,
2
4
  LineChart
3
- } from "../chunk-OWIUMX76.js";
5
+ } from "../chunk-YP766ABA.js";
6
+ import "../chunk-ML3IXSZV.js";
4
7
  import "../chunk-27MWE4F5.js";
5
- import "../chunk-G2XJK244.js";
8
+ import "../chunk-TD2NGENS.js";
9
+ import "../chunk-ZI4AJKES.js";
10
+ import "../chunk-YT2PR4LF.js";
11
+ import "../chunk-W2NESPKL.js";
12
+ import "../chunk-I355QWHH.js";
13
+ import "../chunk-5EGRSN37.js";
6
14
  import "../chunk-DXRY7AS4.js";
7
15
  export {
16
+ AreaChart,
8
17
  LineChart
9
18
  };
10
19
  //# sourceMappingURL=line-chart.js.map