@undp/data-viz 1.5.7 → 1.5.9

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 (342) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +13 -13
  3. package/dist/{Axis-Ddg-seDi.js → Axis-4gUOL8B7.js} +2 -2
  4. package/dist/{Axis-Ddg-seDi.js.map → Axis-4gUOL8B7.js.map} +1 -1
  5. package/dist/{Axis-DE7dSn1_.cjs → Axis-CkNn1wit.cjs} +2 -2
  6. package/dist/{Axis-DE7dSn1_.cjs.map → Axis-CkNn1wit.cjs.map} +1 -1
  7. package/dist/{AxisTitle-CK9YeovX.cjs → AxisTitle-Wkz-xeQL.cjs} +2 -2
  8. package/dist/{AxisTitle-CK9YeovX.cjs.map → AxisTitle-Wkz-xeQL.cjs.map} +1 -1
  9. package/dist/{AxisTitle-BmHLMRJZ.js → AxisTitle-v6_xcXZ-.js} +2 -2
  10. package/dist/{AxisTitle-BmHLMRJZ.js.map → AxisTitle-v6_xcXZ-.js.map} +1 -1
  11. package/dist/BarGraph.cjs +1 -1
  12. package/dist/BarGraph.cjs.map +1 -1
  13. package/dist/BarGraph.js +666 -664
  14. package/dist/BarGraph.js.map +1 -1
  15. package/dist/BasicStatCard.cjs +1 -1
  16. package/dist/BasicStatCard.js +2 -2
  17. package/dist/BeeSwarmChart.cjs +1 -1
  18. package/dist/BeeSwarmChart.js +42 -42
  19. package/dist/BiVariateChoroplethMap.cjs +1 -1
  20. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  21. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  22. package/dist/BiVariateChoroplethMap.js +257 -264
  23. package/dist/BiVariateChoroplethMap.js.map +1 -1
  24. package/dist/BulletChart.cjs +1 -1
  25. package/dist/BulletChart.cjs.map +1 -1
  26. package/dist/BulletChart.js +223 -221
  27. package/dist/BulletChart.js.map +1 -1
  28. package/dist/ButterflyChart.cjs +1 -1
  29. package/dist/ButterflyChart.cjs.map +1 -1
  30. package/dist/ButterflyChart.js +84 -82
  31. package/dist/ButterflyChart.js.map +1 -1
  32. package/dist/ChoroplethMap.cjs +1 -1
  33. package/dist/ChoroplethMap.cjs.map +1 -1
  34. package/dist/ChoroplethMap.d.ts +2 -0
  35. package/dist/ChoroplethMap.js +296 -304
  36. package/dist/ChoroplethMap.js.map +1 -1
  37. package/dist/CirclePackingGraph.cjs +1 -1
  38. package/dist/CirclePackingGraph.js +3 -3
  39. package/dist/ColorLegend.cjs +1 -1
  40. package/dist/ColorLegend.js +2 -2
  41. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  42. package/dist/ColorLegendWithMouseOver.js +2 -2
  43. package/dist/CopyTextButton.cjs +4 -4
  44. package/dist/CopyTextButton.cjs.map +1 -1
  45. package/dist/CopyTextButton.js +27 -27
  46. package/dist/CopyTextButton.js.map +1 -1
  47. package/dist/CsvDownloadButton.cjs +1 -1
  48. package/dist/CsvDownloadButton.js +2 -2
  49. package/dist/DataCards.cjs +3 -3
  50. package/dist/DataCards.cjs.map +1 -1
  51. package/dist/DataCards.js +16 -16
  52. package/dist/DataCards.js.map +1 -1
  53. package/dist/DataTable.cjs +1 -1
  54. package/dist/DataTable.js +3 -3
  55. package/dist/DifferenceLineChart.cjs +1 -1
  56. package/dist/DifferenceLineChart.cjs.map +1 -1
  57. package/dist/DifferenceLineChart.js +133 -131
  58. package/dist/DifferenceLineChart.js.map +1 -1
  59. package/dist/DonutChart.cjs +1 -1
  60. package/dist/DonutChart.js +20 -20
  61. package/dist/DotDensityMap.cjs +1 -1
  62. package/dist/DotDensityMap.cjs.map +1 -1
  63. package/dist/DotDensityMap.d.ts +2 -0
  64. package/dist/DotDensityMap.js +282 -289
  65. package/dist/DotDensityMap.js.map +1 -1
  66. package/dist/{DropdownSelect-CtOKZHD0.js → DropdownSelect-6kjXM6oW.js} +2 -2
  67. package/dist/DropdownSelect-6kjXM6oW.js.map +1 -0
  68. package/dist/{DropdownSelect-DBDM64B5.cjs → DropdownSelect-vt8yiB-g.cjs} +5 -5
  69. package/dist/DropdownSelect-vt8yiB-g.cjs.map +1 -0
  70. package/dist/DualAxisLineChart.cjs +1 -1
  71. package/dist/DualAxisLineChart.cjs.map +1 -1
  72. package/dist/DualAxisLineChart.js +141 -121
  73. package/dist/DualAxisLineChart.js.map +1 -1
  74. package/dist/DumbbellChart.cjs +1 -1
  75. package/dist/DumbbellChart.cjs.map +1 -1
  76. package/dist/DumbbellChart.js +307 -307
  77. package/dist/DumbbellChart.js.map +1 -1
  78. package/dist/{EmptyState-DdTp-Mdn.js → EmptyState-36lXXyui.js} +4 -4
  79. package/dist/{EmptyState-DdTp-Mdn.js.map → EmptyState-36lXXyui.js.map} +1 -1
  80. package/dist/{EmptyState-d8_8SxeW.cjs → EmptyState-B8IpKGcL.cjs} +2 -2
  81. package/dist/{EmptyState-d8_8SxeW.cjs.map → EmptyState-B8IpKGcL.cjs.map} +1 -1
  82. package/dist/ExcelDownloadButton.cjs +1 -1
  83. package/dist/ExcelDownloadButton.js +2 -2
  84. package/dist/FootNote.cjs +1 -1
  85. package/dist/FootNote.js +2 -2
  86. package/dist/GeoHubCompareMaps.cjs +1 -1
  87. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  88. package/dist/GeoHubCompareMaps.js +65 -80
  89. package/dist/GeoHubCompareMaps.js.map +1 -1
  90. package/dist/GeoHubMap.cjs +1 -1
  91. package/dist/GeoHubMap.cjs.map +1 -1
  92. package/dist/GeoHubMap.js +95 -125
  93. package/dist/GeoHubMap.js.map +1 -1
  94. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  95. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  96. package/dist/GeoHubMapWithLayerSelection.js +73 -88
  97. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  98. package/dist/GraphDescription.cjs +1 -1
  99. package/dist/GraphDescription.js +2 -2
  100. package/dist/{GraphEl-CqWzvOyr.js → GraphEl-2IiUDxjR.js} +15 -12
  101. package/dist/GraphEl-2IiUDxjR.js.map +1 -0
  102. package/dist/GraphEl-qrlfGPe3.cjs +2 -0
  103. package/dist/GraphEl-qrlfGPe3.cjs.map +1 -0
  104. package/dist/GraphFooter.cjs +1 -1
  105. package/dist/GraphFooter.js +1 -1
  106. package/dist/GraphHeader.cjs +1 -1
  107. package/dist/GraphHeader.js +1 -1
  108. package/dist/GraphTitle.cjs +1 -1
  109. package/dist/GraphTitle.js +2 -2
  110. package/dist/GriddedGraphs.cjs +1 -1
  111. package/dist/GriddedGraphs.d.ts +1 -0
  112. package/dist/GriddedGraphs.js +5 -5
  113. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  114. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  115. package/dist/GriddedGraphsFromConfig.js +2 -2
  116. package/dist/HeatMap.cjs +1 -1
  117. package/dist/HeatMap.js +19 -19
  118. package/dist/Histogram.cjs +1 -1
  119. package/dist/Histogram.js +3 -3
  120. package/dist/ImageDownloadButton.cjs +1 -1
  121. package/dist/ImageDownloadButton.js +2 -2
  122. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  123. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  124. package/dist/LineChartWithConfidenceInterval.js +204 -184
  125. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  126. package/dist/LinearColorLegend.cjs +1 -1
  127. package/dist/LinearColorLegend.js +2 -2
  128. package/dist/{Modal-DVVwpKhP.js → Modal-Cg8daIlV.js} +198 -187
  129. package/dist/Modal-Cg8daIlV.js.map +1 -0
  130. package/dist/Modal-CuuJdWkD.cjs +46 -0
  131. package/dist/Modal-CuuJdWkD.cjs.map +1 -0
  132. package/dist/MultiGraphDashboard.cjs +1 -1
  133. package/dist/MultiGraphDashboard.d.ts +1 -0
  134. package/dist/MultiGraphDashboard.js +3 -3
  135. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  136. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  137. package/dist/MultiGraphDashboardFromConfig.js +2 -2
  138. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  139. package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
  140. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  141. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
  142. package/dist/MultiLineAltChart.cjs +1 -1
  143. package/dist/MultiLineAltChart.cjs.map +1 -1
  144. package/dist/MultiLineAltChart.js +172 -173
  145. package/dist/MultiLineAltChart.js.map +1 -1
  146. package/dist/MultiLineChart.cjs +1 -1
  147. package/dist/MultiLineChart.cjs.map +1 -1
  148. package/dist/MultiLineChart.js +89 -78
  149. package/dist/MultiLineChart.js.map +1 -1
  150. package/dist/ParetoChart.cjs +1 -1
  151. package/dist/ParetoChart.cjs.map +1 -1
  152. package/dist/ParetoChart.js +186 -181
  153. package/dist/ParetoChart.js.map +1 -1
  154. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  155. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  156. package/dist/PerformanceIntensiveMultiGraphDashboard.js +3 -3
  157. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  158. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  159. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
  160. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  161. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  162. package/dist/PerformanceIntensiveScrollStory.js +3 -3
  163. package/dist/RadarChart.cjs +1 -1
  164. package/dist/RadarChart.cjs.map +1 -1
  165. package/dist/RadarChart.js +256 -244
  166. package/dist/RadarChart.js.map +1 -1
  167. package/dist/{ReferenceLine-CfAW3vKJ.js → ReferenceLine-CPMaAX0r.js} +3 -3
  168. package/dist/{ReferenceLine-CfAW3vKJ.js.map → ReferenceLine-CPMaAX0r.js.map} +1 -1
  169. package/dist/{ReferenceLine-CFVBBN__.cjs → ReferenceLine-D04j-zeV.cjs} +2 -2
  170. package/dist/{ReferenceLine-CFVBBN__.cjs.map → ReferenceLine-D04j-zeV.cjs.map} +1 -1
  171. package/dist/{RegressionLine-mH7UKOPi.js → RegressionLine-CW7iViH2.js} +13 -12
  172. package/dist/RegressionLine-CW7iViH2.js.map +1 -0
  173. package/dist/RegressionLine-D-49RaHa.cjs +2 -0
  174. package/dist/RegressionLine-D-49RaHa.cjs.map +1 -0
  175. package/dist/SVGDownloadButton.cjs +1 -1
  176. package/dist/SVGDownloadButton.js +2 -2
  177. package/dist/SankeyChart.cjs +1 -1
  178. package/dist/SankeyChart.js +27 -27
  179. package/dist/ScatterPlot.cjs +1 -1
  180. package/dist/ScatterPlot.cjs.map +1 -1
  181. package/dist/ScatterPlot.js +145 -144
  182. package/dist/ScatterPlot.js.map +1 -1
  183. package/dist/ScrollStory.cjs +1 -1
  184. package/dist/ScrollStory.d.ts +1 -0
  185. package/dist/ScrollStory.js +3 -3
  186. package/dist/SimpleLineChart.cjs +1 -1
  187. package/dist/SimpleLineChart.cjs.map +1 -1
  188. package/dist/SimpleLineChart.js +53 -48
  189. package/dist/SimpleLineChart.js.map +1 -1
  190. package/dist/SingleGraphDashboard.cjs +1 -1
  191. package/dist/SingleGraphDashboard.d.ts +1 -0
  192. package/dist/SingleGraphDashboard.js +6 -6
  193. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  194. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  195. package/dist/SingleGraphDashboardFromConfig.js +2 -2
  196. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  197. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  198. package/dist/SingleGraphDashboardGeoHubMaps.js +2 -2
  199. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  200. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  201. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
  202. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  203. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  204. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  205. package/dist/SingleGraphDashboardThreeDGraphs.js +14 -13
  206. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  207. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  208. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  209. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
  210. package/dist/SlopeChart.cjs +1 -1
  211. package/dist/SlopeChart.cjs.map +1 -1
  212. package/dist/SlopeChart.js +137 -133
  213. package/dist/SlopeChart.js.map +1 -1
  214. package/dist/Source.cjs +1 -1
  215. package/dist/Source.js +2 -2
  216. package/dist/SparkLine.cjs +1 -1
  217. package/dist/SparkLine.js +2 -2
  218. package/dist/{Spinner-C85UF28E.js → Spinner-Bpz70q_g.js} +2 -2
  219. package/dist/{Spinner-C85UF28E.js.map → Spinner-Bpz70q_g.js.map} +1 -1
  220. package/dist/{Spinner-DA6Z5E4n.cjs → Spinner-C6wLp85s.cjs} +2 -2
  221. package/dist/{Spinner-DA6Z5E4n.cjs.map → Spinner-C6wLp85s.cjs.map} +1 -1
  222. package/dist/StatCardFromData.cjs +1 -1
  223. package/dist/StatCardFromData.js +2 -2
  224. package/dist/StripChart.cjs +1 -1
  225. package/dist/StripChart.cjs.map +1 -1
  226. package/dist/StripChart.js +307 -295
  227. package/dist/StripChart.js.map +1 -1
  228. package/dist/ThreeDGlobe.cjs +1 -1
  229. package/dist/ThreeDGlobe.cjs.map +1 -1
  230. package/dist/ThreeDGlobe.d.ts +2 -0
  231. package/dist/ThreeDGlobe.js +220 -228
  232. package/dist/ThreeDGlobe.js.map +1 -1
  233. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  234. package/dist/ThresholdColorLegendWithMouseOver.js +2 -2
  235. package/dist/{Tooltip-CVCGWyzw.js → Tooltip-6LIdPQGC.js} +2 -2
  236. package/dist/{Tooltip-CVCGWyzw.js.map → Tooltip-6LIdPQGC.js.map} +1 -1
  237. package/dist/{Tooltip-De16GWhY.cjs → Tooltip-Cpv0QohJ.cjs} +2 -2
  238. package/dist/{Tooltip-De16GWhY.cjs.map → Tooltip-Cpv0QohJ.cjs.map} +1 -1
  239. package/dist/TreeMapGraph.cjs +1 -1
  240. package/dist/TreeMapGraph.js +24 -24
  241. package/dist/Types.d.ts +1 -0
  242. package/dist/{Typography-k-kOjICQ.cjs → Typography-BDULiwlF.cjs} +2 -2
  243. package/dist/{Typography-k-kOjICQ.cjs.map → Typography-BDULiwlF.cjs.map} +1 -1
  244. package/dist/{Typography-Ctgfl1J5.js → Typography-LmZ9LEpe.js} +2 -2
  245. package/dist/{Typography-Ctgfl1J5.js.map → Typography-LmZ9LEpe.js.map} +1 -1
  246. package/dist/UnitChart.cjs +1 -1
  247. package/dist/UnitChart.cjs.map +1 -1
  248. package/dist/UnitChart.js +25 -26
  249. package/dist/UnitChart.js.map +1 -1
  250. package/dist/{XAxesLabels-Drf7M3YK.cjs → XAxesLabels-CLZnBgSr.cjs} +2 -2
  251. package/dist/{XAxesLabels-Drf7M3YK.cjs.map → XAxesLabels-CLZnBgSr.cjs.map} +1 -1
  252. package/dist/{XAxesLabels-loO78vUO.js → XAxesLabels-SOSmso5J.js} +3 -3
  253. package/dist/{XAxesLabels-loO78vUO.js.map → XAxesLabels-SOSmso5J.js.map} +1 -1
  254. package/dist/{XTicksAndGridLines-Bn9u5gOM.js → XTicksAndGridLines-DuydSnZ_.js} +2 -2
  255. package/dist/{XTicksAndGridLines-Bn9u5gOM.js.map → XTicksAndGridLines-DuydSnZ_.js.map} +1 -1
  256. package/dist/{XTicksAndGridLines-CCzXIV8d.cjs → XTicksAndGridLines-RKy7BVCO.cjs} +2 -2
  257. package/dist/{XTicksAndGridLines-CCzXIV8d.cjs.map → XTicksAndGridLines-RKy7BVCO.cjs.map} +1 -1
  258. package/dist/{YAxesLabels-DECkMgq8.js → YAxesLabels-DlDyLvhi.js} +3 -3
  259. package/dist/{YAxesLabels-DECkMgq8.js.map → YAxesLabels-DlDyLvhi.js.map} +1 -1
  260. package/dist/{YAxesLabels-yRFFdx1s.cjs → YAxesLabels-Dqd259-t.cjs} +2 -2
  261. package/dist/{YAxesLabels-yRFFdx1s.cjs.map → YAxesLabels-Dqd259-t.cjs.map} +1 -1
  262. package/dist/{YTicksAndGridLines-B6ah7CRf.js → YTicksAndGridLines-7t4MKtGw.js} +2 -2
  263. package/dist/{YTicksAndGridLines-B6ah7CRf.js.map → YTicksAndGridLines-7t4MKtGw.js.map} +1 -1
  264. package/dist/{YTicksAndGridLines-DBDuz6vb.cjs → YTicksAndGridLines-qGpRo_t1.cjs} +2 -2
  265. package/dist/{YTicksAndGridLines-DBDuz6vb.cjs.map → YTicksAndGridLines-qGpRo_t1.cjs.map} +1 -1
  266. package/dist/checkIfMultiple-Dko_cBvE.cjs +12 -0
  267. package/dist/checkIfMultiple-Dko_cBvE.cjs.map +1 -0
  268. package/dist/{checkIfMultiple-ChTJk2Tk.js → checkIfMultiple-u2SmbiCf.js} +11 -11
  269. package/dist/checkIfMultiple-u2SmbiCf.js.map +1 -0
  270. package/dist/{customArea-CK768gCn.cjs → customArea-1G1S78s_.cjs} +2 -2
  271. package/dist/{customArea-CK768gCn.cjs.map → customArea-1G1S78s_.cjs.map} +1 -1
  272. package/dist/{customArea-B-dWU0zZ.js → customArea-x4L4xwLl.js} +3 -3
  273. package/dist/{customArea-B-dWU0zZ.js.map → customArea-x4L4xwLl.js.map} +1 -1
  274. package/dist/getCentroidCoordinates-Dfk6IqEG.js.map +1 -1
  275. package/dist/getCentroidCoordinates-DxTBqzp2.cjs.map +1 -1
  276. package/dist/getSliderMarks-CUxPy36E.cjs +6 -0
  277. package/dist/getSliderMarks-CUxPy36E.cjs.map +1 -0
  278. package/dist/{getSliderMarks-9cNoRkDx.js → getSliderMarks-_pYOWEtO.js} +3 -3
  279. package/dist/getSliderMarks-_pYOWEtO.js.map +1 -0
  280. package/dist/{index-BYzIB5V6.cjs → index-BHe3wsWF.cjs} +2 -2
  281. package/dist/{index-BYzIB5V6.cjs.map → index-BHe3wsWF.cjs.map} +1 -1
  282. package/dist/{index-DKCxu1Gh.js → index-Bw_eHBVN.js} +3 -3
  283. package/dist/{index-DKCxu1Gh.js.map → index-Bw_eHBVN.js.map} +1 -1
  284. package/dist/{index-BW_-wD2k.cjs → index-C0bpbS4F.cjs} +2 -2
  285. package/dist/{index-BW_-wD2k.cjs.map → index-C0bpbS4F.cjs.map} +1 -1
  286. package/dist/{index-37q0ULNQ.js → index-CE9pmfxt.js} +17 -17
  287. package/dist/{index-37q0ULNQ.js.map → index-CE9pmfxt.js.map} +1 -1
  288. package/dist/{index-CVlCtJbC.cjs → index-CEJwW3lL.cjs} +2 -2
  289. package/dist/{index-CVlCtJbC.cjs.map → index-CEJwW3lL.cjs.map} +1 -1
  290. package/dist/{index-CHPV5EwG-BPSP-7Jg.js → index-CHPV5EwG-DBWUSD9b.js} +539 -543
  291. package/dist/index-CHPV5EwG-DBWUSD9b.js.map +1 -0
  292. package/dist/index-CHPV5EwG-DjM48pIC.cjs +44 -0
  293. package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +1 -0
  294. package/dist/{index-BW8iNx7E.cjs → index-Cm8NIdOO.cjs} +2 -2
  295. package/dist/{index-BW8iNx7E.cjs.map → index-Cm8NIdOO.cjs.map} +1 -1
  296. package/dist/{index-tvAyXPPW-DBlMKnNB.js → index-Cw8sCyo_-BuI_jX5Z.js} +3 -3
  297. package/dist/{index-tvAyXPPW-DBlMKnNB.js.map → index-Cw8sCyo_-BuI_jX5Z.js.map} +1 -1
  298. package/dist/index-Cw8sCyo_-gxT8ADyn.cjs +2 -0
  299. package/dist/index-Cw8sCyo_-gxT8ADyn.cjs.map +1 -0
  300. package/dist/{index-CNvov0eg.js → index-Cwgh7i7X.js} +3 -3
  301. package/dist/{index-CNvov0eg.js.map → index-Cwgh7i7X.js.map} +1 -1
  302. package/dist/{index-DG3YrCr5-D3FrrXj8.js → index-Dzc_aaI9-BKklH89r.js} +2 -2
  303. package/dist/{index-DG3YrCr5-D3FrrXj8.js.map → index-Dzc_aaI9-BKklH89r.js.map} +1 -1
  304. package/dist/{index-DG3YrCr5-v7rayV3N.cjs → index-Dzc_aaI9-RIk2GRHD.cjs} +2 -2
  305. package/dist/{index-DG3YrCr5-v7rayV3N.cjs.map → index-Dzc_aaI9-RIk2GRHD.cjs.map} +1 -1
  306. package/dist/{index-BmCqpO1B.js → index-zZjQEHlm.js} +2 -2
  307. package/dist/{index-BmCqpO1B.js.map → index-zZjQEHlm.js.map} +1 -1
  308. package/dist/index.cjs +1 -1
  309. package/dist/index.d.ts +9 -0
  310. package/dist/index.js +1 -1
  311. package/dist/{proxy-CkpFesk1.js → proxy-BYIC9BuT.js} +2 -2
  312. package/dist/{proxy-CkpFesk1.js.map → proxy-BYIC9BuT.js.map} +1 -1
  313. package/dist/{proxy-BHRoeZgd.cjs → proxy-CKadx4lC.cjs} +2 -2
  314. package/dist/{proxy-BHRoeZgd.cjs.map → proxy-CKadx4lC.cjs.map} +1 -1
  315. package/dist/style.css +1 -1
  316. package/dist/{use-in-view-sQJZ_xDO.cjs → use-in-view-CEwlc_dd.cjs} +2 -2
  317. package/dist/{use-in-view-sQJZ_xDO.cjs.map → use-in-view-CEwlc_dd.cjs.map} +1 -1
  318. package/dist/{use-in-view-yS6jzJAp.js → use-in-view-DR-UTB96.js} +2 -2
  319. package/dist/{use-in-view-yS6jzJAp.js.map → use-in-view-DR-UTB96.js.map} +1 -1
  320. package/package.json +4 -4
  321. package/dist/DropdownSelect-CtOKZHD0.js.map +0 -1
  322. package/dist/DropdownSelect-DBDM64B5.cjs.map +0 -1
  323. package/dist/GraphEl-C6yjl1VM.cjs +0 -2
  324. package/dist/GraphEl-C6yjl1VM.cjs.map +0 -1
  325. package/dist/GraphEl-CqWzvOyr.js.map +0 -1
  326. package/dist/Modal-DVVwpKhP.js.map +0 -1
  327. package/dist/Modal-tXZlLE5s.cjs +0 -46
  328. package/dist/Modal-tXZlLE5s.cjs.map +0 -1
  329. package/dist/RegressionLine-mH7UKOPi.js.map +0 -1
  330. package/dist/RegressionLine-xKdiJ8sw.cjs +0 -2
  331. package/dist/RegressionLine-xKdiJ8sw.cjs.map +0 -1
  332. package/dist/checkIfMultiple-BXbHUCWM.cjs +0 -12
  333. package/dist/checkIfMultiple-BXbHUCWM.cjs.map +0 -1
  334. package/dist/checkIfMultiple-ChTJk2Tk.js.map +0 -1
  335. package/dist/getSliderMarks-9cNoRkDx.js.map +0 -1
  336. package/dist/getSliderMarks-CRIbTGYV.cjs +0 -6
  337. package/dist/getSliderMarks-CRIbTGYV.cjs.map +0 -1
  338. package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +0 -1
  339. package/dist/index-CHPV5EwG-DDoeWRVt.cjs +0 -44
  340. package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +0 -1
  341. package/dist/index-tvAyXPPW-DPOG-C2i.cjs +0 -2
  342. package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +0 -1
