@semcore/mini-chart 17.2.0-prerelease.7 → 17.2.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 +10 -10
- 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/vitest.config.mts +18 -0
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__*/".
|
|
17
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SDonutContainer_1l7e9_gg_.__loading_1l7e9_gg_,.___SLineGauge_1l7e9_gg_.__loading_1l7e9_gg_,.___STrendBar_1l7e9_gg_.__loading_1l7e9_gg_,.___STrendLine_1l7e9_gg_.__loading_1l7e9_gg_{animation-name:pulse_1l7e9;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1l7e9{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SDonutContainer_1l7e9_gg_.__semi_1l7e9_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_1l7e9_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_1l7e9_gg_.__animate_1l7e9_gg_ circle{transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out}", /*__inner_css_end__*/"1l7e9_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_1l7e9_gg_",
|
|
21
|
+
"_loading": "__loading_1l7e9_gg_",
|
|
22
|
+
"__SDonutContainer": "___SDonutContainer_1l7e9_gg_",
|
|
23
|
+
"__STrendLine": "___STrendLine_1l7e9_gg_",
|
|
24
|
+
"__STrendBar": "___STrendBar_1l7e9_gg_",
|
|
25
|
+
"@pulse": "pulse_1l7e9",
|
|
26
|
+
"_animate": "__animate_1l7e9_gg_",
|
|
27
|
+
"_semi": "__semi_1l7e9_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_1wpnk_gg_.__loading_1wpnk_gg_,.___SLineGauge_1wpnk_gg_.__loading_1wpnk_gg_,.___STrendBar_1wpnk_gg_.__loading_1wpnk_gg_,.___STrendLine_1wpnk_gg_.__loading_1wpnk_gg_{animation-name:pulse_1wpnk;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1wpnk{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SLineGauge_1wpnk_gg_{height:8px;background-color:var(--base-bg-color_1wpnk,var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.96 .001 180)));border-radius:var(--intergalactic-chart-rounded,2px);overflow:hidden;position:relative}.___SLineValue_1wpnk_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded,2px) 0 0 var(--intergalactic-chart-rounded,2px)}.___SLineValue_1wpnk_gg_.__percent_1wpnk_gg_{width:var(--percent_1wpnk)}.___SLineSegmentItem_1wpnk_gg_.__color_1wpnk_gg_,.___SLineValue_1wpnk_gg_.__color_1wpnk_gg_{background-color:var(--color_1wpnk,var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2)))}.___SLineGauge_1wpnk_gg_.__segments_1wpnk_gg_{border-radius:var(--intergalactic-progress-bar-rounded,6px)}.___SAnimationLine_1wpnk_gg_,.___SLineGaugeSegment_1wpnk_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_1wpnk_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_1wpnk_gg_{height:8px;background:#0000;border-right:1px solid var(--intergalactic-chart-grid-border,#fff);box-sizing:initial}.___SAnimationLine_1wpnk_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.96 .001 180));transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out;animation-name:move-line_1wpnk;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}@keyframes move-line_1wpnk{0%{transform:translateX(0)}to{transform:translateX(100%)}}", /*__inner_css_end__*/"1wpnk_gg_"),
|
|
15
15
|
/*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SLineGauge": "
|
|
18
|
-
"_loading": "
|
|
19
|
-
"__SDonutContainer": "
|
|
20
|
-
"__STrendLine": "
|
|
21
|
-
"__STrendBar": "
|
|
22
|
-
"@pulse": "
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
17
|
+
"__SLineGauge": "___SLineGauge_1wpnk_gg_",
|
|
18
|
+
"_loading": "__loading_1wpnk_gg_",
|
|
19
|
+
"__SDonutContainer": "___SDonutContainer_1wpnk_gg_",
|
|
20
|
+
"__STrendLine": "___STrendLine_1wpnk_gg_",
|
|
21
|
+
"__STrendBar": "___STrendBar_1wpnk_gg_",
|
|
22
|
+
"@pulse": "pulse_1wpnk",
|
|
23
|
+
"--base-bg-color": "--base-bg-color_1wpnk",
|
|
24
|
+
"__SLineValue": "___SLineValue_1wpnk_gg_",
|
|
25
|
+
"_percent": "__percent_1wpnk_gg_",
|
|
26
|
+
"--percent": "--percent_1wpnk",
|
|
27
|
+
"_color": "__color_1wpnk_gg_",
|
|
28
|
+
"__SLineSegmentItem": "___SLineSegmentItem_1wpnk_gg_",
|
|
29
|
+
"--color": "--color_1wpnk",
|
|
30
|
+
"_segments": "__segments_1wpnk_gg_",
|
|
31
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_1wpnk_gg_",
|
|
32
|
+
"__SAnimationLine": "___SAnimationLine_1wpnk_gg_",
|
|
33
|
+
"@move-line": "move-line_1wpnk"
|
|
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__*/".
|
|
16
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SDonutContainer_388nl_gg_.__loading_388nl_gg_,.___SLineGauge_388nl_gg_.__loading_388nl_gg_,.___STrendBar_388nl_gg_.__loading_388nl_gg_,.___STrendLine_388nl_gg_.__loading_388nl_gg_{animation-name:pulse_388nl;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_388nl{0%{opacity:1}50%{opacity:.4}to{opacity:1}}", /*__inner_css_end__*/"388nl_gg_"),
|
|
17
17
|
/*__reshadow_css_end__*/
|
|
18
18
|
{
|
|
19
|
-
"__SLineGauge": "
|
|
20
|
-
"_loading": "
|
|
21
|
-
"__SDonutContainer": "
|
|
22
|
-
"__STrendLine": "
|
|
23
|
-
"__STrendBar": "
|
|
24
|
-
"@pulse": "
|
|
19
|
+
"__SLineGauge": "___SLineGauge_388nl_gg_",
|
|
20
|
+
"_loading": "__loading_388nl_gg_",
|
|
21
|
+
"__SDonutContainer": "___SDonutContainer_388nl_gg_",
|
|
22
|
+
"__STrendLine": "___STrendLine_388nl_gg_",
|
|
23
|
+
"__STrendBar": "___STrendBar_388nl_gg_",
|
|
24
|
+
"@pulse": "pulse_388nl"
|
|
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_388nl_gg_.__loading_388nl_gg_,.___SLineGauge_388nl_gg_.__loading_388nl_gg_,.___STrendBar_388nl_gg_.__loading_388nl_gg_,.___STrendLine_388nl_gg_.__loading_388nl_gg_{animation-name:pulse_388nl;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_388nl{0%{opacity:1}50%{opacity:.4}to{opacity:1}}", /*__inner_css_end__*/"388nl_gg_"),
|
|
18
18
|
/*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__SLineGauge": "
|
|
21
|
-
"_loading": "
|
|
22
|
-
"__SDonutContainer": "
|
|
23
|
-
"__STrendLine": "
|
|
24
|
-
"__STrendBar": "
|
|
25
|
-
"@pulse": "
|
|
20
|
+
"__SLineGauge": "___SLineGauge_388nl_gg_",
|
|
21
|
+
"_loading": "__loading_388nl_gg_",
|
|
22
|
+
"__SDonutContainer": "___SDonutContainer_388nl_gg_",
|
|
23
|
+
"__STrendLine": "___STrendLine_388nl_gg_",
|
|
24
|
+
"__STrendBar": "___STrendBar_388nl_gg_",
|
|
25
|
+
"@pulse": "pulse_388nl"
|
|
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_1l7e9_gg_.__loading_1l7e9_gg_,.___SLineGauge_1l7e9_gg_.__loading_1l7e9_gg_,.___STrendBar_1l7e9_gg_.__loading_1l7e9_gg_,.___STrendLine_1l7e9_gg_.__loading_1l7e9_gg_{animation-name:pulse_1l7e9;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1l7e9{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SDonutContainer_1l7e9_gg_.__semi_1l7e9_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_1l7e9_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_1l7e9_gg_.__animate_1l7e9_gg_ circle{transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out}", /*__inner_css_end__*/"1l7e9_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_1l7e9_gg_",
|
|
15
|
+
"_loading": "__loading_1l7e9_gg_",
|
|
16
|
+
"__SDonutContainer": "___SDonutContainer_1l7e9_gg_",
|
|
17
|
+
"__STrendLine": "___STrendLine_1l7e9_gg_",
|
|
18
|
+
"__STrendBar": "___STrendBar_1l7e9_gg_",
|
|
19
|
+
"@pulse": "pulse_1l7e9",
|
|
20
|
+
"_animate": "__animate_1l7e9_gg_",
|
|
21
|
+
"_semi": "__semi_1l7e9_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_1wpnk_gg_.__loading_1wpnk_gg_,.___SLineGauge_1wpnk_gg_.__loading_1wpnk_gg_,.___STrendBar_1wpnk_gg_.__loading_1wpnk_gg_,.___STrendLine_1wpnk_gg_.__loading_1wpnk_gg_{animation-name:pulse_1wpnk;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1wpnk{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SLineGauge_1wpnk_gg_{height:8px;background-color:var(--base-bg-color_1wpnk,var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.96 .001 180)));border-radius:var(--intergalactic-chart-rounded,2px);overflow:hidden;position:relative}.___SLineValue_1wpnk_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded,2px) 0 0 var(--intergalactic-chart-rounded,2px)}.___SLineValue_1wpnk_gg_.__percent_1wpnk_gg_{width:var(--percent_1wpnk)}.___SLineSegmentItem_1wpnk_gg_.__color_1wpnk_gg_,.___SLineValue_1wpnk_gg_.__color_1wpnk_gg_{background-color:var(--color_1wpnk,var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2)))}.___SLineGauge_1wpnk_gg_.__segments_1wpnk_gg_{border-radius:var(--intergalactic-progress-bar-rounded,6px)}.___SAnimationLine_1wpnk_gg_,.___SLineGaugeSegment_1wpnk_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_1wpnk_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_1wpnk_gg_{height:8px;background:#0000;border-right:1px solid var(--intergalactic-chart-grid-border,#fff);box-sizing:initial}.___SAnimationLine_1wpnk_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.96 .001 180));transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out;animation-name:move-line_1wpnk;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}@keyframes move-line_1wpnk{0%{transform:translateX(0)}to{transform:translateX(100%)}}", /*__inner_css_end__*/"1wpnk_gg_"),
|
|
12
12
|
/*__reshadow_css_end__*/
|
|
13
13
|
{
|
|
14
|
-
"__SLineGauge": "
|
|
15
|
-
"_loading": "
|
|
16
|
-
"__SDonutContainer": "
|
|
17
|
-
"__STrendLine": "
|
|
18
|
-
"__STrendBar": "
|
|
19
|
-
"@pulse": "
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
14
|
+
"__SLineGauge": "___SLineGauge_1wpnk_gg_",
|
|
15
|
+
"_loading": "__loading_1wpnk_gg_",
|
|
16
|
+
"__SDonutContainer": "___SDonutContainer_1wpnk_gg_",
|
|
17
|
+
"__STrendLine": "___STrendLine_1wpnk_gg_",
|
|
18
|
+
"__STrendBar": "___STrendBar_1wpnk_gg_",
|
|
19
|
+
"@pulse": "pulse_1wpnk",
|
|
20
|
+
"--base-bg-color": "--base-bg-color_1wpnk",
|
|
21
|
+
"__SLineValue": "___SLineValue_1wpnk_gg_",
|
|
22
|
+
"_percent": "__percent_1wpnk_gg_",
|
|
23
|
+
"--percent": "--percent_1wpnk",
|
|
24
|
+
"_color": "__color_1wpnk_gg_",
|
|
25
|
+
"__SLineSegmentItem": "___SLineSegmentItem_1wpnk_gg_",
|
|
26
|
+
"--color": "--color_1wpnk",
|
|
27
|
+
"_segments": "__segments_1wpnk_gg_",
|
|
28
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_1wpnk_gg_",
|
|
29
|
+
"__SAnimationLine": "___SAnimationLine_1wpnk_gg_",
|
|
30
|
+
"@move-line": "move-line_1wpnk"
|
|
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__*/".
|
|
11
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SDonutContainer_388nl_gg_.__loading_388nl_gg_,.___SLineGauge_388nl_gg_.__loading_388nl_gg_,.___STrendBar_388nl_gg_.__loading_388nl_gg_,.___STrendLine_388nl_gg_.__loading_388nl_gg_{animation-name:pulse_388nl;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_388nl{0%{opacity:1}50%{opacity:.4}to{opacity:1}}", /*__inner_css_end__*/"388nl_gg_"),
|
|
12
12
|
/*__reshadow_css_end__*/
|
|
13
13
|
{
|
|
14
|
-
"__SLineGauge": "
|
|
15
|
-
"_loading": "
|
|
16
|
-
"__SDonutContainer": "
|
|
17
|
-
"__STrendLine": "
|
|
18
|
-
"__STrendBar": "
|
|
19
|
-
"@pulse": "
|
|
14
|
+
"__SLineGauge": "___SLineGauge_388nl_gg_",
|
|
15
|
+
"_loading": "__loading_388nl_gg_",
|
|
16
|
+
"__SDonutContainer": "___SDonutContainer_388nl_gg_",
|
|
17
|
+
"__STrendLine": "___STrendLine_388nl_gg_",
|
|
18
|
+
"__STrendBar": "___STrendBar_388nl_gg_",
|
|
19
|
+
"@pulse": "pulse_388nl"
|
|
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_388nl_gg_.__loading_388nl_gg_,.___SLineGauge_388nl_gg_.__loading_388nl_gg_,.___STrendBar_388nl_gg_.__loading_388nl_gg_,.___STrendLine_388nl_gg_.__loading_388nl_gg_{animation-name:pulse_388nl;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_388nl{0%{opacity:1}50%{opacity:.4}to{opacity:1}}", /*__inner_css_end__*/"388nl_gg_"),
|
|
13
13
|
/*__reshadow_css_end__*/
|
|
14
14
|
{
|
|
15
|
-
"__SLineGauge": "
|
|
16
|
-
"_loading": "
|
|
17
|
-
"__SDonutContainer": "
|
|
18
|
-
"__STrendLine": "
|
|
19
|
-
"__STrendBar": "
|
|
20
|
-
"@pulse": "
|
|
15
|
+
"__SLineGauge": "___SLineGauge_388nl_gg_",
|
|
16
|
+
"_loading": "__loading_388nl_gg_",
|
|
17
|
+
"__SDonutContainer": "___SDonutContainer_388nl_gg_",
|
|
18
|
+
"__STrendLine": "___STrendLine_388nl_gg_",
|
|
19
|
+
"__STrendBar": "___STrendBar_388nl_gg_",
|
|
20
|
+
"@pulse": "pulse_388nl"
|
|
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_1l7e9_gg_.__loading_1l7e9_gg_,.___SLineGauge_1l7e9_gg_.__loading_1l7e9_gg_,.___STrendBar_1l7e9_gg_.__loading_1l7e9_gg_,.___STrendLine_1l7e9_gg_.__loading_1l7e9_gg_{animation-name:pulse_1l7e9;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1l7e9{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SDonutContainer_1l7e9_gg_.__semi_1l7e9_gg_ g{transform:rotate(180deg) translate(-24px,-24px)}.___SDonutContainer_1l7e9_gg_ g{transform:rotate(-90deg) translate(-24px)}.___SDonutContainer_1l7e9_gg_.__animate_1l7e9_gg_ circle{transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out}",
|
|
15
15
|
/*__inner_css_end__*/
|
|
16
|
-
"
|
|
16
|
+
"1l7e9_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_1l7e9_gg_",
|
|
20
|
+
"_loading": "__loading_1l7e9_gg_",
|
|
21
|
+
"__SDonutContainer": "___SDonutContainer_1l7e9_gg_",
|
|
22
|
+
"__STrendLine": "___STrendLine_1l7e9_gg_",
|
|
23
|
+
"__STrendBar": "___STrendBar_1l7e9_gg_",
|
|
24
|
+
"@pulse": "pulse_1l7e9",
|
|
25
|
+
"_animate": "__animate_1l7e9_gg_",
|
|
26
|
+
"_semi": "__semi_1l7e9_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_1wpnk_gg_.__loading_1wpnk_gg_,.___SLineGauge_1wpnk_gg_.__loading_1wpnk_gg_,.___STrendBar_1wpnk_gg_.__loading_1wpnk_gg_,.___STrendLine_1wpnk_gg_.__loading_1wpnk_gg_{animation-name:pulse_1wpnk;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_1wpnk{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.___SLineGauge_1wpnk_gg_{height:8px;background-color:var(--base-bg-color_1wpnk,var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.96 .001 180)));border-radius:var(--intergalactic-chart-rounded,2px);overflow:hidden;position:relative}.___SLineValue_1wpnk_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded,2px) 0 0 var(--intergalactic-chart-rounded,2px)}.___SLineValue_1wpnk_gg_.__percent_1wpnk_gg_{width:var(--percent_1wpnk)}.___SLineSegmentItem_1wpnk_gg_.__color_1wpnk_gg_,.___SLineValue_1wpnk_gg_.__color_1wpnk_gg_{background-color:var(--color_1wpnk,var(--intergalactic-chart-palette-order-1,oklch(.58 .168 278.2)))}.___SLineGauge_1wpnk_gg_.__segments_1wpnk_gg_{border-radius:var(--intergalactic-progress-bar-rounded,6px)}.___SAnimationLine_1wpnk_gg_,.___SLineGaugeSegment_1wpnk_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_1wpnk_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_1wpnk_gg_{height:8px;background:#0000;border-right:1px solid var(--intergalactic-chart-grid-border,#fff);box-sizing:initial}.___SAnimationLine_1wpnk_gg_{background-color:var(--intergalactic-chart-grid-bar-chart-base-bg,oklch(.96 .001 180));transition:all var(--intergalactic-duration-extra-slow,500) ease-in-out;animation-name:move-line_1wpnk;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}@keyframes move-line_1wpnk{0%{transform:translateX(0)}to{transform:translateX(100%)}}",
|
|
12
12
|
/*__inner_css_end__*/
|
|
13
|
-
"
|
|
13
|
+
"1wpnk_gg_"
|
|
14
14
|
), /*__reshadow_css_end__*/
|
|
15
15
|
{
|
|
16
|
-
"__SLineGauge": "
|
|
17
|
-
"_loading": "
|
|
18
|
-
"__SDonutContainer": "
|
|
19
|
-
"__STrendLine": "
|
|
20
|
-
"__STrendBar": "
|
|
21
|
-
"@pulse": "
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
16
|
+
"__SLineGauge": "___SLineGauge_1wpnk_gg_",
|
|
17
|
+
"_loading": "__loading_1wpnk_gg_",
|
|
18
|
+
"__SDonutContainer": "___SDonutContainer_1wpnk_gg_",
|
|
19
|
+
"__STrendLine": "___STrendLine_1wpnk_gg_",
|
|
20
|
+
"__STrendBar": "___STrendBar_1wpnk_gg_",
|
|
21
|
+
"@pulse": "pulse_1wpnk",
|
|
22
|
+
"--base-bg-color": "--base-bg-color_1wpnk",
|
|
23
|
+
"__SLineValue": "___SLineValue_1wpnk_gg_",
|
|
24
|
+
"_percent": "__percent_1wpnk_gg_",
|
|
25
|
+
"--percent": "--percent_1wpnk",
|
|
26
|
+
"_color": "__color_1wpnk_gg_",
|
|
27
|
+
"__SLineSegmentItem": "___SLineSegmentItem_1wpnk_gg_",
|
|
28
|
+
"--color": "--color_1wpnk",
|
|
29
|
+
"_segments": "__segments_1wpnk_gg_",
|
|
30
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_1wpnk_gg_",
|
|
31
|
+
"__SAnimationLine": "___SAnimationLine_1wpnk_gg_",
|
|
32
|
+
"@move-line": "move-line_1wpnk"
|
|
33
33
|
})
|
|
34
34
|
);
|
|
35
35
|
class LineRoot extends Component {
|
|
@@ -10,17 +10,17 @@ const style = (
|
|
|
10
10
|
/*__reshadow_css_start__*/
|
|
11
11
|
(sstyled.insert(
|
|
12
12
|
/*__inner_css_start__*/
|
|
13
|
-
".
|
|
13
|
+
".___SDonutContainer_388nl_gg_.__loading_388nl_gg_,.___SLineGauge_388nl_gg_.__loading_388nl_gg_,.___STrendBar_388nl_gg_.__loading_388nl_gg_,.___STrendLine_388nl_gg_.__loading_388nl_gg_{animation-name:pulse_388nl;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_388nl{0%{opacity:1}50%{opacity:.4}to{opacity:1}}",
|
|
14
14
|
/*__inner_css_end__*/
|
|
15
|
-
"
|
|
15
|
+
"388nl_gg_"
|
|
16
16
|
), /*__reshadow_css_end__*/
|
|
17
17
|
{
|
|
18
|
-
"__SLineGauge": "
|
|
19
|
-
"_loading": "
|
|
20
|
-
"__SDonutContainer": "
|
|
21
|
-
"__STrendLine": "
|
|
22
|
-
"__STrendBar": "
|
|
23
|
-
"@pulse": "
|
|
18
|
+
"__SLineGauge": "___SLineGauge_388nl_gg_",
|
|
19
|
+
"_loading": "__loading_388nl_gg_",
|
|
20
|
+
"__SDonutContainer": "___SDonutContainer_388nl_gg_",
|
|
21
|
+
"__STrendLine": "___STrendLine_388nl_gg_",
|
|
22
|
+
"__STrendBar": "___STrendBar_388nl_gg_",
|
|
23
|
+
"@pulse": "pulse_388nl"
|
|
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_388nl_gg_.__loading_388nl_gg_,.___SLineGauge_388nl_gg_.__loading_388nl_gg_,.___STrendBar_388nl_gg_.__loading_388nl_gg_,.___STrendLine_388nl_gg_.__loading_388nl_gg_{animation-name:pulse_388nl;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}@keyframes pulse_388nl{0%{opacity:1}50%{opacity:.4}to{opacity:1}}",
|
|
15
15
|
/*__inner_css_end__*/
|
|
16
|
-
"
|
|
16
|
+
"388nl_gg_"
|
|
17
17
|
), /*__reshadow_css_end__*/
|
|
18
18
|
{
|
|
19
|
-
"__SLineGauge": "
|
|
20
|
-
"_loading": "
|
|
21
|
-
"__SDonutContainer": "
|
|
22
|
-
"__STrendLine": "
|
|
23
|
-
"__STrendBar": "
|
|
24
|
-
"@pulse": "
|
|
19
|
+
"__SLineGauge": "___SLineGauge_388nl_gg_",
|
|
20
|
+
"_loading": "__loading_388nl_gg_",
|
|
21
|
+
"__SDonutContainer": "___SDonutContainer_388nl_gg_",
|
|
22
|
+
"__STrendLine": "___STrendLine_388nl_gg_",
|
|
23
|
+
"__STrendBar": "___STrendBar_388nl_gg_",
|
|
24
|
+
"@pulse": "pulse_388nl"
|
|
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.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.2.
|
|
17
|
+
"@semcore/base-components": "^17.2.1"
|
|
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.1-prerelease.0",
|
|
26
|
+
"@semcore/testing-utils": "1.0.0",
|
|
27
|
+
"@semcore/core": "17.2.1-prerelease.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "pnpm semcore-builder --source=ts && pnpm vite build"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { resolve as resolvePath } from 'node:path';
|
|
2
|
+
|
|
3
|
+
import { defineConfig } from 'vitest/config';
|
|
4
|
+
|
|
5
|
+
import { vitestPlugins, vitestResolve } from '../../vitest.config.mts';
|
|
6
|
+
|
|
7
|
+
export default defineConfig({
|
|
8
|
+
plugins: vitestPlugins,
|
|
9
|
+
resolve: vitestResolve,
|
|
10
|
+
test: {
|
|
11
|
+
include: [
|
|
12
|
+
'__tests__/**/*.test.tsx',
|
|
13
|
+
'__tests__/**/*.test.ts',
|
|
14
|
+
],
|
|
15
|
+
environment: 'jsdom',
|
|
16
|
+
setupFiles: [resolvePath(__dirname, '../../tools/testing-utils/setupTests')],
|
|
17
|
+
},
|
|
18
|
+
});
|