@mui/x-charts-pro 8.0.0-alpha.10 → 8.0.0-alpha.12
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/BarChartPro/BarChartPro.d.ts +3 -4
- package/BarChartPro/BarChartPro.js +229 -223
- package/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/BarChartPro/BarChartPro.plugins.js +9 -0
- package/BarChartPro/index.d.ts +1 -1
- package/BarChartPro/index.js +16 -1
- package/CHANGELOG.md +267 -2
- package/ChartContainerPro/ChartContainerPro.d.ts +7 -8
- package/ChartContainerPro/ChartContainerPro.js +178 -172
- package/ChartContainerPro/index.d.ts +2 -1
- package/ChartContainerPro/index.js +17 -1
- package/ChartContainerPro/useChartContainerProProps.d.ts +5 -5
- package/ChartContainerPro/useChartContainerProProps.js +25 -18
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +4 -4
- package/ChartDataProviderPro/ChartDataProviderPro.js +35 -213
- package/ChartDataProviderPro/index.d.ts +2 -1
- package/ChartDataProviderPro/index.js +17 -1
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +4 -4
- package/ChartDataProviderPro/useChartDataProviderProProps.js +10 -4
- package/Heatmap/Heatmap.d.ts +44 -45
- package/Heatmap/Heatmap.js +212 -206
- package/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/Heatmap/Heatmap.plugins.js +8 -0
- package/Heatmap/HeatmapItem.d.ts +33 -33
- package/Heatmap/HeatmapItem.js +39 -32
- package/Heatmap/HeatmapPlot.d.ts +4 -5
- package/Heatmap/HeatmapPlot.js +22 -16
- package/Heatmap/HeatmapTooltip.d.ts +3 -4
- package/Heatmap/HeatmapTooltip.js +97 -89
- package/Heatmap/heatmapClasses.d.ts +7 -7
- package/Heatmap/heatmapClasses.js +15 -7
- package/Heatmap/index.d.ts +4 -4
- package/Heatmap/index.js +47 -4
- package/Heatmap/{extremums.d.ts → seriesConfig/extremums.d.ts} +1 -1
- package/Heatmap/{getColor.d.ts → seriesConfig/getColor.d.ts} +1 -1
- package/Heatmap/seriesConfig/index.d.ts +2 -0
- package/{node/Heatmap/plugin.js → Heatmap/seriesConfig/index.js} +4 -4
- package/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/{node/Heatmap/formatter.js → Heatmap/seriesConfig/seriesProcessor.js} +2 -2
- package/Heatmap/{tooltip.d.ts → seriesConfig/tooltip.d.ts} +1 -1
- package/LineChartPro/LineChartPro.d.ts +3 -4
- package/LineChartPro/LineChartPro.js +241 -235
- package/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/LineChartPro/LineChartPro.plugins.js +9 -0
- package/LineChartPro/index.d.ts +1 -1
- package/LineChartPro/index.js +16 -1
- package/ScatterChartPro/ScatterChartPro.d.ts +4 -4
- package/ScatterChartPro/ScatterChartPro.js +224 -211
- package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/ScatterChartPro/ScatterChartPro.plugins.js +9 -0
- package/ScatterChartPro/index.d.ts +1 -1
- package/ScatterChartPro/index.js +16 -1
- package/esm/BarChartPro/BarChartPro.d.ts +17 -0
- package/esm/BarChartPro/BarChartPro.js +455 -0
- package/esm/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/esm/BarChartPro/BarChartPro.plugins.js +3 -0
- package/esm/BarChartPro/index.d.ts +1 -0
- package/esm/BarChartPro/index.js +1 -0
- package/esm/ChartContainerPro/ChartContainerPro.d.ts +35 -0
- package/esm/ChartContainerPro/ChartContainerPro.js +290 -0
- package/esm/ChartContainerPro/index.d.ts +2 -0
- package/esm/ChartContainerPro/index.js +2 -0
- package/esm/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
- package/esm/ChartContainerPro/useChartContainerProProps.js +33 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +105 -0
- package/esm/ChartDataProviderPro/index.d.ts +2 -0
- package/esm/ChartDataProviderPro/index.js +2 -0
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +15 -0
- package/esm/Heatmap/Heatmap.d.ts +56 -0
- package/esm/Heatmap/Heatmap.js +402 -0
- package/esm/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/esm/Heatmap/Heatmap.plugins.js +2 -0
- package/esm/Heatmap/HeatmapItem.d.ts +49 -0
- package/esm/Heatmap/HeatmapItem.js +106 -0
- package/esm/Heatmap/HeatmapPlot.d.ts +8 -0
- package/{node → esm}/Heatmap/HeatmapPlot.js +16 -22
- package/esm/Heatmap/HeatmapTooltip.d.ts +8 -0
- package/esm/Heatmap/HeatmapTooltip.js +276 -0
- package/esm/Heatmap/heatmapClasses.d.ts +11 -0
- package/esm/Heatmap/heatmapClasses.js +14 -0
- package/esm/Heatmap/index.d.ts +4 -0
- package/esm/Heatmap/index.js +4 -0
- package/esm/Heatmap/seriesConfig/extremums.d.ts +2 -0
- package/esm/Heatmap/seriesConfig/getColor.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/index.d.ts +2 -0
- package/{Heatmap/plugin.js → esm/Heatmap/seriesConfig/index.js} +3 -3
- package/esm/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/{Heatmap/formatter.js → esm/Heatmap/seriesConfig/seriesProcessor.js} +2 -2
- package/esm/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/esm/LineChartPro/LineChartPro.d.ts +16 -0
- package/esm/LineChartPro/LineChartPro.js +506 -0
- package/esm/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/esm/LineChartPro/LineChartPro.plugins.js +3 -0
- package/esm/LineChartPro/index.d.ts +1 -0
- package/esm/LineChartPro/index.js +1 -0
- package/esm/ScatterChartPro/ScatterChartPro.d.ts +17 -0
- package/esm/ScatterChartPro/ScatterChartPro.js +400 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
- package/esm/ScatterChartPro/index.d.ts +1 -0
- package/esm/ScatterChartPro/index.js +1 -0
- package/esm/hooks/index.d.ts +2 -0
- package/esm/hooks/index.js +2 -0
- package/esm/hooks/useHeatmapSeries.d.ts +33 -0
- package/esm/hooks/useHeatmapSeries.js +42 -0
- package/esm/hooks/zoom/index.d.ts +1 -0
- package/esm/hooks/zoom/index.js +1 -0
- package/esm/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
- package/esm/hooks/zoom/useIsZoomInteracting.js +14 -0
- package/esm/index.d.ts +32 -0
- package/esm/index.js +43 -0
- package/esm/internals/plugins/allPlugins.d.ts +5 -0
- package/esm/internals/plugins/allPlugins.js +5 -0
- package/esm/internals/plugins/useChartProZoom/index.d.ts +3 -0
- package/esm/internals/plugins/useChartProZoom/index.js +3 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
- package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.js +33 -44
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +201 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +44 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
- package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.utils.js +8 -22
- package/esm/internals/utils/releaseInfo.d.ts +1 -0
- package/esm/internals/utils/releaseInfo.js +13 -0
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.js +2 -0
- package/esm/models/seriesType/heatmap.d.ts +28 -0
- package/esm/models/seriesType/index.d.ts +1 -0
- package/esm/models/seriesType/index.js +1 -0
- package/esm/package.json +1 -0
- package/esm/themeAugmentation/components.d.ts +23 -0
- package/esm/themeAugmentation/index.d.ts +4 -0
- package/esm/themeAugmentation/index.js +0 -0
- package/esm/themeAugmentation/overrides.d.ts +11 -0
- package/esm/themeAugmentation/props.d.ts +20 -0
- package/esm/typeOverloads/index.d.ts +1 -0
- package/esm/typeOverloads/index.js +1 -0
- package/esm/typeOverloads/modules.d.ts +22 -0
- package/esm/typeOverloads/modules.js +1 -0
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +27 -2
- package/hooks/useHeatmapSeries.d.ts +33 -0
- package/hooks/useHeatmapSeries.js +48 -0
- package/hooks/zoom/index.d.ts +1 -1
- package/hooks/zoom/index.js +16 -1
- package/hooks/zoom/useIsZoomInteracting.d.ts +1 -1
- package/hooks/zoom/useIsZoomInteracting.js +10 -5
- package/index.d.ts +8 -8
- package/index.js +347 -37
- package/internals/plugins/allPlugins.d.ts +3 -9
- package/internals/plugins/allPlugins.js +9 -3
- package/internals/plugins/useChartProZoom/index.d.ts +3 -3
- package/internals/plugins/useChartProZoom/index.js +38 -3
- package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.js +40 -37
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +149 -325
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -10
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +35 -41
- package/internals/plugins/useChartProZoom/useChartProZoom.types.js +5 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +13 -13
- package/internals/plugins/useChartProZoom/useChartProZoom.utils.js +22 -8
- package/internals/utils/releaseInfo.d.ts +1 -1
- package/internals/utils/releaseInfo.js +13 -5
- package/models/index.d.ts +1 -1
- package/models/index.js +16 -2
- package/models/seriesType/heatmap.d.ts +17 -18
- package/models/seriesType/heatmap.js +5 -1
- package/models/seriesType/index.d.ts +1 -1
- package/models/seriesType/index.js +16 -1
- package/modern/BarChartPro/BarChartPro.d.ts +17 -0
- package/modern/BarChartPro/BarChartPro.js +5 -5
- package/modern/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/modern/BarChartPro/BarChartPro.plugins.js +3 -0
- package/modern/BarChartPro/index.d.ts +1 -0
- package/modern/ChartContainerPro/ChartContainerPro.d.ts +35 -0
- package/modern/ChartContainerPro/index.d.ts +2 -0
- package/modern/ChartContainerPro/index.js +1 -0
- package/modern/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
- package/modern/ChartContainerPro/useChartContainerProProps.js +11 -11
- package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/modern/ChartDataProviderPro/ChartDataProviderPro.js +11 -195
- package/modern/ChartDataProviderPro/index.d.ts +2 -0
- package/modern/ChartDataProviderPro/index.js +1 -0
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/modern/Heatmap/Heatmap.d.ts +56 -0
- package/modern/Heatmap/Heatmap.js +7 -7
- package/modern/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/modern/Heatmap/Heatmap.plugins.js +2 -0
- package/modern/Heatmap/HeatmapItem.d.ts +49 -0
- package/modern/Heatmap/HeatmapPlot.d.ts +8 -0
- package/modern/Heatmap/HeatmapPlot.js +2 -2
- package/modern/Heatmap/HeatmapTooltip.d.ts +8 -0
- package/modern/Heatmap/HeatmapTooltip.js +6 -4
- package/modern/Heatmap/heatmapClasses.d.ts +11 -0
- package/modern/Heatmap/index.d.ts +4 -0
- package/modern/Heatmap/seriesConfig/extremums.d.ts +2 -0
- package/modern/Heatmap/seriesConfig/getColor.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/index.d.ts +2 -0
- package/modern/Heatmap/{plugin.js → seriesConfig/index.js} +3 -3
- package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/modern/Heatmap/{formatter.js → seriesConfig/seriesProcessor.js} +2 -2
- package/modern/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/modern/LineChartPro/LineChartPro.d.ts +16 -0
- package/modern/LineChartPro/LineChartPro.js +5 -5
- package/modern/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/modern/LineChartPro/LineChartPro.plugins.js +3 -0
- package/modern/LineChartPro/index.d.ts +1 -0
- package/modern/ScatterChartPro/ScatterChartPro.d.ts +17 -0
- package/modern/ScatterChartPro/ScatterChartPro.js +12 -5
- package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/modern/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
- package/modern/ScatterChartPro/index.d.ts +1 -0
- package/modern/hooks/index.d.ts +2 -0
- package/modern/hooks/index.js +1 -1
- package/modern/hooks/useHeatmapSeries.d.ts +33 -0
- package/modern/hooks/useHeatmapSeries.js +42 -0
- package/modern/hooks/zoom/index.d.ts +1 -0
- package/modern/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
- package/modern/index.d.ts +32 -0
- package/modern/index.js +2 -3
- package/modern/internals/plugins/allPlugins.d.ts +5 -0
- package/modern/internals/plugins/useChartProZoom/index.d.ts +3 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +4 -8
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +201 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -7
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +44 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
- package/modern/internals/utils/releaseInfo.d.ts +1 -0
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/models/index.d.ts +2 -0
- package/modern/models/seriesType/heatmap.d.ts +28 -0
- package/modern/models/seriesType/index.d.ts +1 -0
- package/modern/package.json +1 -0
- package/modern/themeAugmentation/components.d.ts +23 -0
- package/modern/themeAugmentation/index.d.ts +4 -0
- package/modern/themeAugmentation/overrides.d.ts +11 -0
- package/modern/themeAugmentation/props.d.ts +20 -0
- package/modern/typeOverloads/index.d.ts +1 -0
- package/modern/typeOverloads/modules.d.ts +22 -0
- package/package.json +40 -10
- package/themeAugmentation/components.d.ts +1 -3
- package/themeAugmentation/index.d.ts +1 -1
- package/themeAugmentation/index.js +1 -0
- package/themeAugmentation/overrides.d.ts +2 -4
- package/themeAugmentation/props.d.ts +5 -7
- package/tsconfig.build.tsbuildinfo +1 -0
- package/typeOverloads/index.d.ts +1 -1
- package/typeOverloads/index.js +6 -1
- package/typeOverloads/modules.d.ts +20 -23
- package/typeOverloads/modules.js +5 -1
- package/BarChartPro/package.json +0 -6
- package/ChartContainerPro/package.json +0 -6
- package/ChartDataProviderPro/package.json +0 -6
- package/Heatmap/formatter.d.ts +0 -3
- package/Heatmap/package.json +0 -6
- package/Heatmap/plugin.d.ts +0 -2
- package/LineChartPro/package.json +0 -6
- package/ScatterChartPro/package.json +0 -6
- package/hooks/package.json +0 -6
- package/hooks/useSeries.d.ts +0 -9
- package/hooks/useSeries.js +0 -16
- package/internals/plugins/useChartProZoom/creatZoomLookup.d.ts +0 -3
- package/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
- package/internals/plugins/useChartProZoom/defaultizeZoom.d.ts +0 -2
- package/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
- package/internals/plugins/useChartProZoom/zoom.types.d.ts +0 -53
- package/models/package.json +0 -6
- package/modern/hooks/useSeries.js +0 -16
- package/modern/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
- package/modern/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
- package/node/BarChartPro/BarChartPro.js +0 -461
- package/node/BarChartPro/index.js +0 -16
- package/node/ChartContainerPro/ChartContainerPro.js +0 -296
- package/node/ChartContainerPro/index.js +0 -16
- package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
- package/node/ChartDataProviderPro/ChartDataProviderPro.js +0 -295
- package/node/ChartDataProviderPro/index.js +0 -16
- package/node/ChartDataProviderPro/useChartDataProviderProProps.js +0 -21
- package/node/Heatmap/Heatmap.js +0 -408
- package/node/Heatmap/HeatmapItem.js +0 -113
- package/node/Heatmap/HeatmapTooltip.js +0 -280
- package/node/Heatmap/heatmapClasses.js +0 -22
- package/node/Heatmap/index.js +0 -47
- package/node/LineChartPro/LineChartPro.js +0 -512
- package/node/LineChartPro/index.js +0 -16
- package/node/ScatterChartPro/ScatterChartPro.js +0 -399
- package/node/ScatterChartPro/index.js +0 -16
- package/node/hooks/index.js +0 -27
- package/node/hooks/useSeries.js +0 -21
- package/node/hooks/zoom/index.js +0 -16
- package/node/hooks/zoom/useIsZoomInteracting.js +0 -19
- package/node/index.js +0 -365
- package/node/internals/plugins/allPlugins.js +0 -11
- package/node/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -19
- package/node/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -33
- package/node/internals/plugins/useChartProZoom/index.js +0 -38
- package/node/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -18
- package/node/internals/plugins/useChartProZoom/useChartProZoom.types.js +0 -5
- package/node/internals/plugins/useChartProZoom/zoom.types.js +0 -5
- package/node/internals/utils/releaseInfo.js +0 -21
- package/node/models/index.js +0 -16
- package/node/models/seriesType/heatmap.js +0 -5
- package/node/models/seriesType/index.js +0 -16
- package/node/themeAugmentation/index.js +0 -1
- package/node/typeOverloads/index.js +0 -6
- package/node/typeOverloads/modules.js +0 -5
- package/themeAugmentation/package.json +0 -6
- package/typeOverloads/package.json +0 -6
- /package/{node/Heatmap → Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/getColor.js +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/tooltip.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/getColor.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/tooltip.js +0 -0
- /package/{internals/plugins/useChartProZoom/zoom.types.js → esm/internals/plugins/useChartProZoom/useChartProZoom.types.js} +0 -0
- /package/{modern/internals/plugins/useChartProZoom/zoom.types.js → esm/models/seriesType/heatmap.js} +0 -0
- /package/modern/Heatmap/{extremums.js → seriesConfig/extremums.js} +0 -0
- /package/modern/Heatmap/{getColor.js → seriesConfig/getColor.js} +0 -0
- /package/modern/Heatmap/{tooltip.js → seriesConfig/tooltip.js} +0 -0
package/Heatmap/HeatmapItem.d.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SeriesId } from '@mui/x-charts/internals';
|
|
3
|
-
import { HeatmapClasses } from
|
|
3
|
+
import { HeatmapClasses } from "./heatmapClasses.js";
|
|
4
4
|
export interface HeatmapItemSlots {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The component that renders the heatmap cell.
|
|
7
|
+
* @default HeatmapCell
|
|
8
|
+
*/
|
|
9
|
+
cell?: React.ElementType;
|
|
10
10
|
}
|
|
11
11
|
export interface HeatmapItemSlotProps {
|
|
12
|
-
|
|
12
|
+
cell?: Partial<React.ComponentPropsWithRef<'rect'>>;
|
|
13
13
|
}
|
|
14
14
|
export interface HeatmapItemProps {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
dataIndex: number;
|
|
16
|
+
seriesId: SeriesId;
|
|
17
|
+
value: number;
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
color: string;
|
|
23
|
+
/**
|
|
24
|
+
* The props used for each component slot.
|
|
25
|
+
* @default {}
|
|
26
|
+
*/
|
|
27
|
+
slotProps?: HeatmapItemSlotProps;
|
|
28
|
+
/**
|
|
29
|
+
* Overridable component slots.
|
|
30
|
+
* @default {}
|
|
31
|
+
*/
|
|
32
|
+
slots?: HeatmapItemSlots;
|
|
33
33
|
}
|
|
34
34
|
export interface HeatmapItemOwnerState {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
seriesId: SeriesId;
|
|
36
|
+
dataIndex: number;
|
|
37
|
+
color: string;
|
|
38
|
+
isFaded: boolean;
|
|
39
|
+
isHighlighted: boolean;
|
|
40
|
+
classes?: Partial<HeatmapClasses>;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* @ignore - internal component.
|
|
44
44
|
*/
|
|
45
45
|
declare function HeatmapItem(props: HeatmapItemProps): React.JSX.Element;
|
|
46
46
|
declare namespace HeatmapItem {
|
|
47
|
-
|
|
47
|
+
var propTypes: any;
|
|
48
48
|
}
|
|
49
|
-
export { HeatmapItem };
|
|
49
|
+
export { HeatmapItem };
|
package/Heatmap/HeatmapItem.js
CHANGED
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.HeatmapItem = HeatmapItem;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
var _styles = require("@mui/material/styles");
|
|
14
|
+
var _useSlotProps = _interopRequireDefault(require("@mui/utils/useSlotProps"));
|
|
15
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
|
+
var _hooks = require("@mui/x-charts/hooks");
|
|
17
|
+
var _internals = require("@mui/x-charts/internals");
|
|
18
|
+
var _heatmapClasses = require("./heatmapClasses");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
3
20
|
const _excluded = ["seriesId", "dataIndex", "color", "value", "slotProps", "slots"];
|
|
4
|
-
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import { styled } from '@mui/material/styles';
|
|
7
|
-
import useSlotProps from '@mui/utils/useSlotProps';
|
|
8
|
-
import composeClasses from '@mui/utils/composeClasses';
|
|
9
|
-
import { useItemHighlighted } from '@mui/x-charts/hooks';
|
|
10
|
-
import { useInteractionItemProps } from '@mui/x-charts/internals';
|
|
11
|
-
import { getHeatmapUtilityClass } from "./heatmapClasses.js";
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
const HeatmapCell = styled('rect', {
|
|
21
|
+
const HeatmapCell = (0, _styles.styled)('rect', {
|
|
14
22
|
name: 'MuiHeatmap',
|
|
15
23
|
slot: 'Cell',
|
|
16
24
|
overridesResolver: (_, styles) => styles.arc
|
|
@@ -31,7 +39,7 @@ const useUtilityClasses = ownerState => {
|
|
|
31
39
|
const slots = {
|
|
32
40
|
cell: ['cell', `series-${seriesId}`, isFaded && 'faded', isHighlighted && 'highlighted']
|
|
33
41
|
};
|
|
34
|
-
return
|
|
42
|
+
return (0, _composeClasses.default)(slots, _heatmapClasses.getHeatmapUtilityClass, classes);
|
|
35
43
|
};
|
|
36
44
|
|
|
37
45
|
/**
|
|
@@ -46,12 +54,12 @@ function HeatmapItem(props) {
|
|
|
46
54
|
slotProps = {},
|
|
47
55
|
slots = {}
|
|
48
56
|
} = props,
|
|
49
|
-
other =
|
|
50
|
-
const getInteractionItemProps = useInteractionItemProps();
|
|
57
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
58
|
+
const getInteractionItemProps = (0, _internals.useInteractionItemProps)();
|
|
51
59
|
const {
|
|
52
60
|
isFaded,
|
|
53
61
|
isHighlighted
|
|
54
|
-
} = useItemHighlighted({
|
|
62
|
+
} = (0, _hooks.useItemHighlighted)({
|
|
55
63
|
seriesId,
|
|
56
64
|
dataIndex
|
|
57
65
|
});
|
|
@@ -65,42 +73,41 @@ function HeatmapItem(props) {
|
|
|
65
73
|
};
|
|
66
74
|
const classes = useUtilityClasses(ownerState);
|
|
67
75
|
const Cell = slots?.cell ?? HeatmapCell;
|
|
68
|
-
const cellProps =
|
|
76
|
+
const cellProps = (0, _useSlotProps.default)({
|
|
69
77
|
elementType: Cell,
|
|
70
|
-
additionalProps:
|
|
78
|
+
additionalProps: (0, _extends2.default)({}, getInteractionItemProps({
|
|
71
79
|
type: 'heatmap',
|
|
72
80
|
seriesId,
|
|
73
81
|
dataIndex
|
|
74
82
|
})),
|
|
75
|
-
externalForwardedProps:
|
|
83
|
+
externalForwardedProps: (0, _extends2.default)({}, other),
|
|
76
84
|
externalSlotProps: slotProps.cell,
|
|
77
85
|
ownerState,
|
|
78
86
|
className: classes.cell
|
|
79
87
|
});
|
|
80
|
-
return /*#__PURE__*/
|
|
88
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Cell, (0, _extends2.default)({}, cellProps));
|
|
81
89
|
}
|
|
82
90
|
process.env.NODE_ENV !== "production" ? HeatmapItem.propTypes = {
|
|
83
91
|
// ----------------------------- Warning --------------------------------
|
|
84
92
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
85
93
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
86
94
|
// ----------------------------------------------------------------------
|
|
87
|
-
color:
|
|
88
|
-
dataIndex:
|
|
89
|
-
height:
|
|
90
|
-
seriesId:
|
|
95
|
+
color: _propTypes.default.string.isRequired,
|
|
96
|
+
dataIndex: _propTypes.default.number.isRequired,
|
|
97
|
+
height: _propTypes.default.number.isRequired,
|
|
98
|
+
seriesId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
91
99
|
/**
|
|
92
100
|
* The props used for each component slot.
|
|
93
101
|
* @default {}
|
|
94
102
|
*/
|
|
95
|
-
slotProps:
|
|
103
|
+
slotProps: _propTypes.default.object,
|
|
96
104
|
/**
|
|
97
105
|
* Overridable component slots.
|
|
98
106
|
* @default {}
|
|
99
107
|
*/
|
|
100
|
-
slots:
|
|
101
|
-
value:
|
|
102
|
-
width:
|
|
103
|
-
x:
|
|
104
|
-
y:
|
|
105
|
-
} : void 0;
|
|
106
|
-
export { HeatmapItem };
|
|
108
|
+
slots: _propTypes.default.object,
|
|
109
|
+
value: _propTypes.default.number.isRequired,
|
|
110
|
+
width: _propTypes.default.number.isRequired,
|
|
111
|
+
x: _propTypes.default.number.isRequired,
|
|
112
|
+
y: _propTypes.default.number.isRequired
|
|
113
|
+
} : void 0;
|
package/Heatmap/HeatmapPlot.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { HeatmapItemProps } from
|
|
3
|
-
export interface HeatmapPlotProps extends Pick<HeatmapItemProps, 'slots' | 'slotProps'> {
|
|
4
|
-
}
|
|
2
|
+
import { HeatmapItemProps } from "./HeatmapItem.js";
|
|
3
|
+
export interface HeatmapPlotProps extends Pick<HeatmapItemProps, 'slots' | 'slotProps'> {}
|
|
5
4
|
declare function HeatmapPlot(props: HeatmapPlotProps): React.JSX.Element | null;
|
|
6
5
|
declare namespace HeatmapPlot {
|
|
7
|
-
|
|
6
|
+
var propTypes: any;
|
|
8
7
|
}
|
|
9
|
-
export { HeatmapPlot };
|
|
8
|
+
export { HeatmapPlot };
|
package/Heatmap/HeatmapPlot.js
CHANGED
|
@@ -1,23 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
'use client';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.HeatmapPlot = HeatmapPlot;
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
+
var _hooks = require("@mui/x-charts/hooks");
|
|
13
|
+
var _useHeatmapSeries = require("../hooks/useHeatmapSeries");
|
|
14
|
+
var _HeatmapItem = require("./HeatmapItem");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
16
|
function HeatmapPlot(props) {
|
|
10
|
-
const xScale = useXScale();
|
|
11
|
-
const yScale = useYScale();
|
|
12
|
-
const colorScale = useZColorScale();
|
|
13
|
-
const series =
|
|
17
|
+
const xScale = (0, _hooks.useXScale)();
|
|
18
|
+
const yScale = (0, _hooks.useYScale)();
|
|
19
|
+
const colorScale = (0, _hooks.useZColorScale)();
|
|
20
|
+
const series = (0, _useHeatmapSeries.useHeatmapSeriesContext)();
|
|
14
21
|
const xDomain = xScale.domain();
|
|
15
22
|
const yDomain = yScale.domain();
|
|
16
23
|
if (!series || series.seriesOrder.length === 0) {
|
|
17
24
|
return null;
|
|
18
25
|
}
|
|
19
26
|
const seriesToDisplay = series.series[series.seriesOrder[0]];
|
|
20
|
-
return /*#__PURE__*/
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
21
28
|
children: seriesToDisplay.data.map(([xIndex, yIndex, value], dataIndex) => {
|
|
22
29
|
const x = xScale(xDomain[xIndex]);
|
|
23
30
|
const y = yScale(yDomain[yIndex]);
|
|
@@ -25,7 +32,7 @@ function HeatmapPlot(props) {
|
|
|
25
32
|
if (x === undefined || y === undefined || !color) {
|
|
26
33
|
return null;
|
|
27
34
|
}
|
|
28
|
-
return /*#__PURE__*/
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_HeatmapItem.HeatmapItem, {
|
|
29
36
|
width: xScale.bandwidth(),
|
|
30
37
|
height: yScale.bandwidth(),
|
|
31
38
|
x: x,
|
|
@@ -49,11 +56,10 @@ process.env.NODE_ENV !== "production" ? HeatmapPlot.propTypes = {
|
|
|
49
56
|
* The props used for each component slot.
|
|
50
57
|
* @default {}
|
|
51
58
|
*/
|
|
52
|
-
slotProps:
|
|
59
|
+
slotProps: _propTypes.default.object,
|
|
53
60
|
/**
|
|
54
61
|
* Overridable component slots.
|
|
55
62
|
* @default {}
|
|
56
63
|
*/
|
|
57
|
-
slots:
|
|
58
|
-
} : void 0;
|
|
59
|
-
export { HeatmapPlot };
|
|
64
|
+
slots: _propTypes.default.object
|
|
65
|
+
} : void 0;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ChartsTooltipContainerProps } from '@mui/x-charts/ChartsTooltip';
|
|
3
|
-
export interface HeatmapTooltipProps extends Omit<ChartsTooltipContainerProps, 'trigger' | 'children'> {
|
|
4
|
-
}
|
|
3
|
+
export interface HeatmapTooltipProps extends Omit<ChartsTooltipContainerProps, 'trigger' | 'children'> {}
|
|
5
4
|
declare function HeatmapTooltip(props: HeatmapTooltipProps): React.JSX.Element;
|
|
6
5
|
declare namespace HeatmapTooltip {
|
|
7
|
-
|
|
6
|
+
var propTypes: any;
|
|
8
7
|
}
|
|
9
|
-
export { HeatmapTooltip };
|
|
8
|
+
export { HeatmapTooltip };
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
'use client';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.HeatmapTooltip = HeatmapTooltip;
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
|
+
var _HTMLElementType = _interopRequireDefault(require("@mui/utils/HTMLElementType"));
|
|
15
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
|
+
var _ChartsTooltip = require("@mui/x-charts/ChartsTooltip");
|
|
17
|
+
var _hooks = require("@mui/x-charts/hooks");
|
|
18
|
+
var _internals = require("@mui/x-charts/internals");
|
|
19
|
+
var _useHeatmapSeries = require("../hooks/useHeatmapSeries");
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
21
|
const useUtilityClasses = ownerState => {
|
|
15
22
|
const {
|
|
16
23
|
classes
|
|
@@ -26,16 +33,16 @@ const useUtilityClasses = ownerState => {
|
|
|
26
33
|
labelCell: ['labelCell'],
|
|
27
34
|
valueCell: ['valueCell']
|
|
28
35
|
};
|
|
29
|
-
return
|
|
36
|
+
return (0, _composeClasses.default)(slots, _ChartsTooltip.getChartsTooltipUtilityClass, classes);
|
|
30
37
|
};
|
|
31
38
|
function DefaultHeatmapTooltipContent(props) {
|
|
32
39
|
const {
|
|
33
40
|
classes
|
|
34
41
|
} = props;
|
|
35
|
-
const xAxis = useXAxis();
|
|
36
|
-
const yAxis = useYAxis();
|
|
37
|
-
const heatmapSeries =
|
|
38
|
-
const tooltipData = useItemTooltip();
|
|
42
|
+
const xAxis = (0, _hooks.useXAxis)();
|
|
43
|
+
const yAxis = (0, _hooks.useYAxis)();
|
|
44
|
+
const heatmapSeries = (0, _useHeatmapSeries.useHeatmapSeriesContext)();
|
|
45
|
+
const tooltipData = (0, _ChartsTooltip.useItemTooltip)();
|
|
39
46
|
if (!tooltipData || !heatmapSeries || heatmapSeries.seriesOrder.length === 0) {
|
|
40
47
|
return null;
|
|
41
48
|
}
|
|
@@ -52,45 +59,47 @@ function DefaultHeatmapTooltipContent(props) {
|
|
|
52
59
|
} = tooltipData;
|
|
53
60
|
const [xIndex, yIndex] = value;
|
|
54
61
|
const formattedX = xAxis.valueFormatter?.(xAxis.data[xIndex], {
|
|
55
|
-
location: 'tooltip'
|
|
62
|
+
location: 'tooltip',
|
|
63
|
+
scale: xAxis.scale
|
|
56
64
|
}) ?? xAxis.data[xIndex].toLocaleString();
|
|
57
65
|
const formattedY = yAxis.valueFormatter?.(yAxis.data[yIndex], {
|
|
58
|
-
location: 'tooltip'
|
|
66
|
+
location: 'tooltip',
|
|
67
|
+
scale: yAxis.scale
|
|
59
68
|
}) ?? yAxis.data[yIndex].toLocaleString();
|
|
60
69
|
const formattedValue = series[seriesId].valueFormatter(value, {
|
|
61
70
|
dataIndex: identifier.dataIndex
|
|
62
71
|
});
|
|
63
|
-
const seriesLabel = getLabel(series[seriesId].label, 'tooltip');
|
|
64
|
-
return /*#__PURE__*/
|
|
72
|
+
const seriesLabel = (0, _internals.getLabel)(series[seriesId].label, 'tooltip');
|
|
73
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipPaper, {
|
|
65
74
|
className: classes?.paper,
|
|
66
|
-
children: /*#__PURE__*/
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsTooltip.ChartsTooltipTable, {
|
|
67
76
|
className: classes?.table,
|
|
68
|
-
children: [/*#__PURE__*/
|
|
69
|
-
children: /*#__PURE__*/
|
|
77
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("thead", {
|
|
78
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsTooltip.ChartsTooltipRow, {
|
|
70
79
|
className: classes?.row,
|
|
71
|
-
children: [/*#__PURE__*/
|
|
80
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {
|
|
72
81
|
className: classes?.cell,
|
|
73
82
|
children: formattedX
|
|
74
|
-
}), formattedX && formattedY && /*#__PURE__*/
|
|
83
|
+
}), formattedX && formattedY && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {
|
|
75
84
|
className: classes?.cell,
|
|
76
85
|
children: formattedY
|
|
77
86
|
})]
|
|
78
87
|
})
|
|
79
|
-
}), /*#__PURE__*/
|
|
80
|
-
children: /*#__PURE__*/
|
|
88
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("tbody", {
|
|
89
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsTooltip.ChartsTooltipRow, {
|
|
81
90
|
className: classes?.row,
|
|
82
|
-
children: [/*#__PURE__*/
|
|
83
|
-
className:
|
|
84
|
-
children: /*#__PURE__*/
|
|
91
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {
|
|
92
|
+
className: (0, _clsx.default)(classes?.markCell, classes?.cell),
|
|
93
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.ChartsLabelMark, {
|
|
85
94
|
type: markType,
|
|
86
95
|
color: color,
|
|
87
96
|
className: classes?.mark
|
|
88
97
|
})
|
|
89
|
-
}), /*#__PURE__*/
|
|
90
|
-
className:
|
|
98
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {
|
|
99
|
+
className: (0, _clsx.default)(classes?.labelCell, classes?.cell),
|
|
91
100
|
children: seriesLabel
|
|
92
|
-
}), /*#__PURE__*/
|
|
93
|
-
className:
|
|
101
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipCell, {
|
|
102
|
+
className: (0, _clsx.default)(classes?.valueCell, classes?.cell),
|
|
94
103
|
children: formattedValue
|
|
95
104
|
})]
|
|
96
105
|
})
|
|
@@ -106,16 +115,16 @@ process.env.NODE_ENV !== "production" ? DefaultHeatmapTooltipContent.propTypes =
|
|
|
106
115
|
/**
|
|
107
116
|
* Override or extend the styles applied to the component.
|
|
108
117
|
*/
|
|
109
|
-
classes:
|
|
118
|
+
classes: _propTypes.default.object
|
|
110
119
|
} : void 0;
|
|
111
120
|
function HeatmapTooltip(props) {
|
|
112
121
|
const classes = useUtilityClasses({
|
|
113
122
|
classes: props.classes
|
|
114
123
|
});
|
|
115
|
-
return /*#__PURE__*/
|
|
124
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipContainer, (0, _extends2.default)({}, props, {
|
|
116
125
|
classes: classes,
|
|
117
126
|
trigger: "item",
|
|
118
|
-
children: /*#__PURE__*/
|
|
127
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(DefaultHeatmapTooltipContent, {
|
|
119
128
|
classes: classes
|
|
120
129
|
})
|
|
121
130
|
}));
|
|
@@ -131,30 +140,30 @@ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
|
131
140
|
* It's used to set the position of the popper.
|
|
132
141
|
* The return value will passed as the reference object of the Popper instance.
|
|
133
142
|
*/
|
|
134
|
-
anchorEl:
|
|
143
|
+
anchorEl: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_HTMLElementType.default, _propTypes.default.object, _propTypes.default.func]),
|
|
135
144
|
/**
|
|
136
145
|
* Override or extend the styles applied to the component.
|
|
137
146
|
*/
|
|
138
|
-
classes:
|
|
147
|
+
classes: _propTypes.default.object,
|
|
139
148
|
/**
|
|
140
149
|
* The component used for the root node.
|
|
141
150
|
* Either a string to use a HTML element or a component.
|
|
142
151
|
*/
|
|
143
|
-
component:
|
|
152
|
+
component: _propTypes.default.elementType,
|
|
144
153
|
/**
|
|
145
154
|
* The components used for each slot inside the Popper.
|
|
146
155
|
* Either a string to use a HTML element or a component.
|
|
147
156
|
* @default {}
|
|
148
157
|
*/
|
|
149
|
-
components:
|
|
150
|
-
Root:
|
|
158
|
+
components: _propTypes.default.shape({
|
|
159
|
+
Root: _propTypes.default.elementType
|
|
151
160
|
}),
|
|
152
161
|
/**
|
|
153
162
|
* The props used for each slot inside the Popper.
|
|
154
163
|
* @default {}
|
|
155
164
|
*/
|
|
156
|
-
componentsProps:
|
|
157
|
-
root:
|
|
165
|
+
componentsProps: _propTypes.default.shape({
|
|
166
|
+
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
158
167
|
}),
|
|
159
168
|
/**
|
|
160
169
|
* An HTML element or function that returns one.
|
|
@@ -166,7 +175,7 @@ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
|
166
175
|
* By default, it uses the body of the top-level document object,
|
|
167
176
|
* so it's simply `document.body` most of the time.
|
|
168
177
|
*/
|
|
169
|
-
container:
|
|
178
|
+
container: _propTypes.default.oneOfType([(props, propName) => {
|
|
170
179
|
if (props[propName] == null) {
|
|
171
180
|
return new Error(`Prop '${propName}' is required but wasn't specified`);
|
|
172
181
|
}
|
|
@@ -174,19 +183,19 @@ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
|
174
183
|
return new Error(`Expected prop '${propName}' to be of type Element`);
|
|
175
184
|
}
|
|
176
185
|
return null;
|
|
177
|
-
},
|
|
186
|
+
}, _propTypes.default.func]),
|
|
178
187
|
/**
|
|
179
188
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
180
189
|
* @default false
|
|
181
190
|
*/
|
|
182
|
-
disablePortal:
|
|
191
|
+
disablePortal: _propTypes.default.bool,
|
|
183
192
|
/**
|
|
184
193
|
* Always keep the children in the DOM.
|
|
185
194
|
* This prop can be useful in SEO situation or
|
|
186
195
|
* when you want to maximize the responsiveness of the Popper.
|
|
187
196
|
* @default false
|
|
188
197
|
*/
|
|
189
|
-
keepMounted:
|
|
198
|
+
keepMounted: _propTypes.default.bool,
|
|
190
199
|
/**
|
|
191
200
|
* Popper.js is based on a "plugin-like" architecture,
|
|
192
201
|
* most of its features are fully encapsulated "modifiers".
|
|
@@ -196,79 +205,78 @@ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
|
196
205
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
197
206
|
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
198
207
|
*/
|
|
199
|
-
modifiers:
|
|
200
|
-
data:
|
|
201
|
-
effect:
|
|
202
|
-
enabled:
|
|
203
|
-
fn:
|
|
204
|
-
name:
|
|
205
|
-
options:
|
|
206
|
-
phase:
|
|
207
|
-
requires:
|
|
208
|
-
requiresIfExists:
|
|
208
|
+
modifiers: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
209
|
+
data: _propTypes.default.object,
|
|
210
|
+
effect: _propTypes.default.func,
|
|
211
|
+
enabled: _propTypes.default.bool,
|
|
212
|
+
fn: _propTypes.default.func,
|
|
213
|
+
name: _propTypes.default.any,
|
|
214
|
+
options: _propTypes.default.object,
|
|
215
|
+
phase: _propTypes.default.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),
|
|
216
|
+
requires: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
217
|
+
requiresIfExists: _propTypes.default.arrayOf(_propTypes.default.string)
|
|
209
218
|
})),
|
|
210
219
|
/**
|
|
211
220
|
* If `true`, the component is shown.
|
|
212
221
|
*/
|
|
213
|
-
open:
|
|
222
|
+
open: _propTypes.default.bool,
|
|
214
223
|
/**
|
|
215
224
|
* Popper placement.
|
|
216
225
|
* @default 'bottom'
|
|
217
226
|
*/
|
|
218
|
-
placement:
|
|
227
|
+
placement: _propTypes.default.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
219
228
|
/**
|
|
220
229
|
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
221
230
|
* @default {}
|
|
222
231
|
*/
|
|
223
|
-
popperOptions:
|
|
224
|
-
modifiers:
|
|
225
|
-
onFirstUpdate:
|
|
226
|
-
placement:
|
|
227
|
-
strategy:
|
|
232
|
+
popperOptions: _propTypes.default.shape({
|
|
233
|
+
modifiers: _propTypes.default.array,
|
|
234
|
+
onFirstUpdate: _propTypes.default.func,
|
|
235
|
+
placement: _propTypes.default.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
236
|
+
strategy: _propTypes.default.oneOf(['absolute', 'fixed'])
|
|
228
237
|
}),
|
|
229
238
|
/**
|
|
230
239
|
* A ref that points to the used popper instance.
|
|
231
240
|
*/
|
|
232
|
-
popperRef:
|
|
233
|
-
current:
|
|
234
|
-
destroy:
|
|
235
|
-
forceUpdate:
|
|
236
|
-
setOptions:
|
|
237
|
-
state:
|
|
238
|
-
attributes:
|
|
239
|
-
elements:
|
|
240
|
-
modifiersData:
|
|
241
|
-
options:
|
|
242
|
-
orderedModifiers:
|
|
243
|
-
placement:
|
|
244
|
-
rects:
|
|
245
|
-
reset:
|
|
246
|
-
scrollParents:
|
|
247
|
-
strategy:
|
|
248
|
-
styles:
|
|
241
|
+
popperRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
242
|
+
current: _propTypes.default.shape({
|
|
243
|
+
destroy: _propTypes.default.func.isRequired,
|
|
244
|
+
forceUpdate: _propTypes.default.func.isRequired,
|
|
245
|
+
setOptions: _propTypes.default.func.isRequired,
|
|
246
|
+
state: _propTypes.default.shape({
|
|
247
|
+
attributes: _propTypes.default.object.isRequired,
|
|
248
|
+
elements: _propTypes.default.object.isRequired,
|
|
249
|
+
modifiersData: _propTypes.default.object.isRequired,
|
|
250
|
+
options: _propTypes.default.object.isRequired,
|
|
251
|
+
orderedModifiers: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
252
|
+
placement: _propTypes.default.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']).isRequired,
|
|
253
|
+
rects: _propTypes.default.object.isRequired,
|
|
254
|
+
reset: _propTypes.default.bool.isRequired,
|
|
255
|
+
scrollParents: _propTypes.default.object.isRequired,
|
|
256
|
+
strategy: _propTypes.default.oneOf(['absolute', 'fixed']).isRequired,
|
|
257
|
+
styles: _propTypes.default.object.isRequired
|
|
249
258
|
}).isRequired,
|
|
250
|
-
update:
|
|
259
|
+
update: _propTypes.default.func.isRequired
|
|
251
260
|
})
|
|
252
261
|
})]),
|
|
253
262
|
/**
|
|
254
263
|
* The props used for each slot inside the Popper.
|
|
255
264
|
* @default {}
|
|
256
265
|
*/
|
|
257
|
-
slotProps:
|
|
266
|
+
slotProps: _propTypes.default.object,
|
|
258
267
|
/**
|
|
259
268
|
* The components used for each slot inside the Popper.
|
|
260
269
|
* Either a string to use a HTML element or a component.
|
|
261
270
|
* @default {}
|
|
262
271
|
*/
|
|
263
|
-
slots:
|
|
272
|
+
slots: _propTypes.default.object,
|
|
264
273
|
/**
|
|
265
274
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
266
275
|
*/
|
|
267
|
-
sx:
|
|
276
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
268
277
|
/**
|
|
269
278
|
* Help supporting a react-transition-group/Transition component.
|
|
270
279
|
* @default false
|
|
271
280
|
*/
|
|
272
|
-
transition:
|
|
273
|
-
} : void 0;
|
|
274
|
-
export { HeatmapTooltip };
|
|
281
|
+
transition: _propTypes.default.bool
|
|
282
|
+
} : void 0;
|