@nous-research/ui 0.13.2 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/README.md +16 -0
  2. package/dist/assets/filler-bg0.webp +0 -0
  3. package/dist/assets.d.ts +38 -0
  4. package/dist/fonts.d.ts +0 -1
  5. package/dist/fonts.js +5 -7
  6. package/dist/hooks/use-capped-frame.d.ts +0 -1
  7. package/dist/hooks/use-capped-frame.js +12 -13
  8. package/dist/hooks/use-css-var-dims.d.ts +0 -1
  9. package/dist/hooks/use-css-var-dims.js +26 -21
  10. package/dist/hooks/use-gpu-tier.d.ts +0 -1
  11. package/dist/hooks/use-gpu-tier.js +90 -110
  12. package/dist/hooks/use-render-loop.d.ts +0 -1
  13. package/dist/hooks/use-render-loop.js +58 -58
  14. package/dist/hooks/use-smooth-controls.d.ts +0 -1
  15. package/dist/hooks/use-smooth-controls.js +204 -206
  16. package/dist/index.d.ts +0 -1
  17. package/dist/index.js +84 -58
  18. package/dist/ui/basic-page.d.ts +1 -2
  19. package/dist/ui/basic-page.js +15 -7
  20. package/dist/ui/build.css +1 -0
  21. package/dist/ui/components/animated-count.d.ts +1 -2
  22. package/dist/ui/components/animated-count.js +109 -85
  23. package/dist/ui/components/ascii.d.ts +2 -3
  24. package/dist/ui/components/ascii.js +75 -59
  25. package/dist/ui/components/badge.d.ts +1 -2
  26. package/dist/ui/components/badge.js +35 -18
  27. package/dist/ui/components/badges/nous-girl.d.ts +1 -2
  28. package/dist/ui/components/badges/nous-girl.js +80 -3
  29. package/dist/ui/components/blend-mode.d.ts +1 -2
  30. package/dist/ui/components/blend-mode.js +55 -63
  31. package/dist/ui/components/blink.d.ts +1 -2
  32. package/dist/ui/components/blink.js +15 -6
  33. package/dist/ui/components/button.d.ts +2 -3
  34. package/dist/ui/components/button.js +139 -90
  35. package/dist/ui/components/command-block.d.ts +2 -3
  36. package/dist/ui/components/command-block.js +52 -24
  37. package/dist/ui/components/cursor.d.ts +1 -2
  38. package/dist/ui/components/cursor.js +93 -54
  39. package/dist/ui/components/dropdown-menu.d.ts +1 -2
  40. package/dist/ui/components/dropdown-menu.js +99 -51
  41. package/dist/ui/components/fit-text/index.d.ts +0 -1
  42. package/dist/ui/components/fit-text/index.js +21 -13
  43. package/dist/ui/components/graphs/bar-chart.d.ts +1 -2
  44. package/dist/ui/components/graphs/bar-chart.js +116 -63
  45. package/dist/ui/components/graphs/index.d.ts +0 -1
  46. package/dist/ui/components/graphs/index.js +3 -4
  47. package/dist/ui/components/graphs/line-chart.d.ts +1 -2
  48. package/dist/ui/components/graphs/line-chart.js +159 -102
  49. package/dist/ui/components/graphs/utils.d.ts +2 -3
  50. package/dist/ui/components/graphs/utils.js +147 -114
  51. package/dist/ui/components/grid/index.d.ts +0 -1
  52. package/dist/ui/components/grid/index.js +12 -9
  53. package/dist/ui/components/hover-bg.d.ts +0 -1
  54. package/dist/ui/components/hover-bg.js +11 -6
  55. package/dist/ui/components/icons/arrow.d.ts +1 -2
  56. package/dist/ui/components/icons/arrow.js +42 -5
  57. package/dist/ui/components/icons/chevron.d.ts +1 -2
  58. package/dist/ui/components/icons/chevron.js +49 -5
  59. package/dist/ui/components/icons/discord.d.ts +1 -2
  60. package/dist/ui/components/icons/discord.js +12 -4
  61. package/dist/ui/components/icons/eye.d.ts +1 -2
  62. package/dist/ui/components/icons/eye.js +5 -3
  63. package/dist/ui/components/icons/gear.d.ts +1 -2
  64. package/dist/ui/components/icons/gear.js +28 -14
  65. package/dist/ui/components/icons/github.d.ts +1 -2
  66. package/dist/ui/components/icons/github.js +12 -4
  67. package/dist/ui/components/icons/hamburger.d.ts +1 -2
  68. package/dist/ui/components/icons/hamburger.js +54 -5
  69. package/dist/ui/components/icons/heart.d.ts +1 -2
  70. package/dist/ui/components/icons/heart.js +8 -3
  71. package/dist/ui/components/icons/index.d.ts +0 -1
  72. package/dist/ui/components/icons/index.js +11 -12
  73. package/dist/ui/components/icons/link.d.ts +1 -2
  74. package/dist/ui/components/icons/link.js +10 -3
  75. package/dist/ui/components/icons/minus.d.ts +1 -2
  76. package/dist/ui/components/icons/minus.js +10 -3
  77. package/dist/ui/components/icons/search.d.ts +1 -2
  78. package/dist/ui/components/icons/search.js +30 -3
  79. package/dist/ui/components/image-distortion.d.ts +1 -2
  80. package/dist/ui/components/image-distortion.js +300 -265
  81. package/dist/ui/components/leva-client.d.ts +1 -2
  82. package/dist/ui/components/leva-client.js +9 -10
  83. package/dist/ui/components/list-item.d.ts +0 -1
  84. package/dist/ui/components/list-item.js +26 -10
  85. package/dist/ui/components/modal/index.d.ts +1 -2
  86. package/dist/ui/components/modal/index.js +33 -14
  87. package/dist/ui/components/overlays/blend-modes.d.ts +0 -1
  88. package/dist/ui/components/overlays/blend-modes.js +11 -12
  89. package/dist/ui/components/overlays/glitch.d.ts +1 -2
  90. package/dist/ui/components/overlays/glitch.js +115 -110
  91. package/dist/ui/components/overlays/greys.d.ts +1 -2
  92. package/dist/ui/components/overlays/greys.js +200 -179
  93. package/dist/ui/components/overlays/index.d.ts +1 -2
  94. package/dist/ui/components/overlays/index.js +31 -17
  95. package/dist/ui/components/overlays/lens-layers.d.ts +1 -2
  96. package/dist/ui/components/overlays/lens-layers.js +89 -65
  97. package/dist/ui/components/overlays/lens.d.ts +0 -1
  98. package/dist/ui/components/overlays/lens.js +46 -52
  99. package/dist/ui/components/overlays/noise.d.ts +1 -2
  100. package/dist/ui/components/overlays/noise.js +112 -113
  101. package/dist/ui/components/overlays/vignette.d.ts +1 -2
  102. package/dist/ui/components/overlays/vignette.js +44 -38
  103. package/dist/ui/components/poster.d.ts +1 -2
  104. package/dist/ui/components/poster.js +240 -87
  105. package/dist/ui/components/progress.d.ts +1 -2
  106. package/dist/ui/components/progress.js +52 -12
  107. package/dist/ui/components/scene-canvas.d.ts +1 -2
  108. package/dist/ui/components/scene-canvas.js +169 -119
  109. package/dist/ui/components/scramble.d.ts +1 -2
  110. package/dist/ui/components/scramble.js +60 -59
  111. package/dist/ui/components/segmented.d.ts +2 -3
  112. package/dist/ui/components/segmented.js +47 -12
  113. package/dist/ui/components/select.d.ts +1 -2
  114. package/dist/ui/components/select.js +207 -120
  115. package/dist/ui/components/selection-switcher.d.ts +0 -1
  116. package/dist/ui/components/selection-switcher.js +29 -25
  117. package/dist/ui/components/shader.d.ts +1 -2
  118. package/dist/ui/components/shader.js +56 -38
  119. package/dist/ui/components/socials.d.ts +1 -2
  120. package/dist/ui/components/socials.js +18 -7
  121. package/dist/ui/components/spinner.d.ts +1 -2
  122. package/dist/ui/components/spinner.js +36 -25
  123. package/dist/ui/components/stats.d.ts +1 -2
  124. package/dist/ui/components/stats.js +33 -9
  125. package/dist/ui/components/switch.d.ts +0 -1
  126. package/dist/ui/components/switch.js +35 -11
  127. package/dist/ui/components/tabs.d.ts +3 -4
  128. package/dist/ui/components/tabs.js +38 -12
  129. package/dist/ui/components/terminal-demo.d.ts +1 -2
  130. package/dist/ui/components/terminal-demo.js +119 -74
  131. package/dist/ui/components/theme-toggle.d.ts +1 -2
  132. package/dist/ui/components/theme-toggle.js +63 -8
  133. package/dist/ui/components/tier-card.d.ts +1 -2
  134. package/dist/ui/components/tier-card.js +144 -24
  135. package/dist/ui/components/tv.d.ts +1 -2
  136. package/dist/ui/components/tv.js +138 -90
  137. package/dist/ui/components/typography/h1.d.ts +0 -1
  138. package/dist/ui/components/typography/h1.js +17 -8
  139. package/dist/ui/components/typography/h2.d.ts +0 -1
  140. package/dist/ui/components/typography/h2.js +17 -8
  141. package/dist/ui/components/typography/index.d.ts +0 -1
  142. package/dist/ui/components/typography/index.js +35 -24
  143. package/dist/ui/components/typography/legend.d.ts +1 -2
  144. package/dist/ui/components/typography/legend.js +18 -6
  145. package/dist/ui/components/typography/small.d.ts +0 -1
  146. package/dist/ui/components/typography/small.js +8 -7
  147. package/dist/ui/components/watchlist.d.ts +1 -2
  148. package/dist/ui/components/watchlist.js +77 -25
  149. package/dist/ui/fonts.css +7 -7
  150. package/dist/ui/footer.d.ts +1 -2
  151. package/dist/ui/footer.js +61 -25
  152. package/dist/ui/globals.css +5 -1
  153. package/dist/ui/header.d.ts +1 -2
  154. package/dist/ui/header.js +255 -60
  155. package/dist/ui/layout-wrapper.d.ts +1 -2
  156. package/dist/ui/layout-wrapper.js +5 -4
  157. package/dist/utils/color.d.ts +0 -1
  158. package/dist/utils/color.js +8 -9
  159. package/dist/utils/index.d.ts +0 -1
  160. package/dist/utils/index.js +37 -38
  161. package/dist/utils/poly.d.ts +0 -1
  162. package/dist/utils/poly.js +1 -2
  163. package/package.json +42 -24
  164. package/dist/assets/filler-bg0.jpg +0 -0
  165. package/dist/fonts.d.ts.map +0 -1
  166. package/dist/fonts.js.map +0 -1
  167. package/dist/hooks/use-capped-frame.d.ts.map +0 -1
  168. package/dist/hooks/use-capped-frame.js.map +0 -1
  169. package/dist/hooks/use-css-var-dims.d.ts.map +0 -1
  170. package/dist/hooks/use-css-var-dims.js.map +0 -1
  171. package/dist/hooks/use-gpu-tier.d.ts.map +0 -1
  172. package/dist/hooks/use-gpu-tier.js.map +0 -1
  173. package/dist/hooks/use-render-loop.d.ts.map +0 -1
  174. package/dist/hooks/use-render-loop.js.map +0 -1
  175. package/dist/hooks/use-smooth-controls.d.ts.map +0 -1
  176. package/dist/hooks/use-smooth-controls.js.map +0 -1
  177. package/dist/index.d.ts.map +0 -1
  178. package/dist/index.js.map +0 -1
  179. package/dist/ui/basic-page.d.ts.map +0 -1
  180. package/dist/ui/basic-page.js.map +0 -1
  181. package/dist/ui/components/animated-count.d.ts.map +0 -1
  182. package/dist/ui/components/animated-count.js.map +0 -1
  183. package/dist/ui/components/ascii.d.ts.map +0 -1
  184. package/dist/ui/components/ascii.js.map +0 -1
  185. package/dist/ui/components/badge.d.ts.map +0 -1
  186. package/dist/ui/components/badge.js.map +0 -1
  187. package/dist/ui/components/badges/nous-girl.d.ts.map +0 -1
  188. package/dist/ui/components/badges/nous-girl.js.map +0 -1
  189. package/dist/ui/components/blend-mode.d.ts.map +0 -1
  190. package/dist/ui/components/blend-mode.js.map +0 -1
  191. package/dist/ui/components/blink.d.ts.map +0 -1
  192. package/dist/ui/components/blink.js.map +0 -1
  193. package/dist/ui/components/button.d.ts.map +0 -1
  194. package/dist/ui/components/button.js.map +0 -1
  195. package/dist/ui/components/command-block.d.ts.map +0 -1
  196. package/dist/ui/components/command-block.js.map +0 -1
  197. package/dist/ui/components/cursor.d.ts.map +0 -1
  198. package/dist/ui/components/cursor.js.map +0 -1
  199. package/dist/ui/components/dropdown-menu.d.ts.map +0 -1
  200. package/dist/ui/components/dropdown-menu.js.map +0 -1
  201. package/dist/ui/components/fit-text/index.d.ts.map +0 -1
  202. package/dist/ui/components/fit-text/index.js.map +0 -1
  203. package/dist/ui/components/graphs/bar-chart.d.ts.map +0 -1
  204. package/dist/ui/components/graphs/bar-chart.js.map +0 -1
  205. package/dist/ui/components/graphs/index.d.ts.map +0 -1
  206. package/dist/ui/components/graphs/index.js.map +0 -1
  207. package/dist/ui/components/graphs/line-chart.d.ts.map +0 -1
  208. package/dist/ui/components/graphs/line-chart.js.map +0 -1
  209. package/dist/ui/components/graphs/utils.d.ts.map +0 -1
  210. package/dist/ui/components/graphs/utils.js.map +0 -1
  211. package/dist/ui/components/grid/index.d.ts.map +0 -1
  212. package/dist/ui/components/grid/index.js.map +0 -1
  213. package/dist/ui/components/hover-bg.d.ts.map +0 -1
  214. package/dist/ui/components/hover-bg.js.map +0 -1
  215. package/dist/ui/components/icons/arrow.d.ts.map +0 -1
  216. package/dist/ui/components/icons/arrow.js.map +0 -1
  217. package/dist/ui/components/icons/chevron.d.ts.map +0 -1
  218. package/dist/ui/components/icons/chevron.js.map +0 -1
  219. package/dist/ui/components/icons/discord.d.ts.map +0 -1
  220. package/dist/ui/components/icons/discord.js.map +0 -1
  221. package/dist/ui/components/icons/eye.d.ts.map +0 -1
  222. package/dist/ui/components/icons/eye.js.map +0 -1
  223. package/dist/ui/components/icons/gear.d.ts.map +0 -1
  224. package/dist/ui/components/icons/gear.js.map +0 -1
  225. package/dist/ui/components/icons/github.d.ts.map +0 -1
  226. package/dist/ui/components/icons/github.js.map +0 -1
  227. package/dist/ui/components/icons/hamburger.d.ts.map +0 -1
  228. package/dist/ui/components/icons/hamburger.js.map +0 -1
  229. package/dist/ui/components/icons/heart.d.ts.map +0 -1
  230. package/dist/ui/components/icons/heart.js.map +0 -1
  231. package/dist/ui/components/icons/index.d.ts.map +0 -1
  232. package/dist/ui/components/icons/index.js.map +0 -1
  233. package/dist/ui/components/icons/link.d.ts.map +0 -1
  234. package/dist/ui/components/icons/link.js.map +0 -1
  235. package/dist/ui/components/icons/minus.d.ts.map +0 -1
  236. package/dist/ui/components/icons/minus.js.map +0 -1
  237. package/dist/ui/components/icons/search.d.ts.map +0 -1
  238. package/dist/ui/components/icons/search.js.map +0 -1
  239. package/dist/ui/components/image-distortion.d.ts.map +0 -1
  240. package/dist/ui/components/image-distortion.js.map +0 -1
  241. package/dist/ui/components/leva-client.d.ts.map +0 -1
  242. package/dist/ui/components/leva-client.js.map +0 -1
  243. package/dist/ui/components/list-item.d.ts.map +0 -1
  244. package/dist/ui/components/list-item.js.map +0 -1
  245. package/dist/ui/components/modal/index.d.ts.map +0 -1
  246. package/dist/ui/components/modal/index.js.map +0 -1
  247. package/dist/ui/components/overlays/blend-modes.d.ts.map +0 -1
  248. package/dist/ui/components/overlays/blend-modes.js.map +0 -1
  249. package/dist/ui/components/overlays/glitch.d.ts.map +0 -1
  250. package/dist/ui/components/overlays/glitch.js.map +0 -1
  251. package/dist/ui/components/overlays/greys.d.ts.map +0 -1
  252. package/dist/ui/components/overlays/greys.js.map +0 -1
  253. package/dist/ui/components/overlays/index.d.ts.map +0 -1
  254. package/dist/ui/components/overlays/index.js.map +0 -1
  255. package/dist/ui/components/overlays/lens-layers.d.ts.map +0 -1
  256. package/dist/ui/components/overlays/lens-layers.js.map +0 -1
  257. package/dist/ui/components/overlays/lens.d.ts.map +0 -1
  258. package/dist/ui/components/overlays/lens.js.map +0 -1
  259. package/dist/ui/components/overlays/noise.d.ts.map +0 -1
  260. package/dist/ui/components/overlays/noise.js.map +0 -1
  261. package/dist/ui/components/overlays/vignette.d.ts.map +0 -1
  262. package/dist/ui/components/overlays/vignette.js.map +0 -1
  263. package/dist/ui/components/poster.d.ts.map +0 -1
  264. package/dist/ui/components/poster.js.map +0 -1
  265. package/dist/ui/components/progress.d.ts.map +0 -1
  266. package/dist/ui/components/progress.js.map +0 -1
  267. package/dist/ui/components/scene-canvas.d.ts.map +0 -1
  268. package/dist/ui/components/scene-canvas.js.map +0 -1
  269. package/dist/ui/components/scramble.d.ts.map +0 -1
  270. package/dist/ui/components/scramble.js.map +0 -1
  271. package/dist/ui/components/segmented.d.ts.map +0 -1
  272. package/dist/ui/components/segmented.js.map +0 -1
  273. package/dist/ui/components/select.d.ts.map +0 -1
  274. package/dist/ui/components/select.js.map +0 -1
  275. package/dist/ui/components/selection-switcher.d.ts.map +0 -1
  276. package/dist/ui/components/selection-switcher.js.map +0 -1
  277. package/dist/ui/components/shader.d.ts.map +0 -1
  278. package/dist/ui/components/shader.js.map +0 -1
  279. package/dist/ui/components/socials.d.ts.map +0 -1
  280. package/dist/ui/components/socials.js.map +0 -1
  281. package/dist/ui/components/spinner.d.ts.map +0 -1
  282. package/dist/ui/components/spinner.js.map +0 -1
  283. package/dist/ui/components/stats.d.ts.map +0 -1
  284. package/dist/ui/components/stats.js.map +0 -1
  285. package/dist/ui/components/switch.d.ts.map +0 -1
  286. package/dist/ui/components/switch.js.map +0 -1
  287. package/dist/ui/components/tabs.d.ts.map +0 -1
  288. package/dist/ui/components/tabs.js.map +0 -1
  289. package/dist/ui/components/terminal-demo.d.ts.map +0 -1
  290. package/dist/ui/components/terminal-demo.js.map +0 -1
  291. package/dist/ui/components/theme-toggle.d.ts.map +0 -1
  292. package/dist/ui/components/theme-toggle.js.map +0 -1
  293. package/dist/ui/components/tier-card.d.ts.map +0 -1
  294. package/dist/ui/components/tier-card.js.map +0 -1
  295. package/dist/ui/components/tv.d.ts.map +0 -1
  296. package/dist/ui/components/tv.js.map +0 -1
  297. package/dist/ui/components/typography/h1.d.ts.map +0 -1
  298. package/dist/ui/components/typography/h1.js.map +0 -1
  299. package/dist/ui/components/typography/h2.d.ts.map +0 -1
  300. package/dist/ui/components/typography/h2.js.map +0 -1
  301. package/dist/ui/components/typography/index.d.ts.map +0 -1
  302. package/dist/ui/components/typography/index.js.map +0 -1
  303. package/dist/ui/components/typography/legend.d.ts.map +0 -1
  304. package/dist/ui/components/typography/legend.js.map +0 -1
  305. package/dist/ui/components/typography/small.d.ts.map +0 -1
  306. package/dist/ui/components/typography/small.js.map +0 -1
  307. package/dist/ui/components/watchlist.d.ts.map +0 -1
  308. package/dist/ui/components/watchlist.js.map +0 -1
  309. package/dist/ui/footer.d.ts.map +0 -1
  310. package/dist/ui/footer.js.map +0 -1
  311. package/dist/ui/header.d.ts.map +0 -1
  312. package/dist/ui/header.js.map +0 -1
  313. package/dist/ui/layout-wrapper.d.ts.map +0 -1
  314. package/dist/ui/layout-wrapper.js.map +0 -1
  315. package/dist/utils/color.d.ts.map +0 -1
  316. package/dist/utils/color.js.map +0 -1
  317. package/dist/utils/index.d.ts.map +0 -1
  318. package/dist/utils/index.js.map +0 -1
  319. package/dist/utils/poly.d.ts.map +0 -1
  320. package/dist/utils/poly.js.map +0 -1