@@ -1,21 +1,21 @@
1
- import { j as o, m as j } from "./index-CHPV5EwG-BPSP-7Jg.js";
1
+ import { j as o, m as j } from "./index-CHPV5EwG-DBWUSD9b.js";
2
2
  import { useRef as ii, useState as I, useEffect as yi } from "react";
3
3
  import { i as xi } from "./index-Bwrro8-q.js";
4
- import { X as mi } from "./Modal-DVVwpKhP.js";
5
- import { T as hi } from "./Tooltip-CVCGWyzw.js";
4
+ import { G as mi } from "./Modal-Cg8daIlV.js";
5
+ import { T as hi } from "./Tooltip-6LIdPQGC.js";
6
6
  import { c as J } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
- import { Colors as n } from "./Colors.js";
7
+ import { Colors as s } from "./Colors.js";
8
8
  import { s as fi } from "./string2HTML-oFCROsus.js";
9
- import { A as ri } from "./Axis-Ddg-seDi.js";
10
- import { A as ai } from "./AxisTitle-BmHLMRJZ.js";
9
+ import { A as ri } from "./Axis-4gUOL8B7.js";
10
+ import { A as ai } from "./AxisTitle-v6_xcXZ-.js";
11
11
  import { a as gi } from "./linear-DUdu7l2G.js";
