@semcore/progress-bar 4.40.0-prerelease.9 → 4.40.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 CHANGED
@@ -2,11 +2,17 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [4.40.0] - 2025-02-28
5
+ ## [4.40.1] - 2025-03-17
6
6
 
7
7
  ### Changed
8
8
 
9
- - Version minor update due to children dependencies update (`@semcore/flex-box` [5.40.1 ~> 5.41.0], `@semcore/utils` [4.45.1 ~> 4.47.1], `@semcore/core` [2.38.1 ~> 2.39.0]).
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
+
11
+ ## [4.40.0] - 2025-03-14
12
+
13
+ ### Added
14
+
15
+ - Build for ESM.
10
16
 
11
17
  ## [4.39.1] - 2025-02-05
12
18
 
@@ -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);
@@ -0,0 +1,96 @@
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
+ import s from "@babel/runtime/helpers/esm/defineProperty";
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
+ import g from "react";
10
+ import { Box as b } from "@semcore/flex-box";
11
+ import w from "@semcore/utils/lib/enhances/resolveColorEnhance";
12
+ var E = (
13
+ /*__reshadow_css_start__*/
14
+ (C.insert(
15
+ /*__inner_css_start__*/
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
+ ), {
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
+ })
36
+ );
37
+ function R(r) {
38
+ return !["dark", "invert"].includes(r);
39
+ }
40
+ var n = /* @__PURE__ */ function(r) {
41
+ z(a, r);
42
+ var l = y(a);
43
+ function a() {
44
+ return S(this, a), l.apply(this, arguments);
45
+ }
46
+ return k(a, [{
47
+ key: "getValueProps",
48
+ value: function() {
49
+ var _ = this.asProps, o = _.value, t = _.duration, e = _.size, i = _.resolveColor;
50
+ return {
51
+ value: o,
52
+ duration: t,
53
+ size: e,
54
+ resolveColor: i
55
+ };
56
+ }
57
+ }, {
58
+ key: "render",
59
+ value: function() {
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
+ role: "progressbar",
67
+ "aria-valuenow": d
68
+ }, _))), /* @__PURE__ */ g.createElement(i, o.cn("Children", {})));
69
+ }
70
+ }]), a;
71
+ }(V);
72
+ s(n, "displayName", "ProgressBar");
73
+ s(n, "style", E);
74
+ s(n, "enhance", [w()]);
75
+ s(n, "defaultProps", function() {
76
+ return {
77
+ duration: 1e3,
78
+ size: "m",
79
+ theme: "invert",
80
+ children: /* @__PURE__ */ g.createElement(T.Value, null)
81
+ };
82
+ });
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
+ }, l))));
90
+ }
91
+ var T = x(n, {
92
+ Value: $
93
+ });
94
+ export {
95
+ T as default
96
+ };
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./ProgressBar.mjs";
2
+ export {
3
+ o as default
4
+ };
package/package.json CHANGED
@@ -1,19 +1,24 @@
1
1
  {
2
2
  "name": "@semcore/progress-bar",
3
3
  "description": "Semrush ProgressBar Component",
4
- "version": "4.40.0-prerelease.9",
4
+ "version": "4.40.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",
8
8
  "sideEffects": false,
9
9
  "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
+ "exports": {
12
+ "require": "./lib/cjs/index.js",
13
+ "import": "./lib/esm/index.mjs",
14
+ "types": "./lib/types/index.d.ts"
15
+ },
11
16
  "dependencies": {
12
- "@semcore/flex-box": "5.41.0-prerelease.9",
13
- "@semcore/utils": "4.47.1-prerelease.9"
17
+ "@semcore/flex-box": "5.41.1-prerelease.0",
18
+ "@semcore/utils": "4.48.1-prerelease.0"
14
19
  },
15
20
  "peerDependencies": {
16
- "@semcore/core": "^2.39.0-prerelease.9",
21
+ "@semcore/core": "^2.39.1-prerelease.0",
17
22
  "react": "16.8 - 18",
18
23
  "react-dom": "16.8 - 18"
19
24
  },
@@ -27,6 +32,6 @@
27
32
  "@semcore/testing-utils": "1.0.0"
28
33
  },
29
34
  "scripts": {
30
- "build": "pnpm semcore-builder --source=js"
35
+ "build": "pnpm semcore-builder --source=js && pnpm vite build"
31
36
  }
32
37
  }
package/vite.config.ts ADDED
@@ -0,0 +1,17 @@
1
+ import { defineConfig, mergeConfig } from 'vite';
2
+
3
+ import viteConfig from '../../commonVite.config';
4
+
5
+ export default mergeConfig(
6
+ viteConfig,
7
+ defineConfig({
8
+ build: {
9
+ lib: {
10
+ entry: './src/index.js',
11
+ },
12
+ rollupOptions: {
13
+ external: ['react', 'react-dom', 'react/jsx-runtime', /@babel\/runtime\/*/, /@semcore\/*/],
14
+ },
15
+ },
16
+ }),
17
+ );