@semcore/mini-chart 0.30.0-prerelease.1 → 0.30.0-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/lib/cjs/component/score/Line.js +18 -18
- package/lib/cjs/component/score/line.shadow.css +1 -1
- package/lib/es6/component/score/Line.js +18 -18
- package/lib/es6/component/score/line.shadow.css +1 -1
- package/lib/esm/component/score/Line.mjs +19 -19
- package/lib/esm/component/score/line.shadow.css +1 -1
- package/package.json +4 -4
|
@@ -18,26 +18,26 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
18
18
|
var _flexBox = require("@semcore/flex-box");
|
|
19
19
|
var _resolveColorEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/resolveColorEnhance"));
|
|
20
20
|
/*!__reshadow-styles__:"./line.shadow.css"*/
|
|
21
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/"@keyframes
|
|
21
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/"@keyframes pulse_1we5b{0%,to{opacity:1}50%{opacity:.4}}@keyframes move-line_1we5b{0%{transform:translateX(0)}to{transform:translateX(100%)}}.___SDonutContainer_1we5b_gg_.__loading_1we5b_gg_,.___SLineGauge_1we5b_gg_.__loading_1we5b_gg_,.___STrendBar_1we5b_gg_.__loading_1we5b_gg_,.___STrendLine_1we5b_gg_.__loading_1we5b_gg_{animation-name:pulse_1we5b;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SLineGauge_1we5b_gg_{height:8px;background-color:var(--base-bg-color_1we5b, var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242)));border-radius:var(--intergalactic-chart-rounded, 2px);overflow:hidden;position:relative}.___SLineValue_1we5b_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded, 2px)0 0 var(--intergalactic-chart-rounded, 2px)}.___SLineValue_1we5b_gg_.__percent_1we5b_gg_{width:var(--percent_1we5b)}.___SLineSegmentItem_1we5b_gg_.__color_1we5b_gg_,.___SLineValue_1we5b_gg_.__color_1we5b_gg_{background-color:var(--color_1we5b, var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219)))}.___SLineGauge_1we5b_gg_.__segments_1we5b_gg_{border-radius:var(--intergalactic-progress-bar-rounded, 6px)}.___SAnimationLine_1we5b_gg_,.___SLineGaugeSegment_1we5b_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_1we5b_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_1we5b_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_1we5b_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_1we5b;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}", /*__inner_css_end__*/"1we5b_gg_"),
|
|
22
22
|
/*__reshadow_css_end__*/
|
|
23
23
|
{
|
|
24
|
-
"__SLineGauge": "
|
|
25
|
-
"_loading": "
|
|
26
|
-
"__SDonutContainer": "
|
|
27
|
-
"__STrendLine": "
|
|
28
|
-
"__STrendBar": "
|
|
29
|
-
"@pulse": "
|
|
30
|
-
"__SLineValue": "
|
|
31
|
-
"_percent": "
|
|
32
|
-
"--percent": "--
|
|
33
|
-
"_color": "
|
|
34
|
-
"__SLineSegmentItem": "
|
|
35
|
-
"_segments": "
|
|
36
|
-
"__SLineGaugeSegment": "
|
|
37
|
-
"__SAnimationLine": "
|
|
38
|
-
"@move-line": "move-
|
|
39
|
-
"--base-bg-color": "--base-bg-
|
|
40
|
-
"--color": "--
|
|
24
|
+
"__SLineGauge": "___SLineGauge_1we5b_gg_",
|
|
25
|
+
"_loading": "__loading_1we5b_gg_",
|
|
26
|
+
"__SDonutContainer": "___SDonutContainer_1we5b_gg_",
|
|
27
|
+
"__STrendLine": "___STrendLine_1we5b_gg_",
|
|
28
|
+
"__STrendBar": "___STrendBar_1we5b_gg_",
|
|
29
|
+
"@pulse": "pulse_1we5b",
|
|
30
|
+
"__SLineValue": "___SLineValue_1we5b_gg_",
|
|
31
|
+
"_percent": "__percent_1we5b_gg_",
|
|
32
|
+
"--percent": "--percent_1we5b",
|
|
33
|
+
"_color": "__color_1we5b_gg_",
|
|
34
|
+
"__SLineSegmentItem": "___SLineSegmentItem_1we5b_gg_",
|
|
35
|
+
"_segments": "__segments_1we5b_gg_",
|
|
36
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_1we5b_gg_",
|
|
37
|
+
"__SAnimationLine": "___SAnimationLine_1we5b_gg_",
|
|
38
|
+
"@move-line": "move-line_1we5b",
|
|
39
|
+
"--base-bg-color": "--base-bg-color_1we5b",
|
|
40
|
+
"--color": "--color_1we5b"
|
|
41
41
|
});
|
|
42
42
|
var LineRoot = /*#__PURE__*/function (_Component) {
|
|
43
43
|
(0, _inherits2["default"])(LineRoot, _Component);
|
|
@@ -18,7 +18,7 @@ SLineValue[percent] {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
SLineValue[color], SLineSegmentItem[color] {
|
|
21
|
-
background-color: var(--color, var(--intergalactic-chart-palette-order-1, oklch(0.58 0.
|
|
21
|
+
background-color: var(--color, var(--intergalactic-chart-palette-order-1, oklch(0.58 0.168 278.2)));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
SLineGauge[segments] {
|
|
@@ -13,26 +13,26 @@ import createComponent, { Component, Root, sstyled } from '@semcore/core';
|
|
|
13
13
|
import { Box, Flex } from '@semcore/flex-box';
|
|
14
14
|
import resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';
|
|
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_1we5b{0%,to{opacity:1}50%{opacity:.4}}@keyframes move-line_1we5b{0%{transform:translateX(0)}to{transform:translateX(100%)}}.___SDonutContainer_1we5b_gg_.__loading_1we5b_gg_,.___SLineGauge_1we5b_gg_.__loading_1we5b_gg_,.___STrendBar_1we5b_gg_.__loading_1we5b_gg_,.___STrendLine_1we5b_gg_.__loading_1we5b_gg_{animation-name:pulse_1we5b;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SLineGauge_1we5b_gg_{height:8px;background-color:var(--base-bg-color_1we5b, var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242)));border-radius:var(--intergalactic-chart-rounded, 2px);overflow:hidden;position:relative}.___SLineValue_1we5b_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded, 2px)0 0 var(--intergalactic-chart-rounded, 2px)}.___SLineValue_1we5b_gg_.__percent_1we5b_gg_{width:var(--percent_1we5b)}.___SLineSegmentItem_1we5b_gg_.__color_1we5b_gg_,.___SLineValue_1we5b_gg_.__color_1we5b_gg_{background-color:var(--color_1we5b, var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219)))}.___SLineGauge_1we5b_gg_.__segments_1we5b_gg_{border-radius:var(--intergalactic-progress-bar-rounded, 6px)}.___SAnimationLine_1we5b_gg_,.___SLineGaugeSegment_1we5b_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_1we5b_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_1we5b_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_1we5b_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_1we5b;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}", /*__inner_css_end__*/"1we5b_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_1we5b_gg_",
|
|
20
|
+
"_loading": "__loading_1we5b_gg_",
|
|
21
|
+
"__SDonutContainer": "___SDonutContainer_1we5b_gg_",
|
|
22
|
+
"__STrendLine": "___STrendLine_1we5b_gg_",
|
|
23
|
+
"__STrendBar": "___STrendBar_1we5b_gg_",
|
|
24
|
+
"@pulse": "pulse_1we5b",
|
|
25
|
+
"__SLineValue": "___SLineValue_1we5b_gg_",
|
|
26
|
+
"_percent": "__percent_1we5b_gg_",
|
|
27
|
+
"--percent": "--percent_1we5b",
|
|
28
|
+
"_color": "__color_1we5b_gg_",
|
|
29
|
+
"__SLineSegmentItem": "___SLineSegmentItem_1we5b_gg_",
|
|
30
|
+
"_segments": "__segments_1we5b_gg_",
|
|
31
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_1we5b_gg_",
|
|
32
|
+
"__SAnimationLine": "___SAnimationLine_1we5b_gg_",
|
|
33
|
+
"@move-line": "move-line_1we5b",
|
|
34
|
+
"--base-bg-color": "--base-bg-color_1we5b",
|
|
35
|
+
"--color": "--color_1we5b"
|
|
36
36
|
});
|
|
37
37
|
var LineRoot = /*#__PURE__*/function (_Component) {
|
|
38
38
|
_inherits(LineRoot, _Component);
|
|
@@ -18,7 +18,7 @@ SLineValue[percent] {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
SLineValue[color], SLineSegmentItem[color] {
|
|
21
|
-
background-color: var(--color, var(--intergalactic-chart-palette-order-1, oklch(0.58 0.
|
|
21
|
+
background-color: var(--color, var(--intergalactic-chart-palette-order-1, oklch(0.58 0.168 278.2)));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
SLineGauge[segments] {
|
|
@@ -14,28 +14,28 @@ var style = (
|
|
|
14
14
|
/*__reshadow_css_start__*/
|
|
15
15
|
(sstyled.insert(
|
|
16
16
|
/*__inner_css_start__*/
|
|
17
|
-
"@keyframes
|
|
17
|
+
"@keyframes pulse_1we5b{0%,to{opacity:1}50%{opacity:.4}}@keyframes move-line_1we5b{0%{transform:translateX(0)}to{transform:translateX(100%)}}.___SDonutContainer_1we5b_gg_.__loading_1we5b_gg_,.___SLineGauge_1we5b_gg_.__loading_1we5b_gg_,.___STrendBar_1we5b_gg_.__loading_1we5b_gg_,.___STrendLine_1we5b_gg_.__loading_1we5b_gg_{animation-name:pulse_1we5b;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}.___SLineGauge_1we5b_gg_{height:8px;background-color:var(--base-bg-color_1we5b, var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242)));border-radius:var(--intergalactic-chart-rounded, 2px);overflow:hidden;position:relative}.___SLineValue_1we5b_gg_{height:8px;border-radius:var(--intergalactic-chart-rounded, 2px)0 0 var(--intergalactic-chart-rounded, 2px)}.___SLineValue_1we5b_gg_.__percent_1we5b_gg_{width:var(--percent_1we5b)}.___SLineSegmentItem_1we5b_gg_.__color_1we5b_gg_,.___SLineValue_1we5b_gg_.__color_1we5b_gg_{background-color:var(--color_1we5b, var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219)))}.___SLineGauge_1we5b_gg_.__segments_1we5b_gg_{border-radius:var(--intergalactic-progress-bar-rounded, 6px)}.___SAnimationLine_1we5b_gg_,.___SLineGaugeSegment_1we5b_gg_{position:absolute;top:0;left:0;right:0;bottom:0}.___SLineSegmentItem_1we5b_gg_:last-child{margin-right:0;border-right:none}.___SLineSegmentItem_1we5b_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_1we5b_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_1we5b;animation-duration:.5s;animation-timing-function:ease-in-out;animation-fill-mode:forwards}",
|
|
18
18
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
19
|
+
"1we5b_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_1we5b_gg_",
|
|
23
|
+
"_loading": "__loading_1we5b_gg_",
|
|
24
|
+
"__SDonutContainer": "___SDonutContainer_1we5b_gg_",
|
|
25
|
+
"__STrendLine": "___STrendLine_1we5b_gg_",
|
|
26
|
+
"__STrendBar": "___STrendBar_1we5b_gg_",
|
|
27
|
+
"@pulse": "pulse_1we5b",
|
|
28
|
+
"__SLineValue": "___SLineValue_1we5b_gg_",
|
|
29
|
+
"_percent": "__percent_1we5b_gg_",
|
|
30
|
+
"--percent": "--percent_1we5b",
|
|
31
|
+
"_color": "__color_1we5b_gg_",
|
|
32
|
+
"__SLineSegmentItem": "___SLineSegmentItem_1we5b_gg_",
|
|
33
|
+
"_segments": "__segments_1we5b_gg_",
|
|
34
|
+
"__SLineGaugeSegment": "___SLineGaugeSegment_1we5b_gg_",
|
|
35
|
+
"__SAnimationLine": "___SAnimationLine_1we5b_gg_",
|
|
36
|
+
"@move-line": "move-line_1we5b",
|
|
37
|
+
"--base-bg-color": "--base-bg-color_1we5b",
|
|
38
|
+
"--color": "--color_1we5b"
|
|
39
39
|
})
|
|
40
40
|
);
|
|
41
41
|
var LineRoot = /* @__PURE__ */ function(_Component) {
|
|
@@ -18,7 +18,7 @@ SLineValue[percent] {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
SLineValue[color], SLineSegmentItem[color] {
|
|
21
|
-
background-color: var(--color, var(--intergalactic-chart-palette-order-1, oklch(0.58 0.
|
|
21
|
+
background-color: var(--color, var(--intergalactic-chart-palette-order-1, oklch(0.58 0.168 278.2)));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
SLineGauge[segments] {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/mini-chart",
|
|
3
3
|
"description": "Semrush MiniChart Component",
|
|
4
|
-
"version": "0.30.0-prerelease.
|
|
4
|
+
"version": "0.30.0-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,11 +14,11 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/flex-box": "5.42.0-prerelease.
|
|
18
|
-
"@semcore/utils": "4.49.0-prerelease.
|
|
17
|
+
"@semcore/flex-box": "5.42.0-prerelease.4",
|
|
18
|
+
"@semcore/utils": "4.49.0-prerelease.4"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@semcore/core": "^2.40.0-prerelease.
|
|
21
|
+
"@semcore/core": "^2.40.0-prerelease.4",
|
|
22
22
|
"react": "16.8 - 18",
|
|
23
23
|
"react-dom": "16.8 - 18"
|
|
24
24
|
},
|