@undp/data-viz 1.5.8 → 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 (305) 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.js +16 -16
  13. package/dist/BasicStatCard.cjs +1 -1
  14. package/dist/BasicStatCard.js +2 -2
  15. package/dist/BeeSwarmChart.cjs +1 -1
  16. package/dist/BeeSwarmChart.js +42 -42
  17. package/dist/BiVariateChoroplethMap.cjs +1 -1
  18. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  19. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  20. package/dist/BiVariateChoroplethMap.js +257 -264
  21. package/dist/BiVariateChoroplethMap.js.map +1 -1
  22. package/dist/BulletChart.cjs +1 -1
  23. package/dist/BulletChart.js +14 -14
  24. package/dist/ButterflyChart.cjs +1 -1
  25. package/dist/ButterflyChart.js +45 -45
  26. package/dist/ChoroplethMap.cjs +1 -1
  27. package/dist/ChoroplethMap.cjs.map +1 -1
  28. package/dist/ChoroplethMap.d.ts +2 -0
  29. package/dist/ChoroplethMap.js +296 -304
  30. package/dist/ChoroplethMap.js.map +1 -1
  31. package/dist/CirclePackingGraph.cjs +1 -1
  32. package/dist/CirclePackingGraph.js +3 -3
  33. package/dist/ColorLegend.cjs +1 -1
  34. package/dist/ColorLegend.js +2 -2
  35. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  36. package/dist/ColorLegendWithMouseOver.js +2 -2
  37. package/dist/CopyTextButton.cjs +4 -4
  38. package/dist/CopyTextButton.cjs.map +1 -1
  39. package/dist/CopyTextButton.js +27 -27
  40. package/dist/CopyTextButton.js.map +1 -1
  41. package/dist/CsvDownloadButton.cjs +1 -1
  42. package/dist/CsvDownloadButton.js +2 -2
  43. package/dist/DataCards.cjs +3 -3
  44. package/dist/DataCards.cjs.map +1 -1
  45. package/dist/DataCards.js +16 -16
  46. package/dist/DataCards.js.map +1 -1
  47. package/dist/DataTable.cjs +1 -1
  48. package/dist/DataTable.js +3 -3
  49. package/dist/DifferenceLineChart.cjs +1 -1
  50. package/dist/DifferenceLineChart.js +12 -12
  51. package/dist/DonutChart.cjs +1 -1
  52. package/dist/DonutChart.js +20 -20
  53. package/dist/DotDensityMap.cjs +1 -1
  54. package/dist/DotDensityMap.cjs.map +1 -1
  55. package/dist/DotDensityMap.d.ts +2 -0
  56. package/dist/DotDensityMap.js +282 -289
  57. package/dist/DotDensityMap.js.map +1 -1
  58. package/dist/{DropdownSelect-CtOKZHD0.js → DropdownSelect-6kjXM6oW.js} +2 -2
  59. package/dist/DropdownSelect-6kjXM6oW.js.map +1 -0
  60. package/dist/{DropdownSelect-DBDM64B5.cjs → DropdownSelect-vt8yiB-g.cjs} +5 -5
  61. package/dist/DropdownSelect-vt8yiB-g.cjs.map +1 -0
  62. package/dist/DualAxisLineChart.cjs +1 -1
  63. package/dist/DualAxisLineChart.js +9 -9
  64. package/dist/DumbbellChart.cjs +1 -1
  65. package/dist/DumbbellChart.js +50 -50
  66. package/dist/{EmptyState-DdTp-Mdn.js → EmptyState-36lXXyui.js} +4 -4
  67. package/dist/{EmptyState-DdTp-Mdn.js.map → EmptyState-36lXXyui.js.map} +1 -1
  68. package/dist/{EmptyState-d8_8SxeW.cjs → EmptyState-B8IpKGcL.cjs} +2 -2
  69. package/dist/{EmptyState-d8_8SxeW.cjs.map → EmptyState-B8IpKGcL.cjs.map} +1 -1
  70. package/dist/ExcelDownloadButton.cjs +1 -1
  71. package/dist/ExcelDownloadButton.js +2 -2
  72. package/dist/FootNote.cjs +1 -1
  73. package/dist/FootNote.js +2 -2
  74. package/dist/GeoHubCompareMaps.cjs +1 -1
  75. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  76. package/dist/GeoHubCompareMaps.js +65 -80
  77. package/dist/GeoHubCompareMaps.js.map +1 -1
  78. package/dist/GeoHubMap.cjs +1 -1
  79. package/dist/GeoHubMap.cjs.map +1 -1
  80. package/dist/GeoHubMap.js +95 -125
  81. package/dist/GeoHubMap.js.map +1 -1
  82. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  83. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  84. package/dist/GeoHubMapWithLayerSelection.js +73 -88
  85. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  86. package/dist/GraphDescription.cjs +1 -1
  87. package/dist/GraphDescription.js +2 -2
  88. package/dist/{GraphEl-CqWzvOyr.js → GraphEl-2IiUDxjR.js} +15 -12
  89. package/dist/GraphEl-2IiUDxjR.js.map +1 -0
  90. package/dist/GraphEl-qrlfGPe3.cjs +2 -0
  91. package/dist/GraphEl-qrlfGPe3.cjs.map +1 -0
  92. package/dist/GraphFooter.cjs +1 -1
  93. package/dist/GraphFooter.js +1 -1
  94. package/dist/GraphHeader.cjs +1 -1
  95. package/dist/GraphHeader.js +1 -1
  96. package/dist/GraphTitle.cjs +1 -1
  97. package/dist/GraphTitle.js +2 -2
  98. package/dist/GriddedGraphs.cjs +1 -1
  99. package/dist/GriddedGraphs.d.ts +1 -0
  100. package/dist/GriddedGraphs.js +5 -5
  101. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  102. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  103. package/dist/GriddedGraphsFromConfig.js +2 -2
  104. package/dist/HeatMap.cjs +1 -1
  105. package/dist/HeatMap.js +19 -19
  106. package/dist/Histogram.cjs +1 -1
  107. package/dist/Histogram.js +3 -3
  108. package/dist/ImageDownloadButton.cjs +1 -1
  109. package/dist/ImageDownloadButton.js +2 -2
  110. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  111. package/dist/LineChartWithConfidenceInterval.js +12 -12
  112. package/dist/LinearColorLegend.cjs +1 -1
  113. package/dist/LinearColorLegend.js +2 -2
  114. package/dist/{Modal-DVVwpKhP.js → Modal-Cg8daIlV.js} +198 -187
  115. package/dist/Modal-Cg8daIlV.js.map +1 -0
  116. package/dist/Modal-CuuJdWkD.cjs +46 -0
  117. package/dist/Modal-CuuJdWkD.cjs.map +1 -0
  118. package/dist/MultiGraphDashboard.cjs +1 -1
  119. package/dist/MultiGraphDashboard.d.ts +1 -0
  120. package/dist/MultiGraphDashboard.js +3 -3
  121. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  122. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  123. package/dist/MultiGraphDashboardFromConfig.js +2 -2
  124. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  125. package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
  126. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  127. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
  128. package/dist/MultiLineAltChart.cjs +1 -1
  129. package/dist/MultiLineAltChart.js +12 -12
  130. package/dist/MultiLineChart.cjs +1 -1
  131. package/dist/MultiLineChart.js +12 -12
  132. package/dist/ParetoChart.cjs +1 -1
  133. package/dist/ParetoChart.js +26 -26
  134. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  135. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  136. package/dist/PerformanceIntensiveMultiGraphDashboard.js +3 -3
  137. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  138. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  139. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
  140. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  141. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  142. package/dist/PerformanceIntensiveScrollStory.js +3 -3
  143. package/dist/RadarChart.cjs +1 -1
  144. package/dist/RadarChart.js +7 -7
  145. package/dist/{ReferenceLine-CfAW3vKJ.js → ReferenceLine-CPMaAX0r.js} +3 -3
  146. package/dist/{ReferenceLine-CfAW3vKJ.js.map → ReferenceLine-CPMaAX0r.js.map} +1 -1
  147. package/dist/{ReferenceLine-CFVBBN__.cjs → ReferenceLine-D04j-zeV.cjs} +2 -2
  148. package/dist/{ReferenceLine-CFVBBN__.cjs.map → ReferenceLine-D04j-zeV.cjs.map} +1 -1
  149. package/dist/{RegressionLine-C2--oMQq.js → RegressionLine-CW7iViH2.js} +4 -4
  150. package/dist/{RegressionLine-C2--oMQq.js.map → RegressionLine-CW7iViH2.js.map} +1 -1
  151. package/dist/{RegressionLine-Dj0GSiAp.cjs → RegressionLine-D-49RaHa.cjs} +2 -2
  152. package/dist/{RegressionLine-Dj0GSiAp.cjs.map → RegressionLine-D-49RaHa.cjs.map} +1 -1
  153. package/dist/SVGDownloadButton.cjs +1 -1
  154. package/dist/SVGDownloadButton.js +2 -2
  155. package/dist/SankeyChart.cjs +1 -1
  156. package/dist/SankeyChart.js +27 -27
  157. package/dist/ScatterPlot.cjs +1 -1
  158. package/dist/ScatterPlot.js +17 -17
  159. package/dist/ScrollStory.cjs +1 -1
  160. package/dist/ScrollStory.d.ts +1 -0
  161. package/dist/ScrollStory.js +3 -3
  162. package/dist/SimpleLineChart.cjs +1 -1
  163. package/dist/SimpleLineChart.js +13 -13
  164. package/dist/SingleGraphDashboard.cjs +1 -1
  165. package/dist/SingleGraphDashboard.d.ts +1 -0
  166. package/dist/SingleGraphDashboard.js +6 -6
  167. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  168. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  169. package/dist/SingleGraphDashboardFromConfig.js +2 -2
  170. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  171. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  172. package/dist/SingleGraphDashboardGeoHubMaps.js +2 -2
  173. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  174. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  175. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
  176. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  177. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  178. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  179. package/dist/SingleGraphDashboardThreeDGraphs.js +14 -13
  180. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  181. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  182. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  183. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
  184. package/dist/SlopeChart.cjs +1 -1
  185. package/dist/SlopeChart.js +26 -26
  186. package/dist/Source.cjs +1 -1
  187. package/dist/Source.js +2 -2
  188. package/dist/SparkLine.cjs +1 -1
  189. package/dist/SparkLine.js +2 -2
  190. package/dist/{Spinner-C85UF28E.js → Spinner-Bpz70q_g.js} +2 -2
  191. package/dist/{Spinner-C85UF28E.js.map → Spinner-Bpz70q_g.js.map} +1 -1
  192. package/dist/{Spinner-DA6Z5E4n.cjs → Spinner-C6wLp85s.cjs} +2 -2
  193. package/dist/{Spinner-DA6Z5E4n.cjs.map → Spinner-C6wLp85s.cjs.map} +1 -1
  194. package/dist/StatCardFromData.cjs +1 -1
  195. package/dist/StatCardFromData.js +2 -2
  196. package/dist/StripChart.cjs +1 -1
  197. package/dist/StripChart.js +29 -29
  198. package/dist/ThreeDGlobe.cjs +1 -1
  199. package/dist/ThreeDGlobe.cjs.map +1 -1
  200. package/dist/ThreeDGlobe.d.ts +2 -0
  201. package/dist/ThreeDGlobe.js +220 -228
  202. package/dist/ThreeDGlobe.js.map +1 -1
  203. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  204. package/dist/ThresholdColorLegendWithMouseOver.js +2 -2
  205. package/dist/{Tooltip-CVCGWyzw.js → Tooltip-6LIdPQGC.js} +2 -2
  206. package/dist/{Tooltip-CVCGWyzw.js.map → Tooltip-6LIdPQGC.js.map} +1 -1
  207. package/dist/{Tooltip-De16GWhY.cjs → Tooltip-Cpv0QohJ.cjs} +2 -2
  208. package/dist/{Tooltip-De16GWhY.cjs.map → Tooltip-Cpv0QohJ.cjs.map} +1 -1
  209. package/dist/TreeMapGraph.cjs +1 -1
  210. package/dist/TreeMapGraph.js +24 -24
  211. package/dist/Types.d.ts +1 -0
  212. package/dist/{Typography-k-kOjICQ.cjs → Typography-BDULiwlF.cjs} +2 -2
  213. package/dist/{Typography-k-kOjICQ.cjs.map → Typography-BDULiwlF.cjs.map} +1 -1
  214. package/dist/{Typography-Ctgfl1J5.js → Typography-LmZ9LEpe.js} +2 -2
  215. package/dist/{Typography-Ctgfl1J5.js.map → Typography-LmZ9LEpe.js.map} +1 -1
  216. package/dist/UnitChart.cjs +1 -1
  217. package/dist/UnitChart.js +5 -5
  218. package/dist/{XAxesLabels-Drf7M3YK.cjs → XAxesLabels-CLZnBgSr.cjs} +2 -2
  219. package/dist/{XAxesLabels-Drf7M3YK.cjs.map → XAxesLabels-CLZnBgSr.cjs.map} +1 -1
  220. package/dist/{XAxesLabels-loO78vUO.js → XAxesLabels-SOSmso5J.js} +3 -3
  221. package/dist/{XAxesLabels-loO78vUO.js.map → XAxesLabels-SOSmso5J.js.map} +1 -1
  222. package/dist/{XTicksAndGridLines-Bn9u5gOM.js → XTicksAndGridLines-DuydSnZ_.js} +2 -2
  223. package/dist/{XTicksAndGridLines-Bn9u5gOM.js.map → XTicksAndGridLines-DuydSnZ_.js.map} +1 -1
  224. package/dist/{XTicksAndGridLines-CCzXIV8d.cjs → XTicksAndGridLines-RKy7BVCO.cjs} +2 -2
  225. package/dist/{XTicksAndGridLines-CCzXIV8d.cjs.map → XTicksAndGridLines-RKy7BVCO.cjs.map} +1 -1
  226. package/dist/{YAxesLabels-DECkMgq8.js → YAxesLabels-DlDyLvhi.js} +3 -3
  227. package/dist/{YAxesLabels-DECkMgq8.js.map → YAxesLabels-DlDyLvhi.js.map} +1 -1
  228. package/dist/{YAxesLabels-yRFFdx1s.cjs → YAxesLabels-Dqd259-t.cjs} +2 -2
  229. package/dist/{YAxesLabels-yRFFdx1s.cjs.map → YAxesLabels-Dqd259-t.cjs.map} +1 -1
  230. package/dist/{YTicksAndGridLines-B6ah7CRf.js → YTicksAndGridLines-7t4MKtGw.js} +2 -2
  231. package/dist/{YTicksAndGridLines-B6ah7CRf.js.map → YTicksAndGridLines-7t4MKtGw.js.map} +1 -1
  232. package/dist/{YTicksAndGridLines-DBDuz6vb.cjs → YTicksAndGridLines-qGpRo_t1.cjs} +2 -2
  233. package/dist/{YTicksAndGridLines-DBDuz6vb.cjs.map → YTicksAndGridLines-qGpRo_t1.cjs.map} +1 -1
  234. package/dist/checkIfMultiple-Dko_cBvE.cjs +12 -0
  235. package/dist/checkIfMultiple-Dko_cBvE.cjs.map +1 -0
  236. package/dist/{checkIfMultiple-ChTJk2Tk.js → checkIfMultiple-u2SmbiCf.js} +11 -11
  237. package/dist/checkIfMultiple-u2SmbiCf.js.map +1 -0
  238. package/dist/{customArea-CK768gCn.cjs → customArea-1G1S78s_.cjs} +2 -2
  239. package/dist/{customArea-CK768gCn.cjs.map → customArea-1G1S78s_.cjs.map} +1 -1
  240. package/dist/{customArea-B-dWU0zZ.js → customArea-x4L4xwLl.js} +3 -3
  241. package/dist/{customArea-B-dWU0zZ.js.map → customArea-x4L4xwLl.js.map} +1 -1
  242. package/dist/getSliderMarks-CUxPy36E.cjs +6 -0
  243. package/dist/getSliderMarks-CUxPy36E.cjs.map +1 -0
  244. package/dist/{getSliderMarks-9cNoRkDx.js → getSliderMarks-_pYOWEtO.js} +3 -3
  245. package/dist/getSliderMarks-_pYOWEtO.js.map +1 -0
  246. package/dist/{index-BYzIB5V6.cjs → index-BHe3wsWF.cjs} +2 -2
  247. package/dist/{index-BYzIB5V6.cjs.map → index-BHe3wsWF.cjs.map} +1 -1
  248. package/dist/{index-DKCxu1Gh.js → index-Bw_eHBVN.js} +3 -3
  249. package/dist/{index-DKCxu1Gh.js.map → index-Bw_eHBVN.js.map} +1 -1
  250. package/dist/{index-BW_-wD2k.cjs → index-C0bpbS4F.cjs} +2 -2
  251. package/dist/{index-BW_-wD2k.cjs.map → index-C0bpbS4F.cjs.map} +1 -1
  252. package/dist/{index-37q0ULNQ.js → index-CE9pmfxt.js} +17 -17
  253. package/dist/{index-37q0ULNQ.js.map → index-CE9pmfxt.js.map} +1 -1
  254. package/dist/{index-CVlCtJbC.cjs → index-CEJwW3lL.cjs} +2 -2
  255. package/dist/{index-CVlCtJbC.cjs.map → index-CEJwW3lL.cjs.map} +1 -1
  256. package/dist/{index-CHPV5EwG-BPSP-7Jg.js → index-CHPV5EwG-DBWUSD9b.js} +539 -543
  257. package/dist/index-CHPV5EwG-DBWUSD9b.js.map +1 -0
  258. package/dist/index-CHPV5EwG-DjM48pIC.cjs +44 -0
  259. package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +1 -0
  260. package/dist/{index-BW8iNx7E.cjs → index-Cm8NIdOO.cjs} +2 -2
  261. package/dist/{index-BW8iNx7E.cjs.map → index-Cm8NIdOO.cjs.map} +1 -1
  262. package/dist/{index-tvAyXPPW-DBlMKnNB.js → index-Cw8sCyo_-BuI_jX5Z.js} +3 -3
  263. package/dist/{index-tvAyXPPW-DBlMKnNB.js.map → index-Cw8sCyo_-BuI_jX5Z.js.map} +1 -1
  264. package/dist/index-Cw8sCyo_-gxT8ADyn.cjs +2 -0
  265. package/dist/index-Cw8sCyo_-gxT8ADyn.cjs.map +1 -0
  266. package/dist/{index-CNvov0eg.js → index-Cwgh7i7X.js} +3 -3
  267. package/dist/{index-CNvov0eg.js.map → index-Cwgh7i7X.js.map} +1 -1
  268. package/dist/{index-DG3YrCr5-D3FrrXj8.js → index-Dzc_aaI9-BKklH89r.js} +2 -2
  269. package/dist/{index-DG3YrCr5-D3FrrXj8.js.map → index-Dzc_aaI9-BKklH89r.js.map} +1 -1
  270. package/dist/{index-DG3YrCr5-v7rayV3N.cjs → index-Dzc_aaI9-RIk2GRHD.cjs} +2 -2
  271. package/dist/{index-DG3YrCr5-v7rayV3N.cjs.map → index-Dzc_aaI9-RIk2GRHD.cjs.map} +1 -1
  272. package/dist/{index-BmCqpO1B.js → index-zZjQEHlm.js} +2 -2
  273. package/dist/{index-BmCqpO1B.js.map → index-zZjQEHlm.js.map} +1 -1
  274. package/dist/index.cjs +1 -1
  275. package/dist/index.d.ts +9 -0
  276. package/dist/index.js +1 -1
  277. package/dist/{proxy-CkpFesk1.js → proxy-BYIC9BuT.js} +2 -2
  278. package/dist/{proxy-CkpFesk1.js.map → proxy-BYIC9BuT.js.map} +1 -1
  279. package/dist/{proxy-BHRoeZgd.cjs → proxy-CKadx4lC.cjs} +2 -2
  280. package/dist/{proxy-BHRoeZgd.cjs.map → proxy-CKadx4lC.cjs.map} +1 -1
  281. package/dist/style.css +1 -1
  282. package/dist/{use-in-view-sQJZ_xDO.cjs → use-in-view-CEwlc_dd.cjs} +2 -2
  283. package/dist/{use-in-view-sQJZ_xDO.cjs.map → use-in-view-CEwlc_dd.cjs.map} +1 -1
  284. package/dist/{use-in-view-yS6jzJAp.js → use-in-view-DR-UTB96.js} +2 -2
  285. package/dist/{use-in-view-yS6jzJAp.js.map → use-in-view-DR-UTB96.js.map} +1 -1
  286. package/package.json +4 -4
  287. package/dist/DropdownSelect-CtOKZHD0.js.map +0 -1
  288. package/dist/DropdownSelect-DBDM64B5.cjs.map +0 -1
  289. package/dist/GraphEl-C6yjl1VM.cjs +0 -2
  290. package/dist/GraphEl-C6yjl1VM.cjs.map +0 -1
  291. package/dist/GraphEl-CqWzvOyr.js.map +0 -1
  292. package/dist/Modal-DVVwpKhP.js.map +0 -1
  293. package/dist/Modal-tXZlLE5s.cjs +0 -46
  294. package/dist/Modal-tXZlLE5s.cjs.map +0 -1
  295. package/dist/checkIfMultiple-BXbHUCWM.cjs +0 -12
  296. package/dist/checkIfMultiple-BXbHUCWM.cjs.map +0 -1
  297. package/dist/checkIfMultiple-ChTJk2Tk.js.map +0 -1
  298. package/dist/getSliderMarks-9cNoRkDx.js.map +0 -1
  299. package/dist/getSliderMarks-CRIbTGYV.cjs +0 -6
  300. package/dist/getSliderMarks-CRIbTGYV.cjs.map +0 -1
  301. package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +0 -1
  302. package/dist/index-CHPV5EwG-DDoeWRVt.cjs +0 -44
  303. package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +0 -1
  304. package/dist/index-tvAyXPPW-DPOG-C2i.cjs +0 -2
  305. package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +0 -1
