@semcore/d3-chart 17.3.1 → 18.0.0-prerelease.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/CHANGELOG.md +6 -0
- package/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +55 -58
- 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/CompactHorizontalBar.js +16 -16
- package/lib/cjs/Donut.js +9 -9
- package/lib/cjs/Dots.js +14 -11
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +16 -16
- package/lib/cjs/Hover.js +158 -39
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +9 -9
- package/lib/cjs/Plot.js +6 -4
- 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 +12 -12
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/Tooltip.js +20 -11
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +9 -9
- package/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/lib/cjs/component/Chart/AbstractChart.js +139 -50
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js +12 -10
- 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 +9 -7
- 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 +21 -8
- 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 +33 -30
- 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.js +2 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +5 -4
- 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 -4
- 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 +9 -7
- 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.js +3 -2
- package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.js +19 -7
- package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.js +6 -5
- package/lib/cjs/component/Chart/VennChart.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +4 -2
- package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.type.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 +23 -18
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +12 -8
- 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 +6 -2
- package/lib/cjs/style/abstract-chart.shadow.css +31 -1
- package/lib/cjs/style/area.shadow.css +6 -5
- package/lib/cjs/style/axis.shadow.css +2 -2
- package/lib/cjs/style/bar.shadow.css +7 -7
- package/lib/cjs/style/bubble.shadow.css +4 -4
- package/lib/cjs/style/donut.shadow.css +3 -3
- package/lib/cjs/style/dot.shadow.css +9 -3
- package/lib/cjs/style/hover.shadow.css +19 -1
- package/lib/cjs/style/line.shadow.css +4 -4
- package/lib/cjs/style/radar.shadow.css +5 -5
- package/lib/cjs/style/radial-tree.shadow.css +3 -3
- package/lib/cjs/style/reference.shadow.css +1 -1
- package/lib/cjs/style/scatterplot.shadow.css +1 -1
- package/lib/cjs/style/tooltip.shadow.css +23 -14
- package/lib/cjs/style/venn.shadow.css +3 -3
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/utils/TextMeasurer.js +33 -0
- package/lib/cjs/utils/TextMeasurer.js.map +1 -0
- package/lib/es6/Area.js +11 -11
- package/lib/es6/Axis.js +55 -57
- 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/CompactHorizontalBar.js +16 -16
- package/lib/es6/Donut.js +9 -9
- package/lib/es6/Dots.js +14 -11
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/HorizontalBar.js +16 -16
- package/lib/es6/Hover.js +158 -39
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +9 -9
- package/lib/es6/Plot.js +6 -4
- 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 +12 -12
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/Tooltip.js +20 -11
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +9 -9
- package/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/lib/es6/a11y/PlotA11yView.js +2 -2
- package/lib/es6/component/Chart/AbstractChart.js +136 -48
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js +12 -10
- 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 +9 -7
- 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 +22 -9
- 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 +33 -30
- 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.js +2 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +5 -4
- 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 -4
- 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 +9 -7
- 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.js +3 -2
- package/lib/es6/component/Chart/RadarChart.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.js +20 -8
- package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.js +6 -5
- package/lib/es6/component/Chart/VennChart.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +4 -2
- package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.type.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 +23 -18
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +12 -8
- 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 +6 -2
- package/lib/es6/style/abstract-chart.shadow.css +31 -1
- package/lib/es6/style/area.shadow.css +6 -5
- package/lib/es6/style/axis.shadow.css +2 -2
- package/lib/es6/style/bar.shadow.css +7 -7
- package/lib/es6/style/bubble.shadow.css +4 -4
- package/lib/es6/style/donut.shadow.css +3 -3
- package/lib/es6/style/dot.shadow.css +9 -3
- package/lib/es6/style/hover.shadow.css +19 -1
- package/lib/es6/style/line.shadow.css +4 -4
- package/lib/es6/style/radar.shadow.css +5 -5
- package/lib/es6/style/radial-tree.shadow.css +3 -3
- package/lib/es6/style/reference.shadow.css +1 -1
- package/lib/es6/style/scatterplot.shadow.css +1 -1
- package/lib/es6/style/tooltip.shadow.css +23 -14
- package/lib/es6/style/venn.shadow.css +3 -3
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/utils/TextMeasurer.js +25 -0
- package/lib/es6/utils/TextMeasurer.js.map +1 -0
- package/lib/esm/Area.mjs +12 -12
- package/lib/esm/Axis.mjs +56 -58
- package/lib/esm/Bar.mjs +17 -17
- package/lib/esm/Bubble.mjs +15 -15
- package/lib/esm/CompactHorizontalBar.mjs +17 -17
- package/lib/esm/Donut.mjs +10 -10
- package/lib/esm/Dots.mjs +15 -12
- package/lib/esm/HorizontalBar.mjs +17 -17
- package/lib/esm/Hover.mjs +157 -40
- package/lib/esm/Line.mjs +10 -10
- package/lib/esm/Plot.mjs +7 -5
- package/lib/esm/Radar.mjs +20 -20
- package/lib/esm/RadialTree.mjs +13 -13
- package/lib/esm/Reference.mjs +13 -13
- package/lib/esm/ScatterPlot.mjs +10 -10
- package/lib/esm/Tooltip.mjs +21 -12
- package/lib/esm/Venn.mjs +10 -10
- package/lib/esm/a11y/PlotA11yModule.mjs +3 -3
- package/lib/esm/a11y/PlotA11yView.mjs +3 -3
- package/lib/esm/component/Chart/AbstractChart.mjs +150 -54
- package/lib/esm/component/Chart/AreaChart.mjs +12 -10
- package/lib/esm/component/Chart/BarChart.mjs +9 -7
- package/lib/esm/component/Chart/BubbleChart.mjs +29 -9
- package/lib/esm/component/Chart/CigaretteChart.mjs +33 -30
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +2 -1
- package/lib/esm/component/Chart/DonutChart.mjs +5 -4
- package/lib/esm/component/Chart/HistogramChart.mjs +6 -4
- package/lib/esm/component/Chart/LineChart.mjs +9 -7
- package/lib/esm/component/Chart/RadarChart.mjs +3 -2
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +25 -8
- package/lib/esm/component/Chart/VennChart.mjs +6 -5
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +4 -2
- 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 +24 -19
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.type.mjs +1 -1
- package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +13 -9
- package/lib/esm/component/ChartLegend/LegendTable/legend-table.shadow.css +6 -2
- package/lib/esm/style/abstract-chart.shadow.css +31 -1
- package/lib/esm/style/area.shadow.css +6 -5
- package/lib/esm/style/axis.shadow.css +2 -2
- package/lib/esm/style/bar.shadow.css +7 -7
- package/lib/esm/style/bubble.shadow.css +4 -4
- package/lib/esm/style/donut.shadow.css +3 -3
- package/lib/esm/style/dot.shadow.css +9 -3
- package/lib/esm/style/hover.shadow.css +19 -1
- package/lib/esm/style/line.shadow.css +4 -4
- package/lib/esm/style/radar.shadow.css +5 -5
- package/lib/esm/style/radial-tree.shadow.css +3 -3
- package/lib/esm/style/reference.shadow.css +1 -1
- package/lib/esm/style/scatterplot.shadow.css +1 -1
- package/lib/esm/style/tooltip.shadow.css +23 -14
- package/lib/esm/style/venn.shadow.css +3 -3
- package/lib/esm/utils/TextMeasurer.mjs +27 -0
- package/lib/types/Hover.d.ts +2 -0
- package/lib/types/component/Chart/AbstractChart.d.ts +11 -6
- package/lib/types/component/Chart/AbstractChart.d.ts.map +1 -1
- package/lib/types/component/Chart/AbstractChart.type.d.ts +20 -2
- 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 +1 -0
- 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 +1 -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 +2 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +2 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts.map +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +2 -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 +2 -1
- 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.d.ts.map +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +2 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.d.ts.map +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +2 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/VennChart.d.ts.map +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +2 -1
- package/lib/types/component/Chart/VennChart.type.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +5 -1
- package/lib/types/component/ChartLegend/BaseLegend.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +3 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.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 +2 -0
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts.map +1 -1
- package/lib/types/utils/TextMeasurer.d.ts +5 -0
- package/lib/types/utils/TextMeasurer.d.ts.map +1 -0
- package/package.json +15 -15
|
@@ -11,9 +11,13 @@ SLegendItem[disabled]:hover {
|
|
|
11
11
|
cursor: default;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
SLegendItem[transparent] {
|
|
15
|
+
opacity: 0.3;
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
SPointShape[color] {
|
|
15
19
|
background-color: var(--color);
|
|
16
|
-
margin-right:
|
|
20
|
+
margin-right: var(--intergalactic-spacing-content-gap-medium, 6px);
|
|
17
21
|
flex-shrink: 0;
|
|
18
22
|
}
|
|
19
23
|
|
|
@@ -21,60 +25,32 @@ SPointShape[shape='Circle'][size='l'] {
|
|
|
21
25
|
width: 16px;
|
|
22
26
|
height: 16px;
|
|
23
27
|
border-radius: 8px;
|
|
24
|
-
margin-top: 4px;
|
|
28
|
+
margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
SPointShape[shape='Circle'][size='m'] {
|
|
28
32
|
width: 12px;
|
|
29
33
|
height: 12px;
|
|
30
34
|
border-radius: 6px;
|
|
31
|
-
margin-top: 4px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
SPointShape[shape='Line'][size='l'] {
|
|
35
|
-
width: 16px;
|
|
36
|
-
height: 4px;
|
|
37
|
-
border-radius: 3px;
|
|
38
|
-
margin-top: 9px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
SPointShape[shape='Line'][size='m'] {
|
|
42
|
-
width: 12px;
|
|
43
|
-
height: 4px;
|
|
44
|
-
border-radius: 3px;
|
|
45
|
-
margin-top: 8px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
SPointShape[shape='Square'][size='l'] {
|
|
49
|
-
width: 16px;
|
|
50
|
-
height: 16px;
|
|
51
|
-
border-radius: 2px;
|
|
52
|
-
margin-top: 4px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
SPointShape[shape='Square'][size='m'] {
|
|
56
|
-
width: 12px;
|
|
57
|
-
height: 12px;
|
|
58
|
-
border-radius: 2px;
|
|
59
|
-
margin-top: 4px;
|
|
35
|
+
margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
60
36
|
}
|
|
61
37
|
|
|
62
38
|
SPointShape[shape='Pattern'] {
|
|
63
39
|
background-color: transparent;
|
|
64
|
-
margin-right: 4px;
|
|
40
|
+
margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
65
41
|
}
|
|
66
42
|
|
|
67
43
|
SIcon {
|
|
68
44
|
line-height: 0;
|
|
69
|
-
margin-right: 4px;
|
|
45
|
+
margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
70
46
|
}
|
|
71
47
|
|
|
72
48
|
SIcon[size='l'] {
|
|
73
|
-
margin-top: 4px;
|
|
49
|
+
margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
74
50
|
}
|
|
75
51
|
|
|
76
52
|
SIcon[size='m'] {
|
|
77
|
-
margin-top: 2px;
|
|
53
|
+
margin-top: var(--intergalactic-spacing-content-gap-xsmall, 2px);
|
|
78
54
|
}
|
|
79
55
|
|
|
80
56
|
SLabel {
|
|
@@ -85,19 +61,19 @@ SLabel[size='l'],
|
|
|
85
61
|
SAdditionalLabel[size='l'],
|
|
86
62
|
SCount[size='l'] {
|
|
87
63
|
font-size: var(--intergalactic-fs-300, 16px);
|
|
88
|
-
line-height: var(--intergalactic-lh-300,
|
|
64
|
+
line-height: var(--intergalactic-lh-300, 1.5);
|
|
89
65
|
}
|
|
90
66
|
|
|
91
67
|
SLabel[size='m'],
|
|
92
68
|
SAdditionalLabel[size='m'],
|
|
93
69
|
SCount[size='m'] {
|
|
94
70
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
95
|
-
line-height: var(--intergalactic-lh-200,
|
|
71
|
+
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
96
72
|
}
|
|
97
73
|
|
|
98
74
|
SAdditionalLabel,
|
|
99
75
|
SCount {
|
|
100
|
-
margin-left: 4px;
|
|
76
|
+
margin-left: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
101
77
|
}
|
|
102
78
|
|
|
103
79
|
SAdditionalLabel {
|
|
@@ -109,11 +85,11 @@ SAdditionalLabel {
|
|
|
109
85
|
SAdditionalLabel::before {
|
|
110
86
|
content: '';
|
|
111
87
|
display: inline-block;
|
|
112
|
-
background-color: var(--intergalactic-text-secondary, oklch(0.
|
|
88
|
+
background-color: var(--intergalactic-text-secondary, oklch(0.097 0.023 156.5 / 0.468));
|
|
113
89
|
height: 4px;
|
|
114
90
|
width: 4px;
|
|
115
91
|
border-radius: 2px;
|
|
116
|
-
margin-right: 4px;
|
|
92
|
+
margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
117
93
|
}
|
|
118
94
|
|
|
119
95
|
SAdditionalLabel[size='l']::before {
|
|
@@ -6,14 +6,15 @@ import { Box } from '@semcore/base-components';
|
|
|
6
6
|
import { createComponent, sstyled, Root } from '@semcore/core';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
/*!__reshadow-styles__:"./legend-table.shadow.css"*/
|
|
9
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
9
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SLegendTable_whwqy_gg_.__columns-count_whwqy_gg_{font-feature-settings:\"tnum\";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:var(--intergalactic-spacing-content-gap-large,8px);grid-row-gap:var(--intergalactic-spacing-content-gap-large,8px)}.___SColumnItem_whwqy_gg_._size_l_whwqy_gg_{font-size:var(--intergalactic-fs-300,16px);text-align:right}.___SColumnItem_whwqy_gg_._size_m_whwqy_gg_{font-size:var(--intergalactic-fs-200,14px);text-align:right}.___SColumnItem_whwqy_gg_.__transparent_whwqy_gg_{opacity:.3}", /*__inner_css_end__*/"whwqy_gg_"),
|
|
10
10
|
/*__reshadow_css_end__*/
|
|
11
11
|
{
|
|
12
|
-
"__SLegendTable": "
|
|
13
|
-
"_columns-count": "__columns-
|
|
14
|
-
"__SColumnItem": "
|
|
15
|
-
"_size_l": "
|
|
16
|
-
"_size_m": "
|
|
12
|
+
"__SLegendTable": "___SLegendTable_whwqy_gg_",
|
|
13
|
+
"_columns-count": "__columns-count_whwqy_gg_",
|
|
14
|
+
"__SColumnItem": "___SColumnItem_whwqy_gg_",
|
|
15
|
+
"_size_l": "_size_l_whwqy_gg_",
|
|
16
|
+
"_size_m": "_size_m_whwqy_gg_",
|
|
17
|
+
"_transparent": "__transparent_whwqy_gg_"
|
|
17
18
|
});
|
|
18
19
|
import { BaseLegend } from '../BaseLegend';
|
|
19
20
|
import { LegendItemComponent } from '../LegendItem/LegendItem';
|
|
@@ -26,7 +27,8 @@ class LegendTableRoot extends BaseLegend {
|
|
|
26
27
|
styles,
|
|
27
28
|
Children,
|
|
28
29
|
size = 'm',
|
|
29
|
-
items
|
|
30
|
+
items,
|
|
31
|
+
highlightedItem
|
|
30
32
|
} = this.asProps;
|
|
31
33
|
const columnsCount = items[0]?.columns.length;
|
|
32
34
|
return _ref3 = sstyled(styles), /*#__PURE__*/React.createElement(SLegendTable, _ref3.cn("SLegendTable", {
|
|
@@ -38,6 +40,7 @@ class LegendTableRoot extends BaseLegend {
|
|
|
38
40
|
id,
|
|
39
41
|
columns = []
|
|
40
42
|
}, _index) => {
|
|
43
|
+
const isTransparent = highlightedItem !== undefined && highlightedItem !== -1 && highlightedItem !== _index;
|
|
41
44
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
42
45
|
key: id
|
|
43
46
|
}, /*#__PURE__*/React.createElement(Children, null), columns.map((item, index) => {
|
|
@@ -46,7 +49,8 @@ class LegendTableRoot extends BaseLegend {
|
|
|
46
49
|
}, /*#__PURE__*/React.createElement(LegendTable.Column, {
|
|
47
50
|
index: index,
|
|
48
51
|
size: size,
|
|
49
|
-
styles: styles
|
|
52
|
+
styles: styles,
|
|
53
|
+
transparent: isTransparent
|
|
50
54
|
}, item));
|
|
51
55
|
}));
|
|
52
56
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendTable.js","names":["Box","createComponent","sstyled","Root","React","style","_sstyled","insert","BaseLegend","LegendItemComponent","LegendTableRoot","render","_ref","asProps","_ref3","SLegendTable","styles","Children","size","items","columnsCount","columns","length","createElement","cn","_assignProps","map","id","_index","Fragment","key","item","index","LegendTable","Column","_defineProperty","children","LegendItem","ColumnComponent","props","_ref2","arguments[0]","_ref4","SColumnItem","_assignProps2","gridColumnStart","gridColumnEnd"],"sources":["../../../../../src/component/ChartLegend/LegendTable/LegendTable.tsx"],"sourcesContent":["import { Box } from '@semcore/base-components';\nimport { createComponent, sstyled, Root, type IRootComponentProps } from '@semcore/core';\nimport React from 'react';\n\nimport style from './legend-table.shadow.css';\nimport type { LegendTableType, LegendTableProps, LegendColumnProps, LegendTableDefaultProps } from './LegendTable.type';\nimport { BaseLegend } from '../BaseLegend';\nimport { LegendItemComponent } from '../LegendItem/LegendItem';\n\nclass LegendTableRoot extends BaseLegend<LegendTableProps, [], LegendTableDefaultProps> {\n static displayName = 'LegendTable';\n static style = style;\n\n static defaultProps = () => ({\n children: <LegendTable.LegendItem />,\n });\n\n render() {\n const SLegendTable = Root;\n const { styles, Children, size = 'm', items } = this.asProps;\n const columnsCount = items[0]?.columns.length;\n\n return sstyled(styles)(\n <SLegendTable render={Box} columns-count={columnsCount + 1} role='group'>\n {items.map(({ id, columns = [] }, _index) => {\n return (\n <React.Fragment key={id}>\n <Children />\n {columns.map((item, index) => {\n return (\n <React.Fragment key={`${id}__${index}`}>\n <LegendTable.Column index={index} size={size} styles={styles}>\n {item}\n </LegendTable.Column>\n </React.Fragment>\n );\n })}\n </React.Fragment>\n );\n })}\n </SLegendTable>,\n );\n }\n}\n\nfunction ColumnComponent(props: LegendColumnProps & IRootComponentProps) {\n const SColumnItem = Root;\n const { styles, index, size, Children } = props;\n\n return sstyled(styles)(\n <SColumnItem\n style={{ gridColumnStart: `${index + 2}`, gridColumnEnd: `${index + 3}` }}\n render={Box}\n size={size}\n >\n <Children />\n </SColumnItem>,\n );\n}\n\n/**\n * LegendTable\n *\n * {@link https://developer.semrush.com/intergalactic/data-display/chart-legend/chart-legend-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/chart-legend/chart-legend-code/|Examples}\n */\nexport const LegendTable = createComponent<\n LegendTableType,\n typeof LegendTableRoot\n>(LegendTableRoot, {\n LegendItem: LegendItemComponent,\n Column: ColumnComponent,\n});\n"],"mappings":";;;;AAAA,SAASA,GAAG,QAAQ,0BAA0B;AAC9C,SAASC,eAAe,EAAEC,OAAO,EAAEC,IAAI,QAAkC,eAAe;AACxF,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAI1B,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,mBAAmB,QAAQ,0BAA0B;AAE9D,MAAMC,eAAe,SAASF,UAAU,CAAgD;EAQtFG,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;MAAAC,KAAA;IACP,MAAMC,YAAY,GAKMf,GAAG;IAJ3B,MAAM;MAAEgB,MAAM;MAAEC,QAAQ;MAAEC,IAAI,GAAG,GAAG;MAAEC;
|
|
1
|
+
{"version":3,"file":"LegendTable.js","names":["Box","createComponent","sstyled","Root","React","style","_sstyled","insert","BaseLegend","LegendItemComponent","LegendTableRoot","render","_ref","asProps","_ref3","SLegendTable","styles","Children","size","items","highlightedItem","columnsCount","columns","length","createElement","cn","_assignProps","map","id","_index","isTransparent","undefined","Fragment","key","item","index","LegendTable","Column","transparent","_defineProperty","children","LegendItem","ColumnComponent","props","_ref2","arguments[0]","_ref4","SColumnItem","_assignProps2","gridColumnStart","gridColumnEnd"],"sources":["../../../../../src/component/ChartLegend/LegendTable/LegendTable.tsx"],"sourcesContent":["import { Box } from '@semcore/base-components';\nimport { createComponent, sstyled, Root, type IRootComponentProps } from '@semcore/core';\nimport React from 'react';\n\nimport style from './legend-table.shadow.css';\nimport type { LegendTableType, LegendTableProps, LegendColumnProps, LegendTableDefaultProps } from './LegendTable.type';\nimport { BaseLegend } from '../BaseLegend';\nimport { LegendItemComponent } from '../LegendItem/LegendItem';\n\nclass LegendTableRoot extends BaseLegend<LegendTableProps, [], LegendTableDefaultProps> {\n static displayName = 'LegendTable';\n static style = style;\n\n static defaultProps = () => ({\n children: <LegendTable.LegendItem />,\n });\n\n render() {\n const SLegendTable = Root;\n const { styles, Children, size = 'm', items, highlightedItem } = this.asProps;\n const columnsCount = items[0]?.columns.length;\n\n return sstyled(styles)(\n <SLegendTable render={Box} columns-count={columnsCount + 1} role='group'>\n {items.map(({ id, columns = [] }, _index) => {\n const isTransparent = highlightedItem !== undefined && (highlightedItem !== -1 && highlightedItem !== _index);\n\n return (\n <React.Fragment key={id}>\n <Children />\n {columns.map((item, index) => {\n return (\n <React.Fragment key={`${id}__${index}`}>\n <LegendTable.Column index={index} size={size} styles={styles} transparent={isTransparent}>\n {item}\n </LegendTable.Column>\n </React.Fragment>\n );\n })}\n </React.Fragment>\n );\n })}\n </SLegendTable>,\n );\n }\n}\n\nfunction ColumnComponent(props: LegendColumnProps & IRootComponentProps) {\n const SColumnItem = Root;\n const { styles, index, size, Children } = props;\n\n return sstyled(styles)(\n <SColumnItem\n style={{ gridColumnStart: `${index + 2}`, gridColumnEnd: `${index + 3}` }}\n render={Box}\n size={size}\n >\n <Children />\n </SColumnItem>,\n );\n}\n\n/**\n * LegendTable\n *\n * {@link https://developer.semrush.com/intergalactic/data-display/chart-legend/chart-legend-api/|API} | {@link https://developer.semrush.com/intergalactic/data-display/chart-legend/chart-legend-code/|Examples}\n */\nexport const LegendTable = createComponent<\n LegendTableType,\n typeof LegendTableRoot\n>(LegendTableRoot, {\n LegendItem: LegendItemComponent,\n Column: ColumnComponent,\n});\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendTable.type.js","names":[],"sources":["../../../../../src/component/ChartLegend/LegendTable/LegendTable.type.ts"],"sourcesContent":["import type { Box } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type React from 'react';\n\nimport type { LegendProps, LSize } from '../BaseLegend.type';\nimport type { LegendItem, LegendItemType } from '../LegendItem/LegendItem.type';\n\nexport type LegendTableProps = Intergalactic.InternalTypings.EfficientOmit<LegendProps, 'items'> & {\n /**\n * Legend items\n */\n items: Array<LegendItem & { columns: Array<React.ReactNode> }>;\n};\n\nexport type LegendTableDefaultProps = {\n children: React.JSX.Element;\n};\n\nexport type LegendColumnProps = {\n index: number;\n size: LSize;\n};\n\nexport type LegendTableType = Intergalactic.Component<typeof Box, LegendTableProps> & {\n LegendItem: LegendItemType;\n Column: Intergalactic.Component<typeof Box, Partial<LegendColumnProps>>;\n};\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"LegendTable.type.js","names":[],"sources":["../../../../../src/component/ChartLegend/LegendTable/LegendTable.type.ts"],"sourcesContent":["import type { Box } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type React from 'react';\n\nimport type { LegendProps, LSize } from '../BaseLegend.type';\nimport type { LegendItem, LegendItemType } from '../LegendItem/LegendItem.type';\n\nexport type LegendTableProps = Intergalactic.InternalTypings.EfficientOmit<LegendProps, 'items'> & {\n /**\n * Legend items\n */\n items: Array<LegendItem & { columns: Array<React.ReactNode> }>;\n};\n\nexport type LegendTableDefaultProps = {\n children: React.JSX.Element;\n};\n\nexport type LegendColumnProps = {\n index: number;\n size: LSize;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\nexport type LegendTableType = Intergalactic.Component<typeof Box, LegendTableProps> & {\n LegendItem: LegendItemType;\n Column: Intergalactic.Component<typeof Box, Partial<LegendColumnProps>>;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -4,8 +4,8 @@ SLegendTable[columns-count] {
|
|
|
4
4
|
grid-template-columns: auto 0.2fr;
|
|
5
5
|
align-items: center;
|
|
6
6
|
height: fit-content;
|
|
7
|
-
grid-column-gap:
|
|
8
|
-
grid-row-gap: 8px;
|
|
7
|
+
grid-column-gap: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
8
|
+
grid-row-gap: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
SColumnItem[size='l'] {
|
|
@@ -17,3 +17,7 @@ SColumnItem[size='m'] {
|
|
|
17
17
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
18
18
|
text-align: right;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
SColumnItem[transparent] {
|
|
22
|
+
opacity: 0.3;
|
|
23
|
+
}
|
|
@@ -7,13 +7,43 @@ SChart {
|
|
|
7
7
|
|
|
8
8
|
STooltipChildrenWrapper {
|
|
9
9
|
display: grid;
|
|
10
|
-
|
|
10
|
+
gap: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
11
|
+
align-items: center;
|
|
11
12
|
|
|
12
13
|
&[columnsCount='2'] {
|
|
13
14
|
grid-template-columns: auto minmax(28px, max-content);
|
|
15
|
+
|
|
16
|
+
STooltipDivider {
|
|
17
|
+
grid-column: span 2;
|
|
18
|
+
}
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
&[columnsCount='3'] {
|
|
17
22
|
grid-template-columns: auto minmax(28px, max-content) minmax(28px, max-content);
|
|
23
|
+
|
|
24
|
+
STooltipDivider {
|
|
25
|
+
grid-column: span 3;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
STooltipDeltaWrapper {
|
|
31
|
+
gap: var(--intergalactic-spacing-content-gap-xsmall, 2px);
|
|
32
|
+
justify-content: flex-end;
|
|
33
|
+
|
|
34
|
+
&[trend='upward'] {
|
|
35
|
+
color: var(--intergalactic-chart-data-success, oklch(0.82 0.19 143));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[trend='downward'] {
|
|
39
|
+
color: var(--intergalactic-chart-data-critical, oklch(0.74 0.19 22));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&[trend='stable'] {
|
|
43
|
+
color: var(--intergalactic-text-secondary-invert, oklch(0.997 0.004 165.9 / 0.684));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
STooltipDeltaIcon {
|
|
47
|
+
align-self: center;
|
|
18
48
|
}
|
|
19
49
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
@import './var.css';
|
|
2
2
|
|
|
3
3
|
SArea {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
5
|
-
fill-opacity: 0.
|
|
4
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
5
|
+
fill-opacity: 0.1;
|
|
6
|
+
mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.48) 60%, transparent 100%);
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
SArea[color] {
|
|
@@ -19,8 +20,8 @@ SArea[transparent] {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
SAreaLine {
|
|
22
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
23
|
-
stroke-width:
|
|
23
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
24
|
+
stroke-width: 2;
|
|
24
25
|
fill: transparent;
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -41,7 +42,7 @@ SAreaLine {
|
|
|
41
42
|
|
|
42
43
|
SNull {
|
|
43
44
|
fill: transparent;
|
|
44
|
-
stroke: var(--intergalactic-chart-
|
|
45
|
+
stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.002 177));
|
|
45
46
|
stroke-dasharray: 4;
|
|
46
47
|
}
|
|
47
48
|
|
|
@@ -8,7 +8,7 @@ SAxis[hide] {
|
|
|
8
8
|
|
|
9
9
|
STick {
|
|
10
10
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
11
|
-
fill: var(--intergalactic-chart-grid-text-label, oklch(0.
|
|
11
|
+
fill: var(--intergalactic-chart-grid-text-label, oklch(0.097 0.023 156.5 / 0.468));
|
|
12
12
|
}
|
|
13
13
|
STick[primaryText] {
|
|
14
14
|
fill: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
@@ -25,7 +25,7 @@ SGrid {
|
|
|
25
25
|
|
|
26
26
|
STitle {
|
|
27
27
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
28
|
-
fill: var(--intergalactic-text-hint, oklch(0.
|
|
28
|
+
fill: var(--intergalactic-text-hint, oklch(0.097 0.023 156.5 / 0.468));
|
|
29
29
|
transform-origin: var(--transform-origin);
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import './var.css';
|
|
2
2
|
|
|
3
3
|
SBar {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
4
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
5
5
|
transition-property: height, width, y;
|
|
6
6
|
transition-duration: var(--duration);
|
|
7
7
|
transition-timing-function: ease-in-out;
|
|
@@ -30,7 +30,7 @@ SBar[onClick] {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
SBackground {
|
|
33
|
-
fill: var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.
|
|
33
|
+
fill: var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.96 0.001 180));
|
|
34
34
|
opacity: 0.4;
|
|
35
35
|
}
|
|
36
36
|
SBackground[onClick] {
|
|
@@ -45,13 +45,13 @@ SBarLabel {
|
|
|
45
45
|
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
46
46
|
margin-right: auto;
|
|
47
47
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
48
|
-
line-height: var(--intergalactic-lh-200,
|
|
48
|
+
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
49
49
|
}
|
|
50
50
|
SBarPercent {
|
|
51
|
-
color: var(--intergalactic-text-secondary, oklch(0.
|
|
51
|
+
color: var(--intergalactic-text-secondary, oklch(0.097 0.023 156.5 / 0.468));
|
|
52
52
|
margin-right: var(--intergalactic-spacing-2x, 8px);
|
|
53
53
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
54
|
-
line-height: var(--intergalactic-lh-200,
|
|
54
|
+
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
55
55
|
}
|
|
56
56
|
SBarValue {
|
|
57
57
|
min-width: 52px;
|
|
@@ -59,9 +59,9 @@ SBarValue {
|
|
|
59
59
|
justify-content: flex-end;
|
|
60
60
|
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
61
61
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
62
|
-
line-height: var(--intergalactic-lh-200,
|
|
62
|
+
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
63
63
|
text-align: right;
|
|
64
64
|
}
|
|
65
65
|
SCompactHorizontalBarHoverRect {
|
|
66
|
-
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.
|
|
66
|
+
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.042));
|
|
67
67
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import './var.css';
|
|
2
2
|
|
|
3
3
|
SBubble {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
5
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
4
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
5
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
6
6
|
stroke-width: 2px;
|
|
7
7
|
transition-property: cx, cy;
|
|
8
8
|
transition-duration: var(--duration);
|
|
@@ -40,7 +40,7 @@ SCenter {
|
|
|
40
40
|
text-anchor: middle;
|
|
41
41
|
/* disable-tokens-validator */
|
|
42
42
|
font-size: calc(var(--intergalactic-fs-100, 12px) - 1px);
|
|
43
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
43
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
SCenter[color] {
|
|
@@ -52,7 +52,7 @@ SCenter[transparent] {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
SLabel {
|
|
55
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
55
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
SLabel[position='right'] {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import './var.css';
|
|
2
2
|
|
|
3
3
|
SPie {
|
|
4
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
5
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
4
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
5
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
SPie[color] {
|
|
@@ -31,6 +31,6 @@ SLabel {
|
|
|
31
31
|
text-anchor: middle;
|
|
32
32
|
vertical-anchor: middle;
|
|
33
33
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
34
|
-
line-height: var(--intergalactic-lh-200,
|
|
34
|
+
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
35
35
|
|
|
36
36
|
}
|
|
@@ -8,12 +8,18 @@ SDots {
|
|
|
8
8
|
|
|
9
9
|
SDot {
|
|
10
10
|
stroke-width: 1px;
|
|
11
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
12
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
13
|
-
transition-property: cx, cy, x, y;
|
|
11
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
12
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
13
|
+
transition-property: cx, cy, x, y, filter;
|
|
14
14
|
transition-timing-function: ease-in-out;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
SDot[active] {
|
|
18
|
+
filter:
|
|
19
|
+
drop-shadow(0 0 1px oklch(0.137 0.026 175.7 / 0.161))
|
|
20
|
+
drop-shadow(0 1px 1px oklch(0.137 0.026 175.7 / 0.161));
|
|
21
|
+
}
|
|
22
|
+
|
|
17
23
|
SDot[hide] {
|
|
18
24
|
display: none;
|
|
19
25
|
}
|
|
@@ -5,5 +5,23 @@ SHoverLine, SHoverLine:focus-visible {
|
|
|
5
5
|
|
|
6
6
|
SHoverRect, SHoverRect:focus-visible {
|
|
7
7
|
outline: none;
|
|
8
|
-
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.
|
|
8
|
+
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.042));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
STick {
|
|
12
|
+
font-size: var(--intergalactic-fs-100, 12px);
|
|
13
|
+
fill: var(--intergalactic-chart-grid-text-label, oklch(0.097 0.023 156.5 / 0.468));
|
|
14
|
+
transform: translateY(12px);
|
|
15
|
+
text-anchor: middle;
|
|
16
|
+
dominant-baseline: hanging;
|
|
17
|
+
|
|
18
|
+
tspan {
|
|
19
|
+
dominant-baseline: hanging;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
cursor: default;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
STickHover {
|
|
26
|
+
fill: var(--intergalactic-chart-x-axis-accent-tick, oklch(0.96 0.001 180));
|
|
9
27
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
SLine {
|
|
4
4
|
fill: transparent;
|
|
5
|
-
stroke-width:
|
|
6
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
5
|
+
stroke-width: 2;
|
|
6
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
7
7
|
transition-property: d;
|
|
8
8
|
transition-duration: var(--duration);
|
|
9
9
|
transition-timing-function: ease-in-out;
|
|
@@ -23,7 +23,7 @@ SLine[transparent] {
|
|
|
23
23
|
|
|
24
24
|
SNull {
|
|
25
25
|
fill: transparent;
|
|
26
|
-
stroke: var(--intergalactic-
|
|
26
|
+
stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.002 177));
|
|
27
27
|
stroke-dasharray: 4;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -36,7 +36,7 @@ SLineArea {
|
|
|
36
36
|
transition-duration: var(--duration);
|
|
37
37
|
transition-timing-function: ease-in-out;
|
|
38
38
|
opacity: 0.3;
|
|
39
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
39
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
40
40
|
}
|
|
41
41
|
SLineArea[color] {
|
|
42
42
|
fill: var(--color);
|
|
@@ -31,7 +31,7 @@ SAxisLabel[yDirection] {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
SPolygon {
|
|
34
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
34
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
35
35
|
opacity: 0.2;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -47,9 +47,9 @@ SPolygon[pattern][color] {
|
|
|
47
47
|
|
|
48
48
|
SPolygonDot {
|
|
49
49
|
stroke-width: 2px;
|
|
50
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
50
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
51
51
|
r: 6px;
|
|
52
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
52
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
SPolygonDot[transparent] {
|
|
@@ -61,7 +61,7 @@ SPolygonDot[color] {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
SPolygonLine {
|
|
64
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
64
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
65
65
|
stroke-width: 3;
|
|
66
66
|
fill: transparent;
|
|
67
67
|
}
|
|
@@ -76,5 +76,5 @@ SPolygonLine[color] {
|
|
|
76
76
|
|
|
77
77
|
SPieRect {
|
|
78
78
|
outline: none;
|
|
79
|
-
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.
|
|
79
|
+
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.042));
|
|
80
80
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
SRadian {
|
|
4
4
|
cursor: pointer;
|
|
5
|
-
fill: var(--intergalactic-text-large-info, oklch(0.
|
|
5
|
+
fill: var(--intergalactic-text-large-info, oklch(0.6 0.166 277.7));
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
SLine {
|
|
9
|
-
stroke: var(--intergalactic-text-large-info, oklch(0.
|
|
9
|
+
stroke: var(--intergalactic-text-large-info, oklch(0.6 0.166 277.7));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
SLine[stroke] {
|
|
@@ -22,7 +22,7 @@ SCap {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
SCap[pattern] {
|
|
25
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
25
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
26
26
|
stroke-width: 1px;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -5,7 +5,7 @@ SReferenceLine {
|
|
|
5
5
|
|
|
6
6
|
STitle {
|
|
7
7
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
8
|
-
fill: var(--intergalactic-chart-grid-text-label, oklch(0.
|
|
8
|
+
fill: var(--intergalactic-chart-grid-text-label, oklch(0.097 0.023 156.5 / 0.468));
|
|
9
9
|
transform-origin: var(--transform-origin);
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import './var.css';
|
|
2
2
|
|
|
3
3
|
SScatterPlot {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
4
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
5
5
|
transition-property: cx, cy;
|
|
6
6
|
transition-duration: var(--duration);
|
|
7
7
|
transition-timing-function: ease-in-out;
|
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
STooltip {
|
|
4
4
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
5
|
-
line-height: var(--intergalactic-lh-100,
|
|
5
|
+
line-height: var(--intergalactic-lh-100, 1.3334);
|
|
6
|
+
font-variant-numeric: tabular-nums;
|
|
6
7
|
position: relative;
|
|
7
|
-
|
|
8
|
+
color: var(--intergalactic-text-primary-invert, oklch(0.999 0.001 180 / 0.949));
|
|
9
|
+
background-color: var(--intergalactic-tooltip-bg-invert, oklch(0.23 0.01 140));
|
|
8
10
|
border-radius: var(--intergalactic-popper-rounded, 6px);
|
|
9
|
-
border: 1px solid var(--intergalactic-border-
|
|
11
|
+
border: 1px solid var(--intergalactic-tooltip-border-invert, oklch(0.4 0.004 140));
|
|
10
12
|
box-sizing: border-box;
|
|
11
13
|
box-shadow: var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px oklch(0.176 0.033 175.7 / 0.07));
|
|
12
|
-
padding: var(--intergalactic-spacing-
|
|
14
|
+
padding: var(--intergalactic-spacing-content-padding-medium, 12px);
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
STitle {
|
|
16
|
-
color: var(--intergalactic-text-secondary, oklch(0.
|
|
17
|
-
margin-bottom: var(--intergalactic-spacing-
|
|
18
|
+
color: var(--intergalactic-text-secondary-invert, oklch(0.997 0.004 165.9 / 0.684));
|
|
19
|
+
margin-bottom: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
SDotGroup {
|
|
@@ -23,20 +25,27 @@ SDotGroup {
|
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
SDot {
|
|
26
|
-
margin-right: var(--intergalactic-spacing-
|
|
28
|
+
margin-right: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
SDotCircle[color] {
|
|
31
|
+
SDotCircle[color][lightness] {
|
|
30
32
|
background-color: var(--color);
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
33
|
+
width: 10px;
|
|
34
|
+
height: 10px;
|
|
33
35
|
border-radius: 50%;
|
|
36
|
+
box-shadow: 0 0 0 1px oklch(from var(--color) calc(l + var(--lightness)) c h);
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
|
|
37
40
|
SFooter {
|
|
38
|
-
background: var(--intergalactic-bg-secondary-
|
|
39
|
-
|
|
41
|
+
background: var(--intergalactic-bg-secondary-invert, oklch(0.969 0.057 140 / 0.118));
|
|
42
|
+
color: var(--intergalactic-text-secondary-invert, oklch(0.997 0.004 165.9 / 0.684));
|
|
43
|
+
padding: var(--intergalactic-spacing-content-padding-xsmall, 4px) var(--intergalactic-spacing-content-padding-medium, 12px);
|
|
40
44
|
border-radius: 0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);
|
|
41
|
-
margin: var(--intergalactic-spacing-
|
|
42
|
-
}
|
|
45
|
+
margin: var(--intergalactic-spacing-content-gap-xlarge, 12px) calc(-1 * var(--intergalactic-spacing-content-gap-xlarge, 12px)) calc(-1 * var(--intergalactic-spacing-content-gap-xlarge, 12px));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
SDotPattern {
|
|
49
|
+
stroke-width: 1px;
|
|
50
|
+
stroke: oklch(from var(--intergalactic-chart-grid-border, #ffffff) l c h / 0.5);
|
|
51
|
+
}
|