12
- import { u as ui } from "./use-in-view-yS6jzJAp.js";
13
- import { m as O } from "./proxy-CkpFesk1.js";
14
- import { A as di } from "./index-CNvov0eg.js";
12
+ import { u as ui } from "./use-in-view-DR-UTB96.js";
13
+ import { m as O } from "./proxy-BYIC9BuT.js";
14
+ import { A as di } from "./index-Cwgh7i7X.js";
15
15
  import { GraphFooter as pi } from "./GraphFooter.js";
16
16
  import { GraphHeader as wi } from "./GraphHeader.js";
17
17
  import { ColorLegendWithMouseOver as vi } from "./ColorLegendWithMouseOver.js";
18
- import { E as bi } from "./EmptyState-DdTp-Mdn.js";
18
+ import { E as bi } from "./EmptyState-36lXXyui.js";
19
19
  import { u as ni } from "./uniqBy-BHy4I8PK.js";
20
20
  function Oi(K) {
21
21
  const {
@@ -24,13 +24,13 @@ function Oi(K) {
24
24
  height: k,
25
25
  showLabels: H,
26
26
  colors: e,
27
- colorDomain: r,
28
- radius: c,
27
+ colorDomain: a,
28
+ radius: r,
29
29
  leftMargin: m,
30
- rightMargin: X,
31
- topMargin: G,
30
+ rightMargin: G,
31
+ topMargin: R,
32
32
  bottomMargin: Q,
33
- tooltip: R,
33
+ tooltip: X,
34
34
  onSeriesMouseOver: F,
35
35
  axisTitles: L,
36
36
  highlightedDataPoints: x,
@@ -40,20 +40,20 @@ function Oi(K) {
40
40
  onSeriesMouseClick: E,
41
41
  resetSelectionOnDoubleClick: Z,
42
42
  detailsOnClick: g,
43
- styles: u,
43
+ styles: d,
44
44
  classNames: h,
45
- animate: s,
46
- dimmedOpacity: d,
45
+ animate: c,
46
+ dimmedOpacity: p,
47
47
  customLayers: B
48
- } = K, _ = ii(null), p = ui(_, {
49
- once: s.once,
50
- amount: s.amount
51
- }), [w, S] = I(void 0), [M, N] = I(void 0), [U, C] = I(void 0), [T, W] = I(void 0), A = {
52
- top: G,
48
+ } = K, _ = ii(null), w = ui(_, {
49
+ once: c.once,
50
+ amount: c.amount
51
+ }), [v, S] = I(void 0), [M, N] = I(void 0), [U, C] = I(void 0), [T, W] = I(void 0), A = {
52
+ top: R,
53
53
  bottom: Q,
54
54
  left: m,
55
- right: X
56
- }, v = $ - A.left - A.right, f = k - A.top - A.bottom, b = Math.min(Math.min(...l.map((i) => i.y1)), Math.min(...l.map((i) => i.y2))), P = Math.max(Math.max(...l.map((i) => i.y1)), Math.max(...l.map((i) => i.y2))), y = gi().domain([
55
+ right: G
56
+ }, u = $ - A.left - A.right, f = k - A.top - A.bottom, b = Math.min(Math.min(...l.map((i) => i.y1)), Math.min(...l.map((i) => i.y2))), P = Math.max(Math.max(...l.map((i) => i.y1)), Math.max(...l.map((i) => i.y2))), y = gi().domain([
57
57
  J(q) ? b > 0 ? 0 : b : q,
58
58
  J(z) ? P > 0 ? P : 0 : z
59
59
  ]).range([f, 0]).nice();
@@ -74,8 +74,8 @@ function Oi(K) {
74
74
  {
75
75
  y1: 0,
76
76
  y2: f,
77
- x1: c,
78
- x2: c,
77
+ x1: r,
78
+ x2: r,
79
79
  classNames: {
80
80
  axis: j(
81
81
  "stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",
@@ -87,9 +87,9 @@ function Oi(K) {
87
87
  /* @__PURE__ */ o.jsx(
88
88
  ai,
89
89
  {
90
- x: c,
90
+ x: r,
91
91
  y: f + 15,
92
- style: u?.yAxis?.title,
92
+ style: d?.yAxis?.title,
93
93
  className: j(
94
94
  "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
95
95
  h?.yAxis?.title
@@ -104,8 +104,8 @@ function Oi(K) {
104
104
  {
105
105
  y1: 0,
106
106
  y2: f,
107
- x1: v - c,
108
- x2: v - c,
107
+ x1: u - r,
108
+ x2: u - r,
109
109
  classNames: {
110
110
  axis: j(
111
111
  "stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",
@@ -117,9 +117,9 @@ function Oi(K) {
117
117
  /* @__PURE__ */ o.jsx(
118
118
  ai,
119
119
  {
120
- x: v - c,
120
+ x: u - r,
121
121
  y: f + 15,
122
- style: u?.yAxis?.title,
122
+ style: d?.yAxis?.title,
123
123
  className: j(
124
124
  "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
125
125
  h?.yAxis?.title
@@ -134,16 +134,16 @@ function Oi(K) {
134
134
  {
135
135
  variants: {
136
136
  initial: {
137
- opacity: D ? i.color && e[r.indexOf(`${i.color}`)] === D ? 1 : d : w ? w.label === i.label ? 1 : d : x.length !== 0 ? x.indexOf(i.label) !== -1 ? 1 : d : 1
137
+ opacity: D ? i.color && e[a.indexOf(`${i.color}`)] === D ? 1 : p : v ? v.label === i.label ? 1 : p : x.length !== 0 ? x.indexOf(i.label) !== -1 ? 1 : p : 1
138
138
  },
139
139
  whileInView: {
140
- opacity: D ? i.color && e[r.indexOf(`${i.color}`)] === D ? 1 : d : w ? w.label === i.label ? 1 : d : x.length !== 0 ? x.indexOf(i.label) !== -1 ? 1 : d : 1,
141
- transition: { duration: s.duration }
140
+ opacity: D ? i.color && e[a.indexOf(`${i.color}`)] === D ? 1 : p : v ? v.label === i.label ? 1 : p : x.length !== 0 ? x.indexOf(i.label) !== -1 ? 1 : p : 1,
141
+ transition: { duration: c.duration }
142
142
  }
143
143
  },
144
144
  initial: "initial",
145
- animate: p ? "whileInView" : "initial",
146
- exit: { opacity: 0, transition: { duration: s.duration } },
145
+ animate: w ? "whileInView" : "initial",
146
+ exit: { opacity: 0, transition: { duration: c.duration } },
147
147
  onMouseEnter: (t) => {
148
148
  S(i), W(t.clientY), C(t.clientX), F?.(i);
149
149
  },
@@ -160,26 +160,27 @@ function Oi(K) {
160
160
  /* @__PURE__ */ o.jsx(
161
161
  O.circle,
162
162
  {
163
- cx: c,
164
163
  variants: {
165
164
  initial: {
165
+ cx: r,
166
166
  cy: y(i.y1),
167
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
168
- stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
167
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
168
+ stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
169
169
  opacity: 0
170
170
  },
171
171
  whileInView: {
172
+ cx: r,
172
173
  cy: y(i.y1),
173
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
174
- stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
174
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
175
+ stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
175
176
  opacity: 1,
176
- transition: { duration: s.duration }
177
+ transition: { duration: c.duration }
177
178
  }
178
179
  },
179
180
  initial: "initial",
180
- animate: p ? "whileInView" : "initial",
181
- exit: { opacity: 0, transition: { duration: s.duration } },
182
- r: c,
181
+ animate: w ? "whileInView" : "initial",
182
+ exit: { opacity: 0, transition: { duration: c.duration } },
183
+ r,
183
184
  style: {
184
185
  fillOpacity: 0.6
185
186
  }
@@ -191,28 +192,28 @@ function Oi(K) {
191
192
  variants: {
192
193
  initial: {
193
194
  y: y(i.y1),
194
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
195
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
195
196
  opacity: 0
196
197
  },
197
198
  whileInView: {
198
199
  y: y(i.y1),
199
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
200
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
200
201
  opacity: 1,
201
- transition: { duration: s.duration }
202
+ transition: { duration: c.duration }
202
203
  }
203
204
  },
204
205
  initial: "initial",
205
- animate: p ? "whileInView" : "initial",
206
- exit: { opacity: 0, transition: { duration: s.duration } },
206
+ animate: w ? "whileInView" : "initial",
207
+ exit: { opacity: 0, transition: { duration: c.duration } },
207
208
  style: {
208
209
  textAnchor: "end",
209
- ...u?.yAxis?.labels || {}
210
+ ...d?.yAxis?.labels || {}
210
211
  },
211
212
  className: j("text-xs", h?.yAxis?.labels),
212
213
  x: 5,
213
214
  dy: "0.33em",
214
215
  textAnchor: "end",
215
- dx: 0 - c - 3,
216
+ dx: 0 - r - 3,
216
217
  children: i.label
217
218
  }
218
219
  ) : x.length !== 0 && x.indexOf(i.label) !== -1 ? /* @__PURE__ */ o.jsx(
@@ -221,22 +222,22 @@ function Oi(K) {
221
222
  variants: {
222
223
  initial: {
223
224
  y: y(i.y1),
224
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
225
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
225
226
  opacity: 0
226
227
  },
227
228
  whileInView: {
228
229
  y: y(i.y1),
229
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
230
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
230
231
  opacity: 1,
231
- transition: { duration: s.duration }
232
+ transition: { duration: c.duration }
232
233
  }
233
234
  },
234
235
  initial: "initial",
235
- animate: p ? "whileInView" : "initial",
236
- exit: { opacity: 0, transition: { duration: s.duration } },
236
+ animate: w ? "whileInView" : "initial",
237
+ exit: { opacity: 0, transition: { duration: c.duration } },
237
238
  style: {
238
239
  textAnchor: "end",
239
- ...u?.yAxis?.labels || {}
240
+ ...d?.yAxis?.labels || {}
240
241
  },
241
242
  className: j("text-xs", h?.yAxis?.labels),
242
243
  x: 5,
@@ -248,26 +249,27 @@ function Oi(K) {
248
249
  /* @__PURE__ */ o.jsx(
249
250
  O.circle,
250
251
  {
251
- cx: v - c,
252
252
  variants: {
253
253
  initial: {
254
+ cx: u - r,
254
255
  cy: y(i.y2),
255
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
256
- stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
256
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
257
+ stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
257
258
  opacity: 0
258
259
  },
259
260
  whileInView: {
261
+ cx: u - r,
260
262
  cy: y(i.y2),
261
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
262
- stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
263
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
264
+ stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
263
265
  opacity: 1,
264
- transition: { duration: s.duration }
266
+ transition: { duration: c.duration }
265
267
  }
266
268
  },
267
269
  initial: "initial",
268
- animate: p ? "whileInView" : "initial",
269
- exit: { opacity: 0, transition: { duration: s.duration } },
270
- r: c,
270
+ animate: w ? "whileInView" : "initial",
271
+ exit: { opacity: 0, transition: { duration: c.duration } },
272
+ r,
271
273
  style: {
272
274
  fillOpacity: 0.6
273
275
  }
@@ -279,27 +281,27 @@ function Oi(K) {
279
281
  variants: {
280
282
  initial: {
281
283
  y: y(i.y2),
282
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
284
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
283
285
  opacity: 0
284
286
  },
285
287
  whileInView: {
286
288
  y: y(i.y2),
287
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
289
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
288
290
  opacity: 1,
289
- transition: { duration: s.duration }
291
+ transition: { duration: c.duration }
290
292
  }
291
293
  },
292
294
  initial: "initial",
293
- animate: p ? "whileInView" : "initial",
294
- exit: { opacity: 0, transition: { duration: s.duration } },
295
+ animate: w ? "whileInView" : "initial",
296
+ exit: { opacity: 0, transition: { duration: c.duration } },
295
297
  style: {
296
298
  textAnchor: "start",
297
- ...u?.yAxis?.labels || {}
299
+ ...d?.yAxis?.labels || {}
298
300
  },
299
301
  className: j("text-xs", h?.yAxis?.labels),
300
- x: v - 5,
302
+ x: u - 5,
301
303
  dy: "0.33em",
302
- dx: c + 3,
304
+ dx: r + 3,
303
305
  children: i.label
304
306
  }
305
307
  ) : x.length !== 0 && x.indexOf(i.label) !== -1 ? /* @__PURE__ */ o.jsx(
@@ -308,25 +310,25 @@ function Oi(K) {
308
310
  variants: {
309
311
  initial: {
310
312
  y: y(i.y2),
311
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
313
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
312
314
  opacity: 0
313
315
  },
314
316
  whileInView: {
315
317
  y: y(i.y2),
316
- fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
318
+ fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
317
319
  opacity: 1,
318
- transition: { duration: s.duration }
320
+ transition: { duration: c.duration }
319
321
  }
320
322
  },
321
323
  initial: "initial",
322
- animate: p ? "whileInView" : "initial",
323
- exit: { opacity: 0, transition: { duration: s.duration } },
324
+ animate: w ? "whileInView" : "initial",
325
+ exit: { opacity: 0, transition: { duration: c.duration } },
324
326
  style: {
325
327
  textAnchor: "start",
326
- ...u?.yAxis?.labels || {}
328
+ ...d?.yAxis?.labels || {}
327
329
  },
328
330
  className: j("text-xs", h?.yAxis?.labels),
329
- x: v - 5,
331
+ x: u - 5,
330
332
  dy: "0.33em",
331
333
  dx: 3,
332
334
  children: i.label
@@ -335,29 +337,31 @@ function Oi(K) {
335
337
  /* @__PURE__ */ o.jsx(
336
338
  O.line,
337
339
  {
338
- x1: c,
339
- x2: v - c,
340
340
  variants: {
341
341
  initial: {
342
+ x1: r,
343
+ x2: u - r,
342
344
  y1: y(i.y1),
343
345
  y2: y(i.y1),
344
- stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray
346
+ stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray
345
347
  },
346
348
  whileInView: {
349
+ x1: r,
350
+ x2: u - r,
347
351
  y1: y(i.y1),
348
352
  y2: y(i.y2),
349
- stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[r.indexOf(`${i.color}`)] : n.gray,
350
- transition: { duration: s.duration }
353
+ stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
354
+ transition: { duration: c.duration }
351
355
  }
352
356
  },
353
357
  initial: "initial",
354
- animate: p ? "whileInView" : "initial",
355
- exit: { opacity: 0, transition: { duration: s.duration } },
358
+ animate: w ? "whileInView" : "initial",
359
+ exit: { opacity: 0, transition: { duration: c.duration } },
356
360
  className: h?.dataConnectors,
357
361
  style: {
358
362
  fill: "none",
359
363
  strokeWidth: 1,
360
- ...u?.dataConnectors
364
+ ...d?.dataConnectors
361
365
  }
362
366
  }
363
367
  )
@@ -369,14 +373,14 @@ function Oi(K) {
369
373
  ] })
370
374
  }
371
375
  ),
372
- w && R && U && T ? /* @__PURE__ */ o.jsx(
376
+ v && X && U && T ? /* @__PURE__ */ o.jsx(
373
377
  hi,
374
378
  {
375
- data: w,
376
- body: R,
379
+ data: v,
380
+ body: X,
377
381
  xPos: U,
378
382
  yPos: T,
379
- backgroundStyle: u?.tooltip,
383
+ backgroundStyle: d?.tooltip,
380
384
  className: h?.tooltip
381
385
  }
382
386
  ) : null,
@@ -399,20 +403,20 @@ function Oi(K) {
399
403
  ) : null
400
404
  ] });
401
405
  }
402
- function Gi(K) {
406
+ function Ri(K) {
403
407
  const {
404
408
  data: l,
405
409
  graphTitle: $,
406
410
  colors: k,
407
411
  sources: H,
408
412
  graphDescription: e,
409
- showLabels: r = !1,
410
- height: c,
413
+ showLabels: a = !1,
414
+ height: r,
411
415
  width: m,
412
- footNote: X,
413
- colorDomain: G,
416
+ footNote: G,
417
+ colorDomain: R,
414
418
  colorLegendTitle: Q,
415
- radius: R = 5,
419
+ radius: X = 5,
416
420
  axisTitles: F = ["", ""],
417
421
  padding: L,
418
422
  backgroundColor: x = !1,
@@ -422,14 +426,14 @@ function Gi(K) {
422
426
  bottomMargin: E = 20,
423
427
  tooltip: Z,
424
428
  relativeHeight: g,
425
- onSeriesMouseOver: u,
429
+ onSeriesMouseOver: d,
426
430
  showColorScale: h = !0,
427
- highlightedDataPoints: s = [],
428
- graphID: d,
431
+ highlightedDataPoints: c = [],
432
+ graphID: p,
429
433
  minValue: B,
430
434
  maxValue: _,
431
- onSeriesMouseClick: p,
432
- graphDownload: w = !1,
435
+ onSeriesMouseClick: w,
436
+ graphDownload: v = !1,
433
437
  dataDownload: S = !1,
434
438
  fillContainer: M = !0,
435
439
  language: N = "en",
@@ -438,7 +442,7 @@ function Gi(K) {
438
442
  theme: T = "light",
439
443
  ariaLabel: W,
440
444
  resetSelectionOnDoubleClick: A = !0,
441
- detailsOnClick: v,
445
+ detailsOnClick: u,
442
446
  styles: f,
443
447
  classNames: b,
444
448
  animate: P = !1,
@@ -446,11 +450,11 @@ function Gi(K) {
446
450
  customLayers: i = []
447
451
  } = K, [V, t] = I(0), [ti, ei] = I(0), [si, ci] = I(void 0), Y = ii(null), oi = ii(null);
448
452
  return yi(() => {
449
- const a = new ResizeObserver((li) => {
450
- t(m || li[0].target.clientWidth || 620), ei(c || li[0].target.clientHeight || 480);
453
+ const n = new ResizeObserver((li) => {
454
+ t(m || li[0].target.clientWidth || 620), ei(r || li[0].target.clientHeight || 480);
451
455
  });
452
- return Y.current && (ei(Y.current.clientHeight || 480), t(Y.current.clientWidth || 620), m || a.observe(Y.current)), () => a.disconnect();
453
- }, [m, c]), /* @__PURE__ */ o.jsx(
456
+ return Y.current && (ei(Y.current.clientHeight || 480), t(Y.current.clientWidth || 620), m || n.observe(Y.current)), () => n.disconnect();
457
+ }, [m, r]), /* @__PURE__ */ o.jsx(
454
458
  "div",
455
459
  {
456
460
  className: `${T || "light"} flex ${m ? "grow-0" : "grow"} ${M ? "w-full" : "w-fit"} `,
@@ -467,7 +471,7 @@ function Gi(K) {
467
471
  ...f?.graphContainer || {},
468
472
  ...x && x !== !0 ? { backgroundColor: x } : {}
469
473
  },
470
- id: d,
474
+ id: p,
471
475
  ref: oi,
472
476
  "aria-label": W || `${$ ? `The graph shows ${$}. ` : ""}This is a slope chart showing changes in data between two category or starting and ending time. Each line represents a different row in data, with lines sloping up or down to show increase or decrease over two categories or time.${e ? ` ${e}` : ""}`,
473
477
  children: /* @__PURE__ */ o.jsx(
@@ -476,7 +480,7 @@ function Gi(K) {
476
480
  className: "flex grow",
477
481
  style: { padding: x ? L || "1rem" : L || 0 },
478
482
  children: /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
479
- $ || e || w || S ? /* @__PURE__ */ o.jsx(
483
+ $ || e || v || S ? /* @__PURE__ */ o.jsx(
480
484
  wi,
481
485
  {
482
486
  styles: {
@@ -490,18 +494,18 @@ function Gi(K) {
490
494
  graphTitle: $,
491
495
  graphDescription: e,
492
496
  width: m,
493
- graphDownload: w ? oi.current : void 0,
494
- dataDownload: S ? l.map((a) => a.data).filter((a) => a !== void 0).length > 0 ? l.map((a) => a.data).filter((a) => a !== void 0) : l.filter((a) => a !== void 0) : null
497
+ graphDownload: v ? oi.current : void 0,
498
+ dataDownload: S ? l.map((n) => n.data).filter((n) => n !== void 0).length > 0 ? l.map((n) => n.data).filter((n) => n !== void 0) : l.filter((n) => n !== void 0) : null
495
499
  }
496
500
  ) : null,
497
501
  /* @__PURE__ */ o.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: l.length === 0 ? /* @__PURE__ */ o.jsx(bi, {}) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
498
- h && l.filter((a) => a.color).length !== 0 ? /* @__PURE__ */ o.jsx(
502
+ h && l.filter((n) => n.color).length !== 0 ? /* @__PURE__ */ o.jsx(
499
503
  vi,
500
504
  {
501
505
  width: m,
502
506
  colorLegendTitle: Q,
503
- colors: k || n[T].categoricalColors.colors,
504
- colorDomain: G || ni(l, "color", !0),
507
+ colors: k || s[T].categoricalColors.colors,
508
+ colorDomain: R || ni(l, "color", !0),
505
509
  setSelectedColor: ci,
506
510
  showNAColor: U
507
511
  }
@@ -512,35 +516,35 @@ function Gi(K) {
512
516
  className: "flex flex-col grow justify-center w-full leading-0",
513
517
  ref: Y,
514
518
  "aria-label": "Graph area",
515
- children: (m || V) && (c || ti) ? /* @__PURE__ */ o.jsx(
519
+ children: (m || V) && (r || ti) ? /* @__PURE__ */ o.jsx(
516
520
  Oi,
517
521
  {
518
522
  data: l.filter(
519
- (a) => !J(a.y1) && !J(a.y2)
523
+ (n) => !J(n.y1) && !J(n.y2)
520
524
  ),
521
525
  width: m || V,
522
526
  height: Math.max(
523
527
  C,
524
- c || (g ? C ? (m || V) * g > C ? (m || V) * g : C : (m || V) * g : ti)
528
+ r || (g ? C ? (m || V) * g > C ? (m || V) * g : C : (m || V) * g : ti)
525
529
  ),
526
- colorDomain: l.filter((a) => a.color).length === 0 ? [] : G || ni(l, "color", !0),
527
- colors: l.filter((a) => a.color).length === 0 ? k ? [k] : [n.primaryColors["blue-600"]] : k || n[T].categoricalColors.colors,
530
+ colorDomain: l.filter((n) => n.color).length === 0 ? [] : R || ni(l, "color", !0),
531
+ colors: l.filter((n) => n.color).length === 0 ? k ? [k] : [s.primaryColors["blue-600"]] : k || s[T].categoricalColors.colors,
528
532
  selectedColor: si,
529
533
  axisTitles: F,
530
- showLabels: r,
531
- radius: R,
534
+ showLabels: a,
535
+ radius: X,
532
536
  leftMargin: D,
533
537
  rightMargin: q,
534
538
  topMargin: z,
535
539
  bottomMargin: E,
536
540
  tooltip: Z,
537
- onSeriesMouseOver: u,
538
- highlightedDataPoints: s,
541
+ onSeriesMouseOver: d,
542
+ highlightedDataPoints: c,
539
543
  minValue: B,
540
544
  maxValue: _,
541
- onSeriesMouseClick: p,
545
+ onSeriesMouseClick: w,
542
546
  resetSelectionOnDoubleClick: A,
543
- detailsOnClick: v,
547
+ detailsOnClick: u,
544
548
  styles: f,
545
549
  classNames: b,
546
550
  animate: P === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : P || { duration: 0, once: !0, amount: 0 },
@@ -551,7 +555,7 @@ function Gi(K) {
551
555
  }
552
556
  )
553
557
  ] }) }),
554
- H || X ? /* @__PURE__ */ o.jsx(
558
+ H || G ? /* @__PURE__ */ o.jsx(
555
559
  pi,
556
560
  {
557
561
  styles: { footnote: f?.footnote, source: f?.source },
@@ -560,7 +564,7 @@ function Gi(K) {
560
564
  source: b?.source
561
565
  },
562
566
  sources: H,
563
- footNote: X,
567
+ footNote: G,
564
568
  width: m
565
569
  }
566
570
  ) : null
@@ -573,6 +577,6 @@ function Gi(K) {
573
577
  );
574
578
  }
575
579
  export {
576
- Gi as SlopeChart
580
+ Ri as SlopeChart
577
581
  };
578
582
  //# sourceMappingURL=SlopeChart.js.map