@@ -1,25 +1,25 @@
1
- import { j as r, m as xe } from "./index-CHPV5EwG-BPSP-7Jg.js";
2
- import { useState as N, useRef as ge, useEffect as D, useCallback as me } from "react";
3
- import { y as ve } from "./Spinner-C85UF28E.js";
1
+ import { j as o, m as be } from "./index-CHPV5EwG-DBWUSD9b.js";
2
+ import { useState as N, useRef as ye, useEffect as D, useCallback as ge } from "react";
3
+ import { y as ve } from "./Spinner-Bpz70q_g.js";
4
4
  import we from "react-globe.gl";
5
- import { i as be } from "./index-Bwrro8-q.js";
5
+ import { i as Ce } from "./index-Bwrro8-q.js";
6
6
  import * as P from "three";
7
- import { X as Ce } from "./Modal-DVVwpKhP.js";
8
- import { u as ue } from "./Typography-Ctgfl1J5.js";
9
- import { T as je } from "./Tooltip-CVCGWyzw.js";
7
+ import { G as je } from "./Modal-Cg8daIlV.js";
8
+ import { u as ue } from "./Typography-LmZ9LEpe.js";
9
+ import { T as Se } from "./Tooltip-6LIdPQGC.js";
10
10
  import { n as ke } from "./numberFormattingFunction-14YCbkN2.js";
