@silverpoint/react 0.3.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 (623) hide show
  1. package/README.md +146 -2
  2. package/dist/activity-grid.js +3 -3
  3. package/dist/area-chart.js +3 -3
  4. package/dist/bar-chart.js +3 -3
  5. package/dist/beeswarm-chart.d.ts +10 -0
  6. package/dist/beeswarm-chart.js +11 -0
  7. package/dist/beeswarm-chart.js.map +1 -0
  8. package/dist/box-plot-chart.d.ts +10 -0
  9. package/dist/box-plot-chart.js +11 -0
  10. package/dist/box-plot-chart.js.map +1 -0
  11. package/dist/bubble-chart.js +3 -3
  12. package/dist/bullet-chart.js +3 -3
  13. package/dist/bump-chart.d.ts +10 -0
  14. package/dist/bump-chart.js +11 -0
  15. package/dist/bump-chart.js.map +1 -0
  16. package/dist/candlestick-chart.js +3 -3
  17. package/dist/chord-ring.js +3 -3
  18. package/dist/{chunk-WZZA2IGN.js → chunk-25BXOLN7.js} +2 -2
  19. package/dist/chunk-26PNMZ4N.js +13 -0
  20. package/dist/chunk-26PNMZ4N.js.map +1 -0
  21. package/dist/chunk-27ILYIHO.js +56 -0
  22. package/dist/chunk-27ILYIHO.js.map +1 -0
  23. package/dist/chunk-2HDGFK6O.js +13 -0
  24. package/dist/chunk-2HDGFK6O.js.map +1 -0
  25. package/dist/chunk-2JLWAB4R.js +32 -0
  26. package/dist/chunk-2JLWAB4R.js.map +1 -0
  27. package/dist/{chunk-I72JGA6Q.js → chunk-2NBHAILL.js} +2 -2
  28. package/dist/chunk-2TDJIHGW.js +39 -0
  29. package/dist/chunk-2TDJIHGW.js.map +1 -0
  30. package/dist/{chunk-GUKXFITX.js → chunk-3MQJA564.js} +2 -2
  31. package/dist/{chunk-LSA5XU52.js → chunk-3UD7DUEM.js} +2 -2
  32. package/dist/chunk-3ZO7VEHS.js +59 -0
  33. package/dist/chunk-3ZO7VEHS.js.map +1 -0
  34. package/dist/{chunk-MC7N4KQA.js → chunk-45FUDQOF.js} +2 -2
  35. package/dist/chunk-4CZQHTP5.js +16 -0
  36. package/dist/chunk-4CZQHTP5.js.map +1 -0
  37. package/dist/{chunk-FHX2HWN3.js → chunk-4QE7BQ7J.js} +2 -2
  38. package/dist/chunk-5GNJS3Y3.js +13 -0
  39. package/dist/chunk-5GNJS3Y3.js.map +1 -0
  40. package/dist/chunk-5HX2UUIR.js +28 -0
  41. package/dist/chunk-5HX2UUIR.js.map +1 -0
  42. package/dist/chunk-5KS4JD5W.js +13 -0
  43. package/dist/chunk-5KS4JD5W.js.map +1 -0
  44. package/dist/chunk-5M4FS37X.js +13 -0
  45. package/dist/chunk-5M4FS37X.js.map +1 -0
  46. package/dist/chunk-65LAAEJZ.js +66 -0
  47. package/dist/chunk-65LAAEJZ.js.map +1 -0
  48. package/dist/chunk-6BZ2752M.js +13 -0
  49. package/dist/chunk-6BZ2752M.js.map +1 -0
  50. package/dist/chunk-6K4HSGXJ.js +16 -0
  51. package/dist/chunk-6K4HSGXJ.js.map +1 -0
  52. package/dist/{chunk-GSJYA76X.js → chunk-6Y2V7WIZ.js} +2 -2
  53. package/dist/chunk-74DQNJH2.js +16 -0
  54. package/dist/chunk-74DQNJH2.js.map +1 -0
  55. package/dist/chunk-75EKOWPE.js +16 -0
  56. package/dist/chunk-75EKOWPE.js.map +1 -0
  57. package/dist/chunk-7777FL4L.js +16 -0
  58. package/dist/chunk-7777FL4L.js.map +1 -0
  59. package/dist/{chunk-JPTK2AAT.js → chunk-7SZATSRO.js} +2 -2
  60. package/dist/chunk-AKOPH5MK.js +13 -0
  61. package/dist/chunk-AKOPH5MK.js.map +1 -0
  62. package/dist/chunk-AL6AXLYE.js +16 -0
  63. package/dist/chunk-AL6AXLYE.js.map +1 -0
  64. package/dist/{chunk-5FKONGCL.js → chunk-ANAAYEMQ.js} +2 -2
  65. package/dist/{chunk-MYKZWY2E.js → chunk-ANIMFO5C.js} +2 -2
  66. package/dist/{chunk-CWFUPKSS.js → chunk-ARN5BO7U.js} +2 -2
  67. package/dist/{chunk-6M4REUJE.js → chunk-B2TSWCF5.js} +2 -2
  68. package/dist/chunk-BKZ64BZS.js +31 -0
  69. package/dist/chunk-BKZ64BZS.js.map +1 -0
  70. package/dist/{chunk-X2F56RYM.js → chunk-CAFLXUSL.js} +2 -2
  71. package/dist/chunk-CJBZWJTN.js +21 -0
  72. package/dist/chunk-CJBZWJTN.js.map +1 -0
  73. package/dist/{chunk-G7C4CH54.js → chunk-CT2MHXSG.js} +2 -2
  74. package/dist/{chunk-RMIIFPXA.js → chunk-D65O5YJZ.js} +2 -2
  75. package/dist/{chunk-U3LT444G.js → chunk-DL3FIRSO.js} +2 -2
  76. package/dist/{chunk-AEU6UHVG.js → chunk-DOFLNIRZ.js} +2 -2
  77. package/dist/{chunk-DO4VUIUU.js → chunk-DX6FUHGB.js} +14 -11
  78. package/dist/chunk-DX6FUHGB.js.map +1 -0
  79. package/dist/chunk-DXFQNNRN.js +13 -0
  80. package/dist/chunk-DXFQNNRN.js.map +1 -0
  81. package/dist/{chunk-FZ46YSJA.js → chunk-DXNSJNEQ.js} +2 -2
  82. package/dist/{chunk-NWK6VBCJ.js → chunk-E6LPQWVM.js} +2 -2
  83. package/dist/{chunk-KVOBNPDN.js → chunk-ELNPDHOC.js} +2 -2
  84. package/dist/chunk-ENGG7T3F.js +13 -0
  85. package/dist/chunk-ENGG7T3F.js.map +1 -0
  86. package/dist/{chunk-ZOB6BH7H.js → chunk-EOMPQ2TX.js} +2 -2
  87. package/dist/{chunk-RIGQTEKW.js → chunk-EPTFI4BT.js} +2 -2
  88. package/dist/chunk-EX7AYOOW.js +13 -0
  89. package/dist/chunk-EX7AYOOW.js.map +1 -0
  90. package/dist/chunk-F27PSDYP.js +13 -0
  91. package/dist/chunk-F27PSDYP.js.map +1 -0
  92. package/dist/chunk-F6H7NPSP.js +13 -0
  93. package/dist/chunk-F6H7NPSP.js.map +1 -0
  94. package/dist/chunk-FI6FQRFE.js +13 -0
  95. package/dist/chunk-FI6FQRFE.js.map +1 -0
  96. package/dist/chunk-G3PPUBI5.js +79 -0
  97. package/dist/chunk-G3PPUBI5.js.map +1 -0
  98. package/dist/{chunk-ESFN6FJY.js → chunk-GEC5QL7C.js} +2 -2
  99. package/dist/chunk-GU5HJU7M.js +13 -0
  100. package/dist/chunk-GU5HJU7M.js.map +1 -0
  101. package/dist/{chunk-WFO6BICV.js → chunk-HHQI7CLZ.js} +2 -2
  102. package/dist/{chunk-PRVJKYEQ.js → chunk-IHIE2DK3.js} +2 -2
  103. package/dist/{chunk-2JWLXUY5.js → chunk-INYDD4FD.js} +2 -2
  104. package/dist/chunk-IQQMPYCN.js +13 -0
  105. package/dist/chunk-IQQMPYCN.js.map +1 -0
  106. package/dist/chunk-JIVM4CSU.js +13 -0
  107. package/dist/chunk-JIVM4CSU.js.map +1 -0
  108. package/dist/chunk-JMVH54WP.js +13 -0
  109. package/dist/chunk-JMVH54WP.js.map +1 -0
  110. package/dist/chunk-JRYGGBE6.js +20 -0
  111. package/dist/chunk-JRYGGBE6.js.map +1 -0
  112. package/dist/chunk-JUVBTR6L.js +66 -0
  113. package/dist/chunk-JUVBTR6L.js.map +1 -0
  114. package/dist/{chunk-NWRCFNYB.js → chunk-JY6ZMAYT.js} +2 -2
  115. package/dist/{chunk-6EFRIK7Q.js → chunk-K2JDM6SF.js} +2 -2
  116. package/dist/{chunk-RAATAHXZ.js → chunk-KMNQTGBN.js} +2 -2
  117. package/dist/{chunk-SQ6GWXDK.js → chunk-M2NKE3GQ.js} +12 -1
  118. package/dist/chunk-M2NKE3GQ.js.map +1 -0
  119. package/dist/{chunk-C3NHZ4N5.js → chunk-M4F272PN.js} +2 -2
  120. package/dist/{chunk-OP2WE7MA.js → chunk-M5R4CNKU.js} +2 -2
  121. package/dist/chunk-MEHYWMG7.js +13 -0
  122. package/dist/chunk-MEHYWMG7.js.map +1 -0
  123. package/dist/{chunk-VKNGQ4NW.js → chunk-MOO3XIC2.js} +2 -2
  124. package/dist/chunk-MTXREPUM.js +16 -0
  125. package/dist/chunk-MTXREPUM.js.map +1 -0
  126. package/dist/{chunk-UOOHQAJU.js → chunk-NNHM6OWA.js} +2 -2
  127. package/dist/{chunk-3U3Z5U6H.js → chunk-NUGUZMON.js} +2 -2
  128. package/dist/chunk-O2FNTA5U.js +13 -0
  129. package/dist/chunk-O2FNTA5U.js.map +1 -0
  130. package/dist/chunk-O4WI7LKM.js +13 -0
  131. package/dist/chunk-O4WI7LKM.js.map +1 -0
  132. package/dist/chunk-OB65KGYJ.js +13 -0
  133. package/dist/chunk-OB65KGYJ.js.map +1 -0
  134. package/dist/{chunk-TSQWTDBK.js → chunk-PXHT6PD5.js} +2 -2
  135. package/dist/chunk-Q6VFHFX3.js +16 -0
  136. package/dist/chunk-Q6VFHFX3.js.map +1 -0
  137. package/dist/{chunk-ZBSCLF56.js → chunk-QEHVGOJA.js} +16 -10
  138. package/dist/chunk-QEHVGOJA.js.map +1 -0
  139. package/dist/{chunk-QRYI7BEO.js → chunk-QEODW4IP.js} +2 -2
  140. package/dist/{chunk-3BREGZ7C.js → chunk-QJLESIWB.js} +2 -2
  141. package/dist/{chunk-WMU6O6KZ.js → chunk-QKBT4P5O.js} +2 -2
  142. package/dist/chunk-QOQTPSPV.js +13 -0
  143. package/dist/chunk-QOQTPSPV.js.map +1 -0
  144. package/dist/{chunk-FBJLA3P7.js → chunk-QRQ4RFCB.js} +4 -2
  145. package/dist/chunk-QRQ4RFCB.js.map +1 -0
  146. package/dist/chunk-QVCRJZMJ.js +13 -0
  147. package/dist/chunk-QVCRJZMJ.js.map +1 -0
  148. package/dist/{chunk-OD6N2ATZ.js → chunk-R66XACVV.js} +3 -2
  149. package/dist/chunk-R66XACVV.js.map +1 -0
  150. package/dist/{chunk-46S63XYT.js → chunk-RE4ZOKKK.js} +6 -1
  151. package/dist/chunk-RE4ZOKKK.js.map +1 -0
  152. package/dist/chunk-RFWELGCX.js +20 -0
  153. package/dist/chunk-RFWELGCX.js.map +1 -0
  154. package/dist/{chunk-6NXL245Z.js → chunk-S2A6EJSX.js} +2 -2
  155. package/dist/{chunk-6S6VKQ3E.js → chunk-SZHYT257.js} +2 -2
  156. package/dist/{chunk-JWCVL7VE.js → chunk-T52NYUKC.js} +2 -2
  157. package/dist/{chunk-M56MDRNT.js → chunk-TTIRFQ2W.js} +2 -2
  158. package/dist/{chunk-3WUPWJP2.js → chunk-TZGI7DMH.js} +2 -2
  159. package/dist/{chunk-67FND3TB.js → chunk-UA3V7LBC.js} +2 -2
  160. package/dist/chunk-UAWJIVQK.js +68 -0
  161. package/dist/chunk-UAWJIVQK.js.map +1 -0
  162. package/dist/chunk-UOINAVEH.js +32 -0
  163. package/dist/chunk-UOINAVEH.js.map +1 -0
  164. package/dist/chunk-VGX3GSOT.js +33 -0
  165. package/dist/chunk-VGX3GSOT.js.map +1 -0
  166. package/dist/chunk-VNVWUIVN.js +13 -0
  167. package/dist/chunk-VNVWUIVN.js.map +1 -0
  168. package/dist/{chunk-ART7CMBL.js → chunk-VQRXVACI.js} +2 -2
  169. package/dist/chunk-XOO5OQHZ.js +13 -0
  170. package/dist/chunk-XOO5OQHZ.js.map +1 -0
  171. package/dist/chunk-XPLCIRDZ.js +14 -0
  172. package/dist/chunk-XPLCIRDZ.js.map +1 -0
  173. package/dist/{chunk-TH6Q4E7C.js → chunk-XZX2HZI7.js} +2 -2
  174. package/dist/chunk-YHCAIRT3.js +13 -0
  175. package/dist/chunk-YHCAIRT3.js.map +1 -0
  176. package/dist/chunk-YO2P3ALL.js +13 -0
  177. package/dist/chunk-YO2P3ALL.js.map +1 -0
  178. package/dist/{chunk-OAH7AEGE.js → chunk-YYI6AXAT.js} +2 -2
  179. package/dist/chunk-ZGGWGSDF.js +17 -0
  180. package/dist/chunk-ZGGWGSDF.js.map +1 -0
  181. package/dist/{chunk-43AIURD6.js → chunk-ZLI7RM6W.js} +2 -2
  182. package/dist/{chunk-NA6K372D.js → chunk-ZMZYJ6I7.js} +2 -2
  183. package/dist/{chunk-J3E6IUUQ.js → chunk-ZVZMIGX4.js} +2 -2
  184. package/dist/composed-chart.js +3 -3
  185. package/dist/connected-scatter-chart.d.ts +10 -0
  186. package/dist/connected-scatter-chart.js +11 -0
  187. package/dist/connected-scatter-chart.js.map +1 -0
  188. package/dist/contour-chart.d.ts +10 -0
  189. package/dist/contour-chart.js +11 -0
  190. package/dist/contour-chart.js.map +1 -0
  191. package/dist/coxcomb-chart.js +3 -3
  192. package/dist/dashboard.js +1 -1
  193. package/dist/delaunay-chart.d.ts +10 -0
  194. package/dist/delaunay-chart.js +11 -0
  195. package/dist/delaunay-chart.js.map +1 -0
  196. package/dist/density-bin-chart.d.ts +10 -0
  197. package/dist/density-bin-chart.js +11 -0
  198. package/dist/density-bin-chart.js.map +1 -0
  199. package/dist/diverging-bar-chart.d.ts +10 -0
  200. package/dist/diverging-bar-chart.js +11 -0
  201. package/dist/diverging-bar-chart.js.map +1 -0
  202. package/dist/donut-chart.js +3 -3
  203. package/dist/drillable-C_86b56V.d.ts +7 -0
  204. package/dist/dumbbell-chart.d.ts +10 -0
  205. package/dist/dumbbell-chart.js +11 -0
  206. package/dist/dumbbell-chart.js.map +1 -0
  207. package/dist/ecdf-chart.d.ts +10 -0
  208. package/dist/ecdf-chart.js +11 -0
  209. package/dist/ecdf-chart.js.map +1 -0
  210. package/dist/error-bar-chart.d.ts +10 -0
  211. package/dist/error-bar-chart.js +11 -0
  212. package/dist/error-bar-chart.js.map +1 -0
  213. package/dist/funnel-chart.js +3 -3
  214. package/dist/gauge-arc.js +3 -3
  215. package/dist/heatmap-chart.js +3 -3
  216. package/dist/histogram-chart.d.ts +10 -0
  217. package/dist/histogram-chart.js +11 -0
  218. package/dist/histogram-chart.js.map +1 -0
  219. package/dist/index.d.ts +34 -2
  220. package/dist/index.js +148 -36
  221. package/dist/index.js.map +1 -1
  222. package/dist/interval-chart.d.ts +10 -0
  223. package/dist/interval-chart.js +11 -0
  224. package/dist/interval-chart.js.map +1 -0
  225. package/dist/kpi-card.js +3 -3
  226. package/dist/line-chart.js +3 -3
  227. package/dist/lollipop-chart.d.ts +10 -0
  228. package/dist/lollipop-chart.js +11 -0
  229. package/dist/lollipop-chart.js.map +1 -0
  230. package/dist/marimekko-chart.d.ts +10 -0
  231. package/dist/marimekko-chart.js +11 -0
  232. package/dist/marimekko-chart.js.map +1 -0
  233. package/dist/meter-chart.js +3 -3
  234. package/dist/network-chart.d.ts +10 -0
  235. package/dist/network-chart.js +11 -0
  236. package/dist/network-chart.js.map +1 -0
  237. package/dist/orbit-chart.js +3 -3
  238. package/dist/overlay-CMxteajk.d.ts +10 -0
  239. package/dist/parallel-coordinates-chart.d.ts +10 -0
  240. package/dist/parallel-coordinates-chart.js +11 -0
  241. package/dist/parallel-coordinates-chart.js.map +1 -0
  242. package/dist/polar-bar-chart.js +3 -3
  243. package/dist/polar-line-chart.d.ts +10 -0
  244. package/dist/polar-line-chart.js +11 -0
  245. package/dist/polar-line-chart.js.map +1 -0
  246. package/dist/polar-scatter-chart.d.ts +10 -0
  247. package/dist/polar-scatter-chart.js +11 -0
  248. package/dist/polar-scatter-chart.js.map +1 -0
  249. package/dist/pyramid-chart.js +3 -3
  250. package/dist/radar-chart.js +3 -3
  251. package/dist/radial-arc-group.js +3 -3
  252. package/dist/radial-rings.js +3 -3
  253. package/dist/range-band-chart.js +3 -3
  254. package/dist/ridgeline-chart.d.ts +10 -0
  255. package/dist/ridgeline-chart.js +11 -0
  256. package/dist/ridgeline-chart.js.map +1 -0
  257. package/dist/sankey-chart.js +3 -3
  258. package/dist/scatter-chart.js +3 -3
  259. package/dist/server/activity-grid.js +2 -1
  260. package/dist/server/activity-grid.js.map +1 -1
  261. package/dist/server/area-chart.js +2 -1
  262. package/dist/server/area-chart.js.map +1 -1
  263. package/dist/server/bar-chart.js +2 -1
  264. package/dist/server/bar-chart.js.map +1 -1
  265. package/dist/server/beeswarm-chart.d.ts +19 -0
  266. package/dist/server/beeswarm-chart.js +12 -0
  267. package/dist/server/beeswarm-chart.js.map +1 -0
  268. package/dist/server/box-plot-chart.d.ts +19 -0
  269. package/dist/server/box-plot-chart.js +12 -0
  270. package/dist/server/box-plot-chart.js.map +1 -0
  271. package/dist/server/bubble-chart.js +2 -1
  272. package/dist/server/bubble-chart.js.map +1 -1
  273. package/dist/server/bullet-chart.js +2 -1
  274. package/dist/server/bullet-chart.js.map +1 -1
  275. package/dist/server/bump-chart.d.ts +19 -0
  276. package/dist/server/bump-chart.js +12 -0
  277. package/dist/server/bump-chart.js.map +1 -0
  278. package/dist/server/candlestick-chart.js +2 -1
  279. package/dist/server/candlestick-chart.js.map +1 -1
  280. package/dist/server/chord-ring.js +2 -1
  281. package/dist/server/chord-ring.js.map +1 -1
  282. package/dist/server/composed-chart.js +2 -1
  283. package/dist/server/composed-chart.js.map +1 -1
  284. package/dist/server/connected-scatter-chart.d.ts +19 -0
  285. package/dist/server/connected-scatter-chart.js +12 -0
  286. package/dist/server/connected-scatter-chart.js.map +1 -0
  287. package/dist/server/contour-chart.d.ts +19 -0
  288. package/dist/server/contour-chart.js +12 -0
  289. package/dist/server/contour-chart.js.map +1 -0
  290. package/dist/server/coxcomb-chart.js +2 -1
  291. package/dist/server/coxcomb-chart.js.map +1 -1
  292. package/dist/server/dashboard.js +1 -1
  293. package/dist/server/delaunay-chart.d.ts +19 -0
  294. package/dist/server/delaunay-chart.js +12 -0
  295. package/dist/server/delaunay-chart.js.map +1 -0
  296. package/dist/server/density-bin-chart.d.ts +19 -0
  297. package/dist/server/density-bin-chart.js +12 -0
  298. package/dist/server/density-bin-chart.js.map +1 -0
  299. package/dist/server/diverging-bar-chart.d.ts +19 -0
  300. package/dist/server/diverging-bar-chart.js +12 -0
  301. package/dist/server/diverging-bar-chart.js.map +1 -0
  302. package/dist/server/donut-chart.js +2 -1
  303. package/dist/server/donut-chart.js.map +1 -1
  304. package/dist/server/dumbbell-chart.d.ts +19 -0
  305. package/dist/server/dumbbell-chart.js +12 -0
  306. package/dist/server/dumbbell-chart.js.map +1 -0
  307. package/dist/server/ecdf-chart.d.ts +19 -0
  308. package/dist/server/ecdf-chart.js +12 -0
  309. package/dist/server/ecdf-chart.js.map +1 -0
  310. package/dist/server/error-bar-chart.d.ts +19 -0
  311. package/dist/server/error-bar-chart.js +12 -0
  312. package/dist/server/error-bar-chart.js.map +1 -0
  313. package/dist/server/funnel-chart.js +2 -1
  314. package/dist/server/funnel-chart.js.map +1 -1
  315. package/dist/server/gauge-arc.js +2 -1
  316. package/dist/server/gauge-arc.js.map +1 -1
  317. package/dist/server/heatmap-chart.js +2 -1
  318. package/dist/server/heatmap-chart.js.map +1 -1
  319. package/dist/server/histogram-chart.d.ts +19 -0
  320. package/dist/server/histogram-chart.js +12 -0
  321. package/dist/server/histogram-chart.js.map +1 -0
  322. package/dist/server/interval-chart.d.ts +19 -0
  323. package/dist/server/interval-chart.js +12 -0
  324. package/dist/server/interval-chart.js.map +1 -0
  325. package/dist/server/kpi-card.js +2 -1
  326. package/dist/server/kpi-card.js.map +1 -1
  327. package/dist/server/line-chart.js +2 -1
  328. package/dist/server/line-chart.js.map +1 -1
  329. package/dist/server/lollipop-chart.d.ts +19 -0
  330. package/dist/server/lollipop-chart.js +12 -0
  331. package/dist/server/lollipop-chart.js.map +1 -0
  332. package/dist/server/marimekko-chart.d.ts +19 -0
  333. package/dist/server/marimekko-chart.js +12 -0
  334. package/dist/server/marimekko-chart.js.map +1 -0
  335. package/dist/server/meter-chart.js +2 -1
  336. package/dist/server/meter-chart.js.map +1 -1
  337. package/dist/server/network-chart.d.ts +19 -0
  338. package/dist/server/network-chart.js +12 -0
  339. package/dist/server/network-chart.js.map +1 -0
  340. package/dist/server/orbit-chart.js +2 -1
  341. package/dist/server/orbit-chart.js.map +1 -1
  342. package/dist/server/parallel-coordinates-chart.d.ts +19 -0
  343. package/dist/server/parallel-coordinates-chart.js +12 -0
  344. package/dist/server/parallel-coordinates-chart.js.map +1 -0
  345. package/dist/server/polar-bar-chart.js +2 -1
  346. package/dist/server/polar-bar-chart.js.map +1 -1
  347. package/dist/server/polar-line-chart.d.ts +19 -0
  348. package/dist/server/polar-line-chart.js +12 -0
  349. package/dist/server/polar-line-chart.js.map +1 -0
  350. package/dist/server/polar-scatter-chart.d.ts +19 -0
  351. package/dist/server/polar-scatter-chart.js +12 -0
  352. package/dist/server/polar-scatter-chart.js.map +1 -0
  353. package/dist/server/pyramid-chart.js +2 -1
  354. package/dist/server/pyramid-chart.js.map +1 -1
  355. package/dist/server/radar-chart.js +2 -1
  356. package/dist/server/radar-chart.js.map +1 -1
  357. package/dist/server/radial-arc-group.js +2 -1
  358. package/dist/server/radial-arc-group.js.map +1 -1
  359. package/dist/server/radial-rings.js +2 -1
  360. package/dist/server/radial-rings.js.map +1 -1
  361. package/dist/server/range-band-chart.js +2 -1
  362. package/dist/server/range-band-chart.js.map +1 -1
  363. package/dist/server/ridgeline-chart.d.ts +19 -0
  364. package/dist/server/ridgeline-chart.js +12 -0
  365. package/dist/server/ridgeline-chart.js.map +1 -0
  366. package/dist/server/sankey-chart.js +2 -1
  367. package/dist/server/sankey-chart.js.map +1 -1
  368. package/dist/server/scatter-chart.js +2 -1
  369. package/dist/server/scatter-chart.js.map +1 -1
  370. package/dist/server/slope-chart.d.ts +19 -0
  371. package/dist/server/slope-chart.js +12 -0
  372. package/dist/server/slope-chart.js.map +1 -0
  373. package/dist/server/sparkline-rows.js +2 -1
  374. package/dist/server/sparkline-rows.js.map +1 -1
  375. package/dist/server/squarified-treemap.d.ts +19 -0
  376. package/dist/server/squarified-treemap.js +12 -0
  377. package/dist/server/squarified-treemap.js.map +1 -0
  378. package/dist/server/stacked-bar-chart.js +2 -1
  379. package/dist/server/stacked-bar-chart.js.map +1 -1
  380. package/dist/server/step-chart.js +2 -1
  381. package/dist/server/step-chart.js.map +1 -1
  382. package/dist/server/stream-chart.js +2 -1
  383. package/dist/server/stream-chart.js.map +1 -1
  384. package/dist/server/sunburst-chart.d.ts +19 -0
  385. package/dist/server/sunburst-chart.js +12 -0
  386. package/dist/server/sunburst-chart.js.map +1 -0
  387. package/dist/server/tree-chart.d.ts +19 -0
  388. package/dist/server/tree-chart.js +12 -0
  389. package/dist/server/tree-chart.js.map +1 -0
  390. package/dist/server/treemap-chart.js +2 -1
  391. package/dist/server/treemap-chart.js.map +1 -1
  392. package/dist/server/ui/alert.js +2 -1
  393. package/dist/server/ui/alert.js.map +1 -1
  394. package/dist/server/ui/avatar.d.ts +18 -0
  395. package/dist/server/ui/avatar.js +18 -0
  396. package/dist/server/ui/avatar.js.map +1 -0
  397. package/dist/server/ui/badge.js +2 -1
  398. package/dist/server/ui/badge.js.map +1 -1
  399. package/dist/server/ui/breadcrumb.d.ts +12 -0
  400. package/dist/server/ui/breadcrumb.js +14 -0
  401. package/dist/server/ui/breadcrumb.js.map +1 -0
  402. package/dist/server/ui/card.js +2 -1
  403. package/dist/server/ui/card.js.map +1 -1
  404. package/dist/server/ui/descriptions.d.ts +12 -0
  405. package/dist/server/ui/descriptions.js +14 -0
  406. package/dist/server/ui/descriptions.js.map +1 -0
  407. package/dist/server/ui/divider.js +2 -1
  408. package/dist/server/ui/divider.js.map +1 -1
  409. package/dist/server/ui/empty.d.ts +14 -0
  410. package/dist/server/ui/empty.js +14 -0
  411. package/dist/server/ui/empty.js.map +1 -0
  412. package/dist/server/ui/glyph.d.ts +12 -0
  413. package/dist/server/ui/glyph.js +14 -0
  414. package/dist/server/ui/glyph.js.map +1 -0
  415. package/dist/server/ui/progress.js +2 -1
  416. package/dist/server/ui/progress.js.map +1 -1
  417. package/dist/server/ui/result.d.ts +14 -0
  418. package/dist/server/ui/result.js +14 -0
  419. package/dist/server/ui/result.js.map +1 -0
  420. package/dist/server/ui/skeleton.js +2 -1
  421. package/dist/server/ui/skeleton.js.map +1 -1
  422. package/dist/server/ui/statistic.d.ts +12 -0
  423. package/dist/server/ui/statistic.js +14 -0
  424. package/dist/server/ui/statistic.js.map +1 -0
  425. package/dist/server/ui/steps.js +2 -1
  426. package/dist/server/ui/steps.js.map +1 -1
  427. package/dist/server/ui/surface.d.ts +13 -0
  428. package/dist/server/ui/surface.js +14 -0
  429. package/dist/server/ui/surface.js.map +1 -0
  430. package/dist/server/ui/table.d.ts +14 -0
  431. package/dist/server/ui/table.js +14 -0
  432. package/dist/server/ui/table.js.map +1 -0
  433. package/dist/server/ui/tag.js +2 -1
  434. package/dist/server/ui/tag.js.map +1 -1
  435. package/dist/server/ui/timeline-list.d.ts +12 -0
  436. package/dist/server/ui/timeline-list.js +14 -0
  437. package/dist/server/ui/timeline-list.js.map +1 -0
  438. package/dist/server/vector-field-chart.d.ts +19 -0
  439. package/dist/server/vector-field-chart.js +12 -0
  440. package/dist/server/vector-field-chart.js.map +1 -0
  441. package/dist/server/violin-chart.d.ts +19 -0
  442. package/dist/server/violin-chart.js +12 -0
  443. package/dist/server/violin-chart.js.map +1 -0
  444. package/dist/server/volvelle-chart.js +2 -1
  445. package/dist/server/volvelle-chart.js.map +1 -1
  446. package/dist/server/waffle-chart.d.ts +19 -0
  447. package/dist/server/waffle-chart.js +12 -0
  448. package/dist/server/waffle-chart.js.map +1 -0
  449. package/dist/server/waterfall-chart.js +2 -1
  450. package/dist/server/waterfall-chart.js.map +1 -1
  451. package/dist/server/wind-rose.js +2 -1
  452. package/dist/server/wind-rose.js.map +1 -1
  453. package/dist/slope-chart.d.ts +10 -0
  454. package/dist/slope-chart.js +11 -0
  455. package/dist/slope-chart.js.map +1 -0
  456. package/dist/sparkline-rows.js +3 -3
  457. package/dist/squarified-treemap.d.ts +11 -0
  458. package/dist/squarified-treemap.js +12 -0
  459. package/dist/squarified-treemap.js.map +1 -0
  460. package/dist/stacked-bar-chart.js +3 -3
  461. package/dist/step-chart.js +3 -3
  462. package/dist/stream-chart.js +3 -3
  463. package/dist/sunburst-chart.d.ts +11 -0
  464. package/dist/sunburst-chart.js +12 -0
  465. package/dist/sunburst-chart.js.map +1 -0
  466. package/dist/timeline.d.ts +21 -0
  467. package/dist/timeline.js +36 -0
  468. package/dist/timeline.js.map +1 -0
  469. package/dist/tree-chart.d.ts +10 -0
  470. package/dist/tree-chart.js +11 -0
  471. package/dist/tree-chart.js.map +1 -0
  472. package/dist/treemap-chart.js +3 -3
  473. package/dist/ui/alert.js +3 -3
  474. package/dist/ui/avatar.d.ts +17 -0
  475. package/dist/ui/avatar.js +12 -0
  476. package/dist/ui/avatar.js.map +1 -0
  477. package/dist/ui/badge.js +3 -3
  478. package/dist/ui/breadcrumb.d.ts +11 -0
  479. package/dist/ui/breadcrumb.js +10 -0
  480. package/dist/ui/breadcrumb.js.map +1 -0
  481. package/dist/ui/button.js +3 -3
  482. package/dist/ui/card.js +3 -3
  483. package/dist/ui/checkbox.js +3 -3
  484. package/dist/ui/collapse.d.ts +24 -0
  485. package/dist/ui/collapse.js +12 -0
  486. package/dist/ui/collapse.js.map +1 -0
  487. package/dist/ui/descriptions.d.ts +11 -0
  488. package/dist/ui/descriptions.js +10 -0
  489. package/dist/ui/descriptions.js.map +1 -0
  490. package/dist/ui/divider.js +3 -3
  491. package/dist/ui/drawer.d.ts +17 -0
  492. package/dist/ui/drawer.js +11 -0
  493. package/dist/ui/drawer.js.map +1 -0
  494. package/dist/ui/dropdown-menu.d.ts +20 -0
  495. package/dist/ui/dropdown-menu.js +12 -0
  496. package/dist/ui/dropdown-menu.js.map +1 -0
  497. package/dist/ui/empty.d.ts +13 -0
  498. package/dist/ui/empty.js +10 -0
  499. package/dist/ui/empty.js.map +1 -0
  500. package/dist/ui/glyph.d.ts +11 -0
  501. package/dist/ui/glyph.js +10 -0
  502. package/dist/ui/glyph.js.map +1 -0
  503. package/dist/ui/input-number.d.ts +20 -0
  504. package/dist/ui/input-number.js +10 -0
  505. package/dist/ui/input-number.js.map +1 -0
  506. package/dist/ui/input.js +3 -3
  507. package/dist/ui/modal.d.ts +17 -0
  508. package/dist/ui/modal.js +11 -0
  509. package/dist/ui/modal.js.map +1 -0
  510. package/dist/ui/pagination.d.ts +17 -0
  511. package/dist/ui/pagination.js +10 -0
  512. package/dist/ui/pagination.js.map +1 -0
  513. package/dist/ui/popover.d.ts +16 -0
  514. package/dist/ui/popover.js +11 -0
  515. package/dist/ui/popover.js.map +1 -0
  516. package/dist/ui/progress.js +3 -3
  517. package/dist/ui/radio-group.js +3 -3
  518. package/dist/ui/rate.js +3 -3
  519. package/dist/ui/result.d.ts +13 -0
  520. package/dist/ui/result.js +10 -0
  521. package/dist/ui/result.js.map +1 -0
  522. package/dist/ui/segmented.js +3 -3
  523. package/dist/ui/select.d.ts +21 -0
  524. package/dist/ui/select.js +12 -0
  525. package/dist/ui/select.js.map +1 -0
  526. package/dist/ui/skeleton.js +3 -3
  527. package/dist/ui/slider.js +3 -3
  528. package/dist/ui/statistic.d.ts +11 -0
  529. package/dist/ui/statistic.js +10 -0
  530. package/dist/ui/statistic.js.map +1 -0
  531. package/dist/ui/steps.js +3 -3
  532. package/dist/ui/surface.d.ts +12 -0
  533. package/dist/ui/surface.js +10 -0
  534. package/dist/ui/surface.js.map +1 -0
  535. package/dist/ui/switch.js +3 -3
  536. package/dist/ui/table.d.ts +13 -0
  537. package/dist/ui/table.js +10 -0
  538. package/dist/ui/table.js.map +1 -0
  539. package/dist/ui/tabs.js +3 -3
  540. package/dist/ui/tag.js +3 -3
  541. package/dist/ui/textarea.d.ts +16 -0
  542. package/dist/ui/textarea.js +10 -0
  543. package/dist/ui/textarea.js.map +1 -0
  544. package/dist/ui/timeline-list.d.ts +11 -0
  545. package/dist/ui/timeline-list.js +10 -0
  546. package/dist/ui/timeline-list.js.map +1 -0
  547. package/dist/ui/toast.d.ts +25 -0
  548. package/dist/ui/toast.js +13 -0
  549. package/dist/ui/toast.js.map +1 -0
  550. package/dist/ui/tooltip.d.ts +19 -0
  551. package/dist/ui/tooltip.js +11 -0
  552. package/dist/ui/tooltip.js.map +1 -0
  553. package/dist/ui.d.ts +23 -1
  554. package/dist/ui.js +124 -32
  555. package/dist/vector-field-chart.d.ts +10 -0
  556. package/dist/vector-field-chart.js +11 -0
  557. package/dist/vector-field-chart.js.map +1 -0
  558. package/dist/violin-chart.d.ts +10 -0
  559. package/dist/violin-chart.js +11 -0
  560. package/dist/violin-chart.js.map +1 -0
  561. package/dist/volvelle-chart.js +3 -3
  562. package/dist/waffle-chart.d.ts +10 -0
  563. package/dist/waffle-chart.js +11 -0
  564. package/dist/waffle-chart.js.map +1 -0
  565. package/dist/waterfall-chart.js +3 -3
  566. package/dist/wind-rose.js +3 -3
  567. package/package.json +527 -4
  568. package/dist/chunk-46S63XYT.js.map +0 -1
  569. package/dist/chunk-DO4VUIUU.js.map +0 -1
  570. package/dist/chunk-FBJLA3P7.js.map +0 -1
  571. package/dist/chunk-OD6N2ATZ.js.map +0 -1
  572. package/dist/chunk-SQ6GWXDK.js.map +0 -1
  573. package/dist/chunk-ZBSCLF56.js.map +0 -1
  574. /package/dist/{chunk-WZZA2IGN.js.map → chunk-25BXOLN7.js.map} +0 -0
  575. /package/dist/{chunk-I72JGA6Q.js.map → chunk-2NBHAILL.js.map} +0 -0
  576. /package/dist/{chunk-GUKXFITX.js.map → chunk-3MQJA564.js.map} +0 -0
  577. /package/dist/{chunk-LSA5XU52.js.map → chunk-3UD7DUEM.js.map} +0 -0
  578. /package/dist/{chunk-MC7N4KQA.js.map → chunk-45FUDQOF.js.map} +0 -0
  579. /package/dist/{chunk-FHX2HWN3.js.map → chunk-4QE7BQ7J.js.map} +0 -0
  580. /package/dist/{chunk-GSJYA76X.js.map → chunk-6Y2V7WIZ.js.map} +0 -0
  581. /package/dist/{chunk-JPTK2AAT.js.map → chunk-7SZATSRO.js.map} +0 -0
  582. /package/dist/{chunk-5FKONGCL.js.map → chunk-ANAAYEMQ.js.map} +0 -0
  583. /package/dist/{chunk-MYKZWY2E.js.map → chunk-ANIMFO5C.js.map} +0 -0
  584. /package/dist/{chunk-CWFUPKSS.js.map → chunk-ARN5BO7U.js.map} +0 -0
  585. /package/dist/{chunk-6M4REUJE.js.map → chunk-B2TSWCF5.js.map} +0 -0
  586. /package/dist/{chunk-X2F56RYM.js.map → chunk-CAFLXUSL.js.map} +0 -0
  587. /package/dist/{chunk-G7C4CH54.js.map → chunk-CT2MHXSG.js.map} +0 -0
  588. /package/dist/{chunk-RMIIFPXA.js.map → chunk-D65O5YJZ.js.map} +0 -0
  589. /package/dist/{chunk-U3LT444G.js.map → chunk-DL3FIRSO.js.map} +0 -0
  590. /package/dist/{chunk-AEU6UHVG.js.map → chunk-DOFLNIRZ.js.map} +0 -0
  591. /package/dist/{chunk-FZ46YSJA.js.map → chunk-DXNSJNEQ.js.map} +0 -0
  592. /package/dist/{chunk-NWK6VBCJ.js.map → chunk-E6LPQWVM.js.map} +0 -0
  593. /package/dist/{chunk-KVOBNPDN.js.map → chunk-ELNPDHOC.js.map} +0 -0
  594. /package/dist/{chunk-ZOB6BH7H.js.map → chunk-EOMPQ2TX.js.map} +0 -0
  595. /package/dist/{chunk-RIGQTEKW.js.map → chunk-EPTFI4BT.js.map} +0 -0
  596. /package/dist/{chunk-ESFN6FJY.js.map → chunk-GEC5QL7C.js.map} +0 -0
  597. /package/dist/{chunk-WFO6BICV.js.map → chunk-HHQI7CLZ.js.map} +0 -0
  598. /package/dist/{chunk-PRVJKYEQ.js.map → chunk-IHIE2DK3.js.map} +0 -0
  599. /package/dist/{chunk-2JWLXUY5.js.map → chunk-INYDD4FD.js.map} +0 -0
  600. /package/dist/{chunk-NWRCFNYB.js.map → chunk-JY6ZMAYT.js.map} +0 -0
  601. /package/dist/{chunk-6EFRIK7Q.js.map → chunk-K2JDM6SF.js.map} +0 -0
  602. /package/dist/{chunk-RAATAHXZ.js.map → chunk-KMNQTGBN.js.map} +0 -0
  603. /package/dist/{chunk-C3NHZ4N5.js.map → chunk-M4F272PN.js.map} +0 -0
  604. /package/dist/{chunk-OP2WE7MA.js.map → chunk-M5R4CNKU.js.map} +0 -0
  605. /package/dist/{chunk-VKNGQ4NW.js.map → chunk-MOO3XIC2.js.map} +0 -0
  606. /package/dist/{chunk-UOOHQAJU.js.map → chunk-NNHM6OWA.js.map} +0 -0
  607. /package/dist/{chunk-3U3Z5U6H.js.map → chunk-NUGUZMON.js.map} +0 -0
  608. /package/dist/{chunk-TSQWTDBK.js.map → chunk-PXHT6PD5.js.map} +0 -0
  609. /package/dist/{chunk-QRYI7BEO.js.map → chunk-QEODW4IP.js.map} +0 -0
  610. /package/dist/{chunk-3BREGZ7C.js.map → chunk-QJLESIWB.js.map} +0 -0
  611. /package/dist/{chunk-WMU6O6KZ.js.map → chunk-QKBT4P5O.js.map} +0 -0
  612. /package/dist/{chunk-6NXL245Z.js.map → chunk-S2A6EJSX.js.map} +0 -0
  613. /package/dist/{chunk-6S6VKQ3E.js.map → chunk-SZHYT257.js.map} +0 -0
  614. /package/dist/{chunk-JWCVL7VE.js.map → chunk-T52NYUKC.js.map} +0 -0
  615. /package/dist/{chunk-M56MDRNT.js.map → chunk-TTIRFQ2W.js.map} +0 -0
  616. /package/dist/{chunk-3WUPWJP2.js.map → chunk-TZGI7DMH.js.map} +0 -0
  617. /package/dist/{chunk-67FND3TB.js.map → chunk-UA3V7LBC.js.map} +0 -0
  618. /package/dist/{chunk-ART7CMBL.js.map → chunk-VQRXVACI.js.map} +0 -0
  619. /package/dist/{chunk-TH6Q4E7C.js.map → chunk-XZX2HZI7.js.map} +0 -0
  620. /package/dist/{chunk-OAH7AEGE.js.map → chunk-YYI6AXAT.js.map} +0 -0
  621. /package/dist/{chunk-43AIURD6.js.map → chunk-ZLI7RM6W.js.map} +0 -0
  622. /package/dist/{chunk-NA6K372D.js.map → chunk-ZMZYJ6I7.js.map} +0 -0
  623. /package/dist/{chunk-J3E6IUUQ.js.map → chunk-ZVZMIGX4.js.map} +0 -0
