@semcore/progress-bar 4.40.0 → 4.40.1-prerelease.2

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 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.40.1] - 2025-03-18
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/flex-box` [5.41.0 ~> 5.41.1], `@semcore/utils` [4.48.0 ~> 4.48.1], `@semcore/core` [2.39.0 ~> 2.39.1]).
10
+
5
11
  ## [4.40.0] - 2025-03-14
6
12
 
7
13
  ### Added
@@ -18,21 +18,21 @@ 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 loading_1nxr8{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_1nxr8_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_1nxr8_gg_._theme_dark_1nxr8_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgba(255, 255, 255, 0.2))}.___SValue_1nxr8_gg_{position:absolute;top:0;left:0;background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgba(0, 159, 129, 0.9) 25%, rgba(0, 159, 129, 1) 0%, rgba(0, 159, 129, 1) 50%, rgba(0, 159, 129, 0.9) 0%, rgba(0, 159, 129, 0.9) 75%, rgba(0, 159, 129, 1) 0%));overflow:hidden;animation-name:loading_1nxr8;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_1nxr8);animation-duration:var(--duration_1nxr8);transition-duration:var(--duration_1nxr8)}.___SValue_1nxr8_gg_.__theme_1nxr8_gg_{background-color:var(--colorBg_1nxr8);background-image:var(--colorBg_1nxr8)}.___SProgressBar_1nxr8_gg_._size_s_1nxr8_gg_,.___SValue_1nxr8_gg_._size_s_1nxr8_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_1nxr8_gg_._size_m_1nxr8_gg_,.___SValue_1nxr8_gg_._size_m_1nxr8_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_1nxr8_gg_._size_l_1nxr8_gg_,.___SValue_1nxr8_gg_._size_l_1nxr8_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_1nxr8_gg_._theme_invert_1nxr8_gg_{background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_1nxr8_gg_.__animation_1nxr8_gg_{background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-pattern-gradient,\n linear-gradient(-45deg, rgba(224, 225, 233, 0.9) 25%, rgba(224, 225, 233, 1) 0%, rgba(224, 225, 233, 1) 50%, rgba(224, 225, 233, 0.9) 0%, rgba(224, 225, 233, 0.9) 75%, rgba(224, 225, 233, 1) 0%));animation-name:loading_1nxr8;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_1nxr8)}.___SProgressBar_1nxr8_gg_._theme_custom_1nxr8_gg_{background-color:var(--colorBg_1nxr8);background-image:var(--colorBg_1nxr8)}@media (prefers-reduced-motion){.___SProgressBar_1nxr8_gg_.__animation_1nxr8_gg_,.___SValue_1nxr8_gg_{animation-name:none}}" /*__inner_css_end__*/, "1nxr8_gg_") /*__reshadow_css_end__*/, {
22
- "__SProgressBar": "___SProgressBar_1nxr8_gg_",
23
- "_theme_dark": "_theme_dark_1nxr8_gg_",
24
- "__SValue": "___SValue_1nxr8_gg_",
25
- "--width": "--width_1nxr8",
26
- "--duration": "--duration_1nxr8",
27
- "_theme": "__theme_1nxr8_gg_",
28
- "--colorBg": "--colorBg_1nxr8",
29
- "_size_s": "_size_s_1nxr8_gg_",
30
- "_size_m": "_size_m_1nxr8_gg_",
31
- "_size_l": "_size_l_1nxr8_gg_",
32
- "_theme_invert": "_theme_invert_1nxr8_gg_",
33
- "@loading": "loading_1nxr8",
34
- "_animation": "__animation_1nxr8_gg_",
35
- "_theme_custom": "_theme_custom_1nxr8_gg_"
21
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/"@keyframes loading_eh656{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_eh656_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_eh656_gg_._theme_dark_eh656_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgba(255, 255, 255, 0.2))}.___SValue_eh656_gg_{position:absolute;top:0;left:0;background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgba(0, 159, 129, 0.9) 25%, rgba(0, 159, 129, 1) 0%, rgba(0, 159, 129, 1) 50%, rgba(0, 159, 129, 0.9) 0%, rgba(0, 159, 129, 0.9) 75%, rgba(0, 159, 129, 1) 0%));overflow:hidden;animation-name:loading_eh656;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_eh656);animation-duration:var(--duration_eh656);transition-duration:var(--duration_eh656)}.___SValue_eh656_gg_.__theme_eh656_gg_{background-color:var(--colorBg_eh656);background-image:var(--colorBg_eh656)}.___SProgressBar_eh656_gg_._size_s_eh656_gg_,.___SValue_eh656_gg_._size_s_eh656_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_eh656_gg_._size_m_eh656_gg_,.___SValue_eh656_gg_._size_m_eh656_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_eh656_gg_._size_l_eh656_gg_,.___SValue_eh656_gg_._size_l_eh656_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_eh656_gg_._theme_invert_eh656_gg_{background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_eh656_gg_.__animation_eh656_gg_{background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-pattern-gradient,\n linear-gradient(-45deg, rgba(224, 225, 233, 0.9) 25%, rgba(224, 225, 233, 1) 0%, rgba(224, 225, 233, 1) 50%, rgba(224, 225, 233, 0.9) 0%, rgba(224, 225, 233, 0.9) 75%, rgba(224, 225, 233, 1) 0%));animation-name:loading_eh656;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_eh656)}.___SProgressBar_eh656_gg_._theme_custom_eh656_gg_{background-color:var(--colorBg_eh656);background-image:var(--colorBg_eh656)}@media (prefers-reduced-motion){.___SProgressBar_eh656_gg_.__animation_eh656_gg_,.___SValue_eh656_gg_{animation-name:none}}" /*__inner_css_end__*/, "eh656_gg_") /*__reshadow_css_end__*/, {
22
+ "__SProgressBar": "___SProgressBar_eh656_gg_",
23
+ "_theme_dark": "_theme_dark_eh656_gg_",
24
+ "__SValue": "___SValue_eh656_gg_",
25
+ "--width": "--width_eh656",
26
+ "--duration": "--duration_eh656",
27
+ "_theme": "__theme_eh656_gg_",
28
+ "--colorBg": "--colorBg_eh656",
29
+ "_size_s": "_size_s_eh656_gg_",
30
+ "_size_m": "_size_m_eh656_gg_",
31
+ "_size_l": "_size_l_eh656_gg_",
32
+ "_theme_invert": "_theme_invert_eh656_gg_",
33
+ "@loading": "loading_eh656",
34
+ "_animation": "__animation_eh656_gg_",
35
+ "_theme_custom": "_theme_custom_eh656_gg_"
36
36
  });
37
37
  function isCustomTheme(theme) {
38
38
  return !['dark', 'invert'].includes(theme);
@@ -12,21 +12,21 @@ 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 loading_1nxr8{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_1nxr8_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_1nxr8_gg_._theme_dark_1nxr8_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgba(255, 255, 255, 0.2))}.___SValue_1nxr8_gg_{position:absolute;top:0;left:0;background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgba(0, 159, 129, 0.9) 25%, rgba(0, 159, 129, 1) 0%, rgba(0, 159, 129, 1) 50%, rgba(0, 159, 129, 0.9) 0%, rgba(0, 159, 129, 0.9) 75%, rgba(0, 159, 129, 1) 0%));overflow:hidden;animation-name:loading_1nxr8;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_1nxr8);animation-duration:var(--duration_1nxr8);transition-duration:var(--duration_1nxr8)}.___SValue_1nxr8_gg_.__theme_1nxr8_gg_{background-color:var(--colorBg_1nxr8);background-image:var(--colorBg_1nxr8)}.___SProgressBar_1nxr8_gg_._size_s_1nxr8_gg_,.___SValue_1nxr8_gg_._size_s_1nxr8_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_1nxr8_gg_._size_m_1nxr8_gg_,.___SValue_1nxr8_gg_._size_m_1nxr8_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_1nxr8_gg_._size_l_1nxr8_gg_,.___SValue_1nxr8_gg_._size_l_1nxr8_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_1nxr8_gg_._theme_invert_1nxr8_gg_{background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_1nxr8_gg_.__animation_1nxr8_gg_{background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-pattern-gradient,\n linear-gradient(-45deg, rgba(224, 225, 233, 0.9) 25%, rgba(224, 225, 233, 1) 0%, rgba(224, 225, 233, 1) 50%, rgba(224, 225, 233, 0.9) 0%, rgba(224, 225, 233, 0.9) 75%, rgba(224, 225, 233, 1) 0%));animation-name:loading_1nxr8;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_1nxr8)}.___SProgressBar_1nxr8_gg_._theme_custom_1nxr8_gg_{background-color:var(--colorBg_1nxr8);background-image:var(--colorBg_1nxr8)}@media (prefers-reduced-motion){.___SProgressBar_1nxr8_gg_.__animation_1nxr8_gg_,.___SValue_1nxr8_gg_{animation-name:none}}" /*__inner_css_end__*/, "1nxr8_gg_") /*__reshadow_css_end__*/, {
16
- "__SProgressBar": "___SProgressBar_1nxr8_gg_",
17
- "_theme_dark": "_theme_dark_1nxr8_gg_",
18
- "__SValue": "___SValue_1nxr8_gg_",
19
- "--width": "--width_1nxr8",
20
- "--duration": "--duration_1nxr8",
21
- "_theme": "__theme_1nxr8_gg_",
22
- "--colorBg": "--colorBg_1nxr8",
23
- "_size_s": "_size_s_1nxr8_gg_",
24
- "_size_m": "_size_m_1nxr8_gg_",
25
- "_size_l": "_size_l_1nxr8_gg_",
26
- "_theme_invert": "_theme_invert_1nxr8_gg_",
27
- "@loading": "loading_1nxr8",
28
- "_animation": "__animation_1nxr8_gg_",
29
- "_theme_custom": "_theme_custom_1nxr8_gg_"
15
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes loading_eh656{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_eh656_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_eh656_gg_._theme_dark_eh656_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgba(255, 255, 255, 0.2))}.___SValue_eh656_gg_{position:absolute;top:0;left:0;background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-value-gradient,\n linear-gradient(-45deg, rgba(0, 159, 129, 0.9) 25%, rgba(0, 159, 129, 1) 0%, rgba(0, 159, 129, 1) 50%, rgba(0, 159, 129, 0.9) 0%, rgba(0, 159, 129, 0.9) 75%, rgba(0, 159, 129, 1) 0%));overflow:hidden;animation-name:loading_eh656;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_eh656);animation-duration:var(--duration_eh656);transition-duration:var(--duration_eh656)}.___SValue_eh656_gg_.__theme_eh656_gg_{background-color:var(--colorBg_eh656);background-image:var(--colorBg_eh656)}.___SProgressBar_eh656_gg_._size_s_eh656_gg_,.___SValue_eh656_gg_._size_s_eh656_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_eh656_gg_._size_m_eh656_gg_,.___SValue_eh656_gg_._size_m_eh656_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_eh656_gg_._size_l_eh656_gg_,.___SValue_eh656_gg_._size_l_eh656_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_eh656_gg_._theme_invert_eh656_gg_{background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_eh656_gg_.__animation_eh656_gg_{background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-pattern-gradient,\n linear-gradient(-45deg, rgba(224, 225, 233, 0.9) 25%, rgba(224, 225, 233, 1) 0%, rgba(224, 225, 233, 1) 50%, rgba(224, 225, 233, 0.9) 0%, rgba(224, 225, 233, 0.9) 75%, rgba(224, 225, 233, 1) 0%));animation-name:loading_eh656;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_eh656)}.___SProgressBar_eh656_gg_._theme_custom_eh656_gg_{background-color:var(--colorBg_eh656);background-image:var(--colorBg_eh656)}@media (prefers-reduced-motion){.___SProgressBar_eh656_gg_.__animation_eh656_gg_,.___SValue_eh656_gg_{animation-name:none}}" /*__inner_css_end__*/, "eh656_gg_") /*__reshadow_css_end__*/, {
16
+ "__SProgressBar": "___SProgressBar_eh656_gg_",
17
+ "_theme_dark": "_theme_dark_eh656_gg_",
18
+ "__SValue": "___SValue_eh656_gg_",
19
+ "--width": "--width_eh656",
20
+ "--duration": "--duration_eh656",
21
+ "_theme": "__theme_eh656_gg_",
22
+ "--colorBg": "--colorBg_eh656",
23
+ "_size_s": "_size_s_eh656_gg_",
24
+ "_size_m": "_size_m_eh656_gg_",
25
+ "_size_l": "_size_l_eh656_gg_",
26
+ "_theme_invert": "_theme_invert_eh656_gg_",
27
+ "@loading": "loading_eh656",
28
+ "_animation": "__animation_eh656_gg_",
29
+ "_theme_custom": "_theme_custom_eh656_gg_"
30
30
  });
31
31
  function isCustomTheme(theme) {
32
32
  return !['dark', 'invert'].includes(theme);
@@ -1,78 +1,78 @@
1
- import x from "@babel/runtime/helpers/esm/objectSpread2";
2
- import B from "@babel/runtime/helpers/esm/classCallCheck";
3
- import S from "@babel/runtime/helpers/esm/createClass";
4
- import k from "@babel/runtime/helpers/esm/inherits";
5
- import z from "@babel/runtime/helpers/esm/createSuper";
1
+ import m from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import S from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import k from "@babel/runtime/helpers/esm/createClass";
4
+ import z from "@babel/runtime/helpers/esm/inherits";
5
+ import y from "@babel/runtime/helpers/esm/createSuper";
6
6
  import s from "@babel/runtime/helpers/esm/defineProperty";
7
- import { sstyled as y } from "@semcore/utils/lib/core/index";
8
- import C, { sstyled as v, assignProps as p, Component as V } from "@semcore/core";
7
+ import { sstyled as C } from "@semcore/utils/lib/core/index";
8
+ import x, { sstyled as v, assignProps as p, Component as V } from "@semcore/core";
9
9
  import g from "react";
10
- import { Box as h } from "@semcore/flex-box";
10
+ import { Box as b } from "@semcore/flex-box";
11
11
  import w from "@semcore/utils/lib/enhances/resolveColorEnhance";
12
12
  var E = (
13
13
  /*__reshadow_css_start__*/
14
- (y.insert(
14
+ (C.insert(
15
15
  /*__inner_css_start__*/
16
- `@keyframes loading_1nxr8{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_1nxr8_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_1nxr8_gg_._theme_dark_1nxr8_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgba(255, 255, 255, 0.2))}.___SValue_1nxr8_gg_{position:absolute;top:0;left:0;background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-value-gradient,
17
- linear-gradient(-45deg, rgba(0, 159, 129, 0.9) 25%, rgba(0, 159, 129, 1) 0%, rgba(0, 159, 129, 1) 50%, rgba(0, 159, 129, 0.9) 0%, rgba(0, 159, 129, 0.9) 75%, rgba(0, 159, 129, 1) 0%));overflow:hidden;animation-name:loading_1nxr8;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_1nxr8);animation-duration:var(--duration_1nxr8);transition-duration:var(--duration_1nxr8)}.___SValue_1nxr8_gg_.__theme_1nxr8_gg_{background-color:var(--colorBg_1nxr8);background-image:var(--colorBg_1nxr8)}.___SProgressBar_1nxr8_gg_._size_s_1nxr8_gg_,.___SValue_1nxr8_gg_._size_s_1nxr8_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_1nxr8_gg_._size_m_1nxr8_gg_,.___SValue_1nxr8_gg_._size_m_1nxr8_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_1nxr8_gg_._size_l_1nxr8_gg_,.___SValue_1nxr8_gg_._size_l_1nxr8_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_1nxr8_gg_._theme_invert_1nxr8_gg_{background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_1nxr8_gg_.__animation_1nxr8_gg_{background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-pattern-gradient,
18
- linear-gradient(-45deg, rgba(224, 225, 233, 0.9) 25%, rgba(224, 225, 233, 1) 0%, rgba(224, 225, 233, 1) 50%, rgba(224, 225, 233, 0.9) 0%, rgba(224, 225, 233, 0.9) 75%, rgba(224, 225, 233, 1) 0%));animation-name:loading_1nxr8;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_1nxr8)}.___SProgressBar_1nxr8_gg_._theme_custom_1nxr8_gg_{background-color:var(--colorBg_1nxr8);background-image:var(--colorBg_1nxr8)}@media (prefers-reduced-motion){.___SProgressBar_1nxr8_gg_.__animation_1nxr8_gg_,.___SValue_1nxr8_gg_{animation-name:none}}`,
19
- "1nxr8_gg_"
16
+ `@keyframes loading_eh656{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_eh656_gg_{position:relative;width:100%;overflow:hidden;background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_eh656_gg_._theme_dark_eh656_gg_{background-color:var(--intergalactic-progress-bar-bg-invert, rgba(255, 255, 255, 0.2))}.___SValue_eh656_gg_{position:absolute;top:0;left:0;background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-value-gradient,
17
+ linear-gradient(-45deg, rgba(0, 159, 129, 0.9) 25%, rgba(0, 159, 129, 1) 0%, rgba(0, 159, 129, 1) 50%, rgba(0, 159, 129, 0.9) 0%, rgba(0, 159, 129, 0.9) 75%, rgba(0, 159, 129, 1) 0%));overflow:hidden;animation-name:loading_eh656;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;width:var(--width_eh656);animation-duration:var(--duration_eh656);transition-duration:var(--duration_eh656)}.___SValue_eh656_gg_.__theme_eh656_gg_{background-color:var(--colorBg_eh656);background-image:var(--colorBg_eh656)}.___SProgressBar_eh656_gg_._size_s_eh656_gg_,.___SValue_eh656_gg_._size_s_eh656_gg_{height:4px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:8px 8px}.___SProgressBar_eh656_gg_._size_m_eh656_gg_,.___SValue_eh656_gg_._size_m_eh656_gg_{height:8px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:12px 12px}.___SProgressBar_eh656_gg_._size_l_eh656_gg_,.___SValue_eh656_gg_._size_l_eh656_gg_{height:12px;border-radius:var(--intergalactic-progress-bar-rounded, 6px);background-size:16px 16px}.___SProgressBar_eh656_gg_._theme_invert_eh656_gg_{background-color:var(--intergalactic-progress-bar-bg, #e0e1e9)}.___SProgressBar_eh656_gg_.__animation_eh656_gg_{background-color:var(--intergalactic-progress-bar-value-bg, #000000);background-image:var(--intergalactic-progress-bar-pattern-gradient,
18
+ linear-gradient(-45deg, rgba(224, 225, 233, 0.9) 25%, rgba(224, 225, 233, 1) 0%, rgba(224, 225, 233, 1) 50%, rgba(224, 225, 233, 0.9) 0%, rgba(224, 225, 233, 0.9) 75%, rgba(224, 225, 233, 1) 0%));animation-name:loading_eh656;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:var(--duration_eh656)}.___SProgressBar_eh656_gg_._theme_custom_eh656_gg_{background-color:var(--colorBg_eh656);background-image:var(--colorBg_eh656)}@media (prefers-reduced-motion){.___SProgressBar_eh656_gg_.__animation_eh656_gg_,.___SValue_eh656_gg_{animation-name:none}}`,
19
+ "eh656_gg_"
20
20
  ), {
21
- __SProgressBar: "___SProgressBar_1nxr8_gg_",
22
- _theme_dark: "_theme_dark_1nxr8_gg_",
23
- __SValue: "___SValue_1nxr8_gg_",
24
- "--width": "--width_1nxr8",
25
- "--duration": "--duration_1nxr8",
26
- _theme: "__theme_1nxr8_gg_",
27
- "--colorBg": "--colorBg_1nxr8",
28
- _size_s: "_size_s_1nxr8_gg_",
29
- _size_m: "_size_m_1nxr8_gg_",
30
- _size_l: "_size_l_1nxr8_gg_",
31
- _theme_invert: "_theme_invert_1nxr8_gg_",
32
- "@loading": "loading_1nxr8",
33
- _animation: "__animation_1nxr8_gg_",
34
- _theme_custom: "_theme_custom_1nxr8_gg_"
21
+ __SProgressBar: "___SProgressBar_eh656_gg_",
22
+ _theme_dark: "_theme_dark_eh656_gg_",
23
+ __SValue: "___SValue_eh656_gg_",
24
+ "--width": "--width_eh656",
25
+ "--duration": "--duration_eh656",
26
+ _theme: "__theme_eh656_gg_",
27
+ "--colorBg": "--colorBg_eh656",
28
+ _size_s: "_size_s_eh656_gg_",
29
+ _size_m: "_size_m_eh656_gg_",
30
+ _size_l: "_size_l_eh656_gg_",
31
+ _theme_invert: "_theme_invert_eh656_gg_",
32
+ "@loading": "loading_eh656",
33
+ _animation: "__animation_eh656_gg_",
34
+ _theme_custom: "_theme_custom_eh656_gg_"
35
35
  })
36
36
  );
37
- function R(e) {
38
- return !["dark", "invert"].includes(e);
37
+ function R(r) {
38
+ return !["dark", "invert"].includes(r);
39
39
  }
40
- var i = /* @__PURE__ */ function(e) {
41
- k(a, e);
42
- var l = z(a);
40
+ var n = /* @__PURE__ */ function(r) {
41
+ z(a, r);
42
+ var l = y(a);
43
43
  function a() {
44
- return B(this, a), l.apply(this, arguments);
44
+ return S(this, a), l.apply(this, arguments);
45
45
  }
46
- return S(a, [{
46
+ return k(a, [{
47
47
  key: "getValueProps",
48
48
  value: function() {
49
- var _ = this.asProps, n = _.value, o = _.duration, r = _.size, t = _.resolveColor;
49
+ var _ = this.asProps, o = _.value, t = _.duration, e = _.size, i = _.resolveColor;
50
50
  return {
51
- value: n,
52
- duration: o,
53
- size: r,
54
- resolveColor: t
51
+ value: o,
52
+ duration: t,
53
+ size: e,
54
+ resolveColor: i
55
55
  };
56
56
  }
57
57
  }, {
58
58
  key: "render",
59
59
  value: function() {
60
- var _ = this.asProps, n, o = h, r = this.asProps, t = r.Children, c = r.styles, b = r.duration, d = r.theme, m = r.value, f = r.resolveColor, P = R(d) ? "custom" : d;
61
- return n = v(c), /* @__PURE__ */ g.createElement(o, n.cn("SProgressBar", x({}, p({
62
- "use:theme": P,
63
- "use:animation": !m,
64
- "use:duration": "".concat(b, "ms"),
65
- colorBg: f(d),
60
+ var _ = this.asProps, o, t = b, e = this.asProps, i = e.Children, h = e.styles, f = e.duration, c = e.theme, d = e.value, P = e.resolveColor, B = R(c) ? "custom" : c;
61
+ return o = v(h), /* @__PURE__ */ g.createElement(t, o.cn("SProgressBar", m({}, p({
62
+ "use:theme": B,
63
+ "use:animation": !d,
64
+ "use:duration": "".concat(f, "ms"),
65
+ colorBg: P(c),
66
66
  role: "progressbar",
67
- "aria-valuenow": m
68
- }, _))), /* @__PURE__ */ g.createElement(t, n.cn("Children", {})));
67
+ "aria-valuenow": d
68
+ }, _))), /* @__PURE__ */ g.createElement(i, o.cn("Children", {})));
69
69
  }
70
70
  }]), a;
71
71
  }(V);
72
- s(i, "displayName", "ProgressBar");
73
- s(i, "style", E);
74
- s(i, "enhance", [w()]);
75
- s(i, "defaultProps", function() {
72
+ s(n, "displayName", "ProgressBar");
73
+ s(n, "style", E);
74
+ s(n, "enhance", [w()]);
75
+ s(n, "defaultProps", function() {
76
76
  return {
77
77
  duration: 1e3,
78
78
  size: "m",
@@ -80,15 +80,15 @@ s(i, "defaultProps", function() {
80
80
  children: /* @__PURE__ */ g.createElement(T.Value, null)
81
81
  };
82
82
  });
83
- function $(e) {
84
- var l = arguments[0], a, u = h, _ = e.styles, n = e.value, o = e.theme, r = e.duration, t = e.resolveColor, c = "".concat(n, "%");
85
- return a = v(_), /* @__PURE__ */ g.createElement(u, a.cn("SValue", x({}, p({
86
- "use:width": c,
87
- "use:duration": "".concat(r, "ms"),
88
- colorBg: t(o)
83
+ function $(r) {
84
+ var l = arguments[0], a, u = b, _ = r.styles, o = r.value, t = r.theme, e = r.duration, i = r.resolveColor, h = "".concat(o, "%");
85
+ return a = v(_), /* @__PURE__ */ g.createElement(u, a.cn("SValue", m({}, p({
86
+ "use:width": h,
87
+ "use:duration": "".concat(e, "ms"),
88
+ colorBg: i(t)
89
89
  }, l))));
90
90
  }
91
- var T = C(i, {
91
+ var T = x(n, {
92
92
  Value: $
93
93
  });
94
94
  export {
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.40.0",
4
+ "version": "4.40.1-prerelease.2",
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.41.0",
18
- "@semcore/utils": "4.48.0"
17
+ "@semcore/flex-box": "5.41.1-prerelease.2",
18
+ "@semcore/utils": "4.48.1-prerelease.2"
19
19
  },
20
20
  "peerDependencies": {
21
- "@semcore/core": "^2.17.5",
21
+ "@semcore/core": "^2.39.1-prerelease.2",
22
22
  "react": "16.8 - 18",
23
23
  "react-dom": "16.8 - 18"
24
24
  },