@coinbase/cds-mobile-visualization 3.8.1 → 4.0.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 (303) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dts/chart/index.d.ts +1 -15
  3. package/dts/chart/index.d.ts.map +1 -1
  4. package/dts/index.d.ts.map +1 -1
  5. package/dts/sparkline/index.d.ts +1 -5
  6. package/dts/sparkline/index.d.ts.map +1 -1
  7. package/esm/chart/index.js +1 -17
  8. package/esm/index.js +1 -3
  9. package/esm/sparkline/index.js +1 -5
  10. package/package.json +26 -20
  11. package/dts/chart/CartesianChart.d.ts +0 -206
  12. package/dts/chart/CartesianChart.d.ts.map +0 -1
  13. package/dts/chart/ChartContextBridge.d.ts +0 -28
  14. package/dts/chart/ChartContextBridge.d.ts.map +0 -1
  15. package/dts/chart/ChartProvider.d.ts +0 -9
  16. package/dts/chart/ChartProvider.d.ts.map +0 -1
  17. package/dts/chart/Path.d.ts +0 -121
  18. package/dts/chart/Path.d.ts.map +0 -1
  19. package/dts/chart/PeriodSelector.d.ts +0 -100
  20. package/dts/chart/PeriodSelector.d.ts.map +0 -1
  21. package/dts/chart/area/Area.d.ts +0 -83
  22. package/dts/chart/area/Area.d.ts.map +0 -1
  23. package/dts/chart/area/AreaChart.d.ts +0 -155
  24. package/dts/chart/area/AreaChart.d.ts.map +0 -1
  25. package/dts/chart/area/DottedArea.d.ts +0 -46
  26. package/dts/chart/area/DottedArea.d.ts.map +0 -1
  27. package/dts/chart/area/GradientArea.d.ts +0 -36
  28. package/dts/chart/area/GradientArea.d.ts.map +0 -1
  29. package/dts/chart/area/SolidArea.d.ts +0 -23
  30. package/dts/chart/area/SolidArea.d.ts.map +0 -1
  31. package/dts/chart/area/index.d.ts +0 -6
  32. package/dts/chart/area/index.d.ts.map +0 -1
  33. package/dts/chart/axis/Axis.d.ts +0 -174
  34. package/dts/chart/axis/Axis.d.ts.map +0 -1
  35. package/dts/chart/axis/DefaultAxisTickLabel.d.ts +0 -8
  36. package/dts/chart/axis/DefaultAxisTickLabel.d.ts.map +0 -1
  37. package/dts/chart/axis/XAxis.d.ts +0 -22
  38. package/dts/chart/axis/XAxis.d.ts.map +0 -1
  39. package/dts/chart/axis/YAxis.d.ts +0 -22
  40. package/dts/chart/axis/YAxis.d.ts.map +0 -1
  41. package/dts/chart/axis/index.d.ts +0 -5
  42. package/dts/chart/axis/index.d.ts.map +0 -1
  43. package/dts/chart/bar/Bar.d.ts +0 -100
  44. package/dts/chart/bar/Bar.d.ts.map +0 -1
  45. package/dts/chart/bar/BarChart.d.ts +0 -158
  46. package/dts/chart/bar/BarChart.d.ts.map +0 -1
  47. package/dts/chart/bar/BarPlot.d.ts +0 -31
  48. package/dts/chart/bar/BarPlot.d.ts.map +0 -1
  49. package/dts/chart/bar/BarStack.d.ts +0 -127
  50. package/dts/chart/bar/BarStack.d.ts.map +0 -1
  51. package/dts/chart/bar/BarStackGroup.d.ts +0 -37
  52. package/dts/chart/bar/BarStackGroup.d.ts.map +0 -1
  53. package/dts/chart/bar/DefaultBar.d.ts +0 -7
  54. package/dts/chart/bar/DefaultBar.d.ts.map +0 -1
  55. package/dts/chart/bar/DefaultBarStack.d.ts +0 -7
  56. package/dts/chart/bar/DefaultBarStack.d.ts.map +0 -1
  57. package/dts/chart/bar/PercentageBarChart.d.ts +0 -106
  58. package/dts/chart/bar/PercentageBarChart.d.ts.map +0 -1
  59. package/dts/chart/bar/index.d.ts +0 -9
  60. package/dts/chart/bar/index.d.ts.map +0 -1
  61. package/dts/chart/gradient/Gradient.d.ts +0 -41
  62. package/dts/chart/gradient/Gradient.d.ts.map +0 -1
  63. package/dts/chart/gradient/index.d.ts +0 -2
  64. package/dts/chart/gradient/index.d.ts.map +0 -1
  65. package/dts/chart/legend/DefaultLegendEntry.d.ts +0 -5
  66. package/dts/chart/legend/DefaultLegendEntry.d.ts.map +0 -1
  67. package/dts/chart/legend/DefaultLegendShape.d.ts +0 -5
  68. package/dts/chart/legend/DefaultLegendShape.d.ts.map +0 -1
  69. package/dts/chart/legend/Legend.d.ts +0 -168
  70. package/dts/chart/legend/Legend.d.ts.map +0 -1
  71. package/dts/chart/legend/index.d.ts +0 -4
  72. package/dts/chart/legend/index.d.ts.map +0 -1
  73. package/dts/chart/line/DefaultReferenceLineLabel.d.ts +0 -9
  74. package/dts/chart/line/DefaultReferenceLineLabel.d.ts.map +0 -1
  75. package/dts/chart/line/DottedLine.d.ts +0 -20
  76. package/dts/chart/line/DottedLine.d.ts.map +0 -1
  77. package/dts/chart/line/Line.d.ts +0 -122
  78. package/dts/chart/line/Line.d.ts.map +0 -1
  79. package/dts/chart/line/LineChart.d.ts +0 -135
  80. package/dts/chart/line/LineChart.d.ts.map +0 -1
  81. package/dts/chart/line/ReferenceLine.d.ts +0 -140
  82. package/dts/chart/line/ReferenceLine.d.ts.map +0 -1
  83. package/dts/chart/line/SolidLine.d.ts +0 -15
  84. package/dts/chart/line/SolidLine.d.ts.map +0 -1
  85. package/dts/chart/line/index.d.ts +0 -7
  86. package/dts/chart/line/index.d.ts.map +0 -1
  87. package/dts/chart/point/DefaultPointLabel.d.ts +0 -10
  88. package/dts/chart/point/DefaultPointLabel.d.ts.map +0 -1
  89. package/dts/chart/point/Point.d.ts +0 -144
  90. package/dts/chart/point/Point.d.ts.map +0 -1
  91. package/dts/chart/point/index.d.ts +0 -3
  92. package/dts/chart/point/index.d.ts.map +0 -1
  93. package/dts/chart/scrubber/DefaultScrubberBeacon.d.ts +0 -38
  94. package/dts/chart/scrubber/DefaultScrubberBeacon.d.ts.map +0 -1
  95. package/dts/chart/scrubber/DefaultScrubberBeaconLabel.d.ts +0 -12
  96. package/dts/chart/scrubber/DefaultScrubberBeaconLabel.d.ts.map +0 -1
  97. package/dts/chart/scrubber/DefaultScrubberLabel.d.ts +0 -12
  98. package/dts/chart/scrubber/DefaultScrubberLabel.d.ts.map +0 -1
  99. package/dts/chart/scrubber/Scrubber.d.ts +0 -302
  100. package/dts/chart/scrubber/Scrubber.d.ts.map +0 -1
  101. package/dts/chart/scrubber/ScrubberAccessibilityView.d.ts +0 -12
  102. package/dts/chart/scrubber/ScrubberAccessibilityView.d.ts.map +0 -1
  103. package/dts/chart/scrubber/ScrubberBeaconGroup.d.ts +0 -54
  104. package/dts/chart/scrubber/ScrubberBeaconGroup.d.ts.map +0 -1
  105. package/dts/chart/scrubber/ScrubberBeaconLabelGroup.d.ts +0 -46
  106. package/dts/chart/scrubber/ScrubberBeaconLabelGroup.d.ts.map +0 -1
  107. package/dts/chart/scrubber/ScrubberProvider.d.ts +0 -20
  108. package/dts/chart/scrubber/ScrubberProvider.d.ts.map +0 -1
  109. package/dts/chart/scrubber/index.d.ts +0 -5
  110. package/dts/chart/scrubber/index.d.ts.map +0 -1
  111. package/dts/chart/text/ChartText.d.ts +0 -164
  112. package/dts/chart/text/ChartText.d.ts.map +0 -1
  113. package/dts/chart/text/ChartTextGroup.d.ts +0 -61
  114. package/dts/chart/text/ChartTextGroup.d.ts.map +0 -1
  115. package/dts/chart/text/index.d.ts +0 -3
  116. package/dts/chart/text/index.d.ts.map +0 -1
  117. package/dts/chart/utils/axis.d.ts +0 -387
  118. package/dts/chart/utils/axis.d.ts.map +0 -1
  119. package/dts/chart/utils/bar.d.ts +0 -225
  120. package/dts/chart/utils/bar.d.ts.map +0 -1
  121. package/dts/chart/utils/chart.d.ts +0 -165
  122. package/dts/chart/utils/chart.d.ts.map +0 -1
  123. package/dts/chart/utils/context.d.ts +0 -131
  124. package/dts/chart/utils/context.d.ts.map +0 -1
  125. package/dts/chart/utils/gradient.d.ts +0 -129
  126. package/dts/chart/utils/gradient.d.ts.map +0 -1
  127. package/dts/chart/utils/index.d.ts +0 -11
  128. package/dts/chart/utils/index.d.ts.map +0 -1
  129. package/dts/chart/utils/path.d.ts +0 -186
  130. package/dts/chart/utils/path.d.ts.map +0 -1
  131. package/dts/chart/utils/point.d.ts +0 -146
  132. package/dts/chart/utils/point.d.ts.map +0 -1
  133. package/dts/chart/utils/scale.d.ts +0 -145
  134. package/dts/chart/utils/scale.d.ts.map +0 -1
  135. package/dts/chart/utils/scrubber.d.ts +0 -40
  136. package/dts/chart/utils/scrubber.d.ts.map +0 -1
  137. package/dts/chart/utils/transition.d.ts +0 -181
  138. package/dts/chart/utils/transition.d.ts.map +0 -1
  139. package/dts/sparkline/Counter.d.ts +0 -8
  140. package/dts/sparkline/Counter.d.ts.map +0 -1
  141. package/dts/sparkline/Sparkline.d.ts +0 -74
  142. package/dts/sparkline/Sparkline.d.ts.map +0 -1
  143. package/dts/sparkline/SparklineArea.d.ts +0 -15
  144. package/dts/sparkline/SparklineArea.d.ts.map +0 -1
  145. package/dts/sparkline/SparklineAreaPattern.d.ts +0 -14
  146. package/dts/sparkline/SparklineAreaPattern.d.ts.map +0 -1
  147. package/dts/sparkline/SparklineGradient.d.ts +0 -24
  148. package/dts/sparkline/SparklineGradient.d.ts.map +0 -1
  149. package/dts/sparkline/__figma__/Sparkline.figma.d.ts +0 -2
  150. package/dts/sparkline/__figma__/Sparkline.figma.d.ts.map +0 -1
  151. package/dts/sparkline/generateSparklineWithId.d.ts +0 -11
  152. package/dts/sparkline/generateSparklineWithId.d.ts.map +0 -1
  153. package/dts/sparkline/sparkline-interactive/SparklineAccessibleView.d.ts +0 -23
  154. package/dts/sparkline/sparkline-interactive/SparklineAccessibleView.d.ts.map +0 -1
  155. package/dts/sparkline/sparkline-interactive/SparklineInteractive.d.ts +0 -185
  156. package/dts/sparkline/sparkline-interactive/SparklineInteractive.d.ts.map +0 -1
  157. package/dts/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.d.ts +0 -25
  158. package/dts/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.d.ts.map +0 -1
  159. package/dts/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.d.ts +0 -28
  160. package/dts/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.d.ts.map +0 -1
  161. package/dts/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.d.ts +0 -13
  162. package/dts/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.d.ts.map +0 -1
  163. package/dts/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.d.ts +0 -17
  164. package/dts/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.d.ts.map +0 -1
  165. package/dts/sparkline/sparkline-interactive/SparklineInteractiveMinMax.d.ts +0 -11
  166. package/dts/sparkline/sparkline-interactive/SparklineInteractiveMinMax.d.ts.map +0 -1
  167. package/dts/sparkline/sparkline-interactive/SparklineInteractivePanGestureHandler.d.ts +0 -26
  168. package/dts/sparkline/sparkline-interactive/SparklineInteractivePanGestureHandler.d.ts.map +0 -1
  169. package/dts/sparkline/sparkline-interactive/SparklineInteractivePaths.d.ts +0 -25
  170. package/dts/sparkline/sparkline-interactive/SparklineInteractivePaths.d.ts.map +0 -1
  171. package/dts/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.d.ts +0 -25
  172. package/dts/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.d.ts.map +0 -1
  173. package/dts/sparkline/sparkline-interactive/SparklineInteractiveProvider.d.ts +0 -39
  174. package/dts/sparkline/sparkline-interactive/SparklineInteractiveProvider.d.ts.map +0 -1
  175. package/dts/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.d.ts +0 -31
  176. package/dts/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.d.ts.map +0 -1
  177. package/dts/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts +0 -2
  178. package/dts/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.d.ts.map +0 -1
  179. package/dts/sparkline/sparkline-interactive/useInterruptiblePathAnimation.d.ts +0 -13
  180. package/dts/sparkline/sparkline-interactive/useInterruptiblePathAnimation.d.ts.map +0 -1
  181. package/dts/sparkline/sparkline-interactive/useMinMaxTransform.d.ts +0 -16
  182. package/dts/sparkline/sparkline-interactive/useMinMaxTransform.d.ts.map +0 -1
  183. package/dts/sparkline/sparkline-interactive/useOpacityAnimation.d.ts +0 -6
  184. package/dts/sparkline/sparkline-interactive/useOpacityAnimation.d.ts.map +0 -1
  185. package/dts/sparkline/sparkline-interactive/useSparklineInteractiveConstants.d.ts +0 -22
  186. package/dts/sparkline/sparkline-interactive/useSparklineInteractiveConstants.d.ts.map +0 -1
  187. package/dts/sparkline/sparkline-interactive/useSparklineInteractiveLineStyles.d.ts +0 -34
  188. package/dts/sparkline/sparkline-interactive/useSparklineInteractiveLineStyles.d.ts.map +0 -1
  189. package/dts/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts +0 -118
  190. package/dts/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.d.ts.map +0 -1
  191. package/dts/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts +0 -2
  192. package/dts/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.d.ts.map +0 -1
  193. package/dts/sparkline/sparkline-interactive-header/useSparklineInteractiveHeaderStyles.d.ts +0 -29
  194. package/dts/sparkline/sparkline-interactive-header/useSparklineInteractiveHeaderStyles.d.ts.map +0 -1
  195. package/esm/chart/CartesianChart.js +0 -431
  196. package/esm/chart/ChartContextBridge.js +0 -159
  197. package/esm/chart/ChartProvider.js +0 -10
  198. package/esm/chart/Path.js +0 -255
  199. package/esm/chart/PeriodSelector.js +0 -139
  200. package/esm/chart/__stories__/CartesianChart.stories.js +0 -659
  201. package/esm/chart/__stories__/ChartAccessibility.stories.js +0 -721
  202. package/esm/chart/__stories__/ChartTransitions.stories.js +0 -693
  203. package/esm/chart/__stories__/PeriodSelector.stories.js +0 -420
  204. package/esm/chart/area/Area.js +0 -85
  205. package/esm/chart/area/AreaChart.js +0 -152
  206. package/esm/chart/area/DottedArea.js +0 -92
  207. package/esm/chart/area/GradientArea.js +0 -63
  208. package/esm/chart/area/SolidArea.js +0 -45
  209. package/esm/chart/area/__stories__/AreaChart.stories.js +0 -370
  210. package/esm/chart/area/index.js +0 -7
  211. package/esm/chart/axis/Axis.js +0 -9
  212. package/esm/chart/axis/DefaultAxisTickLabel.js +0 -11
  213. package/esm/chart/axis/XAxis.js +0 -256
  214. package/esm/chart/axis/YAxis.js +0 -255
  215. package/esm/chart/axis/__stories__/Axis.stories.js +0 -552
  216. package/esm/chart/axis/index.js +0 -6
  217. package/esm/chart/bar/Bar.js +0 -71
  218. package/esm/chart/bar/BarChart.js +0 -122
  219. package/esm/chart/bar/BarPlot.js +0 -106
  220. package/esm/chart/bar/BarStack.js +0 -173
  221. package/esm/chart/bar/BarStackGroup.js +0 -89
  222. package/esm/chart/bar/DefaultBar.js +0 -79
  223. package/esm/chart/bar/DefaultBarStack.js +0 -68
  224. package/esm/chart/bar/PercentageBarChart.js +0 -99
  225. package/esm/chart/bar/__stories__/BarChart.stories.js +0 -1417
  226. package/esm/chart/bar/__stories__/PercentageBarChart.stories.js +0 -833
  227. package/esm/chart/bar/index.js +0 -10
  228. package/esm/chart/gradient/Gradient.js +0 -156
  229. package/esm/chart/gradient/index.js +0 -1
  230. package/esm/chart/legend/DefaultLegendEntry.js +0 -42
  231. package/esm/chart/legend/DefaultLegendShape.js +0 -64
  232. package/esm/chart/legend/Legend.js +0 -59
  233. package/esm/chart/legend/__stories__/Legend.stories.js +0 -574
  234. package/esm/chart/legend/index.js +0 -3
  235. package/esm/chart/line/DefaultReferenceLineLabel.js +0 -66
  236. package/esm/chart/line/DottedLine.js +0 -57
  237. package/esm/chart/line/Line.js +0 -180
  238. package/esm/chart/line/LineChart.js +0 -149
  239. package/esm/chart/line/ReferenceLine.js +0 -132
  240. package/esm/chart/line/SolidLine.js +0 -53
  241. package/esm/chart/line/__stories__/LineChart.stories.js +0 -2018
  242. package/esm/chart/line/__stories__/ReferenceLine.stories.js +0 -226
  243. package/esm/chart/line/index.js +0 -8
  244. package/esm/chart/point/DefaultPointLabel.js +0 -39
  245. package/esm/chart/point/Point.js +0 -187
  246. package/esm/chart/point/index.js +0 -2
  247. package/esm/chart/scrubber/DefaultScrubberBeacon.js +0 -182
  248. package/esm/chart/scrubber/DefaultScrubberBeaconLabel.js +0 -43
  249. package/esm/chart/scrubber/DefaultScrubberLabel.js +0 -44
  250. package/esm/chart/scrubber/Scrubber.js +0 -198
  251. package/esm/chart/scrubber/ScrubberAccessibilityView.js +0 -177
  252. package/esm/chart/scrubber/ScrubberBeaconGroup.js +0 -169
  253. package/esm/chart/scrubber/ScrubberBeaconLabelGroup.js +0 -212
  254. package/esm/chart/scrubber/ScrubberProvider.js +0 -140
  255. package/esm/chart/scrubber/__stories__/Scrubber.stories.js +0 -946
  256. package/esm/chart/scrubber/index.js +0 -4
  257. package/esm/chart/text/ChartText.js +0 -305
  258. package/esm/chart/text/ChartTextGroup.js +0 -211
  259. package/esm/chart/text/index.js +0 -4
  260. package/esm/chart/utils/axis.js +0 -664
  261. package/esm/chart/utils/bar.js +0 -906
  262. package/esm/chart/utils/chart.js +0 -329
  263. package/esm/chart/utils/context.js +0 -22
  264. package/esm/chart/utils/gradient.js +0 -319
  265. package/esm/chart/utils/index.js +0 -12
  266. package/esm/chart/utils/path.js +0 -304
  267. package/esm/chart/utils/point.js +0 -282
  268. package/esm/chart/utils/scale.js +0 -288
  269. package/esm/chart/utils/scrubber.js +0 -146
  270. package/esm/chart/utils/transition.js +0 -241
  271. package/esm/sparkline/Counter.js +0 -45
  272. package/esm/sparkline/Sparkline.js +0 -165
  273. package/esm/sparkline/SparklineArea.js +0 -20
  274. package/esm/sparkline/SparklineAreaPattern.js +0 -38
  275. package/esm/sparkline/SparklineGradient.js +0 -77
  276. package/esm/sparkline/__figma__/Sparkline.figma.js +0 -22
  277. package/esm/sparkline/__stories__/Sparkline.stories.js +0 -124
  278. package/esm/sparkline/__stories__/SparklineGradient.stories.js +0 -126
  279. package/esm/sparkline/generateSparklineWithId.js +0 -7
  280. package/esm/sparkline/sparkline-interactive/SparklineAccessibleView.js +0 -75
  281. package/esm/sparkline/sparkline-interactive/SparklineInteractive.js +0 -308
  282. package/esm/sparkline/sparkline-interactive/SparklineInteractiveAnimatedPath.js +0 -116
  283. package/esm/sparkline/sparkline-interactive/SparklineInteractiveHoverDate.js +0 -131
  284. package/esm/sparkline/sparkline-interactive/SparklineInteractiveLineVertical.js +0 -99
  285. package/esm/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.js +0 -82
  286. package/esm/sparkline/sparkline-interactive/SparklineInteractiveMinMax.js +0 -103
  287. package/esm/sparkline/sparkline-interactive/SparklineInteractivePanGestureHandler.js +0 -104
  288. package/esm/sparkline/sparkline-interactive/SparklineInteractivePaths.js +0 -57
  289. package/esm/sparkline/sparkline-interactive/SparklineInteractivePeriodSelector.js +0 -124
  290. package/esm/sparkline/sparkline-interactive/SparklineInteractiveProvider.js +0 -80
  291. package/esm/sparkline/sparkline-interactive/SparklineInteractiveTimeseriesPaths.js +0 -109
  292. package/esm/sparkline/sparkline-interactive/__figma__/SparklineInteractive.figma.js +0 -85
  293. package/esm/sparkline/sparkline-interactive/__stories__/SparklineInteractive.stories.js +0 -526
  294. package/esm/sparkline/sparkline-interactive/useInterruptiblePathAnimation.js +0 -58
  295. package/esm/sparkline/sparkline-interactive/useInterruptiblePathAnimation.test.disable.js +0 -37
  296. package/esm/sparkline/sparkline-interactive/useMinMaxTransform.js +0 -56
  297. package/esm/sparkline/sparkline-interactive/useOpacityAnimation.js +0 -23
  298. package/esm/sparkline/sparkline-interactive/useSparklineInteractiveConstants.js +0 -47
  299. package/esm/sparkline/sparkline-interactive/useSparklineInteractiveLineStyles.js +0 -34
  300. package/esm/sparkline/sparkline-interactive-header/SparklineInteractiveHeader.js +0 -233
  301. package/esm/sparkline/sparkline-interactive-header/__figma__/SparklineInteractiveHeader.figma.js +0 -104
  302. package/esm/sparkline/sparkline-interactive-header/__stories__/SparklineInteractiveHeader.stories.js +0 -565
  303. package/esm/sparkline/sparkline-interactive-header/useSparklineInteractiveHeaderStyles.js +0 -117