@@ -0,0 +1,59 @@
1
+ 'use client';
2
+
3
+ // src/ui/list.ts
4
+ import { uiListKey, uiTypeahead } from "@silverpoint/core/ui";
5
+ import { useEffect, useRef, useState } from "react";
6
+ var HANDLED = /* @__PURE__ */ new Set(["ArrowDown", "ArrowUp", "Home", "End", "PageDown", "PageUp", "Enter", " ", "Escape"]);
7
+ var TYPEAHEAD_RESET = 500;
8
+ function useListKeys(items, kind, open, from) {
9
+ const [active, setActive] = useState(null);
10
+ const [wasOpen, setWasOpen] = useState(open);
11
+ if (open !== wasOpen) {
12
+ setWasOpen(open);
13
+ if (!open) setActive(null);
14
+ }
15
+ const buffer = useRef("");
16
+ const timer = useRef(void 0);
17
+ useEffect(() => () => clearTimeout(timer.current), []);
18
+ const disabled = items.map((item) => item.disabled === true);
19
+ const count = items.length;
20
+ const opening = uiListKey({ active: from, count, disabled, open: false }, "Enter", kind).active;
21
+ const shown = open ? active ?? opening : -1;
22
+ const step = (index, intent) => {
23
+ setActive(index);
24
+ return { intent, key: items[index]?.key };
25
+ };
26
+ return {
27
+ activeKey: items[shown]?.key ?? null,
28
+ key(event) {
29
+ const current = open ? shown : from;
30
+ const typed = event.key;
31
+ if (typed.length === 1 && (typed !== " " || buffer.current !== "")) {
32
+ event.preventDefault();
33
+ buffer.current += typed;
34
+ clearTimeout(timer.current);
35
+ timer.current = setTimeout(() => buffer.current = "", TYPEAHEAD_RESET);
36
+ const found = uiTypeahead(
37
+ items.map((item) => item.label),
38
+ disabled,
39
+ buffer.current,
40
+ current
41
+ );
42
+ return found < 0 ? {} : step(found, open ? void 0 : "open");
43
+ }
44
+ if (HANDLED.has(typed)) event.preventDefault();
45
+ const result = uiListKey({ active: current, count, disabled, open }, typed, kind);
46
+ if (result.intent === void 0 && result.active === current) return HANDLED.has(typed) ? {} : void 0;
47
+ return step(result.active, result.intent);
48
+ },
49
+ keyUp(event) {
50
+ if (event.key === " ") event.preventDefault();
51
+ },
52
+ activate: setActive
53
+ };
54
+ }
55
+
56
+ export {
57
+ useListKeys
58
+ };
59
+ //# sourceMappingURL=chunk-3ZO7VEHS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/list.ts"],"sourcesContent":["import { uiListKey, uiTypeahead, type UiItem } from '@silverpoint/core/ui';\nimport { useEffect, useRef, useState, type KeyboardEvent } from 'react';\n\n/** Keys a list overlay answers; their default (scrolling, a button's click) is cancelled. */\nconst HANDLED: ReadonlySet<string> = new Set(['ArrowDown', 'ArrowUp', 'Home', 'End', 'PageDown', 'PageUp', 'Enter', ' ', 'Escape']);\n/** The typeahead buffer clears this long after the last key, ms (DD-039). */\nconst TYPEAHEAD_RESET = 500;\n\nexport interface ListStep {\n readonly intent?: 'open' | 'close' | 'select';\n /** The active item's key after the step. */\n readonly key?: string;\n}\n\nexport interface ListKeys {\n /** The active item of the open list; `null` when it is closed. */\n readonly activeKey: string | null;\n /** One key through `uiListKey`, or a character through `uiTypeahead`; `undefined` when the list does not answer it. */\n key(event: KeyboardEvent): ListStep | undefined;\n /** Cancels a Space's keyup, so no click follows the key that already acted. */\n keyUp(event: KeyboardEvent): void;\n /** Makes an item active: a list opened by a click starts on its first. */\n activate(index: number): void;\n}\n\n/**\n * The keyboard of a Select or a Menu (REQ-494, REQ-495, DD-039): the active item and the typeahead\n * buffer; every transition is the core's. The list opens on `from` (the chosen option) or its first\n * enabled item, as `uiListKey` says, and forgets its active item when it closes.\n */\nexport function useListKeys(items: readonly UiItem[], kind: 'listbox' | 'menu', open: boolean, from: number): ListKeys {\n const [active, setActive] = useState<number | null>(null);\n const [wasOpen, setWasOpen] = useState(open);\n if (open !== wasOpen) {\n setWasOpen(open);\n // A key that opens the list has just set its active item; a close forgets it.\n if (!open) setActive(null);\n }\n const buffer = useRef('');\n const timer = useRef<ReturnType<typeof setTimeout>>(undefined);\n useEffect(() => () => clearTimeout(timer.current), []);\n const disabled = items.map((item) => item.disabled === true);\n const count = items.length;\n const opening = uiListKey({ active: from, count, disabled, open: false }, 'Enter', kind).active;\n const shown = open ? (active ?? opening) : -1;\n\n const step = (index: number, intent?: ListStep['intent']): ListStep => {\n setActive(index);\n return { intent, key: items[index]?.key };\n };\n return {\n activeKey: items[shown]?.key ?? null,\n key(event) {\n const current = open ? shown : from;\n const typed = event.key;\n if (typed.length === 1 && (typed !== ' ' || buffer.current !== '')) {\n event.preventDefault();\n buffer.current += typed;\n clearTimeout(timer.current);\n timer.current = setTimeout(() => (buffer.current = ''), TYPEAHEAD_RESET);\n const found = uiTypeahead(\n items.map((item) => item.label),\n disabled,\n buffer.current,\n current,\n );\n return found < 0 ? {} : step(found, open ? undefined : 'open');\n }\n if (HANDLED.has(typed)) event.preventDefault();\n const result = uiListKey({ active: current, count, disabled, open }, typed, kind);\n if (result.intent === undefined && result.active === current) return HANDLED.has(typed) ? {} : undefined;\n return step(result.active, result.intent);\n },\n keyUp(event) {\n if (event.key === ' ') event.preventDefault();\n },\n activate: setActive,\n };\n}\n"],"mappings":";;;AAAA,SAAS,WAAW,mBAAgC;AACpD,SAAS,WAAW,QAAQ,gBAAoC;AAGhE,IAAM,UAA+B,oBAAI,IAAI,CAAC,aAAa,WAAW,QAAQ,OAAO,YAAY,UAAU,SAAS,KAAK,QAAQ,CAAC;AAElI,IAAM,kBAAkB;AAwBjB,SAAS,YAAY,OAA0B,MAA0B,MAAe,MAAwB;AACrH,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAwB,IAAI;AACxD,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,IAAI;AAC3C,MAAI,SAAS,SAAS;AACpB,eAAW,IAAI;AAEf,QAAI,CAAC,KAAM,WAAU,IAAI;AAAA,EAC3B;AACA,QAAM,SAAS,OAAO,EAAE;AACxB,QAAM,QAAQ,OAAsC,MAAS;AAC7D,YAAU,MAAM,MAAM,aAAa,MAAM,OAAO,GAAG,CAAC,CAAC;AACrD,QAAM,WAAW,MAAM,IAAI,CAAC,SAAS,KAAK,aAAa,IAAI;AAC3D,QAAM,QAAQ,MAAM;AACpB,QAAM,UAAU,UAAU,EAAE,QAAQ,MAAM,OAAO,UAAU,MAAM,MAAM,GAAG,SAAS,IAAI,EAAE;AACzF,QAAM,QAAQ,OAAQ,UAAU,UAAW;AAE3C,QAAM,OAAO,CAAC,OAAe,WAA0C;AACrE,cAAU,KAAK;AACf,WAAO,EAAE,QAAQ,KAAK,MAAM,KAAK,GAAG,IAAI;AAAA,EAC1C;AACA,SAAO;AAAA,IACL,WAAW,MAAM,KAAK,GAAG,OAAO;AAAA,IAChC,IAAI,OAAO;AACT,YAAM,UAAU,OAAO,QAAQ;AAC/B,YAAM,QAAQ,MAAM;AACpB,UAAI,MAAM,WAAW,MAAM,UAAU,OAAO,OAAO,YAAY,KAAK;AAClE,cAAM,eAAe;AACrB,eAAO,WAAW;AAClB,qBAAa,MAAM,OAAO;AAC1B,cAAM,UAAU,WAAW,MAAO,OAAO,UAAU,IAAK,eAAe;AACvE,cAAM,QAAQ;AAAA,UACZ,MAAM,IAAI,CAAC,SAAS,KAAK,KAAK;AAAA,UAC9B;AAAA,UACA,OAAO;AAAA,UACP;AAAA,QACF;AACA,eAAO,QAAQ,IAAI,CAAC,IAAI,KAAK,OAAO,OAAO,SAAY,MAAM;AAAA,MAC/D;AACA,UAAI,QAAQ,IAAI,KAAK,EAAG,OAAM,eAAe;AAC7C,YAAM,SAAS,UAAU,EAAE,QAAQ,SAAS,OAAO,UAAU,KAAK,GAAG,OAAO,IAAI;AAChF,UAAI,OAAO,WAAW,UAAa,OAAO,WAAW,QAAS,QAAO,QAAQ,IAAI,KAAK,IAAI,CAAC,IAAI;AAC/F,aAAO,KAAK,OAAO,QAAQ,OAAO,MAAM;AAAA,IAC1C;AAAA,IACA,MAAM,OAAO;AACX,UAAI,MAAM,QAAQ,IAAK,OAAM,eAAe;AAAA,IAC9C;AAAA,IACA,UAAU;AAAA,EACZ;AACF;","names":[]}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  createClientChart
4
- } from "./chunk-FBJLA3P7.js";
4
+ } from "./chunk-QRQ4RFCB.js";
5
5
 