@@ -1,57 +1,96 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useEffect, useRef } from 'react';
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useRef } from "react";
4
4
  const INTERACTIVE = 'a, button, [role="button"], input, textarea, select, [data-cursor]';
5
- const HAND = 'M6.84 21.83c-.47-.6-1.05-1.82-2.07-3.34-.58-.83-2.01-2.41-2.45-3.23a2.1 2.1 0 0 1-.25-1.67 2.2 2.2 0 0 1 2.39-1.67c.85.18 1.63.6 2.25 1.2.43.41.82.85 1.18 1.32.27.34.33.47.63.85.3.39.5.77.35.2-.11-.83-.31-2.23-.6-3.48-.21-.95-.26-1.1-.46-1.82s-.32-1.32-.54-2.13c-.2-.8-.35-1.62-.46-2.44a4.7 4.7 0 0 1 .43-3.08c.58-.55 1.44-.7 2.17-.37a4.4 4.4 0 0 1 1.57 2.17c.43 1.07.72 2.19.86 3.33.27 1.67.79 4.1.8 4.6 0-.61-.11-1.91 0-2.5.12-.6.54-1.1 1.12-1.33.5-.15 1.02-.19 1.53-.1.52.1.98.4 1.29.83.38.98.6 2 .63 3.05.04-.91.2-1.82.47-2.7.28-.39.68-.67 1.15-.8.55-.1 1.11-.1 1.66 0 .46.15.85.44 1.14.82.35.88.56 1.82.63 2.77 0 .23.12-.65.48-1.24a1.67 1.67 0 1 1 3.17 1.07v3.77c-.06.97-.2 1.94-.4 2.9-.29.85-.7 1.65-1.2 2.38-.8.9-1.48 1.92-1.98 3.02a6.67 6.67 0 0 0 .03 3.2c-.68.07-1.37.07-2.05 0-.65-.1-1.45-1.4-1.67-1.8a.63.63 0 0 0-1.13 0c-.37.64-1.18 1.79-1.75 1.85-1.12.14-3.42 0-5.23 0 0 0 .3-1.66-.39-2.27-.68-.6-1.38-1.3-1.9-1.76l-1.4-1.6Z';
5
+ const HAND = "M6.84 21.83c-.47-.6-1.05-1.82-2.07-3.34-.58-.83-2.01-2.41-2.45-3.23a2.1 2.1 0 0 1-.25-1.67 2.2 2.2 0 0 1 2.39-1.67c.85.18 1.63.6 2.25 1.2.43.41.82.85 1.18 1.32.27.34.33.47.63.85.3.39.5.77.35.2-.11-.83-.31-2.23-.6-3.48-.21-.95-.26-1.1-.46-1.82s-.32-1.32-.54-2.13c-.2-.8-.35-1.62-.46-2.44a4.7 4.7 0 0 1 .43-3.08c.58-.55 1.44-.7 2.17-.37a4.4 4.4 0 0 1 1.57 2.17c.43 1.07.72 2.19.86 3.33.27 1.67.79 4.1.8 4.6 0-.61-.11-1.91 0-2.5.12-.6.54-1.1 1.12-1.33.5-.15 1.02-.19 1.53-.1.52.1.98.4 1.29.83.38.98.6 2 .63 3.05.04-.91.2-1.82.47-2.7.28-.39.68-.67 1.15-.8.55-.1 1.11-.1 1.66 0 .46.15.85.44 1.14.82.35.88.56 1.82.63 2.77 0 .23.12-.65.48-1.24a1.67 1.67 0 1 1 3.17 1.07v3.77c-.06.97-.2 1.94-.4 2.9-.29.85-.7 1.65-1.2 2.38-.8.9-1.48 1.92-1.98 3.02a6.67 6.67 0 0 0 .03 3.2c-.68.07-1.37.07-2.05 0-.65-.1-1.45-1.4-1.67-1.8a.63.63 0 0 0-1.13 0c-.37.64-1.18 1.79-1.75 1.85-1.12.14-3.42 0-5.23 0 0 0 .3-1.66-.39-2.27-.68-.6-1.38-1.3-1.9-1.76l-1.4-1.6Z";
6
6
  export function Cursor({ scale = 0.8 }) {
7
- const $root = useRef(null);
8
- const $arrow = useRef(null);
9
- const $ptr = useRef(null);
10
- useEffect(() => {
11
- const [root, arrow, ptr] = [$root.current, $arrow.current, $ptr.current];
12
- if (!root || !arrow || !ptr) {
13
- return;
14
- }
15
- const on = (el, ev, fn, opts) => {
16
- el.addEventListener(ev, fn, opts);
17
- return () => el.removeEventListener(ev, fn);
18
- };
19
- return [
20
- on(document, 'mousemove', (e) => {
21
- const { clientX: x, clientY: y } = e;
22
- root.style.translate = `${x}px ${y}px`;
23
- root.style.opacity = '1';
24
- }, { passive: true }),
25
- on(document, 'mouseover', (e) => {
26
- const isPtr = !!e.target.closest?.(INTERACTIVE);
27
- arrow.style.opacity = isPtr ? '0' : '1';
28
- ptr.style.opacity = isPtr ? '1' : '0';
29
- }, { passive: true }),
30
- on(document, 'mousedown', () => {
31
- root.style.transform = 'translate(1px, 1px)';
32
- }),
33
- on(document, 'mouseup', () => {
34
- root.style.transform = '';
35
- }),
36
- on(document.documentElement, 'mouseleave', () => {
37
- root.style.opacity = '0';
38
- }),
39
- on(document.documentElement, 'mouseenter', () => {
40
- root.style.opacity = '1';
41
- })
42
- ].reduce((_, fn) => fn, undefined);
43
- }, []);
44
- return (_jsxs("div", { "aria-hidden": true, ref: $root, style: {
45
- filter: 'drop-shadow(1px 2px 0 #000)',
46
- height: 32 * scale,
47
- left: 0,
48
- opacity: 0,
49
- pointerEvents: 'none',
50
- position: 'fixed',
51
- top: 0,
52
- width: 32 * scale,
53
- willChange: 'translate',
54
- zIndex: 9999
55
- }, children: [_jsx("div", { ref: $arrow, style: { inset: 0, position: 'absolute' }, children: _jsx("svg", { viewBox: "0 0 16 16", children: _jsx("path", { d: "M1 1L1 14L5 10L8 15L10 14L7 9L12 9L1 1Z", fill: "#fff", stroke: "#000", strokeLinejoin: "round", strokeWidth: 1 }) }) }), _jsx("div", { ref: $ptr, style: { inset: 0, opacity: 0, position: 'absolute' }, children: _jsx("svg", { viewBox: "0 0 28 29", children: _jsx("path", { d: HAND, fill: "#fff", stroke: "#000", strokeLinejoin: "round", strokeWidth: 2, style: { paintOrder: 'stroke fill' } }) }) })] }));
7
+ const $root = useRef(null);
8
+ const $arrow = useRef(null);
9
+ const $ptr = useRef(null);
10
+ useEffect(() => {
11
+ const [root, arrow, ptr] = [$root.current, $arrow.current, $ptr.current];
12
+ if (!root || !arrow || !ptr) {
13
+ return;
14
+ }
15
+ const on = (el, ev, fn, opts) => {
16
+ el.addEventListener(ev, fn, opts);
17
+ return () => el.removeEventListener(ev, fn);
18
+ };
19
+ return [
20
+ on(
21
+ document,
22
+ "mousemove",
23
+ (e) => {
24
+ const { clientX: x, clientY: y } = e;
25
+ root.style.translate = `${x}px ${y}px`;
26
+ root.style.opacity = "1";
27
+ },
28
+ { passive: true }
29
+ ),
30
+ on(
31
+ document,
32
+ "mouseover",
33
+ (e) => {
34
+ const isPtr = !!e.target.closest?.(INTERACTIVE);
35
+ arrow.style.opacity = isPtr ? "0" : "1";
36
+ ptr.style.opacity = isPtr ? "1" : "0";
37
+ },
38
+ { passive: true }
39
+ ),
40
+ on(document, "mousedown", () => {
41
+ root.style.transform = "translate(1px, 1px)";
42
+ }),
43
+ on(document, "mouseup", () => {
44
+ root.style.transform = "";
45
+ }),
46
+ on(document.documentElement, "mouseleave", () => {
47
+ root.style.opacity = "0";
48
+ }),
49
+ on(document.documentElement, "mouseenter", () => {
50
+ root.style.opacity = "1";
51
+ })
52
+ ].reduce((_, fn) => fn, void 0);
53
+ }, []);
54
+ return /* @__PURE__ */ jsxs(
55
+ "div",
56
+ {
57
+ "aria-hidden": true,
58
+ ref: $root,
59
+ style: {
60
+ filter: "drop-shadow(1px 2px 0 #000)",
61
+ height: 32 * scale,
62
+ left: 0,
63
+ opacity: 0,
64
+ pointerEvents: "none",
65
+ position: "fixed",
66
+ top: 0,
67
+ width: 32 * scale,
68
+ willChange: "translate",
69
+ zIndex: 9999
70
+ },
71
+ children: [
72
+ /* @__PURE__ */ jsx("div", { ref: $arrow, style: { inset: 0, position: "absolute" }, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(
73
+ "path",
74
+ {
75
+ d: "M1 1L1 14L5 10L8 15L10 14L7 9L12 9L1 1Z",
76
+ fill: "#fff",
77
+ stroke: "#000",
78
+ strokeLinejoin: "round",
79
+ strokeWidth: 1
80
+ }
81
+ ) }) }),
82
+ /* @__PURE__ */ jsx("div", { ref: $ptr, style: { inset: 0, opacity: 0, position: "absolute" }, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 28 29", children: /* @__PURE__ */ jsx(
83
+ "path",
84
+ {
85
+ d: HAND,
86
+ fill: "#fff",
87
+ stroke: "#000",
88
+ strokeLinejoin: "round",
89
+ strokeWidth: 2,
90
+ style: { paintOrder: "stroke fill" }
91
+ }
92
+ ) }) })
93
+ ]
94
+ }
95
+ );
56
96
  }
