@semcore/progress-bar 3.1.1 → 3.2.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 CHANGED
@@ -2,47 +2,35 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [3.1.1] - 2022-10-04
5
+ ## [3.2.1] - 2022-10-17
6
6
 
7
7
  ### Changed
8
8
 
9
- - Version patch update due to children dependencies update (`@semcore/flex-box` [4.5.11 ~> 4.5.12], `@semcore/utils` [3.37.1 ~> 3.37.2]).
10
-
11
- ## [3.1.0] - 2022-09-20
12
-
13
- ### Fixed
9
+ - Version patch update due to children dependencies update (`@semcore/flex-box` [4.6.0 ~> 4.6.1], `@semcore/utils` [3.39.0 ~> 3.39.0]).
14
10
 
15
- - Added essential accessibility attributes.
16
-
17
- ## [3.0.9] - 2022-08-30
11
+ ## [3.2.0] - 2022-10-10
18
12
 
19
13
  ### Changed
20
14
 
21
- - Version patch update due to children dependencies update (`@semcore/utils` [3.37.0 ~> 3.37.1], `@semcore/flex-box` [4.5.10 ~> 4.5.11]).
22
-
23
- ## [3.0.8] - 2022-08-18
15
+ - Added support for React 18 🔥
24
16
 
25
- ### Changed
26
-
27
- - Version patch update due to children dependencies update (`@semcore/utils` [3.36.0 ~> 3.37.0], `@semcore/flex-box` [4.5.9 ~> 4.5.10]).
28
-
29
- ## [3.0.7] - 2022-08-11
17
+ ## [3.1.1] - 2022-10-04
30
18
 
31
19
  ### Changed
32
20
 
33
- - Version patch update due to children dependencies update (`@semcore/utils` [3.35.1 ~> 3.36.0], `@semcore/flex-box` [4.5.8 ~> 4.5.9]).
21
+ - Version patch update due to children dependencies update (`@semcore/flex-box` [4.5.11 ~> 4.5.12], `@semcore/utils` [3.37.1 ~> 3.37.2]).
34
22
 
35
- ## [3.0.6] - 2022-07-22
23
+ ## [3.1.0] - 2022-09-20
36
24
 
37
- ### Changed
25
+ ### Fixed
38
26
 
39
- - Version patch update due to children dependencies update (`@semcore/utils` [3.34.0 ~> 3.35.0], `@semcore/flex-box` [4.5.6 ~> 4.5.7]).
27
+ - Added essential accessibility attributes.
40
28
 
41
- ## [3.0.5] - 2022-07-07
29
+ ## [3.0.9] - 2022-08-30
42
30
 
43
31
  ### Changed
44
32
 
45
- - Version patch update due to children dependencies update (`@semcore/utils` [3.33.0 ~> 3.34.0], `@semcore/flex-box` [4.5.5 ~> 4.5.6]).
33
+ - Version patch update due to children dependencies update (`@semcore/utils` [3.37.0 ~> 3.37.1], `@semcore/flex-box` [4.5.10 ~> 4.5.11]).
46
34
 
47
35
  ## [3.0.4] - 2022-06-09
48
36
 
@@ -56,18 +44,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
56
44
 
57
45
  - Version patch update due to children dependencies update (`@semcore/utils` [3.32.2 ~> 3.33.0], `@semcore/flex-box` [4.5.4 ~> 4.5.5]).
58
46
 
59
- ## [3.0.2] - 2022-05-31
60
-
61
- ### Changed
62
-
63
- - Version patch update due to children dependencies update (`@semcore/utils` [3.32.1 ~> 3.32.2], `@semcore/flex-box` [4.5.3 ~> 4.5.4]).
64
-
65
- ## [3.0.1] - 2022-05-19
66
-
67
- ### Changed
68
-
69
- - Version patch update due to children dependencies update (`@semcore/utils` [3.32.0 ~> 3.32.1], `@semcore/flex-box` [4.5.1 ~> 4.5.3]).
70
-
71
47
  ## [3.0.0] - 2022-05-17
72
48
 