6
6
  // src/treemap-chart.tsx
7
7
  import { treemapChart } from "@silverpoint/core";
@@ -10,4 +10,4 @@ var TreemapChart = createClientChart(treemapChart);
10
10
  export {
11
11
  TreemapChart
12
12
  };
13
- //# sourceMappingURL=chunk-MC7N4KQA.js.map
13
+ //# sourceMappingURL=chunk-45FUDQOF.js.map
@@ -0,0 +1,16 @@
1
+ 'use client';
2
+ import {
3
+ renderUi,
4
+ useUi
5
+ } from "./chunk-DX6FUHGB.js";
6
+
7
+ // src/ui/breadcrumb.tsx
8
+ import { uiBreadcrumbView } from "@silverpoint/core/ui";
9
+ function SpBreadcrumb({ dashboardCell, ...props }) {
10
+ return renderUi(uiBreadcrumbView(props, useUi(props, dashboardCell)), {});
11
+ }
12
+
13
+ export {
14
+ SpBreadcrumb
15
+ };
16
+ //# sourceMappingURL=chunk-4CZQHTP5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/breadcrumb.tsx"],"sourcesContent":["import { uiBreadcrumbView, type SpBreadcrumbProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpBreadcrumbProps extends CoreProps, UiCellProps {}\n\n/** `SpBreadcrumb`: a labelled nav; the last item is the current page (REQ-477). `@silverpoint/react/server/ui/breadcrumb` renders it in a Server Component. */\nexport function SpBreadcrumb({ dashboardCell, ...props }: SpBreadcrumbProps) {\n return renderUi(uiBreadcrumbView(props, useUi(props, dashboardCell)), {}) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,wBAA6D;AAQ/D,SAAS,aAAa,EAAE,eAAe,GAAG,MAAM,GAAsB;AAC3E,SAAO,SAAS,iBAAiB,OAAO,MAAM,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC1E;","names":[]}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  createClientChart
4
- } from "./chunk-FBJLA3P7.js";
4
+ } from "./chunk-QRQ4RFCB.js";
5
5
 