57
- //# sourceMappingURL=cursor.js.map
@@ -8,6 +8,5 @@ export declare function DropdownMenu<T extends string>({ className, direction, o
8
8
  value: T;
9
9
  }[];
10
10
  value: T;
11
- }): import("react/jsx-runtime").JSX.Element;
11
+ }): import("react").JSX.Element;
12
12
  export {};
13
- //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -1,53 +1,101 @@
1
- 'use client';
2
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
3
- import { useEffect, useId, useRef, useState } from 'react';
4
- import { cn } from '../../utils';
5
- const font = 'font-mondwest text-[.9375rem] leading-[1.4] tracking-[0.1875rem]';
6
- export function DropdownMenu({ className, direction = 'down', onChange, options, value }) {
7
- const id = useId();
8
- const [open, setOpen] = useState(false);
9
- const ref = useRef(null);
10
- const anchor = `--dropdown-${id.replace(/:/g, '')}`;
11
- const panelStyle = {
12
- position: 'fixed',
13
- positionAnchor: anchor,
14
- positionTryFallbacks: direction === 'left' || direction === 'right'
15
- ? 'flip-inline, flip-block'
16
- : 'flip-block, flip-inline',
17
- ...(direction === 'up' && {
18
- left: 'calc(anchor(left) - 0.5rem)',
19
- top: 'calc(anchor(top) + 1rem)',
20
- transform: 'translateY(-100%)'
21
- }),
22
- ...(direction === 'right' && {
23
- left: 'calc(anchor(right))',
24
- top: 'calc(anchor(top) - 0.5rem)'
25
- }),
26
- ...(direction === 'left' && {
27
- left: 'calc(anchor(left) - 1px)',
28
- top: 'calc(anchor(top) - 0.5rem)',
29
- transform: 'translateX(-100%)'
30
- }),
31
- ...(direction === 'down' && {
32
- left: 'calc(anchor(left) - 0.5rem)',
33
- top: 'calc(anchor(top) - 0.5rem)'
34
- })
35
- };
36
- useEffect(() => {
37
- if (!open) {
38
- return;
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useId, useRef, useState } from "react";
4
+ import { cn } from "../../utils/index.js";
5
+ const font = "font-mondwest text-[.9375rem] leading-[1.4] tracking-[0.1875rem]";
6
+ export function DropdownMenu({
7
+ className,
8
+ direction = "down",
9
+ onChange,
10
+ options,
11
+ value
12
+ }) {
13
+ const id = useId();
14
+ const [open, setOpen] = useState(false);
15
+ const ref = useRef(null);
16
+ const anchor = `--dropdown-${id.replace(/:/g, "")}`;
17
+ const panelStyle = {
18
+ position: "fixed",
19
+ positionAnchor: anchor,
20
+ positionTryFallbacks: direction === "left" || direction === "right" ? "flip-inline, flip-block" : "flip-block, flip-inline",
21
+ ...direction === "up" && {
22
+ left: "calc(anchor(left) - 0.5rem)",
23
+ top: "calc(anchor(top) + 1rem)",
24
+ transform: "translateY(-100%)"
25
+ },
26
+ ...direction === "right" && {
27
+ left: "calc(anchor(right))",
28
+ top: "calc(anchor(top) - 0.5rem)"
29
+ },
30
+ ...direction === "left" && {
31
+ left: "calc(anchor(left) - 1px)",
32
+ top: "calc(anchor(top) - 0.5rem)",
33
+ transform: "translateX(-100%)"
34
+ },
35
+ ...direction === "down" && {
36
+ left: "calc(anchor(left) - 0.5rem)",
37
+ top: "calc(anchor(top) - 0.5rem)"
38
+ }
39
+ };
40
+ useEffect(() => {
41
+ if (!open) {
42
+ return;
43
+ }
44
+ const ac = new AbortController();
45
+ document.addEventListener(
46
+ "mousedown",
47
+ (e) => {
48
+ if (!ref.current?.contains(e.target)) {
49
+ setOpen(false);
39
50
  }
40
- const ac = new AbortController();
41
- document.addEventListener('mousedown', e => {
42
- if (!ref.current?.contains(e.target)) {
43
- setOpen(false);
44
- }
45
- }, { signal: ac.signal });
46
- return () => ac.abort();
47
- }, [open]);
48
- return (_jsxs("span", { className: cn('relative inline-block align-top', className), ref: ref, children: [_jsxs("span", { className: cn(font, 'inline-block cursor-pointer hover:underline'), onClick: () => setOpen(!open), style: { anchorName: anchor }, children: [options.find(o => o.value === value)?.label ?? value, ' ', open ? '↑' : '↓'] }), open && (_jsx("div", { className: "bg-background-base z-50 flex flex-col", style: panelStyle, children: options.map(o => (_jsx("span", { className: cn(font, 'block cursor-pointer p-2 whitespace-nowrap', o.value === value ? 'underline' : 'hover:bg-midground/10'), onClick: () => {
49
- onChange(o.value);
50
- setOpen(false);
51
- }, children: o.label }, o.value))) }))] }));
51
+ },
52
+ { signal: ac.signal }
53
+ );
54
+ return () => ac.abort();
55
+ }, [open]);
56
+ return /* @__PURE__ */ jsxs(
57
+ "span",
58
+ {
59
+ className: cn("relative inline-block align-top", className),
60
+ ref,
61
+ children: [
62
+ /* @__PURE__ */ jsxs(
63
+ "span",
64
+ {
65
+ className: cn(font, "inline-block cursor-pointer hover:underline"),
66
+ onClick: () => setOpen(!open),
67
+ style: { anchorName: anchor },
68
+ children: [
69
+ options.find((o) => o.value === value)?.label ?? value,
70
+ " ",
71
+ open ? "\u2191" : "\u2193"
72
+ ]
73
+ }
74
+ ),
75
+ open && /* @__PURE__ */ jsx(
76
+ "div",
77
+ {
78
+ className: "bg-background-base z-50 flex flex-col",
79
+ style: panelStyle,
80
+ children: options.map((o) => /* @__PURE__ */ jsx(
81
+ "span",
82
+ {
83
+ className: cn(
84
+ font,
85
+ "block cursor-pointer p-2 whitespace-nowrap",
86
+ o.value === value ? "underline" : "hover:bg-midground/10"
87
+ ),
88
+ onClick: () => {
89
+ onChange(o.value);
90
+ setOpen(false);
91
+ },
92
+ children: o.label
93
+ },
94
+ o.value
95
+ ))
96
+ }
97
+ )
98
+ ]
99
+ }
100
+ );
52
101
  }
53
- //# sourceMappingURL=dropdown-menu.js.map
@@ -7,4 +7,3 @@ interface OwnProps {
7
7
  }
8
8
  export type FitTextProps<T extends React.ElementType = 'span'> = PolyProps<T, OwnProps>;
9
9
  export {};
10
- //# sourceMappingURL=index.d.ts.map
@@ -1,16 +1,24 @@
1
- 'use client';
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { createElement } from 'react';
4
- import { cn, polyRef } from '../../../utils';
5
- export const FitText = polyRef(({ as, children, className, max, min = '1em', style: baseStyle, ...rest }, ref) => {
6
- if (typeof children !== 'string') {
7
- return null;
1
+ "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { createElement } from "react";
4
+ import { cn, polyRef } from "../../../utils/index.js";
5
+ export const FitText = polyRef(
6
+ ({ as, children, className, max, min = "1em", style: baseStyle, ...rest }, ref) => {
7
+ if (typeof children !== "string") {
8
+ return null;
8
9
  }
9
10
  const style = {
10
- '--fit-max': max ?? 'infinity * 1px',
11
- '--fit-min': min,
12
- ...baseStyle
11
+ "--fit-max": max ?? "infinity * 1px",
12
+ "--fit-min": min,
13
+ ...baseStyle
13
14
  };
14
- return createElement((as ?? 'span'), { ...rest, className: cn('fit-text', className), ref, style }, _jsxs(_Fragment, { children: [_jsx("span", { children: _jsx("span", { children: children }) }), _jsx("span", { "aria-hidden": "true", children: children })] }));
15
- });
16
- //# sourceMappingURL=index.js.map
15
+ return createElement(
16
+ as ?? "span",
17
+ { ...rest, className: cn("fit-text", className), ref, style },
18
+ /* @__PURE__ */ jsxs(Fragment, { children: [
19
+ /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx("span", { children }) }),
20
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children })
21
+ ] })
22
+ );
23
+ }
24
+ );
@@ -3,11 +3,10 @@ export declare const BarChart: {
3
3
  (props: Omit<BarChartProps<DataPoint> & {
4
4
  backgroundColor?: string;
5
5
  color?: string;
6
- }, keyof import("../blend-mode").BlendColors>): import("react/jsx-runtime").JSX.Element;
6
+ }, keyof import("../blend-mode").BlendColors>): import("react").JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface BarChartProps<T extends DataPoint> extends ChartProps<T> {
10
10
  xDomain?: [number, number];
11
11
  }
