@semcore/mini-chart 16.2.0-prerelease.3 → 16.2.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 +1 -1
- 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 -11
- package/lib/esm/component/score/Line.mjs +19 -19
- 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
|
@@ -19,17 +19,17 @@ var _flexBox = require("@semcore/flex-box");
|
|
|
19
19
|
var _react = _interopRequireDefault(require("react"));
|
|
20
20
|
var _ScoreDonutUtils = require("../../utils/ScoreDonutUtils");
|
|
21
21
|
/*!__reshadow-styles__:"./donut.shadow.css"*/
|
|
22
|
-
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
22
|
+
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_13rfu{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_13rfu_gg_.__loading_13rfu_gg_,.___SLineGauge_13rfu_gg_.__loading_13rfu_gg_,.___STrendBar_13rfu_gg_.__loading_13rfu_gg_,.___STrendLine_13rfu_gg_.__loading_13rfu_gg_{animation-name:pulse_13rfu;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SDonutContainer_13rfu_gg_.__semi_13rfu_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_13rfu_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_13rfu_gg_.__animate_13rfu_gg_ circle{transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out}", /*__inner_css_end__*/"13rfu_gg_"),
|
|
23
23
|
/*__reshadow_css_end__*/
|
|
24
24
|
{
|
|
25
|
-
"__SLineGauge": "
|
|
26
|
-
"_loading": "
|
|
27
|
-
"__SDonutContainer": "
|
|
28
|
-
"__STrendLine": "
|
|
29
|
-
"__STrendBar": "
|
|
30
|
-
"@pulse": "
|
|
31
|
-
"_animate": "
|
|
32
|
-
"_semi": "
|
|
25
|
+
"__SLineGauge": "___SLineGauge_13rfu_gg_",
|
|
26
|
+
"_loading": "__loading_13rfu_gg_",
|
|
27
|
+
"__SDonutContainer": "___SDonutContainer_13rfu_gg_",
|
|
28
|
+
"__STrendLine": "___STrendLine_13rfu_gg_",
|
|
29
|
+
"__STrendBar": "___STrendBar_13rfu_gg_",
|
|
30
|
+
"@pulse": "pulse_13rfu",
|
|
31
|
+
"_animate": "__animate_13rfu_gg_",
|
|
32
|
+
"_semi": "__semi_13rfu_gg_"
|
|
33
33
|
});
|
|
34
34
|
var DonutRoot = /*#__PURE__*/function (_Component) {
|
|
35
35
|
function DonutRoot() {
|
|
@@ -16,26 +16,26 @@ var _resolveColorEnhance = _interopRequireDefault(require("@semcore/core/lib/uti
|
|
|
16
16
|
var _flexBox = require("@semcore/flex-box");
|
|
17
17
|
var _react = _interopRequireDefault(require("react"));
|
|
18
18
|
/*!__reshadow-styles__:"./line.shadow.css"*/
|
|
19
|
-
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
19
|
+
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_d92xt{0%,to{opacity:1}50%{opacity:.4}}@keyframes move-line_d92xt{0%{transform:translateX(0)}to{transform:translateX(100%)}}.___SDonutContainer_d92xt_gg_.__loading_d92xt_gg_,.___SLineGauge_d92xt_gg_.__loading_d92xt_gg_,.___STrendBar_d92xt_gg_.__loading_d92xt_gg_,.___STrendLine_d92xt_gg_.__loading_d92xt_gg_{animation-name:pulse_d92xt;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SLineGauge_d92xt_gg_{height:8px;background-color:var(--base-bg-color_d92xt, var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242)));border-radius:var(--intergalactic-chart-rounded, 2px);overflow:hidden;position:relative}.___SLineValue_d92xt_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded, 2px)0 0 var(--intergalactic-chart-rounded, 2px)}.___SLineValue_d92xt_gg_.__percent_d92xt_gg_{width:var(--percent_d92xt)}.___SLineSegmentItem_d92xt_gg_.__color_d92xt_gg_,.___SLineValue_d92xt_gg_.__color_d92xt_gg_{background-color:var(--color_d92xt, var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219)))}.___SLineGauge_d92xt_gg_.__segments_d92xt_gg_{border-radius:var(--intergalactic-progress-bar-rounded, 6px)}.___SAnimationLine_d92xt_gg_,.___SLineGaugeSegment_d92xt_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_d92xt_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_d92xt_gg_{height:8px;background:0 0;border-right-color:var(--intergalactic-chart-grid-border, #fff);border-right-style:solid;border-right-width:1px;box-sizing:content-box}.___SAnimationLine_d92xt_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242));transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out;animation-name:move-line_d92xt;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}", /*__inner_css_end__*/"d92xt_gg_"),
|
|
20
20
|
/*__reshadow_css_end__*/
|
|
21
21
|
{
|
|
22
|
-
"__SLineGauge": "
|
|
23
|
-
"_loading": "
|
|
24
|
-
"__SDonutContainer": "
|
|
25
|
-
"__STrendLine": "
|
|
26
|
-
"__STrendBar": "
|
|
27
|
-
"@pulse": "
|
|
28
|
-
"__SLineValue": "
|
|
29
|
-
"_percent": "
|
|
30
|
-
"--percent": "--
|
|
31
|
-
"_color": "
|
|
32
|
-
"__SLineSegmentItem": "
|
|
33
|
-
"_segments": "
|
|
34
|
-
"__SLineGaugeSegment": "
|
|
35
|
-
"__SAnimationLine": "
|
|
36
|
-
"@move-line": "move-
|
|
37
|
-
"--base-bg-color": "--base-bg-
|
|
38
|
-
"--color": "--
|
|
22
|
+
"__SLineGauge": "___SLineGauge_d92xt_gg_",
|
|
23
|
+
"_loading": "__loading_d92xt_gg_",
|
|
24
|
+
"__SDonutContainer": "___SDonutContainer_d92xt_gg_",
|
|
25
|
+
"__STrendLine": "___STrendLine_d92xt_gg_",
|
|
26
|
+
"__STrendBar": "___STrendBar_d92xt_gg_",
|
|
27
|
+
"@pulse": "pulse_d92xt",
|
|
28
|
+
"__SLineValue": "___SLineValue_d92xt_gg_",
|
|
29
|
+
"_percent": "__percent_d92xt_gg_",
|
|
30
|
+
"--percent": "--percent_d92xt",
|
|
31
|
+
"_color": "__color_d92xt_gg_",
|
|
32
|
+
"__SLineSegmentItem": "___SLineSegmentItem_d92xt_gg_",
|
|
33
|
+
"_segments": "__segments_d92xt_gg_",
|
|
34
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_d92xt_gg_",
|
|
35
|
+
"__SAnimationLine": "___SAnimationLine_d92xt_gg_",
|
|
36
|
+
"@move-line": "move-line_d92xt",
|
|
37
|
+
"--base-bg-color": "--base-bg-color_d92xt",
|
|
38
|
+
"--color": "--color_d92xt"
|
|
39
39
|
});
|
|
40
40
|
var LineRoot = /*#__PURE__*/function (_Component) {
|
|
41
41
|
function LineRoot() {
|
|
@@ -19,15 +19,15 @@ var _flexBox = require("@semcore/flex-box");
|
|
|
19
19
|
var _react = _interopRequireDefault(require("react"));
|
|
20
20
|
var _Trend2 = require("./Trend");
|
|
21
21
|
/*!__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
|
22
|
-
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
22
|
+
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_13bqc{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_13bqc_gg_.__loading_13bqc_gg_,.___SLineGauge_13bqc_gg_.__loading_13bqc_gg_,.___STrendBar_13bqc_gg_.__loading_13bqc_gg_,.___STrendLine_13bqc_gg_.__loading_13bqc_gg_{animation-name:pulse_13bqc;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}", /*__inner_css_end__*/"13bqc_gg_"),
|
|
23
23
|
/*__reshadow_css_end__*/
|
|
24
24
|
{
|
|
25
|
-
"__SLineGauge": "
|
|
26
|
-
"_loading": "
|
|
27
|
-
"__SDonutContainer": "
|
|
28
|
-
"__STrendLine": "
|
|
29
|
-
"__STrendBar": "
|
|
30
|
-
"@pulse": "
|
|
25
|
+
"__SLineGauge": "___SLineGauge_13bqc_gg_",
|
|
26
|
+
"_loading": "__loading_13bqc_gg_",
|
|
27
|
+
"__SDonutContainer": "___SDonutContainer_13bqc_gg_",
|
|
28
|
+
"__STrendLine": "___STrendLine_13bqc_gg_",
|
|
29
|
+
"__STrendBar": "___STrendBar_13bqc_gg_",
|
|
30
|
+
"@pulse": "pulse_13bqc"
|
|
31
31
|
});
|
|
32
32
|
var TrendBarRoot = /*#__PURE__*/function (_Trend) {
|
|
33
33
|
function TrendBarRoot() {
|
|
@@ -20,15 +20,15 @@ var _flexBox = require("@semcore/flex-box");
|
|
|
20
20
|
var _react = _interopRequireDefault(require("react"));
|
|
21
21
|
var _Trend2 = require("./Trend");
|
|
22
22
|
/*!__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
|
23
|
-
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
23
|
+
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_13bqc{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_13bqc_gg_.__loading_13bqc_gg_,.___SLineGauge_13bqc_gg_.__loading_13bqc_gg_,.___STrendBar_13bqc_gg_.__loading_13bqc_gg_,.___STrendLine_13bqc_gg_.__loading_13bqc_gg_{animation-name:pulse_13bqc;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}", /*__inner_css_end__*/"13bqc_gg_"),
|
|
24
24
|
/*__reshadow_css_end__*/
|
|
25
25
|
{
|
|
26
|
-
"__SLineGauge": "
|
|
27
|
-
"_loading": "
|
|
28
|
-
"__SDonutContainer": "
|
|
29
|
-
"__STrendLine": "
|
|
30
|
-
"__STrendBar": "
|
|
31
|
-
"@pulse": "
|
|
26
|
+
"__SLineGauge": "___SLineGauge_13bqc_gg_",
|
|
27
|
+
"_loading": "__loading_13bqc_gg_",
|
|
28
|
+
"__SDonutContainer": "___SDonutContainer_13bqc_gg_",
|
|
29
|
+
"__STrendLine": "___STrendLine_13bqc_gg_",
|
|
30
|
+
"__STrendBar": "___STrendBar_13bqc_gg_",
|
|
31
|
+
"@pulse": "pulse_13bqc"
|
|
32
32
|
});
|
|
33
33
|
var TrendLineRoot = /*#__PURE__*/function (_Trend) {
|
|
34
34
|
function TrendLineRoot() {
|
|
@@ -14,17 +14,17 @@ import { cssVariableEnhance } from '@semcore/core/lib/utils/useCssVariable';
|
|
|
14
14
|
import { Box } from '@semcore/flex-box';
|
|
15
15
|
import React from 'react';
|
|
16
16
|
/*!__reshadow-styles__:"./donut.shadow.css"*/
|
|
17
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
17
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_13rfu{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_13rfu_gg_.__loading_13rfu_gg_,.___SLineGauge_13rfu_gg_.__loading_13rfu_gg_,.___STrendBar_13rfu_gg_.__loading_13rfu_gg_,.___STrendLine_13rfu_gg_.__loading_13rfu_gg_{animation-name:pulse_13rfu;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SDonutContainer_13rfu_gg_.__semi_13rfu_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_13rfu_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_13rfu_gg_.__animate_13rfu_gg_ circle{transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out}", /*__inner_css_end__*/"13rfu_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_13rfu_gg_",
|
|
21
|
+
"_loading": "__loading_13rfu_gg_",
|
|
22
|
+
"__SDonutContainer": "___SDonutContainer_13rfu_gg_",
|
|
23
|
+
"__STrendLine": "___STrendLine_13rfu_gg_",
|
|
24
|
+
"__STrendBar": "___STrendBar_13rfu_gg_",
|
|
25
|
+
"@pulse": "pulse_13rfu",
|
|
26
|
+
"_animate": "__animate_13rfu_gg_",
|
|
27
|
+
"_semi": "__semi_13rfu_gg_"
|
|
28
28
|
});
|
|
29
29
|
import { ScoreDonutUtils } from '../../utils/ScoreDonutUtils';
|
|
30
30
|
var DonutRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -13,26 +13,26 @@ import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEn
|
|
|
13
13
|
import { Box, Flex } from '@semcore/flex-box';
|
|
14
14
|
import React from 'react';
|
|
15
15
|
/*!__reshadow-styles__:"./line.shadow.css"*/
|
|
16
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
16
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_d92xt{0%,to{opacity:1}50%{opacity:.4}}@keyframes move-line_d92xt{0%{transform:translateX(0)}to{transform:translateX(100%)}}.___SDonutContainer_d92xt_gg_.__loading_d92xt_gg_,.___SLineGauge_d92xt_gg_.__loading_d92xt_gg_,.___STrendBar_d92xt_gg_.__loading_d92xt_gg_,.___STrendLine_d92xt_gg_.__loading_d92xt_gg_{animation-name:pulse_d92xt;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SLineGauge_d92xt_gg_{height:8px;background-color:var(--base-bg-color_d92xt, var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242)));border-radius:var(--intergalactic-chart-rounded, 2px);overflow:hidden;position:relative}.___SLineValue_d92xt_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded, 2px)0 0 var(--intergalactic-chart-rounded, 2px)}.___SLineValue_d92xt_gg_.__percent_d92xt_gg_{width:var(--percent_d92xt)}.___SLineSegmentItem_d92xt_gg_.__color_d92xt_gg_,.___SLineValue_d92xt_gg_.__color_d92xt_gg_{background-color:var(--color_d92xt, var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219)))}.___SLineGauge_d92xt_gg_.__segments_d92xt_gg_{border-radius:var(--intergalactic-progress-bar-rounded, 6px)}.___SAnimationLine_d92xt_gg_,.___SLineGaugeSegment_d92xt_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_d92xt_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_d92xt_gg_{height:8px;background:0 0;border-right-color:var(--intergalactic-chart-grid-border, #fff);border-right-style:solid;border-right-width:1px;box-sizing:content-box}.___SAnimationLine_d92xt_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242));transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out;animation-name:move-line_d92xt;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}", /*__inner_css_end__*/"d92xt_gg_"),
|
|
17
17
|
/*__reshadow_css_end__*/
|
|
18
18
|
{
|
|
19
|
-
"__SLineGauge": "
|
|
20
|
-
"_loading": "
|
|
21
|
-
"__SDonutContainer": "
|
|
22
|
-
"__STrendLine": "
|
|
23
|
-
"__STrendBar": "
|
|
24
|
-
"@pulse": "
|
|
25
|
-
"__SLineValue": "
|
|
26
|
-
"_percent": "
|
|
27
|
-
"--percent": "--
|
|
28
|
-
"_color": "
|
|
29
|
-
"__SLineSegmentItem": "
|
|
30
|
-
"_segments": "
|
|
31
|
-
"__SLineGaugeSegment": "
|
|
32
|
-
"__SAnimationLine": "
|
|
33
|
-
"@move-line": "move-
|
|
34
|
-
"--base-bg-color": "--base-bg-
|
|
35
|
-
"--color": "--
|
|
19
|
+
"__SLineGauge": "___SLineGauge_d92xt_gg_",
|
|
20
|
+
"_loading": "__loading_d92xt_gg_",
|
|
21
|
+
"__SDonutContainer": "___SDonutContainer_d92xt_gg_",
|
|
22
|
+
"__STrendLine": "___STrendLine_d92xt_gg_",
|
|
23
|
+
"__STrendBar": "___STrendBar_d92xt_gg_",
|
|
24
|
+
"@pulse": "pulse_d92xt",
|
|
25
|
+
"__SLineValue": "___SLineValue_d92xt_gg_",
|
|
26
|
+
"_percent": "__percent_d92xt_gg_",
|
|
27
|
+
"--percent": "--percent_d92xt",
|
|
28
|
+
"_color": "__color_d92xt_gg_",
|
|
29
|
+
"__SLineSegmentItem": "___SLineSegmentItem_d92xt_gg_",
|
|
30
|
+
"_segments": "__segments_d92xt_gg_",
|
|
31
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_d92xt_gg_",
|
|
32
|
+
"__SAnimationLine": "___SAnimationLine_d92xt_gg_",
|
|
33
|
+
"@move-line": "move-line_d92xt",
|
|
34
|
+
"--base-bg-color": "--base-bg-color_d92xt",
|
|
35
|
+
"--color": "--color_d92xt"
|
|
36
36
|
});
|
|
37
37
|
var LineRoot = /*#__PURE__*/function (_Component) {
|
|
38
38
|
function LineRoot() {
|
|
@@ -14,15 +14,15 @@ import { Box } from '@semcore/flex-box';
|
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { Trend } from './Trend';
|
|
16
16
|
/*!__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
|
17
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
17
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_13bqc{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_13bqc_gg_.__loading_13bqc_gg_,.___SLineGauge_13bqc_gg_.__loading_13bqc_gg_,.___STrendBar_13bqc_gg_.__loading_13bqc_gg_,.___STrendLine_13bqc_gg_.__loading_13bqc_gg_{animation-name:pulse_13bqc;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}", /*__inner_css_end__*/"13bqc_gg_"),
|
|
18
18
|
/*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__SLineGauge": "
|
|
21
|
-
"_loading": "
|
|
22
|
-
"__SDonutContainer": "
|
|
23
|
-
"__STrendLine": "
|
|
24
|
-
"__STrendBar": "
|
|
25
|
-
"@pulse": "
|
|
20
|
+
"__SLineGauge": "___SLineGauge_13bqc_gg_",
|
|
21
|
+
"_loading": "__loading_13bqc_gg_",
|
|
22
|
+
"__SDonutContainer": "___SDonutContainer_13bqc_gg_",
|
|
23
|
+
"__STrendLine": "___STrendLine_13bqc_gg_",
|
|
24
|
+
"__STrendBar": "___STrendBar_13bqc_gg_",
|
|
25
|
+
"@pulse": "pulse_13bqc"
|
|
26
26
|
});
|
|
27
27
|
var TrendBarRoot = /*#__PURE__*/function (_Trend) {
|
|
28
28
|
function TrendBarRoot() {
|
|
@@ -15,15 +15,15 @@ import { Box } from '@semcore/flex-box';
|
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { Trend } from './Trend';
|
|
17
17
|
/*!__reshadow-styles__:"../skeleton/skeleton.shadow.css"*/
|
|
18
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
18
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes pulse_13bqc{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_13bqc_gg_.__loading_13bqc_gg_,.___SLineGauge_13bqc_gg_.__loading_13bqc_gg_,.___STrendBar_13bqc_gg_.__loading_13bqc_gg_,.___STrendLine_13bqc_gg_.__loading_13bqc_gg_{animation-name:pulse_13bqc;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}", /*__inner_css_end__*/"13bqc_gg_"),
|
|
19
19
|
/*__reshadow_css_end__*/
|
|
20
20
|
{
|
|
21
|
-
"__SLineGauge": "
|
|
22
|
-
"_loading": "
|
|
23
|
-
"__SDonutContainer": "
|
|
24
|
-
"__STrendLine": "
|
|
25
|
-
"__STrendBar": "
|
|
26
|
-
"@pulse": "
|
|
21
|
+
"__SLineGauge": "___SLineGauge_13bqc_gg_",
|
|
22
|
+
"_loading": "__loading_13bqc_gg_",
|
|
23
|
+
"__SDonutContainer": "___SDonutContainer_13bqc_gg_",
|
|
24
|
+
"__STrendLine": "___STrendLine_13bqc_gg_",
|
|
25
|
+
"__STrendBar": "___STrendBar_13bqc_gg_",
|
|
26
|
+
"@pulse": "pulse_13bqc"
|
|
27
27
|
});
|
|
28
28
|
var TrendLineRoot = /*#__PURE__*/function (_Trend) {
|
|
29
29
|
function TrendLineRoot() {
|
|
@@ -4,7 +4,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
4
4
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import {
|
|
7
|
+
import { sstyled, createComponent, assignProps, Component } from "@semcore/core";
|
|
8
8
|
import { extractAriaProps } from "@semcore/core/lib/utils/ariaProps";
|
|
9
9
|
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
10
10
|
import { cssVariableEnhance } from "@semcore/core/lib/utils/useCssVariable";
|
|
@@ -16,19 +16,19 @@ var style = (
|
|
|
16
16
|
/*__reshadow_css_start__*/
|
|
17
17
|
(sstyled.insert(
|
|
18
18
|
/*__inner_css_start__*/
|
|
19
|
-
"@keyframes
|
|
19
|
+
"@keyframes pulse_13rfu{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_13rfu_gg_.__loading_13rfu_gg_,.___SLineGauge_13rfu_gg_.__loading_13rfu_gg_,.___STrendBar_13rfu_gg_.__loading_13rfu_gg_,.___STrendLine_13rfu_gg_.__loading_13rfu_gg_{animation-name:pulse_13rfu;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SDonutContainer_13rfu_gg_.__semi_13rfu_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_13rfu_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_13rfu_gg_.__animate_13rfu_gg_ circle{transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out}",
|
|
20
20
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
21
|
+
"13rfu_gg_"
|
|
22
22
|
), /*__reshadow_css_end__*/
|
|
23
23
|
{
|
|
24
|
-
"__SLineGauge": "
|
|
25
|
-
"_loading": "
|
|
26
|
-
"__SDonutContainer": "
|
|
27
|
-
"__STrendLine": "
|
|
28
|
-
"__STrendBar": "
|
|
29
|
-
"@pulse": "
|
|
30
|
-
"_animate": "
|
|
31
|
-
"_semi": "
|
|
24
|
+
"__SLineGauge": "___SLineGauge_13rfu_gg_",
|
|
25
|
+
"_loading": "__loading_13rfu_gg_",
|
|
26
|
+
"__SDonutContainer": "___SDonutContainer_13rfu_gg_",
|
|
27
|
+
"__STrendLine": "___STrendLine_13rfu_gg_",
|
|
28
|
+
"__STrendBar": "___STrendBar_13rfu_gg_",
|
|
29
|
+
"@pulse": "pulse_13rfu",
|
|
30
|
+
"_animate": "__animate_13rfu_gg_",
|
|
31
|
+
"_semi": "__semi_13rfu_gg_"
|
|
32
32
|
})
|
|
33
33
|
);
|
|
34
34
|
var DonutRoot = /* @__PURE__ */ (function(_Component) {
|
|
@@ -13,28 +13,28 @@ var style = (
|
|
|
13
13
|
/*__reshadow_css_start__*/
|
|
14
14
|
(sstyled.insert(
|
|
15
15
|
/*__inner_css_start__*/
|
|
16
|
-
"@keyframes
|
|
16
|
+
"@keyframes pulse_d92xt{0%,to{opacity:1}50%{opacity:.4}}@keyframes move-line_d92xt{0%{transform:translateX(0)}to{transform:translateX(100%)}}.___SDonutContainer_d92xt_gg_.__loading_d92xt_gg_,.___SLineGauge_d92xt_gg_.__loading_d92xt_gg_,.___STrendBar_d92xt_gg_.__loading_d92xt_gg_,.___STrendLine_d92xt_gg_.__loading_d92xt_gg_{animation-name:pulse_d92xt;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SLineGauge_d92xt_gg_{height:8px;background-color:var(--base-bg-color_d92xt, var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242)));border-radius:var(--intergalactic-chart-rounded, 2px);overflow:hidden;position:relative}.___SLineValue_d92xt_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded, 2px)0 0 var(--intergalactic-chart-rounded, 2px)}.___SLineValue_d92xt_gg_.__percent_d92xt_gg_{width:var(--percent_d92xt)}.___SLineSegmentItem_d92xt_gg_.__color_d92xt_gg_,.___SLineValue_d92xt_gg_.__color_d92xt_gg_{background-color:var(--color_d92xt, var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219)))}.___SLineGauge_d92xt_gg_.__segments_d92xt_gg_{border-radius:var(--intergalactic-progress-bar-rounded, 6px)}.___SAnimationLine_d92xt_gg_,.___SLineGaugeSegment_d92xt_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_d92xt_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_d92xt_gg_{height:8px;background:0 0;border-right-color:var(--intergalactic-chart-grid-border, #fff);border-right-style:solid;border-right-width:1px;box-sizing:content-box}.___SAnimationLine_d92xt_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242));transition:all var(--intergalactic-duration-extra-slow, 500) ease-in-out;animation-name:move-line_d92xt;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}",
|
|
17
17
|
/*__inner_css_end__*/
|
|
18
|
-
"
|
|
18
|
+
"d92xt_gg_"
|
|
19
19
|
), /*__reshadow_css_end__*/
|
|
20
20
|
{
|
|
21
|
-
"__SLineGauge": "
|
|
22
|
-
"_loading": "
|
|
23
|
-
"__SDonutContainer": "
|
|
24
|
-
"__STrendLine": "
|
|
25
|
-
"__STrendBar": "
|
|
26
|
-
"@pulse": "
|
|
27
|
-
"__SLineValue": "
|
|
28
|
-
"_percent": "
|
|
29
|
-
"--percent": "--
|
|
30
|
-
"_color": "
|
|
31
|
-
"__SLineSegmentItem": "
|
|
32
|
-
"_segments": "
|
|
33
|
-
"__SLineGaugeSegment": "
|
|
34
|
-
"__SAnimationLine": "
|
|
35
|
-
"@move-line": "move-
|
|
36
|
-
"--base-bg-color": "--base-bg-
|
|
37
|
-
"--color": "--
|
|
21
|
+
"__SLineGauge": "___SLineGauge_d92xt_gg_",
|
|
22
|
+
"_loading": "__loading_d92xt_gg_",
|
|
23
|
+
"__SDonutContainer": "___SDonutContainer_d92xt_gg_",
|
|
24
|
+
"__STrendLine": "___STrendLine_d92xt_gg_",
|
|
25
|
+
"__STrendBar": "___STrendBar_d92xt_gg_",
|
|
26
|
+
"@pulse": "pulse_d92xt",
|
|
27
|
+
"__SLineValue": "___SLineValue_d92xt_gg_",
|
|
28
|
+
"_percent": "__percent_d92xt_gg_",
|
|
29
|
+
"--percent": "--percent_d92xt",
|
|
30
|
+
"_color": "__color_d92xt_gg_",
|
|
31
|
+
"__SLineSegmentItem": "___SLineSegmentItem_d92xt_gg_",
|
|
32
|
+
"_segments": "__segments_d92xt_gg_",
|
|
33
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_d92xt_gg_",
|
|
34
|
+
"__SAnimationLine": "___SAnimationLine_d92xt_gg_",
|
|
35
|
+
"@move-line": "move-line_d92xt",
|
|
36
|
+
"--base-bg-color": "--base-bg-color_d92xt",
|
|
37
|
+
"--color": "--color_d92xt"
|
|
38
38
|
})
|
|
39
39
|
);
|
|
40
40
|
var LineRoot = /* @__PURE__ */ (function(_Component) {
|
|
@@ -16,17 +16,17 @@ var style = (
|
|
|
16
16
|
/*__reshadow_css_start__*/
|
|
17
17
|
(sstyled.insert(
|
|
18
18
|
/*__inner_css_start__*/
|
|
19
|
-
"@keyframes
|
|
19
|
+
"@keyframes pulse_13bqc{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_13bqc_gg_.__loading_13bqc_gg_,.___SLineGauge_13bqc_gg_.__loading_13bqc_gg_,.___STrendBar_13bqc_gg_.__loading_13bqc_gg_,.___STrendLine_13bqc_gg_.__loading_13bqc_gg_{animation-name:pulse_13bqc;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}",
|
|
20
20
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
21
|
+
"13bqc_gg_"
|
|
22
22
|
), /*__reshadow_css_end__*/
|
|
23
23
|
{
|
|
24
|
-
"__SLineGauge": "
|
|
25
|
-
"_loading": "
|
|
26
|
-
"__SDonutContainer": "
|
|
27
|
-
"__STrendLine": "
|
|
28
|
-
"__STrendBar": "
|
|
29
|
-
"@pulse": "
|
|
24
|
+
"__SLineGauge": "___SLineGauge_13bqc_gg_",
|
|
25
|
+
"_loading": "__loading_13bqc_gg_",
|
|
26
|
+
"__SDonutContainer": "___SDonutContainer_13bqc_gg_",
|
|
27
|
+
"__STrendLine": "___STrendLine_13bqc_gg_",
|
|
28
|
+
"__STrendBar": "___STrendBar_13bqc_gg_",
|
|
29
|
+
"@pulse": "pulse_13bqc"
|
|
30
30
|
})
|
|
31
31
|
);
|
|
32
32
|
var TrendBarRoot = /* @__PURE__ */ (function(_Trend) {
|
|
@@ -17,17 +17,17 @@ var style = (
|
|
|
17
17
|
/*__reshadow_css_start__*/
|
|
18
18
|
(sstyled.insert(
|
|
19
19
|
/*__inner_css_start__*/
|
|
20
|
-
"@keyframes
|
|
20
|
+
"@keyframes pulse_13bqc{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_13bqc_gg_.__loading_13bqc_gg_,.___SLineGauge_13bqc_gg_.__loading_13bqc_gg_,.___STrendBar_13bqc_gg_.__loading_13bqc_gg_,.___STrendLine_13bqc_gg_.__loading_13bqc_gg_{animation-name:pulse_13bqc;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}",
|
|
21
21
|
/*__inner_css_end__*/
|
|
22
|
-
"
|
|
22
|
+
"13bqc_gg_"
|
|
23
23
|
), /*__reshadow_css_end__*/
|
|
24
24
|
{
|
|
25
|
-
"__SLineGauge": "
|
|
26
|
-
"_loading": "
|
|
27
|
-
"__SDonutContainer": "
|
|
28
|
-
"__STrendLine": "
|
|
29
|
-
"__STrendBar": "
|
|
30
|
-
"@pulse": "
|
|
25
|
+
"__SLineGauge": "___SLineGauge_13bqc_gg_",
|
|
26
|
+
"_loading": "__loading_13bqc_gg_",
|
|
27
|
+
"__SDonutContainer": "___SDonutContainer_13bqc_gg_",
|
|
28
|
+
"__STrendLine": "___STrendLine_13bqc_gg_",
|
|
29
|
+
"__STrendBar": "___STrendBar_13bqc_gg_",
|
|
30
|
+
"@pulse": "pulse_13bqc"
|
|
31
31
|
})
|
|
32
32
|
);
|
|
33
33
|
var TrendLineRoot = /* @__PURE__ */ (function(_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": "16.2.
|
|
4
|
+
"version": "16.2.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@semcore/base-components": "^16.6.0
|
|
18
|
-
"@semcore/flex-box": "^16.1.
|
|
17
|
+
"@semcore/base-components": "^16.6.0",
|
|
18
|
+
"@semcore/flex-box": "^16.1.1"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"directory": "semcore/mini-chart"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@semcore/
|
|
27
|
-
"@semcore/
|
|
26
|
+
"@semcore/core": "16.6.0",
|
|
27
|
+
"@semcore/testing-utils": "1.0.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "pnpm semcore-builder --source=ts && pnpm vite build"
|