@semcore/mini-chart 17.0.0 → 17.0.1-prerelease.0
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/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/trend/Bar.js +7 -7
- package/lib/es6/component/trend/Line.js +7 -7
- package/lib/esm/component/score/Donut.mjs +11 -10
- package/lib/esm/component/score/Line.mjs +20 -19
- package/lib/esm/component/trend/Bar.mjs +9 -8
- package/lib/esm/component/trend/Line.mjs +9 -8
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -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__*/"@keyframes
|
|
17
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_w54vj{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_w54vj_gg_.__loading_w54vj_gg_,.___SLineGauge_w54vj_gg_.__loading_w54vj_gg_,.___STrendBar_w54vj_gg_.__loading_w54vj_gg_,.___STrendLine_w54vj_gg_.__loading_w54vj_gg_{animation-name:pulse_w54vj;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SDonutContainer_w54vj_gg_.__semi_w54vj_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_w54vj_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_w54vj_gg_.__animate_w54vj_gg_ circle{transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out}", /*__inner_css_end__*/"w54vj_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_w54vj_gg_",
|
|
21
|
+
"_loading": "__loading_w54vj_gg_",
|
|
22
|
+
"__SDonutContainer": "___SDonutContainer_w54vj_gg_",
|
|
23
|
+
"__STrendLine": "___STrendLine_w54vj_gg_",
|
|
24
|
+
"__STrendBar": "___STrendBar_w54vj_gg_",
|
|
25
|
+
"@pulse": "pulse_w54vj",
|
|
26
|
+
"_animate": "__animate_w54vj_gg_",
|
|
27
|
+
"_semi": "__semi_w54vj_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__*/"@keyframes
|
|
14
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_j5lho{0%,to{opacity:1}50%{opacity:.4}}@keyframes move-line_j5lho{0%{transform:translateX(0)}to{transform:translateX(100%)}}.___SDonutContainer_j5lho_gg_.__loading_j5lho_gg_,.___SLineGauge_j5lho_gg_.__loading_j5lho_gg_,.___STrendBar_j5lho_gg_.__loading_j5lho_gg_,.___STrendLine_j5lho_gg_.__loading_j5lho_gg_{animation-name:pulse_j5lho;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SLineGauge_j5lho_gg_{height:8px;background-color:var(--base-bg-color_j5lho, var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9));border-radius:var(--intergalactic-chart-rounded, 2px);overflow:hidden;position:relative}.___SLineValue_j5lho_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded, 2px)0 0 var(--intergalactic-chart-rounded, 2px)}.___SLineValue_j5lho_gg_.__percent_j5lho_gg_{width:var(--percent_j5lho)}.___SLineSegmentItem_j5lho_gg_.__color_j5lho_gg_,.___SLineValue_j5lho_gg_.__color_j5lho_gg_{background-color:var(--color_j5lho, var(--intergalactic-chart-palette-order-1, #2bb3ff))}.___SLineGauge_j5lho_gg_.__segments_j5lho_gg_{border-radius:var(--intergalactic-progress-bar-rounded, 6px)}.___SAnimationLine_j5lho_gg_,.___SLineGaugeSegment_j5lho_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_j5lho_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_j5lho_gg_{height:8px;background:0 0;border-right-color:var(--intergalactic-chart-grid-border, #ffffff);border-right-style:solid;border-right-width:1px;box-sizing:content-box}.___SAnimationLine_j5lho_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9);transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out;animation-name:move-line_j5lho;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}", /*__inner_css_end__*/"j5lho_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_j5lho_gg_",
|
|
18
|
+
"_loading": "__loading_j5lho_gg_",
|
|
19
|
+
"__SDonutContainer": "___SDonutContainer_j5lho_gg_",
|
|
20
|
+
"__STrendLine": "___STrendLine_j5lho_gg_",
|
|
21
|
+
"__STrendBar": "___STrendBar_j5lho_gg_",
|
|
22
|
+
"@pulse": "pulse_j5lho",
|
|
23
|
+
"--base-bg-color": "--base-bg-color_j5lho",
|
|
24
|
+
"__SLineValue": "___SLineValue_j5lho_gg_",
|
|
25
|
+
"_percent": "__percent_j5lho_gg_",
|
|
26
|
+
"--percent": "--percent_j5lho",
|
|
27
|
+
"_color": "__color_j5lho_gg_",
|
|
28
|
+
"__SLineSegmentItem": "___SLineSegmentItem_j5lho_gg_",
|
|
29
|
+
"--color": "--color_j5lho",
|
|
30
|
+
"_segments": "__segments_j5lho_gg_",
|
|
31
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_j5lho_gg_",
|
|
32
|
+
"__SAnimationLine": "___SAnimationLine_j5lho_gg_",
|
|
33
|
+
"@move-line": "move-line_j5lho"
|
|
34
34
|
});
|
|
35
35
|
class LineRoot extends _core.Component {
|
|
36
36
|
getSegmentProps(segmentProps) {
|
|
@@ -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__*/"@keyframes
|
|
16
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_1yrsa{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_1yrsa_gg_.__loading_1yrsa_gg_,.___SLineGauge_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendBar_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendLine_1yrsa_gg_.__loading_1yrsa_gg_{animation-name:pulse_1yrsa;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}", /*__inner_css_end__*/"1yrsa_gg_"),
|
|
17
17
|
/*__reshadow_css_end__*/
|
|
18
18
|
{
|
|
19
|
-
"__SLineGauge": "
|
|
20
|
-
"_loading": "
|
|
21
|
-
"__SDonutContainer": "
|
|
22
|
-
"__STrendLine": "
|
|
23
|
-
"__STrendBar": "
|
|
24
|
-
"@pulse": "
|
|
19
|
+
"__SLineGauge": "___SLineGauge_1yrsa_gg_",
|
|
20
|
+
"_loading": "__loading_1yrsa_gg_",
|
|
21
|
+
"__SDonutContainer": "___SDonutContainer_1yrsa_gg_",
|
|
22
|
+
"__STrendLine": "___STrendLine_1yrsa_gg_",
|
|
23
|
+
"__STrendBar": "___STrendBar_1yrsa_gg_",
|
|
24
|
+
"@pulse": "pulse_1yrsa"
|
|
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__*/"@keyframes
|
|
17
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_1yrsa{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_1yrsa_gg_.__loading_1yrsa_gg_,.___SLineGauge_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendBar_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendLine_1yrsa_gg_.__loading_1yrsa_gg_{animation-name:pulse_1yrsa;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}", /*__inner_css_end__*/"1yrsa_gg_"),
|
|
18
18
|
/*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__SLineGauge": "
|
|
21
|
-
"_loading": "
|
|
22
|
-
"__SDonutContainer": "
|
|
23
|
-
"__STrendLine": "
|
|
24
|
-
"__STrendBar": "
|
|
25
|
-
"@pulse": "
|
|
20
|
+
"__SLineGauge": "___SLineGauge_1yrsa_gg_",
|
|
21
|
+
"_loading": "__loading_1yrsa_gg_",
|
|
22
|
+
"__SDonutContainer": "___SDonutContainer_1yrsa_gg_",
|
|
23
|
+
"__STrendLine": "___STrendLine_1yrsa_gg_",
|
|
24
|
+
"__STrendBar": "___STrendBar_1yrsa_gg_",
|
|
25
|
+
"@pulse": "pulse_1yrsa"
|
|
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__*/"@keyframes
|
|
11
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_w54vj{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_w54vj_gg_.__loading_w54vj_gg_,.___SLineGauge_w54vj_gg_.__loading_w54vj_gg_,.___STrendBar_w54vj_gg_.__loading_w54vj_gg_,.___STrendLine_w54vj_gg_.__loading_w54vj_gg_{animation-name:pulse_w54vj;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SDonutContainer_w54vj_gg_.__semi_w54vj_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_w54vj_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_w54vj_gg_.__animate_w54vj_gg_ circle{transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out}", /*__inner_css_end__*/"w54vj_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_w54vj_gg_",
|
|
15
|
+
"_loading": "__loading_w54vj_gg_",
|
|
16
|
+
"__SDonutContainer": "___SDonutContainer_w54vj_gg_",
|
|
17
|
+
"__STrendLine": "___STrendLine_w54vj_gg_",
|
|
18
|
+
"__STrendBar": "___STrendBar_w54vj_gg_",
|
|
19
|
+
"@pulse": "pulse_w54vj",
|
|
20
|
+
"_animate": "__animate_w54vj_gg_",
|
|
21
|
+
"_semi": "__semi_w54vj_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__*/"@keyframes
|
|
11
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_j5lho{0%,to{opacity:1}50%{opacity:.4}}@keyframes move-line_j5lho{0%{transform:translateX(0)}to{transform:translateX(100%)}}.___SDonutContainer_j5lho_gg_.__loading_j5lho_gg_,.___SLineGauge_j5lho_gg_.__loading_j5lho_gg_,.___STrendBar_j5lho_gg_.__loading_j5lho_gg_,.___STrendLine_j5lho_gg_.__loading_j5lho_gg_{animation-name:pulse_j5lho;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SLineGauge_j5lho_gg_{height:8px;background-color:var(--base-bg-color_j5lho, var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9));border-radius:var(--intergalactic-chart-rounded, 2px);overflow:hidden;position:relative}.___SLineValue_j5lho_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded, 2px)0 0 var(--intergalactic-chart-rounded, 2px)}.___SLineValue_j5lho_gg_.__percent_j5lho_gg_{width:var(--percent_j5lho)}.___SLineSegmentItem_j5lho_gg_.__color_j5lho_gg_,.___SLineValue_j5lho_gg_.__color_j5lho_gg_{background-color:var(--color_j5lho, var(--intergalactic-chart-palette-order-1, #2bb3ff))}.___SLineGauge_j5lho_gg_.__segments_j5lho_gg_{border-radius:var(--intergalactic-progress-bar-rounded, 6px)}.___SAnimationLine_j5lho_gg_,.___SLineGaugeSegment_j5lho_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_j5lho_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_j5lho_gg_{height:8px;background:0 0;border-right-color:var(--intergalactic-chart-grid-border, #ffffff);border-right-style:solid;border-right-width:1px;box-sizing:content-box}.___SAnimationLine_j5lho_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9);transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out;animation-name:move-line_j5lho;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}", /*__inner_css_end__*/"j5lho_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_j5lho_gg_",
|
|
15
|
+
"_loading": "__loading_j5lho_gg_",
|
|
16
|
+
"__SDonutContainer": "___SDonutContainer_j5lho_gg_",
|
|
17
|
+
"__STrendLine": "___STrendLine_j5lho_gg_",
|
|
18
|
+
"__STrendBar": "___STrendBar_j5lho_gg_",
|
|
19
|
+
"@pulse": "pulse_j5lho",
|
|
20
|
+
"--base-bg-color": "--base-bg-color_j5lho",
|
|
21
|
+
"__SLineValue": "___SLineValue_j5lho_gg_",
|
|
22
|
+
"_percent": "__percent_j5lho_gg_",
|
|
23
|
+
"--percent": "--percent_j5lho",
|
|
24
|
+
"_color": "__color_j5lho_gg_",
|
|
25
|
+
"__SLineSegmentItem": "___SLineSegmentItem_j5lho_gg_",
|
|
26
|
+
"--color": "--color_j5lho",
|
|
27
|
+
"_segments": "__segments_j5lho_gg_",
|
|
28
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_j5lho_gg_",
|
|
29
|
+
"__SAnimationLine": "___SAnimationLine_j5lho_gg_",
|
|
30
|
+
"@move-line": "move-line_j5lho"
|
|
31
31
|
});
|
|
32
32
|
class LineRoot extends Component {
|
|
33
33
|
getSegmentProps(segmentProps) {
|
|
@@ -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__*/"@keyframes
|
|
11
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_1yrsa{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_1yrsa_gg_.__loading_1yrsa_gg_,.___SLineGauge_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendBar_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendLine_1yrsa_gg_.__loading_1yrsa_gg_{animation-name:pulse_1yrsa;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}", /*__inner_css_end__*/"1yrsa_gg_"),
|
|
12
12
|
/*__reshadow_css_end__*/
|
|
13
13
|
{
|
|
14
|
-
"__SLineGauge": "
|
|
15
|
-
"_loading": "
|
|
16
|
-
"__SDonutContainer": "
|
|
17
|
-
"__STrendLine": "
|
|
18
|
-
"__STrendBar": "
|
|
19
|
-
"@pulse": "
|
|
14
|
+
"__SLineGauge": "___SLineGauge_1yrsa_gg_",
|
|
15
|
+
"_loading": "__loading_1yrsa_gg_",
|
|
16
|
+
"__SDonutContainer": "___SDonutContainer_1yrsa_gg_",
|
|
17
|
+
"__STrendLine": "___STrendLine_1yrsa_gg_",
|
|
18
|
+
"__STrendBar": "___STrendBar_1yrsa_gg_",
|
|
19
|
+
"@pulse": "pulse_1yrsa"
|
|
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__*/"@keyframes
|
|
12
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_1yrsa{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_1yrsa_gg_.__loading_1yrsa_gg_,.___SLineGauge_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendBar_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendLine_1yrsa_gg_.__loading_1yrsa_gg_{animation-name:pulse_1yrsa;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}", /*__inner_css_end__*/"1yrsa_gg_"),
|
|
13
13
|
/*__reshadow_css_end__*/
|
|
14
14
|
{
|
|
15
|
-
"__SLineGauge": "
|
|
16
|
-
"_loading": "
|
|
17
|
-
"__SDonutContainer": "
|
|
18
|
-
"__STrendLine": "
|
|
19
|
-
"__STrendBar": "
|
|
20
|
-
"@pulse": "
|
|
15
|
+
"__SLineGauge": "___SLineGauge_1yrsa_gg_",
|
|
16
|
+
"_loading": "__loading_1yrsa_gg_",
|
|
17
|
+
"__SDonutContainer": "___SDonutContainer_1yrsa_gg_",
|
|
18
|
+
"__STrendLine": "___STrendLine_1yrsa_gg_",
|
|
19
|
+
"__STrendBar": "___STrendBar_1yrsa_gg_",
|
|
20
|
+
"@pulse": "pulse_1yrsa"
|
|
21
21
|
});
|
|
22
22
|
class TrendLineRoot extends Trend {
|
|
23
23
|
get defaultData() {
|
|
@@ -6,23 +6,24 @@ import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEn
|
|
|
6
6
|
import { cssVariableEnhance } from "@semcore/core/lib/utils/useCssVariable";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { ScoreDonutUtils } from "../../utils/ScoreDonutUtils.mjs";
|
|
9
|
+
/*!__reshadow-styles__:"./donut.shadow.css"*/
|
|
9
10
|
const style = (
|
|
10
11
|
/*__reshadow_css_start__*/
|
|
11
12
|
(sstyled.insert(
|
|
12
13
|
/*__inner_css_start__*/
|
|
13
|
-
"@keyframes
|
|
14
|
+
"@keyframes pulse_w54vj{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_w54vj_gg_.__loading_w54vj_gg_,.___SLineGauge_w54vj_gg_.__loading_w54vj_gg_,.___STrendBar_w54vj_gg_.__loading_w54vj_gg_,.___STrendLine_w54vj_gg_.__loading_w54vj_gg_{animation-name:pulse_w54vj;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SDonutContainer_w54vj_gg_.__semi_w54vj_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_w54vj_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_w54vj_gg_.__animate_w54vj_gg_ circle{transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out}",
|
|
14
15
|
/*__inner_css_end__*/
|
|
15
|
-
"
|
|
16
|
+
"w54vj_gg_"
|
|
16
17
|
), /*__reshadow_css_end__*/
|
|
17
18
|
{
|
|
18
|
-
"__SLineGauge": "
|
|
19
|
-
"_loading": "
|
|
20
|
-
"__SDonutContainer": "
|
|
21
|
-
"__STrendLine": "
|
|
22
|
-
"__STrendBar": "
|
|
23
|
-
"@pulse": "
|
|
24
|
-
"_animate": "
|
|
25
|
-
"_semi": "
|
|
19
|
+
"__SLineGauge": "___SLineGauge_w54vj_gg_",
|
|
20
|
+
"_loading": "__loading_w54vj_gg_",
|
|
21
|
+
"__SDonutContainer": "___SDonutContainer_w54vj_gg_",
|
|
22
|
+
"__STrendLine": "___STrendLine_w54vj_gg_",
|
|
23
|
+
"__STrendBar": "___STrendBar_w54vj_gg_",
|
|
24
|
+
"@pulse": "pulse_w54vj",
|
|
25
|
+
"_animate": "__animate_w54vj_gg_",
|
|
26
|
+
"_semi": "__semi_w54vj_gg_"
|
|
26
27
|
})
|
|
27
28
|
);
|
|
28
29
|
class DonutRoot extends Component {
|
|
@@ -3,32 +3,33 @@ import { sstyled, Component, assignProps, createComponent } from "@semcore/core"
|
|
|
3
3
|
import { Box, Flex } from "@semcore/base-components";
|
|
4
4
|
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
5
5
|
import React from "react";
|
|
6
|
+
/*!__reshadow-styles__:"./line.shadow.css"*/
|
|
6
7
|
const style = (
|
|
7
8
|
/*__reshadow_css_start__*/
|
|
8
9
|
(sstyled.insert(
|
|
9
10
|
/*__inner_css_start__*/
|
|
10
|
-
"@keyframes
|
|
11
|
+
"@keyframes pulse_j5lho{0%,to{opacity:1}50%{opacity:.4}}@keyframes move-line_j5lho{0%{transform:translateX(0)}to{transform:translateX(100%)}}.___SDonutContainer_j5lho_gg_.__loading_j5lho_gg_,.___SLineGauge_j5lho_gg_.__loading_j5lho_gg_,.___STrendBar_j5lho_gg_.__loading_j5lho_gg_,.___STrendLine_j5lho_gg_.__loading_j5lho_gg_{animation-name:pulse_j5lho;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SLineGauge_j5lho_gg_{height:8px;background-color:var(--base-bg-color_j5lho, var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9));border-radius:var(--intergalactic-chart-rounded, 2px);overflow:hidden;position:relative}.___SLineValue_j5lho_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded, 2px)0 0 var(--intergalactic-chart-rounded, 2px)}.___SLineValue_j5lho_gg_.__percent_j5lho_gg_{width:var(--percent_j5lho)}.___SLineSegmentItem_j5lho_gg_.__color_j5lho_gg_,.___SLineValue_j5lho_gg_.__color_j5lho_gg_{background-color:var(--color_j5lho, var(--intergalactic-chart-palette-order-1, #2bb3ff))}.___SLineGauge_j5lho_gg_.__segments_j5lho_gg_{border-radius:var(--intergalactic-progress-bar-rounded, 6px)}.___SAnimationLine_j5lho_gg_,.___SLineGaugeSegment_j5lho_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_j5lho_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_j5lho_gg_{height:8px;background:0 0;border-right-color:var(--intergalactic-chart-grid-border, #ffffff);border-right-style:solid;border-right-width:1px;box-sizing:content-box}.___SAnimationLine_j5lho_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9);transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out;animation-name:move-line_j5lho;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}",
|
|
11
12
|
/*__inner_css_end__*/
|
|
12
|
-
"
|
|
13
|
+
"j5lho_gg_"
|
|
13
14
|
), /*__reshadow_css_end__*/
|
|
14
15
|
{
|
|
15
|
-
"__SLineGauge": "
|
|
16
|
-
"_loading": "
|
|
17
|
-
"__SDonutContainer": "
|
|
18
|
-
"__STrendLine": "
|
|
19
|
-
"__STrendBar": "
|
|
20
|
-
"@pulse": "
|
|
21
|
-
"--base-bg-color": "--base-bg-
|
|
22
|
-
"__SLineValue": "
|
|
23
|
-
"_percent": "
|
|
24
|
-
"--percent": "--
|
|
25
|
-
"_color": "
|
|
26
|
-
"__SLineSegmentItem": "
|
|
27
|
-
"--color": "--
|
|
28
|
-
"_segments": "
|
|
29
|
-
"__SLineGaugeSegment": "
|
|
30
|
-
"__SAnimationLine": "
|
|
31
|
-
"@move-line": "move-
|
|
16
|
+
"__SLineGauge": "___SLineGauge_j5lho_gg_",
|
|
17
|
+
"_loading": "__loading_j5lho_gg_",
|
|
18
|
+
"__SDonutContainer": "___SDonutContainer_j5lho_gg_",
|
|
19
|
+
"__STrendLine": "___STrendLine_j5lho_gg_",
|
|
20
|
+
"__STrendBar": "___STrendBar_j5lho_gg_",
|
|
21
|
+
"@pulse": "pulse_j5lho",
|
|
22
|
+
"--base-bg-color": "--base-bg-color_j5lho",
|
|
23
|
+
"__SLineValue": "___SLineValue_j5lho_gg_",
|
|
24
|
+
"_percent": "__percent_j5lho_gg_",
|
|
25
|
+
"--percent": "--percent_j5lho",
|
|
26
|
+
"_color": "__color_j5lho_gg_",
|
|
27
|
+
"__SLineSegmentItem": "___SLineSegmentItem_j5lho_gg_",
|
|
28
|
+
"--color": "--color_j5lho",
|
|
29
|
+
"_segments": "__segments_j5lho_gg_",
|
|
30
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_j5lho_gg_",
|
|
31
|
+
"__SAnimationLine": "___SAnimationLine_j5lho_gg_",
|
|
32
|
+
"@move-line": "move-line_j5lho"
|
|
32
33
|
})
|
|
33
34
|
);
|
|
34
35
|
class LineRoot extends Component {
|
|
@@ -5,21 +5,22 @@ import { extractAriaProps } from "@semcore/core/lib/utils/ariaProps";
|
|
|
5
5
|
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { Trend } from "./Trend.mjs";
|
|
8
|
+
/*!__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
|
8
9
|
const style = (
|
|
9
10
|
/*__reshadow_css_start__*/
|
|
10
11
|
(sstyled.insert(
|
|
11
12
|
/*__inner_css_start__*/
|
|
12
|
-
"@keyframes
|
|
13
|
+
"@keyframes pulse_1yrsa{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_1yrsa_gg_.__loading_1yrsa_gg_,.___SLineGauge_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendBar_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendLine_1yrsa_gg_.__loading_1yrsa_gg_{animation-name:pulse_1yrsa;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}",
|
|
13
14
|
/*__inner_css_end__*/
|
|
14
|
-
"
|
|
15
|
+
"1yrsa_gg_"
|
|
15
16
|
), /*__reshadow_css_end__*/
|
|
16
17
|
{
|
|
17
|
-
"__SLineGauge": "
|
|
18
|
-
"_loading": "
|
|
19
|
-
"__SDonutContainer": "
|
|
20
|
-
"__STrendLine": "
|
|
21
|
-
"__STrendBar": "
|
|
22
|
-
"@pulse": "
|
|
18
|
+
"__SLineGauge": "___SLineGauge_1yrsa_gg_",
|
|
19
|
+
"_loading": "__loading_1yrsa_gg_",
|
|
20
|
+
"__SDonutContainer": "___SDonutContainer_1yrsa_gg_",
|
|
21
|
+
"__STrendLine": "___STrendLine_1yrsa_gg_",
|
|
22
|
+
"__STrendBar": "___STrendBar_1yrsa_gg_",
|
|
23
|
+
"@pulse": "pulse_1yrsa"
|
|
23
24
|
})
|
|
24
25
|
);
|
|
25
26
|
class TrendBarRoot extends Trend {
|
|
@@ -6,21 +6,22 @@ import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEn
|
|
|
6
6
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Trend } from "./Trend.mjs";
|
|
9
|
+
/*!__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
|
9
10
|
const style = (
|
|
10
11
|
/*__reshadow_css_start__*/
|
|
11
12
|
(sstyled.insert(
|
|
12
13
|
/*__inner_css_start__*/
|
|
13
|
-
"@keyframes
|
|
14
|
+
"@keyframes pulse_1yrsa{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_1yrsa_gg_.__loading_1yrsa_gg_,.___SLineGauge_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendBar_1yrsa_gg_.__loading_1yrsa_gg_,.___STrendLine_1yrsa_gg_.__loading_1yrsa_gg_{animation-name:pulse_1yrsa;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}",
|
|
14
15
|
/*__inner_css_end__*/
|
|
15
|
-
"
|
|
16
|
+
"1yrsa_gg_"
|
|
16
17
|
), /*__reshadow_css_end__*/
|
|
17
18
|
{
|
|
18
|
-
"__SLineGauge": "
|
|
19
|
-
"_loading": "
|
|
20
|
-
"__SDonutContainer": "
|
|
21
|
-
"__STrendLine": "
|
|
22
|
-
"__STrendBar": "
|
|
23
|
-
"@pulse": "
|
|
19
|
+
"__SLineGauge": "___SLineGauge_1yrsa_gg_",
|
|
20
|
+
"_loading": "__loading_1yrsa_gg_",
|
|
21
|
+
"__SDonutContainer": "___SDonutContainer_1yrsa_gg_",
|
|
22
|
+
"__STrendLine": "___STrendLine_1yrsa_gg_",
|
|
23
|
+
"__STrendBar": "___STrendBar_1yrsa_gg_",
|
|
24
|
+
"@pulse": "pulse_1yrsa"
|
|
24
25
|
})
|
|
25
26
|
);
|
|
26
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.0.0",
|
|
4
|
+
"version": "17.0.1-prerelease.0",
|
|
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.0.
|
|
17
|
+
"@semcore/base-components": "^17.0.2"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"directory": "semcore/mini-chart"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@semcore/
|
|
26
|
-
"@semcore/
|
|
25
|
+
"@semcore/base-components": "17.0.2-prerelease.0",
|
|
26
|
+
"@semcore/core": "17.0.1",
|
|
27
27
|
"@semcore/testing-utils": "1.0.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|