12
12
  export {};
13
- //# sourceMappingURL=bar-chart.d.ts.map
@@ -1,75 +1,128 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import * as Plot from '@observablehq/plot';
4
- import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
5
- import { cn } from '../../../utils';
6
- import { accessor, CHART_MARGINS, CHART_STYLE, Crosshair, setupCrosshair, stylePlot, useDims, withChartBlend } from './utils';
7
- export const BarChart = withChartBlend(({ backgroundColor: _, className, color: fillColor, data = [], formatTooltip, formatX: formatXProp, formatY: formatYProp, x = 'label', xDomain, xTicks = [0, 50000, 100000], y = 'value', yDomain = [0, 10], yTicks = [10, 8, 4, 2], ...props }) => {
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import * as Plot from "@observablehq/plot";
4
+ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
5
+ import { cn } from "../../../utils/index.js";
6
+ import {
7
+ accessor,
8
+ CHART_MARGINS,
9
+ CHART_STYLE,
10
+ Crosshair,
11
+ setupCrosshair,
12
+ stylePlot,
13
+ useDims,
14
+ withChartBlend
15
+ } from "./utils.js";
16
+ export const BarChart = withChartBlend(
17
+ ({
18
+ backgroundColor: _,
19
+ className,
20
+ color: fillColor,
21
+ data = [],
22
+ formatTooltip,
23
+ formatX: formatXProp,
24
+ formatY: formatYProp,
25
+ x = "label",
26
+ xDomain,
27
+ xTicks = [0, 5e4, 1e5],
28
+ y = "value",
29
+ yDomain = [0, 10],
30
+ yTicks = [10, 8, 4, 2],
31
+ ...props
32
+ }) => {
8
33
  const ref = useRef(null);
9
34
  const plotRef = useRef(null);
10
35
  const [crosshair, setCrosshair] = useState({ x: null });
11
36
  const dims = useDims(ref);
12
- const formatX = useCallback((v) => formatXProp?.(v) ??
13
- (typeof v === 'number' ? v.toLocaleString('en-US') : String(v)), [formatXProp]);
14
- const formatY = useCallback((v) => formatYProp?.(v) ?? String(v), [formatYProp]);
37
+ const formatX = useCallback(
38
+ (v) => formatXProp?.(v) ?? (typeof v === "number" ? v.toLocaleString("en-US") : String(v)),
39
+ [formatXProp]
40
+ );
41
+ const formatY = useCallback(
42
+ (v) => formatYProp?.(v) ?? String(v),
43
+ [formatYProp]
44
+ );
15
45
  const getX = useMemo(() => accessor(x), [x]);
16
46
  const getY = useMemo(() => accessor(y), [y]);
17
47
  useEffect(() => {
18
- if (!ref.current ||
19
- !plotRef.current ||
20
- !data.length ||
21
- !dims.h ||
22
- !dims.w) {
23
- return;
48
+ if (!ref.current || !plotRef.current || !data.length || !dims.h || !dims.w) {
49
+ return;
50
+ }
51
+ plotRef.current.innerHTML = "";
52
+ const [xMin, xMax] = [
53
+ xDomain?.[0] ?? 0,
54
+ xDomain?.[1] ?? Math.max(...data.map((d) => getX(d)))
55
+ ];
56
+ const plot = Plot.plot({
57
+ ...CHART_MARGINS,
58
+ height: dims.h,
59
+ marks: [
60
+ Plot.rectY(data, {
61
+ fill: fillColor ?? "currentColor",
62
+ fillOpacity: 0.3,
63
+ interval: (xMax - xMin) / data.length,
64
+ x: getX,
65
+ y: getY
66
+ }),
67
+ Plot.axisX({ tickFormat: formatX, ticks: xTicks })
68
+ ],
69
+ style: CHART_STYLE,
70
+ width: dims.w,
71
+ x: { domain: [xMin, xMax], label: null, type: "linear" },
72
+ y: {
73
+ domain: yDomain,
74
+ grid: true,
75
+ label: null,
76
+ tickFormat: formatY,
77
+ ticks: yTicks
24
78
  }
25
- plotRef.current.innerHTML = '';
26
- const [xMin, xMax] = [
27
- xDomain?.[0] ?? 0,
28
- xDomain?.[1] ?? Math.max(...data.map(d => getX(d)))
29
- ];
30
- const plot = Plot.plot({
31
- ...CHART_MARGINS,
32
- height: dims.h,
33
- marks: [
34
- Plot.rectY(data, {
35
- fill: fillColor ?? 'currentColor',
36
- fillOpacity: 0.3,
37
- interval: (xMax - xMin) / data.length,
38
- x: getX,
39
- y: getY
40
- }),
41
- Plot.axisX({ tickFormat: formatX, ticks: xTicks })
42
- ],
43
- style: CHART_STYLE,
44
- width: dims.w,
45
- x: { domain: [xMin, xMax], label: null, type: 'linear' },
46
- y: {
47
- domain: yDomain,
48
- grid: true,
49
- label: null,
50
- tickFormat: formatY,
51
- ticks: yTicks
52
- }
53
- });
54
- stylePlot(plot);
55
- plotRef.current.appendChild(plot);
56
- const cleanup = setupCrosshair(ref.current, data, d => getX(d), getY, yDomain, d => formatTooltip?.(d) ?? `${formatX(getX(d))}: ${formatY(getY(d))}`, setCrosshair);
57
- return cleanup;
58
- }, [
79
+ });
80
+ stylePlot(plot);
81
+ plotRef.current.appendChild(plot);
82
+ const cleanup = setupCrosshair(
83
+ ref.current,
59
84
  data,
60
- dims.h,
61
- dims.w,
62
- fillColor,
63
- formatTooltip,
64
- formatX,
65
- formatY,
66
- getX,
85
+ (d) => getX(d),
67
86
  getY,
68
- xDomain,
69
- xTicks,
70
87
  yDomain,
71
- yTicks
88
+ (d) => formatTooltip?.(d) ?? `${formatX(getX(d))}: ${formatY(getY(d))}`,
89
+ setCrosshair
90
+ );
91
+ return cleanup;
92
+ }, [
93
+ data,
94
+ dims.h,
95
+ dims.w,
96
+ fillColor,
97
+ formatTooltip,
98
+ formatX,
99
+ formatY,
100
+ getX,
101
+ getY,
102
+ xDomain,
103
+ xTicks,
104
+ yDomain,
105
+ yTicks
72
106
  ]);
73
- return (_jsxs("div", { className: cn('relative aspect-4/1 w-full overflow-clip', className), ref: ref, ...props, children: [_jsx("div", { className: "absolute inset-0", ref: plotRef }), _jsx(Crosshair, { color: fillColor, containerWidth: dims.w, height: dims.h, ...crosshair })] }));
74
- });
75
- //# sourceMappingURL=bar-chart.js.map
107
+ return /* @__PURE__ */ jsxs(
108
+ "div",
109
+ {
110
+ className: cn("relative aspect-4/1 w-full overflow-clip", className),
111
+ ref,
112
+ ...props,
113
+ children: [
114
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0", ref: plotRef }),
115
+ /* @__PURE__ */ jsx(
116
+ Crosshair,
117
+ {
118
+ color: fillColor,
119
+ containerWidth: dims.w,
120
+ height: dims.h,
121
+ ...crosshair
122
+ }
123
+ )
124
+ ]
125
+ }
126
+ );
127
+ }
128
+ );
@@ -1,4 +1,3 @@
1
1
  export { BarChart } from './bar-chart';
2
2
  export { LineChart } from './line-chart';
3
3
  export * from './utils';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,3 @@
1
- export { BarChart } from './bar-chart';
2
- export { LineChart } from './line-chart';
3
- export * from './utils';
4
- //# sourceMappingURL=index.js.map
1
+ export { BarChart } from "./bar-chart.js";
2
+ export { LineChart } from "./line-chart.js";
3
+ export * from "./utils.js";
@@ -3,7 +3,7 @@ export declare const LineChart: {
3
3
  (props: Omit<LineChartProps<DataPoint> & {
4
4
  backgroundColor?: string;
5
5
  color?: string;
6
- }, keyof import("../blend-mode").BlendColors>): import("react/jsx-runtime").JSX.Element;
6
+ }, keyof import("../blend-mode").BlendColors>): import("react").JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  interface LineChartProps<T extends DataPoint> extends ChartProps<T> {
@@ -12,4 +12,3 @@ interface LineChartProps<T extends DataPoint> extends ChartProps<T> {
12
12
  showArea?: boolean;
13
13
  }
14
14
  export {};
15
- //# sourceMappingURL=line-chart.d.ts.map