6
6
  // src/waterfall-chart.tsx
7
7
  import { waterfallChart } from "@silverpoint/core";
@@ -10,4 +10,4 @@ var WaterfallChart = createClientChart(waterfallChart);
10
10
  export {
11
11
  WaterfallChart
12
12
  };
13
- //# sourceMappingURL=chunk-FHX2HWN3.js.map
13
+ //# sourceMappingURL=chunk-4QE7BQ7J.js.map
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+ import {
3
+ createClientChart
4
+ } from "./chunk-QRQ4RFCB.js";
5
+
6
+ // src/lollipop-chart.tsx
7
+ import { lollipopChart } from "@silverpoint/core/catalog";
8
+ var LollipopChart = createClientChart(lollipopChart);
9
+
10
+ export {
11
+ LollipopChart
12
+ };
13
+ //# sourceMappingURL=chunk-5GNJS3Y3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/lollipop-chart.tsx"],"sourcesContent":["import { lollipopChart } from '@silverpoint/core/catalog';\nimport type { LollipopChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { LollipopChartProps } from '@silverpoint/core';\n\nexport type ClientLollipopChartProps = LollipopChartProps & InteractionProps;\n\n/** `LollipopChart` (REQ-406): a stem from the baseline and a head at the value (API Spec §7.3). */\nexport const LollipopChart = createClientChart<LollipopChartProps>(lollipopChart);\n"],"mappings":";;;;;;AAAA,SAAS,qBAAqB;AAUvB,IAAM,gBAAgB,kBAAsC,aAAa;","names":[]}
@@ -0,0 +1,28 @@
1
+ 'use client';
2
+ import {
3
+ createClientChart
4
+ } from "./chunk-QRQ4RFCB.js";
5
+
6
+ // src/drillable.tsx
7
+ import { rootChangeOf } from "@silverpoint/core/catalog";
8
+ import { forwardRef, useImperativeHandle, useRef } from "react";
9
+ import { jsx } from "react/jsx-runtime";
10
+ function createDrillableChart(recipe) {
11
+ const Chart = createClientChart(recipe);
12
+ const Drillable = forwardRef(function Drillable2({ onRootChange, onSelect, ...props }, ref) {
13
+ const chart = useRef(null);
14
+ useImperativeHandle(ref, () => ({ getGeometry: () => chart.current.getGeometry(), toSVGString: () => chart.current.toSVGString() }), []);
15
+ const select = (item) => {
16
+ onSelect?.(item);
17
+ if (onRootChange && chart.current) onRootChange(rootChangeOf(chart.current.getGeometry(), item));
18
+ };
19
+ return /* @__PURE__ */ jsx(Chart, { ...props, onSelect: select, ref: chart });
20
+ });
21
+ Drillable.displayName = recipe.name;
22
+ return Drillable;
23
+ }
24
+
25
+ export {
26
+ createDrillableChart
27
+ };
28
+ //# sourceMappingURL=chunk-5HX2UUIR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/drillable.tsx"],"sourcesContent":["import { rootChangeOf } from '@silverpoint/core/catalog';\nimport type { ActiveItem, ChartHandle, ChartRecipe, CommonChartProps } from '@silverpoint/core';\nimport { forwardRef, useImperativeHandle, useRef } from 'react';\nimport { createClientChart, type ClientChart, type InteractionProps } from './create-chart';\n\n/** The event of the two drillable charts (API delta §4). */\nexport interface RootChangeProps {\n /** A node was activated: the id to draw as root, `null` for the data root (REQ-439). */\n onRootChange?: (id: string | null) => void;\n}\n\n/**\n * The client component of a drillable recipe: the client chart, whose `onSelect` also emits\n * `onRootChange`, read from the drawing as it is now. The root stays the consumer's `rootId`; this\n * component holds none (REQ-108).\n */\nexport function createDrillableChart<P extends CommonChartProps>(recipe: ChartRecipe<P>): ClientChart<P & RootChangeProps> {\n const Chart = createClientChart(recipe) as unknown as ClientChart<CommonChartProps>;\n const Drillable = forwardRef<ChartHandle, P & InteractionProps & RootChangeProps>(function Drillable({ onRootChange, onSelect, ...props }, ref) {\n const chart = useRef<ChartHandle>(null);\n // The inner handle changes with every drawing, so the outer one reads it at call time.\n useImperativeHandle(ref, () => ({ getGeometry: () => (chart.current as ChartHandle).getGeometry(), toSVGString: () => (chart.current as ChartHandle).toSVGString() }), []);\n const select = (item: ActiveItem) => {\n onSelect?.(item);\n if (onRootChange && chart.current) onRootChange(rootChangeOf(chart.current.getGeometry(), item));\n };\n return <Chart {...(props as CommonChartProps)} onSelect={select} ref={chart} />;\n });\n Drillable.displayName = recipe.name;\n return Drillable as unknown as ClientChart<P & RootChangeProps>;\n}\n"],"mappings":";;;;;;AAAA,SAAS,oBAAoB;AAE7B,SAAS,YAAY,qBAAqB,cAAc;AAwB7C;AAVJ,SAAS,qBAAiD,QAA0D;AACzH,QAAM,QAAQ,kBAAkB,MAAM;AACtC,QAAM,YAAY,WAAgE,SAASA,WAAU,EAAE,cAAc,UAAU,GAAG,MAAM,GAAG,KAAK;AAC9I,UAAM,QAAQ,OAAoB,IAAI;AAEtC,wBAAoB,KAAK,OAAO,EAAE,aAAa,MAAO,MAAM,QAAwB,YAAY,GAAG,aAAa,MAAO,MAAM,QAAwB,YAAY,EAAE,IAAI,CAAC,CAAC;AACzK,UAAM,SAAS,CAAC,SAAqB;AACnC,iBAAW,IAAI;AACf,UAAI,gBAAgB,MAAM,QAAS,cAAa,aAAa,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC;AAAA,IACjG;AACA,WAAO,oBAAC,SAAO,GAAI,OAA4B,UAAU,QAAQ,KAAK,OAAO;AAAA,EAC/E,CAAC;AACD,YAAU,cAAc,OAAO;AAC/B,SAAO;AACT;","names":["Drillable"]}
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+ import {
3
+ createClientChart
4
+ } from "./chunk-QRQ4RFCB.js";
5
+
6
+ // src/slope-chart.tsx
7
+ import { slopeChart } from "@silverpoint/core/catalog";
8
+ var SlopeChart = createClientChart(slopeChart);
9
+
10
+ export {
11
+ SlopeChart
12
+ };
13
+ //# sourceMappingURL=chunk-5KS4JD5W.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/slope-chart.tsx"],"sourcesContent":["import { slopeChart } from '@silverpoint/core/catalog';\nimport type { SlopeChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { SlopeChartProps } from '@silverpoint/core';\n\nexport type ClientSlopeChartProps = SlopeChartProps & InteractionProps;\n\n/** `SlopeChart` (REQ-408): two period axes, one segment per category (API Spec §7.3). */\nexport const SlopeChart = createClientChart<SlopeChartProps>(slopeChart);\n"],"mappings":";;;;;;AAAA,SAAS,kBAAkB;AAUpB,IAAM,aAAa,kBAAmC,UAAU;","names":[]}
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+ import {
3
+ createClientChart
4
+ } from "./chunk-QRQ4RFCB.js";
5
+
6
+ // src/beeswarm-chart.tsx
7
+ import { beeswarmChart } from "@silverpoint/core/catalog";
8
+ var BeeswarmChart = createClientChart(beeswarmChart);
9
+
10
+ export {
11
+ BeeswarmChart
12
+ };
13
+ //# sourceMappingURL=chunk-5M4FS37X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/beeswarm-chart.tsx"],"sourcesContent":["import { beeswarmChart } from '@silverpoint/core/catalog';\nimport type { BeeswarmChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { BeeswarmChartProps } from '@silverpoint/core';\n\nexport type ClientBeeswarmChartProps = BeeswarmChartProps & InteractionProps;\n\n/** `BeeswarmChart` (REQ-405): one point per observation, packed without overlap (API Spec §7.3). */\nexport const BeeswarmChart = createClientChart<BeeswarmChartProps>(beeswarmChart);\n"],"mappings":";;;;;;AAAA,SAAS,qBAAqB;AAUvB,IAAM,gBAAgB,kBAAsC,aAAa;","names":[]}
@@ -0,0 +1,66 @@
1
+ 'use client';
2
+ import {
3
+ useOpen
4
+ } from "./chunk-G3PPUBI5.js";
5
+ import {
6
+ renderUi,
7
+ useUi
8
+ } from "./chunk-DX6FUHGB.js";
9
+
10
+ // src/ui/toast.tsx
11
+ import { uiToastDuration, uiToasterView, uiToastView } from "@silverpoint/core/ui";
12
+ import { createContext, useContext, useEffect, useRef } from "react";
13
+ import { jsx } from "react/jsx-runtime";
14
+ var ToasterDuration = createContext(void 0);
15
+ function SpToast({ action, open, defaultOpen, onOpenChange, dashboardCell, ...props }) {
16
+ const [isOpen, set] = useOpen({ open, defaultOpen, onOpenChange });
17
+ const ref = useRef(null);
18
+ const duration = uiToastDuration(props.duration, useContext(ToasterDuration));
19
+ useEffect(() => {
20
+ const toast = ref.current;
21
+ if (!toast || !isOpen || duration === Infinity) return;
22
+ let timer = setTimeout(() => set(false), duration);
23
+ const pause = () => {
24
+ clearTimeout(timer);
25
+ timer = void 0;
26
+ };
27
+ const resume = () => {
28
+ if (timer !== void 0 || toast.contains(toast.ownerDocument.activeElement)) return;
29
+ timer = setTimeout(() => set(false), duration);
30
+ };
31
+ const on = [
32
+ ["pointerenter", pause],
33
+ ["focusin", pause],
34
+ ["pointerleave", resume],
35
+ ["focusout", resume]
36
+ ];
37
+ for (const [type, listener] of on) toast.addEventListener(type, listener);
38
+ return () => {
39
+ clearTimeout(timer);
40
+ for (const [type, listener] of on) toast.removeEventListener(type, listener);
41
+ };
42
+ }, [isOpen, duration, set]);
43
+ const view = uiToastView(props, useUi(props, dashboardCell), { open: isOpen }, { action: action != null });
44
+ return renderUi(view, { root: { ref }, close: { onClick: () => set(false) }, slots: { action } });
45
+ }
46
+ function SpToaster({ children, dashboardCell, ...props }) {
47
+ const ref = useRef(null);
48
+ useEffect(() => {
49
+ const f8 = (event) => {
50
+ const region = ref.current;
51
+ if (event.key !== "F8" || !region) return;
52
+ region.setAttribute("tabindex", "-1");
53
+ region.focus();
54
+ };
55
+ document.addEventListener("keydown", f8);
56
+ return () => document.removeEventListener("keydown", f8);
57
+ }, []);
58
+ const view = uiToasterView(props, useUi(props, dashboardCell));
59
+ return /* @__PURE__ */ jsx(ToasterDuration.Provider, { value: props.duration, children: renderUi(view, { root: { ref }, slots: { content: children } }) });
60
+ }
61
+
62
+ export {
63
+ SpToast,
64
+ SpToaster
65
+ };
66
+ //# sourceMappingURL=chunk-65LAAEJZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/toast.tsx"],"sourcesContent":["import { uiToastDuration, uiToasterView, uiToastView, type SpToasterProps as CoreToasterProps, type SpToastProps as CoreProps } from '@silverpoint/core/ui';\nimport { createContext, useContext, useEffect, useRef, type ReactElement, type ReactNode } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { useOpen, type OverlayOpenProps } from './overlay';\nimport { renderUi } from './render';\n\n/** The duration a toaster gives the toasts it holds. */\nconst ToasterDuration = createContext<number | undefined>(undefined);\n\nexport interface SpToastProps extends CoreProps, OverlayOpenProps, UiCellProps {\n /** An action beside the text, as a button. */\n readonly action?: ReactNode;\n}\n\nexport interface SpToasterProps extends CoreToasterProps, UiCellProps {\n /** `SpToast`s. */\n readonly children?: ReactNode;\n}\n\n/**\n * `SpToast`: announced by its kind (REQ-497); it closes after its duration —its own, its toaster's\n * or 5000 ms, by `uiToastDuration`— counted again from the start once the pointer and focus have\n * left it, and reports the close through `onOpenChange`.\n */\nexport function SpToast({ action, open, defaultOpen, onOpenChange, dashboardCell, ...props }: SpToastProps) {\n const [isOpen, set] = useOpen({ open, defaultOpen, onOpenChange });\n const ref = useRef<HTMLLIElement>(null);\n const duration = uiToastDuration(props.duration, useContext(ToasterDuration));\n useEffect(() => {\n const toast = ref.current;\n if (!toast || !isOpen || duration === Infinity) return;\n // A pause restarts the whole duration when it ends: no clock is read (Art. 4).\n let timer: ReturnType<typeof setTimeout> | undefined = setTimeout(() => set(false), duration);\n const pause = () => {\n clearTimeout(timer);\n timer = undefined;\n };\n const resume = () => {\n if (timer !== undefined || toast.contains(toast.ownerDocument.activeElement)) return;\n timer = setTimeout(() => set(false), duration);\n };\n const on: [string, EventListener][] = [\n ['pointerenter', pause],\n ['focusin', pause],\n ['pointerleave', resume],\n ['focusout', resume],\n ];\n for (const [type, listener] of on) toast.addEventListener(type, listener);\n return () => {\n clearTimeout(timer);\n for (const [type, listener] of on) toast.removeEventListener(type, listener);\n };\n }, [isOpen, duration, set]);\n const view = uiToastView(props, useUi(props, dashboardCell), { open: isOpen }, { action: action != null });\n return renderUi(view, { root: { ref }, close: { onClick: () => set(false) }, slots: { action } }) as ReactElement;\n}\n\n/** `SpToaster`: the labelled region of its toasts (REQ-497); F8 moves focus to it. */\nexport function SpToaster({ children, dashboardCell, ...props }: SpToasterProps) {\n const ref = useRef<HTMLElement>(null);\n useEffect(() => {\n const f8 = (event: KeyboardEvent) => {\n const region = ref.current;\n if (event.key !== 'F8' || !region) return;\n // Focusable once asked, never in the server markup.\n region.setAttribute('tabindex', '-1');\n region.focus();\n };\n document.addEventListener('keydown', f8);\n return () => document.removeEventListener('keydown', f8);\n }, []);\n const view = uiToasterView(props, useUi(props, dashboardCell));\n return <ToasterDuration.Provider value={props.duration}>{renderUi(view, { root: { ref }, slots: { content: children } })}</ToasterDuration.Provider>;\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAS,iBAAiB,eAAe,mBAA4F;AACrI,SAAS,eAAe,YAAY,WAAW,cAAiD;AAuEvF;AAjET,IAAM,kBAAkB,cAAkC,MAAS;AAiB5D,SAAS,QAAQ,EAAE,QAAQ,MAAM,aAAa,cAAc,eAAe,GAAG,MAAM,GAAiB;AAC1G,QAAM,CAAC,QAAQ,GAAG,IAAI,QAAQ,EAAE,MAAM,aAAa,aAAa,CAAC;AACjE,QAAM,MAAM,OAAsB,IAAI;AACtC,QAAM,WAAW,gBAAgB,MAAM,UAAU,WAAW,eAAe,CAAC;AAC5E,YAAU,MAAM;AACd,UAAM,QAAQ,IAAI;AAClB,QAAI,CAAC,SAAS,CAAC,UAAU,aAAa,SAAU;AAEhD,QAAI,QAAmD,WAAW,MAAM,IAAI,KAAK,GAAG,QAAQ;AAC5F,UAAM,QAAQ,MAAM;AAClB,mBAAa,KAAK;AAClB,cAAQ;AAAA,IACV;AACA,UAAM,SAAS,MAAM;AACnB,UAAI,UAAU,UAAa,MAAM,SAAS,MAAM,cAAc,aAAa,EAAG;AAC9E,cAAQ,WAAW,MAAM,IAAI,KAAK,GAAG,QAAQ;AAAA,IAC/C;AACA,UAAM,KAAgC;AAAA,MACpC,CAAC,gBAAgB,KAAK;AAAA,MACtB,CAAC,WAAW,KAAK;AAAA,MACjB,CAAC,gBAAgB,MAAM;AAAA,MACvB,CAAC,YAAY,MAAM;AAAA,IACrB;AACA,eAAW,CAAC,MAAM,QAAQ,KAAK,GAAI,OAAM,iBAAiB,MAAM,QAAQ;AACxE,WAAO,MAAM;AACX,mBAAa,KAAK;AAClB,iBAAW,CAAC,MAAM,QAAQ,KAAK,GAAI,OAAM,oBAAoB,MAAM,QAAQ;AAAA,IAC7E;AAAA,EACF,GAAG,CAAC,QAAQ,UAAU,GAAG,CAAC;AAC1B,QAAM,OAAO,YAAY,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,MAAM,OAAO,GAAG,EAAE,QAAQ,UAAU,KAAK,CAAC;AACzG,SAAO,SAAS,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,EAAE,SAAS,MAAM,IAAI,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,CAAC;AAClG;AAGO,SAAS,UAAU,EAAE,UAAU,eAAe,GAAG,MAAM,GAAmB;AAC/E,QAAM,MAAM,OAAoB,IAAI;AACpC,YAAU,MAAM;AACd,UAAM,KAAK,CAAC,UAAyB;AACnC,YAAM,SAAS,IAAI;AACnB,UAAI,MAAM,QAAQ,QAAQ,CAAC,OAAQ;AAEnC,aAAO,aAAa,YAAY,IAAI;AACpC,aAAO,MAAM;AAAA,IACf;AACA,aAAS,iBAAiB,WAAW,EAAE;AACvC,WAAO,MAAM,SAAS,oBAAoB,WAAW,EAAE;AAAA,EACzD,GAAG,CAAC,CAAC;AACL,QAAM,OAAO,cAAc,OAAO,MAAM,OAAO,aAAa,CAAC;AAC7D,SAAO,oBAAC,gBAAgB,UAAhB,EAAyB,OAAO,MAAM,UAAW,mBAAS,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC,GAAE;AAC3H;","names":[]}
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+ import {
3
+ createClientChart
4
+ } from "./chunk-QRQ4RFCB.js";
5
+
6
+ // src/box-plot-chart.tsx
7
+ import { boxPlotChart } from "@silverpoint/core/catalog";
8
+ var BoxPlotChart = createClientChart(boxPlotChart);
9
+
10
+ export {
11
+ BoxPlotChart
12
+ };
13
+ //# sourceMappingURL=chunk-6BZ2752M.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/box-plot-chart.tsx"],"sourcesContent":["import { boxPlotChart } from '@silverpoint/core/catalog';\nimport type { BoxPlotChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { BoxPlotChartProps } from '@silverpoint/core';\n\nexport type ClientBoxPlotChartProps = BoxPlotChartProps & InteractionProps;\n\n/** `BoxPlotChart` (REQ-402): quartiles, median, Tukey whiskers and outliers per group (API Spec §7.3). */\nexport const BoxPlotChart = createClientChart<BoxPlotChartProps>(boxPlotChart);\n"],"mappings":";;;;;;AAAA,SAAS,oBAAoB;AAUtB,IAAM,eAAe,kBAAqC,YAAY;","names":[]}
@@ -0,0 +1,16 @@
1
+ 'use client';
2
+ import {
3
+ renderUi,
4
+ useUi
5
+ } from "./chunk-DX6FUHGB.js";
6
+
7
+ // src/ui/descriptions.tsx
8
+ import { uiDescriptionsView } from "@silverpoint/core/ui";
9
+ function SpDescriptions({ dashboardCell, ...props }) {
10
+ return renderUi(uiDescriptionsView(props, useUi(props, dashboardCell)), {});
11
+ }
12
+
13
+ export {
14
+ SpDescriptions
15
+ };
16
+ //# sourceMappingURL=chunk-6K4HSGXJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/descriptions.tsx"],"sourcesContent":["import { uiDescriptionsView, type SpDescriptionsProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpDescriptionsProps extends CoreProps, UiCellProps {}\n\n/** `SpDescriptions`: a section named by its heading around a `<dl>` (REQ-480). `@silverpoint/react/server/ui/descriptions` renders it in a Server Component. */\nexport function SpDescriptions({ dashboardCell, ...props }: SpDescriptionsProps) {\n return renderUi(uiDescriptionsView(props, useUi(props, dashboardCell)), {}) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,0BAAiE;AAQnE,SAAS,eAAe,EAAE,eAAe,GAAG,MAAM,GAAwB;AAC/E,SAAO,SAAS,mBAAmB,OAAO,MAAM,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5E;","names":[]}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  createClientChart
4
- } from "./chunk-FBJLA3P7.js";
4
+ } from "./chunk-QRQ4RFCB.js";
5
5
 
