@semcore/d3-chart 18.0.0-prerelease.1 → 18.0.0-prerelease.5
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/CHANGELOG.md +52 -1
- package/README.md +0 -1
- package/lib/cjs/Area.js +123 -23
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +109 -97
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +16 -16
- package/lib/cjs/Bubble.js +14 -14
- package/lib/cjs/ChartMetaData.js +44 -0
- package/lib/cjs/ChartMetaData.js.map +1 -0
- package/lib/cjs/CompactHorizontalBar.js +17 -17
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +18 -19
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +67 -13
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +5 -2
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +16 -16
- package/lib/cjs/Hover.js +55 -52
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +82 -17
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +113 -2
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +5 -2
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +19 -19
- package/lib/cjs/RadialTree.js +12 -12
- package/lib/cjs/Reference.js +55 -18
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/Tooltip.js +16 -14
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +9 -9
- package/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/lib/cjs/component/Chart/AbstractChart.js +29 -23
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.type.js +19 -0
- package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js +21 -7
- package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.js +17 -8
- package/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.js +4 -0
- package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +5 -1
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +0 -1
- package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.js +6 -3
- package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.js +16 -6
- package/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/index.js +43 -0
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +0 -4
- package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/cjs/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +19 -17
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +28 -21
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
- package/lib/cjs/component/Cigarette/Cigarette.js +0 -1
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/Metric/Metric.js +78 -0
- package/lib/cjs/component/Metric/Metric.js.map +1 -0
- package/lib/cjs/component/Metric/Metric.type.js +2 -0
- package/lib/cjs/component/Metric/Metric.type.js.map +1 -0
- package/lib/cjs/index.js +62 -8
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/abstract-chart.shadow.css +13 -3
- package/lib/cjs/style/area.shadow.css +8 -7
- package/lib/cjs/style/axis.shadow.css +51 -60
- package/lib/cjs/style/bar.shadow.css +7 -9
- package/lib/cjs/style/bubble.shadow.css +4 -6
- package/lib/cjs/style/donut.shadow.css +3 -5
- package/lib/cjs/style/dot.shadow.css +37 -4
- package/lib/cjs/style/hover.shadow.css +30 -13
- package/lib/cjs/style/line.shadow.css +3 -5
- package/lib/cjs/style/pattern.shadow.css +10 -0
- package/lib/cjs/style/plotA11yView.shadow.css +3 -3
- package/lib/cjs/style/radar.shadow.css +7 -7
- package/lib/cjs/style/radial-tree.shadow.css +3 -5
- package/lib/cjs/style/reference.shadow.css +5 -5
- package/lib/cjs/style/scatterplot.shadow.css +2 -4
- package/lib/cjs/style/tooltip.shadow.css +12 -14
- package/lib/cjs/style/venn.shadow.css +0 -2
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/types/index.d.js +20 -0
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +21 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/Area.js +125 -25
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +109 -97
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +16 -16
- package/lib/es6/Bubble.js +14 -14
- package/lib/es6/ChartMetaData.js +36 -0
- package/lib/es6/ChartMetaData.js.map +1 -0
- package/lib/es6/CompactHorizontalBar.js +17 -17
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +18 -19
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +68 -14
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +5 -2
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +16 -16
- package/lib/es6/Hover.js +55 -52
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +84 -19
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +108 -2
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +5 -2
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +19 -19
- package/lib/es6/RadialTree.js +12 -12
- package/lib/es6/Reference.js +55 -18
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/Tooltip.js +16 -14
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +9 -9
- package/lib/es6/a11y/PlotA11yView.js +2 -2
- package/lib/es6/component/Chart/AbstractChart.js +29 -23
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.type.js +14 -1
- package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js +21 -7
- package/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.js +17 -8
- package/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.js +4 -0
- package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +5 -1
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +0 -1
- package/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.js +6 -3
- package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.js +14 -4
- package/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/Chart/index.js +2 -0
- package/lib/es6/component/Chart/index.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +0 -4
- package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/es6/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +19 -17
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +28 -21
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
- package/lib/es6/component/Cigarette/Cigarette.js +0 -1
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/Metric/Metric.js +72 -0
- package/lib/es6/component/Metric/Metric.js.map +1 -0
- package/lib/es6/component/Metric/Metric.type.js +2 -0
- package/lib/es6/component/Metric/Metric.type.js.map +1 -0
- package/lib/es6/index.js +2 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/abstract-chart.shadow.css +13 -3
- package/lib/es6/style/area.shadow.css +8 -7
- package/lib/es6/style/axis.shadow.css +51 -60
- package/lib/es6/style/bar.shadow.css +7 -9
- package/lib/es6/style/bubble.shadow.css +4 -6
- package/lib/es6/style/donut.shadow.css +3 -5
- package/lib/es6/style/dot.shadow.css +37 -4
- package/lib/es6/style/hover.shadow.css +30 -13
- package/lib/es6/style/line.shadow.css +3 -5
- package/lib/es6/style/pattern.shadow.css +10 -0
- package/lib/es6/style/plotA11yView.shadow.css +3 -3
- package/lib/es6/style/radar.shadow.css +7 -7
- package/lib/es6/style/radial-tree.shadow.css +3 -5
- package/lib/es6/style/reference.shadow.css +5 -5
- package/lib/es6/style/scatterplot.shadow.css +2 -4
- package/lib/es6/style/tooltip.shadow.css +12 -14
- package/lib/es6/style/venn.shadow.css +0 -2
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/types/index.d.js +5 -7
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +18 -0
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/Area.mjs +127 -26
- package/lib/esm/Axis.mjs +110 -98
- package/lib/esm/Bar.mjs +17 -17
- package/lib/esm/Bubble.mjs +15 -15
- package/lib/esm/ChartMetaData.mjs +38 -0
- package/lib/esm/CompactHorizontalBar.mjs +18 -18
- package/lib/esm/Donut.mjs +19 -20
- package/lib/esm/Dots.mjs +66 -15
- package/lib/esm/GroupBar.mjs +5 -2
- package/lib/esm/HorizontalBar.mjs +17 -17
- package/lib/esm/Hover.mjs +56 -53
- package/lib/esm/Line.mjs +86 -20
- package/lib/esm/Pattern.mjs +119 -0
- package/lib/esm/Plot.mjs +6 -3
- package/lib/esm/Radar.mjs +20 -20
- package/lib/esm/RadialTree.mjs +13 -13
- package/lib/esm/Reference.mjs +56 -19
- package/lib/esm/ScatterPlot.mjs +10 -10
- package/lib/esm/Tooltip.mjs +17 -15
- package/lib/esm/Venn.mjs +10 -10
- package/lib/esm/a11y/PlotA11yView.mjs +3 -3
- package/lib/esm/component/Chart/AbstractChart.mjs +28 -24
- package/lib/esm/component/Chart/AbstractChart.type.mjs +16 -0
- package/lib/esm/component/Chart/AreaChart.mjs +21 -7
- package/lib/esm/component/Chart/BarChart.mjs +17 -8
- package/lib/esm/component/Chart/BubbleChart.mjs +4 -0
- package/lib/esm/component/Chart/CigaretteChart.mjs +5 -1
- package/lib/esm/component/Chart/DonutChart.mjs +0 -1
- package/lib/esm/component/Chart/HistogramChart.mjs +6 -3
- package/lib/esm/component/Chart/LineChart.mjs +14 -4
- package/lib/esm/component/Chart/index.mjs +8 -0
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +0 -4
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +5 -5
- package/lib/esm/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +20 -18
- package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +29 -22
- package/lib/esm/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
- package/lib/esm/component/Cigarette/Cigarette.mjs +0 -1
- package/lib/esm/component/Metric/Metric.mjs +62 -0
- package/lib/esm/index.mjs +42 -34
- package/lib/esm/style/abstract-chart.shadow.css +13 -3
- package/lib/esm/style/area.shadow.css +8 -7
- package/lib/esm/style/axis.shadow.css +51 -60
- package/lib/esm/style/bar.shadow.css +7 -9
- package/lib/esm/style/bubble.shadow.css +4 -6
- package/lib/esm/style/donut.shadow.css +3 -5
- package/lib/esm/style/dot.shadow.css +37 -4
- package/lib/esm/style/hover.shadow.css +30 -13
- package/lib/esm/style/line.shadow.css +3 -5
- package/lib/esm/style/pattern.shadow.css +10 -0
- package/lib/esm/style/plotA11yView.shadow.css +3 -3
- package/lib/esm/style/radar.shadow.css +7 -7
- package/lib/esm/style/radial-tree.shadow.css +3 -5
- package/lib/esm/style/reference.shadow.css +5 -5
- package/lib/esm/style/scatterplot.shadow.css +2 -4
- package/lib/esm/style/tooltip.shadow.css +12 -14
- package/lib/esm/style/venn.shadow.css +0 -2
- package/lib/esm/utils.mjs +20 -0
- package/lib/types/Axis.d.ts +3 -2
- package/lib/types/ChartMetaData.d.ts +17 -0
- package/lib/types/ChartMetaData.d.ts.map +1 -0
- package/lib/types/Donut.d.ts +1 -1
- package/lib/types/Hover.d.ts +2 -0
- package/lib/types/Pattern.d.ts +18 -0
- package/lib/types/Pattern.d.ts.map +1 -1
- package/lib/types/component/Chart/AbstractChart.d.ts +8 -4
- package/lib/types/component/Chart/AbstractChart.d.ts.map +1 -1
- package/lib/types/component/Chart/AbstractChart.type.d.ts +28 -8
- package/lib/types/component/Chart/AbstractChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/AreaChart.d.ts.map +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +8 -4
- package/lib/types/component/Chart/AreaChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/BarChart.d.ts.map +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +3 -0
- package/lib/types/component/Chart/BarChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/BubbleChart.d.ts.map +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/CigaretteChart.d.ts.map +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/DonutChart.d.ts.map +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +1 -2
- package/lib/types/component/Chart/DonutChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/HistogramChart.d.ts.map +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -0
- package/lib/types/component/Chart/HistogramChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/LineChart.d.ts.map +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +1 -0
- package/lib/types/component/Chart/LineChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/index.d.ts +2 -0
- package/lib/types/component/Chart/index.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -3
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts.map +1 -1
- package/lib/types/component/Metric/Metric.d.ts +9 -0
- package/lib/types/component/Metric/Metric.d.ts.map +1 -0
- package/lib/types/component/Metric/Metric.type.d.ts +33 -0
- package/lib/types/component/Metric/Metric.type.d.ts.map +1 -0
- package/lib/types/index.d.ts +5 -7
- package/lib/types/utils.d.ts +4 -1
- package/lib/types/utils.d.ts.map +1 -1
- package/package.json +16 -15
- package/lib/cjs/color.js +0 -132
- package/lib/cjs/color.js.map +0 -1
- package/lib/cjs/style/var.css +0 -125
- package/lib/es6/color.js +0 -127
- package/lib/es6/color.js.map +0 -1
- package/lib/es6/style/var.css +0 -125
- package/lib/esm/color.mjs +0 -127
- package/lib/esm/utils/TextMeasurer.mjs +0 -27
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import { assignProps as _assignProps } from "@semcore/core";
|
|
3
|
+
import { Flex } from '@semcore/base-components';
|
|
4
|
+
import { Root, sstyled, Component, createComponent } from '@semcore/core';
|
|
5
|
+
import Link from '@semcore/link';
|
|
6
|
+
import { Text } from '@semcore/typography';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
class MetricRoot extends Component {
|
|
9
|
+
getDiffColor() {
|
|
10
|
+
const {
|
|
11
|
+
diffUse
|
|
12
|
+
} = this.asProps;
|
|
13
|
+
switch (diffUse) {
|
|
14
|
+
case 'good':
|
|
15
|
+
{
|
|
16
|
+
return 'var(--intergalactic-text-success)';
|
|
17
|
+
}
|
|
18
|
+
case 'bad':
|
|
19
|
+
{
|
|
20
|
+
return 'var(--intergalactic-text-critical)';
|
|
21
|
+
}
|
|
22
|
+
default:
|
|
23
|
+
{
|
|
24
|
+
return 'var(--intergalactic-text-secondary)';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
var _ref = this.asProps,
|
|
30
|
+
_ref2;
|
|
31
|
+
const SMetric = Flex;
|
|
32
|
+
const {
|
|
33
|
+
styles,
|
|
34
|
+
value,
|
|
35
|
+
diffValue,
|
|
36
|
+
href,
|
|
37
|
+
diffIcon: DiffIcon
|
|
38
|
+
} = this.asProps;
|
|
39
|
+
return _ref2 = sstyled(styles), /*#__PURE__*/React.createElement(SMetric, _ref2.cn("SMetric", {
|
|
40
|
+
..._assignProps({
|
|
41
|
+
"mt": -2,
|
|
42
|
+
"pt": 2,
|
|
43
|
+
"gap": 1,
|
|
44
|
+
"alignItems": 'baseline',
|
|
45
|
+
"__excludeProps": ['value', 'href']
|
|
46
|
+
}, _ref)
|
|
47
|
+
}), href ? /*#__PURE__*/React.createElement(Link, _ref2.cn("Link", {
|
|
48
|
+
"href": href
|
|
49
|
+
}), /*#__PURE__*/React.createElement(Link.Text, {
|
|
50
|
+
size: 500,
|
|
51
|
+
bold: true
|
|
52
|
+
}, value)) : /*#__PURE__*/React.createElement(Text, _ref2.cn("Text", {
|
|
53
|
+
"size": 500,
|
|
54
|
+
"bold": true
|
|
55
|
+
}), value), /*#__PURE__*/React.createElement(Text, _ref2.cn("Text", {
|
|
56
|
+
"size": 100,
|
|
57
|
+
"color": this.getDiffColor()
|
|
58
|
+
}), DiffIcon && /*#__PURE__*/React.createElement(DiffIcon, _ref2.cn("DiffIcon", {
|
|
59
|
+
"height": '8px'
|
|
60
|
+
})), diffValue));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Metric
|
|
66
|
+
*
|
|
67
|
+
* {@link https://developer.semrush.com/intergalactic/data-display/chart-legend/chart-legend-code}
|
|
68
|
+
*/
|
|
69
|
+
_defineProperty(MetricRoot, "displayName", 'Metric');
|
|
70
|
+
const Metric = createComponent(MetricRoot);
|
|
71
|
+
export default Metric;
|
|
72
|
+
//# sourceMappingURL=Metric.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Metric.js","names":["Flex","Root","sstyled","Component","createComponent","Link","Text","React","MetricRoot","getDiffColor","diffUse","asProps","render","_ref","_ref2","SMetric","styles","value","diffValue","href","diffIcon","DiffIcon","createElement","cn","_assignProps","size","bold","_defineProperty","Metric"],"sources":["../../../../src/component/Metric/Metric.tsx"],"sourcesContent":["import { Flex } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport { Root, sstyled, Component, createComponent } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport logger from '@semcore/core/lib/utils/logger';\nimport DiffDown from '@semcore/icon/DiffDown/m';\nimport DiffUp from '@semcore/icon/DiffUp/m';\nimport Link from '@semcore/link';\nimport { Text } from '@semcore/typography';\nimport React from 'react';\n\nimport type { NSMetric } from './Metric.type';\n\nclass MetricRoot extends Component<\n Intergalactic.InternalTypings.InferComponentProps<NSMetric.Component>\n> {\n static displayName = 'Metric';\n\n getDiffColor() {\n const { diffUse } = this.asProps;\n\n switch (diffUse) {\n case 'good': {\n return 'var(--intergalactic-text-success)';\n }\n case 'bad': {\n return 'var(--intergalactic-text-critical)';\n }\n default: {\n return 'var(--intergalactic-text-secondary)';\n }\n }\n }\n\n render(): React.ReactNode {\n const SMetric = Root;\n const { styles, value, diffValue, href, diffIcon: DiffIcon } = this.asProps;\n\n return sstyled(styles)(\n <SMetric mt={-2} pt={2} render={Flex} gap={1} alignItems='baseline' __excludeProps={['value', 'href']}>\n {href\n ? (<Link href={href}><Link.Text size={500} bold>{value}</Link.Text></Link>)\n : (<Text size={500} bold>{value}</Text>)}\n <Text size={100} color={this.getDiffColor()}>\n {DiffIcon && <DiffIcon height='8px' />}\n {diffValue}\n </Text>\n </SMetric>,\n );\n }\n}\n\n/**\n * Metric\n *\n * {@link https://developer.semrush.com/intergalactic/data-display/chart-legend/chart-legend-code}\n */\nconst Metric = createComponent<\n NSMetric.Component,\n typeof MetricRoot\n>(MetricRoot);\n\nexport default Metric;\n"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,0BAA0B;AAE/C,SAASC,IAAI,EAAEC,OAAO,EAAEC,SAAS,EAAEC,eAAe,QAAQ,eAAe;AAKzE,OAAOC,IAAI,MAAM,eAAe;AAChC,SAASC,IAAI,QAAQ,qBAAqB;AAC1C,OAAOC,KAAK,MAAM,OAAO;AAIzB,MAAMC,UAAU,SAASL,SAAS,CAEhC;EAGAM,YAAYA,CAAA,EAAG;IACb,MAAM;MAAEC;IAAQ,CAAC,GAAG,IAAI,CAACC,OAAO;IAEhC,QAAQD,OAAO;MACb,KAAK,MAAM;QAAE;UACX,OAAO,mCAAmC;QAC5C;MACA,KAAK,KAAK;QAAE;UACV,OAAO,oCAAoC;QAC7C;MACA;QAAS;UACP,OAAO,qCAAqC;QAC9C;IACF;EACF;EAEAE,MAAMA,CAAA,EAAoB;IAAA,IAAAC,IAAA,QAAAF,OAAA;MAAAG,KAAA;IACxB,MAAMC,OAAO,GAIqBf,IAAI;IAHtC,MAAM;MAAEgB,MAAM;MAAEC,KAAK;MAAEC,SAAS;MAAEC,IAAI;MAAEC,QAAQ,EAAEC;IAAS,CAAC,GAAG,IAAI,CAACV,OAAO;IAE3E,OAAAG,KAAA,GAAOZ,OAAO,CAACc,MAAM,CAAC,eACpBT,KAAA,CAAAe,aAAA,CAACP,OAAO,EAAAD,KAAA,CAAAS,EAAA;MAAA,GAAAC,YAAA;QAAA,MAAK,CAAC,CAAC;QAAA,MAAM,CAAC;QAAA,OAAqB,CAAC;QAAA,cAAa,UAAU;QAAA,kBAAiB,CAAC,OAAO,EAAE,MAAM;MAAC,GAAAX,IAAA;IAAA,IAClGM,IAAI,gBACAZ,KAAA,CAAAe,aAAA,CAACjB,IAAI,EAAAS,KAAA,CAAAS,EAAA;MAAA,QAAOJ;IAAI,iBAAEZ,KAAA,CAAAe,aAAA,CAACjB,IAAI,CAACC,IAAI;MAACmB,IAAI,EAAE,GAAI;MAACC,IAAI;IAAA,GAAET,KAAiB,CAAO,CAAC,gBACvEV,KAAA,CAAAe,aAAA,CAAChB,IAAI,EAAAQ,KAAA,CAAAS,EAAA;MAAA,QAAO,GAAG;MAAA;IAAA,IAAQN,KAAY,CAAE,eAC1CV,KAAA,CAAAe,aAAA,CAAChB,IAAI,EAAAQ,KAAA,CAAAS,EAAA;MAAA,QAAO,GAAG;MAAA,SAAS,IAAI,CAACd,YAAY,CAAC;IAAC,IACxCY,QAAQ,iBAAId,KAAA,CAAAe,aAAA,CAACD,QAAQ,EAAAP,KAAA,CAAAS,EAAA;MAAA,UAAQ;IAAK,EAAE,CAAC,EACrCL,SACG,CACC,CAAC;EAEd;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJAS,eAAA,CAvCMnB,UAAU,iBAGO,QAAQ;AAyC/B,MAAMoB,MAAM,GAAGxB,eAAe,CAG5BI,UAAU,CAAC;AAEb,eAAeoB,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Metric.type.js","names":[],"sources":["../../../../src/component/Metric/Metric.type.ts"],"sourcesContent":["import type { NSBox } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type { IconComponent } from '@semcore/icon';\n\ndeclare namespace NSMetric {\n type DiffUse = 'good' | 'bad' | 'neutral';\n type DiffIcon = IconComponent;\n\n type Props = NSBox.Props & {\n /**\n * Value to render in the Metric\n */\n value: string;\n\n /**\n * Value to render in diff\n */\n diffValue: string;\n\n /**\n * Diff color\n */\n diffUse: DiffUse;\n\n /**\n * Link to another tool or whatever\n */\n href?: string;\n\n /**\n * Diff arrow direction\n * @default no icon\n */\n diffIcon?: DiffIcon;\n };\n\n type Component = Intergalactic.Component<'span', Props>;\n}\n\nexport {\n type NSMetric,\n};\n"],"mappings":"","ignoreList":[]}
|
package/lib/es6/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export { default as Plot } from './Plot';
|
|
2
2
|
export { ChartLegend, ChartLegendTable } from './component/ChartLegend';
|
|
3
3
|
export { default as Chart } from './component/Chart';
|
|
4
|
+
export * from './component/Chart';
|
|
4
5
|
export { default as StackGroupBar } from './component/StackGroupBar/StackGroupBar';
|
|
5
6
|
export { SvgElement } from './component/SvgElement';
|
|
7
|
+
export { default as Metric } from './component/Metric/Metric';
|
|
6
8
|
export { XAxis, YAxis } from './Axis';
|
|
7
9
|
export { default as Line } from './Line';
|
|
8
10
|
export { default as Bar } from './Bar';
|
|
@@ -23,7 +25,6 @@ export { default as ResponsiveContainer } from './ResponsiveContainer';
|
|
|
23
25
|
export { ReferenceLine, ReferenceBackground, ReferenceStripes } from './Reference';
|
|
24
26
|
export { HoverLine, HoverRect } from './Hover';
|
|
25
27
|
export { minMax, interpolateValue, getBubbleChartValueScale, getScatterPlotRadius, calculateBubbleDomain, PlotEventEmitter } from './utils';
|
|
26
|
-
export { colors } from './color';
|
|
27
28
|
export { makeDataHintsContainer } from './a11y/hints';
|
|
28
29
|
export { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';
|
|
29
30
|
//# sourceMappingURL=index.js.map
|
package/lib/es6/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","Plot","ChartLegend","ChartLegendTable","Chart","StackGroupBar","SvgElement","XAxis","YAxis","Line","Bar","CompactHorizontalBar","HorizontalBar","GroupBar","StackBar","Area","StackedArea","ScatterPlot","Bubble","RadialTree","Donut","Venn","Radar","getLabelOffsetPosition","Tooltip","ResponsiveContainer","ReferenceLine","ReferenceBackground","ReferenceStripes","HoverLine","HoverRect","minMax","interpolateValue","getBubbleChartValueScale","getScatterPlotRadius","calculateBubbleDomain","PlotEventEmitter","
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","Plot","ChartLegend","ChartLegendTable","Chart","StackGroupBar","SvgElement","Metric","XAxis","YAxis","Line","Bar","CompactHorizontalBar","HorizontalBar","GroupBar","StackBar","Area","StackedArea","ScatterPlot","Bubble","RadialTree","Donut","Venn","Radar","getLabelOffsetPosition","Tooltip","ResponsiveContainer","ReferenceLine","ReferenceBackground","ReferenceStripes","HoverLine","HoverRect","minMax","interpolateValue","getBubbleChartValueScale","getScatterPlotRadius","calculateBubbleDomain","PlotEventEmitter","makeDataHintsContainer","PatternFill","PatternSymbol","getPatternSymbolSize"],"sources":["../../src/index.js"],"sourcesContent":["export { default as Plot } from './Plot';\nexport { ChartLegend, ChartLegendTable } from './component/ChartLegend';\nexport { default as Chart } from './component/Chart';\nexport * from './component/Chart';\nexport { default as StackGroupBar } from './component/StackGroupBar/StackGroupBar';\nexport { SvgElement } from './component/SvgElement';\nexport { default as Metric } from './component/Metric/Metric';\nexport { XAxis, YAxis } from './Axis';\n\nexport { default as Line } from './Line';\n\nexport { default as Bar } from './Bar';\nexport { default as CompactHorizontalBar } from './CompactHorizontalBar';\nexport { default as HorizontalBar } from './HorizontalBar';\nexport { default as GroupBar } from './GroupBar';\nexport { default as StackBar } from './StackBar';\nexport { default as Area } from './Area';\nexport { default as StackedArea } from './StackedArea';\nexport { default as ScatterPlot } from './ScatterPlot';\nexport { default as Bubble } from './Bubble';\nexport { default as RadialTree } from './RadialTree';\nexport { default as Donut } from './Donut';\nexport { default as Venn } from './Venn';\nexport { default as Radar, getLabelOffsetPosition } from './Radar';\n\nexport { default as Tooltip } from './Tooltip';\n\nexport { default as ResponsiveContainer } from './ResponsiveContainer';\nexport { ReferenceLine, ReferenceBackground, ReferenceStripes } from './Reference';\n\nexport { HoverLine, HoverRect } from './Hover';\n\nexport {\n minMax,\n interpolateValue,\n getBubbleChartValueScale,\n getScatterPlotRadius,\n calculateBubbleDomain,\n PlotEventEmitter,\n} from './utils';\n\nexport { makeDataHintsContainer } from './a11y/hints';\n\nexport { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,IAAI,QAAQ,QAAQ;AACxC,SAASC,WAAW,EAAEC,gBAAgB,QAAQ,yBAAyB;AACvE,SAASH,OAAO,IAAII,KAAK,QAAQ,mBAAmB;AACpD,cAAc,mBAAmB;AACjC,SAASJ,OAAO,IAAIK,aAAa,QAAQ,yCAAyC;AAClF,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASN,OAAO,IAAIO,MAAM,QAAQ,2BAA2B;AAC7D,SAASC,KAAK,EAAEC,KAAK,QAAQ,QAAQ;AAErC,SAAST,OAAO,IAAIU,IAAI,QAAQ,QAAQ;AAExC,SAASV,OAAO,IAAIW,GAAG,QAAQ,OAAO;AACtC,SAASX,OAAO,IAAIY,oBAAoB,QAAQ,wBAAwB;AACxE,SAASZ,OAAO,IAAIa,aAAa,QAAQ,iBAAiB;AAC1D,SAASb,OAAO,IAAIc,QAAQ,QAAQ,YAAY;AAChD,SAASd,OAAO,IAAIe,QAAQ,QAAQ,YAAY;AAChD,SAASf,OAAO,IAAIgB,IAAI,QAAQ,QAAQ;AACxC,SAAShB,OAAO,IAAIiB,WAAW,QAAQ,eAAe;AACtD,SAASjB,OAAO,IAAIkB,WAAW,QAAQ,eAAe;AACtD,SAASlB,OAAO,IAAImB,MAAM,QAAQ,UAAU;AAC5C,SAASnB,OAAO,IAAIoB,UAAU,QAAQ,cAAc;AACpD,SAASpB,OAAO,IAAIqB,KAAK,QAAQ,SAAS;AAC1C,SAASrB,OAAO,IAAIsB,IAAI,QAAQ,QAAQ;AACxC,SAAStB,OAAO,IAAIuB,KAAK,EAAEC,sBAAsB,QAAQ,SAAS;AAElE,SAASxB,OAAO,IAAIyB,OAAO,QAAQ,WAAW;AAE9C,SAASzB,OAAO,IAAI0B,mBAAmB,QAAQ,uBAAuB;AACtE,SAASC,aAAa,EAAEC,mBAAmB,EAAEC,gBAAgB,QAAQ,aAAa;AAElF,SAASC,SAAS,EAAEC,SAAS,QAAQ,SAAS;AAE9C,SACEC,MAAM,EACNC,gBAAgB,EAChBC,wBAAwB,EACxBC,oBAAoB,EACpBC,qBAAqB,EACrBC,gBAAgB,QACX,SAAS;AAEhB,SAASC,sBAAsB,QAAQ,cAAc;AAErD,SAASC,WAAW,EAAEC,aAAa,EAAEC,oBAAoB,QAAQ,WAAW","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ SChart {
|
|
|
7
7
|
|
|
8
8
|
STooltipChildrenWrapper {
|
|
9
9
|
display: grid;
|
|
10
|
-
gap: var(--intergalactic-spacing-
|
|
10
|
+
gap: var(--intergalactic-spacing-2x, 8px);
|
|
11
11
|
align-items: center;
|
|
12
12
|
|
|
13
13
|
&[columnsCount='2'] {
|
|
@@ -28,7 +28,7 @@ STooltipChildrenWrapper {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
STooltipDeltaWrapper {
|
|
31
|
-
gap: var(--intergalactic-spacing-
|
|
31
|
+
gap: var(--intergalactic-spacing-05x, 2px);
|
|
32
32
|
justify-content: flex-end;
|
|
33
33
|
|
|
34
34
|
&[trend='upward'] {
|
|
@@ -40,7 +40,17 @@ STooltipDeltaWrapper {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&[trend='stable'] {
|
|
43
|
-
color: var(--intergalactic-text-secondary-invert, oklch(0.
|
|
43
|
+
color: var(--intergalactic-text-secondary-invert, oklch(0.953 0.025 240.1 / 0.726));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[deltaPercentGrowthColor='bad'] {
|
|
47
|
+
&[trend='upward'] {
|
|
48
|
+
color: var(--intergalactic-chart-data-critical, oklch(0.74 0.19 22));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&[trend='downward'] {
|
|
52
|
+
color: var(--intergalactic-chart-data-success, oklch(0.82 0.19 143));
|
|
53
|
+
}
|
|
44
54
|
}
|
|
45
55
|
|
|
46
56
|
STooltipDeltaIcon {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
@import './var.css';
|
|
2
|
-
|
|
3
1
|
SArea {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
2
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
5
3
|
fill-opacity: 0.1;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
SArea[withGradient] {
|
|
6
7
|
mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.48) 60%, transparent 100%);
|
|
7
8
|
}
|
|
8
9
|
|
|
@@ -12,7 +13,7 @@ SArea[color] {
|
|
|
12
13
|
|
|
13
14
|
SArea[pattern] {
|
|
14
15
|
fill: var(--pattern);
|
|
15
|
-
fill-opacity: 0.
|
|
16
|
+
fill-opacity: 0.5;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
SArea[transparent] {
|
|
@@ -20,7 +21,7 @@ SArea[transparent] {
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
SAreaLine {
|
|
23
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
24
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
24
25
|
stroke-width: 2;
|
|
25
26
|
fill: transparent;
|
|
26
27
|
}
|
|
@@ -42,10 +43,10 @@ SAreaLine {
|
|
|
42
43
|
|
|
43
44
|
SNull {
|
|
44
45
|
fill: transparent;
|
|
45
|
-
stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.
|
|
46
|
+
stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.009 234));
|
|
46
47
|
stroke-dasharray: 4;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
SNull[hide] {
|
|
50
51
|
display: none;
|
|
51
|
-
}
|
|
52
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
SAxis {
|
|
2
|
-
stroke: var(--intergalactic-chart-grid-x-axis, oklch(0.88 0.
|
|
2
|
+
stroke: var(--intergalactic-chart-grid-x-axis, oklch(0.88 0.011 234.9));
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
SAxis[hide] {
|
|
@@ -7,25 +7,66 @@ SAxis[hide] {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
STick {
|
|
10
|
+
display: block;
|
|
10
11
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
font-variant-numeric: tabular-nums;
|
|
13
|
+
line-height: var(--intergalactic-lh-100, 1.3334);
|
|
14
|
+
color: var(--intergalactic-chart-grid-text-label, oklch(from oklch(0.182 0.045 244.8 / 0.593) l c h / 0.4));
|
|
15
|
+
overflow: visible;
|
|
16
|
+
|
|
17
|
+
/* FF fix */
|
|
18
|
+
[data-tick-content] {
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
16
21
|
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
&[position='bottom'] {
|
|
23
|
+
text-align: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[position='left'] {
|
|
27
|
+
text-align: end;
|
|
28
|
+
dominant-baseline: central;
|
|
29
|
+
|
|
30
|
+
[data-tick-content] {
|
|
31
|
+
align-content: center;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[position='top'] {
|
|
36
|
+
text-align: center;
|
|
37
|
+
|
|
38
|
+
[data-tick-content] {
|
|
39
|
+
align-content: end;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[position='right'] {
|
|
44
|
+
dominant-baseline: central;
|
|
45
|
+
|
|
46
|
+
[data-tick-content] {
|
|
47
|
+
align-content: center;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&[hide] {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&[primaryText] {
|
|
56
|
+
color: var(--intergalactic-text-primary, oklch(0.23 0.009 245));
|
|
57
|
+
}
|
|
19
58
|
}
|
|
20
59
|
|
|
21
60
|
SGrid {
|
|
22
61
|
fill: transparent;
|
|
23
|
-
stroke: var(--intergalactic-
|
|
62
|
+
stroke: var(--intergalactic-chart-grid-line, oklch(0.7 0.021 242));
|
|
63
|
+
stroke-dasharray: 0 6;
|
|
64
|
+
stroke-linecap: round;
|
|
24
65
|
}
|
|
25
66
|
|
|
26
67
|
STitle {
|
|
27
68
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
28
|
-
fill: var(--intergalactic-text-
|
|
69
|
+
fill: var(--intergalactic-chart-grid-text-label, oklch(from oklch(0.182 0.045 244.8 / 0.593) l c h / 0.4));
|
|
29
70
|
transform-origin: var(--transform-origin);
|
|
30
71
|
}
|
|
31
72
|
|
|
@@ -55,56 +96,6 @@ STitle[position='left'][verticalWritingMode] {
|
|
|
55
96
|
transform: none;
|
|
56
97
|
}
|
|
57
98
|
|
|
58
|
-
STick[position='top'] {
|
|
59
|
-
transform: translateY(-12px);
|
|
60
|
-
text-anchor: middle;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
STick[position='bottom'] {
|
|
64
|
-
transform: translateY(12px);
|
|
65
|
-
text-anchor: middle;
|
|
66
|
-
dominant-baseline: hanging;
|
|
67
|
-
|
|
68
|
-
tspan {
|
|
69
|
-
dominant-baseline: hanging;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
STick[position='right'] {
|
|
74
|
-
transform: translateX(16px);
|
|
75
|
-
dominant-baseline: middle;
|
|
76
|
-
|
|
77
|
-
tspan {
|
|
78
|
-
dominant-baseline: middle;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&[multiline] {
|
|
82
|
-
dominant-baseline: auto;
|
|
83
|
-
|
|
84
|
-
tspan {
|
|
85
|
-
dominant-baseline: auto;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
STick[position='left'] {
|
|
91
|
-
transform: translateX(-16px);
|
|
92
|
-
text-anchor: end;
|
|
93
|
-
dominant-baseline: middle;
|
|
94
|
-
|
|
95
|
-
tspan {
|
|
96
|
-
dominant-baseline: middle;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&[multiline] {
|
|
100
|
-
dominant-baseline: auto;
|
|
101
|
-
|
|
102
|
-
tspan {
|
|
103
|
-
dominant-baseline: auto;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
99
|
STick[position='custom_0'] {
|
|
109
100
|
transform: translateY(12px);
|
|
110
101
|
text-anchor: middle;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
@import './var.css';
|
|
2
|
-
|
|
3
1
|
SBar {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
2
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
5
3
|
transition-property: height, width, y;
|
|
6
4
|
transition-duration: var(--duration);
|
|
7
5
|
transition-timing-function: ease-in-out;
|
|
@@ -30,7 +28,7 @@ SBar[onClick] {
|
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
SBackground {
|
|
33
|
-
fill: var(--intergalactic-chart-grid-bar-
|
|
31
|
+
fill: var(--intergalactic-chart-grid-bar-base-bg, oklch(0.92 0.008 233.5));
|
|
34
32
|
opacity: 0.4;
|
|
35
33
|
}
|
|
36
34
|
SBackground[onClick] {
|
|
@@ -42,13 +40,13 @@ SBarAnnotation {
|
|
|
42
40
|
justify-content: space-between;
|
|
43
41
|
}
|
|
44
42
|
SBarLabel {
|
|
45
|
-
color: var(--intergalactic-text-primary, oklch(0.
|
|
43
|
+
color: var(--intergalactic-text-primary, oklch(0.23 0.009 245));
|
|
46
44
|
margin-right: auto;
|
|
47
45
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
48
46
|
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
49
47
|
}
|
|
50
48
|
SBarPercent {
|
|
51
|
-
color: var(--intergalactic-text-secondary, oklch(0.
|
|
49
|
+
color: var(--intergalactic-text-secondary, oklch(0.182 0.045 244.8 / 0.593));
|
|
52
50
|
margin-right: var(--intergalactic-spacing-2x, 8px);
|
|
53
51
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
54
52
|
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
@@ -57,11 +55,11 @@ SBarValue {
|
|
|
57
55
|
min-width: 52px;
|
|
58
56
|
display: flex;
|
|
59
57
|
justify-content: flex-end;
|
|
60
|
-
color: var(--intergalactic-text-primary, oklch(0.
|
|
58
|
+
color: var(--intergalactic-text-primary, oklch(0.23 0.009 245));
|
|
61
59
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
62
60
|
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
63
61
|
text-align: right;
|
|
64
62
|
}
|
|
65
63
|
SCompactHorizontalBarHoverRect {
|
|
66
|
-
fill: var(--intergalactic-chart-grid-bar-
|
|
67
|
-
}
|
|
64
|
+
fill: var(--intergalactic-chart-grid-bar-hover, oklch(0.375 0.09 242.7 / 0.05));
|
|
65
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
@import './var.css';
|
|
2
|
-
|
|
3
1
|
SBubble {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
2
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
5
3
|
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
6
4
|
stroke-width: 2px;
|
|
7
5
|
transition-property: cx, cy;
|
|
@@ -40,7 +38,7 @@ SCenter {
|
|
|
40
38
|
text-anchor: middle;
|
|
41
39
|
/* disable-tokens-validator */
|
|
42
40
|
font-size: calc(var(--intergalactic-fs-100, 12px) - 1px);
|
|
43
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
41
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
SCenter[color] {
|
|
@@ -52,7 +50,7 @@ SCenter[transparent] {
|
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
SLabel {
|
|
55
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
53
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
SLabel[position='right'] {
|
|
@@ -69,4 +67,4 @@ SLabel[color] {
|
|
|
69
67
|
|
|
70
68
|
SLabel[transparent] {
|
|
71
69
|
opacity: 0.3;
|
|
72
|
-
}
|
|
70
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
@import './var.css';
|
|
2
|
-
|
|
3
1
|
SPie {
|
|
4
2
|
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
5
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
3
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
6
4
|
}
|
|
7
5
|
|
|
8
6
|
SPie[color] {
|
|
@@ -20,7 +18,7 @@ SPie[transparent] {
|
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
SEmptyData {
|
|
23
|
-
fill: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.
|
|
21
|
+
fill: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.009 234));
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
SEmptyData[color] {
|
|
@@ -33,4 +31,4 @@ SLabel {
|
|
|
33
31
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
34
32
|
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
35
33
|
|
|
36
|
-
}
|
|
34
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@import './var.css';
|
|
2
|
-
|
|
3
1
|
SDots {
|
|
4
2
|
& SDot {
|
|
5
3
|
transition-duration: var(--duration);
|
|
@@ -9,7 +7,7 @@ SDots {
|
|
|
9
7
|
SDot {
|
|
10
8
|
stroke-width: 1px;
|
|
11
9
|
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
12
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
10
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
13
11
|
transition-property: cx, cy, x, y, filter;
|
|
14
12
|
transition-timing-function: ease-in-out;
|
|
15
13
|
}
|
|
@@ -28,6 +26,41 @@ SDot[color] {
|
|
|
28
26
|
fill: var(--color);
|
|
29
27
|
}
|
|
30
28
|
|
|
29
|
+
SDotHighlight {
|
|
30
|
+
&[color] {
|
|
31
|
+
opacity: 0.4;
|
|
32
|
+
fill: var(--color);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[transparent] {
|
|
36
|
+
opacity: 0.12;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
SDotBorder {
|
|
41
|
+
fill: none;
|
|
42
|
+
stroke-width: 1px;
|
|
43
|
+
stroke: var(--intergalactic-chart-grid-dot-outer-border, oklch(from oklch(0.23 0.009 245) l c h / 0.1));
|
|
44
|
+
stroke-dasharray: 2;
|
|
45
|
+
|
|
46
|
+
&[transparent] {
|
|
47
|
+
opacity: 0.03;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
31
51
|
SDot[transparent] {
|
|
32
52
|
opacity: 0.3;
|
|
33
|
-
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
SDotBackdrop {
|
|
56
|
+
stroke-width: 1px;
|
|
57
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
58
|
+
fill: var(--intergalactic-chart-grid-border, #ffffff);
|
|
59
|
+
transition-property: cx, cy;
|
|
60
|
+
transition-duration: var(--duration);
|
|
61
|
+
transition-timing-function: ease-in-out;
|
|
62
|
+
|
|
63
|
+
&[hide] {
|
|
64
|
+
display: none
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -1,27 +1,44 @@
|
|
|
1
1
|
SHoverLine, SHoverLine:focus-visible {
|
|
2
2
|
outline: none;
|
|
3
|
-
stroke: var(--intergalactic-chart-grid-x-axis, oklch(0.88 0.
|
|
3
|
+
stroke: var(--intergalactic-chart-grid-x-axis, oklch(0.88 0.011 234.9));
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
SHoverRect, SHoverRect:focus-visible {
|
|
7
7
|
outline: none;
|
|
8
|
-
fill: var(--intergalactic-chart-grid-bar-
|
|
8
|
+
fill: var(--intergalactic-chart-grid-bar-hover, oklch(0.375 0.09 242.7 / 0.05));
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
SHoveredTickWrapper {
|
|
12
12
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
text-
|
|
16
|
-
dominant-baseline: hanging;
|
|
13
|
+
font-variant-numeric: tabular-nums;
|
|
14
|
+
line-height: var(--intergalactic-lh-100, 1.3334);
|
|
15
|
+
color: var(--intergalactic-chart-grid-text-label, oklch(from oklch(0.182 0.045 244.8 / 0.593) l c h / 0.4));
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
text-align: center;
|
|
18
|
+
|
|
19
|
+
&[data-is-first='true'] {
|
|
20
|
+
text-align: start;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
&[data-is-last='true'] {
|
|
24
|
+
text-align: end;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[position='top'] {
|
|
28
|
+
SHoveredTickContent {
|
|
29
|
+
align-content: end;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* FF fix */
|
|
34
|
+
SHoveredTickContent {
|
|
35
|
+
height: 100%;
|
|
36
|
+
}
|
|
24
37
|
|
|
25
|
-
|
|
26
|
-
|
|
38
|
+
SHoveredTick {
|
|
39
|
+
display: inline-block;
|
|
40
|
+
padding: 3px 12px;
|
|
41
|
+
border-radius: 6px;
|
|
42
|
+
background-color: var(--intergalactic-chart-x-axis-accent-tick, oklch(0.96 0.005 232.5));
|
|
43
|
+
}
|
|
27
44
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
@import './var.css';
|
|
2
|
-
|
|
3
1
|
SLine {
|
|
4
2
|
fill: transparent;
|
|
5
3
|
stroke-width: 2;
|
|
6
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
4
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
7
5
|
transition-property: d;
|
|
8
6
|
transition-duration: var(--duration);
|
|
9
7
|
transition-timing-function: ease-in-out;
|
|
@@ -23,7 +21,7 @@ SLine[transparent] {
|
|
|
23
21
|
|
|
24
22
|
SNull {
|
|
25
23
|
fill: transparent;
|
|
26
|
-
stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.
|
|
24
|
+
stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.009 234));
|
|
27
25
|
stroke-dasharray: 4;
|
|
28
26
|
}
|
|
29
27
|
|
|
@@ -36,7 +34,7 @@ SLineArea {
|
|
|
36
34
|
transition-duration: var(--duration);
|
|
37
35
|
transition-timing-function: ease-in-out;
|
|
38
36
|
opacity: 0.3;
|
|
39
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
37
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
40
38
|
}
|
|
41
39
|
SLineArea[color] {
|
|
42
40
|
fill: var(--color);
|
|
@@ -2,8 +2,8 @@ SPlotA11yView {
|
|
|
2
2
|
position: relative;
|
|
3
3
|
display: block;
|
|
4
4
|
background-color: var(--intergalactic-bg-primary-neutral, oklch(1 0 0));
|
|
5
|
-
color: var(--intergalactic-text-primary, oklch(0.
|
|
6
|
-
border: 3px solid var(--intergalactic-border-primary, oklch(0.
|
|
5
|
+
color: var(--intergalactic-text-primary, oklch(0.23 0.009 245));
|
|
6
|
+
border: 3px solid var(--intergalactic-border-primary, oklch(0.277 0.066 242.6 / 0.18));
|
|
7
7
|
font-size: var(--intergalactic-fs-50, 10px);
|
|
8
8
|
z-index: var(--intergalactic-z-index-overlay, 500);
|
|
9
9
|
padding: 2px;
|
|
@@ -21,6 +21,6 @@ SPlotA11yView {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
table, td, th {
|
|
24
|
-
border: 1px solid var(--intergalactic-border-primary, oklch(0.
|
|
24
|
+
border: 1px solid var(--intergalactic-border-primary, oklch(0.277 0.066 242.6 / 0.18));
|
|
25
25
|
}
|
|
26
26
|
}
|