@semcore/progress-bar 16.1.0-prerelease.0 → 16.1.0-prerelease.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/lib/cjs/ProgressBar.js +15 -15
- package/lib/es6/ProgressBar.js +15 -15
- package/lib/esm/ProgressBar.mjs +16 -16
- package/package.json +4 -4
package/lib/cjs/ProgressBar.js
CHANGED
|
@@ -16,23 +16,23 @@ 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__:"./style/progress-bar.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 loading_1sxvr{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_1sxvr_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_1sxvr_gg_._theme_dark_1sxvr_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgb(84, 86, 84))}.___SValue_1sxvr_gg_{position:absolute;top:0;left:0;background-color:var(--intergalactic-progress-bar-value-bg, rgb(255, 255, 255));background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgb(177, 125, 241) 25%, rgb(192, 142, 255) 0%, rgb(192, 142, 255) 50%, rgb(177, 125, 241) 0%, rgb(177, 125, 241) 75%, rgb(192, 142, 255) 0%));overflow:hidden;animation-name:loading_1sxvr;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_1sxvr);animation-duration:var(--duration_1sxvr);transition-duration:var(--duration_1sxvr)}@supports (color:color(display-p3 0 0 0%)){.___SValue_1sxvr_gg_{background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgb(177, 125, 241) 25%, rgb(192, 142, 255) 0%, rgb(192, 142, 255) 50%, rgb(177, 125, 241) 0%, rgb(177, 125, 241) 75%, rgb(192, 142, 255) 0%))}@media (color-gamut:p3){.___SValue_1sxvr_gg_{background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgb(177, 125, 241) 25%, color(display-p3 0.72564 0.56096 0.98326) 0%, color(display-p3 0.72564 0.56096 0.98326) 50%, rgb(177, 125, 241) 0%, rgb(177, 125, 241) 75%, color(display-p3 0.72564 0.56096 0.98326) 0%))}}}.___SValue_1sxvr_gg_.__theme_1sxvr_gg_{background-color:var(--colorBg_1sxvr);background-image:var(--colorBg_1sxvr)}.___SProgressBar_1sxvr_gg_._size_s_1sxvr_gg_,.___SValue_1sxvr_gg_._size_s_1sxvr_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_1sxvr_gg_._size_m_1sxvr_gg_,.___SValue_1sxvr_gg_._size_m_1sxvr_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_1sxvr_gg_._size_l_1sxvr_gg_,.___SValue_1sxvr_gg_._size_l_1sxvr_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_1sxvr_gg_._theme_invert_1sxvr_gg_{background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_1sxvr_gg_.__animation_1sxvr_gg_{background-color:var(--intergalactic-progress-bar-value-bg, rgb(255, 255, 255));background-image:var(--intergalactic-progress-bar-pattern-gradient,\n linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, rgb(241, 242, 242) 0%, rgb(241, 242, 242) 50%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 75%, rgb(241, 242, 242) 0%));animation-name:loading_1sxvr;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_1sxvr)}.___SProgressBar_1sxvr_gg_._theme_custom_1sxvr_gg_{background-color:var(--colorBg_1sxvr);background-image:var(--colorBg_1sxvr)}@media (prefers-reduced-motion){.___SProgressBar_1sxvr_gg_.__animation_1sxvr_gg_,.___SValue_1sxvr_gg_{animation-name:none}}", /*__inner_css_end__*/"1sxvr_gg_"),
|
|
20
20
|
/*__reshadow_css_end__*/
|
|
21
21
|
{
|
|
22
|
-
"__SProgressBar": "
|
|
23
|
-
"_theme_dark": "
|
|
24
|
-
"__SValue": "
|
|
25
|
-
"--width": "--
|
|
26
|
-
"--duration": "--
|
|
27
|
-
"_theme": "
|
|
28
|
-
"--colorBg": "--
|
|
29
|
-
"_size_s": "
|
|
30
|
-
"_size_m": "
|
|
31
|
-
"_size_l": "
|
|
32
|
-
"_theme_invert": "
|
|
33
|
-
"@loading": "
|
|
34
|
-
"_animation": "
|
|
35
|
-
"_theme_custom": "
|
|
22
|
+
"__SProgressBar": "___SProgressBar_1sxvr_gg_",
|
|
23
|
+
"_theme_dark": "_theme_dark_1sxvr_gg_",
|
|
24
|
+
"__SValue": "___SValue_1sxvr_gg_",
|
|
25
|
+
"--width": "--width_1sxvr",
|
|
26
|
+
"--duration": "--duration_1sxvr",
|
|
27
|
+
"_theme": "__theme_1sxvr_gg_",
|
|
28
|
+
"--colorBg": "--colorBg_1sxvr",
|
|
29
|
+
"_size_s": "_size_s_1sxvr_gg_",
|
|
30
|
+
"_size_m": "_size_m_1sxvr_gg_",
|
|
31
|
+
"_size_l": "_size_l_1sxvr_gg_",
|
|
32
|
+
"_theme_invert": "_theme_invert_1sxvr_gg_",
|
|
33
|
+
"@loading": "loading_1sxvr",
|
|
34
|
+
"_animation": "__animation_1sxvr_gg_",
|
|
35
|
+
"_theme_custom": "_theme_custom_1sxvr_gg_"
|
|
36
36
|
});
|
|
37
37
|
function isCustomTheme(theme) {
|
|
38
38
|
return !['dark', 'invert'].includes(theme);
|
package/lib/es6/ProgressBar.js
CHANGED
|
@@ -12,23 +12,23 @@ import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEn
|
|
|
12
12
|
import { Box } from '@semcore/flex-box';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
/*!__reshadow-styles__:"./style/progress-bar.shadow.css"*/
|
|
15
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
15
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes loading_1sxvr{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_1sxvr_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_1sxvr_gg_._theme_dark_1sxvr_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgb(84, 86, 84))}.___SValue_1sxvr_gg_{position:absolute;top:0;left:0;background-color:var(--intergalactic-progress-bar-value-bg, rgb(255, 255, 255));background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgb(177, 125, 241) 25%, rgb(192, 142, 255) 0%, rgb(192, 142, 255) 50%, rgb(177, 125, 241) 0%, rgb(177, 125, 241) 75%, rgb(192, 142, 255) 0%));overflow:hidden;animation-name:loading_1sxvr;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_1sxvr);animation-duration:var(--duration_1sxvr);transition-duration:var(--duration_1sxvr)}@supports (color:color(display-p3 0 0 0%)){.___SValue_1sxvr_gg_{background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgb(177, 125, 241) 25%, rgb(192, 142, 255) 0%, rgb(192, 142, 255) 50%, rgb(177, 125, 241) 0%, rgb(177, 125, 241) 75%, rgb(192, 142, 255) 0%))}@media (color-gamut:p3){.___SValue_1sxvr_gg_{background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgb(177, 125, 241) 25%, color(display-p3 0.72564 0.56096 0.98326) 0%, color(display-p3 0.72564 0.56096 0.98326) 50%, rgb(177, 125, 241) 0%, rgb(177, 125, 241) 75%, color(display-p3 0.72564 0.56096 0.98326) 0%))}}}.___SValue_1sxvr_gg_.__theme_1sxvr_gg_{background-color:var(--colorBg_1sxvr);background-image:var(--colorBg_1sxvr)}.___SProgressBar_1sxvr_gg_._size_s_1sxvr_gg_,.___SValue_1sxvr_gg_._size_s_1sxvr_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_1sxvr_gg_._size_m_1sxvr_gg_,.___SValue_1sxvr_gg_._size_m_1sxvr_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_1sxvr_gg_._size_l_1sxvr_gg_,.___SValue_1sxvr_gg_._size_l_1sxvr_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_1sxvr_gg_._theme_invert_1sxvr_gg_{background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_1sxvr_gg_.__animation_1sxvr_gg_{background-color:var(--intergalactic-progress-bar-value-bg, rgb(255, 255, 255));background-image:var(--intergalactic-progress-bar-pattern-gradient,\n linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, rgb(241, 242, 242) 0%, rgb(241, 242, 242) 50%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 75%, rgb(241, 242, 242) 0%));animation-name:loading_1sxvr;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_1sxvr)}.___SProgressBar_1sxvr_gg_._theme_custom_1sxvr_gg_{background-color:var(--colorBg_1sxvr);background-image:var(--colorBg_1sxvr)}@media (prefers-reduced-motion){.___SProgressBar_1sxvr_gg_.__animation_1sxvr_gg_,.___SValue_1sxvr_gg_{animation-name:none}}", /*__inner_css_end__*/"1sxvr_gg_"),
|
|
16
16
|
/*__reshadow_css_end__*/
|
|
17
17
|
{
|
|
18
|
-
"__SProgressBar": "
|
|
19
|
-
"_theme_dark": "
|
|
20
|
-
"__SValue": "
|
|
21
|
-
"--width": "--
|
|
22
|
-
"--duration": "--
|
|
23
|
-
"_theme": "
|
|
24
|
-
"--colorBg": "--
|
|
25
|
-
"_size_s": "
|
|
26
|
-
"_size_m": "
|
|
27
|
-
"_size_l": "
|
|
28
|
-
"_theme_invert": "
|
|
29
|
-
"@loading": "
|
|
30
|
-
"_animation": "
|
|
31
|
-
"_theme_custom": "
|
|
18
|
+
"__SProgressBar": "___SProgressBar_1sxvr_gg_",
|
|
19
|
+
"_theme_dark": "_theme_dark_1sxvr_gg_",
|
|
20
|
+
"__SValue": "___SValue_1sxvr_gg_",
|
|
21
|
+
"--width": "--width_1sxvr",
|
|
22
|
+
"--duration": "--duration_1sxvr",
|
|
23
|
+
"_theme": "__theme_1sxvr_gg_",
|
|
24
|
+
"--colorBg": "--colorBg_1sxvr",
|
|
25
|
+
"_size_s": "_size_s_1sxvr_gg_",
|
|
26
|
+
"_size_m": "_size_m_1sxvr_gg_",
|
|
27
|
+
"_size_l": "_size_l_1sxvr_gg_",
|
|
28
|
+
"_theme_invert": "_theme_invert_1sxvr_gg_",
|
|
29
|
+
"@loading": "loading_1sxvr",
|
|
30
|
+
"_animation": "__animation_1sxvr_gg_",
|
|
31
|
+
"_theme_custom": "_theme_custom_1sxvr_gg_"
|
|
32
32
|
});
|
|
33
33
|
function isCustomTheme(theme) {
|
|
34
34
|
return !['dark', 'invert'].includes(theme);
|
package/lib/esm/ProgressBar.mjs
CHANGED
|
@@ -13,25 +13,25 @@ var style = (
|
|
|
13
13
|
/*__reshadow_css_start__*/
|
|
14
14
|
(sstyled.insert(
|
|
15
15
|
/*__inner_css_start__*/
|
|
16
|
-
"@keyframes
|
|
16
|
+
"@keyframes loading_1sxvr{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_1sxvr_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_1sxvr_gg_._theme_dark_1sxvr_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgb(84, 86, 84))}.___SValue_1sxvr_gg_{position:absolute;top:0;left:0;background-color:var(--intergalactic-progress-bar-value-bg, rgb(255, 255, 255));background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgb(177, 125, 241) 25%, rgb(192, 142, 255) 0%, rgb(192, 142, 255) 50%, rgb(177, 125, 241) 0%, rgb(177, 125, 241) 75%, rgb(192, 142, 255) 0%));overflow:hidden;animation-name:loading_1sxvr;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_1sxvr);animation-duration:var(--duration_1sxvr);transition-duration:var(--duration_1sxvr)}@supports (color:color(display-p3 0 0 0%)){.___SValue_1sxvr_gg_{background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgb(177, 125, 241) 25%, rgb(192, 142, 255) 0%, rgb(192, 142, 255) 50%, rgb(177, 125, 241) 0%, rgb(177, 125, 241) 75%, rgb(192, 142, 255) 0%))}@media (color-gamut:p3){.___SValue_1sxvr_gg_{background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgb(177, 125, 241) 25%, color(display-p3 0.72564 0.56096 0.98326) 0%, color(display-p3 0.72564 0.56096 0.98326) 50%, rgb(177, 125, 241) 0%, rgb(177, 125, 241) 75%, color(display-p3 0.72564 0.56096 0.98326) 0%))}}}.___SValue_1sxvr_gg_.__theme_1sxvr_gg_{background-color:var(--colorBg_1sxvr);background-image:var(--colorBg_1sxvr)}.___SProgressBar_1sxvr_gg_._size_s_1sxvr_gg_,.___SValue_1sxvr_gg_._size_s_1sxvr_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_1sxvr_gg_._size_m_1sxvr_gg_,.___SValue_1sxvr_gg_._size_m_1sxvr_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_1sxvr_gg_._size_l_1sxvr_gg_,.___SValue_1sxvr_gg_._size_l_1sxvr_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_1sxvr_gg_._theme_invert_1sxvr_gg_{background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_1sxvr_gg_.__animation_1sxvr_gg_{background-color:var(--intergalactic-progress-bar-value-bg, rgb(255, 255, 255));background-image:var(--intergalactic-progress-bar-pattern-gradient,\n linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, rgb(241, 242, 242) 0%, rgb(241, 242, 242) 50%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 75%, rgb(241, 242, 242) 0%));animation-name:loading_1sxvr;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_1sxvr)}.___SProgressBar_1sxvr_gg_._theme_custom_1sxvr_gg_{background-color:var(--colorBg_1sxvr);background-image:var(--colorBg_1sxvr)}@media (prefers-reduced-motion){.___SProgressBar_1sxvr_gg_.__animation_1sxvr_gg_,.___SValue_1sxvr_gg_{animation-name:none}}",
|
|
17
17
|
/*__inner_css_end__*/
|
|
18
|
-
"
|
|
18
|
+
"1sxvr_gg_"
|
|
19
19
|
), /*__reshadow_css_end__*/
|
|
20
20
|
{
|
|
21
|
-
"__SProgressBar": "
|
|
22
|
-
"_theme_dark": "
|
|
23
|
-
"__SValue": "
|
|
24
|
-
"--width": "--
|
|
25
|
-
"--duration": "--
|
|
26
|
-
"_theme": "
|
|
27
|
-
"--colorBg": "--
|
|
28
|
-
"_size_s": "
|
|
29
|
-
"_size_m": "
|
|
30
|
-
"_size_l": "
|
|
31
|
-
"_theme_invert": "
|
|
32
|
-
"@loading": "
|
|
33
|
-
"_animation": "
|
|
34
|
-
"_theme_custom": "
|
|
21
|
+
"__SProgressBar": "___SProgressBar_1sxvr_gg_",
|
|
22
|
+
"_theme_dark": "_theme_dark_1sxvr_gg_",
|
|
23
|
+
"__SValue": "___SValue_1sxvr_gg_",
|
|
24
|
+
"--width": "--width_1sxvr",
|
|
25
|
+
"--duration": "--duration_1sxvr",
|
|
26
|
+
"_theme": "__theme_1sxvr_gg_",
|
|
27
|
+
"--colorBg": "--colorBg_1sxvr",
|
|
28
|
+
"_size_s": "_size_s_1sxvr_gg_",
|
|
29
|
+
"_size_m": "_size_m_1sxvr_gg_",
|
|
30
|
+
"_size_l": "_size_l_1sxvr_gg_",
|
|
31
|
+
"_theme_invert": "_theme_invert_1sxvr_gg_",
|
|
32
|
+
"@loading": "loading_1sxvr",
|
|
33
|
+
"_animation": "__animation_1sxvr_gg_",
|
|
34
|
+
"_theme_custom": "_theme_custom_1sxvr_gg_"
|
|
35
35
|
})
|
|
36
36
|
);
|
|
37
37
|
function isCustomTheme(theme) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/progress-bar",
|
|
3
3
|
"description": "Semrush ProgressBar Component",
|
|
4
|
-
"version": "16.1.0-prerelease.
|
|
4
|
+
"version": "16.1.0-prerelease.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/flex-box": "16.1.0-prerelease.
|
|
17
|
+
"@semcore/flex-box": "16.1.0-prerelease.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@semcore/base-components": "^16.6.0-prerelease.
|
|
20
|
+
"@semcore/base-components": "^16.6.0-prerelease.1"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "semcore/progress-bar"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@semcore/core": "16.6.0-prerelease.
|
|
28
|
+
"@semcore/core": "16.6.0-prerelease.1",
|
|
29
29
|
"@semcore/testing-utils": "1.0.0"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|