@undp/data-viz 2.1.8 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.js +19 -19
- package/dist/AreaChart.js.map +1 -1
- package/dist/{Axis-CRyfcLjc.js → Axis-DoOqnt6g.js} +2 -2
- package/dist/{Axis-CRyfcLjc.js.map → Axis-DoOqnt6g.js.map} +1 -1
- package/dist/{Axis-DxRV2yMi.cjs → Axis-Dtjn-EgM.cjs} +2 -2
- package/dist/{Axis-DxRV2yMi.cjs.map → Axis-Dtjn-EgM.cjs.map} +1 -1
- package/dist/{AxisTitle-sS5bLLR7.cjs → AxisTitle-DV4n0RxE.cjs} +2 -2
- package/dist/{AxisTitle-sS5bLLR7.cjs.map → AxisTitle-DV4n0RxE.cjs.map} +1 -1
- package/dist/{AxisTitle-jeI7am8o.js → AxisTitle-VFq89Olw.js} +2 -2
- package/dist/{AxisTitle-jeI7am8o.js.map → AxisTitle-VFq89Olw.js.map} +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.js +24 -24
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.js +2 -2
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.js +14 -14
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +48 -48
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.js +22 -22
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.js +19 -19
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +51 -51
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +4 -4
- package/dist/ColorLegend.cjs +1 -1
- package/dist/ColorLegend.js +2 -2
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.js +2 -2
- package/dist/CopyTextButton.cjs +1 -16
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.js +13 -31
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +2 -20
- package/dist/CsvDownloadButton.cjs.map +1 -1
- package/dist/CsvDownloadButton.js +5 -26
- package/dist/CsvDownloadButton.js.map +1 -1
- package/dist/DataCards.cjs +1 -21
- package/dist/DataCards.cjs.map +1 -1
- package/dist/DataCards.js +18 -42
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +6 -6
- package/dist/DataTable.js.map +1 -1
- package/dist/{DetailsModal-0Ry5nXiC.js → DetailsModal-BMCTgVsk.js} +4 -4
- package/dist/{DetailsModal-0Ry5nXiC.js.map → DetailsModal-BMCTgVsk.js.map} +1 -1
- package/dist/{DetailsModal-BN0HDFlV.cjs → DetailsModal-DHttOA80.cjs} +2 -2
- package/dist/{DetailsModal-BN0HDFlV.cjs.map → DetailsModal-DHttOA80.cjs.map} +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +22 -22
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +10 -10
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +1 -1
- package/dist/DotDensityMap.js +78 -78
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/{DropdownSelect-BbdPQa2k.js → DropdownSelect-D8rFbygC.js} +5 -33
- package/dist/{DropdownSelect-BbdPQa2k.js.map → DropdownSelect-D8rFbygC.js.map} +1 -1
- package/dist/{DropdownSelect-Doz3mCrM.cjs → DropdownSelect-NNpOs7DX.cjs} +2 -26
- package/dist/{DropdownSelect-Doz3mCrM.cjs.map → DropdownSelect-NNpOs7DX.cjs.map} +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +15 -15
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.js +22 -22
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-gLDRXBHm.cjs → EmptyState-CGeBqbmR.cjs} +2 -2
- package/dist/{EmptyState-gLDRXBHm.cjs.map → EmptyState-CGeBqbmR.cjs.map} +1 -1
- package/dist/EmptyState-tZBErBKF.js +15 -0
- package/dist/{EmptyState-C7ZXkZWd.js.map → EmptyState-tZBErBKF.js.map} +1 -1
- package/dist/ExcelDownloadButton.cjs +1 -1
- package/dist/ExcelDownloadButton.js +2 -2
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.js +2 -2
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.js +13 -13
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.js +8 -8
- package/dist/GeoHubMap.js.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +12 -12
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
- package/dist/{GraphContainer-d8A46BK2.cjs → GraphContainer-B1EDxJ0S.cjs} +2 -2
- package/dist/{GraphContainer-d8A46BK2.cjs.map → GraphContainer-B1EDxJ0S.cjs.map} +1 -1
- package/dist/{GraphContainer-CRqzdKu2.js → GraphContainer-CF6ws3pd.js} +2 -2
- package/dist/{GraphContainer-CRqzdKu2.js.map → GraphContainer-CF6ws3pd.js.map} +1 -1
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +2 -2
- package/dist/GraphEl-CBZdcvb7.cjs +2 -0
- package/dist/GraphEl-CBZdcvb7.cjs.map +1 -0
- package/dist/{GraphEl-Dyu_EIQb.js → GraphEl-DKrjuQNB.js} +79 -18
- package/dist/GraphEl-DKrjuQNB.js.map +1 -0
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +2 -2
- package/dist/GraphHeader.cjs +1 -1
- package/dist/GraphHeader.js +1 -1
- package/dist/GraphTitle.cjs +1 -1
- package/dist/GraphTitle.js +2 -2
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -1
- package/dist/GriddedGraphs.js +8 -8
- package/dist/GriddedGraphsFromConfig.cjs +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -1
- package/dist/GriddedGraphsFromConfig.js +4 -4
- package/dist/GriddedGraphsFromConfig.js.map +1 -1
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.js +14 -14
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +5 -5
- package/dist/Histogram.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +134 -133
- package/dist/HybridMap.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.js +3 -3
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +18 -18
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +2 -2
- package/dist/{Modal-JW_IExO3.cjs → Modal-CaYa_TLE.cjs} +2 -2
- package/dist/{Modal-JW_IExO3.cjs.map → Modal-CaYa_TLE.cjs.map} +1 -1
- package/dist/{Modal-bMQA6bL_.js → Modal-Ch9wvKxF.js} +4 -4
- package/dist/{Modal-bMQA6bL_.js.map → Modal-Ch9wvKxF.js.map} +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -1
- package/dist/MultiGraphDashboard.js +5 -5
- package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -1
- package/dist/MultiGraphDashboardFromConfig.js +4 -4
- package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +5 -5
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +4 -4
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.js +17 -17
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +19 -19
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +15 -15
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +5 -5
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +4 -4
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
- package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -1
- package/dist/PerformanceIntensiveScrollStory.js +6 -6
- package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +9 -9
- package/dist/{ReferenceLine-2XCwHXQ4.js → ReferenceLine-DgtoRgw0.js} +5 -5
- package/dist/ReferenceLine-DgtoRgw0.js.map +1 -0
- package/dist/{ReferenceLine-BH0qdf4R.cjs → ReferenceLine-M9aP3dj-.cjs} +2 -2
- package/dist/{ReferenceLine-BH0qdf4R.cjs.map → ReferenceLine-M9aP3dj-.cjs.map} +1 -1
- package/dist/{RegressionLine-BOTTNSrr.cjs → RegressionLine-Ci-Dh0w0.cjs} +2 -2
- package/dist/{RegressionLine-BOTTNSrr.cjs.map → RegressionLine-Ci-Dh0w0.cjs.map} +1 -1
- package/dist/{RegressionLine-DAcY2DjT.js → RegressionLine-D2aqeBKp.js} +6 -6
- package/dist/RegressionLine-D2aqeBKp.js.map +1 -0
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.js +2 -2
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +61 -67
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +23 -23
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.cjs +1 -1
- package/dist/ScrollStory.d.ts +1 -1
- package/dist/ScrollStory.js +4 -4
- package/dist/ScrollStory.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +19 -19
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -1
- package/dist/SingleGraphDashboard.js +9 -9
- package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -1
- package/dist/SingleGraphDashboardFromConfig.js +4 -4
- package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.js +5 -5
- package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +4 -4
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +63 -70
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +4 -4
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +12 -12
- package/dist/SlopeChart.js.map +1 -1
- package/dist/{Source-DYMJRrsq.cjs → Source-B5AoSlsi.cjs} +2 -2
- package/dist/{Source-DYMJRrsq.cjs.map → Source-B5AoSlsi.cjs.map} +1 -1
- package/dist/{Source-DwTHB8fn.js → Source-F8EYCYkV.js} +4 -4
- package/dist/{Source-DwTHB8fn.js.map → Source-F8EYCYkV.js.map} +1 -1
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +3 -3
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +8 -8
- package/dist/SparkLine.js.map +1 -1
- package/dist/{Spinner-DVBnY6Vg.js → Spinner--r2RrJV8.js} +2 -2
- package/dist/{Spinner-DVBnY6Vg.js.map → Spinner--r2RrJV8.js.map} +1 -1
- package/dist/{Spinner-CQZcjzwd.cjs → Spinner-jTMOLuw_.cjs} +2 -2
- package/dist/{Spinner-CQZcjzwd.cjs.map → Spinner-jTMOLuw_.cjs.map} +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.js +2 -2
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.js +10 -10
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +13 -13
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +3 -3
- package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
- package/dist/{Tooltip-uUdw6wJL.cjs → Tooltip-BLa2EfMs.cjs} +2 -2
- package/dist/{Tooltip-uUdw6wJL.cjs.map → Tooltip-BLa2EfMs.cjs.map} +1 -1
- package/dist/{Tooltip-Dj5eVppQ.js → Tooltip-BRnAz2Gv.js} +3 -3
- package/dist/{Tooltip-Dj5eVppQ.js.map → Tooltip-BRnAz2Gv.js.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +10 -10
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +8 -1
- package/dist/{Typography-PxtFcnJb.js → Typography-hWfh3H0J.js} +2 -2
- package/dist/{Typography-PxtFcnJb.js.map → Typography-hWfh3H0J.js.map} +1 -1
- package/dist/{Typography-DX7PlgQU.cjs → Typography-sa1UE0oF.cjs} +2 -2
- package/dist/{Typography-DX7PlgQU.cjs.map → Typography-sa1UE0oF.cjs.map} +1 -1
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.js +8 -8
- package/dist/WaterfallChart.cjs +2 -0
- package/dist/WaterfallChart.cjs.map +1 -0
- package/dist/WaterfallChart.d.ts +208 -0
- package/dist/WaterfallChart.js +427 -0
- package/dist/WaterfallChart.js.map +1 -0
- package/dist/{XAxesLabels-Bt5NZBmX.cjs → XAxesLabels-C6o9jJal.cjs} +2 -2
- package/dist/{XAxesLabels-Bt5NZBmX.cjs.map → XAxesLabels-C6o9jJal.cjs.map} +1 -1
- package/dist/{XAxesLabels-Dy8E1SEo.js → XAxesLabels-rhK7lRjO.js} +3 -3
- package/dist/{XAxesLabels-Dy8E1SEo.js.map → XAxesLabels-rhK7lRjO.js.map} +1 -1
- package/dist/{XTicksAndGridLines-CObVFSm4.js → XTicksAndGridLines-CVZkZkpS.js} +2 -2
- package/dist/{XTicksAndGridLines-CObVFSm4.js.map → XTicksAndGridLines-CVZkZkpS.js.map} +1 -1
- package/dist/{XTicksAndGridLines-B6CELS7q.cjs → XTicksAndGridLines-CekrPykD.cjs} +2 -2
- package/dist/{XTicksAndGridLines-B6CELS7q.cjs.map → XTicksAndGridLines-CekrPykD.cjs.map} +1 -1
- package/dist/{YAxesLabels-DesLesUP.cjs → YAxesLabels-BQ2aCazV.cjs} +2 -2
- package/dist/{YAxesLabels-DesLesUP.cjs.map → YAxesLabels-BQ2aCazV.cjs.map} +1 -1
- package/dist/{YAxesLabels-a57ZRv-0.js → YAxesLabels-QICWVsHf.js} +3 -3
- package/dist/{YAxesLabels-a57ZRv-0.js.map → YAxesLabels-QICWVsHf.js.map} +1 -1
- package/dist/{YTicksAndGridLines-Blepl7XF.js → YTicksAndGridLines-GnXnSRF2.js} +2 -2
- package/dist/{YTicksAndGridLines-Blepl7XF.js.map → YTicksAndGridLines-GnXnSRF2.js.map} +1 -1
- package/dist/{YTicksAndGridLines-4pxTRlRK.cjs → YTicksAndGridLines-UzVC5eBM.cjs} +2 -2
- package/dist/{YTicksAndGridLines-4pxTRlRK.cjs.map → YTicksAndGridLines-UzVC5eBM.cjs.map} +1 -1
- package/dist/{band-DHUZ2X7J.js → band-DYty33LD.js} +2 -2
- package/dist/{band-DHUZ2X7J.js.map → band-DYty33LD.js.map} +1 -1
- package/dist/{checkIfMultiple-CIRtG0KE.js → checkIfMultiple-D9fVkeOq.js} +7 -19
- package/dist/{checkIfMultiple-CIRtG0KE.js.map → checkIfMultiple-D9fVkeOq.js.map} +1 -1
- package/dist/checkIfMultiple-DxnGtm3t.cjs +2 -0
- package/dist/{checkIfMultiple-wg6hJLXy.cjs.map → checkIfMultiple-DxnGtm3t.cjs.map} +1 -1
- package/dist/{customArea-BUhPiPT6.js → customArea-ASDaSE4u.js} +5 -5
- package/dist/{customArea-BUhPiPT6.js.map → customArea-ASDaSE4u.js.map} +1 -1
- package/dist/{customArea-CMF5g-C3.cjs → customArea-B1LWQBmM.cjs} +2 -2
- package/dist/{customArea-CMF5g-C3.cjs.map → customArea-B1LWQBmM.cjs.map} +1 -1
- package/dist/defaultLocale-C4wbwF1n.cjs +2 -0
- package/dist/defaultLocale-C4wbwF1n.cjs.map +1 -0
- package/dist/defaultLocale-CPy_WVtp.js +172 -0
- package/dist/defaultLocale-CPy_WVtp.js.map +1 -0
- package/dist/{ensureCompleteData-DH5c52Ub.js → ensureCompleteData-CDIukSG6.js} +2 -2
- package/dist/{ensureCompleteData-DH5c52Ub.js.map → ensureCompleteData-CDIukSG6.js.map} +1 -1
- package/dist/{ensureCompleteData-pZ9QO6kB.cjs → ensureCompleteData-D9bQTiVS.cjs} +2 -2
- package/dist/{ensureCompleteData-pZ9QO6kB.cjs.map → ensureCompleteData-D9bQTiVS.cjs.map} +1 -1
- package/dist/{fetchAndParseData-BpqkBPQL.js → fetchAndParseData-BAXhgTDM.js} +12 -18
- package/dist/{fetchAndParseData-BpqkBPQL.js.map → fetchAndParseData-BAXhgTDM.js.map} +1 -1
- package/dist/{fetchAndParseData-l5HGMAEs.cjs → fetchAndParseData-QTF6tjij.cjs} +3 -8
- package/dist/{fetchAndParseData-l5HGMAEs.cjs.map → fetchAndParseData-QTF6tjij.cjs.map} +1 -1
- package/dist/fetchAndParseData.cjs +1 -1
- package/dist/fetchAndParseData.js +1 -1
- package/dist/getCentroidCoordinates-CtBGrNC8.cjs +2 -0
- package/dist/getCentroidCoordinates-CtBGrNC8.cjs.map +1 -0
- package/dist/{getCentroidCoordinates-D7r34N4w.js → getCentroidCoordinates-s0OOUjLF.js} +15 -15
- package/dist/getCentroidCoordinates-s0OOUjLF.js.map +1 -0
- package/dist/{getGraphList-Dxwo9TDb.js → getGraphList-Bpd3PVmF.js} +7 -1
- package/dist/getGraphList-Bpd3PVmF.js.map +1 -0
- package/dist/getGraphList-DQ24IzAn.cjs +2 -0
- package/dist/getGraphList-DQ24IzAn.cjs.map +1 -0
- package/dist/{getJenks-GYmdwBqm.cjs → getJenks-BzJvhy_H.cjs} +2 -2
- package/dist/{getJenks-GYmdwBqm.cjs.map → getJenks-BzJvhy_H.cjs.map} +1 -1
- package/dist/{getJenks-BbngDoBQ.js → getJenks-DTCcQSDi.js} +2 -2
- package/dist/{getJenks-BbngDoBQ.js.map → getJenks-DTCcQSDi.js.map} +1 -1
- package/dist/getSchema.cjs +1 -1
- package/dist/getSchema.cjs.map +1 -1
- package/dist/getSchema.d.ts +3 -3
- package/dist/getSchema.js +24 -16
- package/dist/getSchema.js.map +1 -1
- package/dist/getSliderMarks-CIuSoedo.cjs +2 -0
- package/dist/{getSliderMarks-BmADcPQt.cjs.map → getSliderMarks-CIuSoedo.cjs.map} +1 -1
- package/dist/{getSliderMarks-HIDJ0_Cd.js → getSliderMarks-Cvg8zHBU.js} +4 -9
- package/dist/getSliderMarks-Cvg8zHBU.js.map +1 -0
- package/dist/{imageDownload-NYXbvKob.cjs → imageDownload-61q6jyJW.cjs} +3 -3
- package/dist/imageDownload-61q6jyJW.cjs.map +1 -0
- package/dist/{imageDownload-BU4qnxJP.js → imageDownload-Diofs_vY.js} +14 -15
- package/dist/imageDownload-Diofs_vY.js.map +1 -0
- package/dist/{index-D491FEn1.js → index-BQYOuXdl.js} +15 -15
- package/dist/{index-D491FEn1.js.map → index-BQYOuXdl.js.map} +1 -1
- package/dist/{index-DxXnJ8Ti.cjs → index-C5K--w8d.cjs} +2 -2
- package/dist/index-C5K--w8d.cjs.map +1 -0
- package/dist/{index-DRXx7m-C.cjs → index-C6er0ety.cjs} +2 -2
- package/dist/{index-DRXx7m-C.cjs.map → index-C6er0ety.cjs.map} +1 -1
- package/dist/{index-CHPV5EwG-CTPQjnHt.cjs → index-CHPV5EwG-6v2a2njQ.cjs} +5 -69
- package/dist/{index-CHPV5EwG-CTPQjnHt.cjs.map → index-CHPV5EwG-6v2a2njQ.cjs.map} +1 -1
- package/dist/{index-CHPV5EwG-Curnpaqc.js → index-CHPV5EwG-DecW7_qr.js} +5 -77
- package/dist/{index-CHPV5EwG-Curnpaqc.js.map → index-CHPV5EwG-DecW7_qr.js.map} +1 -1
- package/dist/{index-SKgJALZg.js → index-CSiFiXPj.js} +3 -3
- package/dist/{index-SKgJALZg.js.map → index-CSiFiXPj.js.map} +1 -1
- package/dist/index-CoobIWNj.cjs +10 -0
- package/dist/index-CoobIWNj.cjs.map +1 -0
- package/dist/index-CtMBjvtq.js +148 -0
- package/dist/index-CtMBjvtq.js.map +1 -0
- package/dist/{index-Cw8sCyo_-BrHiWiRF.cjs → index-Cw8sCyo_-CEcCMKUi.cjs} +2 -2
- package/dist/{index-Cw8sCyo_-BrHiWiRF.cjs.map → index-Cw8sCyo_-CEcCMKUi.cjs.map} +1 -1
- package/dist/{index-Cw8sCyo_-B2hEKjzG.js → index-Cw8sCyo_-n4AacHGk.js} +6 -4
- package/dist/{index-Cw8sCyo_-B2hEKjzG.js.map → index-Cw8sCyo_-n4AacHGk.js.map} +1 -1
- package/dist/{index-R1gTfap5.js → index-D5ihtaJJ.js} +12 -12
- package/dist/{index-R1gTfap5.js.map → index-D5ihtaJJ.js.map} +1 -1
- package/dist/{index-B_sAFsEV.cjs → index-D69M6klB.cjs} +2 -2
- package/dist/{index-B_sAFsEV.cjs.map → index-D69M6klB.cjs.map} +1 -1
- package/dist/{index-GEsywGxz.js → index-DCsFBfJ_.js} +160 -104
- package/dist/index-DCsFBfJ_.js.map +1 -0
- package/dist/{index-WML2dCZ0.cjs → index-Dgjq6aZ2.cjs} +2 -2
- package/dist/{index-WML2dCZ0.cjs.map → index-Dgjq6aZ2.cjs.map} +1 -1
- package/dist/{index-Dzc_aaI9-BmkfPMyc.cjs → index-Dzc_aaI9-C3DbPpy3.cjs} +2 -2
- package/dist/{index-Dzc_aaI9-BmkfPMyc.cjs.map → index-Dzc_aaI9-C3DbPpy3.cjs.map} +1 -1
- package/dist/{index-Dzc_aaI9-Bb7gobH_.js → index-Dzc_aaI9-CG2Ar7l1.js} +4 -4
- package/dist/{index-Dzc_aaI9-Bb7gobH_.js.map → index-Dzc_aaI9-CG2Ar7l1.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +209 -94
- package/dist/index.js +129 -127
- package/dist/index.js.map +1 -1
- package/dist/{linear-BqltdMeF.js → linear-CalFSAaO.js} +2 -2
- package/dist/{linear-BqltdMeF.js.map → linear-CalFSAaO.js.map} +1 -1
- package/dist/{linear-BwPAspcq.cjs → linear-CgUCbw9F.cjs} +2 -2
- package/dist/{linear-BwPAspcq.cjs.map → linear-CgUCbw9F.cjs.map} +1 -1
- package/dist/{ordinal-BJ6O_LC5.js → ordinal-CHaxGJ_l.js} +2 -2
- package/dist/{ordinal-BJ6O_LC5.js.map → ordinal-CHaxGJ_l.js.map} +1 -1
- package/dist/{parse-DlCRUFh_.js → parse-Dv4of-PN.js} +2 -67
- package/dist/{parse-DlCRUFh_.js.map → parse-Dv4of-PN.js.map} +1 -1
- package/dist/parse-xYI9yrvL.cjs +2 -0
- package/dist/{parse-hMnG_lRV.cjs.map → parse-xYI9yrvL.cjs.map} +1 -1
- package/dist/{pow-DgrUorRi.cjs → pow-BnyPO-NX.cjs} +2 -2
- package/dist/{pow-DgrUorRi.cjs.map → pow-BnyPO-NX.cjs.map} +1 -1
- package/dist/{pow-CM2aze4M.js → pow-CaIrlM4J.js} +2 -2
- package/dist/{pow-CM2aze4M.js.map → pow-CaIrlM4J.js.map} +1 -1
- package/dist/proxy-C4-uo6nS.cjs +2 -0
- package/dist/proxy-C4-uo6nS.cjs.map +1 -0
- package/dist/{proxy-BxkFHwUw.js → proxy-DRuSUlPL.js} +2828 -2717
- package/dist/proxy-DRuSUlPL.js.map +1 -0
- package/dist/{string2HTML-DhG75NqA.js → string2HTML-DUYZT1L9.js} +17 -17
- package/dist/{string2HTML-DhG75NqA.js.map → string2HTML-DUYZT1L9.js.map} +1 -1
- package/dist/{string2HTML-CPGr_I5E.cjs → string2HTML-xx9MzTtY.cjs} +3 -3
- package/dist/{string2HTML-CPGr_I5E.cjs.map → string2HTML-xx9MzTtY.cjs.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{time-BUL-dwnK.js → time-CAtex-RV.js} +2 -2
- package/dist/{time-BUL-dwnK.js.map → time-CAtex-RV.js.map} +1 -1
- package/dist/{time-CZd5YLSP.cjs → time-CkcKbhwe.cjs} +2 -2
- package/dist/{time-CZd5YLSP.cjs.map → time-CkcKbhwe.cjs.map} +1 -1
- package/dist/transformData.cjs +1 -1
- package/dist/transformData.d.ts +1 -1
- package/dist/transformData.js +3 -3
- package/dist/transformDataForAggregation-BFdha9Dx.cjs +2 -0
- package/dist/transformDataForAggregation-BFdha9Dx.cjs.map +1 -0
- package/dist/{transformDataForAggregation-j34UL73s.js → transformDataForAggregation-wdPf8bNt.js} +26 -11
- package/dist/transformDataForAggregation-wdPf8bNt.js.map +1 -0
- package/dist/{transformDataForGraphFromFile-CuXxR8uA.cjs → transformDataForGraphFromFile-DOhp1qrp.cjs} +2 -2
- package/dist/{transformDataForGraphFromFile-CuXxR8uA.cjs.map → transformDataForGraphFromFile-DOhp1qrp.cjs.map} +1 -1
- package/dist/{transformDataForGraphFromFile-DyP-83Nh.js → transformDataForGraphFromFile-dt9sHTVy.js} +3 -3
- package/dist/{transformDataForGraphFromFile-DyP-83Nh.js.map → transformDataForGraphFromFile-dt9sHTVy.js.map} +1 -1
- package/dist/{use-in-view-QcfiW0w3.cjs → use-in-view-C3o_ntMv.cjs} +2 -2
- package/dist/use-in-view-C3o_ntMv.cjs.map +1 -0
- package/dist/{use-in-view-Cxa7y1TH.js → use-in-view-Dl5L8LtP.js} +2 -2
- package/dist/use-in-view-Dl5L8LtP.js.map +1 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +4 -4
- package/dist/validateSchema.cjs +1 -1
- package/dist/validateSchema.d.ts +1 -1
- package/dist/validateSchema.js +1 -1
- package/dist/{x-BBpi7a_7-WVdj1j6r.js → x-BBpi7a_7-BsvWCzYM.js} +1 -31
- package/dist/{x-BBpi7a_7-WVdj1j6r.js.map → x-BBpi7a_7-BsvWCzYM.js.map} +1 -1
- package/dist/x-BBpi7a_7-DXYIEFwN.cjs +2 -0
- package/dist/{x-BBpi7a_7-mTo40uId.cjs.map → x-BBpi7a_7-DXYIEFwN.cjs.map} +1 -1
- package/dist/{zoom-C9MFjAaV.js → zoom-5AkJSuWO.js} +3 -3
- package/dist/zoom-5AkJSuWO.js.map +1 -0
- package/dist/{zoom-DPw8bba-.cjs → zoom-ChcvXFIz.cjs} +2 -2
- package/dist/zoom-ChcvXFIz.cjs.map +1 -0
- package/package.json +21 -1
- package/readme.md +33 -22
- package/dist/EmptyState-C7ZXkZWd.js +0 -15
- package/dist/GraphEl-BixTEyKW.cjs +0 -2
- package/dist/GraphEl-BixTEyKW.cjs.map +0 -1
- package/dist/GraphEl-Dyu_EIQb.js.map +0 -1
- package/dist/ReferenceLine-2XCwHXQ4.js.map +0 -1
- package/dist/RegressionLine-DAcY2DjT.js.map +0 -1
- package/dist/checkIfMultiple-wg6hJLXy.cjs +0 -12
- package/dist/defaultLocale-BEa-49Qz.js +0 -172
- package/dist/defaultLocale-BEa-49Qz.js.map +0 -1
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -2
- package/dist/defaultLocale-DIVzfLaQ.cjs.map +0 -1
- package/dist/getCentroidCoordinates-D7r34N4w.js.map +0 -1
- package/dist/getCentroidCoordinates-Dng1HVjO.cjs +0 -2
- package/dist/getCentroidCoordinates-Dng1HVjO.cjs.map +0 -1
- package/dist/getGraphList-CA17dvFB.cjs +0 -2
- package/dist/getGraphList-CA17dvFB.cjs.map +0 -1
- package/dist/getGraphList-Dxwo9TDb.js.map +0 -1
- package/dist/getSliderMarks-BmADcPQt.cjs +0 -6
- package/dist/getSliderMarks-HIDJ0_Cd.js.map +0 -1
- package/dist/imageDownload-BU4qnxJP.js.map +0 -1
- package/dist/imageDownload-NYXbvKob.cjs.map +0 -1
- package/dist/index-BqfRwk1n.js +0 -146
- package/dist/index-BqfRwk1n.js.map +0 -1
- package/dist/index-DG2bgAva.cjs +0 -10
- package/dist/index-DG2bgAva.cjs.map +0 -1
- package/dist/index-DxXnJ8Ti.cjs.map +0 -1
- package/dist/index-GEsywGxz.js.map +0 -1
- package/dist/parse-hMnG_lRV.cjs +0 -2
- package/dist/proxy-BxkFHwUw.js.map +0 -1
- package/dist/proxy-BxvUI_9l.cjs +0 -2
- package/dist/proxy-BxvUI_9l.cjs.map +0 -1
- package/dist/transformDataForAggregation-CYoB5Xsk.cjs +0 -2
- package/dist/transformDataForAggregation-CYoB5Xsk.cjs.map +0 -1
- package/dist/transformDataForAggregation-j34UL73s.js.map +0 -1
- package/dist/use-in-view-Cxa7y1TH.js.map +0 -1
- package/dist/use-in-view-QcfiW0w3.cjs.map +0 -1
- package/dist/x-BBpi7a_7-mTo40uId.cjs +0 -27
- package/dist/zoom-C9MFjAaV.js.map +0 -1
- package/dist/zoom-DPw8bba-.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as w, j as h } from "./index-CHPV5EwG-
|
|
1
|
+
import { c as w, j as h } from "./index-CHPV5EwG-DecW7_qr.js";
|
|
2
2
|
import { Colors as x } from "./Colors.js";
|
|
3
|
-
import { m as u } from "./proxy-
|
|
3
|
+
import { m as u } from "./proxy-DRuSUlPL.js";
|
|
4
4
|
function V(d) {
|
|
5
5
|
const i = w.c(15), {
|
|
6
6
|
areaSettings: m,
|
|
@@ -96,4 +96,4 @@ export {
|
|
|
96
96
|
V as H,
|
|
97
97
|
k as a
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=index-
|
|
99
|
+
//# sourceMappingURL=index-CSiFiXPj.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CSiFiXPj.js","sources":["../src/Components/Elements/HighlightArea/index.tsx"],"sourcesContent":["import { NumberValue } from 'd3-scale';\r\nimport { motion } from 'motion/react';\r\n\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { AnimateDataType } from '@/Types';\r\n\r\ninterface Props {\r\n areaSettings: {\r\n coordinates: (Date | null | number)[];\r\n style?: React.CSSProperties;\r\n className?: string;\r\n color?: string;\r\n strokeWidth?: number;\r\n }[];\r\n width: number;\r\n height: number;\r\n scale: (value: Date | NumberValue) => number;\r\n animate: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function HighlightArea(props: Props) {\r\n const { areaSettings, width, height, scale, animate, isInView } = props;\r\n return (\r\n <>\r\n {areaSettings.map((d, i) => (\r\n <motion.g key={i}>\r\n {d.coordinates[0] === null && d.coordinates[1] === null ? null : (\r\n <motion.g>\r\n <motion.rect\r\n style={{\r\n fill: d.color || Colors.light.grays['gray-300'],\r\n strokeWidth: d.strokeWidth,\r\n ...(d.style || {}),\r\n }}\r\n className={d.className}\r\n y={0}\r\n height={height}\r\n variants={{\r\n initial: {\r\n width: 0,\r\n x: d.coordinates[0] ? scale(d.coordinates[0]) : 0,\r\n opacity: 1,\r\n },\r\n whileInView: {\r\n width: d.coordinates[1]\r\n ? scale(d.coordinates[1]) - (d.coordinates[0] ? scale(d.coordinates[0]) : 0)\r\n : width - (d.coordinates[0] ? scale(d.coordinates[0]) : 0),\r\n x: d.coordinates[0] ? scale(d.coordinates[0]) : 0,\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, width: 0, transition: { duration: animate.duration } }}\r\n />\r\n </motion.g>\r\n )}\r\n </motion.g>\r\n ))}\r\n </>\r\n );\r\n}\r\n\r\ninterface ScatterPlotProps {\r\n areaSettings: {\r\n coordinates: (Date | null | number)[];\r\n style?: React.CSSProperties;\r\n className?: string;\r\n color?: string;\r\n strokeWidth?: number;\r\n }[];\r\n width: number;\r\n height: number;\r\n scaleX: (value: Date | NumberValue) => number;\r\n scaleY: (value: Date | NumberValue) => number;\r\n animate: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function HighlightAreaForScatterPlot(props: ScatterPlotProps) {\r\n const { areaSettings, width, height, scaleX, scaleY, animate, isInView } = props;\r\n return (\r\n <>\r\n {areaSettings.map((d, i) => (\r\n <motion.g key={`highlight_area_${i}`}>\r\n {d.coordinates.filter(el => el === null).length === 4 ? null : (\r\n <motion.g>\r\n <motion.rect\r\n style={{\r\n fill: d.color || Colors.light.grays['gray-300'],\r\n strokeWidth: d.strokeWidth,\r\n ...(d.style || {}),\r\n }}\r\n className={d.className}\r\n variants={{\r\n initial: {\r\n x: d.coordinates[0] ? scaleX(d.coordinates[0] as number) : 0,\r\n width: 0,\r\n y: d.coordinates[3] ? scaleY(d.coordinates[3] as number) : 0,\r\n height: 0,\r\n },\r\n whileInView: {\r\n x: d.coordinates[0] ? scaleX(d.coordinates[0] as number) : 0,\r\n width: d.coordinates[1]\r\n ? scaleX(d.coordinates[1] as number) -\r\n (d.coordinates[0] ? scaleX(d.coordinates[0] as number) : 0)\r\n : width - (d.coordinates[0] ? scaleX(d.coordinates[0] as number) : 0),\r\n y: d.coordinates[3] ? scaleY(d.coordinates[3] as number) : 0,\r\n height:\r\n d.coordinates[2] !== null\r\n ? scaleY(d.coordinates[2] as number) -\r\n (d.coordinates[3] ? scaleY(d.coordinates[3] as number) : 0)\r\n : height -\r\n (d.coordinates[3] ? height - scaleY(d.coordinates[3] as number) : 0),\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{\r\n opacity: 0,\r\n width: 0,\r\n height: 0,\r\n transition: { duration: animate.duration },\r\n }}\r\n />\r\n </motion.g>\r\n )}\r\n </motion.g>\r\n ))}\r\n </>\r\n );\r\n}\r\n"],"names":["HighlightArea","props","$","_c","areaSettings","width","height","scale","animate","isInView","t0","t1","d","i","jsx","motion","coordinates","fill","color","Colors","light","grays","strokeWidth","style","className","initial","x","opacity","whileInView","transition","duration","map","HighlightAreaForScatterPlot","scaleX","scaleY","filter","_temp","length","y","el"],"mappings":";;;AAqBO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,cAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,SAAAA;AAAAA,IAAAC,UAAAA;AAAAA,EAAAA,IAAkER;AAAM,MAAAS;AAAA,MAAAR,SAAAM,KAAAN,EAAA,CAAA,MAAAE,KAAAF,EAAA,CAAA,MAAAI,KAAAJ,EAAA,CAAA,MAAAO,KAAAP,SAAAK,KAAAL,EAAA,CAAA,MAAAG,GAAA;AAAA,QAAAM;AAAA,IAAAT,EAAA,CAAA,MAAAM,KAAAN,EAAA,CAAA,MAAAI,KAAAJ,EAAA,CAAA,MAAAO,KAAAP,EAAA,EAAA,MAAAK,KAAAL,UAAAG,KAGlDM,IAAAA,CAAAC,GAAAC,MAChBC,gBAAAA,EAAAA,IAAAC,EAAA,GAAA,EACGH,UAAAA,EAACI,YAAY,CAAA,MAAQ,QAAQJ,EAACI,YAAY,CAAA,MAAQ,OAAlD,OACCF,gBAAAA,EAAAA,IAAAC,EAAA,GAAA,EACE,UAAAD,gBAAAA,EAAAA,IAAAC,EAAA,MAAA,EACS,OAAA;AAAA,MAAAE,MACCL,EAACM,SAAUC,EAAMC,MAAMC,MAAO,UAAU;AAAA,MAACC,aAClCV,EAACU;AAAAA,MAAY,GACtBV,EAACW,SAAD,CAAA;AAAA,IAAY,GAEP,WAAAX,EAACY,WACT,GAAA,GACKlB,QAAAA,GACE,UAAA;AAAA,MAAAmB,SACC;AAAA,QAAApB,OACA;AAAA,QAACqB,GACLd,EAACI,iBAAkBT,EA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AA,MAAAS;AAAA,SAAAT,UAAAQ,KA/CJC,wCACGD,UAAAA,EAAAA,CA8CC,GACDR,QAAAQ,GAAAR,QAAAS,KAAAA,IAAAT,EAAA,EAAA,GAhDHS;AAgDG;AAnDA,SAAAyB,EAAAG,GAAA;AAAA,SAM+BA,MAAO;AAAI;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";const w=require("./index-CHPV5EwG-6v2a2njQ.cjs"),o=require("react"),g=require("./proxy-C4-uo6nS.cjs");function T(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const M=T(o);function L(e,s){if(typeof e=="function")return e(s);e!=null&&(e.current=s)}function _(...e){return s=>{let t=!1;const r=e.map(u=>{const n=L(u,s);return!t&&typeof n=="function"&&(t=!0),n});if(t)return()=>{for(let u=0;u<r.length;u++){const n=r[u];typeof n=="function"?n():L(e[u],null)}}}}function A(...e){return M.useCallback(_(...e),e)}class q extends M.Component{getSnapshotBeforeUpdate(s){const t=this.props.childRef.current;if(t&&s.isPresent&&!this.props.isPresent){const r=t.offsetParent,u=g.isHTMLElement(r)&&r.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=u-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function H({children:e,isPresent:s,anchorX:t,root:r}){const u=o.useId(),n=o.useRef(null),h=o.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:R}=o.useContext(g.MotionConfigContext),j=e.props?.ref??e?.ref,f=A(n,j);return o.useInsertionEffect(()=>{const{width:y,height:c,top:l,left:a,right:m}=h.current;if(s||!n.current||!y||!c)return;const x=t==="left"?`left: ${a}`:`right: ${m}`;n.current.dataset.motionPopId=u;const d=document.createElement("style");R&&(d.nonce=R);const P=r??document.head;return P.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
2
|
+
[data-motion-pop-id="${u}"] {
|
|
3
|
+
position: absolute !important;
|
|
4
|
+
width: ${y}px !important;
|
|
5
|
+
height: ${c}px !important;
|
|
6
|
+
${x}px !important;
|
|
7
|
+
top: ${l}px !important;
|
|
8
|
+
}
|
|
9
|
+
`),()=>{P.contains(d)&&P.removeChild(d)}},[s]),w.jsxRuntimeExports.jsx(q,{isPresent:s,childRef:n,sizeRef:h,children:M.cloneElement(e,{ref:f})})}const N=({children:e,initial:s,isPresent:t,onExitComplete:r,custom:u,presenceAffectsLayout:n,mode:h,anchorX:R,root:j})=>{const f=g.useConstant(V),y=o.useId();let c=!0,l=o.useMemo(()=>(c=!1,{id:y,initial:s,isPresent:t,custom:u,onExitComplete:a=>{f.set(a,!0);for(const m of f.values())if(!m)return;r&&r()},register:a=>(f.set(a,!1),()=>f.delete(a))}),[t,f,r]);return n&&c&&(l={...l}),o.useMemo(()=>{f.forEach((a,m)=>f.set(m,!1))},[t]),M.useEffect(()=>{!t&&!f.size&&r&&r()},[t]),h==="popLayout"&&(e=w.jsxRuntimeExports.jsx(H,{isPresent:t,anchorX:R,root:j,children:e})),w.jsxRuntimeExports.jsx(g.PresenceContext.Provider,{value:l,children:e})};function V(){return new Map}const b=e=>e.key||"";function O(e){const s=[];return o.Children.forEach(e,t=>{o.isValidElement(t)&&s.push(t)}),s}const W=({children:e,custom:s,initial:t=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:n="sync",propagate:h=!1,anchorX:R="left",root:j})=>{const[f,y]=g.usePresence(h),c=o.useMemo(()=>O(e),[e]),l=h&&!f?[]:c.map(b),a=o.useRef(!0),m=o.useRef(c),x=g.useConstant(()=>new Map),d=o.useRef(new Set),[P,S]=o.useState(c),[C,k]=o.useState(c);g.useIsomorphicLayoutEffect(()=>{a.current=!1,m.current=c;for(let p=0;p<C.length;p++){const i=b(C[p]);l.includes(i)?(x.delete(i),d.current.delete(i)):x.get(i)!==!0&&x.set(i,!1)}},[C,l.length,l.join("-")]);const v=[];if(c!==P){let p=[...c];for(let i=0;i<C.length;i++){const E=C[i],$=b(E);l.includes($)||(p.splice(i,0,E),v.push(E))}return n==="wait"&&v.length&&(p=v),k(O(p)),S(c),null}process.env.NODE_ENV!=="production"&&n==="wait"&&C.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:D}=o.useContext(g.LayoutGroupContext);return w.jsxRuntimeExports.jsx(w.jsxRuntimeExports.Fragment,{children:C.map(p=>{const i=b(p),E=h&&!f?!1:c===C||l.includes(i),$=()=>{if(d.current.has(i))return;if(d.current.add(i),x.has(i))x.set(i,!0);else return;let z=!0;x.forEach(I=>{I||(z=!1)}),z&&(D?.(),k(m.current),h&&y?.(),r&&r())};return w.jsxRuntimeExports.jsx(N,{isPresent:E,initial:!a.current||t?void 0:!1,custom:s,presenceAffectsLayout:u,mode:n,root:j,onExitComplete:E?void 0:$,anchorX:R,children:p},i)})})};exports.AnimatePresence=W;
|
|
10
|
+
//# sourceMappingURL=index-CoobIWNj.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CoobIWNj.cjs","sources":["../node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"],"sourcesContent":["import * as React from 'react';\n\n/**\n * Taken from https://github.com/radix-ui/primitives/blob/main/packages/react/compose-refs/src/compose-refs.tsx\n */\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n }\n else if (ref !== null && ref !== undefined) {\n ref.current = value;\n }\n}\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup === \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n // React <19 will log an error to the console if a callback ref returns a\n // value. We don't use ref cleanups internally so this will only happen if a\n // user's ref callback returns a value, which we only expect if they are\n // using the cleanup functionality added in React 19.\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup === \"function\") {\n cleanup();\n }\n else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nfunction useComposedRefs(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs);\n}\n\nexport { useComposedRefs };\n//# sourceMappingURL=use-composed-ref.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { isHTMLElement } from 'motion-dom';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { useComposedRefs } from '../../utils/use-composed-ref.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const parent = element.offsetParent;\n const parentWidth = isHTMLElement(parent)\n ? parent.offsetWidth || 0\n : 0;\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX, root }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * In React 19, refs are passed via props.ref instead of element.ref.\n * We check props.ref first (React 19) and fall back to element.ref (React 18).\n */\n const childRef = children.props?.ref ??\n children?.ref;\n const composedRef = useComposedRefs(ref, childRef);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n const x = anchorX === \"left\" ? `left: ${left}` : `right: ${right}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n const parent = root ?? document.head;\n parent.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n top: ${top}px !important;\n }\n `);\n }\n return () => {\n if (parent.contains(style)) {\n parent.removeChild(style);\n }\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref: composedRef }) }));\n}\n\nexport { PopChild };\n//# sourceMappingURL=PopChild.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, root }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n let isReusedContext = true;\n let context = useMemo(() => {\n isReusedContext = false;\n return {\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n };\n }, [isPresent, presenceChildren, onExitComplete]);\n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n if (presenceAffectsLayout && isReusedContext) {\n context = { ...context };\n }\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = (jsx(PopChild, { isPresent: isPresent, anchorX: anchorX, root: root, children: children }));\n }\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n//# sourceMappingURL=PresenceChild.mjs.map\n","import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n//# sourceMappingURL=utils.mjs.map\n","\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", root }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Track which components are currently processing exit to prevent duplicate processing.\n */\n const exitingComponents = useRef(new Set());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n exitingComponents.current.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitingComponents.current.has(key)) {\n return;\n }\n exitingComponents.current.add(key);\n if (exitComplete.has(key)) {\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender?.();\n setRenderedChildren(pendingPresentChildren.current);\n propagate && safeToRemove?.();\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React","PopChildMeasure","prevProps","element","parent","parentWidth","isHTMLElement","size","PopChild","children","isPresent","anchorX","root","id","useId","useRef","nonce","useContext","MotionConfigContext","childRef","composedRef","useInsertionEffect","width","height","top","left","right","style","jsx","PresenceChild","initial","onExitComplete","custom","presenceAffectsLayout","mode","presenceChildren","useConstant","newChildrenMap","isReusedContext","context","useMemo","childId","isComplete","_","key","PresenceContext","getChildKey","child","onlyElements","filtered","Children","isValidElement","AnimatePresence","propagate","isParentPresent","safeToRemove","usePresence","presentChildren","presentKeys","isInitialRender","pendingPresentChildren","exitComplete","exitingComponents","diffedChildren","setDiffedChildren","useState","renderedChildren","setRenderedChildren","useIsomorphicLayoutEffect","exitingChildren","nextChildren","forceRender","LayoutGroupContext","Fragment","onExit","isEveryExitComplete","isExitComplete"],"mappings":"6YASA,SAASA,EAAOC,EAAKC,EAAO,CACxB,GAAI,OAAOD,GAAQ,WACf,OAAOA,EAAIC,CAAK,EAEXD,GAAQ,OACbA,EAAI,QAAUC,EAEtB,CAKA,SAASC,KAAeC,EAAM,CAC1B,OAAQC,GAAS,CACb,IAAIC,EAAa,GACjB,MAAMC,EA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_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { j as R } from "./index-CHPV5EwG-DecW7_qr.js";
|
|
2
|
+
import * as v from "react";
|
|
3
|
+
import { useId as T, useRef as P, useContext as D, useInsertionEffect as N, useMemo as $, Children as U, isValidElement as V, useState as z } from "react";
|
|
4
|
+
import { M as X, i as _, u as S, P as B, a as F, b as G, L as O } from "./proxy-DRuSUlPL.js";
|
|
5
|
+
function A(e, s) {
|
|
6
|
+
if (typeof e == "function")
|
|
7
|
+
return e(s);
|
|
8
|
+
e != null && (e.current = s);
|
|
9
|
+
}
|
|
10
|
+
function Y(...e) {
|
|
11
|
+
return (s) => {
|
|
12
|
+
let t = !1;
|
|
13
|
+
const r = e.map((i) => {
|
|
14
|
+
const n = A(i, s);
|
|
15
|
+
return !t && typeof n == "function" && (t = !0), n;
|
|
16
|
+
});
|
|
17
|
+
if (t)
|
|
18
|
+
return () => {
|
|
19
|
+
for (let i = 0; i < r.length; i++) {
|
|
20
|
+
const n = r[i];
|
|
21
|
+
typeof n == "function" ? n() : A(e[i], null);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function q(...e) {
|
|
27
|
+
return v.useCallback(Y(...e), e);
|
|
28
|
+
}
|
|
29
|
+
class J extends v.Component {
|
|
30
|
+
getSnapshotBeforeUpdate(s) {
|
|
31
|
+
const t = this.props.childRef.current;
|
|
32
|
+
if (t && s.isPresent && !this.props.isPresent) {
|
|
33
|
+
const r = t.offsetParent, i = _(r) && r.offsetWidth || 0, n = this.props.sizeRef.current;
|
|
34
|
+
n.height = t.offsetHeight || 0, n.width = t.offsetWidth || 0, n.top = t.offsetTop, n.left = t.offsetLeft, n.right = i - n.width - n.left;
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Required with getSnapshotBeforeUpdate to stop React complaining.
|
|
40
|
+
*/
|
|
41
|
+
componentDidUpdate() {
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return this.props.children;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function Q({ children: e, isPresent: s, anchorX: t, root: r }) {
|
|
48
|
+
const i = T(), n = P(null), p = P({
|
|
49
|
+
width: 0,
|
|
50
|
+
height: 0,
|
|
51
|
+
top: 0,
|
|
52
|
+
left: 0,
|
|
53
|
+
right: 0
|
|
54
|
+
}), { nonce: x } = D(X), w = e.props?.ref ?? e?.ref, f = q(n, w);
|
|
55
|
+
return N(() => {
|
|
56
|
+
const { width: g, height: c, top: l, left: u, right: h } = p.current;
|
|
57
|
+
if (s || !n.current || !g || !c)
|
|
58
|
+
return;
|
|
59
|
+
const m = t === "left" ? `left: ${u}` : `right: ${h}`;
|
|
60
|
+
n.current.dataset.motionPopId = i;
|
|
61
|
+
const a = document.createElement("style");
|
|
62
|
+
x && (a.nonce = x);
|
|
63
|
+
const E = r ?? document.head;
|
|
64
|
+
return E.appendChild(a), a.sheet && a.sheet.insertRule(`
|
|
65
|
+
[data-motion-pop-id="${i}"] {
|
|
66
|
+
position: absolute !important;
|
|
67
|
+
width: ${g}px !important;
|
|
68
|
+
height: ${c}px !important;
|
|
69
|
+
${m}px !important;
|
|
70
|
+
top: ${l}px !important;
|
|
71
|
+
}
|
|
72
|
+
`), () => {
|
|
73
|
+
E.contains(a) && E.removeChild(a);
|
|
74
|
+
};
|
|
75
|
+
}, [s]), R.jsx(J, { isPresent: s, childRef: n, sizeRef: p, children: v.cloneElement(e, { ref: f }) });
|
|
76
|
+
}
|
|
77
|
+
const Z = ({ children: e, initial: s, isPresent: t, onExitComplete: r, custom: i, presenceAffectsLayout: n, mode: p, anchorX: x, root: w }) => {
|
|
78
|
+
const f = S(ee), g = T();
|
|
79
|
+
let c = !0, l = $(() => (c = !1, {
|
|
80
|
+
id: g,
|
|
81
|
+
initial: s,
|
|
82
|
+
isPresent: t,
|
|
83
|
+
custom: i,
|
|
84
|
+
onExitComplete: (u) => {
|
|
85
|
+
f.set(u, !0);
|
|
86
|
+
for (const h of f.values())
|
|
87
|
+
if (!h)
|
|
88
|
+
return;
|
|
89
|
+
r && r();
|
|
90
|
+
},
|
|
91
|
+
register: (u) => (f.set(u, !1), () => f.delete(u))
|
|
92
|
+
}), [t, f, r]);
|
|
93
|
+
return n && c && (l = { ...l }), $(() => {
|
|
94
|
+
f.forEach((u, h) => f.set(h, !1));
|
|
95
|
+
}, [t]), v.useEffect(() => {
|
|
96
|
+
!t && !f.size && r && r();
|
|
97
|
+
}, [t]), p === "popLayout" && (e = R.jsx(Q, { isPresent: t, anchorX: x, root: w, children: e })), R.jsx(B.Provider, { value: l, children: e });
|
|
98
|
+
};
|
|
99
|
+
function ee() {
|
|
100
|
+
return /* @__PURE__ */ new Map();
|
|
101
|
+
}
|
|
102
|
+
const j = (e) => e.key || "";
|
|
103
|
+
function I(e) {
|
|
104
|
+
const s = [];
|
|
105
|
+
return U.forEach(e, (t) => {
|
|
106
|
+
V(t) && s.push(t);
|
|
107
|
+
}), s;
|
|
108
|
+
}
|
|
109
|
+
const oe = ({ children: e, custom: s, initial: t = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: n = "sync", propagate: p = !1, anchorX: x = "left", root: w }) => {
|
|
110
|
+
const [f, g] = F(p), c = $(() => I(e), [e]), l = p && !f ? [] : c.map(j), u = P(!0), h = P(c), m = S(() => /* @__PURE__ */ new Map()), a = P(/* @__PURE__ */ new Set()), [E, W] = z(c), [C, b] = z(c);
|
|
111
|
+
G(() => {
|
|
112
|
+
u.current = !1, h.current = c;
|
|
113
|
+
for (let d = 0; d < C.length; d++) {
|
|
114
|
+
const o = j(C[d]);
|
|
115
|
+
l.includes(o) ? (m.delete(o), a.current.delete(o)) : m.get(o) !== !0 && m.set(o, !1);
|
|
116
|
+
}
|
|
117
|
+
}, [C, l.length, l.join("-")]);
|
|
118
|
+
const M = [];
|
|
119
|
+
if (c !== E) {
|
|
120
|
+
let d = [...c];
|
|
121
|
+
for (let o = 0; o < C.length; o++) {
|
|
122
|
+
const y = C[o], L = j(y);
|
|
123
|
+
l.includes(L) || (d.splice(o, 0, y), M.push(y));
|
|
124
|
+
}
|
|
125
|
+
return n === "wait" && M.length && (d = M), b(I(d)), W(c), null;
|
|
126
|
+
}
|
|
127
|
+
process.env.NODE_ENV !== "production" && n === "wait" && C.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
128
|
+
const { forceRender: H } = D(O);
|
|
129
|
+
return R.jsx(R.Fragment, { children: C.map((d) => {
|
|
130
|
+
const o = j(d), y = p && !f ? !1 : c === C || l.includes(o), L = () => {
|
|
131
|
+
if (a.current.has(o))
|
|
132
|
+
return;
|
|
133
|
+
if (a.current.add(o), m.has(o))
|
|
134
|
+
m.set(o, !0);
|
|
135
|
+
else
|
|
136
|
+
return;
|
|
137
|
+
let k = !0;
|
|
138
|
+
m.forEach((K) => {
|
|
139
|
+
K || (k = !1);
|
|
140
|
+
}), k && (H?.(), b(h.current), p && g?.(), r && r());
|
|
141
|
+
};
|
|
142
|
+
return R.jsx(Z, { isPresent: y, initial: !u.current || t ? void 0 : !1, custom: s, presenceAffectsLayout: i, mode: n, root: w, onExitComplete: y ? void 0 : L, anchorX: x, children: d }, o);
|
|
143
|
+
}) });
|
|
144
|
+
};
|
|
145
|
+
export {
|
|
146
|
+
oe as A
|
|
147
|
+
};
|
|
148
|
+
//# sourceMappingURL=index-CtMBjvtq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CtMBjvtq.js","sources":["../node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"],"sourcesContent":["import * as React from 'react';\n\n/**\n * Taken from https://github.com/radix-ui/primitives/blob/main/packages/react/compose-refs/src/compose-refs.tsx\n */\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n }\n else if (ref !== null && ref !== undefined) {\n ref.current = value;\n }\n}\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup === \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n // React <19 will log an error to the console if a callback ref returns a\n // value. We don't use ref cleanups internally so this will only happen if a\n // user's ref callback returns a value, which we only expect if they are\n // using the cleanup functionality added in React 19.\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup === \"function\") {\n cleanup();\n }\n else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nfunction useComposedRefs(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs);\n}\n\nexport { useComposedRefs };\n//# sourceMappingURL=use-composed-ref.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { isHTMLElement } from 'motion-dom';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { useComposedRefs } from '../../utils/use-composed-ref.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const parent = element.offsetParent;\n const parentWidth = isHTMLElement(parent)\n ? parent.offsetWidth || 0\n : 0;\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX, root }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * In React 19, refs are passed via props.ref instead of element.ref.\n * We check props.ref first (React 19) and fall back to element.ref (React 18).\n */\n const childRef = children.props?.ref ??\n children?.ref;\n const composedRef = useComposedRefs(ref, childRef);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n const x = anchorX === \"left\" ? `left: ${left}` : `right: ${right}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n const parent = root ?? document.head;\n parent.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n top: ${top}px !important;\n }\n `);\n }\n return () => {\n if (parent.contains(style)) {\n parent.removeChild(style);\n }\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref: composedRef }) }));\n}\n\nexport { PopChild };\n//# sourceMappingURL=PopChild.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, root }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n let isReusedContext = true;\n let context = useMemo(() => {\n isReusedContext = false;\n return {\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n };\n }, [isPresent, presenceChildren, onExitComplete]);\n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n if (presenceAffectsLayout && isReusedContext) {\n context = { ...context };\n }\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = (jsx(PopChild, { isPresent: isPresent, anchorX: anchorX, root: root, children: children }));\n }\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n//# sourceMappingURL=PresenceChild.mjs.map\n","import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n//# sourceMappingURL=utils.mjs.map\n","\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", root }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Track which components are currently processing exit to prevent duplicate processing.\n */\n const exitingComponents = useRef(new Set());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n exitingComponents.current.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitingComponents.current.has(key)) {\n return;\n }\n exitingComponents.current.add(key);\n if (exitComplete.has(key)) {\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender?.();\n setRenderedChildren(pendingPresentChildren.current);\n propagate && safeToRemove?.();\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","useComposedRefs","React","PopChildMeasure","prevProps","element","parent","parentWidth","isHTMLElement","size","PopChild","children","isPresent","anchorX","root","id","useId","useRef","nonce","useContext","MotionConfigContext","childRef","composedRef","useInsertionEffect","width","height","top","left","right","x","style","jsx","PresenceChild","initial","onExitComplete","custom","presenceAffectsLayout","mode","presenceChildren","useConstant","newChildrenMap","isReusedContext","context","useMemo","childId","isComplete","_","key","PresenceContext","getChildKey","child","onlyElements","filtered","Children","isValidElement","AnimatePresence","propagate","isParentPresent","safeToRemove","usePresence","presentChildren","presentKeys","isInitialRender","pendingPresentChildren","exitComplete","exitingComponents","diffedChildren","setDiffedChildren","useState","renderedChildren","setRenderedChildren","useIsomorphicLayoutEffect","i","exitingChildren","nextChildren","forceRender","LayoutGroupContext","Fragment","onExit","isEveryExitComplete","isExitCompl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;AACrC,QAAKA,MACDD,IAAsB;AAAA,MAC9B,CAAC,GACGA,MACAJ,IAAW,GACXL,EAAoBP,EAAuB,OAAO,GAClDP,KAAaE,IAAY,GACzBxB,KAAkBA,EAAc;AAAA,IAExC;AACA,WAAQH,EAAAA,IAAIC,GAAe,EAAE,WAAWpB,GAAW,SAAS,CAACkD,EAAgB,WAAW7B,IAC9E,SACA,IAAO,QAAQE,GAAQ,uBAAuBC,GAAuB,MAAMC,GAAM,MAAMvB,GAAM,gBAAgBF,IAAY,SAAYkE,GAAQ,SAASjE,GAAS,UAAUqC,EAAK,GAAIH,CAAG;AAAA,EACnM,CAAC,EAAC,CAAE;AACZ;","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const l=require("react"),i=require("./index-Dzc_aaI9-
|
|
2
|
-
//# sourceMappingURL=index-Cw8sCyo_-
|
|
1
|
+
"use strict";const l=require("react"),i=require("./index-Dzc_aaI9-C3DbPpy3.cjs"),m=require("./index-CHPV5EwG-6v2a2njQ.cjs");function A(a){const s=a+"CollectionProvider",[M,y]=i.g(s),[w,u]=M(s,{collectionRef:{current:null},itemMap:new Map}),p=o=>{const{scope:e,children:r}=o,t=l.useRef(null),c=l.useRef(new Map).current;return m.ae.jsx(w,{scope:e,itemMap:c,collectionRef:t,children:r})};p.displayName=s;const f=a+"CollectionSlot",P=i.C(f),R=l.forwardRef((o,e)=>{const{scope:r,children:t}=o,c=u(f,r),n=i.P(e,c.collectionRef);return m.ae.jsx(P,{ref:n,children:t})});R.displayName=f;const d=a+"CollectionItemSlot",C="data-radix-collection-item",S=i.C(d),x=l.forwardRef((o,e)=>{const{scope:r,children:t,...c}=o,n=l.useRef(null),v=i.P(e,n),h=u(d,r);return l.useEffect(()=>(h.itemMap.set(n,{ref:n,...c}),()=>{h.itemMap.delete(n)})),m.ae.jsx(S,{[C]:"",ref:v,children:t})});x.displayName=d;function q(o){const e=u(a+"CollectionConsumer",o);return l.useCallback(()=>{const r=e.collectionRef.current;if(!r)return[];const t=Array.from(r.querySelectorAll(`[${C}]`));return Array.from(e.itemMap.values()).sort((c,n)=>t.indexOf(c.ref.current)-t.indexOf(n.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:p,Slot:R,ItemSlot:x},q,y]}exports.h=A;
|
|
2
|
+
//# sourceMappingURL=index-Cw8sCyo_-CEcCMKUi.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-Cw8sCyo_-
|
|
1
|
+
{"version":3,"file":"index-Cw8sCyo_-CEcCMKUi.cjs","sources":["../node_modules/@undp/design-system-react/dist/index-Cw8sCyo_.js"],"sourcesContent":["import r from \"react\";\nimport { c as y } from \"./index-DpH_vjQ_.js\";\nimport { u as S, a as M } from \"./index-DE1ItLfl.js\";\nimport { j as d } from \"./jsx-runtime-BzflLqGi.js\";\nfunction h(s) {\n const a = s + \"CollectionProvider\", [A, E] = y(a), [N, m] = A(\n a,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n ), p = (c) => {\n const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ d.jsx(N, { scope: e, itemMap: t, collectionRef: o, children: l });\n };\n p.displayName = a;\n const f = s + \"CollectionSlot\", _ = M(f), C = r.forwardRef(\n (c, e) => {\n const { scope: l, children: o } = c, t = m(f, l), n = S(e, t.collectionRef);\n return /* @__PURE__ */ d.jsx(_, { ref: n, children: o });\n }\n );\n C.displayName = f;\n const u = s + \"CollectionItemSlot\", R = \"data-radix-collection-item\", T = M(u), x = r.forwardRef(\n (c, e) => {\n const { scope: l, children: o, ...t } = c, n = r.useRef(null), I = S(e, n), i = m(u, l);\n return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ d.jsx(T, { [R]: \"\", ref: I, children: o });\n }\n );\n x.displayName = u;\n function O(c) {\n const e = m(s + \"CollectionConsumer\", c);\n return r.useCallback(() => {\n const o = e.collectionRef.current;\n if (!o) return [];\n const t = Array.from(o.querySelectorAll(`[${R}]`));\n return Array.from(e.itemMap.values()).sort(\n (i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)\n );\n }, [e.collectionRef, e.itemMap]);\n }\n return [\n { Provider: p, Slot: C, ItemSlot: x },\n O,\n E\n ];\n}\nexport {\n h as c\n};\n//# sourceMappingURL=index-Cw8sCyo_.js.map\n"],"names":["h","s","a","A","E","y","N","m","c","l","o","r","t","d","_","M","C","S","u","R","T","I","i","O","v"],"mappings":"4HAIA,SAASA,EAAEC,EAAG,CACZ,MAAMC,EAAID,EAAI,qBAAsB,CAACE,EAAGC,CAAC,EAAIC,EAAAA,EAAEH,CAAC,EAAG,CAACI,EAAGC,CAAC,EAAIJ,EAC1DD,EACA,CAAE,cAAe,CAAE,QAAS,IAAI,EAAI,QAAyB,IAAI,GAAK,CAC1E,EAAK,EAAKM,GAAM,CACZ,KAAM,CAAE,MAAO,EAAG,SAAUC,CAAC,EAAKD,EAAGE,EAAIC,EAAE,OAAO,IAAI,EAAGC,EAAID,EAAE,OAAuB,IAAI,GAAK,EAAE,QACjG,OAAuBE,EAAAA,GAAE,IAAIP,EAAG,CAAE,MAAO,EAAG,QAASM,EAAG,cAAeF,EAAG,SAAUD,CAAC,CAAE,CACzF,EACA,EAAE,YAAcP,EAChB,MAAM,EAAID,EAAI,iBAAkBa,EAAIC,EAAAA,EAAE,CAAC,EAAGC,EAAIL,EAAE,WAC9C,CAACH,EAAG,IAAM,CACR,KAAM,CAAE,MAAOC,EAAG,SAAUC,CAAC,EAAKF,EAAGI,EAAIL,EAAE,EAAGE,CAAC,EAAG,EAAIQ,EAAAA,EAAE,EAAGL,EAAE,aAAa,EAC1E,OAAuBC,EAAAA,GAAE,IAAIC,EAAG,CAAE,IAAK,EAAG,SAAUJ,EAAG,CACzD,CACJ,EACEM,EAAE,YAAc,EAChB,MAAME,EAAIjB,EAAI,q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
2
|
+
import { g as I, P as M, C as h } from "./index-Dzc_aaI9-CG2Ar7l1.js";
|
|
3
|
+
import { b as m } from "./index-CHPV5EwG-DecW7_qr.js";
|
|
4
4
|
function b(i) {
|
|
5
5
|
const f = i + "CollectionProvider", [y, S] = I(f), [v, a] = y(
|
|
6
6
|
f,
|
|
@@ -20,7 +20,9 @@ function b(i) {
|
|
|
20
20
|
const s = i + "CollectionItemSlot", R = "data-radix-collection-item", A = h(s), x = c.forwardRef(
|
|
21
21
|
(l, e) => {
|
|
22
22
|
const { scope: r, children: t, ...n } = l, o = c.useRef(null), j = M(e, o), C = a(s, r);
|
|
23
|
-
return c.useEffect(() => (C.itemMap.set(o, { ref: o, ...n }), () =>
|
|
23
|
+
return c.useEffect(() => (C.itemMap.set(o, { ref: o, ...n }), () => {
|
|
24
|
+
C.itemMap.delete(o);
|
|
25
|
+
})), /* @__PURE__ */ m.jsx(A, { [R]: "", ref: j, children: t });
|
|
24
26
|
}
|
|
25
27
|
);
|
|
26
28
|
x.displayName = s;
|
|
@@ -44,4 +46,4 @@ function b(i) {
|
|
|
44
46
|
export {
|
|
45
47
|
b as h
|
|
46
48
|
};
|
|
47
|
-
//# sourceMappingURL=index-Cw8sCyo_-
|
|
49
|
+
//# sourceMappingURL=index-Cw8sCyo_-n4AacHGk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-Cw8sCyo_-
|
|
1
|
+
{"version":3,"file":"index-Cw8sCyo_-n4AacHGk.js","sources":["../node_modules/@undp/design-system-react/dist/index-Cw8sCyo_.js"],"sourcesContent":["import r from \"react\";\nimport { c as y } from \"./index-DpH_vjQ_.js\";\nimport { u as S, a as M } from \"./index-DE1ItLfl.js\";\nimport { j as d } from \"./jsx-runtime-BzflLqGi.js\";\nfunction h(s) {\n const a = s + \"CollectionProvider\", [A, E] = y(a), [N, m] = A(\n a,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n ), p = (c) => {\n const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ d.jsx(N, { scope: e, itemMap: t, collectionRef: o, children: l });\n };\n p.displayName = a;\n const f = s + \"CollectionSlot\", _ = M(f), C = r.forwardRef(\n (c, e) => {\n const { scope: l, children: o } = c, t = m(f, l), n = S(e, t.collectionRef);\n return /* @__PURE__ */ d.jsx(_, { ref: n, children: o });\n }\n );\n C.displayName = f;\n const u = s + \"CollectionItemSlot\", R = \"data-radix-collection-item\", T = M(u), x = r.forwardRef(\n (c, e) => {\n const { scope: l, children: o, ...t } = c, n = r.useRef(null), I = S(e, n), i = m(u, l);\n return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ d.jsx(T, { [R]: \"\", ref: I, children: o });\n }\n );\n x.displayName = u;\n function O(c) {\n const e = m(s + \"CollectionConsumer\", c);\n return r.useCallback(() => {\n const o = e.collectionRef.current;\n if (!o) return [];\n const t = Array.from(o.querySelectorAll(`[${R}]`));\n return Array.from(e.itemMap.values()).sort(\n (i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)\n );\n }, [e.collectionRef, e.itemMap]);\n }\n return [\n { Provider: p, Slot: C, ItemSlot: x },\n O,\n E\n ];\n}\nexport {\n h as c\n};\n//# sourceMappingURL=index-Cw8sCyo_.js.map\n"],"names":["h","s","a","A","E","y","N","m","p","c","l","o","r","t","d","f","_","M","C","n","S","u","T","I","i","O","v"],"mappings":";;;AAIA,SAASA,EAAEC,GAAG;AACZ,QAAMC,IAAID,IAAI,sBAAsB,CAACE,GAAGC,CAAC,IAAIC,EAAEH,CAAC,GAAG,CAACI,GAAGC,CAAC,IAAIJ;AAAA,IAC1DD;AAAA,IACA,EAAE,eAAe,EAAE,SAAS,KAAI,GAAI,SAAyB,oBAAI,IAAG,EAAE;AAAA,EAC1E,GAAKM,IAAI,CAACC,MAAM;AACZ,UAAM,EAAE,OAAO,GAAG,UAAUC,EA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AAIF,EAAEN,IAAI,sBAAsBQ,CAAC;AACvC,WAAOG,EAAE,YAAY,MAAM;AACzB,YAAMD,IAAI,EAAE,cAAc;AAC1B,UAAI,CAACA,EAAG,QAAO,CAAA;AACf,YAAM,IAAI,MAAM,KAAKA,EAAE,iBAAiB,IAAI,CAAC,GAAG,CAAC;AACjD,aAAO,MAAM,KAAK,EAAE,QAAQ,OAAM,CAAE,EAAE;AAAA,QACpC,CAACa,GAAGE,MAAM,EAAE,QAAQF,EAAE,IAAI,OAAO,IAAI,EAAE,QAAQE,EAAE,IAAI,OAAO;AAAA,MACpE;AAAA,IACI,GAAG,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC;AAAA,EACjC;AACA,SAAO;AAAA,IACL,EAAE,UAAUlB,GAAG,MAAMU,GAAG,UAAU,EAAC;AAAA,IACnCO;AAAA,IACArB;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { c as Ge, j as a, m as Te } from "./index-CHPV5EwG-
|
|
1
|
+
import { c as Ge, j as a, m as Te } from "./index-CHPV5EwG-DecW7_qr.js";
|
|
2
2
|
import { useRef as Ne, useState as te, useEffect as We } from "react";
|
|
3
3
|
import { o as Fe } from "./index-BZQYSqar.js";
|
|
4
|
-
import { w as Xe } from "./Spinner
|
|
5
|
-
import { j as Be } from "./Typography-
|
|
6
|
-
import { T as Ye } from "./Tooltip-
|
|
4
|
+
import { w as Xe } from "./Spinner--r2RrJV8.js";
|
|
5
|
+
import { j as Be } from "./Typography-hWfh3H0J.js";
|
|
6
|
+
import { T as Ye } from "./Tooltip-BRnAz2Gv.js";
|
|
7
7
|
import { n as Ae } from "./numberFormattingFunction-14YCbkN2.js";
|
|
8
8
|
import { g as Pe } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
9
9
|
import { Colors as Ve } from "./Colors.js";
|
|
10
10
|
import { c as Ee } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
11
|
-
import { D as qe } from "./DetailsModal-
|
|
12
|
-
import { s as Ie } from "./pow-
|
|
11
|
+
import { D as qe } from "./DetailsModal-BMCTgVsk.js";
|
|
12
|
+
import { s as Ie } from "./pow-CaIrlM4J.js";
|
|
13
13
|
import { f as Ue, b as Je, a as Ke, c as Qe, d as Ze } from "./y-BqfogMAB.js";
|
|
14
14
|
import { GraphFooter as _e } from "./GraphFooter.js";
|
|
15
15
|
import { GraphHeader as et } from "./GraphHeader.js";
|
|
16
16
|
import { ColorLegendWithMouseOver as tt } from "./ColorLegendWithMouseOver.js";
|
|
17
|
-
import { E as ot } from "./EmptyState-
|
|
17
|
+
import { E as ot } from "./EmptyState-tZBErBKF.js";
|
|
18
18
|
import { u as He } from "./uniqBy-BHy4I8PK.js";
|
|
19
|
-
import { a as it, G as nt } from "./GraphContainer-
|
|
19
|
+
import { a as it, G as nt } from "./GraphContainer-CF6ws3pd.js";
|
|
20
20
|
function ze(o, e) {
|
|
21
21
|
let t, s;
|
|
22
22
|
if (e === void 0)
|
|
@@ -93,7 +93,7 @@ const lt = (o) => {
|
|
|
93
93
|
}, e[25] = j, e[26] = me) : me = e[26];
|
|
94
94
|
const U = me;
|
|
95
95
|
let J;
|
|
96
|
-
e[27] === Symbol.for("react.memo_cache_sentinel") ? (J = (i, f) => {
|
|
96
|
+
e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = (i, f) => {
|
|
97
97
|
je(f), Oe(i.clientY), se(i.clientX);
|
|
98
98
|
}, e[27] = J) : J = e[27];
|
|
99
99
|
const ke = J;
|
|
@@ -121,7 +121,7 @@ const lt = (o) => {
|
|
|
121
121
|
height: f
|
|
122
122
|
}, e[45] = i, e[46] = f, e[47] = y) : y = e[47];
|
|
123
123
|
let v;
|
|
124
|
-
e[48] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ a.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ a.jsx(Xe, {}) }), e[48] = v) : v = e[48];
|
|
124
|
+
e[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ a.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ a.jsx(Xe, {}) }), e[48] = v) : v = e[48];
|
|
125
125
|
let p;
|
|
126
126
|
return e[49] !== y ? (p = /* @__PURE__ */ a.jsx("div", { style: y, children: v }), e[49] = y, e[50] = p) : p = e[50], p;
|
|
127
127
|
}
|
|
@@ -258,7 +258,7 @@ function Xt(o) {
|
|
|
258
258
|
e[0] !== R ? (J = R === void 0 ? [] : R, e[0] = R, e[1] = J) : J = e[1];
|
|
259
259
|
const ke = J, K = Ce === void 0 ? !1 : Ce, G = je === void 0 ? !1 : je, he = B === void 0 ? "en" : B, Q = w === void 0 ? 0 : w, C = Se === void 0 ? "light" : Se, Z = Oe === void 0 ? !0 : Oe, ge = q === void 0 ? 0.3 : q, _ = I === void 0 ? 2 : I, [i, f] = te(0), [y, v] = te(0), [p, N] = te(void 0), O = Ne(null), u = Ne(null);
|
|
260
260
|
let E, ee;
|
|
261
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
|
|
261
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => {
|
|
262
262
|
const Le = new ResizeObserver((Re) => {
|
|
263
263
|
f(Re[0].target.clientWidth || 620), v(Re[0].target.clientHeight || 480);
|
|
264
264
|
});
|
|
@@ -334,4 +334,4 @@ export {
|
|
|
334
334
|
Xt as C,
|
|
335
335
|
ze as e
|
|
336
336
|
};
|
|
337
|
-
//# sourceMappingURL=index-
|
|
337
|
+
//# sourceMappingURL=index-D5ihtaJJ.js.map
|