11
- import { X as Se } from "./index-BmCqpO1B.js";
12
- import { s as De } from "./string2HTML-oFCROsus.js";
13
- import { g as Ne } from "./getCentroidCoordinates-Dfk6IqEG.js";
14
- import { o as Le } from "./ordinal-w9Lu4Stb.js";
15
- import { t as Me } from "./threshold-DFfqcDMa.js";
16
- import { GraphHeader as ze } from "./GraphHeader.js";
17
- import { GraphFooter as Oe } from "./GraphFooter.js";
18
- import { f as Pe } from "./fetchAndParseData-sapWbnYk.js";
11
+ import { X as De } from "./index-zZjQEHlm.js";
12
+ import { s as Ne } from "./string2HTML-oFCROsus.js";
13
+ import { g as Le } from "./getCentroidCoordinates-Dfk6IqEG.js";
14
+ import { o as Me } from "./ordinal-w9Lu4Stb.js";
15
+ import { t as ze } from "./threshold-DFfqcDMa.js";
16
+ import { GraphHeader as Oe } from "./GraphHeader.js";
17
+ import { GraphFooter as Pe } from "./GraphFooter.js";
18
+ import { f as Re } from "./fetchAndParseData-sapWbnYk.js";
19
19
  import { Colors as A } from "./Colors.js";
