@semcore/mini-chart 17.2.1-prerelease.3 → 17.2.2-prerelease.4
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/component/score/Donut.js +9 -9
- package/lib/cjs/component/score/Line.js +18 -18
- package/lib/cjs/component/score/line.shadow.css +2 -2
- package/lib/cjs/component/trend/Bar.js +7 -7
- package/lib/cjs/component/trend/Line.js +7 -7
- package/lib/es6/component/score/Donut.js +9 -9
- package/lib/es6/component/score/Line.js +18 -18
- package/lib/es6/component/score/line.shadow.css +2 -2
- package/lib/es6/component/trend/Bar.js +7 -7
- package/lib/es6/component/trend/Line.js +7 -7
- package/lib/esm/component/score/Donut.mjs +10 -10
- package/lib/esm/component/score/Line.mjs +19 -19
- package/lib/esm/component/score/line.shadow.css +2 -2
- package/lib/esm/component/trend/Bar.mjs +8 -8
- package/lib/esm/component/trend/Line.mjs +8 -8
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [17.2.2] - 2026-09-04
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Base background for Score Line and Donut have become darker.
|
|
10
|
+
|
|
5
11
|
## [17.2.1] - 2026-06-26
|
|
6
12
|
|
|
7
13
|
### Fixed
|
|
@@ -14,17 +14,17 @@ var _useCssVariable = require("@semcore/core/lib/utils/useCssVariable");
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _ScoreDonutUtils = require("../../utils/ScoreDonutUtils");
|
|
16
16
|
/*!__reshadow-styles__:"./donut.shadow.css"*/
|
|
17
|
-
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".
|
|
17
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SDonutContainer_fpn7q_gg_.__loading_fpn7q_gg_,.___SLineGauge_fpn7q_gg_.__loading_fpn7q_gg_,.___STrendBar_fpn7q_gg_.__loading_fpn7q_gg_,.___STrendLine_fpn7q_gg_.__loading_fpn7q_gg_{animation-name:pulse_fpn7q;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_fpn7q{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SDonutContainer_fpn7q_gg_.__semi_fpn7q_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_fpn7q_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_fpn7q_gg_.__animate_fpn7q_gg_ circle{transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out}", /*__inner_css_end__*/"fpn7q_gg_"),
|
|
18
18
|
/*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__SLineGauge": "
|
|
21
|
-
"_loading": "
|
|
22
|
-
"__SDonutContainer": "
|
|
23
|
-
"__STrendLine": "
|
|
24
|
-
"__STrendBar": "
|
|
25
|
-
"@pulse": "
|
|
26
|
-
"_animate": "
|
|
27
|
-
"_semi": "
|
|
20
|
+
"__SLineGauge": "___SLineGauge_fpn7q_gg_",
|
|
21
|
+
"_loading": "__loading_fpn7q_gg_",
|
|
22
|
+
"__SDonutContainer": "___SDonutContainer_fpn7q_gg_",
|
|
23
|
+
"__STrendLine": "___STrendLine_fpn7q_gg_",
|
|
24
|
+
"__STrendBar": "___STrendBar_fpn7q_gg_",
|
|
25
|
+
"@pulse": "pulse_fpn7q",
|
|
26
|
+
"_animate": "__animate_fpn7q_gg_",
|
|
27
|
+
"_semi": "__semi_fpn7q_gg_"
|
|
28
28
|
});
|
|
29
29
|
class DonutRoot extends _core.Component {
|
|
30
30
|
render() {
|
|
@@ -11,26 +11,26 @@ var _baseComponents = require("@semcore/base-components");
|
|
|
11
11
|
var _resolveColorEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/resolveColorEnhance"));
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
/*!__reshadow-styles__:"./line.shadow.css"*/
|
|
14
|
-
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".
|
|
14
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SDonutContainer_1x91g_gg_.__loading_1x91g_gg_,.___SLineGauge_1x91g_gg_.__loading_1x91g_gg_,.___STrendBar_1x91g_gg_.__loading_1x91g_gg_,.___STrendLine_1x91g_gg_.__loading_1x91g_gg_{animation-name:pulse_1x91g;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1x91g{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SLineGauge_1x91g_gg_{height:8px;background-color:var(--base-bg-color_1x91g,var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.88 .002 175.6)));border-radius:var(--intergalactic-chart-rounded,2px);overflow:hidden;position:relative}.___SLineValue_1x91g_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded,2px) 0 0 var(--intergalactic-chart-rounded,2px)}.___SLineValue_1x91g_gg_.__percent_1x91g_gg_{width:var(--percent_1x91g)}.___SLineSegmentItem_1x91g_gg_.__color_1x91g_gg_,.___SLineValue_1x91g_gg_.__color_1x91g_gg_{background-color:var(--color_1x91g,var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2)))}.___SLineGauge_1x91g_gg_.__segments_1x91g_gg_{border-radius:var(--intergalactic-progress-bar-rounded,6px)}.___SAnimationLine_1x91g_gg_,.___SLineGaugeSegment_1x91g_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_1x91g_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_1x91g_gg_{height:8px;background:#0000;border-right:1px solid var(--intergalactic-chart-grid-border,#fff);box-sizing:initial}.___SAnimationLine_1x91g_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.88 .002 175.6));transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out;animation-name:move-line_1x91g;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}@keyframes move-line_1x91g{0%{transform:translateX(0)}to{transform:translateX(100%)}}", /*__inner_css_end__*/"1x91g_gg_"),
|
|
15
15
|
/*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SLineGauge": "
|
|
18
|
-
"_loading": "
|
|
19
|
-
"__SDonutContainer": "
|
|
20
|
-
"__STrendLine": "
|
|
21
|
-
"__STrendBar": "
|
|
22
|
-
"@pulse": "
|
|
23
|
-
"--base-bg-color": "--base-bg-
|
|
24
|
-
"__SLineValue": "
|
|
25
|
-
"_percent": "
|
|
26
|
-
"--percent": "--
|
|
27
|
-
"_color": "
|
|
28
|
-
"__SLineSegmentItem": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_segments": "
|
|
31
|
-
"__SLineGaugeSegment": "
|
|
32
|
-
"__SAnimationLine": "
|
|
33
|
-
"@move-line": "move-
|
|
17
|
+
"__SLineGauge": "___SLineGauge_1x91g_gg_",
|
|
18
|
+
"_loading": "__loading_1x91g_gg_",
|
|
19
|
+
"__SDonutContainer": "___SDonutContainer_1x91g_gg_",
|
|
20
|
+
"__STrendLine": "___STrendLine_1x91g_gg_",
|
|
21
|
+
"__STrendBar": "___STrendBar_1x91g_gg_",
|
|
22
|
+
"@pulse": "pulse_1x91g",
|
|
23
|
+
"--base-bg-color": "--base-bg-color_1x91g",
|
|
24
|
+
"__SLineValue": "___SLineValue_1x91g_gg_",
|
|
25
|
+
"_percent": "__percent_1x91g_gg_",
|
|
26
|
+
"--percent": "--percent_1x91g",
|
|
27
|
+
"_color": "__color_1x91g_gg_",
|
|
28
|
+
"__SLineSegmentItem": "___SLineSegmentItem_1x91g_gg_",
|
|
29
|
+
"--color": "--color_1x91g",
|
|
30
|
+
"_segments": "__segments_1x91g_gg_",
|
|
31
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_1x91g_gg_",
|
|
32
|
+
"__SAnimationLine": "___SAnimationLine_1x91g_gg_",
|
|
33
|
+
"@move-line": "move-line_1x91g"
|
|
34
34
|
});
|
|
35
35
|
class LineRoot extends _core.Component {
|
|
36
36
|
getSegmentProps(segmentProps) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
SLineGauge {
|
|
4
4
|
height: 8px;
|
|
5
|
-
background-color: var(--base-bg-color, var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.
|
|
5
|
+
background-color: var(--base-bg-color, var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.88 0.002 175.6)));
|
|
6
6
|
border-radius: var(--intergalactic-chart-rounded, 2px);
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
position: relative;
|
|
@@ -48,7 +48,7 @@ SLineSegmentItem {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
SAnimationLine {
|
|
51
|
-
background-color: var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.
|
|
51
|
+
background-color: var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.88 0.002 175.6));
|
|
52
52
|
transition: all var(--intergalactic-duration-extra-slow, 500) ease-in-out;
|
|
53
53
|
animation-name: move-line;
|
|
54
54
|
animation-duration: 0.5s;
|
|
@@ -13,15 +13,15 @@ var _resolveColorEnhance = _interopRequireDefault(require("@semcore/core/lib/uti
|
|
|
13
13
|
var _react = _interopRequireDefault(require("react"));
|
|
14
14
|
var _Trend = require("./Trend");
|
|
15
15
|
/*!__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
|
16
|
-
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".
|
|
16
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SDonutContainer_1dzd1_gg_.__loading_1dzd1_gg_,.___SLineGauge_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendBar_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendLine_1dzd1_gg_.__loading_1dzd1_gg_{animation-name:pulse_1dzd1;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1dzd1{0%{opacity:1}50%{opacity:.4}to{opacity:1}}", /*__inner_css_end__*/"1dzd1_gg_"),
|
|
17
17
|
/*__reshadow_css_end__*/
|
|
18
18
|
{
|
|
19
|
-
"__SLineGauge": "
|
|
20
|
-
"_loading": "
|
|
21
|
-
"__SDonutContainer": "
|
|
22
|
-
"__STrendLine": "
|
|
23
|
-
"__STrendBar": "
|
|
24
|
-
"@pulse": "
|
|
19
|
+
"__SLineGauge": "___SLineGauge_1dzd1_gg_",
|
|
20
|
+
"_loading": "__loading_1dzd1_gg_",
|
|
21
|
+
"__SDonutContainer": "___SDonutContainer_1dzd1_gg_",
|
|
22
|
+
"__STrendLine": "___STrendLine_1dzd1_gg_",
|
|
23
|
+
"__STrendBar": "___STrendBar_1dzd1_gg_",
|
|
24
|
+
"@pulse": "pulse_1dzd1"
|
|
25
25
|
});
|
|
26
26
|
class TrendBarRoot extends _Trend.Trend {
|
|
27
27
|
get defaultData() {
|
|
@@ -14,15 +14,15 @@ var _uniqueID = _interopRequireDefault(require("@semcore/core/lib/utils/uniqueID
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _Trend = require("./Trend");
|
|
16
16
|
/*!__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
|
17
|
-
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".
|
|
17
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SDonutContainer_1dzd1_gg_.__loading_1dzd1_gg_,.___SLineGauge_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendBar_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendLine_1dzd1_gg_.__loading_1dzd1_gg_{animation-name:pulse_1dzd1;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1dzd1{0%{opacity:1}50%{opacity:.4}to{opacity:1}}", /*__inner_css_end__*/"1dzd1_gg_"),
|
|
18
18
|
/*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__SLineGauge": "
|
|
21
|
-
"_loading": "
|
|
22
|
-
"__SDonutContainer": "
|
|
23
|
-
"__STrendLine": "
|
|
24
|
-
"__STrendBar": "
|
|
25
|
-
"@pulse": "
|
|
20
|
+
"__SLineGauge": "___SLineGauge_1dzd1_gg_",
|
|
21
|
+
"_loading": "__loading_1dzd1_gg_",
|
|
22
|
+
"__SDonutContainer": "___SDonutContainer_1dzd1_gg_",
|
|
23
|
+
"__STrendLine": "___STrendLine_1dzd1_gg_",
|
|
24
|
+
"__STrendBar": "___STrendBar_1dzd1_gg_",
|
|
25
|
+
"@pulse": "pulse_1dzd1"
|
|
26
26
|
});
|
|
27
27
|
class TrendLineRoot extends _Trend.Trend {
|
|
28
28
|
get defaultData() {
|
|
@@ -8,17 +8,17 @@ import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEn
|
|
|
8
8
|
import { cssVariableEnhance } from '@semcore/core/lib/utils/useCssVariable';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
/*!__reshadow-styles__:"./donut.shadow.css"*/
|
|
11
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
11
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SDonutContainer_fpn7q_gg_.__loading_fpn7q_gg_,.___SLineGauge_fpn7q_gg_.__loading_fpn7q_gg_,.___STrendBar_fpn7q_gg_.__loading_fpn7q_gg_,.___STrendLine_fpn7q_gg_.__loading_fpn7q_gg_{animation-name:pulse_fpn7q;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_fpn7q{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SDonutContainer_fpn7q_gg_.__semi_fpn7q_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_fpn7q_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_fpn7q_gg_.__animate_fpn7q_gg_ circle{transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out}", /*__inner_css_end__*/"fpn7q_gg_"),
|
|
12
12
|
/*__reshadow_css_end__*/
|
|
13
13
|
{
|
|
14
|
-
"__SLineGauge": "
|
|
15
|
-
"_loading": "
|
|
16
|
-
"__SDonutContainer": "
|
|
17
|
-
"__STrendLine": "
|
|
18
|
-
"__STrendBar": "
|
|
19
|
-
"@pulse": "
|
|
20
|
-
"_animate": "
|
|
21
|
-
"_semi": "
|
|
14
|
+
"__SLineGauge": "___SLineGauge_fpn7q_gg_",
|
|
15
|
+
"_loading": "__loading_fpn7q_gg_",
|
|
16
|
+
"__SDonutContainer": "___SDonutContainer_fpn7q_gg_",
|
|
17
|
+
"__STrendLine": "___STrendLine_fpn7q_gg_",
|
|
18
|
+
"__STrendBar": "___STrendBar_fpn7q_gg_",
|
|
19
|
+
"@pulse": "pulse_fpn7q",
|
|
20
|
+
"_animate": "__animate_fpn7q_gg_",
|
|
21
|
+
"_semi": "__semi_fpn7q_gg_"
|
|
22
22
|
});
|
|
23
23
|
import { ScoreDonutUtils } from '../../utils/ScoreDonutUtils';
|
|
24
24
|
class DonutRoot extends Component {
|
|
@@ -8,26 +8,26 @@ import { createComponent, Component, Root, sstyled } from '@semcore/core';
|
|
|
8
8
|
import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
/*!__reshadow-styles__:"./line.shadow.css"*/
|
|
11
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
11
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SDonutContainer_1x91g_gg_.__loading_1x91g_gg_,.___SLineGauge_1x91g_gg_.__loading_1x91g_gg_,.___STrendBar_1x91g_gg_.__loading_1x91g_gg_,.___STrendLine_1x91g_gg_.__loading_1x91g_gg_{animation-name:pulse_1x91g;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1x91g{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SLineGauge_1x91g_gg_{height:8px;background-color:var(--base-bg-color_1x91g,var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.88 .002 175.6)));border-radius:var(--intergalactic-chart-rounded,2px);overflow:hidden;position:relative}.___SLineValue_1x91g_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded,2px) 0 0 var(--intergalactic-chart-rounded,2px)}.___SLineValue_1x91g_gg_.__percent_1x91g_gg_{width:var(--percent_1x91g)}.___SLineSegmentItem_1x91g_gg_.__color_1x91g_gg_,.___SLineValue_1x91g_gg_.__color_1x91g_gg_{background-color:var(--color_1x91g,var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2)))}.___SLineGauge_1x91g_gg_.__segments_1x91g_gg_{border-radius:var(--intergalactic-progress-bar-rounded,6px)}.___SAnimationLine_1x91g_gg_,.___SLineGaugeSegment_1x91g_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_1x91g_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_1x91g_gg_{height:8px;background:#0000;border-right:1px solid var(--intergalactic-chart-grid-border,#fff);box-sizing:initial}.___SAnimationLine_1x91g_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.88 .002 175.6));transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out;animation-name:move-line_1x91g;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}@keyframes move-line_1x91g{0%{transform:translateX(0)}to{transform:translateX(100%)}}", /*__inner_css_end__*/"1x91g_gg_"),
|
|
12
12
|
/*__reshadow_css_end__*/
|
|
13
13
|
{
|
|
14
|
-
"__SLineGauge": "
|
|
15
|
-
"_loading": "
|
|
16
|
-
"__SDonutContainer": "
|
|
17
|
-
"__STrendLine": "
|
|
18
|
-
"__STrendBar": "
|
|
19
|
-
"@pulse": "
|
|
20
|
-
"--base-bg-color": "--base-bg-
|
|
21
|
-
"__SLineValue": "
|
|
22
|
-
"_percent": "
|
|
23
|
-
"--percent": "--
|
|
24
|
-
"_color": "
|
|
25
|
-
"__SLineSegmentItem": "
|
|
26
|
-
"--color": "--
|
|
27
|
-
"_segments": "
|
|
28
|
-
"__SLineGaugeSegment": "
|
|
29
|
-
"__SAnimationLine": "
|
|
30
|
-
"@move-line": "move-
|
|
14
|
+
"__SLineGauge": "___SLineGauge_1x91g_gg_",
|
|
15
|
+
"_loading": "__loading_1x91g_gg_",
|
|
16
|
+
"__SDonutContainer": "___SDonutContainer_1x91g_gg_",
|
|
17
|
+
"__STrendLine": "___STrendLine_1x91g_gg_",
|
|
18
|
+
"__STrendBar": "___STrendBar_1x91g_gg_",
|
|
19
|
+
"@pulse": "pulse_1x91g",
|
|
20
|
+
"--base-bg-color": "--base-bg-color_1x91g",
|
|
21
|
+
"__SLineValue": "___SLineValue_1x91g_gg_",
|
|
22
|
+
"_percent": "__percent_1x91g_gg_",
|
|
23
|
+
"--percent": "--percent_1x91g",
|
|
24
|
+
"_color": "__color_1x91g_gg_",
|
|
25
|
+
"__SLineSegmentItem": "___SLineSegmentItem_1x91g_gg_",
|
|
26
|
+
"--color": "--color_1x91g",
|
|
27
|
+
"_segments": "__segments_1x91g_gg_",
|
|
28
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_1x91g_gg_",
|
|
29
|
+
"__SAnimationLine": "___SAnimationLine_1x91g_gg_",
|
|
30
|
+
"@move-line": "move-line_1x91g"
|
|
31
31
|
});
|
|
32
32
|
class LineRoot extends Component {
|
|
33
33
|
getSegmentProps(segmentProps) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
SLineGauge {
|
|
4
4
|
height: 8px;
|
|
5
|
-
background-color: var(--base-bg-color, var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.
|
|
5
|
+
background-color: var(--base-bg-color, var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.88 0.002 175.6)));
|
|
6
6
|
border-radius: var(--intergalactic-chart-rounded, 2px);
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
position: relative;
|
|
@@ -48,7 +48,7 @@ SLineSegmentItem {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
SAnimationLine {
|
|
51
|
-
background-color: var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.
|
|
51
|
+
background-color: var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.88 0.002 175.6));
|
|
52
52
|
transition: all var(--intergalactic-duration-extra-slow, 500) ease-in-out;
|
|
53
53
|
animation-name: move-line;
|
|
54
54
|
animation-duration: 0.5s;
|
|
@@ -8,15 +8,15 @@ import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEn
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { Trend } from './Trend';
|
|
10
10
|
/*!__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
|
11
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
11
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SDonutContainer_1dzd1_gg_.__loading_1dzd1_gg_,.___SLineGauge_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendBar_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendLine_1dzd1_gg_.__loading_1dzd1_gg_{animation-name:pulse_1dzd1;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1dzd1{0%{opacity:1}50%{opacity:.4}to{opacity:1}}", /*__inner_css_end__*/"1dzd1_gg_"),
|
|
12
12
|
/*__reshadow_css_end__*/
|
|
13
13
|
{
|
|
14
|
-
"__SLineGauge": "
|
|
15
|
-
"_loading": "
|
|
16
|
-
"__SDonutContainer": "
|
|
17
|
-
"__STrendLine": "
|
|
18
|
-
"__STrendBar": "
|
|
19
|
-
"@pulse": "
|
|
14
|
+
"__SLineGauge": "___SLineGauge_1dzd1_gg_",
|
|
15
|
+
"_loading": "__loading_1dzd1_gg_",
|
|
16
|
+
"__SDonutContainer": "___SDonutContainer_1dzd1_gg_",
|
|
17
|
+
"__STrendLine": "___STrendLine_1dzd1_gg_",
|
|
18
|
+
"__STrendBar": "___STrendBar_1dzd1_gg_",
|
|
19
|
+
"@pulse": "pulse_1dzd1"
|
|
20
20
|
});
|
|
21
21
|
class TrendBarRoot extends Trend {
|
|
22
22
|
get defaultData() {
|
|
@@ -9,15 +9,15 @@ import uniqueIDEnhancement from '@semcore/core/lib/utils/uniqueID';
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { Trend } from './Trend';
|
|
11
11
|
/*!__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
|
12
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
12
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SDonutContainer_1dzd1_gg_.__loading_1dzd1_gg_,.___SLineGauge_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendBar_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendLine_1dzd1_gg_.__loading_1dzd1_gg_{animation-name:pulse_1dzd1;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1dzd1{0%{opacity:1}50%{opacity:.4}to{opacity:1}}", /*__inner_css_end__*/"1dzd1_gg_"),
|
|
13
13
|
/*__reshadow_css_end__*/
|
|
14
14
|
{
|
|
15
|
-
"__SLineGauge": "
|
|
16
|
-
"_loading": "
|
|
17
|
-
"__SDonutContainer": "
|
|
18
|
-
"__STrendLine": "
|
|
19
|
-
"__STrendBar": "
|
|
20
|
-
"@pulse": "
|
|
15
|
+
"__SLineGauge": "___SLineGauge_1dzd1_gg_",
|
|
16
|
+
"_loading": "__loading_1dzd1_gg_",
|
|
17
|
+
"__SDonutContainer": "___SDonutContainer_1dzd1_gg_",
|
|
18
|
+
"__STrendLine": "___STrendLine_1dzd1_gg_",
|
|
19
|
+
"__STrendBar": "___STrendBar_1dzd1_gg_",
|
|
20
|
+
"@pulse": "pulse_1dzd1"
|
|
21
21
|
});
|
|
22
22
|
class TrendLineRoot extends Trend {
|
|
23
23
|
get defaultData() {
|
|
@@ -11,19 +11,19 @@ const style = (
|
|
|
11
11
|
/*__reshadow_css_start__*/
|
|
12
12
|
(sstyled.insert(
|
|
13
13
|
/*__inner_css_start__*/
|
|
14
|
-
".
|
|
14
|
+
".___SDonutContainer_fpn7q_gg_.__loading_fpn7q_gg_,.___SLineGauge_fpn7q_gg_.__loading_fpn7q_gg_,.___STrendBar_fpn7q_gg_.__loading_fpn7q_gg_,.___STrendLine_fpn7q_gg_.__loading_fpn7q_gg_{animation-name:pulse_fpn7q;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_fpn7q{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SDonutContainer_fpn7q_gg_.__semi_fpn7q_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_fpn7q_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_fpn7q_gg_.__animate_fpn7q_gg_ circle{transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out}",
|
|
15
15
|
/*__inner_css_end__*/
|
|
16
|
-
"
|
|
16
|
+
"fpn7q_gg_"
|
|
17
17
|
), /*__reshadow_css_end__*/
|
|
18
18
|
{
|
|
19
|
-
"__SLineGauge": "
|
|
20
|
-
"_loading": "
|
|
21
|
-
"__SDonutContainer": "
|
|
22
|
-
"__STrendLine": "
|
|
23
|
-
"__STrendBar": "
|
|
24
|
-
"@pulse": "
|
|
25
|
-
"_animate": "
|
|
26
|
-
"_semi": "
|
|
19
|
+
"__SLineGauge": "___SLineGauge_fpn7q_gg_",
|
|
20
|
+
"_loading": "__loading_fpn7q_gg_",
|
|
21
|
+
"__SDonutContainer": "___SDonutContainer_fpn7q_gg_",
|
|
22
|
+
"__STrendLine": "___STrendLine_fpn7q_gg_",
|
|
23
|
+
"__STrendBar": "___STrendBar_fpn7q_gg_",
|
|
24
|
+
"@pulse": "pulse_fpn7q",
|
|
25
|
+
"_animate": "__animate_fpn7q_gg_",
|
|
26
|
+
"_semi": "__semi_fpn7q_gg_"
|
|
27
27
|
})
|
|
28
28
|
);
|
|
29
29
|
class DonutRoot extends Component {
|
|
@@ -8,28 +8,28 @@ const style = (
|
|
|
8
8
|
/*__reshadow_css_start__*/
|
|
9
9
|
(sstyled.insert(
|
|
10
10
|
/*__inner_css_start__*/
|
|
11
|
-
".
|
|
11
|
+
".___SDonutContainer_1x91g_gg_.__loading_1x91g_gg_,.___SLineGauge_1x91g_gg_.__loading_1x91g_gg_,.___STrendBar_1x91g_gg_.__loading_1x91g_gg_,.___STrendLine_1x91g_gg_.__loading_1x91g_gg_{animation-name:pulse_1x91g;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1x91g{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SLineGauge_1x91g_gg_{height:8px;background-color:var(--base-bg-color_1x91g,var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.88 .002 175.6)));border-radius:var(--intergalactic-chart-rounded,2px);overflow:hidden;position:relative}.___SLineValue_1x91g_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded,2px) 0 0 var(--intergalactic-chart-rounded,2px)}.___SLineValue_1x91g_gg_.__percent_1x91g_gg_{width:var(--percent_1x91g)}.___SLineSegmentItem_1x91g_gg_.__color_1x91g_gg_,.___SLineValue_1x91g_gg_.__color_1x91g_gg_{background-color:var(--color_1x91g,var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2)))}.___SLineGauge_1x91g_gg_.__segments_1x91g_gg_{border-radius:var(--intergalactic-progress-bar-rounded,6px)}.___SAnimationLine_1x91g_gg_,.___SLineGaugeSegment_1x91g_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_1x91g_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_1x91g_gg_{height:8px;background:#0000;border-right:1px solid var(--intergalactic-chart-grid-border,#fff);box-sizing:initial}.___SAnimationLine_1x91g_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.88 .002 175.6));transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out;animation-name:move-line_1x91g;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}@keyframes move-line_1x91g{0%{transform:translateX(0)}to{transform:translateX(100%)}}",
|
|
12
12
|
/*__inner_css_end__*/
|
|
13
|
-
"
|
|
13
|
+
"1x91g_gg_"
|
|
14
14
|
), /*__reshadow_css_end__*/
|
|
15
15
|
{
|
|
16
|
-
"__SLineGauge": "
|
|
17
|
-
"_loading": "
|
|
18
|
-
"__SDonutContainer": "
|
|
19
|
-
"__STrendLine": "
|
|
20
|
-
"__STrendBar": "
|
|
21
|
-
"@pulse": "
|
|
22
|
-
"--base-bg-color": "--base-bg-
|
|
23
|
-
"__SLineValue": "
|
|
24
|
-
"_percent": "
|
|
25
|
-
"--percent": "--
|
|
26
|
-
"_color": "
|
|
27
|
-
"__SLineSegmentItem": "
|
|
28
|
-
"--color": "--
|
|
29
|
-
"_segments": "
|
|
30
|
-
"__SLineGaugeSegment": "
|
|
31
|
-
"__SAnimationLine": "
|
|
32
|
-
"@move-line": "move-
|
|
16
|
+
"__SLineGauge": "___SLineGauge_1x91g_gg_",
|
|
17
|
+
"_loading": "__loading_1x91g_gg_",
|
|
18
|
+
"__SDonutContainer": "___SDonutContainer_1x91g_gg_",
|
|
19
|
+
"__STrendLine": "___STrendLine_1x91g_gg_",
|
|
20
|
+
"__STrendBar": "___STrendBar_1x91g_gg_",
|
|
21
|
+
"@pulse": "pulse_1x91g",
|
|
22
|
+
"--base-bg-color": "--base-bg-color_1x91g",
|
|
23
|
+
"__SLineValue": "___SLineValue_1x91g_gg_",
|
|
24
|
+
"_percent": "__percent_1x91g_gg_",
|
|
25
|
+
"--percent": "--percent_1x91g",
|
|
26
|
+
"_color": "__color_1x91g_gg_",
|
|
27
|
+
"__SLineSegmentItem": "___SLineSegmentItem_1x91g_gg_",
|
|
28
|
+
"--color": "--color_1x91g",
|
|
29
|
+
"_segments": "__segments_1x91g_gg_",
|
|
30
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_1x91g_gg_",
|
|
31
|
+
"__SAnimationLine": "___SAnimationLine_1x91g_gg_",
|
|
32
|
+
"@move-line": "move-line_1x91g"
|
|
33
33
|
})
|
|
34
34
|
);
|
|
35
35
|
class LineRoot extends Component {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
SLineGauge {
|
|
4
4
|
height: 8px;
|
|
5
|
-
background-color: var(--base-bg-color, var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.
|
|
5
|
+
background-color: var(--base-bg-color, var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.88 0.002 175.6)));
|
|
6
6
|
border-radius: var(--intergalactic-chart-rounded, 2px);
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
position: relative;
|
|
@@ -48,7 +48,7 @@ SLineSegmentItem {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
SAnimationLine {
|
|
51
|
-
background-color: var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.
|
|
51
|
+
background-color: var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.88 0.002 175.6));
|
|
52
52
|
transition: all var(--intergalactic-duration-extra-slow, 500) ease-in-out;
|
|
53
53
|
animation-name: move-line;
|
|
54
54
|
animation-duration: 0.5s;
|
|
@@ -10,17 +10,17 @@ const style = (
|
|
|
10
10
|
/*__reshadow_css_start__*/
|
|
11
11
|
(sstyled.insert(
|
|
12
12
|
/*__inner_css_start__*/
|
|
13
|
-
".
|
|
13
|
+
".___SDonutContainer_1dzd1_gg_.__loading_1dzd1_gg_,.___SLineGauge_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendBar_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendLine_1dzd1_gg_.__loading_1dzd1_gg_{animation-name:pulse_1dzd1;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1dzd1{0%{opacity:1}50%{opacity:.4}to{opacity:1}}",
|
|
14
14
|
/*__inner_css_end__*/
|
|
15
|
-
"
|
|
15
|
+
"1dzd1_gg_"
|
|
16
16
|
), /*__reshadow_css_end__*/
|
|
17
17
|
{
|
|
18
|
-
"__SLineGauge": "
|
|
19
|
-
"_loading": "
|
|
20
|
-
"__SDonutContainer": "
|
|
21
|
-
"__STrendLine": "
|
|
22
|
-
"__STrendBar": "
|
|
23
|
-
"@pulse": "
|
|
18
|
+
"__SLineGauge": "___SLineGauge_1dzd1_gg_",
|
|
19
|
+
"_loading": "__loading_1dzd1_gg_",
|
|
20
|
+
"__SDonutContainer": "___SDonutContainer_1dzd1_gg_",
|
|
21
|
+
"__STrendLine": "___STrendLine_1dzd1_gg_",
|
|
22
|
+
"__STrendBar": "___STrendBar_1dzd1_gg_",
|
|
23
|
+
"@pulse": "pulse_1dzd1"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
class TrendBarRoot extends Trend {
|
|
@@ -11,17 +11,17 @@ const style = (
|
|
|
11
11
|
/*__reshadow_css_start__*/
|
|
12
12
|
(sstyled.insert(
|
|
13
13
|
/*__inner_css_start__*/
|
|
14
|
-
".
|
|
14
|
+
".___SDonutContainer_1dzd1_gg_.__loading_1dzd1_gg_,.___SLineGauge_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendBar_1dzd1_gg_.__loading_1dzd1_gg_,.___STrendLine_1dzd1_gg_.__loading_1dzd1_gg_{animation-name:pulse_1dzd1;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1dzd1{0%{opacity:1}50%{opacity:.4}to{opacity:1}}",
|
|
15
15
|
/*__inner_css_end__*/
|
|
16
|
-
"
|
|
16
|
+
"1dzd1_gg_"
|
|
17
17
|
), /*__reshadow_css_end__*/
|
|
18
18
|
{
|
|
19
|
-
"__SLineGauge": "
|
|
20
|
-
"_loading": "
|
|
21
|
-
"__SDonutContainer": "
|
|
22
|
-
"__STrendLine": "
|
|
23
|
-
"__STrendBar": "
|
|
24
|
-
"@pulse": "
|
|
19
|
+
"__SLineGauge": "___SLineGauge_1dzd1_gg_",
|
|
20
|
+
"_loading": "__loading_1dzd1_gg_",
|
|
21
|
+
"__SDonutContainer": "___SDonutContainer_1dzd1_gg_",
|
|
22
|
+
"__STrendLine": "___STrendLine_1dzd1_gg_",
|
|
23
|
+
"__STrendBar": "___STrendBar_1dzd1_gg_",
|
|
24
|
+
"@pulse": "pulse_1dzd1"
|
|
25
25
|
})
|
|
26
26
|
);
|
|
27
27
|
class TrendLineRoot extends Trend {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/mini-chart",
|
|
3
3
|
"description": "Semrush MiniChart Component",
|
|
4
|
-
"version": "17.2.
|
|
4
|
+
"version": "17.2.2-prerelease.4",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"require": "./lib/cjs/index.js"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@semcore/base-components": "^17.2.2-prerelease.
|
|
17
|
+
"@semcore/base-components": "^17.2.2-prerelease.4"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"directory": "semcore/mini-chart"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@semcore/
|
|
26
|
-
"@semcore/
|
|
27
|
-
"@semcore/
|
|
25
|
+
"@semcore/base-components": "17.2.2-prerelease.4",
|
|
26
|
+
"@semcore/core": "17.3.1-prerelease.4",
|
|
27
|
+
"@semcore/testing-utils": "1.0.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "pnpm semcore-builder --source=ts && pnpm vite build"
|