@alfalab/core-components-circular-progress-bar 3.4.2 → 3.4.3
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/Component.js +1 -1
- package/cssm/index.js +0 -6
- package/esm/Component.js +1 -1
- package/esm/index.css +49 -49
- package/esm/index.js +0 -5
- package/index.css +49 -49
- package/index.js +0 -5
- package/modern/Component.js +1 -1
- package/modern/index.css +49 -49
- package/modern/index.js +0 -4
- package/package.json +2 -2
package/Component.js
CHANGED
|
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"circular-progress-
|
|
16
|
+
var styles = {"component":"circular-progress-bar__component_1ckn0","bg-positive":"circular-progress-bar__bg-positive_1ckn0","bg-negative":"circular-progress-bar__bg-negative_1ckn0","svg":"circular-progress-bar__svg_1ckn0","title":"circular-progress-bar__title_1ckn0","subtitle":"circular-progress-bar__subtitle_1ckn0","labelWrapper":"circular-progress-bar__labelWrapper_1ckn0","label":"circular-progress-bar__label_1ckn0","typography":"circular-progress-bar__typography_1ckn0","xxl":"circular-progress-bar__xxl_1ckn0","xl":"circular-progress-bar__xl_1ckn0","l":"circular-progress-bar__l_1ckn0","m":"circular-progress-bar__m_1ckn0","s":"circular-progress-bar__s_1ckn0","xs":"circular-progress-bar__xs_1ckn0","backgroundCircle":"circular-progress-bar__backgroundCircle_1ckn0","progressCircle":"circular-progress-bar__progressCircle_1ckn0","positive":"circular-progress-bar__positive_1ckn0","negative":"circular-progress-bar__negative_1ckn0","stroke":"circular-progress-bar__stroke_1ckn0","iconWrapper":"circular-progress-bar__iconWrapper_1ckn0","icon-tertiary":"circular-progress-bar__icon-tertiary_1ckn0","icon-positive":"circular-progress-bar__icon-positive_1ckn0","icon-negative":"circular-progress-bar__icon-negative_1ckn0","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_1ckn0","icon-primary":"circular-progress-bar__icon-primary_1ckn0","icon-secondary":"circular-progress-bar__icon-secondary_1ckn0","icon":"circular-progress-bar__icon_1ckn0"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
/**
|
package/cssm/index.js
CHANGED
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-typography/cssm');
|
|
10
|
-
require('./consts.js');
|
|
11
|
-
require('./index.module.css');
|
|
12
6
|
|
|
13
7
|
|
|
14
8
|
|
package/esm/Component.js
CHANGED
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
5
5
|
import { STROKE, SIZES, TYPOGRAPHY_COLOR, VIEW_TITLE, VIEW_TEXT } from './consts.js';
|
|
6
6
|
|
|
7
|
-
var styles = {"component":"circular-progress-
|
|
7
|
+
var styles = {"component":"circular-progress-bar__component_1ckn0","bg-positive":"circular-progress-bar__bg-positive_1ckn0","bg-negative":"circular-progress-bar__bg-negative_1ckn0","svg":"circular-progress-bar__svg_1ckn0","title":"circular-progress-bar__title_1ckn0","subtitle":"circular-progress-bar__subtitle_1ckn0","labelWrapper":"circular-progress-bar__labelWrapper_1ckn0","label":"circular-progress-bar__label_1ckn0","typography":"circular-progress-bar__typography_1ckn0","xxl":"circular-progress-bar__xxl_1ckn0","xl":"circular-progress-bar__xl_1ckn0","l":"circular-progress-bar__l_1ckn0","m":"circular-progress-bar__m_1ckn0","s":"circular-progress-bar__s_1ckn0","xs":"circular-progress-bar__xs_1ckn0","backgroundCircle":"circular-progress-bar__backgroundCircle_1ckn0","progressCircle":"circular-progress-bar__progressCircle_1ckn0","positive":"circular-progress-bar__positive_1ckn0","negative":"circular-progress-bar__negative_1ckn0","stroke":"circular-progress-bar__stroke_1ckn0","iconWrapper":"circular-progress-bar__iconWrapper_1ckn0","icon-tertiary":"circular-progress-bar__icon-tertiary_1ckn0","icon-positive":"circular-progress-bar__icon-positive_1ckn0","icon-negative":"circular-progress-bar__icon-negative_1ckn0","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_1ckn0","icon-primary":"circular-progress-bar__icon-primary_1ckn0","icon-secondary":"circular-progress-bar__icon-secondary_1ckn0","icon":"circular-progress-bar__icon_1ckn0"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
/**
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 30xqn */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -37,135 +37,135 @@
|
|
|
37
37
|
/* theme */
|
|
38
38
|
--circular-progress-bar-font-family: var(--font-family-system);
|
|
39
39
|
--circular-progress-bar-font-weight: 600;
|
|
40
|
-
} .circular-progress-
|
|
40
|
+
} .circular-progress-bar__component_1ckn0 {
|
|
41
41
|
position: relative;
|
|
42
42
|
display: flex;
|
|
43
43
|
justify-content: center;
|
|
44
44
|
align-items: center;
|
|
45
45
|
border-radius: var(--border-radius-pill)
|
|
46
|
-
} .circular-progress-
|
|
46
|
+
} .circular-progress-bar__component_1ckn0.circular-progress-bar__bg-positive_1ckn0 {
|
|
47
47
|
background: var(--circular-progress-bar-positive-color);
|
|
48
|
-
} .circular-progress-
|
|
48
|
+
} .circular-progress-bar__component_1ckn0.circular-progress-bar__bg-negative_1ckn0 {
|
|
49
49
|
background: var(--circular-progress-bar-negative-color);
|
|
50
|
-
} .circular-progress-
|
|
50
|
+
} .circular-progress-bar__svg_1ckn0 {
|
|
51
51
|
display: block;
|
|
52
52
|
width: 100%;
|
|
53
|
-
} .circular-progress-
|
|
54
|
-
.circular-progress-
|
|
53
|
+
} .circular-progress-bar__title_1ckn0,
|
|
54
|
+
.circular-progress-bar__subtitle_1ckn0 {
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
word-break: break-word;
|
|
57
57
|
white-space: nowrap;
|
|
58
58
|
text-overflow: ellipsis;
|
|
59
59
|
margin: 0 6px;
|
|
60
|
-
} .circular-progress-
|
|
60
|
+
} .circular-progress-bar__subtitle_1ckn0 {
|
|
61
61
|
max-height: 40px;
|
|
62
|
-
} .circular-progress-
|
|
62
|
+
} .circular-progress-bar__labelWrapper_1ckn0 {
|
|
63
63
|
text-align: center;
|
|
64
64
|
position: absolute;
|
|
65
65
|
top: 50%;
|
|
66
66
|
left: 50%;
|
|
67
67
|
width: 100%;
|
|
68
68
|
transform: translate(-50%, -50%)
|
|
69
|
-
} .circular-progress-
|
|
69
|
+
} .circular-progress-bar__labelWrapper_1ckn0.circular-progress-bar__label_1ckn0 {
|
|
70
70
|
display: flex;
|
|
71
71
|
align-items: center;
|
|
72
72
|
justify-content: center;
|
|
73
|
-
} .circular-progress-
|
|
73
|
+
} .circular-progress-bar__typography_1ckn0 {
|
|
74
74
|
font-feature-settings: 'ss01';
|
|
75
75
|
font-weight: var(--circular-progress-bar-font-weight);
|
|
76
76
|
font-family: var(--circular-progress-bar-font-family);
|
|
77
|
-
} .circular-progress-
|
|
77
|
+
} .circular-progress-bar__xxl_1ckn0 {
|
|
78
78
|
width: 144px;
|
|
79
79
|
height: 144px
|
|
80
|
-
} .circular-progress-
|
|
80
|
+
} .circular-progress-bar__xxl_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
81
81
|
max-width: 128px;
|
|
82
|
-
} .circular-progress-
|
|
82
|
+
} .circular-progress-bar__xxl_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
83
83
|
max-height: 32px;
|
|
84
|
-
} .circular-progress-
|
|
84
|
+
} .circular-progress-bar__xl_1ckn0 {
|
|
85
85
|
width: 128px;
|
|
86
86
|
height: 128px
|
|
87
|
-
} .circular-progress-
|
|
87
|
+
} .circular-progress-bar__xl_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
88
88
|
max-width: 108px;
|
|
89
|
-
} .circular-progress-
|
|
89
|
+
} .circular-progress-bar__xl_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
90
90
|
max-height: 32px;
|
|
91
|
-
} .circular-progress-
|
|
91
|
+
} .circular-progress-bar__l_1ckn0 {
|
|
92
92
|
width: 80px;
|
|
93
93
|
height: 80px
|
|
94
|
-
} .circular-progress-
|
|
94
|
+
} .circular-progress-bar__l_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
95
95
|
max-width: 64px;
|
|
96
|
-
} .circular-progress-
|
|
96
|
+
} .circular-progress-bar__l_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
97
97
|
max-height: 24px;
|
|
98
|
-
} .circular-progress-
|
|
98
|
+
} .circular-progress-bar__m_1ckn0 {
|
|
99
99
|
width: 64px;
|
|
100
100
|
height: 64px
|
|
101
|
-
} .circular-progress-
|
|
101
|
+
} .circular-progress-bar__m_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
102
102
|
max-width: 48px;
|
|
103
|
-
} .circular-progress-
|
|
103
|
+
} .circular-progress-bar__m_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
104
104
|
max-height: 16px;
|
|
105
105
|
margin: 0;
|
|
106
|
-
} .circular-progress-
|
|
106
|
+
} .circular-progress-bar__s_1ckn0 {
|
|
107
107
|
width: 48px;
|
|
108
108
|
height: 48px
|
|
109
|
-
} .circular-progress-
|
|
109
|
+
} .circular-progress-bar__s_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
110
110
|
max-width: 40px;
|
|
111
|
-
} .circular-progress-
|
|
111
|
+
} .circular-progress-bar__s_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
112
112
|
max-height: 16px;
|
|
113
113
|
margin: 0;
|
|
114
|
-
} .circular-progress-
|
|
114
|
+
} .circular-progress-bar__xs_1ckn0 {
|
|
115
115
|
width: 24px;
|
|
116
116
|
height: 24px
|
|
117
|
-
} .circular-progress-
|
|
117
|
+
} .circular-progress-bar__xs_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
118
118
|
max-width: 24px;
|
|
119
|
-
} .circular-progress-
|
|
120
|
-
.circular-progress-
|
|
119
|
+
} .circular-progress-bar__backgroundCircle_1ckn0,
|
|
120
|
+
.circular-progress-bar__progressCircle_1ckn0 {
|
|
121
121
|
width: 100%;
|
|
122
122
|
height: 100%;
|
|
123
123
|
fill: transparent;
|
|
124
|
-
} .circular-progress-
|
|
124
|
+
} .circular-progress-bar__positive_1ckn0 {
|
|
125
125
|
stroke: var(--circular-progress-bar-positive-color);
|
|
126
|
-
} .circular-progress-
|
|
126
|
+
} .circular-progress-bar__negative_1ckn0 {
|
|
127
127
|
stroke: var(--circular-progress-bar-negative-color);
|
|
128
|
-
} .circular-progress-
|
|
128
|
+
} .circular-progress-bar__backgroundCircle_1ckn0 {
|
|
129
129
|
stroke: var(--circular-progress-bar-stroke-color)
|
|
130
|
-
} .circular-progress-
|
|
130
|
+
} .circular-progress-bar__backgroundCircle_1ckn0.circular-progress-bar__stroke_1ckn0 {
|
|
131
131
|
stroke: transparent;
|
|
132
|
-
} .circular-progress-
|
|
132
|
+
} .circular-progress-bar__progressCircle_1ckn0 {
|
|
133
133
|
stroke-linecap: round;
|
|
134
|
-
} .circular-progress-
|
|
134
|
+
} .circular-progress-bar__iconWrapper_1ckn0 {
|
|
135
135
|
display: flex;
|
|
136
136
|
align-items: center;
|
|
137
137
|
justify-content: center
|
|
138
|
-
} .circular-progress-
|
|
138
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__xxl_1ckn0 {
|
|
139
139
|
max-width: 64px;
|
|
140
140
|
max-height: 64px;
|
|
141
|
-
} .circular-progress-
|
|
141
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__xl_1ckn0 {
|
|
142
142
|
max-width: 64px;
|
|
143
143
|
max-height: 64px;
|
|
144
|
-
} .circular-progress-
|
|
144
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__l_1ckn0 {
|
|
145
145
|
max-width: 48px;
|
|
146
146
|
max-height: 48px;
|
|
147
|
-
} .circular-progress-
|
|
147
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__m_1ckn0 {
|
|
148
148
|
max-width: 36px;
|
|
149
149
|
max-height: 36px;
|
|
150
|
-
} .circular-progress-
|
|
150
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__s_1ckn0 {
|
|
151
151
|
max-width: 24px;
|
|
152
152
|
max-height: 24px;
|
|
153
|
-
} .circular-progress-
|
|
153
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__xs_1ckn0 {
|
|
154
154
|
max-width: 16px;
|
|
155
155
|
max-height: 16px;
|
|
156
|
-
} .circular-progress-
|
|
156
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-tertiary_1ckn0 {
|
|
157
157
|
color: var(--color-light-neutral-500);
|
|
158
|
-
} .circular-progress-
|
|
158
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-positive_1ckn0 {
|
|
159
159
|
color: var(--color-light-status-positive);
|
|
160
|
-
} .circular-progress-
|
|
160
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-negative_1ckn0 {
|
|
161
161
|
color: var(--color-light-status-negative);
|
|
162
|
-
} .circular-progress-
|
|
162
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-primary-inverted_1ckn0 {
|
|
163
163
|
color: var(--color-light-neutral-1500-inverted);
|
|
164
|
-
} .circular-progress-
|
|
164
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-primary_1ckn0 {
|
|
165
165
|
color: var(--color-light-neutral-1500);
|
|
166
|
-
} .circular-progress-
|
|
166
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-secondary_1ckn0 {
|
|
167
167
|
color: var(--color-light-neutral-700);
|
|
168
|
-
} .circular-progress-
|
|
168
|
+
} .circular-progress-bar__icon_1ckn0 {
|
|
169
169
|
width: 100%;
|
|
170
170
|
height: 100%;
|
|
171
171
|
}
|
package/esm/index.js
CHANGED
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 30xqn */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -37,135 +37,135 @@
|
|
|
37
37
|
/* theme */
|
|
38
38
|
--circular-progress-bar-font-family: var(--font-family-system);
|
|
39
39
|
--circular-progress-bar-font-weight: 600;
|
|
40
|
-
} .circular-progress-
|
|
40
|
+
} .circular-progress-bar__component_1ckn0 {
|
|
41
41
|
position: relative;
|
|
42
42
|
display: flex;
|
|
43
43
|
justify-content: center;
|
|
44
44
|
align-items: center;
|
|
45
45
|
border-radius: var(--border-radius-pill)
|
|
46
|
-
} .circular-progress-
|
|
46
|
+
} .circular-progress-bar__component_1ckn0.circular-progress-bar__bg-positive_1ckn0 {
|
|
47
47
|
background: var(--circular-progress-bar-positive-color);
|
|
48
|
-
} .circular-progress-
|
|
48
|
+
} .circular-progress-bar__component_1ckn0.circular-progress-bar__bg-negative_1ckn0 {
|
|
49
49
|
background: var(--circular-progress-bar-negative-color);
|
|
50
|
-
} .circular-progress-
|
|
50
|
+
} .circular-progress-bar__svg_1ckn0 {
|
|
51
51
|
display: block;
|
|
52
52
|
width: 100%;
|
|
53
|
-
} .circular-progress-
|
|
54
|
-
.circular-progress-
|
|
53
|
+
} .circular-progress-bar__title_1ckn0,
|
|
54
|
+
.circular-progress-bar__subtitle_1ckn0 {
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
word-break: break-word;
|
|
57
57
|
white-space: nowrap;
|
|
58
58
|
text-overflow: ellipsis;
|
|
59
59
|
margin: 0 6px;
|
|
60
|
-
} .circular-progress-
|
|
60
|
+
} .circular-progress-bar__subtitle_1ckn0 {
|
|
61
61
|
max-height: 40px;
|
|
62
|
-
} .circular-progress-
|
|
62
|
+
} .circular-progress-bar__labelWrapper_1ckn0 {
|
|
63
63
|
text-align: center;
|
|
64
64
|
position: absolute;
|
|
65
65
|
top: 50%;
|
|
66
66
|
left: 50%;
|
|
67
67
|
width: 100%;
|
|
68
68
|
transform: translate(-50%, -50%)
|
|
69
|
-
} .circular-progress-
|
|
69
|
+
} .circular-progress-bar__labelWrapper_1ckn0.circular-progress-bar__label_1ckn0 {
|
|
70
70
|
display: flex;
|
|
71
71
|
align-items: center;
|
|
72
72
|
justify-content: center;
|
|
73
|
-
} .circular-progress-
|
|
73
|
+
} .circular-progress-bar__typography_1ckn0 {
|
|
74
74
|
font-feature-settings: 'ss01';
|
|
75
75
|
font-weight: var(--circular-progress-bar-font-weight);
|
|
76
76
|
font-family: var(--circular-progress-bar-font-family);
|
|
77
|
-
} .circular-progress-
|
|
77
|
+
} .circular-progress-bar__xxl_1ckn0 {
|
|
78
78
|
width: 144px;
|
|
79
79
|
height: 144px
|
|
80
|
-
} .circular-progress-
|
|
80
|
+
} .circular-progress-bar__xxl_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
81
81
|
max-width: 128px;
|
|
82
|
-
} .circular-progress-
|
|
82
|
+
} .circular-progress-bar__xxl_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
83
83
|
max-height: 32px;
|
|
84
|
-
} .circular-progress-
|
|
84
|
+
} .circular-progress-bar__xl_1ckn0 {
|
|
85
85
|
width: 128px;
|
|
86
86
|
height: 128px
|
|
87
|
-
} .circular-progress-
|
|
87
|
+
} .circular-progress-bar__xl_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
88
88
|
max-width: 108px;
|
|
89
|
-
} .circular-progress-
|
|
89
|
+
} .circular-progress-bar__xl_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
90
90
|
max-height: 32px;
|
|
91
|
-
} .circular-progress-
|
|
91
|
+
} .circular-progress-bar__l_1ckn0 {
|
|
92
92
|
width: 80px;
|
|
93
93
|
height: 80px
|
|
94
|
-
} .circular-progress-
|
|
94
|
+
} .circular-progress-bar__l_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
95
95
|
max-width: 64px;
|
|
96
|
-
} .circular-progress-
|
|
96
|
+
} .circular-progress-bar__l_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
97
97
|
max-height: 24px;
|
|
98
|
-
} .circular-progress-
|
|
98
|
+
} .circular-progress-bar__m_1ckn0 {
|
|
99
99
|
width: 64px;
|
|
100
100
|
height: 64px
|
|
101
|
-
} .circular-progress-
|
|
101
|
+
} .circular-progress-bar__m_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
102
102
|
max-width: 48px;
|
|
103
|
-
} .circular-progress-
|
|
103
|
+
} .circular-progress-bar__m_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
104
104
|
max-height: 16px;
|
|
105
105
|
margin: 0;
|
|
106
|
-
} .circular-progress-
|
|
106
|
+
} .circular-progress-bar__s_1ckn0 {
|
|
107
107
|
width: 48px;
|
|
108
108
|
height: 48px
|
|
109
|
-
} .circular-progress-
|
|
109
|
+
} .circular-progress-bar__s_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
110
110
|
max-width: 40px;
|
|
111
|
-
} .circular-progress-
|
|
111
|
+
} .circular-progress-bar__s_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
112
112
|
max-height: 16px;
|
|
113
113
|
margin: 0;
|
|
114
|
-
} .circular-progress-
|
|
114
|
+
} .circular-progress-bar__xs_1ckn0 {
|
|
115
115
|
width: 24px;
|
|
116
116
|
height: 24px
|
|
117
|
-
} .circular-progress-
|
|
117
|
+
} .circular-progress-bar__xs_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
118
118
|
max-width: 24px;
|
|
119
|
-
} .circular-progress-
|
|
120
|
-
.circular-progress-
|
|
119
|
+
} .circular-progress-bar__backgroundCircle_1ckn0,
|
|
120
|
+
.circular-progress-bar__progressCircle_1ckn0 {
|
|
121
121
|
width: 100%;
|
|
122
122
|
height: 100%;
|
|
123
123
|
fill: transparent;
|
|
124
|
-
} .circular-progress-
|
|
124
|
+
} .circular-progress-bar__positive_1ckn0 {
|
|
125
125
|
stroke: var(--circular-progress-bar-positive-color);
|
|
126
|
-
} .circular-progress-
|
|
126
|
+
} .circular-progress-bar__negative_1ckn0 {
|
|
127
127
|
stroke: var(--circular-progress-bar-negative-color);
|
|
128
|
-
} .circular-progress-
|
|
128
|
+
} .circular-progress-bar__backgroundCircle_1ckn0 {
|
|
129
129
|
stroke: var(--circular-progress-bar-stroke-color)
|
|
130
|
-
} .circular-progress-
|
|
130
|
+
} .circular-progress-bar__backgroundCircle_1ckn0.circular-progress-bar__stroke_1ckn0 {
|
|
131
131
|
stroke: transparent;
|
|
132
|
-
} .circular-progress-
|
|
132
|
+
} .circular-progress-bar__progressCircle_1ckn0 {
|
|
133
133
|
stroke-linecap: round;
|
|
134
|
-
} .circular-progress-
|
|
134
|
+
} .circular-progress-bar__iconWrapper_1ckn0 {
|
|
135
135
|
display: flex;
|
|
136
136
|
align-items: center;
|
|
137
137
|
justify-content: center
|
|
138
|
-
} .circular-progress-
|
|
138
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__xxl_1ckn0 {
|
|
139
139
|
max-width: 64px;
|
|
140
140
|
max-height: 64px;
|
|
141
|
-
} .circular-progress-
|
|
141
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__xl_1ckn0 {
|
|
142
142
|
max-width: 64px;
|
|
143
143
|
max-height: 64px;
|
|
144
|
-
} .circular-progress-
|
|
144
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__l_1ckn0 {
|
|
145
145
|
max-width: 48px;
|
|
146
146
|
max-height: 48px;
|
|
147
|
-
} .circular-progress-
|
|
147
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__m_1ckn0 {
|
|
148
148
|
max-width: 36px;
|
|
149
149
|
max-height: 36px;
|
|
150
|
-
} .circular-progress-
|
|
150
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__s_1ckn0 {
|
|
151
151
|
max-width: 24px;
|
|
152
152
|
max-height: 24px;
|
|
153
|
-
} .circular-progress-
|
|
153
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__xs_1ckn0 {
|
|
154
154
|
max-width: 16px;
|
|
155
155
|
max-height: 16px;
|
|
156
|
-
} .circular-progress-
|
|
156
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-tertiary_1ckn0 {
|
|
157
157
|
color: var(--color-light-neutral-500);
|
|
158
|
-
} .circular-progress-
|
|
158
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-positive_1ckn0 {
|
|
159
159
|
color: var(--color-light-status-positive);
|
|
160
|
-
} .circular-progress-
|
|
160
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-negative_1ckn0 {
|
|
161
161
|
color: var(--color-light-status-negative);
|
|
162
|
-
} .circular-progress-
|
|
162
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-primary-inverted_1ckn0 {
|
|
163
163
|
color: var(--color-light-neutral-1500-inverted);
|
|
164
|
-
} .circular-progress-
|
|
164
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-primary_1ckn0 {
|
|
165
165
|
color: var(--color-light-neutral-1500);
|
|
166
|
-
} .circular-progress-
|
|
166
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-secondary_1ckn0 {
|
|
167
167
|
color: var(--color-light-neutral-700);
|
|
168
|
-
} .circular-progress-
|
|
168
|
+
} .circular-progress-bar__icon_1ckn0 {
|
|
169
169
|
width: 100%;
|
|
170
170
|
height: 100%;
|
|
171
171
|
}
|
package/index.js
CHANGED
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var Component = require('./Component.js');
|
|
6
|
-
require('tslib');
|
|
7
|
-
require('react');
|
|
8
|
-
require('classnames');
|
|
9
|
-
require('@alfalab/core-components-typography');
|
|
10
|
-
require('./consts.js');
|
|
11
6
|
|
|
12
7
|
|
|
13
8
|
|
package/modern/Component.js
CHANGED
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
4
4
|
import { STROKE, SIZES, TYPOGRAPHY_COLOR, VIEW_TITLE, VIEW_TEXT } from './consts.js';
|
|
5
5
|
|
|
6
|
-
const styles = {"component":"circular-progress-
|
|
6
|
+
const styles = {"component":"circular-progress-bar__component_1ckn0","bg-positive":"circular-progress-bar__bg-positive_1ckn0","bg-negative":"circular-progress-bar__bg-negative_1ckn0","svg":"circular-progress-bar__svg_1ckn0","title":"circular-progress-bar__title_1ckn0","subtitle":"circular-progress-bar__subtitle_1ckn0","labelWrapper":"circular-progress-bar__labelWrapper_1ckn0","label":"circular-progress-bar__label_1ckn0","typography":"circular-progress-bar__typography_1ckn0","xxl":"circular-progress-bar__xxl_1ckn0","xl":"circular-progress-bar__xl_1ckn0","l":"circular-progress-bar__l_1ckn0","m":"circular-progress-bar__m_1ckn0","s":"circular-progress-bar__s_1ckn0","xs":"circular-progress-bar__xs_1ckn0","backgroundCircle":"circular-progress-bar__backgroundCircle_1ckn0","progressCircle":"circular-progress-bar__progressCircle_1ckn0","positive":"circular-progress-bar__positive_1ckn0","negative":"circular-progress-bar__negative_1ckn0","stroke":"circular-progress-bar__stroke_1ckn0","iconWrapper":"circular-progress-bar__iconWrapper_1ckn0","icon-tertiary":"circular-progress-bar__icon-tertiary_1ckn0","icon-positive":"circular-progress-bar__icon-positive_1ckn0","icon-negative":"circular-progress-bar__icon-negative_1ckn0","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_1ckn0","icon-primary":"circular-progress-bar__icon-primary_1ckn0","icon-secondary":"circular-progress-bar__icon-secondary_1ckn0","icon":"circular-progress-bar__icon_1ckn0"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
/**
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 30xqn */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-1500: #0e0e0e;
|
|
@@ -37,135 +37,135 @@
|
|
|
37
37
|
/* theme */
|
|
38
38
|
--circular-progress-bar-font-family: var(--font-family-system);
|
|
39
39
|
--circular-progress-bar-font-weight: 600;
|
|
40
|
-
} .circular-progress-
|
|
40
|
+
} .circular-progress-bar__component_1ckn0 {
|
|
41
41
|
position: relative;
|
|
42
42
|
display: flex;
|
|
43
43
|
justify-content: center;
|
|
44
44
|
align-items: center;
|
|
45
45
|
border-radius: var(--border-radius-pill)
|
|
46
|
-
} .circular-progress-
|
|
46
|
+
} .circular-progress-bar__component_1ckn0.circular-progress-bar__bg-positive_1ckn0 {
|
|
47
47
|
background: var(--circular-progress-bar-positive-color);
|
|
48
|
-
} .circular-progress-
|
|
48
|
+
} .circular-progress-bar__component_1ckn0.circular-progress-bar__bg-negative_1ckn0 {
|
|
49
49
|
background: var(--circular-progress-bar-negative-color);
|
|
50
|
-
} .circular-progress-
|
|
50
|
+
} .circular-progress-bar__svg_1ckn0 {
|
|
51
51
|
display: block;
|
|
52
52
|
width: 100%;
|
|
53
|
-
} .circular-progress-
|
|
54
|
-
.circular-progress-
|
|
53
|
+
} .circular-progress-bar__title_1ckn0,
|
|
54
|
+
.circular-progress-bar__subtitle_1ckn0 {
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
word-break: break-word;
|
|
57
57
|
white-space: nowrap;
|
|
58
58
|
text-overflow: ellipsis;
|
|
59
59
|
margin: 0 6px;
|
|
60
|
-
} .circular-progress-
|
|
60
|
+
} .circular-progress-bar__subtitle_1ckn0 {
|
|
61
61
|
max-height: 40px;
|
|
62
|
-
} .circular-progress-
|
|
62
|
+
} .circular-progress-bar__labelWrapper_1ckn0 {
|
|
63
63
|
text-align: center;
|
|
64
64
|
position: absolute;
|
|
65
65
|
top: 50%;
|
|
66
66
|
left: 50%;
|
|
67
67
|
width: 100%;
|
|
68
68
|
transform: translate(-50%, -50%)
|
|
69
|
-
} .circular-progress-
|
|
69
|
+
} .circular-progress-bar__labelWrapper_1ckn0.circular-progress-bar__label_1ckn0 {
|
|
70
70
|
display: flex;
|
|
71
71
|
align-items: center;
|
|
72
72
|
justify-content: center;
|
|
73
|
-
} .circular-progress-
|
|
73
|
+
} .circular-progress-bar__typography_1ckn0 {
|
|
74
74
|
font-feature-settings: 'ss01';
|
|
75
75
|
font-weight: var(--circular-progress-bar-font-weight);
|
|
76
76
|
font-family: var(--circular-progress-bar-font-family);
|
|
77
|
-
} .circular-progress-
|
|
77
|
+
} .circular-progress-bar__xxl_1ckn0 {
|
|
78
78
|
width: 144px;
|
|
79
79
|
height: 144px
|
|
80
|
-
} .circular-progress-
|
|
80
|
+
} .circular-progress-bar__xxl_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
81
81
|
max-width: 128px;
|
|
82
|
-
} .circular-progress-
|
|
82
|
+
} .circular-progress-bar__xxl_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
83
83
|
max-height: 32px;
|
|
84
|
-
} .circular-progress-
|
|
84
|
+
} .circular-progress-bar__xl_1ckn0 {
|
|
85
85
|
width: 128px;
|
|
86
86
|
height: 128px
|
|
87
|
-
} .circular-progress-
|
|
87
|
+
} .circular-progress-bar__xl_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
88
88
|
max-width: 108px;
|
|
89
|
-
} .circular-progress-
|
|
89
|
+
} .circular-progress-bar__xl_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
90
90
|
max-height: 32px;
|
|
91
|
-
} .circular-progress-
|
|
91
|
+
} .circular-progress-bar__l_1ckn0 {
|
|
92
92
|
width: 80px;
|
|
93
93
|
height: 80px
|
|
94
|
-
} .circular-progress-
|
|
94
|
+
} .circular-progress-bar__l_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
95
95
|
max-width: 64px;
|
|
96
|
-
} .circular-progress-
|
|
96
|
+
} .circular-progress-bar__l_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
97
97
|
max-height: 24px;
|
|
98
|
-
} .circular-progress-
|
|
98
|
+
} .circular-progress-bar__m_1ckn0 {
|
|
99
99
|
width: 64px;
|
|
100
100
|
height: 64px
|
|
101
|
-
} .circular-progress-
|
|
101
|
+
} .circular-progress-bar__m_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
102
102
|
max-width: 48px;
|
|
103
|
-
} .circular-progress-
|
|
103
|
+
} .circular-progress-bar__m_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
104
104
|
max-height: 16px;
|
|
105
105
|
margin: 0;
|
|
106
|
-
} .circular-progress-
|
|
106
|
+
} .circular-progress-bar__s_1ckn0 {
|
|
107
107
|
width: 48px;
|
|
108
108
|
height: 48px
|
|
109
|
-
} .circular-progress-
|
|
109
|
+
} .circular-progress-bar__s_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
110
110
|
max-width: 40px;
|
|
111
|
-
} .circular-progress-
|
|
111
|
+
} .circular-progress-bar__s_1ckn0 .circular-progress-bar__title_1ckn0 {
|
|
112
112
|
max-height: 16px;
|
|
113
113
|
margin: 0;
|
|
114
|
-
} .circular-progress-
|
|
114
|
+
} .circular-progress-bar__xs_1ckn0 {
|
|
115
115
|
width: 24px;
|
|
116
116
|
height: 24px
|
|
117
|
-
} .circular-progress-
|
|
117
|
+
} .circular-progress-bar__xs_1ckn0 .circular-progress-bar__labelWrapper_1ckn0 {
|
|
118
118
|
max-width: 24px;
|
|
119
|
-
} .circular-progress-
|
|
120
|
-
.circular-progress-
|
|
119
|
+
} .circular-progress-bar__backgroundCircle_1ckn0,
|
|
120
|
+
.circular-progress-bar__progressCircle_1ckn0 {
|
|
121
121
|
width: 100%;
|
|
122
122
|
height: 100%;
|
|
123
123
|
fill: transparent;
|
|
124
|
-
} .circular-progress-
|
|
124
|
+
} .circular-progress-bar__positive_1ckn0 {
|
|
125
125
|
stroke: var(--circular-progress-bar-positive-color);
|
|
126
|
-
} .circular-progress-
|
|
126
|
+
} .circular-progress-bar__negative_1ckn0 {
|
|
127
127
|
stroke: var(--circular-progress-bar-negative-color);
|
|
128
|
-
} .circular-progress-
|
|
128
|
+
} .circular-progress-bar__backgroundCircle_1ckn0 {
|
|
129
129
|
stroke: var(--circular-progress-bar-stroke-color)
|
|
130
|
-
} .circular-progress-
|
|
130
|
+
} .circular-progress-bar__backgroundCircle_1ckn0.circular-progress-bar__stroke_1ckn0 {
|
|
131
131
|
stroke: transparent;
|
|
132
|
-
} .circular-progress-
|
|
132
|
+
} .circular-progress-bar__progressCircle_1ckn0 {
|
|
133
133
|
stroke-linecap: round;
|
|
134
|
-
} .circular-progress-
|
|
134
|
+
} .circular-progress-bar__iconWrapper_1ckn0 {
|
|
135
135
|
display: flex;
|
|
136
136
|
align-items: center;
|
|
137
137
|
justify-content: center
|
|
138
|
-
} .circular-progress-
|
|
138
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__xxl_1ckn0 {
|
|
139
139
|
max-width: 64px;
|
|
140
140
|
max-height: 64px;
|
|
141
|
-
} .circular-progress-
|
|
141
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__xl_1ckn0 {
|
|
142
142
|
max-width: 64px;
|
|
143
143
|
max-height: 64px;
|
|
144
|
-
} .circular-progress-
|
|
144
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__l_1ckn0 {
|
|
145
145
|
max-width: 48px;
|
|
146
146
|
max-height: 48px;
|
|
147
|
-
} .circular-progress-
|
|
147
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__m_1ckn0 {
|
|
148
148
|
max-width: 36px;
|
|
149
149
|
max-height: 36px;
|
|
150
|
-
} .circular-progress-
|
|
150
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__s_1ckn0 {
|
|
151
151
|
max-width: 24px;
|
|
152
152
|
max-height: 24px;
|
|
153
|
-
} .circular-progress-
|
|
153
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__xs_1ckn0 {
|
|
154
154
|
max-width: 16px;
|
|
155
155
|
max-height: 16px;
|
|
156
|
-
} .circular-progress-
|
|
156
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-tertiary_1ckn0 {
|
|
157
157
|
color: var(--color-light-neutral-500);
|
|
158
|
-
} .circular-progress-
|
|
158
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-positive_1ckn0 {
|
|
159
159
|
color: var(--color-light-status-positive);
|
|
160
|
-
} .circular-progress-
|
|
160
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-negative_1ckn0 {
|
|
161
161
|
color: var(--color-light-status-negative);
|
|
162
|
-
} .circular-progress-
|
|
162
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-primary-inverted_1ckn0 {
|
|
163
163
|
color: var(--color-light-neutral-1500-inverted);
|
|
164
|
-
} .circular-progress-
|
|
164
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-primary_1ckn0 {
|
|
165
165
|
color: var(--color-light-neutral-1500);
|
|
166
|
-
} .circular-progress-
|
|
166
|
+
} .circular-progress-bar__iconWrapper_1ckn0.circular-progress-bar__icon-secondary_1ckn0 {
|
|
167
167
|
color: var(--color-light-neutral-700);
|
|
168
|
-
} .circular-progress-
|
|
168
|
+
} .circular-progress-bar__icon_1ckn0 {
|
|
169
169
|
width: 100%;
|
|
170
170
|
height: 100%;
|
|
171
171
|
}
|
package/modern/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-circular-progress-bar",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@alfalab/core-components-typography": "^4.
|
|
14
|
+
"@alfalab/core-components-typography": "^4.5.0",
|
|
15
15
|
"classnames": "^2.3.1",
|
|
16
16
|
"tslib": "^2.4.0"
|
|
17
17
|
},
|