6
6
  // src/heatmap-chart.tsx
7
7
  import { heatmapChart } from "@silverpoint/core";
@@ -10,4 +10,4 @@ var HeatmapChart = createClientChart(heatmapChart);
10
10
  export {
11
11
  HeatmapChart
12
12
  };
13
- //# sourceMappingURL=chunk-GSJYA76X.js.map
13
+ //# sourceMappingURL=chunk-6Y2V7WIZ.js.map
@@ -0,0 +1,16 @@
1
+ 'use client';
2
+ import {
3
+ renderUi,
4
+ useUi
5
+ } from "./chunk-DX6FUHGB.js";
6
+
7
+ // src/ui/statistic.tsx
8
+ import { uiStatisticView } from "@silverpoint/core/ui";
9
+ function SpStatistic({ dashboardCell, ...props }) {
10
+ return renderUi(uiStatisticView(props, useUi(props, dashboardCell)), {});
11
+ }
12
+
13
+ export {
14
+ SpStatistic
15
+ };
16
+ //# sourceMappingURL=chunk-74DQNJH2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/statistic.tsx"],"sourcesContent":["import { uiStatisticView, type SpStatisticProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpStatisticProps extends CoreProps, UiCellProps {}\n\n/** `SpStatistic`: the trend by an exact arrow and by text (REQ-479). `@silverpoint/react/server/ui/statistic` renders it in a Server Component. */\nexport function SpStatistic({ dashboardCell, ...props }: SpStatisticProps) {\n return renderUi(uiStatisticView(props, useUi(props, dashboardCell)), {}) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,uBAA2D;AAQ7D,SAAS,YAAY,EAAE,eAAe,GAAG,MAAM,GAAqB;AACzE,SAAO,SAAS,gBAAgB,OAAO,MAAM,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AACzE;","names":[]}
@@ -0,0 +1,16 @@
1
+ 'use client';
2
+ import {
3
+ renderUi,
4
+ useUi
5
+ } from "./chunk-DX6FUHGB.js";
6
+
7
+ // src/ui/empty.tsx
8
+ import { uiEmptyView } from "@silverpoint/core/ui";
9
+ function SpEmpty({ extra, dashboardCell, ...props }) {
10
+ return renderUi(uiEmptyView(props, useUi(props, dashboardCell), { extra: extra != null }), { slots: { extra } });
11
+ }
12
+
13
+ export {
14
+ SpEmpty
15
+ };
16
+ //# sourceMappingURL=chunk-75EKOWPE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/empty.tsx"],"sourcesContent":["import { uiEmptyView, type SpEmptyProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement, ReactNode } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpEmptyProps extends CoreProps, UiCellProps {\n /** Actions under the description. */\n readonly extra?: ReactNode;\n}\n\n/** `SpEmpty`: a toned tray and a description; `extra` holds actions (REQ-483). `@silverpoint/react/server/ui/empty` renders it in a Server Component. */\nexport function SpEmpty({ extra, dashboardCell, ...props }: SpEmptyProps) {\n return renderUi(uiEmptyView(props, useUi(props, dashboardCell), { extra: extra != null }), { slots: { extra } }) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,mBAAmD;AAWrD,SAAS,QAAQ,EAAE,OAAO,eAAe,GAAG,MAAM,GAAiB;AACxE,SAAO,SAAS,YAAY,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,OAAO,SAAS,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;AACjH;","names":[]}
@@ -0,0 +1,16 @@
1
+ 'use client';
2
+ import {
3
+ renderUi,
4
+ useUi
5
+ } from "./chunk-DX6FUHGB.js";
6
+
7
+ // src/ui/timeline-list.tsx
8
+ import { uiTimelineListView } from "@silverpoint/core/ui";
9
+ function SpTimelineList({ dashboardCell, ...props }) {
10
+ return renderUi(uiTimelineListView(props, useUi(props, dashboardCell)), {});
11
+ }
12
+
13
+ export {
14
+ SpTimelineList
15
+ };
16
+ //# sourceMappingURL=chunk-7777FL4L.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/timeline-list.tsx"],"sourcesContent":["import { uiTimelineListView, type SpTimelineListProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpTimelineListProps extends CoreProps, UiCellProps {}\n\n/** `SpTimelineList`: an ordered list; each status by its mark's shape (REQ-481). `@silverpoint/react/server/ui/timeline-list` renders it in a Server Component. */\nexport function SpTimelineList({ dashboardCell, ...props }: SpTimelineListProps) {\n return renderUi(uiTimelineListView(props, useUi(props, dashboardCell)), {}) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,0BAAiE;AAQnE,SAAS,eAAe,EAAE,eAAe,GAAG,MAAM,GAAwB;AAC/E,SAAO,SAAS,mBAAmB,OAAO,MAAM,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5E;","names":[]}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  createClientChart
4
- } from "./chunk-FBJLA3P7.js";
4
+ } from "./chunk-QRQ4RFCB.js";
5
5
 
