@alfalab/core-components-circular-progress-bar 2.0.3 → 2.1.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 +11 -0
- package/dist/Component.d.ts +2 -2
- package/dist/Component.js +8 -3
- package/dist/cssm/Component.d.ts +2 -2
- package/dist/cssm/Component.js +7 -2
- package/dist/cssm/index.module.css +13 -0
- package/dist/esm/Component.d.ts +2 -2
- package/dist/esm/Component.js +8 -3
- package/dist/esm/index.css +31 -18
- package/dist/index.css +31 -18
- package/dist/modern/Component.d.ts +2 -2
- package/dist/modern/Component.js +8 -3
- package/dist/modern/index.css +31 -18
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.1.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-circular-progress-bar@2.0.3...@alfalab/core-components-circular-progress-bar@2.1.0) (2021-11-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **circular-progress-bar:** new size S ([d34db5c](https://github.com/alfa-laboratory/core-components/commit/d34db5cca682bc63f948a0dad322604c8044a6b8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.0.3](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-circular-progress-bar@2.0.2...@alfalab/core-components-circular-progress-bar@2.0.3) (2021-09-14)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @alfalab/core-components-circular-progress-bar
|
package/dist/Component.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ type CircularProgressBarProps = {
|
|
|
22
22
|
*/
|
|
23
23
|
view?: 'positive' | 'negative';
|
|
24
24
|
/**
|
|
25
|
-
* Размер (l
|
|
25
|
+
* Размер (l — 144×144px, m — 120×120px, s — 96×96px)
|
|
26
26
|
*/
|
|
27
|
-
size?: 'l' | 'm';
|
|
27
|
+
size?: 'l' | 'm' | 's';
|
|
28
28
|
/**
|
|
29
29
|
* Id компонента для тестов
|
|
30
30
|
*/
|
package/dist/Component.js
CHANGED
|
@@ -11,9 +11,14 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"circular-progress-
|
|
14
|
+
var styles = {"component":"circular-progress-bar__component_tn1xj","svg":"circular-progress-bar__svg_tn1xj","title":"circular-progress-bar__title_tn1xj","subtitle":"circular-progress-bar__subtitle_tn1xj","l":"circular-progress-bar__l_tn1xj","label":"circular-progress-bar__label_tn1xj","m":"circular-progress-bar__m_tn1xj","s":"circular-progress-bar__s_tn1xj","backgroundCircle":"circular-progress-bar__backgroundCircle_tn1xj","progressCircle":"circular-progress-bar__progressCircle_tn1xj","positive":"circular-progress-bar__positive_tn1xj","negative":"circular-progress-bar__negative_tn1xj"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
|
+
var SIZES = {
|
|
18
|
+
s: 96,
|
|
19
|
+
m: 120,
|
|
20
|
+
l: 144,
|
|
21
|
+
};
|
|
17
22
|
/**
|
|
18
23
|
* Компонент круглого прогресс бара.
|
|
19
24
|
*/
|
|
@@ -23,8 +28,8 @@ var CircularProgressBar = function (_a) {
|
|
|
23
28
|
var strokeWidth = 8;
|
|
24
29
|
var maxProgress = 100;
|
|
25
30
|
var minProgress = 0;
|
|
26
|
-
var width = size
|
|
27
|
-
var height = size
|
|
31
|
+
var width = SIZES[size];
|
|
32
|
+
var height = SIZES[size];
|
|
28
33
|
var center = width / 2;
|
|
29
34
|
var radius = center - strokeWidth / 2;
|
|
30
35
|
var circumference = Math.PI * radius * 2;
|
package/dist/cssm/Component.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ type CircularProgressBarProps = {
|
|
|
22
22
|
*/
|
|
23
23
|
view?: 'positive' | 'negative';
|
|
24
24
|
/**
|
|
25
|
-
* Размер (l
|
|
25
|
+
* Размер (l — 144×144px, m — 120×120px, s — 96×96px)
|
|
26
26
|
*/
|
|
27
|
-
size?: 'l' | 'm';
|
|
27
|
+
size?: 'l' | 'm' | 's';
|
|
28
28
|
/**
|
|
29
29
|
* Id компонента для тестов
|
|
30
30
|
*/
|
package/dist/cssm/Component.js
CHANGED
|
@@ -13,6 +13,11 @@ var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
14
|
var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
|
|
15
15
|
|
|
16
|
+
var SIZES = {
|
|
17
|
+
s: 96,
|
|
18
|
+
m: 120,
|
|
19
|
+
l: 144,
|
|
20
|
+
};
|
|
16
21
|
/**
|
|
17
22
|
* Компонент круглого прогресс бара.
|
|
18
23
|
*/
|
|
@@ -22,8 +27,8 @@ var CircularProgressBar = function (_a) {
|
|
|
22
27
|
var strokeWidth = 8;
|
|
23
28
|
var maxProgress = 100;
|
|
24
29
|
var minProgress = 0;
|
|
25
|
-
var width = size
|
|
26
|
-
var height = size
|
|
30
|
+
var width = SIZES[size];
|
|
31
|
+
var height = SIZES[size];
|
|
27
32
|
var center = width / 2;
|
|
28
33
|
var radius = center - strokeWidth / 2;
|
|
29
34
|
var circumference = Math.PI * radius * 2;
|
package/dist/esm/Component.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ type CircularProgressBarProps = {
|
|
|
22
22
|
*/
|
|
23
23
|
view?: 'positive' | 'negative';
|
|
24
24
|
/**
|
|
25
|
-
* Размер (l
|
|
25
|
+
* Размер (l — 144×144px, m — 120×120px, s — 96×96px)
|
|
26
26
|
*/
|
|
27
|
-
size?: 'l' | 'm';
|
|
27
|
+
size?: 'l' | 'm' | 's';
|
|
28
28
|
/**
|
|
29
29
|
* Id компонента для тестов
|
|
30
30
|
*/
|
package/dist/esm/Component.js
CHANGED
|
@@ -2,9 +2,14 @@ import cn from 'classnames';
|
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/dist/esm';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"circular-progress-
|
|
5
|
+
var styles = {"component":"circular-progress-bar__component_tn1xj","svg":"circular-progress-bar__svg_tn1xj","title":"circular-progress-bar__title_tn1xj","subtitle":"circular-progress-bar__subtitle_tn1xj","l":"circular-progress-bar__l_tn1xj","label":"circular-progress-bar__label_tn1xj","m":"circular-progress-bar__m_tn1xj","s":"circular-progress-bar__s_tn1xj","backgroundCircle":"circular-progress-bar__backgroundCircle_tn1xj","progressCircle":"circular-progress-bar__progressCircle_tn1xj","positive":"circular-progress-bar__positive_tn1xj","negative":"circular-progress-bar__negative_tn1xj"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
|
+
var SIZES = {
|
|
9
|
+
s: 96,
|
|
10
|
+
m: 120,
|
|
11
|
+
l: 144,
|
|
12
|
+
};
|
|
8
13
|
/**
|
|
9
14
|
* Компонент круглого прогресс бара.
|
|
10
15
|
*/
|
|
@@ -14,8 +19,8 @@ var CircularProgressBar = function (_a) {
|
|
|
14
19
|
var strokeWidth = 8;
|
|
15
20
|
var maxProgress = 100;
|
|
16
21
|
var minProgress = 0;
|
|
17
|
-
var width = size
|
|
18
|
-
var height = size
|
|
22
|
+
var width = SIZES[size];
|
|
23
|
+
var height = SIZES[size];
|
|
19
24
|
var center = width / 2;
|
|
20
25
|
var radius = center - strokeWidth / 2;
|
|
21
26
|
var circumference = Math.PI * radius * 2;
|
package/dist/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tdnhd */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-tertiary: #e7e9eb;
|
|
4
4
|
--color-light-graphic-negative: #f15045;
|
|
@@ -16,55 +16,68 @@
|
|
|
16
16
|
--circular-progress-bar-negative-color: var(--color-light-graphic-negative);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.circular-progress-
|
|
19
|
+
.circular-progress-bar__component_tn1xj {
|
|
20
20
|
position: relative;
|
|
21
21
|
display: flex;
|
|
22
22
|
justify-content: center;
|
|
23
23
|
align-items: center;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.circular-progress-
|
|
26
|
+
.circular-progress-bar__svg_tn1xj {
|
|
27
27
|
display: block;
|
|
28
28
|
width: 100%;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.circular-progress-
|
|
32
|
-
.circular-progress-
|
|
31
|
+
.circular-progress-bar__title_tn1xj,
|
|
32
|
+
.circular-progress-bar__subtitle_tn1xj {
|
|
33
33
|
overflow: hidden;
|
|
34
34
|
word-break: break-word;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.circular-progress-
|
|
37
|
+
.circular-progress-bar__subtitle_tn1xj {
|
|
38
38
|
max-height: 40px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.circular-progress-
|
|
41
|
+
.circular-progress-bar__l_tn1xj {
|
|
42
42
|
width: 144px;
|
|
43
43
|
height: 144px
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.circular-progress-
|
|
46
|
+
.circular-progress-bar__l_tn1xj .circular-progress-bar__label_tn1xj {
|
|
47
47
|
max-width: 120px;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.circular-progress-
|
|
50
|
+
.circular-progress-bar__l_tn1xj .circular-progress-bar__title_tn1xj {
|
|
51
51
|
max-height: 32px;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.circular-progress-
|
|
54
|
+
.circular-progress-bar__m_tn1xj {
|
|
55
55
|
width: 120px;
|
|
56
56
|
height: 120px
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.circular-progress-
|
|
59
|
+
.circular-progress-bar__m_tn1xj .circular-progress-bar__label_tn1xj {
|
|
60
60
|
max-width: 96px;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.circular-progress-
|
|
63
|
+
.circular-progress-bar__m_tn1xj .circular-progress-bar__title_tn1xj {
|
|
64
64
|
max-height: 24px;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.circular-progress-
|
|
67
|
+
.circular-progress-bar__s_tn1xj {
|
|
68
|
+
width: 96px;
|
|
69
|
+
height: 96px
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.circular-progress-bar__s_tn1xj .circular-progress-bar__label_tn1xj {
|
|
73
|
+
max-width: 72px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.circular-progress-bar__s_tn1xj .circular-progress-bar__title_tn1xj {
|
|
77
|
+
max-height: 24px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.circular-progress-bar__label_tn1xj {
|
|
68
81
|
text-align: center;
|
|
69
82
|
position: absolute;
|
|
70
83
|
top: 50%;
|
|
@@ -73,22 +86,22 @@
|
|
|
73
86
|
transform: translate(-50%, -50%);
|
|
74
87
|
}
|
|
75
88
|
|
|
76
|
-
.circular-progress-
|
|
77
|
-
.circular-progress-
|
|
89
|
+
.circular-progress-bar__backgroundCircle_tn1xj,
|
|
90
|
+
.circular-progress-bar__progressCircle_tn1xj {
|
|
78
91
|
width: 100%;
|
|
79
92
|
height: 100%;
|
|
80
93
|
fill: transparent;
|
|
81
94
|
stroke-width: 8;
|
|
82
95
|
}
|
|
83
96
|
|
|
84
|
-
.circular-progress-
|
|
97
|
+
.circular-progress-bar__positive_tn1xj {
|
|
85
98
|
stroke: var(--circular-progress-bar-positive-color);
|
|
86
99
|
}
|
|
87
100
|
|
|
88
|
-
.circular-progress-
|
|
101
|
+
.circular-progress-bar__negative_tn1xj {
|
|
89
102
|
stroke: var(--circular-progress-bar-negative-color);
|
|
90
103
|
}
|
|
91
104
|
|
|
92
|
-
.circular-progress-
|
|
105
|
+
.circular-progress-bar__backgroundCircle_tn1xj {
|
|
93
106
|
stroke: var(--circular-progress-bar-bg-color);
|
|
94
107
|
}
|
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tdnhd */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-tertiary: #e7e9eb;
|
|
4
4
|
--color-light-graphic-negative: #f15045;
|
|
@@ -16,55 +16,68 @@
|
|
|
16
16
|
--circular-progress-bar-negative-color: var(--color-light-graphic-negative);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.circular-progress-
|
|
19
|
+
.circular-progress-bar__component_tn1xj {
|
|
20
20
|
position: relative;
|
|
21
21
|
display: flex;
|
|
22
22
|
justify-content: center;
|
|
23
23
|
align-items: center;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.circular-progress-
|
|
26
|
+
.circular-progress-bar__svg_tn1xj {
|
|
27
27
|
display: block;
|
|
28
28
|
width: 100%;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.circular-progress-
|
|
32
|
-
.circular-progress-
|
|
31
|
+
.circular-progress-bar__title_tn1xj,
|
|
32
|
+
.circular-progress-bar__subtitle_tn1xj {
|
|
33
33
|
overflow: hidden;
|
|
34
34
|
word-break: break-word;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.circular-progress-
|
|
37
|
+
.circular-progress-bar__subtitle_tn1xj {
|
|
38
38
|
max-height: 40px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.circular-progress-
|
|
41
|
+
.circular-progress-bar__l_tn1xj {
|
|
42
42
|
width: 144px;
|
|
43
43
|
height: 144px
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.circular-progress-
|
|
46
|
+
.circular-progress-bar__l_tn1xj .circular-progress-bar__label_tn1xj {
|
|
47
47
|
max-width: 120px;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.circular-progress-
|
|
50
|
+
.circular-progress-bar__l_tn1xj .circular-progress-bar__title_tn1xj {
|
|
51
51
|
max-height: 32px;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.circular-progress-
|
|
54
|
+
.circular-progress-bar__m_tn1xj {
|
|
55
55
|
width: 120px;
|
|
56
56
|
height: 120px
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.circular-progress-
|
|
59
|
+
.circular-progress-bar__m_tn1xj .circular-progress-bar__label_tn1xj {
|
|
60
60
|
max-width: 96px;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.circular-progress-
|
|
63
|
+
.circular-progress-bar__m_tn1xj .circular-progress-bar__title_tn1xj {
|
|
64
64
|
max-height: 24px;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.circular-progress-
|
|
67
|
+
.circular-progress-bar__s_tn1xj {
|
|
68
|
+
width: 96px;
|
|
69
|
+
height: 96px
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.circular-progress-bar__s_tn1xj .circular-progress-bar__label_tn1xj {
|
|
73
|
+
max-width: 72px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.circular-progress-bar__s_tn1xj .circular-progress-bar__title_tn1xj {
|
|
77
|
+
max-height: 24px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.circular-progress-bar__label_tn1xj {
|
|
68
81
|
text-align: center;
|
|
69
82
|
position: absolute;
|
|
70
83
|
top: 50%;
|
|
@@ -73,22 +86,22 @@
|
|
|
73
86
|
transform: translate(-50%, -50%);
|
|
74
87
|
}
|
|
75
88
|
|
|
76
|
-
.circular-progress-
|
|
77
|
-
.circular-progress-
|
|
89
|
+
.circular-progress-bar__backgroundCircle_tn1xj,
|
|
90
|
+
.circular-progress-bar__progressCircle_tn1xj {
|
|
78
91
|
width: 100%;
|
|
79
92
|
height: 100%;
|
|
80
93
|
fill: transparent;
|
|
81
94
|
stroke-width: 8;
|
|
82
95
|
}
|
|
83
96
|
|
|
84
|
-
.circular-progress-
|
|
97
|
+
.circular-progress-bar__positive_tn1xj {
|
|
85
98
|
stroke: var(--circular-progress-bar-positive-color);
|
|
86
99
|
}
|
|
87
100
|
|
|
88
|
-
.circular-progress-
|
|
101
|
+
.circular-progress-bar__negative_tn1xj {
|
|
89
102
|
stroke: var(--circular-progress-bar-negative-color);
|
|
90
103
|
}
|
|
91
104
|
|
|
92
|
-
.circular-progress-
|
|
105
|
+
.circular-progress-bar__backgroundCircle_tn1xj {
|
|
93
106
|
stroke: var(--circular-progress-bar-bg-color);
|
|
94
107
|
}
|
|
@@ -22,9 +22,9 @@ type CircularProgressBarProps = {
|
|
|
22
22
|
*/
|
|
23
23
|
view?: 'positive' | 'negative';
|
|
24
24
|
/**
|
|
25
|
-
* Размер (l
|
|
25
|
+
* Размер (l — 144×144px, m — 120×120px, s — 96×96px)
|
|
26
26
|
*/
|
|
27
|
-
size?: 'l' | 'm';
|
|
27
|
+
size?: 'l' | 'm' | 's';
|
|
28
28
|
/**
|
|
29
29
|
* Id компонента для тестов
|
|
30
30
|
*/
|
package/dist/modern/Component.js
CHANGED
|
@@ -2,9 +2,14 @@ import cn from 'classnames';
|
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/dist/modern';
|
|
4
4
|
|
|
5
|
-
var styles = {"component":"circular-progress-
|
|
5
|
+
var styles = {"component":"circular-progress-bar__component_tn1xj","svg":"circular-progress-bar__svg_tn1xj","title":"circular-progress-bar__title_tn1xj","subtitle":"circular-progress-bar__subtitle_tn1xj","l":"circular-progress-bar__l_tn1xj","label":"circular-progress-bar__label_tn1xj","m":"circular-progress-bar__m_tn1xj","s":"circular-progress-bar__s_tn1xj","backgroundCircle":"circular-progress-bar__backgroundCircle_tn1xj","progressCircle":"circular-progress-bar__progressCircle_tn1xj","positive":"circular-progress-bar__positive_tn1xj","negative":"circular-progress-bar__negative_tn1xj"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
|
+
const SIZES = {
|
|
9
|
+
s: 96,
|
|
10
|
+
m: 120,
|
|
11
|
+
l: 144,
|
|
12
|
+
};
|
|
8
13
|
/**
|
|
9
14
|
* Компонент круглого прогресс бара.
|
|
10
15
|
*/
|
|
@@ -13,8 +18,8 @@ const CircularProgressBar = ({ value, view = 'positive', size = 'm', className,
|
|
|
13
18
|
const strokeWidth = 8;
|
|
14
19
|
const maxProgress = 100;
|
|
15
20
|
const minProgress = 0;
|
|
16
|
-
const width = size
|
|
17
|
-
const height = size
|
|
21
|
+
const width = SIZES[size];
|
|
22
|
+
const height = SIZES[size];
|
|
18
23
|
const center = width / 2;
|
|
19
24
|
const radius = center - strokeWidth / 2;
|
|
20
25
|
const circumference = Math.PI * radius * 2;
|
package/dist/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tdnhd */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-tertiary: #e7e9eb;
|
|
4
4
|
--color-light-graphic-negative: #f15045;
|
|
@@ -16,55 +16,68 @@
|
|
|
16
16
|
--circular-progress-bar-negative-color: var(--color-light-graphic-negative);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.circular-progress-
|
|
19
|
+
.circular-progress-bar__component_tn1xj {
|
|
20
20
|
position: relative;
|
|
21
21
|
display: flex;
|
|
22
22
|
justify-content: center;
|
|
23
23
|
align-items: center;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.circular-progress-
|
|
26
|
+
.circular-progress-bar__svg_tn1xj {
|
|
27
27
|
display: block;
|
|
28
28
|
width: 100%;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.circular-progress-
|
|
32
|
-
.circular-progress-
|
|
31
|
+
.circular-progress-bar__title_tn1xj,
|
|
32
|
+
.circular-progress-bar__subtitle_tn1xj {
|
|
33
33
|
overflow: hidden;
|
|
34
34
|
word-break: break-word;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.circular-progress-
|
|
37
|
+
.circular-progress-bar__subtitle_tn1xj {
|
|
38
38
|
max-height: 40px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.circular-progress-
|
|
41
|
+
.circular-progress-bar__l_tn1xj {
|
|
42
42
|
width: 144px;
|
|
43
43
|
height: 144px
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.circular-progress-
|
|
46
|
+
.circular-progress-bar__l_tn1xj .circular-progress-bar__label_tn1xj {
|
|
47
47
|
max-width: 120px;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.circular-progress-
|
|
50
|
+
.circular-progress-bar__l_tn1xj .circular-progress-bar__title_tn1xj {
|
|
51
51
|
max-height: 32px;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.circular-progress-
|
|
54
|
+
.circular-progress-bar__m_tn1xj {
|
|
55
55
|
width: 120px;
|
|
56
56
|
height: 120px
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.circular-progress-
|
|
59
|
+
.circular-progress-bar__m_tn1xj .circular-progress-bar__label_tn1xj {
|
|
60
60
|
max-width: 96px;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.circular-progress-
|
|
63
|
+
.circular-progress-bar__m_tn1xj .circular-progress-bar__title_tn1xj {
|
|
64
64
|
max-height: 24px;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.circular-progress-
|
|
67
|
+
.circular-progress-bar__s_tn1xj {
|
|
68
|
+
width: 96px;
|
|
69
|
+
height: 96px
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.circular-progress-bar__s_tn1xj .circular-progress-bar__label_tn1xj {
|
|
73
|
+
max-width: 72px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.circular-progress-bar__s_tn1xj .circular-progress-bar__title_tn1xj {
|
|
77
|
+
max-height: 24px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.circular-progress-bar__label_tn1xj {
|
|
68
81
|
text-align: center;
|
|
69
82
|
position: absolute;
|
|
70
83
|
top: 50%;
|
|
@@ -73,22 +86,22 @@
|
|
|
73
86
|
transform: translate(-50%, -50%);
|
|
74
87
|
}
|
|
75
88
|
|
|
76
|
-
.circular-progress-
|
|
77
|
-
.circular-progress-
|
|
89
|
+
.circular-progress-bar__backgroundCircle_tn1xj,
|
|
90
|
+
.circular-progress-bar__progressCircle_tn1xj {
|
|
78
91
|
width: 100%;
|
|
79
92
|
height: 100%;
|
|
80
93
|
fill: transparent;
|
|
81
94
|
stroke-width: 8;
|
|
82
95
|
}
|
|
83
96
|
|
|
84
|
-
.circular-progress-
|
|
97
|
+
.circular-progress-bar__positive_tn1xj {
|
|
85
98
|
stroke: var(--circular-progress-bar-positive-color);
|
|
86
99
|
}
|
|
87
100
|
|
|
88
|
-
.circular-progress-
|
|
101
|
+
.circular-progress-bar__negative_tn1xj {
|
|
89
102
|
stroke: var(--circular-progress-bar-negative-color);
|
|
90
103
|
}
|
|
91
104
|
|
|
92
|
-
.circular-progress-
|
|
105
|
+
.circular-progress-bar__backgroundCircle_tn1xj {
|
|
93
106
|
stroke: var(--circular-progress-bar-bg-color);
|
|
94
107
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-circular-progress-bar",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^16.9.0 || ^17.0.1"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "271b16878748ef76d0fead14b60b477ca5c2fac8"
|
|
26
26
|
}
|