@lobehub/charts 5.6.0 → 5.7.1
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/es/AccuracyBarChart/index.d.mts +62 -0
- package/es/AccuracyBarChart/index.mjs +326 -0
- package/es/AccuracyBarChart/index.mjs.map +1 -0
- package/es/AccuracyBarChart/styles.d.mts +14 -0
- package/es/AccuracyBarChart/styles.mjs +71 -0
- package/es/AccuracyBarChart/styles.mjs.map +1 -0
- package/es/AreaChart/index.d.mts +13 -0
- package/es/AreaChart/index.mjs +308 -0
- package/es/AreaChart/index.mjs.map +1 -0
- package/es/AreaChart/styles.d.mts +9 -0
- package/es/AreaChart/styles.mjs +28 -0
- package/es/AreaChart/styles.mjs.map +1 -0
- package/es/BarChart/index.d.mts +11 -0
- package/es/BarChart/index.mjs +290 -0
- package/es/BarChart/index.mjs.map +1 -0
- package/es/BarChart/{renderShape.d.ts → renderShape.d.mts} +3 -1
- package/es/BarChart/renderShape.mjs +28 -0
- package/es/BarChart/renderShape.mjs.map +1 -0
- package/es/BarChart/styles.d.mts +9 -0
- package/es/BarChart/styles.mjs +28 -0
- package/es/BarChart/styles.mjs.map +1 -0
- package/es/BarList/index.d.mts +32 -0
- package/es/BarList/index.mjs +128 -0
- package/es/BarList/index.mjs.map +1 -0
- package/es/BarList/styles.d.mts +13 -0
- package/es/BarList/styles.mjs +63 -0
- package/es/BarList/styles.mjs.map +1 -0
- package/es/BenchmarkColumnChart/index.d.mts +144 -0
- package/es/BenchmarkColumnChart/index.mjs +514 -0
- package/es/BenchmarkColumnChart/index.mjs.map +1 -0
- package/es/BenchmarkColumnChart/styles.d.mts +19 -0
- package/es/BenchmarkColumnChart/styles.mjs +129 -0
- package/es/BenchmarkColumnChart/styles.mjs.map +1 -0
- package/es/BenchmarkRankingChart/index.d.mts +91 -0
- package/es/BenchmarkRankingChart/index.mjs +347 -0
- package/es/BenchmarkRankingChart/index.mjs.map +1 -0
- package/es/BenchmarkRankingChart/styles.d.mts +36 -0
- package/es/BenchmarkRankingChart/styles.mjs +265 -0
- package/es/BenchmarkRankingChart/styles.mjs.map +1 -0
- package/es/BenchmarkScatterChart/index.d.mts +148 -0
- package/es/BenchmarkScatterChart/index.mjs +668 -0
- package/es/BenchmarkScatterChart/index.mjs.map +1 -0
- package/es/BenchmarkScatterChart/styles.d.mts +28 -0
- package/es/BenchmarkScatterChart/styles.mjs +193 -0
- package/es/BenchmarkScatterChart/styles.mjs.map +1 -0
- package/es/BenchmarkScatterChart/{utils.d.ts → utils.d.mts} +32 -29
- package/es/BenchmarkScatterChart/utils.mjs +214 -0
- package/es/BenchmarkScatterChart/utils.mjs.map +1 -0
- package/es/ComposedChart/index.d.mts +6 -0
- package/es/ComposedChart/index.mjs +254 -0
- package/es/ComposedChart/index.mjs.map +1 -0
- package/es/ComposedChart/styles.d.mts +9 -0
- package/es/ComposedChart/styles.mjs +28 -0
- package/es/ComposedChart/styles.mjs.map +1 -0
- package/es/ComposedChart/types.d.mts +71 -0
- package/es/ComposedChart/types.mjs +0 -0
- package/es/DataBars/CategoryBar.d.mts +17 -0
- package/es/DataBars/CategoryBar.mjs +146 -0
- package/es/DataBars/CategoryBar.mjs.map +1 -0
- package/es/DataBars/DeltaBar.d.mts +16 -0
- package/es/DataBars/DeltaBar.mjs +102 -0
- package/es/DataBars/DeltaBar.mjs.map +1 -0
- package/es/DataBars/MarkerBar.d.mts +19 -0
- package/es/DataBars/MarkerBar.mjs +74 -0
- package/es/DataBars/MarkerBar.mjs.map +1 -0
- package/es/DataBars/ProgressBar.d.mts +15 -0
- package/es/DataBars/ProgressBar.mjs +53 -0
- package/es/DataBars/ProgressBar.mjs.map +1 -0
- package/es/DataBars/index.d.mts +5 -0
- package/es/DataBars/index.mjs +5 -0
- package/es/DataBars/styles.d.mts +10 -0
- package/es/DataBars/styles.mjs +31 -0
- package/es/DataBars/styles.mjs.map +1 -0
- package/es/DonutChart/DonutChartTooltip.d.mts +14 -0
- package/es/DonutChart/DonutChartTooltip.mjs +25 -0
- package/es/DonutChart/DonutChartTooltip.mjs.map +1 -0
- package/es/DonutChart/index.d.mts +33 -0
- package/es/DonutChart/index.mjs +160 -0
- package/es/DonutChart/index.mjs.map +1 -0
- package/es/DonutChart/inputParser.d.mts +5 -0
- package/es/DonutChart/inputParser.mjs +8 -0
- package/es/DonutChart/inputParser.mjs.map +1 -0
- package/es/DonutChart/renderInactiveShape.d.mts +4 -0
- package/es/DonutChart/renderInactiveShape.mjs +22 -0
- package/es/DonutChart/renderInactiveShape.mjs.map +1 -0
- package/es/DonutChart/styles.d.mts +9 -0
- package/es/DonutChart/styles.mjs +28 -0
- package/es/DonutChart/styles.mjs.map +1 -0
- package/es/FunnelChart/ArrowRightIcon.d.mts +8 -0
- package/es/FunnelChart/ArrowRightIcon.mjs +14 -0
- package/es/FunnelChart/ArrowRightIcon.mjs.map +1 -0
- package/es/FunnelChart/index.d.mts +21 -0
- package/es/FunnelChart/index.mjs +421 -0
- package/es/FunnelChart/index.mjs.map +1 -0
- package/es/FunnelChart/styles.d.mts +9 -0
- package/es/FunnelChart/styles.mjs +28 -0
- package/es/FunnelChart/styles.mjs.map +1 -0
- package/es/FunnelChart/types.d.mts +31 -0
- package/es/FunnelChart/types.mjs +0 -0
- package/es/Heatmaps/Calendar.d.mts +21 -0
- package/es/Heatmaps/Calendar.mjs +108 -0
- package/es/Heatmaps/Calendar.mjs.map +1 -0
- package/es/Heatmaps/ChartLabels.d.mts +17 -0
- package/es/Heatmaps/ChartLabels.mjs +84 -0
- package/es/Heatmaps/ChartLabels.mjs.map +1 -0
- package/es/Heatmaps/Footer.d.mts +24 -0
- package/es/Heatmaps/Footer.mjs +81 -0
- package/es/Heatmaps/Footer.mjs.map +1 -0
- package/es/Heatmaps/index.d.mts +31 -0
- package/es/Heatmaps/index.mjs +188 -0
- package/es/Heatmaps/index.mjs.map +1 -0
- package/es/Heatmaps/styles.d.mts +10 -0
- package/es/Heatmaps/styles.mjs +47 -0
- package/es/Heatmaps/styles.mjs.map +1 -0
- package/es/Legend/LegendItem.d.mts +12 -0
- package/es/Legend/LegendItem.mjs +65 -0
- package/es/Legend/LegendItem.mjs.map +1 -0
- package/es/Legend/ScrollButton.d.mts +11 -0
- package/es/Legend/ScrollButton.mjs +50 -0
- package/es/Legend/ScrollButton.mjs.map +1 -0
- package/es/Legend/index.d.mts +16 -0
- package/es/Legend/index.mjs +152 -0
- package/es/Legend/index.mjs.map +1 -0
- package/es/LineChart/index.d.mts +11 -0
- package/es/LineChart/index.mjs +271 -0
- package/es/LineChart/index.mjs.map +1 -0
- package/es/LineChart/styles.d.mts +9 -0
- package/es/LineChart/styles.mjs +28 -0
- package/es/LineChart/styles.mjs.map +1 -0
- package/es/RadarChart/index.d.mts +27 -0
- package/es/RadarChart/index.mjs +157 -0
- package/es/RadarChart/index.mjs.map +1 -0
- package/es/RadarChart/styles.d.mts +8 -0
- package/es/RadarChart/styles.mjs +23 -0
- package/es/RadarChart/styles.mjs.map +1 -0
- package/es/ScatterChart/ScatterChartTooltip.d.mts +19 -0
- package/es/ScatterChart/ScatterChartTooltip.mjs +52 -0
- package/es/ScatterChart/ScatterChartTooltip.mjs.map +1 -0
- package/es/ScatterChart/ScatterChartTooltipRow.d.mts +10 -0
- package/es/ScatterChart/ScatterChartTooltipRow.mjs +36 -0
- package/es/ScatterChart/ScatterChartTooltipRow.mjs.map +1 -0
- package/es/ScatterChart/index.d.mts +58 -0
- package/es/ScatterChart/index.mjs +241 -0
- package/es/ScatterChart/index.mjs.map +1 -0
- package/es/ScatterChart/{renderShape.d.ts → renderShape.d.mts} +4 -1
- package/es/ScatterChart/renderShape.mjs +18 -0
- package/es/ScatterChart/renderShape.mjs.map +1 -0
- package/es/ScatterChart/styles.d.mts +9 -0
- package/es/ScatterChart/styles.mjs +28 -0
- package/es/ScatterChart/styles.mjs.map +1 -0
- package/es/SparkChart/SparkAreaChart.d.mts +14 -0
- package/es/SparkChart/SparkAreaChart.mjs +109 -0
- package/es/SparkChart/SparkAreaChart.mjs.map +1 -0
- package/es/SparkChart/SparkBarChart.d.mts +11 -0
- package/es/SparkChart/SparkBarChart.mjs +69 -0
- package/es/SparkChart/SparkBarChart.mjs.map +1 -0
- package/es/SparkChart/SparkLineChart.d.mts +12 -0
- package/es/SparkChart/SparkLineChart.mjs +73 -0
- package/es/SparkChart/SparkLineChart.mjs.map +1 -0
- package/es/SparkChart/index.d.mts +4 -0
- package/es/SparkChart/index.mjs +4 -0
- package/es/Tracker/TrackerBlock.d.mts +11 -0
- package/es/Tracker/TrackerBlock.mjs +52 -0
- package/es/Tracker/TrackerBlock.mjs.map +1 -0
- package/es/Tracker/index.d.mts +21 -0
- package/es/Tracker/index.mjs +69 -0
- package/es/Tracker/index.mjs.map +1 -0
- package/es/Tracker/styles.d.mts +8 -0
- package/es/Tracker/styles.mjs +24 -0
- package/es/Tracker/styles.mjs.map +1 -0
- package/es/common/BaseAnimationTimingProps.d.mts +10 -0
- package/es/common/BaseAnimationTimingProps.mjs +0 -0
- package/es/common/BaseChartProps.d.mts +61 -0
- package/es/common/BaseChartProps.mjs +0 -0
- package/es/common/BaseSparkChartProps.d.mts +17 -0
- package/es/common/BaseSparkChartProps.mjs +0 -0
- package/es/common/ChartLegend.d.mts +8 -0
- package/es/common/ChartLegend.mjs +32 -0
- package/es/common/ChartLegend.mjs.map +1 -0
- package/es/common/ChartTooltip/ChartTooltipFrame.d.mts +8 -0
- package/es/common/ChartTooltip/ChartTooltipFrame.mjs +27 -0
- package/es/common/ChartTooltip/ChartTooltipFrame.mjs.map +1 -0
- package/es/common/ChartTooltip/ChartTooltipRow.d.mts +10 -0
- package/es/common/ChartTooltip/ChartTooltipRow.mjs +51 -0
- package/es/common/ChartTooltip/ChartTooltipRow.mjs.map +1 -0
- package/es/common/ChartTooltip/index.d.mts +18 -0
- package/es/common/ChartTooltip/index.mjs +50 -0
- package/es/common/ChartTooltip/index.mjs.map +1 -0
- package/es/common/CustomTooltipProps.d.mts +15 -0
- package/es/common/CustomTooltipProps.mjs +0 -0
- package/es/common/CustomYAxisTick.d.mts +18 -0
- package/es/common/CustomYAxisTick.mjs +24 -0
- package/es/common/CustomYAxisTick.mjs.map +1 -0
- package/es/common/NoData.d.mts +13 -0
- package/es/common/NoData.mjs +25 -0
- package/es/common/NoData.mjs.map +1 -0
- package/es/common/benchmark/index.d.mts +3 -0
- package/es/common/benchmark/{index.js → index.mjs} +1 -1
- package/es/common/benchmark/types.d.mts +125 -0
- package/es/common/benchmark/types.mjs +0 -0
- package/es/common/benchmark/{utils.d.ts → utils.d.mts} +38 -36
- package/es/common/benchmark/utils.mjs +115 -0
- package/es/common/benchmark/utils.mjs.map +1 -0
- package/es/common/{utils.d.ts → utils.d.mts} +3 -0
- package/es/common/utils.mjs +36 -0
- package/es/common/utils.mjs.map +1 -0
- package/es/hooks/useOnWindowResize.d.mts +6 -0
- package/es/hooks/useOnWindowResize.mjs +18 -0
- package/es/hooks/useOnWindowResize.mjs.map +1 -0
- package/es/hooks/usePrefersReducedMotion.d.mts +4 -0
- package/es/hooks/usePrefersReducedMotion.mjs +24 -0
- package/es/hooks/usePrefersReducedMotion.mjs.map +1 -0
- package/es/hooks/useThemeColorRange.d.mts +4 -0
- package/es/hooks/useThemeColorRange.mjs +28 -0
- package/es/hooks/useThemeColorRange.mjs.map +1 -0
- package/es/index.d.mts +34 -0
- package/es/index.mjs +28 -0
- package/es/types/{charts.d.ts → charts.d.mts} +26 -26
- package/es/types/charts.mjs +12 -0
- package/es/types/charts.mjs.map +1 -0
- package/es/utils/{calendar.d.ts → calendar.d.mts} +21 -18
- package/es/utils/calendar.mjs +154 -0
- package/es/utils/calendar.mjs.map +1 -0
- package/es/utils/getMaxLabelLength.d.mts +13 -0
- package/es/utils/getMaxLabelLength.mjs +48 -0
- package/es/utils/getMaxLabelLength.mjs.map +1 -0
- package/es/utils/{index.d.ts → index.d.mts} +4 -1
- package/es/utils/index.mjs +19 -0
- package/es/utils/index.mjs.map +1 -0
- package/es/utils/{theme.d.ts → theme.d.mts} +3 -0
- package/es/utils/theme.mjs +33 -0
- package/es/utils/theme.mjs.map +1 -0
- package/package.json +23 -5
- package/es/AccuracyBarChart/index.d.ts +0 -60
- package/es/AccuracyBarChart/index.js +0 -454
- package/es/AccuracyBarChart/index.mdx +0 -52
- package/es/AccuracyBarChart/styles.d.ts +0 -11
- package/es/AccuracyBarChart/styles.js +0 -18
- package/es/AreaChart/index.d.ts +0 -11
- package/es/AreaChart/index.js +0 -430
- package/es/AreaChart/index.mdx +0 -49
- package/es/AreaChart/styles.d.ts +0 -6
- package/es/AreaChart/styles.js +0 -13
- package/es/BarChart/index.d.ts +0 -9
- package/es/BarChart/index.js +0 -392
- package/es/BarChart/index.mdx +0 -73
- package/es/BarChart/renderShape.js +0 -34
- package/es/BarChart/styles.d.ts +0 -6
- package/es/BarChart/styles.js +0 -13
- package/es/BarList/index.d.ts +0 -29
- package/es/BarList/index.js +0 -174
- package/es/BarList/index.mdx +0 -34
- package/es/BarList/styles.d.ts +0 -10
- package/es/BarList/styles.js +0 -18
- package/es/BenchmarkColumnChart/index.d.ts +0 -140
- package/es/BenchmarkColumnChart/index.js +0 -686
- package/es/BenchmarkColumnChart/index.mdx +0 -66
- package/es/BenchmarkColumnChart/styles.d.ts +0 -16
- package/es/BenchmarkColumnChart/styles.js +0 -23
- package/es/BenchmarkRankingChart/index.d.ts +0 -87
- package/es/BenchmarkRankingChart/index.js +0 -448
- package/es/BenchmarkRankingChart/index.mdx +0 -59
- package/es/BenchmarkRankingChart/styles.d.ts +0 -33
- package/es/BenchmarkRankingChart/styles.js +0 -41
- package/es/BenchmarkScatterChart/index.d.ts +0 -145
- package/es/BenchmarkScatterChart/index.js +0 -850
- package/es/BenchmarkScatterChart/index.mdx +0 -61
- package/es/BenchmarkScatterChart/styles.d.ts +0 -25
- package/es/BenchmarkScatterChart/styles.js +0 -33
- package/es/BenchmarkScatterChart/utils.js +0 -353
- package/es/ComposedChart/index.d.ts +0 -5
- package/es/ComposedChart/index.js +0 -335
- package/es/ComposedChart/index.mdx +0 -43
- package/es/ComposedChart/styles.d.ts +0 -6
- package/es/ComposedChart/styles.js +0 -13
- package/es/ComposedChart/types.d.ts +0 -68
- package/es/ComposedChart/types.js +0 -1
- package/es/DataBars/CategoryBar.d.ts +0 -15
- package/es/DataBars/CategoryBar.js +0 -200
- package/es/DataBars/DeltaBar.d.ts +0 -13
- package/es/DataBars/DeltaBar.js +0 -116
- package/es/DataBars/MarkerBar.d.ts +0 -16
- package/es/DataBars/MarkerBar.js +0 -93
- package/es/DataBars/ProgressBar.d.ts +0 -12
- package/es/DataBars/ProgressBar.js +0 -70
- package/es/DataBars/index.d.ts +0 -4
- package/es/DataBars/index.js +0 -4
- package/es/DataBars/index.mdx +0 -36
- package/es/DataBars/styles.d.ts +0 -7
- package/es/DataBars/styles.js +0 -14
- package/es/DonutChart/DonutChartTooltip.d.ts +0 -11
- package/es/DonutChart/DonutChartTooltip.js +0 -26
- package/es/DonutChart/index.d.ts +0 -31
- package/es/DonutChart/index.js +0 -232
- package/es/DonutChart/index.mdx +0 -48
- package/es/DonutChart/inputParser.d.ts +0 -2
- package/es/DonutChart/inputParser.js +0 -9
- package/es/DonutChart/renderInactiveShape.d.ts +0 -2
- package/es/DonutChart/renderInactiveShape.js +0 -27
- package/es/DonutChart/styles.d.ts +0 -6
- package/es/DonutChart/styles.js +0 -13
- package/es/FunnelChart/ArrowRightIcon.d.ts +0 -5
- package/es/FunnelChart/ArrowRightIcon.js +0 -22
- package/es/FunnelChart/index.d.ts +0 -19
- package/es/FunnelChart/index.js +0 -499
- package/es/FunnelChart/index.mdx +0 -21
- package/es/FunnelChart/styles.d.ts +0 -6
- package/es/FunnelChart/styles.js +0 -13
- package/es/FunnelChart/types.d.ts +0 -28
- package/es/FunnelChart/types.js +0 -1
- package/es/Heatmaps/Calendar.d.ts +0 -18
- package/es/Heatmaps/Calendar.js +0 -155
- package/es/Heatmaps/ChartLabels.d.ts +0 -15
- package/es/Heatmaps/ChartLabels.js +0 -106
- package/es/Heatmaps/Footer.d.ts +0 -22
- package/es/Heatmaps/Footer.js +0 -105
- package/es/Heatmaps/index.d.ts +0 -28
- package/es/Heatmaps/index.js +0 -226
- package/es/Heatmaps/index.mdx +0 -70
- package/es/Heatmaps/styles.d.ts +0 -7
- package/es/Heatmaps/styles.js +0 -14
- package/es/Legend/LegendItem.d.ts +0 -10
- package/es/Legend/LegendItem.js +0 -58
- package/es/Legend/ScrollButton.d.ts +0 -9
- package/es/Legend/ScrollButton.js +0 -63
- package/es/Legend/index.d.ts +0 -14
- package/es/Legend/index.js +0 -184
- package/es/Legend/index.mdx +0 -13
- package/es/LineChart/index.d.ts +0 -9
- package/es/LineChart/index.js +0 -388
- package/es/LineChart/index.mdx +0 -49
- package/es/LineChart/styles.d.ts +0 -6
- package/es/LineChart/styles.js +0 -13
- package/es/RadarChart/index.d.ts +0 -24
- package/es/RadarChart/index.js +0 -254
- package/es/RadarChart/index.mdx +0 -52
- package/es/RadarChart/styles.d.ts +0 -5
- package/es/RadarChart/styles.js +0 -12
- package/es/ScatterChart/ScatterChartTooltip.d.ts +0 -16
- package/es/ScatterChart/ScatterChartTooltip.js +0 -76
- package/es/ScatterChart/ScatterChartTooltipRow.d.ts +0 -7
- package/es/ScatterChart/ScatterChartTooltipRow.js +0 -40
- package/es/ScatterChart/index.d.ts +0 -56
- package/es/ScatterChart/index.js +0 -342
- package/es/ScatterChart/index.mdx +0 -49
- package/es/ScatterChart/renderShape.js +0 -18
- package/es/ScatterChart/styles.d.ts +0 -6
- package/es/ScatterChart/styles.js +0 -13
- package/es/SparkChart/SparkAreaChart.d.ts +0 -12
- package/es/SparkChart/SparkAreaChart.js +0 -148
- package/es/SparkChart/SparkBarChart.d.ts +0 -9
- package/es/SparkChart/SparkBarChart.js +0 -106
- package/es/SparkChart/SparkLineChart.d.ts +0 -10
- package/es/SparkChart/SparkLineChart.js +0 -110
- package/es/SparkChart/index.d.ts +0 -3
- package/es/SparkChart/index.js +0 -3
- package/es/SparkChart/index.mdx +0 -29
- package/es/Tracker/TrackerBlock.d.ts +0 -8
- package/es/Tracker/TrackerBlock.js +0 -63
- package/es/Tracker/index.d.ts +0 -18
- package/es/Tracker/index.js +0 -104
- package/es/Tracker/index.mdx +0 -41
- package/es/Tracker/styles.d.ts +0 -5
- package/es/Tracker/styles.js +0 -12
- package/es/common/BaseAnimationTimingProps.d.ts +0 -7
- package/es/common/BaseAnimationTimingProps.js +0 -1
- package/es/common/BaseChartProps.d.ts +0 -58
- package/es/common/BaseChartProps.js +0 -1
- package/es/common/BaseSparkChartProps.d.ts +0 -14
- package/es/common/BaseSparkChartProps.js +0 -1
- package/es/common/ChartLegend.d.ts +0 -5
- package/es/common/ChartLegend.js +0 -40
- package/es/common/ChartTooltip/ChartTooltipFrame.d.ts +0 -6
- package/es/common/ChartTooltip/ChartTooltipFrame.js +0 -32
- package/es/common/ChartTooltip/ChartTooltipRow.d.ts +0 -8
- package/es/common/ChartTooltip/ChartTooltipRow.js +0 -55
- package/es/common/ChartTooltip/index.d.ts +0 -15
- package/es/common/ChartTooltip/index.js +0 -66
- package/es/common/CustomTooltipProps.d.ts +0 -12
- package/es/common/CustomTooltipProps.js +0 -1
- package/es/common/CustomYAxisTick.d.ts +0 -15
- package/es/common/CustomYAxisTick.js +0 -27
- package/es/common/NoData.d.ts +0 -10
- package/es/common/NoData.js +0 -41
- package/es/common/benchmark/index.d.ts +0 -2
- package/es/common/benchmark/types.d.ts +0 -122
- package/es/common/benchmark/types.js +0 -1
- package/es/common/benchmark/utils.js +0 -159
- package/es/common/utils.js +0 -85
- package/es/hooks/useOnWindowResize.d.ts +0 -3
- package/es/hooks/useOnWindowResize.js +0 -15
- package/es/hooks/usePrefersReducedMotion.d.ts +0 -1
- package/es/hooks/usePrefersReducedMotion.js +0 -28
- package/es/hooks/useThemeColorRange.d.ts +0 -1
- package/es/hooks/useThemeColorRange.js +0 -8
- package/es/index.d.ts +0 -24
- package/es/index.js +0 -22
- package/es/types/charts.js +0 -8
- package/es/types/global.d.ts +0 -9
- package/es/utils/calendar.js +0 -199
- package/es/utils/getMaxLabelLength.d.ts +0 -10
- package/es/utils/getMaxLabelLength.js +0 -110
- package/es/utils/index.js +0 -32
- package/es/utils/theme.js +0 -40
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
var _excluded = ["values", "colors", "valueFormatter", "markerValue", "showLabels", "tooltip", "showAnimation", "className", "width", "size", "style"];
|
|
5
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
14
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
17
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19
|
-
import { Flexbox, Tooltip } from '@lobehub/ui';
|
|
20
|
-
import { cssVar, cx } from 'antd-style';
|
|
21
|
-
import { forwardRef, memo, useMemo } from 'react';
|
|
22
|
-
import { useThemeColorRange } from "../hooks/useThemeColorRange";
|
|
23
|
-
import { defaultValueFormatter, sumNumericArray } from "../utils";
|
|
24
|
-
import { styles } from "./styles";
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
-
var getMarkerBgColor = function getMarkerBgColor(markerValue, values, colors) {
|
|
28
|
-
if (markerValue === undefined) return '';
|
|
29
|
-
var prefixSum = 0;
|
|
30
|
-
var _iterator = _createForOfIteratorHelper(values.entries()),
|
|
31
|
-
_step;
|
|
32
|
-
try {
|
|
33
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
34
|
-
var _step$value = _slicedToArray(_step.value, 2),
|
|
35
|
-
i = _step$value[0],
|
|
36
|
-
currentWidthPercentage = _step$value[1];
|
|
37
|
-
var currentBgColor = colors[i];
|
|
38
|
-
prefixSum += currentWidthPercentage;
|
|
39
|
-
if (prefixSum >= markerValue) return currentBgColor;
|
|
40
|
-
}
|
|
41
|
-
} catch (err) {
|
|
42
|
-
_iterator.e(err);
|
|
43
|
-
} finally {
|
|
44
|
-
_iterator.f();
|
|
45
|
-
}
|
|
46
|
-
return '';
|
|
47
|
-
};
|
|
48
|
-
var getPositionLeft = function getPositionLeft(value, maxValue) {
|
|
49
|
-
return value ? value / maxValue * 100 : 0;
|
|
50
|
-
};
|
|
51
|
-
var BarLabels = /*#__PURE__*/memo(function (_ref) {
|
|
52
|
-
var values = _ref.values,
|
|
53
|
-
valueFormatter = _ref.valueFormatter;
|
|
54
|
-
var sumValues = useMemo(function () {
|
|
55
|
-
return sumNumericArray(values);
|
|
56
|
-
}, [values]);
|
|
57
|
-
var prefixSum = 0;
|
|
58
|
-
var sumConsecutiveHiddenLabels = 0;
|
|
59
|
-
return /*#__PURE__*/_jsxs(Flexbox, {
|
|
60
|
-
className: cx(styles.label, styles.emphasis),
|
|
61
|
-
horizontal: true,
|
|
62
|
-
style: {
|
|
63
|
-
position: 'relative'
|
|
64
|
-
},
|
|
65
|
-
children: [values.slice(0, values.length).map(function (widthPercentage, idx) {
|
|
66
|
-
prefixSum += widthPercentage;
|
|
67
|
-
var showLabel = (widthPercentage >= 0.1 * sumValues || sumConsecutiveHiddenLabels >= 0.09 * sumValues) && sumValues - prefixSum >= 0.15 * sumValues && prefixSum >= 0.1 * sumValues;
|
|
68
|
-
sumConsecutiveHiddenLabels = showLabel ? 0 : sumConsecutiveHiddenLabels += widthPercentage;
|
|
69
|
-
var widthPositionLeft = getPositionLeft(widthPercentage, sumValues);
|
|
70
|
-
if (prefixSum === sumValues) return null;
|
|
71
|
-
return /*#__PURE__*/_jsx(Flexbox, {
|
|
72
|
-
align: 'center',
|
|
73
|
-
horizontal: true,
|
|
74
|
-
justify: 'flex-end',
|
|
75
|
-
style: {
|
|
76
|
-
width: "".concat(widthPositionLeft, "%")
|
|
77
|
-
},
|
|
78
|
-
children: /*#__PURE__*/_jsx("span", {
|
|
79
|
-
style: {
|
|
80
|
-
display: showLabel ? 'block' : 'hidden',
|
|
81
|
-
left: '50%',
|
|
82
|
-
transform: 'translateX(50%)'
|
|
83
|
-
},
|
|
84
|
-
children: valueFormatter ? valueFormatter(prefixSum) : prefixSum
|
|
85
|
-
})
|
|
86
|
-
}, "item-".concat(idx));
|
|
87
|
-
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
88
|
-
align: 'center',
|
|
89
|
-
horizontal: true,
|
|
90
|
-
style: {
|
|
91
|
-
bottom: 0,
|
|
92
|
-
left: 0,
|
|
93
|
-
position: 'absolute'
|
|
94
|
-
},
|
|
95
|
-
children: valueFormatter ? valueFormatter(0) : 0
|
|
96
|
-
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
97
|
-
align: 'center',
|
|
98
|
-
horizontal: true,
|
|
99
|
-
style: {
|
|
100
|
-
bottom: 0,
|
|
101
|
-
position: 'absolute',
|
|
102
|
-
right: 0
|
|
103
|
-
},
|
|
104
|
-
children: valueFormatter ? valueFormatter(sumValues) : sumValues
|
|
105
|
-
})]
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
var CategoryBar = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
109
|
-
var themeColorRange = useThemeColorRange();
|
|
110
|
-
var _props$values = props.values,
|
|
111
|
-
values = _props$values === void 0 ? [] : _props$values,
|
|
112
|
-
_props$colors = props.colors,
|
|
113
|
-
colors = _props$colors === void 0 ? themeColorRange : _props$colors,
|
|
114
|
-
_props$valueFormatter = props.valueFormatter,
|
|
115
|
-
valueFormatter = _props$valueFormatter === void 0 ? defaultValueFormatter : _props$valueFormatter,
|
|
116
|
-
markerValue = props.markerValue,
|
|
117
|
-
_props$showLabels = props.showLabels,
|
|
118
|
-
showLabels = _props$showLabels === void 0 ? true : _props$showLabels,
|
|
119
|
-
tooltip = props.tooltip,
|
|
120
|
-
_props$showAnimation = props.showAnimation,
|
|
121
|
-
showAnimation = _props$showAnimation === void 0 ? false : _props$showAnimation,
|
|
122
|
-
className = props.className,
|
|
123
|
-
_props$width = props.width,
|
|
124
|
-
width = _props$width === void 0 ? '100%' : _props$width,
|
|
125
|
-
_props$size = props.size,
|
|
126
|
-
size = _props$size === void 0 ? 8 : _props$size,
|
|
127
|
-
style = props.style,
|
|
128
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
129
|
-
var colorGroup = colors.concat(themeColorRange);
|
|
130
|
-
var markerBgColor = useMemo(function () {
|
|
131
|
-
return getMarkerBgColor(markerValue, values, colorGroup);
|
|
132
|
-
}, [markerValue, values, colorGroup]);
|
|
133
|
-
var maxValue = useMemo(function () {
|
|
134
|
-
return sumNumericArray(values);
|
|
135
|
-
}, [values]);
|
|
136
|
-
var markerPositionLeft = useMemo(function () {
|
|
137
|
-
return getPositionLeft(markerValue, maxValue);
|
|
138
|
-
}, [markerValue, maxValue]);
|
|
139
|
-
return /*#__PURE__*/_jsx(Tooltip, {
|
|
140
|
-
title: tooltip,
|
|
141
|
-
children: /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
142
|
-
className: className,
|
|
143
|
-
gap: 8,
|
|
144
|
-
ref: ref,
|
|
145
|
-
style: _objectSpread({
|
|
146
|
-
position: 'relative'
|
|
147
|
-
}, style),
|
|
148
|
-
width: width
|
|
149
|
-
}, rest), {}, {
|
|
150
|
-
children: [showLabels && /*#__PURE__*/_jsx(BarLabels, {
|
|
151
|
-
valueFormatter: valueFormatter,
|
|
152
|
-
values: values
|
|
153
|
-
}), /*#__PURE__*/_jsxs(Flexbox, {
|
|
154
|
-
align: 'center',
|
|
155
|
-
className: cx('relative w-full flex items-center h-2'),
|
|
156
|
-
height: size,
|
|
157
|
-
horizontal: true,
|
|
158
|
-
style: {
|
|
159
|
-
position: 'relative'
|
|
160
|
-
},
|
|
161
|
-
children: [/*#__PURE__*/_jsx(Flexbox, {
|
|
162
|
-
align: 'center',
|
|
163
|
-
height: '100%',
|
|
164
|
-
horizontal: true,
|
|
165
|
-
style: {
|
|
166
|
-
borderRadius: size / 2,
|
|
167
|
-
overflow: 'hidden'
|
|
168
|
-
},
|
|
169
|
-
width: '100%',
|
|
170
|
-
children: values.map(function (value, idx) {
|
|
171
|
-
var _colorGroup$idx;
|
|
172
|
-
var baseColor = (_colorGroup$idx = colorGroup[idx]) !== null && _colorGroup$idx !== void 0 ? _colorGroup$idx : cssVar.colorPrimary;
|
|
173
|
-
var percentage = value / maxValue * 100;
|
|
174
|
-
return /*#__PURE__*/_jsx(Flexbox, {
|
|
175
|
-
height: '100%',
|
|
176
|
-
style: {
|
|
177
|
-
background: baseColor,
|
|
178
|
-
width: "".concat(percentage, "%")
|
|
179
|
-
}
|
|
180
|
-
}, "item-".concat(idx));
|
|
181
|
-
})
|
|
182
|
-
}), markerValue === undefined ? undefined : /*#__PURE__*/_jsx("div", {
|
|
183
|
-
className: cx(styles.markerWrapper, showAnimation && styles.showAnimation),
|
|
184
|
-
style: {
|
|
185
|
-
left: "".concat(markerPositionLeft, "%")
|
|
186
|
-
},
|
|
187
|
-
children: /*#__PURE__*/_jsx("div", {
|
|
188
|
-
className: styles.marker,
|
|
189
|
-
style: {
|
|
190
|
-
background: markerBgColor || cssVar.colorPrimary,
|
|
191
|
-
height: size + 8
|
|
192
|
-
}
|
|
193
|
-
})
|
|
194
|
-
})]
|
|
195
|
-
})]
|
|
196
|
-
}))
|
|
197
|
-
});
|
|
198
|
-
});
|
|
199
|
-
CategoryBar.displayName = 'CategoryBar';
|
|
200
|
-
export default CategoryBar;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FlexboxProps } from '@lobehub/ui';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export interface DeltaBarProps extends FlexboxProps {
|
|
4
|
-
bgColors?: string;
|
|
5
|
-
color?: string;
|
|
6
|
-
isIncreasePositive?: boolean;
|
|
7
|
-
showAnimation?: boolean;
|
|
8
|
-
size?: number;
|
|
9
|
-
tooltip?: ReactNode;
|
|
10
|
-
value: number;
|
|
11
|
-
}
|
|
12
|
-
declare const DeltaBar: import("react").ForwardRefExoticComponent<Omit<DeltaBarProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export default DeltaBar;
|
package/es/DataBars/DeltaBar.js
DELETED
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
var _excluded = ["value", "bgColors", "color", "isIncreasePositive", "showAnimation", "className", "tooltip", "width", "size", "style"];
|
|
5
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
import { Flexbox, Tooltip } from '@lobehub/ui';
|
|
13
|
-
import { cssVar, cx } from 'antd-style';
|
|
14
|
-
import { forwardRef } from 'react';
|
|
15
|
-
import { DeltaTypes } from "../types/charts";
|
|
16
|
-
import { mapInputsToDeltaType } from "../utils";
|
|
17
|
-
import { styles } from "./styles";
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
-
var getDeltaType = function getDeltaType(value) {
|
|
21
|
-
return value >= 0 ? DeltaTypes.Increase : DeltaTypes.Decrease;
|
|
22
|
-
};
|
|
23
|
-
var DeltaBar = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
24
|
-
var value = props.value,
|
|
25
|
-
bgColors = props.bgColors,
|
|
26
|
-
color = props.color,
|
|
27
|
-
_props$isIncreasePosi = props.isIncreasePositive,
|
|
28
|
-
isIncreasePositive = _props$isIncreasePosi === void 0 ? true : _props$isIncreasePosi,
|
|
29
|
-
_props$showAnimation = props.showAnimation,
|
|
30
|
-
showAnimation = _props$showAnimation === void 0 ? false : _props$showAnimation,
|
|
31
|
-
className = props.className,
|
|
32
|
-
tooltip = props.tooltip,
|
|
33
|
-
_props$width = props.width,
|
|
34
|
-
width = _props$width === void 0 ? '100%' : _props$width,
|
|
35
|
-
_props$size = props.size,
|
|
36
|
-
size = _props$size === void 0 ? 8 : _props$size,
|
|
37
|
-
style = props.style,
|
|
38
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
39
|
-
var deltaType = mapInputsToDeltaType(getDeltaType(value), isIncreasePositive);
|
|
40
|
-
var colors = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, DeltaTypes.Increase, cssVar.colorSuccess), DeltaTypes.ModerateIncrease, cssVar.colorSuccess), DeltaTypes.Decrease, cssVar.colorError), DeltaTypes.ModerateDecrease, cssVar.colorError), DeltaTypes.Unchanged, cssVar.colorWarning);
|
|
41
|
-
return /*#__PURE__*/_jsx(Tooltip, {
|
|
42
|
-
title: tooltip,
|
|
43
|
-
children: /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
44
|
-
align: 'center',
|
|
45
|
-
className: className,
|
|
46
|
-
height: size,
|
|
47
|
-
horizontal: true,
|
|
48
|
-
ref: ref,
|
|
49
|
-
style: _objectSpread({
|
|
50
|
-
position: 'relative'
|
|
51
|
-
}, style),
|
|
52
|
-
width: width
|
|
53
|
-
}, rest), {}, {
|
|
54
|
-
children: [/*#__PURE__*/_jsx(Flexbox, {
|
|
55
|
-
height: '100%',
|
|
56
|
-
style: {
|
|
57
|
-
background: bgColors || cssVar.colorFillTertiary,
|
|
58
|
-
borderRadius: size / 2,
|
|
59
|
-
inset: 0,
|
|
60
|
-
opacity: bgColors ? 0.2 : 1,
|
|
61
|
-
position: 'absolute',
|
|
62
|
-
zIndex: 0
|
|
63
|
-
},
|
|
64
|
-
width: '100%'
|
|
65
|
-
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
66
|
-
align: 'center',
|
|
67
|
-
flex: 1,
|
|
68
|
-
height: '100%',
|
|
69
|
-
horizontal: true,
|
|
70
|
-
justify: 'flex-end',
|
|
71
|
-
style: {
|
|
72
|
-
position: 'relative'
|
|
73
|
-
},
|
|
74
|
-
children: value < 0 ? /*#__PURE__*/_jsx("div", {
|
|
75
|
-
className: cx(showAnimation && styles.showAnimation),
|
|
76
|
-
style: {
|
|
77
|
-
background: colors[deltaType],
|
|
78
|
-
borderBottomLeftRadius: size / 2,
|
|
79
|
-
borderTopLeftRadius: size / 2,
|
|
80
|
-
height: '100%',
|
|
81
|
-
width: "".concat(Math.abs(value), "%")
|
|
82
|
-
}
|
|
83
|
-
}) : undefined
|
|
84
|
-
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
85
|
-
className: styles.marker,
|
|
86
|
-
flex: 'none',
|
|
87
|
-
style: {
|
|
88
|
-
background: color || cssVar.colorPrimary,
|
|
89
|
-
height: size + 8,
|
|
90
|
-
zIndex: 2
|
|
91
|
-
}
|
|
92
|
-
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
93
|
-
align: 'center',
|
|
94
|
-
flex: 1,
|
|
95
|
-
height: '100%',
|
|
96
|
-
horizontal: true,
|
|
97
|
-
justify: 'flex-start',
|
|
98
|
-
style: {
|
|
99
|
-
position: 'relative'
|
|
100
|
-
},
|
|
101
|
-
children: value >= 0 ? /*#__PURE__*/_jsx("div", {
|
|
102
|
-
className: cx(showAnimation && styles.showAnimation),
|
|
103
|
-
style: {
|
|
104
|
-
background: colors[deltaType],
|
|
105
|
-
borderBottomRightRadius: size / 2,
|
|
106
|
-
borderTopRightRadius: size / 2,
|
|
107
|
-
height: '100%',
|
|
108
|
-
width: "".concat(Math.abs(value), "%")
|
|
109
|
-
}
|
|
110
|
-
}) : undefined
|
|
111
|
-
})]
|
|
112
|
-
}))
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
DeltaBar.displayName = 'DeltaBar';
|
|
116
|
-
export default DeltaBar;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FlexboxProps } from '@lobehub/ui';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export interface MarkerBarProps extends FlexboxProps {
|
|
4
|
-
bgColors?: string;
|
|
5
|
-
color?: string;
|
|
6
|
-
markerTooltip?: ReactNode;
|
|
7
|
-
maxValue?: number;
|
|
8
|
-
minValue?: number;
|
|
9
|
-
rangeColors?: string;
|
|
10
|
-
rangeTooltip?: ReactNode;
|
|
11
|
-
showAnimation?: boolean;
|
|
12
|
-
size?: number;
|
|
13
|
-
value: number;
|
|
14
|
-
}
|
|
15
|
-
declare const MarkerBar: import("react").ForwardRefExoticComponent<Omit<MarkerBarProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
-
export default MarkerBar;
|
package/es/DataBars/MarkerBar.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
var _excluded = ["value", "minValue", "maxValue", "markerTooltip", "rangeTooltip", "showAnimation", "color", "bgColors", "rangeColors", "className", "width", "style", "size"];
|
|
5
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
import { Flexbox, Tooltip } from '@lobehub/ui';
|
|
13
|
-
import { cssVar, cx } from 'antd-style';
|
|
14
|
-
import { forwardRef } from 'react';
|
|
15
|
-
import { styles } from "./styles";
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
var MarkerBar = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
19
|
-
var value = props.value,
|
|
20
|
-
minValue = props.minValue,
|
|
21
|
-
maxValue = props.maxValue,
|
|
22
|
-
markerTooltip = props.markerTooltip,
|
|
23
|
-
rangeTooltip = props.rangeTooltip,
|
|
24
|
-
_props$showAnimation = props.showAnimation,
|
|
25
|
-
showAnimation = _props$showAnimation === void 0 ? false : _props$showAnimation,
|
|
26
|
-
color = props.color,
|
|
27
|
-
bgColors = props.bgColors,
|
|
28
|
-
rangeColors = props.rangeColors,
|
|
29
|
-
className = props.className,
|
|
30
|
-
_props$width = props.width,
|
|
31
|
-
width = _props$width === void 0 ? '100%' : _props$width,
|
|
32
|
-
style = props.style,
|
|
33
|
-
_props$size = props.size,
|
|
34
|
-
size = _props$size === void 0 ? 8 : _props$size,
|
|
35
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
36
|
-
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
37
|
-
align: 'center',
|
|
38
|
-
className: className,
|
|
39
|
-
height: size,
|
|
40
|
-
horizontal: true,
|
|
41
|
-
ref: ref,
|
|
42
|
-
style: _objectSpread({
|
|
43
|
-
position: 'relative'
|
|
44
|
-
}, style),
|
|
45
|
-
width: width
|
|
46
|
-
}, rest), {}, {
|
|
47
|
-
children: [/*#__PURE__*/_jsx(Flexbox, {
|
|
48
|
-
height: '100%',
|
|
49
|
-
style: {
|
|
50
|
-
background: bgColors || cssVar.colorFillTertiary,
|
|
51
|
-
borderRadius: size / 2,
|
|
52
|
-
inset: 0,
|
|
53
|
-
opacity: bgColors ? 0.2 : 1,
|
|
54
|
-
position: 'absolute',
|
|
55
|
-
zIndex: 0
|
|
56
|
-
},
|
|
57
|
-
width: '100%'
|
|
58
|
-
}), minValue !== undefined && maxValue !== undefined ? /*#__PURE__*/_jsx(Tooltip, {
|
|
59
|
-
title: rangeTooltip,
|
|
60
|
-
children: /*#__PURE__*/_jsx(Flexbox, {
|
|
61
|
-
className: cx(showAnimation && styles.showAnimation),
|
|
62
|
-
height: '100%',
|
|
63
|
-
style: {
|
|
64
|
-
background: rangeColors || cssVar.colorFill,
|
|
65
|
-
borderRadius: size / 2,
|
|
66
|
-
inset: 0,
|
|
67
|
-
left: "".concat(minValue, "%"),
|
|
68
|
-
opacity: rangeColors ? 0.2 : 1,
|
|
69
|
-
position: 'absolute',
|
|
70
|
-
zIndex: 0
|
|
71
|
-
},
|
|
72
|
-
width: "".concat(maxValue - minValue, "%")
|
|
73
|
-
})
|
|
74
|
-
}) : null, /*#__PURE__*/_jsx(Tooltip, {
|
|
75
|
-
title: markerTooltip,
|
|
76
|
-
children: /*#__PURE__*/_jsx("div", {
|
|
77
|
-
className: cx(styles.markerWrapper, showAnimation && styles.showAnimation),
|
|
78
|
-
style: {
|
|
79
|
-
left: "".concat(value, "%")
|
|
80
|
-
},
|
|
81
|
-
children: /*#__PURE__*/_jsx("div", {
|
|
82
|
-
className: styles.marker,
|
|
83
|
-
style: {
|
|
84
|
-
background: color || cssVar.colorPrimary,
|
|
85
|
-
height: size + 8
|
|
86
|
-
}
|
|
87
|
-
})
|
|
88
|
-
})
|
|
89
|
-
})]
|
|
90
|
-
}));
|
|
91
|
-
});
|
|
92
|
-
MarkerBar.displayName = 'MarkerBar';
|
|
93
|
-
export default MarkerBar;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FlexboxProps } from '@lobehub/ui';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export interface ProgressBarProps extends FlexboxProps {
|
|
4
|
-
bgColors?: string;
|
|
5
|
-
color?: string;
|
|
6
|
-
showAnimation?: boolean;
|
|
7
|
-
size?: number;
|
|
8
|
-
tooltip?: ReactNode;
|
|
9
|
-
value: number;
|
|
10
|
-
}
|
|
11
|
-
declare const ProgressBar: import("react").ForwardRefExoticComponent<Omit<ProgressBarProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export default ProgressBar;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
var _excluded = ["value", "color", "bgColors", "tooltip", "showAnimation", "className", "width", "size", "style"];
|
|
5
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
import { Flexbox, Tooltip } from '@lobehub/ui';
|
|
13
|
-
import { cssVar, cx } from 'antd-style';
|
|
14
|
-
import { forwardRef } from 'react';
|
|
15
|
-
import { styles } from "./styles";
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
var ProgressBar = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
19
|
-
var value = props.value,
|
|
20
|
-
color = props.color,
|
|
21
|
-
bgColors = props.bgColors,
|
|
22
|
-
tooltip = props.tooltip,
|
|
23
|
-
_props$showAnimation = props.showAnimation,
|
|
24
|
-
showAnimation = _props$showAnimation === void 0 ? false : _props$showAnimation,
|
|
25
|
-
className = props.className,
|
|
26
|
-
_props$width = props.width,
|
|
27
|
-
width = _props$width === void 0 ? '100%' : _props$width,
|
|
28
|
-
_props$size = props.size,
|
|
29
|
-
size = _props$size === void 0 ? 8 : _props$size,
|
|
30
|
-
style = props.style,
|
|
31
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
32
|
-
return /*#__PURE__*/_jsx(Tooltip, {
|
|
33
|
-
title: tooltip,
|
|
34
|
-
children: /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
35
|
-
align: 'center',
|
|
36
|
-
className: className,
|
|
37
|
-
height: size,
|
|
38
|
-
horizontal: true,
|
|
39
|
-
ref: ref,
|
|
40
|
-
style: _objectSpread({
|
|
41
|
-
position: 'relative'
|
|
42
|
-
}, style),
|
|
43
|
-
width: width
|
|
44
|
-
}, rest), {}, {
|
|
45
|
-
children: [/*#__PURE__*/_jsx(Flexbox, {
|
|
46
|
-
height: '100%',
|
|
47
|
-
style: {
|
|
48
|
-
background: bgColors || cssVar.colorFillTertiary,
|
|
49
|
-
borderRadius: size / 2,
|
|
50
|
-
inset: 0,
|
|
51
|
-
opacity: bgColors ? 0.2 : 1,
|
|
52
|
-
position: 'absolute',
|
|
53
|
-
zIndex: 0
|
|
54
|
-
},
|
|
55
|
-
width: '100%'
|
|
56
|
-
}), /*#__PURE__*/_jsx(Flexbox, {
|
|
57
|
-
className: cx(showAnimation && styles.showAnimation),
|
|
58
|
-
height: '100%',
|
|
59
|
-
style: {
|
|
60
|
-
background: color || cssVar.colorPrimary,
|
|
61
|
-
borderRadius: size / 2,
|
|
62
|
-
zIndex: 1
|
|
63
|
-
},
|
|
64
|
-
width: "".concat(value, "%")
|
|
65
|
-
})]
|
|
66
|
-
}))
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
ProgressBar.displayName = 'ProgressBar';
|
|
70
|
-
export default ProgressBar;
|
package/es/DataBars/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { default as CategoryBar, type CategoryBarProps } from './CategoryBar';
|
|
2
|
-
export { default as DeltaBar, type DeltaBarProps } from './DeltaBar';
|
|
3
|
-
export { default as MarkerBar, type MarkerBarProps } from './MarkerBar';
|
|
4
|
-
export { default as ProgressBar, type ProgressBarProps } from './ProgressBar';
|
package/es/DataBars/index.js
DELETED
package/es/DataBars/index.mdx
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: DataBars
|
|
3
|
-
description: Components to indicate progress, performance, or status. For example, an individual score compared to a benchmark, the length of a process, or the deviation of a value.
|
|
4
|
-
category: Visualizations
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
import DemoProgressBar from './demos/ProgressBar.tsx?demo';
|
|
8
|
-
import DemoMarkerBar from './demos/MarkerBar.tsx?demo';
|
|
9
|
-
import DemoDeltaBar from './demos/DeltaBar.tsx?demo';
|
|
10
|
-
import DemoCategoryBar from './demos/CategoryBar.tsx?demo';
|
|
11
|
-
|
|
12
|
-
## Progress Bar
|
|
13
|
-
|
|
14
|
-
<Demo of={DemoProgressBar} layout="center" />
|
|
15
|
-
|
|
16
|
-
## Marker Bar
|
|
17
|
-
|
|
18
|
-
<Demo of={DemoMarkerBar} layout="center" />
|
|
19
|
-
|
|
20
|
-
## Delta Bar
|
|
21
|
-
|
|
22
|
-
<Demo of={DemoDeltaBar} layout="center" />
|
|
23
|
-
|
|
24
|
-
## Category Bar
|
|
25
|
-
|
|
26
|
-
<Demo of={DemoCategoryBar} layout="center" />
|
|
27
|
-
|
|
28
|
-
## API
|
|
29
|
-
|
|
30
|
-
<Api name="ProgressBar" />
|
|
31
|
-
|
|
32
|
-
<Api name="MarkerBar" />
|
|
33
|
-
|
|
34
|
-
<Api name="DeltaBar" />
|
|
35
|
-
|
|
36
|
-
<Api name="CategoryBar" />
|
package/es/DataBars/styles.d.ts
DELETED
package/es/DataBars/styles.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
2
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
-
import { createStaticStyles } from 'antd-style';
|
|
4
|
-
export var styles = createStaticStyles(function (_ref) {
|
|
5
|
-
var css = _ref.css,
|
|
6
|
-
cssVar = _ref.cssVar;
|
|
7
|
-
return {
|
|
8
|
-
emphasis: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "]))),
|
|
9
|
-
label: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: 12px;\n line-height: 16px;\n fill: ", ";\n "])), cssVar.colorTextDescription),
|
|
10
|
-
marker: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 4px;\n border-radius: 4px;\n box-shadow: 0 0 0 3px ", ";\n "])), cssVar.colorBgContainer),
|
|
11
|
-
markerWrapper: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n right: 50%;\n width: 1.25rem;\n "]))),
|
|
12
|
-
showAnimation: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n transition: all 0.25s ", ";\n "])), cssVar.motionEaseInOut)
|
|
13
|
-
};
|
|
14
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ValueFormatter } from "../types/charts";
|
|
3
|
-
export interface DonutChartTooltipProps {
|
|
4
|
-
active: boolean | undefined;
|
|
5
|
-
customCategories?: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
};
|
|
8
|
-
payload: any;
|
|
9
|
-
valueFormatter: ValueFormatter;
|
|
10
|
-
}
|
|
11
|
-
export declare const DonutChartTooltip: ({ customCategories, active, payload, valueFormatter, }: DonutChartTooltipProps) => React.JSX.Element | null;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Flexbox } from '@lobehub/ui';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import ChartTooltipFrame from "../common/ChartTooltip/ChartTooltipFrame";
|
|
4
|
-
import ChartTooltipRow from "../common/ChartTooltip/ChartTooltipRow";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export var DonutChartTooltip = function DonutChartTooltip(_ref) {
|
|
7
|
-
var customCategories = _ref.customCategories,
|
|
8
|
-
active = _ref.active,
|
|
9
|
-
payload = _ref.payload,
|
|
10
|
-
valueFormatter = _ref.valueFormatter;
|
|
11
|
-
if (active && payload !== null && payload !== void 0 && payload[0]) {
|
|
12
|
-
var payloadRow = payload === null || payload === void 0 ? void 0 : payload[0];
|
|
13
|
-
return /*#__PURE__*/_jsx(ChartTooltipFrame, {
|
|
14
|
-
children: /*#__PURE__*/_jsx(Flexbox, {
|
|
15
|
-
paddingBlock: 8,
|
|
16
|
-
paddingInline: 16,
|
|
17
|
-
children: /*#__PURE__*/_jsx(ChartTooltipRow, {
|
|
18
|
-
color: payloadRow.payload.color,
|
|
19
|
-
name: (customCategories === null || customCategories === void 0 ? void 0 : customCategories[payloadRow.name]) || payloadRow.name,
|
|
20
|
-
value: valueFormatter(payloadRow.value)
|
|
21
|
-
})
|
|
22
|
-
})
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return null;
|
|
26
|
-
};
|