73
49
  ### BREAK
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright ©, 2022, Semrush Inc. (written by Roman Lysov, Sergey Kobets, Mikhail Karachev, Julia Mnizhek, Elena Krasnopolskaia, Mikhail Sereniti).
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -46,25 +46,25 @@ var style = (
46
46
  /*__reshadow_css_start__*/
47
47
  _core.sstyled.insert(
48
48
  /*__inner_css_start__*/
49
- ".___SProgressBar_1k6xc_gg_{position:relative;width:100%;overflow:hidden}.___SValue_1k6xc_gg_{position:absolute;top:0;left:0;background-image:linear-gradient(-45deg,#008f74 25%,#009f81 0,#009f81 50%,#008f74 0,#008f74 76%,#009f81 0);overflow:hidden;animation-name:loading_1k6xc;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;transition-duration:1s}.___SProgressBar_1k6xc_gg_._size_s_1k6xc_gg_,.___SValue_1k6xc_gg_._size_s_1k6xc_gg_{height:4px;border-radius:6px;background-size:8px 8px}.___SProgressBar_1k6xc_gg_._size_m_1k6xc_gg_,.___SValue_1k6xc_gg_._size_m_1k6xc_gg_{height:8px;border-radius:6px;background-size:12px 12px}.___SProgressBar_1k6xc_gg_._size_l_1k6xc_gg_,.___SValue_1k6xc_gg_._size_l_1k6xc_gg_{height:12px;border-radius:6px;background-size:16px 16px}.___SProgressBar_1k6xc_gg_._theme_dark_1k6xc_gg_{background-color:hsla(0,0%,100%,.2)}.___SProgressBar_1k6xc_gg_._theme_invert_1k6xc_gg_{background-color:#e0e1e9}@keyframes loading_1k6xc{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_1k6xc_gg_.__animation_1k6xc_gg_{background-image:linear-gradient(-45deg,#cacbd2 25%,#e0e1e9 0,#e0e1e9 50%,#cacbd2 0,#cacbd2 76%,#e0e1e9 0);animation-name:loading_1k6xc;animation-timing-function:linear;animation-iteration-count:infinite}.___SProgressBar_1k6xc_gg_._theme_custom_1k6xc_gg_{background-color:var(--colorBg_1k6xc);background-image:var(--colorBg_1k6xc)}.___SProgressBar_1k6xc_gg_.__animation_1k6xc_gg_{animation-duration:var(--duration_1k6xc)}.___SValue_1k6xc_gg_{width:var(--width_1k6xc);animation-duration:var(--duration_1k6xc)}.___SValue_1k6xc_gg_.__theme_1k6xc_gg_{background-color:var(--colorBg_1k6xc);background-image:var(--colorBg_1k6xc)}@media (prefers-reduced-motion){.___SValue_1k6xc_gg_{animation-name:none}.___SProgressBar_1k6xc_gg_.__animation_1k6xc_gg_{animation-name:none}}"
49
+ ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SProgressBar_hdl7r_gg_ {\n position: relative;\n width: 100%;\n overflow: hidden;\n}\n\n.___SValue_hdl7r_gg_ {\n position: absolute;\n top: 0;\n left: 0;\n background-image: linear-gradient(\n -45deg,\n rgb(0, 143, 116) 25%,\n #009f81 0,\n #009f81 50%,\n rgb(0, 143, 116) 0,\n rgb(0, 143, 116) 76%,\n #009f81 0\n );\n overflow: hidden;\n\n animation-name: loading_hdl7r;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n transition-property: width;\n transition-timing-function: linear;\n transition-duration: 1000ms;\n}\n\n.___SProgressBar_hdl7r_gg_._size_s_hdl7r_gg_,\n.___SValue_hdl7r_gg_._size_s_hdl7r_gg_ {\n height: 4px;\n border-radius: 6px;\n background-size: 8px 8px;\n}\n\n.___SProgressBar_hdl7r_gg_._size_m_hdl7r_gg_,\n.___SValue_hdl7r_gg_._size_m_hdl7r_gg_ {\n height: 8px;\n border-radius: 6px;\n background-size: 12px 12px;\n}\n\n.___SProgressBar_hdl7r_gg_._size_l_hdl7r_gg_,\n.___SValue_hdl7r_gg_._size_l_hdl7r_gg_ {\n height: 12px;\n border-radius: 6px;\n background-size: 16px 16px;\n}\n\n.___SProgressBar_hdl7r_gg_._theme_dark_hdl7r_gg_ {\n background-color: rgba(255, 255, 255, 0.2);\n}\n\n.___SProgressBar_hdl7r_gg_._theme_invert_hdl7r_gg_ {\n background-color: #e0e1e9;\n}\n\n@keyframes loading_hdl7r {\n from {\n background-position: 0 0;\n }\n to {\n background-position: 60px 0;\n }\n}\n\n.___SProgressBar_hdl7r_gg_.__animation_hdl7r_gg_ {\n background-image: linear-gradient(\n -45deg,\n rgb(202, 203, 210) 25%,\n #e0e1e9 0,\n #e0e1e9 50%,\n rgb(202, 203, 210) 0,\n rgb(202, 203, 210) 76%,\n #e0e1e9 0\n );\n animation-name: loading_hdl7r;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n}\n\n.___SProgressBar_hdl7r_gg_._theme_custom_hdl7r_gg_ {\n background-color: var(--colorBg_hdl7r);\n background-image: var(--colorBg_hdl7r);\n}\n\n.___SProgressBar_hdl7r_gg_.__animation_hdl7r_gg_ {\n animation-duration: var(--duration_hdl7r);\n}\n\n.___SValue_hdl7r_gg_ {\n width: var(--width_hdl7r);\n animation-duration: var(--duration_hdl7r);\n}\n\n.___SValue_hdl7r_gg_.__theme_hdl7r_gg_ {\n background-color: var(--colorBg_hdl7r);\n background-image: var(--colorBg_hdl7r);\n}\n\n@media (prefers-reduced-motion) {\n .___SValue_hdl7r_gg_ {\n animation-name: none;\n }\n .___SProgressBar_hdl7r_gg_.__animation_hdl7r_gg_ {\n animation-name: none;\n }\n}\n"
50
50
  /*__inner_css_end__*/
51
- , "1k6xc_gg_")
51
+ , "hdl7r_gg_")
52
52
  /*__reshadow_css_end__*/
53
53
  , {
54
- "__SProgressBar": "___SProgressBar_1k6xc_gg_",
55
- "__SValue": "___SValue_1k6xc_gg_",
56
- "_size_s": "_size_s_1k6xc_gg_",
57
- "_size_m": "_size_m_1k6xc_gg_",
58
- "_size_l": "_size_l_1k6xc_gg_",
59
- "_theme_dark": "_theme_dark_1k6xc_gg_",
60
- "_theme_invert": "_theme_invert_1k6xc_gg_",
61
- "@loading": "loading_1k6xc",
62
- "_animation": "__animation_1k6xc_gg_",
63
- "_theme_custom": "_theme_custom_1k6xc_gg_",
64
- "--colorBg": "--colorBg_1k6xc",
65
- "--duration": "--duration_1k6xc",
66
- "--width": "--width_1k6xc",
67
- "_theme": "__theme_1k6xc_gg_"
54
+ "__SProgressBar": "___SProgressBar_hdl7r_gg_",
55
+ "__SValue": "___SValue_hdl7r_gg_",
56
+ "_size_s": "_size_s_hdl7r_gg_",
57
+ "_size_m": "_size_m_hdl7r_gg_",
58
+ "_size_l": "_size_l_hdl7r_gg_",
59
+ "_theme_dark": "_theme_dark_hdl7r_gg_",
60
+ "_theme_invert": "_theme_invert_hdl7r_gg_",
61
+ "@loading": "loading_hdl7r",
62
+ "_animation": "__animation_hdl7r_gg_",
63
+ "_theme_custom": "_theme_custom_hdl7r_gg_",
64
+ "--colorBg": "--colorBg_hdl7r",
65
+ "--duration": "--duration_hdl7r",
66
+ "--width": "--width_hdl7r",
67
+ "_theme": "__theme_hdl7r_gg_"
68
68
  });
69
69
 
70
70
  function isCustomTheme(theme) {
@@ -26,25 +26,25 @@ var style = (
26
26
  /*__reshadow_css_start__*/
27
27
  _sstyled.insert(
28
28
  /*__inner_css_start__*/
29
- ".___SProgressBar_1k6xc_gg_{position:relative;width:100%;overflow:hidden}.___SValue_1k6xc_gg_{position:absolute;top:0;left:0;background-image:linear-gradient(-45deg,#008f74 25%,#009f81 0,#009f81 50%,#008f74 0,#008f74 76%,#009f81 0);overflow:hidden;animation-name:loading_1k6xc;animation-timing-function:linear;animation-iteration-count:infinite;transition-property:width;transition-timing-function:linear;transition-duration:1s}.___SProgressBar_1k6xc_gg_._size_s_1k6xc_gg_,.___SValue_1k6xc_gg_._size_s_1k6xc_gg_{height:4px;border-radius:6px;background-size:8px 8px}.___SProgressBar_1k6xc_gg_._size_m_1k6xc_gg_,.___SValue_1k6xc_gg_._size_m_1k6xc_gg_{height:8px;border-radius:6px;background-size:12px 12px}.___SProgressBar_1k6xc_gg_._size_l_1k6xc_gg_,.___SValue_1k6xc_gg_._size_l_1k6xc_gg_{height:12px;border-radius:6px;background-size:16px 16px}.___SProgressBar_1k6xc_gg_._theme_dark_1k6xc_gg_{background-color:hsla(0,0%,100%,.2)}.___SProgressBar_1k6xc_gg_._theme_invert_1k6xc_gg_{background-color:#e0e1e9}@keyframes loading_1k6xc{0%{background-position:0 0}to{background-position:60px 0}}.___SProgressBar_1k6xc_gg_.__animation_1k6xc_gg_{background-image:linear-gradient(-45deg,#cacbd2 25%,#e0e1e9 0,#e0e1e9 50%,#cacbd2 0,#cacbd2 76%,#e0e1e9 0);animation-name:loading_1k6xc;animation-timing-function:linear;animation-iteration-count:infinite}.___SProgressBar_1k6xc_gg_._theme_custom_1k6xc_gg_{background-color:var(--colorBg_1k6xc);background-image:var(--colorBg_1k6xc)}.___SProgressBar_1k6xc_gg_.__animation_1k6xc_gg_{animation-duration:var(--duration_1k6xc)}.___SValue_1k6xc_gg_{width:var(--width_1k6xc);animation-duration:var(--duration_1k6xc)}.___SValue_1k6xc_gg_.__theme_1k6xc_gg_{background-color:var(--colorBg_1k6xc);background-image:var(--colorBg_1k6xc)}@media (prefers-reduced-motion){.___SValue_1k6xc_gg_{animation-name:none}.___SProgressBar_1k6xc_gg_.__animation_1k6xc_gg_{animation-name:none}}"
29
+ ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SProgressBar_hdl7r_gg_ {\n position: relative;\n width: 100%;\n overflow: hidden;\n}\n\n.___SValue_hdl7r_gg_ {\n position: absolute;\n top: 0;\n left: 0;\n background-image: linear-gradient(\n -45deg,\n rgb(0, 143, 116) 25%,\n #009f81 0,\n #009f81 50%,\n rgb(0, 143, 116) 0,\n rgb(0, 143, 116) 76%,\n #009f81 0\n );\n overflow: hidden;\n\n animation-name: loading_hdl7r;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n transition-property: width;\n transition-timing-function: linear;\n transition-duration: 1000ms;\n}\n\n.___SProgressBar_hdl7r_gg_._size_s_hdl7r_gg_,\n.___SValue_hdl7r_gg_._size_s_hdl7r_gg_ {\n height: 4px;\n border-radius: 6px;\n background-size: 8px 8px;\n}\n\n.___SProgressBar_hdl7r_gg_._size_m_hdl7r_gg_,\n.___SValue_hdl7r_gg_._size_m_hdl7r_gg_ {\n height: 8px;\n border-radius: 6px;\n background-size: 12px 12px;\n}\n\n.___SProgressBar_hdl7r_gg_._size_l_hdl7r_gg_,\n.___SValue_hdl7r_gg_._size_l_hdl7r_gg_ {\n height: 12px;\n border-radius: 6px;\n background-size: 16px 16px;\n}\n\n.___SProgressBar_hdl7r_gg_._theme_dark_hdl7r_gg_ {\n background-color: rgba(255, 255, 255, 0.2);\n}\n\n.___SProgressBar_hdl7r_gg_._theme_invert_hdl7r_gg_ {\n background-color: #e0e1e9;\n}\n\n@keyframes loading_hdl7r {\n from {\n background-position: 0 0;\n }\n to {\n background-position: 60px 0;\n }\n}\n\n.___SProgressBar_hdl7r_gg_.__animation_hdl7r_gg_ {\n background-image: linear-gradient(\n -45deg,\n rgb(202, 203, 210) 25%,\n #e0e1e9 0,\n #e0e1e9 50%,\n rgb(202, 203, 210) 0,\n rgb(202, 203, 210) 76%,\n #e0e1e9 0\n );\n animation-name: loading_hdl7r;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n}\n\n.___SProgressBar_hdl7r_gg_._theme_custom_hdl7r_gg_ {\n background-color: var(--colorBg_hdl7r);\n background-image: var(--colorBg_hdl7r);\n}\n\n.___SProgressBar_hdl7r_gg_.__animation_hdl7r_gg_ {\n animation-duration: var(--duration_hdl7r);\n}\n\n.___SValue_hdl7r_gg_ {\n width: var(--width_hdl7r);\n animation-duration: var(--duration_hdl7r);\n}\n\n.___SValue_hdl7r_gg_.__theme_hdl7r_gg_ {\n background-color: var(--colorBg_hdl7r);\n background-image: var(--colorBg_hdl7r);\n}\n\n@media (prefers-reduced-motion) {\n .___SValue_hdl7r_gg_ {\n animation-name: none;\n }\n .___SProgressBar_hdl7r_gg_.__animation_hdl7r_gg_ {\n animation-name: none;\n }\n}\n"
30
30
  /*__inner_css_end__*/
31
- , "1k6xc_gg_")
31
+ , "hdl7r_gg_")
32
32
  /*__reshadow_css_end__*/
33
33
  , {
34
- "__SProgressBar": "___SProgressBar_1k6xc_gg_",
35
- "__SValue": "___SValue_1k6xc_gg_",
36
- "_size_s": "_size_s_1k6xc_gg_",
37
- "_size_m": "_size_m_1k6xc_gg_",
38
- "_size_l": "_size_l_1k6xc_gg_",
39
- "_theme_dark": "_theme_dark_1k6xc_gg_",
40
- "_theme_invert": "_theme_invert_1k6xc_gg_",
41
- "@loading": "loading_1k6xc",
42
- "_animation": "__animation_1k6xc_gg_",
43
- "_theme_custom": "_theme_custom_1k6xc_gg_",
44
- "--colorBg": "--colorBg_1k6xc",
45
- "--duration": "--duration_1k6xc",
46
- "--width": "--width_1k6xc",
47
- "_theme": "__theme_1k6xc_gg_"
34
+ "__SProgressBar": "___SProgressBar_hdl7r_gg_",
35
+ "__SValue": "___SValue_hdl7r_gg_",
36
+ "_size_s": "_size_s_hdl7r_gg_",
37
+ "_size_m": "_size_m_hdl7r_gg_",
38
+ "_size_l": "_size_l_hdl7r_gg_",
39
+ "_theme_dark": "_theme_dark_hdl7r_gg_",
40
+ "_theme_invert": "_theme_invert_hdl7r_gg_",
41
+ "@loading": "loading_hdl7r",
42
+ "_animation": "__animation_hdl7r_gg_",
43
+ "_theme_custom": "_theme_custom_hdl7r_gg_",
44
+ "--colorBg": "--colorBg_hdl7r",
45
+ "--duration": "--duration_hdl7r",
46
+ "--width": "--width_hdl7r",
47
+ "_theme": "__theme_hdl7r_gg_"
48
48
  });
49
49
 
50
50
  function isCustomTheme(theme) {
package/package.json CHANGED
@@ -1,24 +1,20 @@
1
1
  {
2
2
  "name": "@semcore/progress-bar",
3
3
  "description": "Semrush ProgressBar Component",
4
- "version": "3.1.1",
4
+ "version": "3.2.1",
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
- "scripts": {
12
- "build": "pnpm semcore-builder --source=js",
13
- "test": "jest"
14
- },
15
11
  "dependencies": {
16
12
  "@semcore/flex-box": "^4",
17
13
  "@semcore/utils": "^3.15"
18
14
  },
19
15
  "peerDependencies": {
20
16
  "@semcore/core": "^1.11",
21
- "react": "16.8 - 17"
17
+ "react": "16.8 - 18"
22
18
  },
23
19
  "jest": {
24
20
  "preset": "@semcore/jest-preset-ui"
@@ -29,9 +25,13 @@
29
25
  "directory": "semcore/progress-bar"
30
26
  },
31
27
  "devDependencies": {
32
- "@types/react": "16.8 - 17",
28
+ "@types/react": "18.0.21",
33
29
  "@guidepup/playwright": "0.6.1",
34
30
  "@playwright/test": "1.25.1",
35
31
  "@semcore/jest-preset-ui": "1.0.0"
32
+ },
33
+ "scripts": {
34
+ "build": "pnpm semcore-builder --source=js",
35
+ "test": "jest"
36
36
  }
37
- }
37
+ }