@@ -1,2 +0,0 @@
1
- export * from './Gradient';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart/gradient/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -1,5 +0,0 @@
1
- import { type HStackProps } from '@coinbase/cds-mobile/layout';
2
- import type { LegendEntryProps } from './Legend';
3
- export type DefaultLegendEntryProps = LegendEntryProps & Omit<HStackProps, 'children' | 'color'>;
4
- export declare const DefaultLegendEntry: import('react').NamedExoticComponent<DefaultLegendEntryProps>;
5
- //# sourceMappingURL=DefaultLegendEntry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultLegendEntry.d.ts","sourceRoot":"","sources":["../../../src/chart/legend/DefaultLegendEntry.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAIvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAQjD,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC;AAEjG,eAAO,MAAM,kBAAkB,+DA8B9B,CAAC"}
@@ -1,5 +0,0 @@
1
- import { type BoxProps } from '@coinbase/cds-mobile/layout';
2
- import type { LegendShapeProps } from './Legend';
3
- export type DefaultLegendShapeProps = LegendShapeProps & Omit<BoxProps, 'children' | 'color'>;
4
- export declare const DefaultLegendShape: import('react').NamedExoticComponent<DefaultLegendShapeProps>;
5
- //# sourceMappingURL=DefaultLegendShape.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultLegendShape.d.ts","sourceRoot":"","sources":["../../../src/chart/legend/DefaultLegendShape.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAIjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAwCjD,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC;AAE9F,eAAO,MAAM,kBAAkB,+DAc9B,CAAC"}
@@ -1,168 +0,0 @@
1
- import type { StyleProp, View, ViewStyle } from 'react-native';
2
- import { type BoxBaseProps, type BoxProps } from '@coinbase/cds-mobile/layout';
3
- import type { LegendShape } from '../utils';
4
- export type LegendShapeProps = {
5
- /**
6
- * Color of the legend shape.
7
- * @default theme.color.fgPrimary
8
- */
9
- color?: string;
10
- /**
11
- * Shape to display. Can be a preset shape or a custom ReactNode.
12
- * @default 'circle'
13
- */
14
- shape?: LegendShape;
15
- /**
16
- * Custom styles for the shape element.
17
- */
18
- style?: StyleProp<ViewStyle>;
19
- };
20
- export type LegendShapeComponent = React.FC<LegendShapeProps>;
21
- export type LegendEntryProps = {
22
- /**
23
- * Id of the series.
24
- */
25
- seriesId: string;
26
- /**
27
- * Label of the series.
28
- * If a ReactNode is provided, it replaces the default Text component.
29
- */
30
- label: React.ReactNode;
31
- /**
32
- * Color of the series.
33
- * @default theme.color.fgPrimary
34
- */
35
- color?: string;
36
- /**
37
- * Shape of the series.
38
- */
39
- shape?: LegendShape;
40
- /**
41
- * Custom component to render the legend shape.
42
- * @default DefaultLegendShape
43
- */
44
- ShapeComponent?: LegendShapeComponent;
45
- /**
46
- * Custom styles for the root element.
47
- */
48
- style?: StyleProp<ViewStyle>;
49
- /**
50
- * Custom styles for the component parts.
51
- */
52
- styles?: {
53
- /**
54
- * Custom styles for the root element.
55
- */
56
- root?: StyleProp<ViewStyle>;
57
- /**
58
- * Custom styles for the shape element.
59
- */
60
- shape?: StyleProp<ViewStyle>;
61
- /**
62
- * Custom styles for the label element.
63
- * @note not applied when label is a ReactNode.
64
- */
65
- label?: StyleProp<ViewStyle>;
66
- };
67
- };
68
- export type LegendEntryComponent = React.FC<LegendEntryProps>;
69
- export type LegendBaseProps = Omit<BoxBaseProps, 'children'> & {
70
- /**
71
- * Array of series IDs to display in the legend.
72
- * By default, all series will be displayed.
73
- */
74
- seriesIds?: string[];
75
- /**
76
- * Custom component to render each legend entry.
77
- * @default DefaultLegendEntry
78
- */
79
- EntryComponent?: LegendEntryComponent;
80
- /**
81
- * Custom component to render the legend shape within each entry.
82
- * Only used when EntryComponent is not provided or is DefaultLegendEntry.
83
- * @default DefaultLegendShape
84
- */
85
- ShapeComponent?: LegendShapeComponent;
86
- /**
87
- * Accessibility label for the legend group.
88
- * @default 'Legend'
89
- */
90
- accessibilityLabel?: string;
91
- };
92
- export type LegendProps = Omit<BoxProps, 'children'> &
93
- LegendBaseProps & {
94
- /**
95
- * Custom styles for the component parts.
96
- */
97
- styles?: {
98
- /**
99
- * Custom styles for the root element.
100
- */
101
- root?: StyleProp<ViewStyle>;
102
- /**
103
- * Custom styles for each entry element.
104
- */
105
- entry?: StyleProp<ViewStyle>;
106
- /**
107
- * Custom styles for the shape element within each entry.
108
- */
109
- entryShape?: StyleProp<ViewStyle>;
110
- /**
111
- * Custom styles for the label element within each entry.
112
- * @note not applied when label is a ReactNode.
113
- */
114
- entryLabel?: StyleProp<ViewStyle>;
115
- };
116
- };
117
- export declare const Legend: import('react').MemoExoticComponent<
118
- import('react').ForwardRefExoticComponent<
119
- Omit<BoxProps, 'children'> &
120
- Omit<BoxBaseProps, 'children'> & {
121
- /**
122
- * Array of series IDs to display in the legend.
123
- * By default, all series will be displayed.
124
- */
125
- seriesIds?: string[];
126
- /**
127
- * Custom component to render each legend entry.
128
- * @default DefaultLegendEntry
129
- */
130
- EntryComponent?: LegendEntryComponent;
131
- /**
132
- * Custom component to render the legend shape within each entry.
133
- * Only used when EntryComponent is not provided or is DefaultLegendEntry.
134
- * @default DefaultLegendShape
135
- */
136
- ShapeComponent?: LegendShapeComponent;
137
- /**
138
- * Accessibility label for the legend group.
139
- * @default 'Legend'
140
- */
141
- accessibilityLabel?: string;
142
- } & {
143
- /**
144
- * Custom styles for the component parts.
145
- */
146
- styles?: {
147
- /**
148
- * Custom styles for the root element.
149
- */
150
- root?: StyleProp<ViewStyle>;
151
- /**
152
- * Custom styles for each entry element.
153
- */
154
- entry?: StyleProp<ViewStyle>;
155
- /**
156
- * Custom styles for the shape element within each entry.
157
- */
158
- entryShape?: StyleProp<ViewStyle>;
159
- /**
160
- * Custom styles for the label element within each entry.
161
- * @note not applied when label is a ReactNode.
162
- */
163
- entryLabel?: StyleProp<ViewStyle>;
164
- };
165
- } & import('react').RefAttributes<View>
166
- >
167
- >;
168
- //# sourceMappingURL=Legend.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../src/chart/legend/Legend.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAO,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAK5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC;;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C;;;OAGG;yBACkB,MAAM;;IAKzB;;OAEG;aACM;QACP;;WAEG;QACH,IAAI,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAC5B;;WAEG;QACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAC7B;;WAEG;QACH,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QAClC;;;WAGG;QACH,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KACnC;yCAiEJ,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from './DefaultLegendEntry';
2
- export * from './DefaultLegendShape';
3
- export * from './Legend';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart/legend/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { ReferenceLineLabelComponentProps } from './ReferenceLine';
2
- export type DefaultReferenceLineLabelProps = ReferenceLineLabelComponentProps;
3
- /**
4
- * DefaultReferenceLineLabel is the default label component for ReferenceLine.
5
- * Provides standard styling with elevation, inset, and color defaults.
6
- * When elevated, automatically adds bounds to prevent shadow cutoff at chart edges.
7
- */
8
- export declare const DefaultReferenceLineLabel: import('react').NamedExoticComponent<ReferenceLineLabelComponentProps>;
9
- //# sourceMappingURL=DefaultReferenceLineLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultReferenceLineLabel.d.ts","sourceRoot":"","sources":["../../../src/chart/line/DefaultReferenceLineLabel.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAC;AAExE,MAAM,MAAM,8BAA8B,GAAG,gCAAgC,CAAC;AAQ9E;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wEAoCrC,CAAC"}
@@ -1,20 +0,0 @@
1
- import { type PathProps } from '../Path';
2
- import type { LineComponentProps } from './Line';
3
- export type DottedLineProps = Pick<
4
- PathProps,
5
- 'initialPath' | 'children' | 'strokeCap' | 'strokeJoin' | 'clipRect' | 'clipPath' | 'clipOffset'
6
- > &
7
- LineComponentProps & {
8
- fill?: string;
9
- /**
10
- * Stroke dash array for the dotted pattern.
11
- * @default [0, 4]
12
- */
13
- dashIntervals?: number[];
14
- };
15
- /**
16
- * A customizable dotted line component.
17
- * Supports gradient for gradient effects on the dots and smooth data transitions via AnimatedPath.
18
- */
19
- export declare const DottedLine: import('react').NamedExoticComponent<DottedLineProps>;
20
- //# sourceMappingURL=DottedLine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DottedLine.d.ts","sourceRoot":"","sources":["../../../src/chart/line/DottedLine.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,SAAS,EACT,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CACjG,GACC,kBAAkB,GAAG;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,UAAU,uDAgDtB,CAAC"}
@@ -1,122 +0,0 @@
1
- import React from 'react';
2
- import { type AnimatedProp } from '@shopify/react-native-skia';
3
- import { type AreaComponent } from '../area/Area';
4
- import type { PathProps } from '../Path';
5
- import { type PointBaseProps, type PointProps } from '../point';
6
- import { type ChartPathCurveType, type GradientDefinition } from '../utils';
7
- export type LineBaseProps = {
8
- /**
9
- * The ID of the series to render. Will be used to find the data from the chart context.
10
- */
11
- seriesId: string;
12
- /**
13
- * The curve interpolation method to use for the line.
14
- * @default 'bump'
15
- */
16
- curve?: ChartPathCurveType;
17
- /**
18
- * The type of line to render.
19
- * @default 'solid'
20
- */
21
- type?: 'solid' | 'dotted';
22
- /**
23
- * Whether to show area fill under the line.
24
- */
25
- showArea?: boolean;
26
- /**
27
- * The type of area fill to add to the line.
28
- * @default 'gradient'
29
- */
30
- areaType?: 'gradient' | 'solid' | 'dotted';
31
- /**
32
- * Baseline value for the area.
33
- * When set, overrides the default baseline.
34
- *
35
- * @deprecated this prop has no functionality. Use 'baseline' on axis config instead. This will be removed in a future major release.
36
- * @deprecationExpectedRemoval v5
37
- */
38
- areaBaseline?: number;
39
- /**
40
- * Component to render the line.
41
- * Takes precedence over the type prop if provided.
42
- */
43
- LineComponent?: LineComponent;
44
- /**
45
- * Custom component to render line area fill.
46
- */
47
- AreaComponent?: AreaComponent;
48
- /**
49
- * Opacity of the line's stroke.
50
- * Will also be applied to points and area fill.
51
- * @default 1
52
- */
53
- opacity?: number;
54
- /**
55
- * Controls whether and how to render points at each data point in the series.
56
- * - `true`: Show all points with default styling
57
- * - `false` or `undefined`: Hide all points
58
- * - Function: Called for every entry in the data array to customize individual points
59
- *
60
- * @param defaults - The default point props computed by the Line component
61
- * @returns true for default point, false/null/undefined for no point, or Partial<PointProps> to customize
62
- */
63
- points?:
64
- | boolean
65
- | ((defaults: PointBaseProps) => boolean | null | undefined | Partial<PointProps>);
66
- /**
67
- * When true, the area is connected across null values.
68
- */
69
- connectNulls?: boolean;
70
- /**
71
- * The color of the line.
72
- * @default color of the series or theme.color.fgPrimary
73
- */
74
- stroke?: string;
75
- /**
76
- * Opacity of the line
77
- * @note when combined with gradient, both will be applied
78
- * @default 1
79
- */
80
- strokeOpacity?: AnimatedProp<number>;
81
- /**
82
- * Width of the line
83
- * @default 2
84
- */
85
- strokeWidth?: number;
86
- /**
87
- * Gradient configuration.
88
- * When provided, creates gradient or threshold-based coloring.
89
- */
90
- gradient?: GradientDefinition;
91
- /**
92
- * Whether to animate the line.
93
- * Overrides the animate value from the chart context.
94
- */
95
- animate?: boolean;
96
- };
97
- export type LineProps = LineBaseProps & Pick<PathProps, 'transitions' | 'transition'>;
98
- export type LineComponentProps = Pick<
99
- LineProps,
100
- 'stroke' | 'strokeOpacity' | 'strokeWidth' | 'gradient' | 'animate' | 'transitions' | 'transition'
101
- > &
102
- Pick<PathProps, 'clipPath' | 'strokeCap'> & {
103
- /**
104
- * Path of the line
105
- */
106
- d: AnimatedProp<string | undefined>;
107
- /**
108
- * ID of the x-axis to use.
109
- * If not provided, defaults to the default x-axis.
110
- * @note Only used for axis selection when layout is 'horizontal'. Vertical layout uses a single x-axis.
111
- */
112
- xAxisId?: string;
113
- /**
114
- * ID of the y-axis to use.
115
- * If not provided, defaults to the default y-axis.
116
- * @note Only used for axis selection when layout is 'vertical'. Horizontal layout supports a single y-axis.
117
- */
118
- yAxisId?: string;
119
- };
120
- export type LineComponent = React.FC<LineComponentProps>;
121
- export declare const Line: React.NamedExoticComponent<LineProps>;
122
- //# sourceMappingURL=Line.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../src/chart/line/Line.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAS,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EACL,KAAK,kBAAkB,EAGvB,KAAK,kBAAkB,EACxB,MAAM,UAAU,CAAC;AAOlB,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,k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AY,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC;AAEzD,eAAO,MAAM,IAAI,uCAmOhB,CAAC"}
@@ -1,135 +0,0 @@
1
- import type { View } from 'react-native';
2
- import { type XAxisProps } from '../axis/XAxis';
3
- import { type YAxisProps } from '../axis/YAxis';
4
- import { type CartesianChartBaseProps, type CartesianChartProps } from '../CartesianChart';
5
- import { type CartesianAxisConfigProps, type Series } from '../utils';
6
- import { type LineProps } from './Line';
7
- export type LineSeries = Series &
8
- Partial<
9
- Pick<
10
- LineProps,
11
- | 'curve'
12
- | 'showArea'
13
- | 'areaType'
14
- | 'areaBaseline'
15
- | 'type'
16
- | 'LineComponent'
17
- | 'AreaComponent'
18
- | 'stroke'
19
- | 'strokeWidth'
20
- | 'strokeOpacity'
21
- | 'opacity'
22
- | 'points'
23
- | 'connectNulls'
24
- | 'transition'
25
- | 'transitions'
26
- >
27
- >;
28
- export type LineChartBaseProps = Omit<CartesianChartBaseProps, 'xAxis' | 'yAxis' | 'series'> &
29
- Pick<
30
- LineProps,
31
- | 'showArea'
32
- | 'areaType'
33
- | 'type'
34
- | 'LineComponent'
35
- | 'AreaComponent'
36
- | 'curve'
37
- | 'points'
38
- | 'strokeWidth'
39
- | 'strokeOpacity'
40
- | 'connectNulls'
41
- | 'transition'
42
- | 'transitions'
43
- | 'opacity'
44
- > & {
45
- /**
46
- * Configuration objects that define how to visualize the data.
47
- * Each series supports Line component props for individual customization.
48
- */
49
- series?: Array<LineSeries>;
50
- /**
51
- * Whether to show the X axis.
52
- */
53
- showXAxis?: boolean;
54
- /**
55
- * Whether to show the Y axis.
56
- */
57
- showYAxis?: boolean;
58
- /**
59
- * Configuration for x-axis.
60
- * Accepts axis config and axis props.
61
- * To show the axis, set `showXAxis` to true.
62
- */
63
- xAxis?: Partial<CartesianAxisConfigProps> & XAxisProps;
64
- /**
65
- * Configuration for y-axis.
66
- * Accepts axis config and axis props.
67
- * To show the axis, set `showYAxis` to true.
68
- */
69
- yAxis?: Partial<CartesianAxisConfigProps> & YAxisProps;
70
- };
71
- export type LineChartProps = LineChartBaseProps &
72
- Omit<CartesianChartProps, 'xAxis' | 'yAxis' | 'series' | 'scrubberAccessibilityLabelStep'> & {
73
- /**
74
- * Number of data points to move between screen-reader samples.
75
- * @default Computed from data length (targeting 10 samples)
76
- */
77
- scrubberAccessibilityLabelStep?: number;
78
- };
79
- export declare const LineChart: import('react').MemoExoticComponent<
80
- import('react').ForwardRefExoticComponent<
81
- Omit<CartesianChartBaseProps, 'series' | 'xAxis' | 'yAxis'> &
82
- Pick<
83
- LineProps,
84
- | 'type'
85
- | 'opacity'
86
- | 'strokeWidth'
87
- | 'transitions'
88
- | 'transition'
89
- | 'curve'
90
- | 'connectNulls'
91
- | 'strokeOpacity'
92
- | 'AreaComponent'
93
- | 'showArea'
94
- | 'areaType'
95
- | 'LineComponent'
96
- | 'points'
97
- > & {
98
- /**
99
- * Configuration objects that define how to visualize the data.
100
- * Each series supports Line component props for individual customization.
101
- */
102
- series?: Array<LineSeries>;
103
- /**
104
- * Whether to show the X axis.
105
- */
106
- showXAxis?: boolean;
107
- /**
108
- * Whether to show the Y axis.
109
- */
110
- showYAxis?: boolean;
111
- /**
112
- * Configuration for x-axis.
113
- * Accepts axis config and axis props.
114
- * To show the axis, set `showXAxis` to true.
115
- */
116
- xAxis?: Partial<CartesianAxisConfigProps> & XAxisProps;
117
- /**
118
- * Configuration for y-axis.
119
- * Accepts axis config and axis props.
120
- * To show the axis, set `showYAxis` to true.
121
- */
122
- yAxis?: Partial<CartesianAxisConfigProps> & YAxisProps;
123
- } & Omit<
124
- CartesianChartProps,
125
- 'series' | 'xAxis' | 'yAxis' | 'scrubberAccessibilityLabelStep'
126
- > & {
127
- /**
128
- * Number of data points to move between screen-reader samples.
129
- * @default Computed from data length (targeting 10 samples)
130
- */
131
- scrubberAccessibilityLabelStep?: number;
132
- } & import('react').RefAttributes<View>
133
- >
134
- >;
135
- //# sourceMappingURL=LineChart.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../src/chart/line/LineChart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAU9C,MAAM,MAAM,UAAU,GAAG,MAAM,GAC7B,OAAO,CACL,IAAI,CACF,SAAS,EACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,cAAc,GACd,MAAM,GACN,eAAe,GACf,eAAe,GACf,QAAQ,GACR,aAAa,GACb,eAAe,GACf,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,aAAa,CAChB,CACF,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,uBAAuB,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC,GAC1F,IAAI,CACF,SAAS,EACP,UAAU,GACV,UAAU,GACV,MAAM,GACN,eAAe,GACf,eAAe,GACf,OAAO,GACP,QAAQ,GACR,aAAa,GACb,eAAe,GACf,cAAc,GACd,YAAY,GACZ,aAAa,GACb,SAAS,CACZ,GAAG;IACF;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,UAAU,CAAC;IACvD;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,UAAU,CAAC;CACxD,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAC7C,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,gCAAgC,CAAC,GAAG;IAC3F;;;OAGG;IACH,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC,CAAC;AAEJ,eAAO,MAAM,SAAS;IApClB;;;OAGG;aACM,KAAK,CAAC,UAAU,CAAC;IAC1B;;OAEG;gBACS,OAAO;IACnB;;OAEG;gBACS,OAAO;IACnB;;;;OAIG;YACK,OAAO,CAAC,wBAAwB,CAAC,GAAG,UAAU;IACtD;;;;OAIG;YACK,OAAO,CAAC,wBAAwB,CAAC,GAAG,UAAU;;IAKtD;;;OAGG;qCAC8B,MAAM;yCAmJ1C,CAAC"}
@@ -1,140 +0,0 @@
1
- import type { AnimatedProp } from '@shopify/react-native-skia';
2
- import type {
3
- ChartTextChildren,
4
- ChartTextProps,
5
- TextHorizontalAlignment,
6
- TextVerticalAlignment,
7
- } from '../text/ChartText';
8
- import type { ChartInset } from '../utils';
9
- import type { LineComponent } from './Line';
10
- export type ReferenceLineLabelComponentProps = Pick<
11
- ChartTextProps,
12
- | 'x'
13
- | 'y'
14
- | 'children'
15
- | 'color'
16
- | 'inset'
17
- | 'background'
18
- | 'borderRadius'
19
- | 'disableRepositioning'
20
- | 'horizontalAlignment'
21
- | 'verticalAlignment'
22
- | 'font'
23
- | 'fontWeight'
24
- | 'fontFamilies'
25
- | 'opacity'
26
- | 'dx'
27
- | 'dy'
28
- | 'elevated'
29
- | 'paragraphAlignment'
30
- > & {
31
- /**
32
- * Bounds inset for label to prevent cutoff at chart edges.
33
- * Can be a number (applied to all sides) or a ChartInset object.
34
- * @default { top: 4, bottom: 20, left: 12, right: 12 } when elevated is true, otherwise undefined
35
- */
36
- boundsInset?: number | ChartInset;
37
- };
38
- export type ReferenceLineLabelComponent = React.FC<ReferenceLineLabelComponentProps>;
39
- export type ReferenceLineBaseProps = {
40
- /**
41
- * Label content to display near the reference line.
42
- * Can be a string or ReactNode for rich formatting.
43
- *
44
- * @example
45
- * // Simple string label
46
- * label="Target Price"
47
- *
48
- * @example
49
- * // ReactNode with styling
50
- * label={<tspan style={{ fontWeight: 'bold', fill: 'red' }}>Stop Loss</tspan>}
51
- */
52
- label?: ChartTextChildren;
53
- /**
54
- * Component to render the line.
55
- * @default DottedLine
56
- */
57
- LineComponent?: LineComponent;
58
- /**
59
- * Component to render the label.
60
- * @default DefaultReferenceLineLabel
61
- */
62
- LabelComponent?: ReferenceLineLabelComponent;
63
- /**
64
- * Whether to elevate the label with a shadow.
65
- * When true, applies elevation and automatically adds bounds to keep label within chart area.
66
- */
67
- labelElevated?: boolean;
68
- /**
69
- * Font style for the label text.
70
- */
71
- labelFont?: ChartTextProps['font'];
72
- /**
73
- * Horizontal offset for the label in pixels.
74
- */
75
- labelDx?: number;
76
- /**
77
- * Vertical offset for the label in pixels.
78
- */
79
- labelDy?: number;
80
- /**
81
- * Horizontal alignment of the label text.
82
- */
83
- labelHorizontalAlignment?: TextHorizontalAlignment;
84
- /**
85
- * Vertical alignment of the label text.
86
- */
87
- labelVerticalAlignment?: TextVerticalAlignment;
88
- /**
89
- * Bounds inset for the label to prevent cutoff at chart edges.
90
- * Especially useful when labelElevated is true to prevent shadow clipping.
91
- * Can be a number (applied to all sides) or a ChartInset object.
92
- * @default { top: 4, bottom: 20, left: 12, right: 12 } when labelElevated is true, otherwise none
93
- */
94
- labelBoundsInset?: number | ChartInset;
95
- /**
96
- * The color of the line.
97
- * @default theme.color.bgLine
98
- */
99
- stroke?: string;
100
- /**
101
- * Opacity applied to both the line and label.
102
- * @default 1
103
- */
104
- opacity?: AnimatedProp<number>;
105
- };
106
- type HorizontalReferenceLineProps = ReferenceLineBaseProps & {
107
- /**
108
- * Y-value for horizontal reference line (data value).
109
- */
110
- dataY: AnimatedProp<number>;
111
- /**
112
- * The ID of the y-axis to use for positioning.
113
- * Defaults to defaultAxisId if not specified.
114
- * @note Only used for axis selection when layout is 'vertical'. Horizontal layout supports a single y-axis.
115
- */
116
- yAxisId?: string;
117
- /**
118
- * Position of the label along the horizontal line.
119
- * @default 'right'
120
- */
121
- labelPosition?: TextHorizontalAlignment;
122
- dataX?: never;
123
- };
124
- type VerticalReferenceLineProps = ReferenceLineBaseProps & {
125
- /**
126
- * X-value for vertical reference line (data index).
127
- */
128
- dataX: AnimatedProp<number>;
129
- /**
130
- * Position of the label along the vertical line.
131
- * @default 'top'
132
- */
133
- labelPosition?: TextVerticalAlignment;
134
- dataY?: never;
135
- yAxisId?: never;
136
- };
137
- export type ReferenceLineProps = HorizontalReferenceLineProps | VerticalReferenceLineProps;
138
- export declare const ReferenceLine: import('react').NamedExoticComponent<ReferenceLineProps>;
139
- export {};
140
- //# sourceMappingURL=ReferenceLine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReferenceLine.d.ts","sourceRoot":"","sources":["../../../src/chart/line/ReferenceLine.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAG/D,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAM3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,gCAAgC,GAAG,IAAI,CACjD,cAAc,EACZ,GAAG,G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