6
6
  // src/bar-chart.tsx
7
7
  import { barChart } from "@silverpoint/core";
@@ -10,4 +10,4 @@ var BarChart = createClientChart(barChart);
10
10
  export {
11
11
  BarChart
12
12
  };
13
- //# sourceMappingURL=chunk-JPTK2AAT.js.map
13
+ //# sourceMappingURL=chunk-7SZATSRO.js.map
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+ import {
3
+ createClientChart
4
+ } from "./chunk-QRQ4RFCB.js";
5
+
6
+ // src/violin-chart.tsx
7
+ import { violinChart } from "@silverpoint/core/catalog";
8
+ var ViolinChart = createClientChart(violinChart);
9
+
10
+ export {
11
+ ViolinChart
12
+ };
13
+ //# sourceMappingURL=chunk-AKOPH5MK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/violin-chart.tsx"],"sourcesContent":["import { violinChart } from '@silverpoint/core/catalog';\nimport type { ViolinChartProps } from '@silverpoint/core';\nimport { createClientChart, type InteractionProps } from './create-chart';\n\nexport type { ChartHandle, InteractionProps } from './create-chart';\nexport type { ViolinChartProps } from '@silverpoint/core';\n\nexport type ClientViolinChartProps = ViolinChartProps & InteractionProps;\n\n/** `ViolinChart` (REQ-403): a mirrored kernel density per group (API Spec §7.3). */\nexport const ViolinChart = createClientChart<ViolinChartProps>(violinChart);\n"],"mappings":";;;;;;AAAA,SAAS,mBAAmB;AAUrB,IAAM,cAAc,kBAAoC,WAAW;","names":[]}
@@ -0,0 +1,16 @@
1
+ 'use client';
2
+ import {
3
+ renderUi,
4
+ useUi
5
+ } from "./chunk-DX6FUHGB.js";
6
+
7
+ // src/ui/surface.tsx
8
+ import { uiSurfaceView } from "@silverpoint/core/ui";
9
+ function SpSurface({ children, dashboardCell, ...props }) {
10
+ return renderUi(uiSurfaceView(props, useUi(props, dashboardCell)), { slots: { content: children } });
11
+ }
12
+
13
+ export {
14
+ SpSurface
15
+ };
16
+ //# sourceMappingURL=chunk-AL6AXLYE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/surface.tsx"],"sourcesContent":["import { uiSurfaceView, type SpSurfaceProps as CoreProps } from '@silverpoint/core/ui';\nimport type { ReactElement, ReactNode } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpSurfaceProps extends CoreProps, UiCellProps {\n readonly children?: ReactNode;\n}\n\n/** `SpSurface`: the root contract on any element (`as`), with an optional frame and tone (REQ-472). `@silverpoint/react/server/ui/surface` renders it in a Server Component. */\nexport function SpSurface({ children, dashboardCell, ...props }: SpSurfaceProps) {\n return renderUi(uiSurfaceView(props, useUi(props, dashboardCell)), { slots: { content: children } }) as ReactElement;\n}\n"],"mappings":";;;;;;;AAAA,SAAS,qBAAuD;AAUzD,SAAS,UAAU,EAAE,UAAU,eAAe,GAAG,MAAM,GAAmB;AAC/E,SAAO,SAAS,cAAc,OAAO,MAAM,OAAO,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;AACrG;","names":[]}
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  renderUi,
4
4
  useUi
