@semcore/progress-bar 4.40.4 → 4.41.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/CHANGELOG.md +6 -0
- package/lib/cjs/ProgressBar.js +15 -15
- package/lib/cjs/style/progress-bar.shadow.css +7 -7
- package/lib/es6/ProgressBar.js +15 -15
- package/lib/es6/style/progress-bar.shadow.css +7 -7
- package/lib/esm/ProgressBar.mjs +16 -16
- package/lib/esm/style/progress-bar.shadow.css +7 -7
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [4.41.0] - 2026-05-06
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version minor update due to children dependencies update (`@semcore/flex-box` [5.41.4 ~> 5.42.0], `@semcore/utils` [4.48.5 ~> 4.49.0], `@semcore/core` [2.39.4 ~> 2.40.0]).
|
|
10
|
+
|
|
5
11
|
## [4.40.4] - 2025-05-13
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/lib/cjs/ProgressBar.js
CHANGED
|
@@ -18,23 +18,23 @@ 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__:"./style/progress-bar.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 loading_7uqhu{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_7uqhu_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_7uqhu_gg_._theme_dark_7uqhu_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgb(84, 86, 84))}.___SValue_7uqhu_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_7uqhu;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_7uqhu);animation-duration:var(--duration_7uqhu);transition-duration:var(--duration_7uqhu)}@supports (color:color(display-p3 0 0 0)){.___SValue_7uqhu_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_7uqhu_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_7uqhu_gg_.__theme_7uqhu_gg_{background-color:var(--colorBg_7uqhu);background-image:var(--colorBg_7uqhu)}.___SProgressBar_7uqhu_gg_._size_s_7uqhu_gg_,.___SValue_7uqhu_gg_._size_s_7uqhu_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_7uqhu_gg_._size_m_7uqhu_gg_,.___SValue_7uqhu_gg_._size_m_7uqhu_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_7uqhu_gg_._size_l_7uqhu_gg_,.___SValue_7uqhu_gg_._size_l_7uqhu_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_7uqhu_gg_._theme_invert_7uqhu_gg_{background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_7uqhu_gg_.__animation_7uqhu_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_7uqhu;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_7uqhu)}.___SProgressBar_7uqhu_gg_._theme_custom_7uqhu_gg_{background-color:var(--colorBg_7uqhu);background-image:var(--colorBg_7uqhu)}@media (prefers-reduced-motion){.___SProgressBar_7uqhu_gg_.__animation_7uqhu_gg_,.___SValue_7uqhu_gg_{animation-name:none}}", /*__inner_css_end__*/"7uqhu_gg_"),
|
|
22
22
|
/*__reshadow_css_end__*/
|
|
23
23
|
{
|
|
24
|
-
"__SProgressBar": "
|
|
25
|
-
"_theme_dark": "
|
|
26
|
-
"__SValue": "
|
|
27
|
-
"--width": "--
|
|
28
|
-
"--duration": "--
|
|
29
|
-
"_theme": "
|
|
30
|
-
"--colorBg": "--
|
|
31
|
-
"_size_s": "
|
|
32
|
-
"_size_m": "
|
|
33
|
-
"_size_l": "
|
|
34
|
-
"_theme_invert": "
|
|
35
|
-
"@loading": "
|
|
36
|
-
"_animation": "
|
|
37
|
-
"_theme_custom": "
|
|
24
|
+
"__SProgressBar": "___SProgressBar_7uqhu_gg_",
|
|
25
|
+
"_theme_dark": "_theme_dark_7uqhu_gg_",
|
|
26
|
+
"__SValue": "___SValue_7uqhu_gg_",
|
|
27
|
+
"--width": "--width_7uqhu",
|
|
28
|
+
"--duration": "--duration_7uqhu",
|
|
29
|
+
"_theme": "__theme_7uqhu_gg_",
|
|
30
|
+
"--colorBg": "--colorBg_7uqhu",
|
|
31
|
+
"_size_s": "_size_s_7uqhu_gg_",
|
|
32
|
+
"_size_m": "_size_m_7uqhu_gg_",
|
|
33
|
+
"_size_l": "_size_l_7uqhu_gg_",
|
|
34
|
+
"_theme_invert": "_theme_invert_7uqhu_gg_",
|
|
35
|
+
"@loading": "loading_7uqhu",
|
|
36
|
+
"_animation": "__animation_7uqhu_gg_",
|
|
37
|
+
"_theme_custom": "_theme_custom_7uqhu_gg_"
|
|
38
38
|
});
|
|
39
39
|
function isCustomTheme(theme) {
|
|
40
40
|
return !['dark', 'invert'].includes(theme);
|
|
@@ -2,20 +2,20 @@ SProgressBar {
|
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
overflow: hidden;
|
|
5
|
-
background-color: var(--intergalactic-progress-bar-bg,
|
|
5
|
+
background-color: var(--intergalactic-progress-bar-bg, oklch(0.96 0.001 180));
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
SProgressBar[theme='dark'] {
|
|
9
|
-
background-color: var(--intergalactic-progress-bar-bg-invert,
|
|
9
|
+
background-color: var(--intergalactic-progress-bar-bg-invert, oklch(0.45 0.004 143.7));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
SValue {
|
|
13
13
|
position: absolute;
|
|
14
14
|
top: 0;
|
|
15
15
|
left: 0;
|
|
16
|
-
background-color: var(--intergalactic-progress-bar-value-bg,
|
|
16
|
+
background-color: var(--intergalactic-progress-bar-value-bg, oklch(1 0 0));
|
|
17
17
|
background-image: var(--intergalactic-progress-bar-value-gradient,
|
|
18
|
-
linear-gradient(-45deg,
|
|
18
|
+
linear-gradient(-45deg, oklch(from oklch(0.74 0.17 303) calc(l - 0.05) c h) 25%, oklch(0.74 0.17 303) 0%, oklch(0.74 0.17 303) 50%, oklch(from oklch(0.74 0.17 303) calc(l - 0.05) c h) 0%, oklch(from oklch(0.74 0.17 303) calc(l - 0.05) c h) 75%, oklch(0.74 0.17 303) 0%));
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
|
|
21
21
|
animation-name: loading;
|
|
@@ -57,7 +57,7 @@ SValue[size='l'] {
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
SProgressBar[theme='invert'] {
|
|
60
|
-
background-color: var(--intergalactic-progress-bar-bg,
|
|
60
|
+
background-color: var(--intergalactic-progress-bar-bg, oklch(0.96 0.001 180));
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
@keyframes loading {
|
|
@@ -71,9 +71,9 @@ SProgressBar[theme='invert'] {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
SProgressBar[animation] {
|
|
74
|
-
background-color: var(--intergalactic-progress-bar-value-bg,
|
|
74
|
+
background-color: var(--intergalactic-progress-bar-value-bg, oklch(1 0 0));
|
|
75
75
|
background-image: var(--intergalactic-progress-bar-pattern-gradient,
|
|
76
|
-
linear-gradient(-45deg,
|
|
76
|
+
linear-gradient(-45deg, oklch(0 0 0 / 0.1) 25%, oklch(0.96 0.001 180) 0%, oklch(0.96 0.001 180) 50%, oklch(0 0 0 / 0.1) 0%, oklch(0 0 0 / 0.1) 75%, oklch(0.96 0.001 180) 0%));
|
|
77
77
|
animation-name: loading;
|
|
78
78
|
animation-timing-function: linear;
|
|
79
79
|
animation-iteration-count: infinite;
|
package/lib/es6/ProgressBar.js
CHANGED
|
@@ -12,23 +12,23 @@ import createComponent, { Component, sstyled, Root } from '@semcore/core';
|
|
|
12
12
|
import { Box } from '@semcore/flex-box';
|
|
13
13
|
import resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';
|
|
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_7uqhu{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_7uqhu_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_7uqhu_gg_._theme_dark_7uqhu_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgb(84, 86, 84))}.___SValue_7uqhu_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_7uqhu;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_7uqhu);animation-duration:var(--duration_7uqhu);transition-duration:var(--duration_7uqhu)}@supports (color:color(display-p3 0 0 0)){.___SValue_7uqhu_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_7uqhu_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_7uqhu_gg_.__theme_7uqhu_gg_{background-color:var(--colorBg_7uqhu);background-image:var(--colorBg_7uqhu)}.___SProgressBar_7uqhu_gg_._size_s_7uqhu_gg_,.___SValue_7uqhu_gg_._size_s_7uqhu_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_7uqhu_gg_._size_m_7uqhu_gg_,.___SValue_7uqhu_gg_._size_m_7uqhu_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_7uqhu_gg_._size_l_7uqhu_gg_,.___SValue_7uqhu_gg_._size_l_7uqhu_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_7uqhu_gg_._theme_invert_7uqhu_gg_{background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_7uqhu_gg_.__animation_7uqhu_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_7uqhu;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_7uqhu)}.___SProgressBar_7uqhu_gg_._theme_custom_7uqhu_gg_{background-color:var(--colorBg_7uqhu);background-image:var(--colorBg_7uqhu)}@media (prefers-reduced-motion){.___SProgressBar_7uqhu_gg_.__animation_7uqhu_gg_,.___SValue_7uqhu_gg_{animation-name:none}}", /*__inner_css_end__*/"7uqhu_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_7uqhu_gg_",
|
|
19
|
+
"_theme_dark": "_theme_dark_7uqhu_gg_",
|
|
20
|
+
"__SValue": "___SValue_7uqhu_gg_",
|
|
21
|
+
"--width": "--width_7uqhu",
|
|
22
|
+
"--duration": "--duration_7uqhu",
|
|
23
|
+
"_theme": "__theme_7uqhu_gg_",
|
|
24
|
+
"--colorBg": "--colorBg_7uqhu",
|
|
25
|
+
"_size_s": "_size_s_7uqhu_gg_",
|
|
26
|
+
"_size_m": "_size_m_7uqhu_gg_",
|
|
27
|
+
"_size_l": "_size_l_7uqhu_gg_",
|
|
28
|
+
"_theme_invert": "_theme_invert_7uqhu_gg_",
|
|
29
|
+
"@loading": "loading_7uqhu",
|
|
30
|
+
"_animation": "__animation_7uqhu_gg_",
|
|
31
|
+
"_theme_custom": "_theme_custom_7uqhu_gg_"
|
|
32
32
|
});
|
|
33
33
|
function isCustomTheme(theme) {
|
|
34
34
|
return !['dark', 'invert'].includes(theme);
|
|
@@ -2,20 +2,20 @@ SProgressBar {
|
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
overflow: hidden;
|
|
5
|
-
background-color: var(--intergalactic-progress-bar-bg,
|
|
5
|
+
background-color: var(--intergalactic-progress-bar-bg, oklch(0.96 0.001 180));
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
SProgressBar[theme='dark'] {
|
|
9
|
-
background-color: var(--intergalactic-progress-bar-bg-invert,
|
|
9
|
+
background-color: var(--intergalactic-progress-bar-bg-invert, oklch(0.45 0.004 143.7));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
SValue {
|
|
13
13
|
position: absolute;
|
|
14
14
|
top: 0;
|
|
15
15
|
left: 0;
|
|
16
|
-
background-color: var(--intergalactic-progress-bar-value-bg,
|
|
16
|
+
background-color: var(--intergalactic-progress-bar-value-bg, oklch(1 0 0));
|
|
17
17
|
background-image: var(--intergalactic-progress-bar-value-gradient,
|
|
18
|
-
linear-gradient(-45deg,
|
|
18
|
+
linear-gradient(-45deg, oklch(from oklch(0.74 0.17 303) calc(l - 0.05) c h) 25%, oklch(0.74 0.17 303) 0%, oklch(0.74 0.17 303) 50%, oklch(from oklch(0.74 0.17 303) calc(l - 0.05) c h) 0%, oklch(from oklch(0.74 0.17 303) calc(l - 0.05) c h) 75%, oklch(0.74 0.17 303) 0%));
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
|
|
21
21
|
animation-name: loading;
|
|
@@ -57,7 +57,7 @@ SValue[size='l'] {
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
SProgressBar[theme='invert'] {
|
|
60
|
-
background-color: var(--intergalactic-progress-bar-bg,
|
|
60
|
+
background-color: var(--intergalactic-progress-bar-bg, oklch(0.96 0.001 180));
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
@keyframes loading {
|
|
@@ -71,9 +71,9 @@ SProgressBar[theme='invert'] {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
SProgressBar[animation] {
|
|
74
|
-
background-color: var(--intergalactic-progress-bar-value-bg,
|
|
74
|
+
background-color: var(--intergalactic-progress-bar-value-bg, oklch(1 0 0));
|
|
75
75
|
background-image: var(--intergalactic-progress-bar-pattern-gradient,
|
|
76
|
-
linear-gradient(-45deg,
|
|
76
|
+
linear-gradient(-45deg, oklch(0 0 0 / 0.1) 25%, oklch(0.96 0.001 180) 0%, oklch(0.96 0.001 180) 50%, oklch(0 0 0 / 0.1) 0%, oklch(0 0 0 / 0.1) 75%, oklch(0.96 0.001 180) 0%));
|
|
77
77
|
animation-name: loading;
|
|
78
78
|
animation-timing-function: linear;
|
|
79
79
|
animation-iteration-count: infinite;
|
package/lib/esm/ProgressBar.mjs
CHANGED
|
@@ -14,25 +14,25 @@ var style = (
|
|
|
14
14
|
/*__reshadow_css_start__*/
|
|
15
15
|
(sstyled.insert(
|
|
16
16
|
/*__inner_css_start__*/
|
|
17
|
-
"@keyframes
|
|
17
|
+
"@keyframes loading_7uqhu{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_7uqhu_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_7uqhu_gg_._theme_dark_7uqhu_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgb(84, 86, 84))}.___SValue_7uqhu_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_7uqhu;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_7uqhu);animation-duration:var(--duration_7uqhu);transition-duration:var(--duration_7uqhu)}@supports (color:color(display-p3 0 0 0)){.___SValue_7uqhu_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_7uqhu_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_7uqhu_gg_.__theme_7uqhu_gg_{background-color:var(--colorBg_7uqhu);background-image:var(--colorBg_7uqhu)}.___SProgressBar_7uqhu_gg_._size_s_7uqhu_gg_,.___SValue_7uqhu_gg_._size_s_7uqhu_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_7uqhu_gg_._size_m_7uqhu_gg_,.___SValue_7uqhu_gg_._size_m_7uqhu_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_7uqhu_gg_._size_l_7uqhu_gg_,.___SValue_7uqhu_gg_._size_l_7uqhu_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_7uqhu_gg_._theme_invert_7uqhu_gg_{background-color:var(--intergalactic-progress-bar-bg, rgb(241, 242, 242))}.___SProgressBar_7uqhu_gg_.__animation_7uqhu_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_7uqhu;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_7uqhu)}.___SProgressBar_7uqhu_gg_._theme_custom_7uqhu_gg_{background-color:var(--colorBg_7uqhu);background-image:var(--colorBg_7uqhu)}@media (prefers-reduced-motion){.___SProgressBar_7uqhu_gg_.__animation_7uqhu_gg_,.___SValue_7uqhu_gg_{animation-name:none}}",
|
|
18
18
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
19
|
+
"7uqhu_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_7uqhu_gg_",
|
|
23
|
+
"_theme_dark": "_theme_dark_7uqhu_gg_",
|
|
24
|
+
"__SValue": "___SValue_7uqhu_gg_",
|
|
25
|
+
"--width": "--width_7uqhu",
|
|
26
|
+
"--duration": "--duration_7uqhu",
|
|
27
|
+
"_theme": "__theme_7uqhu_gg_",
|
|
28
|
+
"--colorBg": "--colorBg_7uqhu",
|
|
29
|
+
"_size_s": "_size_s_7uqhu_gg_",
|
|
30
|
+
"_size_m": "_size_m_7uqhu_gg_",
|
|
31
|
+
"_size_l": "_size_l_7uqhu_gg_",
|
|
32
|
+
"_theme_invert": "_theme_invert_7uqhu_gg_",
|
|
33
|
+
"@loading": "loading_7uqhu",
|
|
34
|
+
"_animation": "__animation_7uqhu_gg_",
|
|
35
|
+
"_theme_custom": "_theme_custom_7uqhu_gg_"
|
|
36
36
|
})
|
|
37
37
|
);
|
|
38
38
|
function isCustomTheme(theme) {
|
|
@@ -2,20 +2,20 @@ SProgressBar {
|
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
overflow: hidden;
|
|
5
|
-
background-color: var(--intergalactic-progress-bar-bg,
|
|
5
|
+
background-color: var(--intergalactic-progress-bar-bg, oklch(0.96 0.001 180));
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
SProgressBar[theme='dark'] {
|
|
9
|
-
background-color: var(--intergalactic-progress-bar-bg-invert,
|
|
9
|
+
background-color: var(--intergalactic-progress-bar-bg-invert, oklch(0.45 0.004 143.7));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
SValue {
|
|
13
13
|
position: absolute;
|
|
14
14
|
top: 0;
|
|
15
15
|
left: 0;
|
|
16
|
-
background-color: var(--intergalactic-progress-bar-value-bg,
|
|
16
|
+
background-color: var(--intergalactic-progress-bar-value-bg, oklch(1 0 0));
|
|
17
17
|
background-image: var(--intergalactic-progress-bar-value-gradient,
|
|
18
|
-
linear-gradient(-45deg,
|
|
18
|
+
linear-gradient(-45deg, oklch(from oklch(0.74 0.17 303) calc(l - 0.05) c h) 25%, oklch(0.74 0.17 303) 0%, oklch(0.74 0.17 303) 50%, oklch(from oklch(0.74 0.17 303) calc(l - 0.05) c h) 0%, oklch(from oklch(0.74 0.17 303) calc(l - 0.05) c h) 75%, oklch(0.74 0.17 303) 0%));
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
|
|
21
21
|
animation-name: loading;
|
|
@@ -57,7 +57,7 @@ SValue[size='l'] {
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
SProgressBar[theme='invert'] {
|
|
60
|
-
background-color: var(--intergalactic-progress-bar-bg,
|
|
60
|
+
background-color: var(--intergalactic-progress-bar-bg, oklch(0.96 0.001 180));
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
@keyframes loading {
|
|
@@ -71,9 +71,9 @@ SProgressBar[theme='invert'] {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
SProgressBar[animation] {
|
|
74
|
-
background-color: var(--intergalactic-progress-bar-value-bg,
|
|
74
|
+
background-color: var(--intergalactic-progress-bar-value-bg, oklch(1 0 0));
|
|
75
75
|
background-image: var(--intergalactic-progress-bar-pattern-gradient,
|
|
76
|
-
linear-gradient(-45deg,
|
|
76
|
+
linear-gradient(-45deg, oklch(0 0 0 / 0.1) 25%, oklch(0.96 0.001 180) 0%, oklch(0.96 0.001 180) 50%, oklch(0 0 0 / 0.1) 0%, oklch(0 0 0 / 0.1) 75%, oklch(0.96 0.001 180) 0%));
|
|
77
77
|
animation-name: loading;
|
|
78
78
|
animation-timing-function: linear;
|
|
79
79
|
animation-iteration-count: infinite;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/progress-bar",
|
|
3
3
|
"description": "Semrush ProgressBar Component",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.41.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,11 +14,11 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/flex-box": "5.
|
|
18
|
-
"@semcore/utils": "4.
|
|
17
|
+
"@semcore/flex-box": "5.42.0-prerelease.1",
|
|
18
|
+
"@semcore/utils": "4.49.0-prerelease.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@semcore/core": "^2.
|
|
21
|
+
"@semcore/core": "^2.40.0-prerelease.1",
|
|
22
22
|
"react": "16.8 - 18",
|
|
23
23
|
"react-dom": "16.8 - 18"
|
|
24
24
|
},
|