20
- import { g as Re } from "./getUniqValue-DiCh_MOD.js";
21
- import { g as Te } from "./getJenks-BbngDoBQ.js";
22
- function Ee(e) {
20
+ import { g as Te } from "./getUniqValue-DiCh_MOD.js";
21
+ import { g as Ee } from "./getJenks-BbngDoBQ.js";
22
+ function Ae(e) {
23
23
  let a;
24
24
  switch (e.type) {
25
25
  case "ambient":
@@ -59,171 +59,161 @@ function Ee(e) {
59
59
  }
60
60
  return a;
61
61
  }
62
- function Ae(e) {
62
+ function He(e) {
63
63
  const {
64
64
  width: a,
65
65
  autoRotate: x,
66
- data: v,
66
+ data: b,
67
67
  enableZoom: H,
68
68
  categorical: R,
69
- colorDomain: h,
70
- colors: l,
69
+ colorDomain: p,
70
+ colors: n,
71
71
  globeMaterial: c,
72
72
  height: V,
73
73
  polygonData: $,
74
74
  mapProperty: d,
75
- mapBorderColor: F,
76
- atmosphereColor: X,
77
- tooltip: Z,
75
+ mapBorderColor: G,
76
+ atmosphereColor: Z,
77
+ tooltip: J,
78
78
  styles: C,
79
79
  classNames: re,
80
- mapNoDataColor: u,
81
- colorLegendTitle: G,
82
- showColorScale: oe,
83
- hoverStrokeColor: ae,
84
- detailsOnClick: w,
80
+ mapNoDataColor: g,
81
+ colorLegendTitle: B,
82
+ showColorScale: ae,
83
+ hoverStrokeColor: se,
84
+ detailsOnClick: v,
85
85
  onSeriesMouseClick: L,
86
86
  onSeriesMouseOver: y,
87
87
  resetSelectionOnDoubleClick: T,
88
- highlightedIds: J,
89
- scale: g,
88
+ highlightedIds: X,
89
+ scale: u,
90
90
  globeOffset: j,
91
- polygonAltitude: I,
92
- centerLng: B,
91
+ polygonAltitude: F,
92
+ centerLng: I,
93
93
  centerLat: U,
94
94
  atmosphereAltitude: _,
95
95
  globeCurvatureResolution: ie,
96
96
  fogSettings: M,
97
97
  lights: z,
98
98
  highlightedAltitude: Y,
99
- selectedId: f
100
- } = e, [K, se] = N(!1), n = ge(void 0), [k, E] = N(void 0), [ne, Q] = N(!(a < 680)), [ee, le] = N({ x: 0, y: 0 }), [S, de] = N(void 0), W = R ? Le().domain(h).range(l) : Me().domain(h).range(l);
99
+ selectedId: f,
100
+ collapseColorScaleByDefault: K
101
+ } = e, [Q, le] = N(!1), l = ye(void 0), [S, E] = N(void 0), [ne, ee] = N(
102
+ K === void 0 ? !(a < 680) : !K
103
+ ), [te, de] = N({ x: 0, y: 0 }), [k, ce] = N(void 0), W = R ? Me().domain(p).range(n) : ze().domain(p).range(n);
101
104
  D(() => {
102
- n.current && (n.current.controls().enableZoom = H);
105
+ l.current && (l.current.controls().enableZoom = H);
103
106
  }, [H]), D(() => {
104
- n.current && (S || f ? n.current.controls().autoRotate = !1 : (n.current.controls().autoRotate = x !== 0, n.current.controls().autoRotateSpeed = x));
105
- }, [S, f, x]), D(() => {
106
- if (n.current && f) {
107
+ l.current && (k || f ? l.current.controls().autoRotate = !1 : (l.current.controls().autoRotate = x !== 0, l.current.controls().autoRotateSpeed = x));
108
+ }, [k, f, x]), D(() => {
109
+ if (l.current && f) {
107
110
  const t = $.find(
108
111
  (m) => m.properties[d] === f
109
- ), [o, s] = Ne(t);
110
- n.current.pointOfView({ lat: s, lng: o, altitude: g }, 1e3);
112
+ ), [r, i] = Le(t);
113
+ l.current.pointOfView({ lat: i, lng: r, altitude: u }, 1e3);
111
114
  }
112
- }, [f, g, $, d]), D(() => {
113
- const t = n.current?.renderer().domElement;
115
+ }, [f, u, $, d]), D(() => {
116
+ const t = l.current?.renderer().domElement;
114
117
  if (!t) return;
115
- const o = (s) => {
116
- le({ x: s.clientX, y: s.clientY });
118
+ const r = (i) => {
119
+ de({ x: i.clientX, y: i.clientY });
117
120
  };
118
- return t.addEventListener("mousemove", o), () => t.removeEventListener("mousemove", o);
121
+ return t.addEventListener("mousemove", r), () => t.removeEventListener("mousemove", r);
119
122
  }, []), D(() => {
120
- n.current && n.current.pointOfView({ lat: U, lng: B, altitude: g }, 1e3);
121
- }, [g, B, U]);
123
+ l.current && l.current.pointOfView({ lat: U, lng: I, altitude: u }, 1e3);
124
+ }, [u, I, U]);
122
125
  const q = c || new P.MeshBasicMaterial({
123
126
  color: "#FFF"
124
- }), p = me(() => {
125
- if (!n.current) return;
126
- const t = n.current.scene(), o = n.current.camera();
127
- let s = [];
128
- t.traverse((i) => {
129
- i instanceof P.Light && s.push(i);
130
- }), s = [...s, ...o.children], s.forEach((i) => i.parent?.remove(i)), z.map((i) => Ee(i)).forEach((i, b) => {
131
- z[b].type !== "ambient" && z[b].position === "camera" ? (o.add(i), z[b].type !== "point" && o.add(i.target)) : t.add(i);
127
+ }), h = ge(() => {
128
+ if (!l.current) return;
129
+ const t = l.current.scene(), r = l.current.camera();
130
+ let i = [];
131
+ t.traverse((s) => {
132
+ s instanceof P.Light && i.push(s);
133
+ }), i = [...i, ...r.children], i.forEach((s) => s.parent?.remove(s)), z.map((s) => Ae(s)).forEach((s, w) => {
134
+ z[w].type !== "ambient" && z[w].position === "camera" ? (r.add(s), z[w].type !== "point" && r.add(s.target)) : t.add(s);
132
135
  }), M && (t.fog = new P.Fog(M.color, M.near, M.far));
133
- }, [z, M]), te = me(() => {
134
- se(!0), p();
135
- }, [p]);
136
+ }, [z, M]), oe = ge(() => {
137
+ le(!0), h();
138
+ }, [h]);
136
139
  return D(() => {
137
- K && p();
138
- }, [K, p]), /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
139
- /* @__PURE__ */ r.jsx(
140
+ Q && h();
141
+ }, [Q, h]), /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
142
+ /* @__PURE__ */ o.jsx(
140
143
  we,
141
144
  {
142
- ref: n,
145
+ ref: l,
143
146
  height: V,
144
147
  width: a,
145
148
  globeOffset: j,
146
149
  lineHoverPrecision: 0,
147
150
  polygonsData: $,
148
- polygonAltitude: (t) => J.includes(t?.properties?.[d]) || t?.properties?.[d] === f ? Y * (t?.properties?.[d] === f ? 2 : 1) : t?.properties?.[d] === S?.id || t?.properties?.[d] === k?.id ? Y : I,
151
+ polygonAltitude: (t) => X.includes(t?.properties?.[d]) || t?.properties?.[d] === f ? Y * (t?.properties?.[d] === f ? 2 : 1) : t?.properties?.[d] === k?.id || t?.properties?.[d] === S?.id ? Y : F,
149
152
  polygonCapColor: (t) => {
150
- const o = t?.properties?.[d], s = v.find((m) => m.id === o)?.x;
151
- return s != null ? W(s) : u;
153
+ const r = t?.properties?.[d], i = b.find((m) => m.id === r)?.x;
154
+ return i != null ? W(i) : g;
152
155
  },
153
156
  polygonSideColor: (t) => {
154
- const o = t?.properties?.[d], s = v.find((i) => i.id === o)?.x, m = s != null ? W(s) : u;
155
- return J.includes(t?.properties?.[d]) || t?.properties?.[d] === f ? m : "rgba(100,100,100,0)";
157
+ const r = t?.properties?.[d], i = b.find((s) => s.id === r)?.x, m = i != null ? W(i) : g;
158
+ return X.includes(t?.properties?.[d]) || t?.properties?.[d] === f ? m : "rgba(100,100,100,0)";
156
159
  },
157
- polygonStrokeColor: (t) => t?.properties?.[d] === S?.id ? ae : F,
160
+ polygonStrokeColor: (t) => t?.properties?.[d] === k?.id ? se : G,
158
161
  onGlobeClick: () => {
159
162
  E(void 0);
160
163
  },
161
164
  onPolygonClick: (t) => {
162
- const o = t?.properties?.[d] ? v.find((s) => s.id === t?.properties?.[d]) : void 0;
163
- (L || w) && (be(k, o) && T && o ? (E(void 0), L?.(void 0)) : (E(o), L?.(o)));
165
+ const r = t?.properties?.[d] ? b.find((i) => i.id === t?.properties?.[d]) : void 0;
166
+ (L || v) && (Ce(S, r) && T && r ? (E(void 0), L?.(void 0)) : (E(r), L?.(r)));
164
167
  },
165
168
  onPolygonHover: (t) => {
166
- const o = t?.properties?.[d] ? v.find((s) => s.id === t?.properties?.[d]) : void 0;
167
- de(o), y?.(o);
169
+ const r = t?.properties?.[d] ? b.find((i) => i.id === t?.properties?.[d]) : void 0;
170
+ ce(r), y?.(r);
168
171
  },
169
- atmosphereColor: X,
172
+ atmosphereColor: Z,
170
173
  atmosphereAltitude: _,
171
174
  globeCurvatureResolution: ie,
172
175
  globeMaterial: q,
173
176
  backgroundColor: "rgba(0, 0, 0, 0)",
174
177
  polygonsTransitionDuration: 100,
175
178
  onGlobeReady: () => {
176
- if (n.current) {
177
- n.current.pointOfView({
179
+ if (l.current) {
180
+ l.current.pointOfView({
178
181
  lat: U,
179
- lng: B
182
+ lng: I
180
183
  });
181
- const t = n.current.scene();
184
+ const t = l.current.scene();
182
185
  setTimeout(() => {
183
186
  (t.children[3]?.children[0]?.children[4]?.children || []).forEach((m) => {
184
- const i = m.children[1];
185
- i.renderOrder = 2;
187
+ const s = m.children[1];
188
+ s.renderOrder = 2;
186
189
  });
187
190
  }, 300);
188
- const o = n.current.camera();
189
- t.add(o), te();
191
+ const r = l.current.camera();
192
+ t.add(r), oe();
190
193
  }
191
194
  }
192
195
  }
193
196
  ),
194
- oe === !1 ? null : /* @__PURE__ */ r.jsx("div", { className: "absolute left-4 bottom-4", children: ne ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
195
- /* @__PURE__ */ r.jsx(
197
+ ae === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: "absolute left-4 bottom-4", children: ne ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
198
+ /* @__PURE__ */ o.jsx(
196
199
  "div",
197
200
  {
198
- style: {
199
- backgroundColor: "rgba(240,240,240, 0.7)",
200
- border: "1px solid var(--gray-400)",
201
- borderRadius: "999px",
202
- width: "24px",
203
- height: "24px",
204
- padding: "3px",
205
- cursor: "pointer",
206
- zIndex: 10,
207
- position: "absolute",
208
- right: "-0.75rem",
209
- top: "-0.75rem"
210
- },
201
+ className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]",
211
202
  onClick: () => {
212
- Q(!1);
203
+ ee(!1);
213
204
  },
214
- children: /* @__PURE__ */ r.jsx(Se, {})
205
+ children: /* @__PURE__ */ o.jsx(De, {})
215
206
  }
216
207
  ),
217
- /* @__PURE__ */ r.jsxs(
208
+ /* @__PURE__ */ o.jsxs(
218
209
  "div",
219
210
  {
220
- className: "p-2",
211
+ className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]",
221
212
  style: {
222
- backgroundColor: "rgba(240,240,240, 0.7)",
223
213
  width: R ? void 0 : "340px"
224
214
  },
225
215
  children: [
226
- G && G !== "" ? /* @__PURE__ */ r.jsx(
216
+ B && B !== "" ? /* @__PURE__ */ o.jsx(
227
217
  ue,
228
218
  {
229
219
  size: "xs",
@@ -234,54 +224,54 @@ function Ae(e) {
234
224
  WebkitLineClamp: "1",
235
225
  WebkitBoxOrient: "vertical"
236
226
  },
237
- children: G
227
+ children: B
238
228
  }
239
229
  ) : null,
240
- R ? /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-3", children: h.map((t, o) => /* @__PURE__ */ r.jsxs("div", { className: "flex gap-2 items-center", children: [
241
- /* @__PURE__ */ r.jsx(
230
+ R ? /* @__PURE__ */ o.jsx("div", { className: "flex flex-col gap-3", children: p.map((t, r) => /* @__PURE__ */ o.jsxs("div", { className: "flex gap-2 items-center", children: [
231
+ /* @__PURE__ */ o.jsx(
242
232
  "div",
243
233
  {
244
234
  className: "w-2 h-2 rounded-full",
245
- style: { backgroundColor: l[o % l.length] }
235
+ style: { backgroundColor: n[r % n.length] }
246
236
  }
247
237
  ),
248
- /* @__PURE__ */ r.jsx(ue, { size: "sm", marginBottom: "none", leading: "none", children: t })
249
- ] }, o)) }) : /* @__PURE__ */ r.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ r.jsxs("g", { children: [
250
- h.map((t, o) => /* @__PURE__ */ r.jsxs("g", { className: "cursor-pointer", children: [
251
- /* @__PURE__ */ r.jsx(
238
+ /* @__PURE__ */ o.jsx(ue, { size: "sm", marginBottom: "none", leading: "none", children: t })
239
+ ] }, r)) }) : /* @__PURE__ */ o.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { children: [
240
+ p.map((t, r) => /* @__PURE__ */ o.jsxs("g", { className: "cursor-pointer", children: [
241
+ /* @__PURE__ */ o.jsx(
252
242
  "rect",
253
243
  {
254
- x: o * 320 / l.length + 1,
244
+ x: r * 320 / n.length + 1,
255
245
  y: 1,
256
- width: 320 / l.length - 2,
246
+ width: 320 / n.length - 2,
257
247
  height: 8,
258
248
  style: {
259
- fill: l[o],
260
- stroke: l[o]
249
+ fill: n[r],
250
+ stroke: n[r]
261
251
  }
262
252
  }
263
253
  ),
264
- /* @__PURE__ */ r.jsx(
254
+ /* @__PURE__ */ o.jsx(
265
255
  "text",
266
256
  {
267
- x: (o + 1) * 320 / l.length,
257
+ x: (r + 1) * 320 / n.length,
268
258
  y: 25,
269
259
  className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
270
260
  style: { textAnchor: "middle" },
271
261
  children: ke(t, "NA")
272
262
  }
273
263
  )
274
- ] }, o)),
275
- /* @__PURE__ */ r.jsx("g", { children: /* @__PURE__ */ r.jsx(
264
+ ] }, r)),
265
+ /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx(
276
266
  "rect",
277
267
  {
278
- x: h.length * 320 / l.length + 1,
268
+ x: p.length * 320 / n.length + 1,
279
269
  y: 1,
280
- width: 320 / l.length - 2,
270
+ width: 320 / n.length - 2,
281
271
  height: 8,
282
272
  style: {
283
- fill: l[h.length],
284
- stroke: l[h.length]
273
+ fill: n[p.length],
274
+ stroke: n[p.length]
285
275
  }
286
276
  }
287
277
  ) })
@@ -289,78 +279,78 @@ function Ae(e) {
289
279
  ]
290
280
  }
291
281
  )
292
- ] }) : /* @__PURE__ */ r.jsx(
282
+ ] }) : /* @__PURE__ */ o.jsx(
293
283
  "button",
294
284
  {
295
285
  type: "button",
296
286
  className: "mb-0 border-0 bg-transparent p-0 self-start",
297
287
  onClick: () => {
298
- Q(!0);
288
+ ee(!0);
299
289
  },
300
- children: /* @__PURE__ */ r.jsx("div", { className: "items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-550 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" })
290
+ children: /* @__PURE__ */ o.jsx("div", { className: "show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" })
301
291
  }
302
292
  ) }),
303
- S && Z ? /* @__PURE__ */ r.jsx(
304
- je,
293
+ k && J ? /* @__PURE__ */ o.jsx(
294
+ Se,
305
295
  {
306
- data: S,
307
- body: Z,
308
- xPos: ee.x,
309
- yPos: ee.y,
296
+ data: k,
297
+ body: J,
298
+ xPos: te.x,
299
+ yPos: te.y,
310
300
  backgroundStyle: C?.tooltip,
311
301
  className: re?.tooltip
312
302
  }
313
303
  ) : null,
314
- w && k !== void 0 ? /* @__PURE__ */ r.jsx(
315
- Ce,
304
+ v && S !== void 0 ? /* @__PURE__ */ o.jsx(
305
+ je,
316
306
  {
317
- open: k !== void 0,
307
+ open: S !== void 0,
318
308
  onClose: () => {
319
309
  E(void 0);
320
310
  },
321
- children: /* @__PURE__ */ r.jsx(
311
+ children: /* @__PURE__ */ o.jsx(
322
312
  "div",
323
313
  {
324
314
  className: "graph-modal-content m-0",
325
- dangerouslySetInnerHTML: typeof w == "string" ? { __html: De(w, k) } : void 0,
326
- children: typeof w == "function" ? w(k) : null
315
+ dangerouslySetInnerHTML: typeof v == "string" ? { __html: Ne(v, S) } : void 0,
316
+ children: typeof v == "function" ? v(S) : null
327
317
  }
328
318
  )
329
319
  }
330
320
  ) : null
331
321
  ] });
332
322
  }
333
- function ot(e) {
323
+ function at(e) {
334
324
  const {
335
325
  data: a,
336
326
  mapData: x = "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json",
337
- graphTitle: v,
327
+ graphTitle: b,
338
328
  colors: H,
339
329
  sources: R,
340
- graphDescription: h,
341
- height: l,
330
+ graphDescription: p,
331
+ height: n,
342
332
  width: c,
343
333
  footNote: V = "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries.",
344
334
  colorDomain: $,
345
335
  colorLegendTitle: d,
346
- scaleType: F = "threshold",
347
- padding: X,
348
- mapNoDataColor: Z = A.light.graphNoData,
336
+ scaleType: G = "threshold",
337
+ padding: Z,
338
+ mapNoDataColor: J = A.light.graphNoData,
349
339
  backgroundColor: C = !1,
350
340
  mapBorderColor: re = A.light.grays["gray-500"],
351
- relativeHeight: u,
352
- tooltip: G,
353
- graphID: oe,
354
- mapProperty: ae = "ISO3",
355
- dataDownload: w = !1,
341
+ relativeHeight: g,
342
+ tooltip: B,
343
+ graphID: ae,
344
+ mapProperty: se = "ISO3",
345
+ dataDownload: v = !1,
356
346
  language: L = "en",
357
347
  minHeight: y = 0,
358
348
  theme: T = "light",
359
- ariaLabel: J,
360
- styles: g,
349
+ ariaLabel: X,
350
+ styles: u,
361
351
  classNames: j,
362
- autoRotate: I = !0,
363
- enableZoom: B = !0,
352
+ autoRotate: F = !0,
353
+ enableZoom: I = !0,
364
354
  globeMaterial: U,
365
355
  centerPoint: _ = [0, 0],
366
356
  atmosphereColor: ie = "#999",
@@ -369,15 +359,15 @@ function ot(e) {
369
359
  detailsOnClick: Y,
370
360
  onSeriesMouseOver: f,
371
361
  onSeriesMouseClick: K,
372
- highlightedIds: se = [],
373
- highlightedAltitude: n = 0.1,
374
- scale: k = 1,
375
- globeOffset: E = [0, 0],
376
- polygonAltitude: ne = 0.01,
377
- globeCurvatureResolution: Q = 4,
362
+ highlightedIds: Q = [],
363
+ highlightedAltitude: le = 0.1,
364
+ scale: l = 1,
365
+ globeOffset: S = [0, 0],
366
+ polygonAltitude: E = 0.01,
367
+ globeCurvatureResolution: ne = 4,
378
368
  atmosphereAltitude: ee = 0.15,
379
- fogSettings: le,
380
- lights: S = [
369
+ fogSettings: te,
370
+ lights: de = [
381
371
  {
382
372
  type: "ambient",
383
373
  color: 4210752,
@@ -390,148 +380,150 @@ function ot(e) {
390
380
  position: { x: 5, y: 10, z: 5 }
391
381
  }
392
382
  ],
393
- selectedId: de
394
- } = e, [W, q] = N(void 0), [p, te] = N(0), [t, o] = N(0), s = ge(null);
383
+ selectedId: k,
384
+ collapseColorScaleByDefault: ce
385
+ } = e, [W, q] = N(void 0), [h, oe] = N(0), [t, r] = N(0), i = ye(null);
395
386
  D(() => {
396
- const i = new ResizeObserver((b) => {
397
- te(c || b[0].target.clientWidth || 760), o(l || b[0].target.clientHeight || 480);
387
+ const s = new ResizeObserver((w) => {
388
+ oe(c || w[0].target.clientWidth || 760), r(n || w[0].target.clientHeight || 480);
398
389
  });
399
- return s.current && (o(s.current.clientHeight || 480), te(s.current.clientWidth || 760), c || i.observe(s.current)), () => i.disconnect();
400
- }, [c, l]), D(() => {
401
- typeof x == "string" ? Pe(x).then((b) => {
390
+ return i.current && (r(i.current.clientHeight || 480), oe(i.current.clientWidth || 760), c || s.observe(i.current)), () => s.disconnect();
391
+ }, [c, n]), D(() => {
392
+ typeof x == "string" ? Re(x).then((w) => {
402
393
  if (x === "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json") {
403
- const ye = b.features.map((O) => {
394
+ const fe = w.features.map((O) => {
404
395
  if (O.geometry.type === "Polygon") {
405
- const ce = [...O.geometry.coordinates[0]].reverse(), pe = { ...O.geometry, coordinates: [ce] };
396
+ const he = [...O.geometry.coordinates[0]].reverse(), pe = { ...O.geometry, coordinates: [he] };
406
397
  return { ...O, geometry: pe };
407
398
  }
408
- const he = [];
409
- O.geometry.coordinates.forEach((ce) => {
410
- const pe = [...ce[0]].reverse();
411
- he.push([pe]);
399
+ const me = [];
400
+ O.geometry.coordinates.forEach((he) => {
401
+ const pe = [...he[0]].reverse();
402
+ me.push([pe]);
412
403
  });
413
- const fe = { ...O.geometry, coordinates: he };
414
- return { ...O, geometry: fe };
404
+ const xe = { ...O.geometry, coordinates: me };
405
+ return { ...O, geometry: xe };
415
406
  });
416
- q(ye);
417
- } else q(b.features);
407
+ q(fe);
408
+ } else q(w.features);
418
409
  }) : q(x.features);
419
410
  }, [x]);
420
- const m = $ || (F === "categorical" ? Re(a, "x") : Te(
421
- a.map((i) => i.x),
411
+ const m = $ || (G === "categorical" ? Te(a, "x") : Ee(
412
+ a.map((s) => s.x),
422
413
  H?.length || 4
423
414
  ));
424
- return /* @__PURE__ */ r.jsx(
415
+ return /* @__PURE__ */ o.jsx(
425
416
  "div",
426
417
  {
427
418
  className: `${T || "light"} flex ${c ? "w-fit grow-0" : "w-full grow"}`,
428
419
  dir: L === "he" || L === "ar" ? "rtl" : void 0,
429
- children: /* @__PURE__ */ r.jsx(
420
+ children: /* @__PURE__ */ o.jsx(
430
421
  "div",
431
422
  {
432
- className: xe(
423
+ className: be(
433
424
  `${C ? C === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${L || "en"}`,
434
425
  c ? "w-fit" : "w-full",
435
426
  j?.graphContainer
436
427
  ),
437
428
  style: {
438
- ...g?.graphContainer || {},
429
+ ...u?.graphContainer || {},
439
430
  ...C && C !== !0 ? { backgroundColor: C } : {}
440
431
  },
441
- id: oe,
442
- "aria-label": J || `${v ? `The graph shows ${v}. ` : ""}This is a map.${h ? ` ${h}` : ""}`,
443
- children: /* @__PURE__ */ r.jsx(
432
+ id: ae,
433
+ "aria-label": X || `${b ? `The graph shows ${b}. ` : ""}This is a map.${p ? ` ${p}` : ""}`,
434
+ children: /* @__PURE__ */ o.jsx(
444
435
  "div",
445
436
  {
446
437
  className: "flex grow",
447
- style: { padding: C ? X || "1rem" : X || 0 },
448
- children: /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
449
- v || h || w ? /* @__PURE__ */ r.jsx(
450
- ze,
438
+ style: { padding: C ? Z || "1rem" : Z || 0 },
439
+ children: /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
440
+ b || p || v ? /* @__PURE__ */ o.jsx(
441
+ Oe,
451
442
  {
452
443
  styles: {
453
- title: g?.title,
454
- description: g?.description
444
+ title: u?.title,
445
+ description: u?.description
455
446
  },
456
447
  classNames: {
457
448
  title: j?.title,
458
449
  description: j?.description
459
450
  },
460
- graphTitle: v,
461
- graphDescription: h,
451
+ graphTitle: b,
452
+ graphDescription: p,
462
453
  width: c,
463
454
  graphDownload: void 0,
464
- dataDownload: w ? a.map((i) => i.data).filter((i) => i !== void 0).length > 0 ? a.map((i) => i.data).filter((i) => i !== void 0) : a.filter((i) => i !== void 0) : null
455
+ dataDownload: v ? a.map((s) => s.data).filter((s) => s !== void 0).length > 0 ? a.map((s) => s.data).filter((s) => s !== void 0) : a.filter((s) => s !== void 0) : null
465
456
  }
466
457
  ) : null,
467
- /* @__PURE__ */ r.jsx(
458
+ /* @__PURE__ */ o.jsx(
468
459
  "div",
469
460
  {
470
461
  className: "flex flex-col grow justify-center leading-0",
471
- ref: s,
462
+ ref: i,
472
463
  "aria-label": "Map area",
473
- children: (c || p) && (l || t) && W ? /* @__PURE__ */ r.jsx(
474
- Ae,
464
+ children: (c || h) && (n || t) && W ? /* @__PURE__ */ o.jsx(
465
+ He,
475
466
  {
476
467
  data: a,
477
- globeOffset: E,
468
+ globeOffset: S,
478
469
  polygonData: W,
479
470
  colorDomain: m,
480
- width: c || p,
471
+ width: c || h,
481
472
  height: Math.max(
482
473
  y,
483
- l || (u ? y ? (c || p) * u > y ? (c || p) * u : y : (c || p) * u : t)
474
+ n || (g ? y ? (c || h) * g > y ? (c || h) * g : y : (c || h) * g : t)
484
475
  ),
485
- colors: H || (F === "categorical" ? A[T].sequentialColors[`neutralColorsx0${m.length}`] : A[T].sequentialColors[`neutralColorsx0${m.length + 1}`]),
486
- mapNoDataColor: Z,
487
- categorical: F === "categorical",
476
+ colors: H || (G === "categorical" ? A[T].sequentialColors[`neutralColorsx0${m.length}`] : A[T].sequentialColors[`neutralColorsx0${m.length + 1}`]),
477
+ mapNoDataColor: J,
478
+ categorical: G === "categorical",
488
479
  mapBorderColor: re,
489
- tooltip: G,
490
- mapProperty: ae,
491
- styles: g,
480
+ tooltip: B,
481
+ mapProperty: se,
482
+ styles: u,
492
483
  classNames: j,
493
- autoRotate: I === !0 ? 1.5 : I === !1 ? 0 : I,
494
- enableZoom: B,
484
+ autoRotate: F === !0 ? 1.5 : F === !1 ? 0 : F,
485
+ enableZoom: I,
495
486
  globeMaterial: U,
496
487
  atmosphereColor: ie,
497
488
  colorLegendTitle: d,
498
489
  showColorScale: M,
499
490
  hoverStrokeColor: T === "light" ? A.light.grays["gray-700"] : A.light.grays["gray-300"],
500
- highlightedIds: se,
491
+ highlightedIds: Q,
501
492
  resetSelectionOnDoubleClick: z,
502
493
  detailsOnClick: Y,
503
494
  onSeriesMouseOver: f,
504
495
  onSeriesMouseClick: K,
505
- scale: k,
506
- polygonAltitude: ne,
496
+ scale: l,
497
+ polygonAltitude: E,
507
498
  centerLat: _[0],
508
499
  centerLng: _[1],
509
500
  atmosphereAltitude: ee,
510
- globeCurvatureResolution: Q,
511
- fogSettings: le,
512
- lights: S,
513
- highlightedAltitude: n,
514
- selectedId: de
501
+ globeCurvatureResolution: ne,
502
+ fogSettings: te,
503
+ lights: de,
504
+ highlightedAltitude: le,
505
+ selectedId: k,
506
+ collapseColorScaleByDefault: ce
515
507
  }
516
- ) : /* @__PURE__ */ r.jsx(
508
+ ) : /* @__PURE__ */ o.jsx(
517
509
  "div",
518
510
  {
519
511
  style: {
520
512
  height: `${Math.max(
521
513
  y,
522
- l || (u ? y ? (c || p) * u > y ? (c || p) * u : y : (c || p) * u : t)
514
+ n || (g ? y ? (c || h) * g > y ? (c || h) * g : y : (c || h) * g : t)
523
515
  )}px`
524
516
  },
525
517
  className: "flex items-center justify-center",
526
- children: /* @__PURE__ */ r.jsx(ve, { "aria-label": "Loading graph" })
518
+ children: /* @__PURE__ */ o.jsx(ve, { "aria-label": "Loading graph" })
527
519
  }
528
520
  )
529
521
  }
530
522
  ),
531
- R || V ? /* @__PURE__ */ r.jsx(
532
- Oe,
523
+ R || V ? /* @__PURE__ */ o.jsx(
524
+ Pe,
533
525
  {
534
- styles: { footnote: g?.footnote, source: g?.source },
526
+ styles: { footnote: u?.footnote, source: u?.source },
535
527
  classNames: {
536
528
  footnote: j?.footnote,
537
529
  source: j?.source
@@ -550,6 +542,6 @@ function ot(e) {
550
542
  );
551
543
  }
552
544
  export {
553
- ot as ThreeDGlobe
545
+ at as ThreeDGlobe
554
546
  };
555
547
  //# sourceMappingURL=ThreeDGlobe.js.map