5
- } from "./chunk-DO4VUIUU.js";
5
+ } from "./chunk-DX6FUHGB.js";
6
6
 
7
7
  // src/ui/divider.tsx
8
8
  import { uiDividerView } from "@silverpoint/core/ui";
@@ -13,4 +13,4 @@ function SpDivider({ dashboardCell, ...props }) {
13
13
  export {
14
14
  SpDivider
15
15
  };
16
- //# sourceMappingURL=chunk-5FKONGCL.js.map
16
+ //# sourceMappingURL=chunk-ANAAYEMQ.js.map
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  createClientChart
4
- } from "./chunk-FBJLA3P7.js";
4
+ } from "./chunk-QRQ4RFCB.js";
5
5
 
6
6
  // src/wind-rose.tsx
7
7
  import { windRose } from "@silverpoint/core";
@@ -10,4 +10,4 @@ var WindRose = createClientChart(windRose);
10
10
  export {
11
11
  WindRose
12
12
  };
13
- //# sourceMappingURL=chunk-MYKZWY2E.js.map
13
+ //# sourceMappingURL=chunk-ANIMFO5C.js.map
@@ -3,7 +3,7 @@ import {
3
3
  renderUi,
4
4
  textOf,
5
5
  useUi
6
- } from "./chunk-DO4VUIUU.js";
6
+ } from "./chunk-DX6FUHGB.js";
7
7
 
