@alfalab/core-components-circular-progress-bar 2.0.3 → 2.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 CHANGED
@@ -3,6 +3,36 @@
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.2.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-circular-progress-bar@2.1.1...@alfalab/core-components-circular-progress-bar@2.2.0) (2022-03-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * Исправить импорты в сторях. ([#998](https://github.com/alfa-laboratory/core-components/issues/998)) ([e6a654a](https://github.com/alfa-laboratory/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.1.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-circular-progress-bar@2.1.0...@alfalab/core-components-circular-progress-bar@2.1.1) (2022-01-17)
18
+
19
+ **Note:** Version bump only for package @alfalab/core-components-circular-progress-bar
20
+
21
+
22
+
23
+
24
+
25
+ # [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)
26
+
27
+
28
+ ### Features
29
+
30
+ * **circular-progress-bar:** new size S ([d34db5c](https://github.com/alfa-laboratory/core-components/commit/d34db5cca682bc63f948a0dad322604c8044a6b8))
31
+
32
+
33
+
34
+
35
+
6
36
  ## [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
37
 
8
38
  **Note:** Version bump only for package @alfalab/core-components-circular-progress-bar
@@ -22,9 +22,9 @@ type CircularProgressBarProps = {
22
22
  */
23
23
  view?: 'positive' | 'negative';
24
24
  /**
25
- * Размер (l - 144x144px, m - 120x120px)
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-bar__component_p1y2d","svg":"circular-progress-bar__svg_p1y2d","title":"circular-progress-bar__title_p1y2d","subtitle":"circular-progress-bar__subtitle_p1y2d","l":"circular-progress-bar__l_p1y2d","label":"circular-progress-bar__label_p1y2d","m":"circular-progress-bar__m_p1y2d","backgroundCircle":"circular-progress-bar__backgroundCircle_p1y2d","progressCircle":"circular-progress-bar__progressCircle_p1y2d","positive":"circular-progress-bar__positive_p1y2d","negative":"circular-progress-bar__negative_p1y2d"};
14
+ var styles = {"component":"circular-progress-bar__component_1qqvh","svg":"circular-progress-bar__svg_1qqvh","title":"circular-progress-bar__title_1qqvh","subtitle":"circular-progress-bar__subtitle_1qqvh","l":"circular-progress-bar__l_1qqvh","label":"circular-progress-bar__label_1qqvh","m":"circular-progress-bar__m_1qqvh","s":"circular-progress-bar__s_1qqvh","backgroundCircle":"circular-progress-bar__backgroundCircle_1qqvh","progressCircle":"circular-progress-bar__progressCircle_1qqvh","positive":"circular-progress-bar__positive_1qqvh","negative":"circular-progress-bar__negative_1qqvh"};
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 === 'l' ? 144 : 120;
27
- var height = size === 'l' ? 144 : 120;
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;
@@ -22,9 +22,9 @@ type CircularProgressBarProps = {
22
22
  */
23
23
  view?: 'positive' | 'negative';
24
24
  /**
25
- * Размер (l - 144x144px, m - 120x120px)
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
  */
@@ -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 === 'l' ? 144 : 120;
26
- var height = size === 'l' ? 144 : 120;
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;
@@ -63,6 +63,19 @@
63
63
  max-height: 24px;
64
64
  }
65
65
 
66
+ .s {
67
+ width: 96px;
68
+ height: 96px
69
+ }
70
+
71
+ .s .label {
72
+ max-width: 72px;
73
+ }
74
+
75
+ .s .title {
76
+ max-height: 24px;
77
+ }
78
+
66
79
  .label {
67
80
  text-align: center;
68
81
  position: absolute;
@@ -22,9 +22,9 @@ type CircularProgressBarProps = {
22
22
  */
23
23
  view?: 'positive' | 'negative';
24
24
  /**
25
- * Размер (l - 144x144px, m - 120x120px)
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
  */
@@ -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-bar__component_p1y2d","svg":"circular-progress-bar__svg_p1y2d","title":"circular-progress-bar__title_p1y2d","subtitle":"circular-progress-bar__subtitle_p1y2d","l":"circular-progress-bar__l_p1y2d","label":"circular-progress-bar__label_p1y2d","m":"circular-progress-bar__m_p1y2d","backgroundCircle":"circular-progress-bar__backgroundCircle_p1y2d","progressCircle":"circular-progress-bar__progressCircle_p1y2d","positive":"circular-progress-bar__positive_p1y2d","negative":"circular-progress-bar__negative_p1y2d"};
5
+ var styles = {"component":"circular-progress-bar__component_1qqvh","svg":"circular-progress-bar__svg_1qqvh","title":"circular-progress-bar__title_1qqvh","subtitle":"circular-progress-bar__subtitle_1qqvh","l":"circular-progress-bar__l_1qqvh","label":"circular-progress-bar__label_1qqvh","m":"circular-progress-bar__m_1qqvh","s":"circular-progress-bar__s_1qqvh","backgroundCircle":"circular-progress-bar__backgroundCircle_1qqvh","progressCircle":"circular-progress-bar__progressCircle_1qqvh","positive":"circular-progress-bar__positive_1qqvh","negative":"circular-progress-bar__negative_1qqvh"};
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 === 'l' ? 144 : 120;
18
- var height = size === 'l' ? 144 : 120;
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;
@@ -1,4 +1,4 @@
1
- /* hash: p1y2d */
1
+ /* hash: 1cd8g */
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-bar__component_p1y2d {
19
+ .circular-progress-bar__component_1qqvh {
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-bar__svg_p1y2d {
26
+ .circular-progress-bar__svg_1qqvh {
27
27
  display: block;
28
28
  width: 100%;
29
29
  }
30
30
 
31
- .circular-progress-bar__title_p1y2d,
32
- .circular-progress-bar__subtitle_p1y2d {
31
+ .circular-progress-bar__title_1qqvh,
32
+ .circular-progress-bar__subtitle_1qqvh {
33
33
  overflow: hidden;
34
34
  word-break: break-word;
35
35
  }
36
36
 
37
- .circular-progress-bar__subtitle_p1y2d {
37
+ .circular-progress-bar__subtitle_1qqvh {
38
38
  max-height: 40px;
39
39
  }
40
40
 
41
- .circular-progress-bar__l_p1y2d {
41
+ .circular-progress-bar__l_1qqvh {
42
42
  width: 144px;
43
43
  height: 144px
44
44
  }
45
45
 
46
- .circular-progress-bar__l_p1y2d .circular-progress-bar__label_p1y2d {
46
+ .circular-progress-bar__l_1qqvh .circular-progress-bar__label_1qqvh {
47
47
  max-width: 120px;
48
48
  }
49
49
 
50
- .circular-progress-bar__l_p1y2d .circular-progress-bar__title_p1y2d {
50
+ .circular-progress-bar__l_1qqvh .circular-progress-bar__title_1qqvh {
51
51
  max-height: 32px;
52
52
  }
53
53
 
54
- .circular-progress-bar__m_p1y2d {
54
+ .circular-progress-bar__m_1qqvh {
55
55
  width: 120px;
56
56
  height: 120px
57
57
  }
58
58
 
59
- .circular-progress-bar__m_p1y2d .circular-progress-bar__label_p1y2d {
59
+ .circular-progress-bar__m_1qqvh .circular-progress-bar__label_1qqvh {
60
60
  max-width: 96px;
61
61
  }
62
62
 
63
- .circular-progress-bar__m_p1y2d .circular-progress-bar__title_p1y2d {
63
+ .circular-progress-bar__m_1qqvh .circular-progress-bar__title_1qqvh {
64
64
  max-height: 24px;
65
65
  }
66
66
 
67
- .circular-progress-bar__label_p1y2d {
67
+ .circular-progress-bar__s_1qqvh {
68
+ width: 96px;
69
+ height: 96px
70
+ }
71
+
72
+ .circular-progress-bar__s_1qqvh .circular-progress-bar__label_1qqvh {
73
+ max-width: 72px;
74
+ }
75
+
76
+ .circular-progress-bar__s_1qqvh .circular-progress-bar__title_1qqvh {
77
+ max-height: 24px;
78
+ }
79
+
80
+ .circular-progress-bar__label_1qqvh {
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-bar__backgroundCircle_p1y2d,
77
- .circular-progress-bar__progressCircle_p1y2d {
89
+ .circular-progress-bar__backgroundCircle_1qqvh,
90
+ .circular-progress-bar__progressCircle_1qqvh {
78
91
  width: 100%;
79
92
  height: 100%;
80
93
  fill: transparent;
81
94
  stroke-width: 8;
82
95
  }
83
96
 
84
- .circular-progress-bar__positive_p1y2d {
97
+ .circular-progress-bar__positive_1qqvh {
85
98
  stroke: var(--circular-progress-bar-positive-color);
86
99
  }
87
100
 
88
- .circular-progress-bar__negative_p1y2d {
101
+ .circular-progress-bar__negative_1qqvh {
89
102
  stroke: var(--circular-progress-bar-negative-color);
90
103
  }
91
104
 
92
- .circular-progress-bar__backgroundCircle_p1y2d {
105
+ .circular-progress-bar__backgroundCircle_1qqvh {
93
106
  stroke: var(--circular-progress-bar-bg-color);
94
107
  }
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: p1y2d */
1
+ /* hash: 1cd8g */
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-bar__component_p1y2d {
19
+ .circular-progress-bar__component_1qqvh {
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-bar__svg_p1y2d {
26
+ .circular-progress-bar__svg_1qqvh {
27
27
  display: block;
28
28
  width: 100%;
29
29
  }
30
30
 
31
- .circular-progress-bar__title_p1y2d,
32
- .circular-progress-bar__subtitle_p1y2d {
31
+ .circular-progress-bar__title_1qqvh,
32
+ .circular-progress-bar__subtitle_1qqvh {
33
33
  overflow: hidden;
34
34
  word-break: break-word;
35
35
  }
36
36
 
37
- .circular-progress-bar__subtitle_p1y2d {
37
+ .circular-progress-bar__subtitle_1qqvh {
38
38
  max-height: 40px;
39
39
  }
40
40
 
41
- .circular-progress-bar__l_p1y2d {
41
+ .circular-progress-bar__l_1qqvh {
42
42
  width: 144px;
43
43
  height: 144px
44
44
  }
45
45
 
46
- .circular-progress-bar__l_p1y2d .circular-progress-bar__label_p1y2d {
46
+ .circular-progress-bar__l_1qqvh .circular-progress-bar__label_1qqvh {
47
47
  max-width: 120px;
48
48
  }
49
49
 
50
- .circular-progress-bar__l_p1y2d .circular-progress-bar__title_p1y2d {
50
+ .circular-progress-bar__l_1qqvh .circular-progress-bar__title_1qqvh {
51
51
  max-height: 32px;
52
52
  }
53
53
 
54
- .circular-progress-bar__m_p1y2d {
54
+ .circular-progress-bar__m_1qqvh {
55
55
  width: 120px;
56
56
  height: 120px
57
57
  }
58
58
 
59
- .circular-progress-bar__m_p1y2d .circular-progress-bar__label_p1y2d {
59
+ .circular-progress-bar__m_1qqvh .circular-progress-bar__label_1qqvh {
60
60
  max-width: 96px;
61
61
  }
62
62
 
63
- .circular-progress-bar__m_p1y2d .circular-progress-bar__title_p1y2d {
63
+ .circular-progress-bar__m_1qqvh .circular-progress-bar__title_1qqvh {
64
64
  max-height: 24px;
65
65
  }
66
66
 
67
- .circular-progress-bar__label_p1y2d {
67
+ .circular-progress-bar__s_1qqvh {
68
+ width: 96px;
69
+ height: 96px
70
+ }
71
+
72
+ .circular-progress-bar__s_1qqvh .circular-progress-bar__label_1qqvh {
73
+ max-width: 72px;
74
+ }
75
+
76
+ .circular-progress-bar__s_1qqvh .circular-progress-bar__title_1qqvh {
77
+ max-height: 24px;
78
+ }
79
+
80
+ .circular-progress-bar__label_1qqvh {
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-bar__backgroundCircle_p1y2d,
77
- .circular-progress-bar__progressCircle_p1y2d {
89
+ .circular-progress-bar__backgroundCircle_1qqvh,
90
+ .circular-progress-bar__progressCircle_1qqvh {
78
91
  width: 100%;
79
92
  height: 100%;
80
93
  fill: transparent;
81
94
  stroke-width: 8;
82
95
  }
83
96
 
84
- .circular-progress-bar__positive_p1y2d {
97
+ .circular-progress-bar__positive_1qqvh {
85
98
  stroke: var(--circular-progress-bar-positive-color);
86
99
  }
87
100
 
88
- .circular-progress-bar__negative_p1y2d {
101
+ .circular-progress-bar__negative_1qqvh {
89
102
  stroke: var(--circular-progress-bar-negative-color);
90
103
  }
91
104
 
92
- .circular-progress-bar__backgroundCircle_p1y2d {
105
+ .circular-progress-bar__backgroundCircle_1qqvh {
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 - 144x144px, m - 120x120px)
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
  */
@@ -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-bar__component_p1y2d","svg":"circular-progress-bar__svg_p1y2d","title":"circular-progress-bar__title_p1y2d","subtitle":"circular-progress-bar__subtitle_p1y2d","l":"circular-progress-bar__l_p1y2d","label":"circular-progress-bar__label_p1y2d","m":"circular-progress-bar__m_p1y2d","backgroundCircle":"circular-progress-bar__backgroundCircle_p1y2d","progressCircle":"circular-progress-bar__progressCircle_p1y2d","positive":"circular-progress-bar__positive_p1y2d","negative":"circular-progress-bar__negative_p1y2d"};
5
+ var styles = {"component":"circular-progress-bar__component_1qqvh","svg":"circular-progress-bar__svg_1qqvh","title":"circular-progress-bar__title_1qqvh","subtitle":"circular-progress-bar__subtitle_1qqvh","l":"circular-progress-bar__l_1qqvh","label":"circular-progress-bar__label_1qqvh","m":"circular-progress-bar__m_1qqvh","s":"circular-progress-bar__s_1qqvh","backgroundCircle":"circular-progress-bar__backgroundCircle_1qqvh","progressCircle":"circular-progress-bar__progressCircle_1qqvh","positive":"circular-progress-bar__positive_1qqvh","negative":"circular-progress-bar__negative_1qqvh"};
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 === 'l' ? 144 : 120;
17
- const height = size === 'l' ? 144 : 120;
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;
@@ -1,4 +1,4 @@
1
- /* hash: p1y2d */
1
+ /* hash: 1cd8g */
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-bar__component_p1y2d {
19
+ .circular-progress-bar__component_1qqvh {
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-bar__svg_p1y2d {
26
+ .circular-progress-bar__svg_1qqvh {
27
27
  display: block;
28
28
  width: 100%;
29
29
  }
30
30
 
31
- .circular-progress-bar__title_p1y2d,
32
- .circular-progress-bar__subtitle_p1y2d {
31
+ .circular-progress-bar__title_1qqvh,
32
+ .circular-progress-bar__subtitle_1qqvh {
33
33
  overflow: hidden;
34
34
  word-break: break-word;
35
35
  }
36
36
 
37
- .circular-progress-bar__subtitle_p1y2d {
37
+ .circular-progress-bar__subtitle_1qqvh {
38
38
  max-height: 40px;
39
39
  }
40
40
 
41
- .circular-progress-bar__l_p1y2d {
41
+ .circular-progress-bar__l_1qqvh {
42
42
  width: 144px;
43
43
  height: 144px
44
44
  }
45
45
 
46
- .circular-progress-bar__l_p1y2d .circular-progress-bar__label_p1y2d {
46
+ .circular-progress-bar__l_1qqvh .circular-progress-bar__label_1qqvh {
47
47
  max-width: 120px;
48
48
  }
49
49
 
50
- .circular-progress-bar__l_p1y2d .circular-progress-bar__title_p1y2d {
50
+ .circular-progress-bar__l_1qqvh .circular-progress-bar__title_1qqvh {
51
51
  max-height: 32px;
52
52
  }
53
53
 
54
- .circular-progress-bar__m_p1y2d {
54
+ .circular-progress-bar__m_1qqvh {
55
55
  width: 120px;
56
56
  height: 120px
57
57
  }
58
58
 
59
- .circular-progress-bar__m_p1y2d .circular-progress-bar__label_p1y2d {
59
+ .circular-progress-bar__m_1qqvh .circular-progress-bar__label_1qqvh {
60
60
  max-width: 96px;
61
61
  }
62
62
 
63
- .circular-progress-bar__m_p1y2d .circular-progress-bar__title_p1y2d {
63
+ .circular-progress-bar__m_1qqvh .circular-progress-bar__title_1qqvh {
64
64
  max-height: 24px;
65
65
  }
66
66
 
67
- .circular-progress-bar__label_p1y2d {
67
+ .circular-progress-bar__s_1qqvh {
68
+ width: 96px;
69
+ height: 96px
70
+ }
71
+
72
+ .circular-progress-bar__s_1qqvh .circular-progress-bar__label_1qqvh {
73
+ max-width: 72px;
74
+ }
75
+
76
+ .circular-progress-bar__s_1qqvh .circular-progress-bar__title_1qqvh {
77
+ max-height: 24px;
78
+ }
79
+
80
+ .circular-progress-bar__label_1qqvh {
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-bar__backgroundCircle_p1y2d,
77
- .circular-progress-bar__progressCircle_p1y2d {
89
+ .circular-progress-bar__backgroundCircle_1qqvh,
90
+ .circular-progress-bar__progressCircle_1qqvh {
78
91
  width: 100%;
79
92
  height: 100%;
80
93
  fill: transparent;
81
94
  stroke-width: 8;
82
95
  }
83
96
 
84
- .circular-progress-bar__positive_p1y2d {
97
+ .circular-progress-bar__positive_1qqvh {
85
98
  stroke: var(--circular-progress-bar-positive-color);
86
99
  }
87
100
 
88
- .circular-progress-bar__negative_p1y2d {
101
+ .circular-progress-bar__negative_1qqvh {
89
102
  stroke: var(--circular-progress-bar-negative-color);
90
103
  }
91
104
 
92
- .circular-progress-bar__backgroundCircle_p1y2d {
105
+ .circular-progress-bar__backgroundCircle_1qqvh {
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",
3
+ "version": "2.2.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -16,11 +16,11 @@
16
16
  "access": "public"
17
17
  },
18
18
  "dependencies": {
19
- "@alfalab/core-components-typography": "^2.2.0",
19
+ "@alfalab/core-components-typography": "^2.4.0",
20
20
  "classnames": "^2.2.6"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": "^16.9.0 || ^17.0.1"
24
24
  },
25
- "gitHead": "a80a4377703da0cb8fd257612117ef3eb2d9bc42"
25
+ "gitHead": "ddf4fab6035139cf412e0acb7174ef388f23e4f2"
26
26
  }