@semcore/progress-bar 3.1.0 → 3.2.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 +9 -33
- package/LICENSE +21 -0
- package/lib/cjs/ProgressBar.js +16 -16
- package/lib/cjs/index.d.js +2 -0
- package/lib/cjs/index.d.js.map +1 -0
- package/lib/es6/ProgressBar.js +16 -16
- package/lib/es6/index.d.js +2 -0
- package/lib/es6/index.d.js.map +1 -0
- package/package.json +8 -7
- package/lib/cjs/index.d.ts +0 -40
- package/lib/es6/index.d.ts +0 -40
package/CHANGELOG.md
CHANGED
|
@@ -2,41 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [3.
|
|
6
|
-
|
|
7
|
-
### Fixed
|
|
8
|
-
|
|
9
|
-
- Added essential accessibility attributes.
|
|
10
|
-
|
|
11
|
-
## [3.0.9] - 2022-08-30
|
|
5
|
+
## [3.2.0] - 2022-10-10
|
|
12
6
|
|
|
13
7
|
### Changed
|
|
14
8
|
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
## [3.0.8] - 2022-08-18
|
|
18
|
-
|
|
19
|
-
### Changed
|
|
20
|
-
|
|
21
|
-
- 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]).
|
|
9
|
+
- Added support for React 18 🔥
|
|
22
10
|
|
|
23
|
-
## [3.
|
|
11
|
+
## [3.1.1] - 2022-10-04
|
|
24
12
|
|
|
25
13
|
### Changed
|
|
26
14
|
|
|
27
|
-
- Version patch update due to children dependencies update (`@semcore/
|
|
15
|
+
- 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]).
|
|
28
16
|
|
|
29
|
-
## [3.0
|
|
17
|
+
## [3.1.0] - 2022-09-20
|
|
30
18
|
|
|
31
|
-
###
|
|
19
|
+
### Fixed
|
|
32
20
|
|
|
33
|
-
-
|
|
21
|
+
- Added essential accessibility attributes.
|
|
34
22
|
|
|
35
|
-
## [3.0.
|
|
23
|
+
## [3.0.9] - 2022-08-30
|
|
36
24
|
|
|
37
25
|
### Changed
|
|
38
26
|
|
|
39
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.
|
|
27
|
+
- 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]).
|
|
40
28
|
|
|
41
29
|
## [3.0.4] - 2022-06-09
|
|
42
30
|
|
|
@@ -50,18 +38,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
50
38
|
|
|
51
39
|
- 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]).
|
|
52
40
|
|
|
53
|
-
## [3.0.2] - 2022-05-31
|
|
54
|
-
|
|
55
|
-
### Changed
|
|
56
|
-
|
|
57
|
-
- 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]).
|
|
58
|
-
|
|
59
|
-
## [3.0.1] - 2022-05-19
|
|
60
|
-
|
|
61
|
-
### Changed
|
|
62
|
-
|
|
63
|
-
- 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]).
|
|
64
|
-
|
|
65
41
|
## [3.0.0] - 2022-05-17
|
|
66
42
|
|
|
67
43
|
### 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.
|
package/lib/cjs/ProgressBar.js
CHANGED
|
@@ -46,25 +46,25 @@ var style = (
|
|
|
46
46
|
/*__reshadow_css_start__*/
|
|
47
47
|
_core.sstyled.insert(
|
|
48
48
|
/*__inner_css_start__*/
|
|
49
|
-
".
|
|
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_nzkao_gg_ {\n position: relative;\n width: 100%;\n overflow: hidden;\n}\n\n.___SValue_nzkao_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_nzkao;\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_nzkao_gg_._size_s_nzkao_gg_,\n.___SValue_nzkao_gg_._size_s_nzkao_gg_ {\n height: 4px;\n border-radius: 6px;\n background-size: 8px 8px;\n}\n\n.___SProgressBar_nzkao_gg_._size_m_nzkao_gg_,\n.___SValue_nzkao_gg_._size_m_nzkao_gg_ {\n height: 8px;\n border-radius: 6px;\n background-size: 12px 12px;\n}\n\n.___SProgressBar_nzkao_gg_._size_l_nzkao_gg_,\n.___SValue_nzkao_gg_._size_l_nzkao_gg_ {\n height: 12px;\n border-radius: 6px;\n background-size: 16px 16px;\n}\n\n.___SProgressBar_nzkao_gg_._theme_dark_nzkao_gg_ {\n background-color: rgba(255, 255, 255, 0.2);\n}\n\n.___SProgressBar_nzkao_gg_._theme_invert_nzkao_gg_ {\n background-color: #e0e1e9;\n}\n\n@keyframes loading_nzkao {\n from {\n background-position: 0 0;\n }\n to {\n background-position: 60px 0;\n }\n}\n\n.___SProgressBar_nzkao_gg_.__animation_nzkao_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_nzkao;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n}\n\n.___SProgressBar_nzkao_gg_._theme_custom_nzkao_gg_ {\n background-color: var(--colorBg_nzkao);\n background-image: var(--colorBg_nzkao);\n}\n\n.___SProgressBar_nzkao_gg_.__animation_nzkao_gg_ {\n animation-duration: var(--duration_nzkao);\n}\n\n.___SValue_nzkao_gg_ {\n width: var(--width_nzkao);\n animation-duration: var(--duration_nzkao);\n}\n\n.___SValue_nzkao_gg_.__theme_nzkao_gg_ {\n background-color: var(--colorBg_nzkao);\n background-image: var(--colorBg_nzkao);\n}\n\n@media (prefers-reduced-motion) {\n .___SValue_nzkao_gg_ {\n animation-name: none;\n }\n .___SProgressBar_nzkao_gg_.__animation_nzkao_gg_ {\n animation-name: none;\n }\n}\n"
|
|
50
50
|
/*__inner_css_end__*/
|
|
51
|
-
, "
|
|
51
|
+
, "nzkao_gg_")
|
|
52
52
|
/*__reshadow_css_end__*/
|
|
53
53
|
, {
|
|
54
|
-
"__SProgressBar": "
|
|
55
|
-
"__SValue": "
|
|
56
|
-
"_size_s": "
|
|
57
|
-
"_size_m": "
|
|
58
|
-
"_size_l": "
|
|
59
|
-
"_theme_dark": "
|
|
60
|
-
"_theme_invert": "
|
|
61
|
-
"@loading": "
|
|
62
|
-
"_animation": "
|
|
63
|
-
"_theme_custom": "
|
|
64
|
-
"--colorBg": "--
|
|
65
|
-
"--duration": "--
|
|
66
|
-
"--width": "--
|
|
67
|
-
"_theme": "
|
|
54
|
+
"__SProgressBar": "___SProgressBar_nzkao_gg_",
|
|
55
|
+
"__SValue": "___SValue_nzkao_gg_",
|
|
56
|
+
"_size_s": "_size_s_nzkao_gg_",
|
|
57
|
+
"_size_m": "_size_m_nzkao_gg_",
|
|
58
|
+
"_size_l": "_size_l_nzkao_gg_",
|
|
59
|
+
"_theme_dark": "_theme_dark_nzkao_gg_",
|
|
60
|
+
"_theme_invert": "_theme_invert_nzkao_gg_",
|
|
61
|
+
"@loading": "loading_nzkao",
|
|
62
|
+
"_animation": "__animation_nzkao_gg_",
|
|
63
|
+
"_theme_custom": "_theme_custom_nzkao_gg_",
|
|
64
|
+
"--colorBg": "--colorBg_nzkao",
|
|
65
|
+
"--duration": "--duration_nzkao",
|
|
66
|
+
"--width": "--width_nzkao",
|
|
67
|
+
"_theme": "__theme_nzkao_gg_"
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
function isCustomTheme(theme) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { ReturnEl, CProps, PropGetterFn } from '@semcore/core';\nimport { IBoxProps } from '@semcore/flex-box';\n\nexport interface IProgressBarProps extends IBoxProps {\n /**\n * Progress bar theme\n * @default invert\n */\n theme?: 'dark' | 'invert' | string;\n /**\n * Progress bar size\n * @default m\n */\n size?: 's' | 'm' | 'l';\n /** Value as a percentage */\n value?: number;\n /** Duration of animation, ms\n * @default 1000\n */\n duration?: number;\n}\n\nexport interface IValueProps extends IBoxProps {\n size?: 's' | 'm' | 'l';\n value?: number;\n duration?: number;\n theme?: string;\n}\n\nexport interface IProgressBarCxt {\n getValueProps: PropGetterFn;\n}\n\ndeclare const ProgressBar: (<T>(\n props: CProps<IProgressBarProps & T, IProgressBarCxt>,\n) => ReturnEl) & {\n Value: <T>(props: IValueProps & T) => ReturnEl;\n};\n\nexport default ProgressBar;\n"],"mappings":""}
|
package/lib/es6/ProgressBar.js
CHANGED
|
@@ -26,25 +26,25 @@ var style = (
|
|
|
26
26
|
/*__reshadow_css_start__*/
|
|
27
27
|
_sstyled.insert(
|
|
28
28
|
/*__inner_css_start__*/
|
|
29
|
-
".
|
|
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_nzkao_gg_ {\n position: relative;\n width: 100%;\n overflow: hidden;\n}\n\n.___SValue_nzkao_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_nzkao;\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_nzkao_gg_._size_s_nzkao_gg_,\n.___SValue_nzkao_gg_._size_s_nzkao_gg_ {\n height: 4px;\n border-radius: 6px;\n background-size: 8px 8px;\n}\n\n.___SProgressBar_nzkao_gg_._size_m_nzkao_gg_,\n.___SValue_nzkao_gg_._size_m_nzkao_gg_ {\n height: 8px;\n border-radius: 6px;\n background-size: 12px 12px;\n}\n\n.___SProgressBar_nzkao_gg_._size_l_nzkao_gg_,\n.___SValue_nzkao_gg_._size_l_nzkao_gg_ {\n height: 12px;\n border-radius: 6px;\n background-size: 16px 16px;\n}\n\n.___SProgressBar_nzkao_gg_._theme_dark_nzkao_gg_ {\n background-color: rgba(255, 255, 255, 0.2);\n}\n\n.___SProgressBar_nzkao_gg_._theme_invert_nzkao_gg_ {\n background-color: #e0e1e9;\n}\n\n@keyframes loading_nzkao {\n from {\n background-position: 0 0;\n }\n to {\n background-position: 60px 0;\n }\n}\n\n.___SProgressBar_nzkao_gg_.__animation_nzkao_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_nzkao;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n}\n\n.___SProgressBar_nzkao_gg_._theme_custom_nzkao_gg_ {\n background-color: var(--colorBg_nzkao);\n background-image: var(--colorBg_nzkao);\n}\n\n.___SProgressBar_nzkao_gg_.__animation_nzkao_gg_ {\n animation-duration: var(--duration_nzkao);\n}\n\n.___SValue_nzkao_gg_ {\n width: var(--width_nzkao);\n animation-duration: var(--duration_nzkao);\n}\n\n.___SValue_nzkao_gg_.__theme_nzkao_gg_ {\n background-color: var(--colorBg_nzkao);\n background-image: var(--colorBg_nzkao);\n}\n\n@media (prefers-reduced-motion) {\n .___SValue_nzkao_gg_ {\n animation-name: none;\n }\n .___SProgressBar_nzkao_gg_.__animation_nzkao_gg_ {\n animation-name: none;\n }\n}\n"
|
|
30
30
|
/*__inner_css_end__*/
|
|
31
|
-
, "
|
|
31
|
+
, "nzkao_gg_")
|
|
32
32
|
/*__reshadow_css_end__*/
|
|
33
33
|
, {
|
|
34
|
-
"__SProgressBar": "
|
|
35
|
-
"__SValue": "
|
|
36
|
-
"_size_s": "
|
|
37
|
-
"_size_m": "
|
|
38
|
-
"_size_l": "
|
|
39
|
-
"_theme_dark": "
|
|
40
|
-
"_theme_invert": "
|
|
41
|
-
"@loading": "
|
|
42
|
-
"_animation": "
|
|
43
|
-
"_theme_custom": "
|
|
44
|
-
"--colorBg": "--
|
|
45
|
-
"--duration": "--
|
|
46
|
-
"--width": "--
|
|
47
|
-
"_theme": "
|
|
34
|
+
"__SProgressBar": "___SProgressBar_nzkao_gg_",
|
|
35
|
+
"__SValue": "___SValue_nzkao_gg_",
|
|
36
|
+
"_size_s": "_size_s_nzkao_gg_",
|
|
37
|
+
"_size_m": "_size_m_nzkao_gg_",
|
|
38
|
+
"_size_l": "_size_l_nzkao_gg_",
|
|
39
|
+
"_theme_dark": "_theme_dark_nzkao_gg_",
|
|
40
|
+
"_theme_invert": "_theme_invert_nzkao_gg_",
|
|
41
|
+
"@loading": "loading_nzkao",
|
|
42
|
+
"_animation": "__animation_nzkao_gg_",
|
|
43
|
+
"_theme_custom": "_theme_custom_nzkao_gg_",
|
|
44
|
+
"--colorBg": "--colorBg_nzkao",
|
|
45
|
+
"--duration": "--duration_nzkao",
|
|
46
|
+
"--width": "--width_nzkao",
|
|
47
|
+
"_theme": "__theme_nzkao_gg_"
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
function isCustomTheme(theme) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { ReturnEl, CProps, PropGetterFn } from '@semcore/core';\nimport { IBoxProps } from '@semcore/flex-box';\n\nexport interface IProgressBarProps extends IBoxProps {\n /**\n * Progress bar theme\n * @default invert\n */\n theme?: 'dark' | 'invert' | string;\n /**\n * Progress bar size\n * @default m\n */\n size?: 's' | 'm' | 'l';\n /** Value as a percentage */\n value?: number;\n /** Duration of animation, ms\n * @default 1000\n */\n duration?: number;\n}\n\nexport interface IValueProps extends IBoxProps {\n size?: 's' | 'm' | 'l';\n value?: number;\n duration?: number;\n theme?: string;\n}\n\nexport interface IProgressBarCxt {\n getValueProps: PropGetterFn;\n}\n\ndeclare const ProgressBar: (<T>(\n props: CProps<IProgressBarProps & T, IProgressBarCxt>,\n) => ReturnEl) & {\n Value: <T>(props: IValueProps & T) => ReturnEl;\n};\n\nexport default ProgressBar;\n"],"mappings":""}
|
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.
|
|
4
|
+
"version": "3.2.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
|
-
"scripts": {
|
|
12
|
-
"build": "build --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
|
+
"react": "16.8 - 18"
|
|
22
18
|
},
|
|
23
19
|
"jest": {
|
|
24
20
|
"preset": "@semcore/jest-preset-ui"
|
|
@@ -29,8 +25,13 @@
|
|
|
29
25
|
"directory": "semcore/progress-bar"
|
|
30
26
|
},
|
|
31
27
|
"devDependencies": {
|
|
28
|
+
"@types/react": "18.0.21",
|
|
32
29
|
"@guidepup/playwright": "0.6.1",
|
|
33
30
|
"@playwright/test": "1.25.1",
|
|
34
31
|
"@semcore/jest-preset-ui": "1.0.0"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "pnpm semcore-builder --source=js",
|
|
35
|
+
"test": "jest"
|
|
35
36
|
}
|
|
36
|
-
}
|
|
37
|
+
}
|
package/lib/cjs/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ReturnEl, CProps, PropGetterFn } from '@semcore/core';
|
|
2
|
-
import { IBoxProps } from '@semcore/flex-box';
|
|
3
|
-
|
|
4
|
-
export interface IProgressBarProps extends IBoxProps {
|
|
5
|
-
/**
|
|
6
|
-
* Progress bar theme
|
|
7
|
-
* @default invert
|
|
8
|
-
*/
|
|
9
|
-
theme?: 'dark' | 'invert' | string;
|
|
10
|
-
/**
|
|
11
|
-
* Progress bar size
|
|
12
|
-
* @default m
|
|
13
|
-
*/
|
|
14
|
-
size?: 's' | 'm' | 'l';
|
|
15
|
-
/** Value as a percentage */
|
|
16
|
-
value?: number;
|
|
17
|
-
/** Duration of animation, ms
|
|
18
|
-
* @default 1000
|
|
19
|
-
*/
|
|
20
|
-
duration?: number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IValueProps extends IBoxProps {
|
|
24
|
-
size?: 's' | 'm' | 'l';
|
|
25
|
-
value?: number;
|
|
26
|
-
duration?: number;
|
|
27
|
-
theme?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface IProgressBarCxt {
|
|
31
|
-
getValueProps: PropGetterFn;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
declare const ProgressBar: (<T>(
|
|
35
|
-
props: CProps<IProgressBarProps & T, IProgressBarCxt>,
|
|
36
|
-
) => ReturnEl) & {
|
|
37
|
-
Value: <T>(props: IValueProps & T) => ReturnEl;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export default ProgressBar;
|
package/lib/es6/index.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ReturnEl, CProps, PropGetterFn } from '@semcore/core';
|
|
2
|
-
import { IBoxProps } from '@semcore/flex-box';
|
|
3
|
-
|
|
4
|
-
export interface IProgressBarProps extends IBoxProps {
|
|
5
|
-
/**
|
|
6
|
-
* Progress bar theme
|
|
7
|
-
* @default invert
|
|
8
|
-
*/
|
|
9
|
-
theme?: 'dark' | 'invert' | string;
|
|
10
|
-
/**
|
|
11
|
-
* Progress bar size
|
|
12
|
-
* @default m
|
|
13
|
-
*/
|
|
14
|
-
size?: 's' | 'm' | 'l';
|
|
15
|
-
/** Value as a percentage */
|
|
16
|
-
value?: number;
|
|
17
|
-
/** Duration of animation, ms
|
|
18
|
-
* @default 1000
|
|
19
|
-
*/
|
|
20
|
-
duration?: number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IValueProps extends IBoxProps {
|
|
24
|
-
size?: 's' | 'm' | 'l';
|
|
25
|
-
value?: number;
|
|
26
|
-
duration?: number;
|
|
27
|
-
theme?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface IProgressBarCxt {
|
|
31
|
-
getValueProps: PropGetterFn;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
declare const ProgressBar: (<T>(
|
|
35
|
-
props: CProps<IProgressBarProps & T, IProgressBarCxt>,
|
|
36
|
-
) => ReturnEl) & {
|
|
37
|
-
Value: <T>(props: IValueProps & T) => ReturnEl;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export default ProgressBar;
|