8
8
  // src/ui/button.tsx
9
9
  import { uiButtonView } from "@silverpoint/core/ui";
@@ -17,4 +17,4 @@ var SpButton = forwardRef(function SpButton2({ children, onClick, dashboardCell,
17
17
  export {
18
18
  SpButton
19
19
  };
20
- //# sourceMappingURL=chunk-CWFUPKSS.js.map
20
+ //# sourceMappingURL=chunk-ARN5BO7U.js.map
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  createClientChart
4
- } from "./chunk-FBJLA3P7.js";
4
+ } from "./chunk-QRQ4RFCB.js";
5
5
 
6
6
  // src/line-chart.tsx
7
7
  import { lineChart } from "@silverpoint/core";
@@ -10,4 +10,4 @@ var LineChart = createClientChart(lineChart);
10
10
  export {
11
11
  LineChart
12
12
  };
13
- //# sourceMappingURL=chunk-6M4REUJE.js.map
13
+ //# sourceMappingURL=chunk-B2TSWCF5.js.map
@@ -0,0 +1,31 @@
1
+ 'use client';
2
+ import {
3
+ useOpen,
4
+ useOverlay,
5
+ useTrigger
6
+ } from "./chunk-G3PPUBI5.js";
7
+ import {
8
+ renderUi,
9
+ useUi
10
+ } from "./chunk-DX6FUHGB.js";
11
+
12
+ // src/ui/popover.tsx
13
+ import { uiPopoverView } from "@silverpoint/core/ui";
14
+ import { useRef } from "react";
15
+ import { Fragment, jsxs } from "react/jsx-runtime";
16
+ function SpPopover({ trigger, children, open, defaultOpen, onOpenChange, dashboardCell, ...props }) {
17
+ const [isOpen, set, latest] = useOpen({ open, defaultOpen, onOpenChange });
18
+ const ref = useRef(null);
19
+ useOverlay(ref, "popover", isOpen, set, { place: { side: props.side ?? "bottom", align: props.align ?? "center", offset: props.offset } });
20
+ const view = uiPopoverView(props, useUi(props, dashboardCell), { open: isOpen });
21
+ const popover = renderUi(view, { root: { ref }, close: { onClick: () => set(false) }, slots: { content: children } });
22
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
23
+ useTrigger(trigger, "popover", props.id, latest, set),
24
+ popover
25
+ ] });
26
+ }
27
+
28
+ export {
29
+ SpPopover
30
+ };
31
+ //# sourceMappingURL=chunk-BKZ64BZS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/popover.tsx"],"sourcesContent":["import { uiPopoverView, type SpPopoverProps as CoreProps } from '@silverpoint/core/ui';\nimport { useRef, type ReactElement, type ReactNode } from 'react';\nimport { useUi, type UiCellProps } from './base';\nimport { useOpen, useOverlay, useTrigger, type OverlayOpenProps } from './overlay';\nimport { renderUi } from './render';\n\nexport interface SpPopoverProps extends CoreProps, OverlayOpenProps, UiCellProps {\n /** The element that opens it, cloned with `aria-haspopup`, `aria-expanded` and `aria-controls`; the popover hangs from it. */\n readonly trigger?: ReactElement;\n readonly children?: ReactNode;\n}\n\n/** `SpPopover`: an `auto` popover with the dialog role, placed by `uiAnchor` on open (REQ-492, REQ-493). */\nexport function SpPopover({ trigger, children, open, defaultOpen, onOpenChange, dashboardCell, ...props }: SpPopoverProps) {\n const [isOpen, set, latest] = useOpen({ open, defaultOpen, onOpenChange });\n const ref = useRef<HTMLDivElement>(null);\n useOverlay(ref, 'popover', isOpen, set, { place: { side: props.side ?? 'bottom', align: props.align ?? 'center', offset: props.offset } });\n const view = uiPopoverView(props, useUi(props, dashboardCell), { open: isOpen });\n const popover = renderUi(view, { root: { ref }, close: { onClick: () => set(false) }, slots: { content: children } });\n return (\n <>\n {useTrigger(trigger, 'popover', props.id, latest, set)}\n {popover}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAAA,SAAS,qBAAuD;AAChE,SAAS,cAAiD;AAmBtD;AAPG,SAAS,UAAU,EAAE,SAAS,UAAU,MAAM,aAAa,cAAc,eAAe,GAAG,MAAM,GAAmB;AACzH,QAAM,CAAC,QAAQ,KAAK,MAAM,IAAI,QAAQ,EAAE,MAAM,aAAa,aAAa,CAAC;AACzE,QAAM,MAAM,OAAuB,IAAI;AACvC,aAAW,KAAK,WAAW,QAAQ,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,QAAQ,UAAU,OAAO,MAAM,SAAS,UAAU,QAAQ,MAAM,OAAO,EAAE,CAAC;AACzI,QAAM,OAAO,cAAc,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,MAAM,OAAO,CAAC;AAC/E,QAAM,UAAU,SAAS,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,EAAE,SAAS,MAAM,IAAI,KAAK,EAAE,GAAG,OAAO,EAAE,SAAS,SAAS,EAAE,CAAC;AACpH,SACE,iCACG;AAAA,eAAW,SAAS,WAAW,MAAM,IAAI,QAAQ,GAAG;AAAA,IACpD;AAAA,KACH;AAEJ;","names":[]}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  createClientChart
4
- } from "./chunk-FBJLA3P7.js";
4
+ } from "./chunk-QRQ4RFCB.js";
5
5
 
6
6
  // src/chord-ring.tsx
7
7
  import { chordRing } from "@silverpoint/core";
@@ -10,4 +10,4 @@ var ChordRing = createClientChart(chordRing);
10
10
  export {
11
11
  ChordRing
12
12
  };
13
- //# sourceMappingURL=chunk-X2F56RYM.js.map
13
+ //# sourceMappingURL=chunk-CAFLXUSL.js.map
@@ -0,0 +1,21 @@
1
+ 'use client';
2
+ import {
3
+ renderUi,
4
+ useUi,
5
+ useValue
6
+ } from "./chunk-DX6FUHGB.js";
7
+
8
+ // src/ui/textarea.tsx
9
+ import { uiTextareaView } from "@silverpoint/core/ui";
10
+ import { forwardRef } from "react";
11
+ var SpTextarea = forwardRef(function SpTextarea2({ value, defaultValue, onChange, dashboardCell, ...props }, ref) {
12
+ const [current, set] = useValue(value, defaultValue ?? "", onChange);
13
+ const view = uiTextareaView(props, useUi(props, dashboardCell), { value: current });
14
+ const native = { ref, value: current, onChange: (event) => set(event.target.value) };
15
+ return renderUi(view, { native });
16
+ });
17
+
18
+ export {
19
+ SpTextarea
20
+ };
21
+ //# sourceMappingURL=chunk-CJBZWJTN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ui/textarea.tsx"],"sourcesContent":["import { uiTextareaView, type SpTextareaProps as CoreProps } from '@silverpoint/core/ui';\nimport { forwardRef, type ChangeEvent, type ReactElement } from 'react';\nimport { useUi, useValue, type UiCellProps } from './base';\nimport { renderUi } from './render';\n\nexport interface SpTextareaProps extends CoreProps, UiCellProps {\n /** Controlled value. */\n readonly value?: string;\n readonly defaultValue?: string;\n /** The new value, not the DOM event (REQ-322). */\n readonly onChange?: (value: string) => void;\n}\n\n/** `SpTextarea`: a native `<textarea>` on the `SpInput` contract; its ref is the textarea (REQ-484, REQ-488). */\nexport const SpTextarea = forwardRef<HTMLTextAreaElement, SpTextareaProps>(function SpTextarea({ value, defaultValue, onChange, dashboardCell, ...props }, ref) {\n const [current, set] = useValue(value, defaultValue ?? '', onChange);\n const view = uiTextareaView(props, useUi(props, dashboardCell), { value: current });\n const native = { ref, value: current, onChange: (event: ChangeEvent<HTMLTextAreaElement>) => set(event.target.value) };\n return renderUi(view, { native }) as ReactElement;\n});\n"],"mappings":";;;;;;;;AAAA,SAAS,sBAAyD;AAClE,SAAS,kBAAuD;AAazD,IAAM,aAAa,WAAiD,SAASA,YAAW,EAAE,OAAO,cAAc,UAAU,eAAe,GAAG,MAAM,GAAG,KAAK;AAC9J,QAAM,CAAC,SAAS,GAAG,IAAI,SAAS,OAAO,gBAAgB,IAAI,QAAQ;AACnE,QAAM,OAAO,eAAe,OAAO,MAAM,OAAO,aAAa,GAAG,EAAE,OAAO,QAAQ,CAAC;AAClF,QAAM,SAAS,EAAE,KAAK,OAAO,SAAS,UAAU,CAAC,UAA4C,IAAI,MAAM,OAAO,KAAK,EAAE;AACrH,SAAO,SAAS,MAAM,EAAE,OAAO,CAAC;AAClC,CAAC;","names":["SpTextarea"]}