@undp/data-viz 2.3.1 → 2.3.3
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.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.js +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.js +2 -2
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.js +15 -15
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.js +2 -2
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +202 -202
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.js +2 -2
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.js +2 -2
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +33 -33
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/ColorLegend.cjs +1 -1
- package/dist/ColorLegend.js +7 -7
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.js +1 -1
- package/dist/CopyTextButton.cjs +1 -1
- package/dist/CopyTextButton.js +1 -1
- package/dist/CsvDownloadButton.cjs +2 -2
- package/dist/CsvDownloadButton.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.js +3 -3
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +20 -20
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +46 -46
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.js +2 -2
- package/dist/{EmptyState-CGeBqbmR.cjs → EmptyState-DX0t62iF.cjs} +2 -2
- package/dist/{EmptyState-CGeBqbmR.cjs.map → EmptyState-DX0t62iF.cjs.map} +1 -1
- package/dist/{EmptyState-tZBErBKF.js → EmptyState-Pj-emXt5.js} +3 -3
- package/dist/{EmptyState-tZBErBKF.js.map → EmptyState-Pj-emXt5.js.map} +1 -1
- package/dist/ExcelDownloadButton.cjs +1 -1
- package/dist/ExcelDownloadButton.js +7 -7
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.js +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.js +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +2 -2
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +1 -1
- package/dist/{GraphEl-ic8C5Ksc.cjs → GraphEl-CWjTuiYd.cjs} +2 -2
- package/dist/{GraphEl-ic8C5Ksc.cjs.map → GraphEl-CWjTuiYd.cjs.map} +1 -1
- package/dist/{GraphEl-L5hNe7wJ.js → GraphEl-DDXkYObU.js} +7 -7
- package/dist/{GraphEl-L5hNe7wJ.js.map → GraphEl-DDXkYObU.js.map} +1 -1
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +1 -1
- package/dist/GraphTitle.cjs +1 -1
- package/dist/GraphTitle.js +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +1 -1
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.js +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +42 -42
- package/dist/HybridMap.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.js +1 -1
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.js +8 -8
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.js +80 -80
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +2 -2
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.js +10 -10
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +1 -1
- package/dist/{Source-B5AoSlsi.cjs → Source-B3i0Bx2R.cjs} +2 -2
- package/dist/{Source-B5AoSlsi.cjs.map → Source-B3i0Bx2R.cjs.map} +1 -1
- package/dist/{Source-F8EYCYkV.js → Source-_STIejqs.js} +14 -14
- package/dist/{Source-F8EYCYkV.js.map → Source-_STIejqs.js.map} +1 -1
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +2 -2
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.js +12 -12
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.js +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +2 -2
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +10 -10
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +29 -29
- package/dist/Typography-DrJ7IOdw.cjs +2 -0
- package/dist/Typography-DrJ7IOdw.cjs.map +1 -0
- package/dist/Typography-iR8PEgdt.js +263 -0
- package/dist/Typography-iR8PEgdt.js.map +1 -0
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.js +25 -25
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.js +1 -1
- package/dist/{index-BQYOuXdl.js → index-B-4y_iGB.js} +19 -17
- package/dist/index-B-4y_iGB.js.map +1 -0
- package/dist/{index-D5ihtaJJ.js → index-BE-lvE4c.js} +3 -3
- package/dist/{index-D5ihtaJJ.js.map → index-BE-lvE4c.js.map} +1 -1
- package/dist/{index-Dgjq6aZ2.cjs → index-DlrGwLQA.cjs} +2 -2
- package/dist/{index-Dgjq6aZ2.cjs.map → index-DlrGwLQA.cjs.map} +1 -1
- package/dist/index-sbKVyHS2.cjs +2 -0
- package/dist/index-sbKVyHS2.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/Typography-hWfh3H0J.js +0 -142
- package/dist/Typography-hWfh3H0J.js.map +0 -1
- package/dist/Typography-sa1UE0oF.cjs +0 -2
- package/dist/Typography-sa1UE0oF.cjs.map +0 -1
- package/dist/index-BQYOuXdl.js.map +0 -1
- package/dist/index-C6er0ety.cjs +0 -2
- package/dist/index-C6er0ety.cjs.map +0 -1
package/dist/HybridMap.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as Ge, m as ze, b as
|
|
1
|
+
import { _ as Ge, m as ze, b as Ve, j as a, c as qe } from "./index-CHPV5EwG-DecW7_qr.js";
|
|
2
2
|
import * as He from "react";
|
|
3
3
|
import Ue, { useMemo as Xe, useState as S, useRef as Rt, useEffect as de, useEffectEvent as Ye } from "react";
|
|
4
4
|
import { f as Je, p as Ke } from "./parse-Dv4of-PN.js";
|
|
@@ -6,12 +6,12 @@ import { g as Ze, N as Qe } from "./getSliderMarks-Cvg8zHBU.js";
|
|
|
6
6
|
import { w as to } from "./Spinner--r2RrJV8.js";
|
|
7
7
|
import { i as Pe } from "./index-Bwrro8-q.js";
|
|
8
8
|
import { i as eo, z as oo, a as ao, g as ro, b as io, c as no, d as lo, e as so, f as co } from "./index-Dp_SfsUA.js";
|
|
9
|
-
import {
|
|
9
|
+
import { _ as Oe } from "./Typography-iR8PEgdt.js";
|
|
10
10
|
import { i as mo } from "./index-DCsFBfJ_.js";
|
|
11
|
-
import { n as Le } from "./Source-
|
|
11
|
+
import { n as Le } from "./Source-_STIejqs.js";
|
|
12
12
|
import { w as po } from "./index-Dzc_aaI9-CG2Ar7l1.js";
|
|
13
13
|
import { T as uo } from "./Tooltip-BRnAz2Gv.js";
|
|
14
|
-
import { X as ho, P as go, e as fo } from "./index-
|
|
14
|
+
import { X as ho, P as go, e as fo } from "./index-B-4y_iGB.js";
|
|
15
15
|
import { D as yo } from "./DetailsModal-BMCTgVsk.js";
|
|
16
16
|
import { s as xo } from "./pow-CaIrlM4J.js";
|
|
17
17
|
import { o as vo } from "./ordinal-CHaxGJ_l.js";
|
|
@@ -29,9 +29,9 @@ import { f as No } from "./fetchAndParseData-BAXhgTDM.js";
|
|
|
29
29
|
import { a as So, G as Mo } from "./GraphContainer-CF6ws3pd.js";
|
|
30
30
|
import { g as Oo } from "./getUniqValue-DsqSii6M.js";
|
|
31
31
|
import { g as Io } from "./getJenks-DTCcQSDi.js";
|
|
32
|
-
var zo = "Separator",
|
|
33
|
-
const { decorative: e, orientation: b =
|
|
34
|
-
return /* @__PURE__ */
|
|
32
|
+
var zo = "Separator", _e = "horizontal", Eo = ["horizontal", "vertical"], Be = He.forwardRef((r, t) => {
|
|
33
|
+
const { decorative: e, orientation: b = _e, ...g } = r, n = Po(b) ? b : _e, f = e ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
|
|
34
|
+
return /* @__PURE__ */ Ve.jsx(
|
|
35
35
|
po.div,
|
|
36
36
|
{
|
|
37
37
|
"data-orientation": n,
|
|
@@ -41,11 +41,11 @@ var zo = "Separator", Ve = "horizontal", Eo = ["horizontal", "vertical"], _e = H
|
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
});
|
|
44
|
-
|
|
44
|
+
Be.displayName = zo;
|
|
45
45
|
function Po(r) {
|
|
46
46
|
return Eo.includes(r);
|
|
47
47
|
}
|
|
48
|
-
var $e =
|
|
48
|
+
var $e = Be;
|
|
49
49
|
const Ae = Ue.forwardRef((r, t) => {
|
|
50
50
|
const e = Ge.c(14);
|
|
51
51
|
let b, g, n, f;
|
|
@@ -59,7 +59,7 @@ const Ae = Ue.forwardRef((r, t) => {
|
|
|
59
59
|
let w;
|
|
60
60
|
e[5] !== b || e[6] !== u || e[7] !== k ? (w = ze(u, k, b), e[5] = b, e[6] = u, e[7] = k, e[8] = w) : w = e[8];
|
|
61
61
|
let M;
|
|
62
|
-
return e[9] !== l || e[10] !== g || e[11] !== t || e[12] !== w ? (M = /* @__PURE__ */
|
|
62
|
+
return e[9] !== l || e[10] !== g || e[11] !== t || e[12] !== w ? (M = /* @__PURE__ */ Ve.jsx($e, { ...g, ref: t, orientation: l, className: w }), e[9] = l, e[10] = g, e[11] = t, e[12] = w, e[13] = M) : M = e[13], M;
|
|
63
63
|
});
|
|
64
64
|
Ae.displayName = $e.displayName;
|
|
65
65
|
function Lo(r) {
|
|
@@ -107,12 +107,12 @@ function Lo(r) {
|
|
|
107
107
|
rewindCoordinatesInMapData: pt
|
|
108
108
|
} = r, d = Xe(() => pt ? eo(b, {
|
|
109
109
|
reverse: !0
|
|
110
|
-
}) : b, [b, pt]), [s,
|
|
110
|
+
}) : b, [b, pt]), [s, _] = S(void 0), [Ht, Et] = S(Ot === void 0 ? !(l < 680) : !Ot), ut = Rt(null), [V, O] = S(void 0), [ot, I] = S(void 0), [Pt, D] = S(void 0), [Lt, z] = S(void 0), B = Rt(null), K = jo(B, {
|
|
111
111
|
once: x.once,
|
|
112
112
|
amount: x.amount
|
|
113
113
|
}), at = Rt(null), $ = t.filter((o) => o.radius === void 0 || o.radius === null).length !== t.length ? xo().domain([0, ct]).range([0.25, f]).nice() : void 0, E = tt ? vo().domain(n).range(e) : bo().domain(n).range(e);
|
|
114
114
|
de(() => {
|
|
115
|
-
const o = Ie(at.current), i = Ie(
|
|
115
|
+
const o = Ie(at.current), i = Ie(B.current), v = (m) => {
|
|
116
116
|
if (X === "noZoom") return !1;
|
|
117
117
|
if (X === "button") return !m.type.includes("wheel");
|
|
118
118
|
const gt = m.type === "wheel", ft = m.type.startsWith("touch"), At = m.type === "mousedown" || m.type === "mousemove";
|
|
@@ -124,13 +124,13 @@ function Lo(r) {
|
|
|
124
124
|
});
|
|
125
125
|
i.call(N), ut.current = N;
|
|
126
126
|
}, [y, l, X]);
|
|
127
|
-
const A = ao(d), j = mo(d),
|
|
128
|
-
if (!
|
|
129
|
-
Ie(
|
|
127
|
+
const A = ao(d), j = mo(d), _t = (A[2] - A[0]) * 1.15, Vt = (A[3] - A[1]) * 1.15, Bt = l * 190 / 960 * 360 / _t, $t = y * 190 / 678 * 180 / Vt, F = u * Math.min(Bt, $t), Z = Q === "mercator" ? ro().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : Q === "equalEarth" ? io().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : Q === "naturalEarth" ? no().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : Q === "orthographic" ? lo().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : so().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F), ht = co().projection(Z), rt = (o) => {
|
|
128
|
+
if (!B.current || !ut.current) return;
|
|
129
|
+
Ie(B.current).call(ut.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
|
|
130
130
|
};
|
|
131
131
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
132
132
|
/* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
|
|
133
|
-
/* @__PURE__ */ a.jsx(lt.svg, { width: `${l}px`, height: `${y}px`, viewBox: `0 0 ${l} ${y}`, ref:
|
|
133
|
+
/* @__PURE__ */ a.jsx(lt.svg, { width: `${l}px`, height: `${y}px`, viewBox: `0 0 ${l} ${y}`, ref: B, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: at, children: [
|
|
134
134
|
st.filter((o) => o.position === "before").map((o) => o.layer),
|
|
135
135
|
d.features.map((o, i) => {
|
|
136
136
|
if (!o.properties?.[dt]) return null;
|
|
@@ -154,7 +154,7 @@ function Lo(r) {
|
|
|
154
154
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
155
155
|
E(o.x)
|
|
156
156
|
);
|
|
157
|
-
return /* @__PURE__ */ a.jsx(lt.g, { variants: {
|
|
157
|
+
return /* @__PURE__ */ a.jsx(lt.g, { className: "undp-map-shapes", variants: {
|
|
158
158
|
initial: {
|
|
159
159
|
opacity: 0
|
|
160
160
|
},
|
|
@@ -176,7 +176,7 @@ function Lo(r) {
|
|
|
176
176
|
}, onMouseLeave: () => {
|
|
177
177
|
I(void 0), D(void 0), z(void 0), q?.(void 0);
|
|
178
178
|
}, onClick: () => {
|
|
179
|
-
(P || H) && (Pe(
|
|
179
|
+
(P || H) && (Pe(V, o) && Mt ? (O(void 0), P?.(void 0)) : (O(o), P?.(o)));
|
|
180
180
|
}, children: /* @__PURE__ */ a.jsx(lt.path, { d: v, variants: {
|
|
181
181
|
initial: {
|
|
182
182
|
fill: N,
|
|
@@ -200,8 +200,8 @@ function Lo(r) {
|
|
|
200
200
|
} }, `${o.id}`) }, o.id);
|
|
201
201
|
}),
|
|
202
202
|
t.filter((o) => !me(o.lat) && !me(o.long)).map((o) => {
|
|
203
|
-
const i = Z([o.long, o.lat])[0] > 0.
|
|
204
|
-
return /* @__PURE__ */ a.jsxs(lt.g, { variants: {
|
|
203
|
+
const i = Z([o.long, o.lat])[0] > 0.8 * l ? -1 : 1;
|
|
204
|
+
return /* @__PURE__ */ a.jsxs(lt.g, { className: "undp-map-dots", variants: {
|
|
205
205
|
initial: {
|
|
206
206
|
opacity: 0
|
|
207
207
|
},
|
|
@@ -223,7 +223,7 @@ function Lo(r) {
|
|
|
223
223
|
}, onMouseLeave: () => {
|
|
224
224
|
I(void 0), D(void 0), z(void 0), q?.(void 0);
|
|
225
225
|
}, onClick: () => {
|
|
226
|
-
(P || H) && (Pe(
|
|
226
|
+
(P || H) && (Pe(V, o) && Mt ? (O(void 0), P?.(void 0)) : (O(o), P?.(o)));
|
|
227
227
|
}, transform: `translate(${Z([o.long, o.lat])[0]},${Z([o.long, o.lat])[1]})`, children: [
|
|
228
228
|
/* @__PURE__ */ a.jsx(lt.circle, { cx: 0, cy: 0, variants: {
|
|
229
229
|
initial: {
|
|
@@ -302,9 +302,9 @@ function Lo(r) {
|
|
|
302
302
|
WebkitBoxOrient: "vertical"
|
|
303
303
|
}, children: g }) : null,
|
|
304
304
|
tt ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: n.map((o, i) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
|
|
305
|
-
|
|
305
|
+
_(e[i % e.length]);
|
|
306
306
|
}, onMouseLeave: () => {
|
|
307
|
-
|
|
307
|
+
_(void 0);
|
|
308
308
|
}, children: [
|
|
309
309
|
/* @__PURE__ */ a.jsx("div", { className: "w-2 h-2 rounded-full", style: {
|
|
310
310
|
backgroundColor: e[i % e.length]
|
|
@@ -312,9 +312,9 @@ function Lo(r) {
|
|
|
312
312
|
/* @__PURE__ */ a.jsx(Oe, { size: "sm", marginBottom: "none", leading: "none", children: o })
|
|
313
313
|
] }, i)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
|
|
314
314
|
n.map((o, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
|
|
315
|
-
|
|
315
|
+
_(e[i]);
|
|
316
316
|
}, onMouseLeave: () => {
|
|
317
|
-
|
|
317
|
+
_(void 0);
|
|
318
318
|
}, className: "cursor-pointer", children: [
|
|
319
319
|
/* @__PURE__ */ a.jsx("rect", { x: i * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: s === e[i] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
|
|
320
320
|
fill: e[i],
|
|
@@ -327,9 +327,9 @@ function Lo(r) {
|
|
|
327
327
|
}, children: wo(o, "NA") })
|
|
328
328
|
] }, i)),
|
|
329
329
|
/* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("rect", { onMouseOver: () => {
|
|
330
|
-
|
|
330
|
+
_(e[n.length]);
|
|
331
331
|
}, onMouseLeave: () => {
|
|
332
|
-
|
|
332
|
+
_(void 0);
|
|
333
333
|
}, x: n.length * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: `cursor-pointer ${s === e[n.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
|
|
334
334
|
fill: e[n.length],
|
|
335
335
|
...s === e[n.length] ? {} : {
|
|
@@ -346,7 +346,7 @@ function Lo(r) {
|
|
|
346
346
|
/* @__PURE__ */ a.jsx("button", { onClick: () => rt("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
|
|
347
347
|
] })
|
|
348
348
|
] }),
|
|
349
|
-
H &&
|
|
349
|
+
H && V !== void 0 ? /* @__PURE__ */ a.jsx(yo, { body: H, data: V, setData: O, className: U?.modal }) : null,
|
|
350
350
|
ot && w && Pt && Lt ? /* @__PURE__ */ a.jsx(uo, { data: ot, body: w, xPos: Pt, yPos: Lt, backgroundStyle: C?.tooltip, className: U?.tooltip }) : null
|
|
351
351
|
] });
|
|
352
352
|
}
|
|
@@ -394,11 +394,11 @@ function ja(r) {
|
|
|
394
394
|
detailsOnClick: pt,
|
|
395
395
|
styles: d,
|
|
396
396
|
classNames: s,
|
|
397
|
-
mapProjection:
|
|
397
|
+
mapProjection: _,
|
|
398
398
|
zoomInteraction: Ht,
|
|
399
399
|
animate: Et,
|
|
400
400
|
dimmedOpacity: ut,
|
|
401
|
-
customLayers:
|
|
401
|
+
customLayers: V,
|
|
402
402
|
maxRadiusValue: O,
|
|
403
403
|
timeline: ot,
|
|
404
404
|
collapseColorScaleByDefault: I,
|
|
@@ -406,19 +406,19 @@ function ja(r) {
|
|
|
406
406
|
highlightedIds: D,
|
|
407
407
|
mapProperty: Lt,
|
|
408
408
|
dotLegendTitle: z,
|
|
409
|
-
dotBorderColor:
|
|
409
|
+
dotBorderColor: B,
|
|
410
410
|
labelColor: K,
|
|
411
411
|
projectionRotate: at,
|
|
412
412
|
rewindCoordinatesInMapData: $
|
|
413
|
-
} = r, E = b === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : b, A = k === void 0 ? "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." : k, j = kt === void 0 ? "threshold" : kt,
|
|
413
|
+
} = r, E = b === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : b, A = k === void 0 ? "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." : k, j = kt === void 0 ? "threshold" : kt, _t = Ct === void 0 ? 5 : Ct, Vt = Dt === void 0 ? 0.95 : Dt, Bt = Gt === void 0 ? 0.5 : Gt, $t = qt === void 0 ? jt.light.graphNoData : qt, F = St === void 0 ? !1 : St, Z = P === void 0 ? !1 : P, ht = Mt === void 0 ? jt.light.grays["gray-500"] : Mt, rt = Q === void 0 ? !0 : Q, o = X === void 0 ? !0 : X;
|
|
414
414
|
let i;
|
|
415
415
|
t[0] !== x ? (i = x === void 0 ? [0.8, 6] : x, t[0] = x, t[1] = i) : i = t[1];
|
|
416
416
|
const v = i;
|
|
417
417
|
let N;
|
|
418
418
|
t[2] !== ct ? (N = ct === void 0 ? [] : ct, t[2] = ct, t[3] = N) : N = t[3];
|
|
419
|
-
const m = N, gt = Y === void 0 ? !1 : Y, ft = Ot === void 0 ? !1 : Ot, At = et === void 0 ? !1 : et, pe = dt === void 0 ? "en" : dt, T = mt === void 0 ? 0 : mt, it = It === void 0 ? "light" : It, ue = J === void 0 ? !0 : J, he =
|
|
419
|
+
const m = N, gt = Y === void 0 ? !1 : Y, ft = Ot === void 0 ? !1 : Ot, At = et === void 0 ? !1 : et, pe = dt === void 0 ? "en" : dt, T = mt === void 0 ? 0 : mt, it = It === void 0 ? "light" : It, ue = J === void 0 ? !0 : J, he = _ === void 0 ? "naturalEarth" : _, ge = Ht === void 0 ? "button" : Ht, Ut = Et === void 0 ? !1 : Et, fe = ut === void 0 ? 0.3 : ut;
|
|
420
420
|
let Xt;
|
|
421
|
-
t[4] !==
|
|
421
|
+
t[4] !== V ? (Xt = V === void 0 ? [] : V, t[4] = V, t[5] = Xt) : Xt = t[5];
|
|
422
422
|
const ye = Xt;
|
|
423
423
|
let Yt;
|
|
424
424
|
t[6] !== ot ? (Yt = ot === void 0 ? {
|
|
@@ -494,10 +494,10 @@ function ja(r) {
|
|
|
494
494
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
495
495
|
] }) : null, t[51] = R, t[52] = se, t[53] = W, t[54] = c.enabled, t[55] = p, t[56] = vt) : vt = t[56];
|
|
496
496
|
let bt;
|
|
497
|
-
t[57] !== Ut || t[58] !== q || t[59] !== j || t[60] !== s || t[61] !== I || t[62] !== n || t[63] !== ye || t[64] !== e || t[65] !== pt || t[66] !== fe || t[67] !== Wt || t[68] !==
|
|
497
|
+
t[57] !== Ut || t[58] !== q || t[59] !== j || t[60] !== s || t[61] !== I || t[62] !== n || t[63] !== ye || t[64] !== e || t[65] !== pt || t[66] !== fe || t[67] !== Wt || t[68] !== B || t[69] !== xe || t[70] !== z || t[71] !== l || t[72] !== m || t[73] !== ve || t[74] !== R || t[75] !== rt || t[76] !== we || t[77] !== ht || t[78] !== Bt || t[79] !== w || t[80] !== $t || t[81] !== he || t[82] !== be || t[83] !== yt || t[84] !== O || t[85] !== T || t[86] !== tt || t[87] !== U || t[88] !== je || t[89] !== _t || t[90] !== C || t[91] !== ue || t[92] !== ke || t[93] !== Vt || t[94] !== At || t[95] !== o || t[96] !== Z || t[97] !== d || t[98] !== Ft || t[99] !== nt || t[100] !== it || t[101] !== c.dateFormat || t[102] !== c.enabled || t[103] !== H || t[104] !== p || t[105] !== u || t[106] !== ge || t[107] !== v || t[108] !== L ? (bt = /* @__PURE__ */ a.jsx(So, { ref: De, children: nt && Ft && yt ? /* @__PURE__ */ a.jsx(Lo, { dotColor: xe, data: e.filter((h) => c.enabled ? h.date === Je(new Date(p[R]), c.dateFormat || "yyyy") : h), mapData: At ? yt : {
|
|
498
498
|
...yt,
|
|
499
|
-
features: yt.features.filter(
|
|
500
|
-
}, colorDomain: Wt, width: nt, height: Ft, scale:
|
|
499
|
+
features: yt.features.filter(Bo)
|
|
500
|
+
}, colorDomain: Wt, width: nt, height: Ft, scale: Vt, centerPoint: q, colors: n || (j === "categorical" ? jt[it].sequentialColors[`neutralColorsx0${Wt.length}`] : jt[it].sequentialColors[`neutralColorsx0${Wt.length + 1}`]), mapColorLegendTitle: w, radius: _t, categorical: j === "categorical", mapBorderWidth: Bt, mapNoDataColor: $t, mapBorderColor: ht, tooltip: H, onSeriesMouseOver: U, showLabels: Z, isWorldMap: rt, showColorScale: o, zoomScaleExtend: v, zoomTranslateExtend: L, onSeriesMouseClick: tt, highlightedDataPoints: m, resetSelectionOnDoubleClick: ue, styles: d, classNames: s, zoomInteraction: ge, detailsOnClick: pt, mapProjection: he || (rt ? "naturalEarth" : "mercator"), animate: Ut === !0 ? {
|
|
501
501
|
duration: 0.5,
|
|
502
502
|
once: !0,
|
|
503
503
|
amount: 0.5
|
|
@@ -505,9 +505,9 @@ function ja(r) {
|
|
|
505
505
|
duration: 0,
|
|
506
506
|
once: !0,
|
|
507
507
|
amount: 0
|
|
508
|
-
}, dimmedOpacity: fe, customLayers: ye, maxRadiusValue: me(O) ? Math.max(...e.map(
|
|
508
|
+
}, dimmedOpacity: fe, customLayers: ye, maxRadiusValue: me(O) ? Math.max(...e.map(Vo).filter(_o)) : O, collapseColorScaleByDefault: I, highlightedIds: ve, mapProperty: be, dotLegendTitle: z, dotBorderColor: B, labelColor: we, projectionRotate: je, rewindCoordinatesInMapData: ke }) : /* @__PURE__ */ a.jsx("div", { style: {
|
|
509
509
|
height: `${Math.max(T, l || (C ? T ? (u || nt) * C > T ? (u || nt) * C : T : (u || nt) * C : Ft))}px`
|
|
510
|
-
}, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(to, { "aria-label": "Loading graph" }) }) }), t[57] = Ut, t[58] = q, t[59] = j, t[60] = s, t[61] = I, t[62] = n, t[63] = ye, t[64] = e, t[65] = pt, t[66] = fe, t[67] = Wt, t[68] =
|
|
510
|
+
}, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(to, { "aria-label": "Loading graph" }) }) }), t[57] = Ut, t[58] = q, t[59] = j, t[60] = s, t[61] = I, t[62] = n, t[63] = ye, t[64] = e, t[65] = pt, t[66] = fe, t[67] = Wt, t[68] = B, t[69] = xe, t[70] = z, t[71] = l, t[72] = m, t[73] = ve, t[74] = R, t[75] = rt, t[76] = we, t[77] = ht, t[78] = Bt, t[79] = w, t[80] = $t, t[81] = he, t[82] = be, t[83] = yt, t[84] = O, t[85] = T, t[86] = tt, t[87] = U, t[88] = je, t[89] = _t, t[90] = C, t[91] = ue, t[92] = ke, t[93] = Vt, t[94] = At, t[95] = o, t[96] = Z, t[97] = d, t[98] = Ft, t[99] = nt, t[100] = it, t[101] = c.dateFormat, t[102] = c.enabled, t[103] = H, t[104] = p, t[105] = u, t[106] = ge, t[107] = v, t[108] = L, t[109] = bt) : bt = t[109];
|
|
511
511
|
let wt;
|
|
512
512
|
t[110] !== s?.footnote || t[111] !== s?.source || t[112] !== A || t[113] !== f || t[114] !== d?.footnote || t[115] !== d?.source || t[116] !== u ? (wt = f || A ? /* @__PURE__ */ a.jsx(Co, { styles: {
|
|
513
513
|
footnote: d?.footnote,
|
|
@@ -524,13 +524,13 @@ function ja(r) {
|
|
|
524
524
|
wt
|
|
525
525
|
] }), t[118] = zt, t[119] = F, t[120] = st, t[121] = l, t[122] = pe, t[123] = T, t[124] = Nt, t[125] = C, t[126] = Se, t[127] = Me, t[128] = xt, t[129] = vt, t[130] = bt, t[131] = wt, t[132] = it, t[133] = u, t[134] = ce) : ce = t[134], ce;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function _o(r) {
|
|
528
528
|
return r != null;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Vo(r) {
|
|
531
531
|
return r.radius;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Bo(r) {
|
|
534
534
|
return r.properties.NAME !== "Antarctica";
|
|
535
535
|
}
|
|
536
536
|
function $o(r) {
|