@alfalab/core-components-circular-progress-bar 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component.js +1 -1
- package/esm/Component.js +1 -1
- package/esm/index.css +49 -49
- package/index.css +49 -49
- package/modern/Component.js +1 -1
- package/modern/index.css +49 -49
- package/package.json +2 -2
package/Component.js
CHANGED
|
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
14
14
|
|
|
15
|
-
var styles = {"component":"circular-progress-
|
|
15
|
+
var styles = {"component":"circular-progress-bar__component_q7chu","svg":"circular-progress-bar__svg_q7chu","title":"circular-progress-bar__title_q7chu","subtitle":"circular-progress-bar__subtitle_q7chu","labelWrapper":"circular-progress-bar__labelWrapper_q7chu","label":"circular-progress-bar__label_q7chu","typography":"circular-progress-bar__typography_q7chu","xxl":"circular-progress-bar__xxl_q7chu","xl":"circular-progress-bar__xl_q7chu","l":"circular-progress-bar__l_q7chu","m":"circular-progress-bar__m_q7chu","s":"circular-progress-bar__s_q7chu","xs":"circular-progress-bar__xs_q7chu","backgroundCircle":"circular-progress-bar__backgroundCircle_q7chu","progressCircle":"circular-progress-bar__progressCircle_q7chu","positive":"circular-progress-bar__positive_q7chu","negative":"circular-progress-bar__negative_q7chu","stroke":"circular-progress-bar__stroke_q7chu","bg-positive":"circular-progress-bar__bg-positive_q7chu","bg-negative":"circular-progress-bar__bg-negative_q7chu","iconWrapper":"circular-progress-bar__iconWrapper_q7chu","icon-tertiary":"circular-progress-bar__icon-tertiary_q7chu","icon-positive":"circular-progress-bar__icon-positive_q7chu","icon-negative":"circular-progress-bar__icon-negative_q7chu","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_q7chu","icon-primary":"circular-progress-bar__icon-primary_q7chu","icon-secondary":"circular-progress-bar__icon-secondary_q7chu","icon":"circular-progress-bar__icon_q7chu"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var SIZES = {
|
package/esm/Component.js
CHANGED
|
@@ -3,7 +3,7 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
5
5
|
|
|
6
|
-
var styles = {"component":"circular-progress-
|
|
6
|
+
var styles = {"component":"circular-progress-bar__component_q7chu","svg":"circular-progress-bar__svg_q7chu","title":"circular-progress-bar__title_q7chu","subtitle":"circular-progress-bar__subtitle_q7chu","labelWrapper":"circular-progress-bar__labelWrapper_q7chu","label":"circular-progress-bar__label_q7chu","typography":"circular-progress-bar__typography_q7chu","xxl":"circular-progress-bar__xxl_q7chu","xl":"circular-progress-bar__xl_q7chu","l":"circular-progress-bar__l_q7chu","m":"circular-progress-bar__m_q7chu","s":"circular-progress-bar__s_q7chu","xs":"circular-progress-bar__xs_q7chu","backgroundCircle":"circular-progress-bar__backgroundCircle_q7chu","progressCircle":"circular-progress-bar__progressCircle_q7chu","positive":"circular-progress-bar__positive_q7chu","negative":"circular-progress-bar__negative_q7chu","stroke":"circular-progress-bar__stroke_q7chu","bg-positive":"circular-progress-bar__bg-positive_q7chu","bg-negative":"circular-progress-bar__bg-negative_q7chu","iconWrapper":"circular-progress-bar__iconWrapper_q7chu","icon-tertiary":"circular-progress-bar__icon-tertiary_q7chu","icon-positive":"circular-progress-bar__icon-positive_q7chu","icon-negative":"circular-progress-bar__icon-negative_q7chu","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_q7chu","icon-primary":"circular-progress-bar__icon-primary_q7chu","icon-secondary":"circular-progress-bar__icon-secondary_q7chu","icon":"circular-progress-bar__icon_q7chu"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var SIZES = {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1a5wr */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-primary: #dcdcdd;
|
|
@@ -36,134 +36,134 @@
|
|
|
36
36
|
/* theme */
|
|
37
37
|
--circular-progress-bar-font-family: var(--font-family-system);
|
|
38
38
|
--circular-progress-bar-font-weight: 600;
|
|
39
|
-
} .circular-progress-
|
|
39
|
+
} .circular-progress-bar__component_q7chu {
|
|
40
40
|
position: relative;
|
|
41
41
|
display: flex;
|
|
42
42
|
justify-content: center;
|
|
43
43
|
align-items: center;
|
|
44
|
-
} .circular-progress-
|
|
44
|
+
} .circular-progress-bar__svg_q7chu {
|
|
45
45
|
display: block;
|
|
46
46
|
width: 100%;
|
|
47
|
-
} .circular-progress-
|
|
48
|
-
.circular-progress-
|
|
47
|
+
} .circular-progress-bar__title_q7chu,
|
|
48
|
+
.circular-progress-bar__subtitle_q7chu {
|
|
49
49
|
overflow: hidden;
|
|
50
50
|
word-break: break-word;
|
|
51
51
|
white-space: nowrap;
|
|
52
52
|
text-overflow: ellipsis;
|
|
53
53
|
margin: 0 6px;
|
|
54
|
-
} .circular-progress-
|
|
54
|
+
} .circular-progress-bar__subtitle_q7chu {
|
|
55
55
|
max-height: 40px;
|
|
56
|
-
} .circular-progress-
|
|
56
|
+
} .circular-progress-bar__labelWrapper_q7chu {
|
|
57
57
|
text-align: center;
|
|
58
58
|
position: absolute;
|
|
59
59
|
top: 50%;
|
|
60
60
|
left: 50%;
|
|
61
61
|
width: 100%;
|
|
62
62
|
transform: translate(-50%, -50%)
|
|
63
|
-
} .circular-progress-
|
|
63
|
+
} .circular-progress-bar__labelWrapper_q7chu.circular-progress-bar__label_q7chu {
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
|
-
} .circular-progress-
|
|
67
|
+
} .circular-progress-bar__typography_q7chu {
|
|
68
68
|
font-feature-settings: 'ss01';
|
|
69
69
|
font-weight: var(--circular-progress-bar-font-weight);
|
|
70
70
|
font-family: var(--circular-progress-bar-font-family);
|
|
71
|
-
} .circular-progress-
|
|
71
|
+
} .circular-progress-bar__xxl_q7chu {
|
|
72
72
|
width: 144px;
|
|
73
73
|
height: 144px
|
|
74
|
-
} .circular-progress-
|
|
74
|
+
} .circular-progress-bar__xxl_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
75
75
|
max-width: 128px;
|
|
76
|
-
} .circular-progress-
|
|
76
|
+
} .circular-progress-bar__xxl_q7chu .circular-progress-bar__title_q7chu {
|
|
77
77
|
max-height: 32px;
|
|
78
|
-
} .circular-progress-
|
|
78
|
+
} .circular-progress-bar__xl_q7chu {
|
|
79
79
|
width: 128px;
|
|
80
80
|
height: 128px
|
|
81
|
-
} .circular-progress-
|
|
81
|
+
} .circular-progress-bar__xl_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
82
82
|
max-width: 108px;
|
|
83
|
-
} .circular-progress-
|
|
83
|
+
} .circular-progress-bar__xl_q7chu .circular-progress-bar__title_q7chu {
|
|
84
84
|
max-height: 32px;
|
|
85
|
-
} .circular-progress-
|
|
85
|
+
} .circular-progress-bar__l_q7chu {
|
|
86
86
|
width: 80px;
|
|
87
87
|
height: 80px
|
|
88
|
-
} .circular-progress-
|
|
88
|
+
} .circular-progress-bar__l_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
89
89
|
max-width: 64px;
|
|
90
|
-
} .circular-progress-
|
|
90
|
+
} .circular-progress-bar__l_q7chu .circular-progress-bar__title_q7chu {
|
|
91
91
|
max-height: 24px;
|
|
92
|
-
} .circular-progress-
|
|
92
|
+
} .circular-progress-bar__m_q7chu {
|
|
93
93
|
width: 64px;
|
|
94
94
|
height: 64px
|
|
95
|
-
} .circular-progress-
|
|
95
|
+
} .circular-progress-bar__m_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
96
96
|
max-width: 48px;
|
|
97
|
-
} .circular-progress-
|
|
97
|
+
} .circular-progress-bar__m_q7chu .circular-progress-bar__title_q7chu {
|
|
98
98
|
max-height: 16px;
|
|
99
99
|
margin: 0;
|
|
100
|
-
} .circular-progress-
|
|
100
|
+
} .circular-progress-bar__s_q7chu {
|
|
101
101
|
width: 48px;
|
|
102
102
|
height: 48px
|
|
103
|
-
} .circular-progress-
|
|
103
|
+
} .circular-progress-bar__s_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
104
104
|
max-width: 40px;
|
|
105
|
-
} .circular-progress-
|
|
105
|
+
} .circular-progress-bar__s_q7chu .circular-progress-bar__title_q7chu {
|
|
106
106
|
max-height: 16px;
|
|
107
107
|
margin: 0;
|
|
108
|
-
} .circular-progress-
|
|
108
|
+
} .circular-progress-bar__xs_q7chu {
|
|
109
109
|
width: 24px;
|
|
110
110
|
height: 24px
|
|
111
|
-
} .circular-progress-
|
|
111
|
+
} .circular-progress-bar__xs_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
112
112
|
max-width: 24px;
|
|
113
|
-
} .circular-progress-
|
|
114
|
-
.circular-progress-
|
|
113
|
+
} .circular-progress-bar__backgroundCircle_q7chu,
|
|
114
|
+
.circular-progress-bar__progressCircle_q7chu {
|
|
115
115
|
width: 100%;
|
|
116
116
|
height: 100%;
|
|
117
117
|
fill: transparent;
|
|
118
|
-
} .circular-progress-
|
|
118
|
+
} .circular-progress-bar__positive_q7chu {
|
|
119
119
|
stroke: var(--circular-progress-bar-positive-color);
|
|
120
|
-
} .circular-progress-
|
|
120
|
+
} .circular-progress-bar__negative_q7chu {
|
|
121
121
|
stroke: var(--circular-progress-bar-negative-color);
|
|
122
|
-
} .circular-progress-
|
|
122
|
+
} .circular-progress-bar__backgroundCircle_q7chu {
|
|
123
123
|
stroke: var(--circular-progress-bar-stroke-color)
|
|
124
|
-
} .circular-progress-
|
|
124
|
+
} .circular-progress-bar__backgroundCircle_q7chu.circular-progress-bar__stroke_q7chu {
|
|
125
125
|
stroke: transparent;
|
|
126
|
-
} .circular-progress-
|
|
126
|
+
} .circular-progress-bar__progressCircle_q7chu {
|
|
127
127
|
stroke-linecap: round
|
|
128
|
-
} .circular-progress-
|
|
128
|
+
} .circular-progress-bar__progressCircle_q7chu.circular-progress-bar__bg-positive_q7chu {
|
|
129
129
|
fill: var(--circular-progress-bar-positive-color);
|
|
130
|
-
} .circular-progress-
|
|
130
|
+
} .circular-progress-bar__progressCircle_q7chu.circular-progress-bar__bg-negative_q7chu {
|
|
131
131
|
fill: var(--circular-progress-bar-negative-color);
|
|
132
|
-
} .circular-progress-
|
|
132
|
+
} .circular-progress-bar__iconWrapper_q7chu {
|
|
133
133
|
display: flex;
|
|
134
134
|
align-items: center;
|
|
135
135
|
justify-content: center
|
|
136
|
-
} .circular-progress-
|
|
136
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__xxl_q7chu {
|
|
137
137
|
max-width: 64px;
|
|
138
138
|
max-height: 64px;
|
|
139
|
-
} .circular-progress-
|
|
139
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__xl_q7chu {
|
|
140
140
|
max-width: 64px;
|
|
141
141
|
max-height: 64px;
|
|
142
|
-
} .circular-progress-
|
|
142
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__l_q7chu {
|
|
143
143
|
max-width: 48px;
|
|
144
144
|
max-height: 48px;
|
|
145
|
-
} .circular-progress-
|
|
145
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__m_q7chu {
|
|
146
146
|
max-width: 36px;
|
|
147
147
|
max-height: 36px;
|
|
148
|
-
} .circular-progress-
|
|
148
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__s_q7chu {
|
|
149
149
|
max-width: 24px;
|
|
150
150
|
max-height: 24px;
|
|
151
|
-
} .circular-progress-
|
|
151
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__xs_q7chu {
|
|
152
152
|
max-width: 16px;
|
|
153
153
|
max-height: 16px;
|
|
154
|
-
} .circular-progress-
|
|
154
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-tertiary_q7chu {
|
|
155
155
|
color: var(--color-light-graphic-tertiary);
|
|
156
|
-
} .circular-progress-
|
|
156
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-positive_q7chu {
|
|
157
157
|
color: var(--color-light-graphic-positive);
|
|
158
|
-
} .circular-progress-
|
|
158
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-negative_q7chu {
|
|
159
159
|
color: var(--color-light-graphic-negative);
|
|
160
|
-
} .circular-progress-
|
|
160
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-primary-inverted_q7chu {
|
|
161
161
|
color: var(--color-light-graphic-primary-inverted);
|
|
162
|
-
} .circular-progress-
|
|
162
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-primary_q7chu {
|
|
163
163
|
color: var(--color-light-graphic-primary);
|
|
164
|
-
} .circular-progress-
|
|
164
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-secondary_q7chu {
|
|
165
165
|
color: var(--color-light-graphic-secondary);
|
|
166
|
-
} .circular-progress-
|
|
166
|
+
} .circular-progress-bar__icon_q7chu {
|
|
167
167
|
width: 100%;
|
|
168
168
|
height: 100%;
|
|
169
169
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1a5wr */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-primary: #dcdcdd;
|
|
@@ -36,134 +36,134 @@
|
|
|
36
36
|
/* theme */
|
|
37
37
|
--circular-progress-bar-font-family: var(--font-family-system);
|
|
38
38
|
--circular-progress-bar-font-weight: 600;
|
|
39
|
-
} .circular-progress-
|
|
39
|
+
} .circular-progress-bar__component_q7chu {
|
|
40
40
|
position: relative;
|
|
41
41
|
display: flex;
|
|
42
42
|
justify-content: center;
|
|
43
43
|
align-items: center;
|
|
44
|
-
} .circular-progress-
|
|
44
|
+
} .circular-progress-bar__svg_q7chu {
|
|
45
45
|
display: block;
|
|
46
46
|
width: 100%;
|
|
47
|
-
} .circular-progress-
|
|
48
|
-
.circular-progress-
|
|
47
|
+
} .circular-progress-bar__title_q7chu,
|
|
48
|
+
.circular-progress-bar__subtitle_q7chu {
|
|
49
49
|
overflow: hidden;
|
|
50
50
|
word-break: break-word;
|
|
51
51
|
white-space: nowrap;
|
|
52
52
|
text-overflow: ellipsis;
|
|
53
53
|
margin: 0 6px;
|
|
54
|
-
} .circular-progress-
|
|
54
|
+
} .circular-progress-bar__subtitle_q7chu {
|
|
55
55
|
max-height: 40px;
|
|
56
|
-
} .circular-progress-
|
|
56
|
+
} .circular-progress-bar__labelWrapper_q7chu {
|
|
57
57
|
text-align: center;
|
|
58
58
|
position: absolute;
|
|
59
59
|
top: 50%;
|
|
60
60
|
left: 50%;
|
|
61
61
|
width: 100%;
|
|
62
62
|
transform: translate(-50%, -50%)
|
|
63
|
-
} .circular-progress-
|
|
63
|
+
} .circular-progress-bar__labelWrapper_q7chu.circular-progress-bar__label_q7chu {
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
|
-
} .circular-progress-
|
|
67
|
+
} .circular-progress-bar__typography_q7chu {
|
|
68
68
|
font-feature-settings: 'ss01';
|
|
69
69
|
font-weight: var(--circular-progress-bar-font-weight);
|
|
70
70
|
font-family: var(--circular-progress-bar-font-family);
|
|
71
|
-
} .circular-progress-
|
|
71
|
+
} .circular-progress-bar__xxl_q7chu {
|
|
72
72
|
width: 144px;
|
|
73
73
|
height: 144px
|
|
74
|
-
} .circular-progress-
|
|
74
|
+
} .circular-progress-bar__xxl_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
75
75
|
max-width: 128px;
|
|
76
|
-
} .circular-progress-
|
|
76
|
+
} .circular-progress-bar__xxl_q7chu .circular-progress-bar__title_q7chu {
|
|
77
77
|
max-height: 32px;
|
|
78
|
-
} .circular-progress-
|
|
78
|
+
} .circular-progress-bar__xl_q7chu {
|
|
79
79
|
width: 128px;
|
|
80
80
|
height: 128px
|
|
81
|
-
} .circular-progress-
|
|
81
|
+
} .circular-progress-bar__xl_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
82
82
|
max-width: 108px;
|
|
83
|
-
} .circular-progress-
|
|
83
|
+
} .circular-progress-bar__xl_q7chu .circular-progress-bar__title_q7chu {
|
|
84
84
|
max-height: 32px;
|
|
85
|
-
} .circular-progress-
|
|
85
|
+
} .circular-progress-bar__l_q7chu {
|
|
86
86
|
width: 80px;
|
|
87
87
|
height: 80px
|
|
88
|
-
} .circular-progress-
|
|
88
|
+
} .circular-progress-bar__l_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
89
89
|
max-width: 64px;
|
|
90
|
-
} .circular-progress-
|
|
90
|
+
} .circular-progress-bar__l_q7chu .circular-progress-bar__title_q7chu {
|
|
91
91
|
max-height: 24px;
|
|
92
|
-
} .circular-progress-
|
|
92
|
+
} .circular-progress-bar__m_q7chu {
|
|
93
93
|
width: 64px;
|
|
94
94
|
height: 64px
|
|
95
|
-
} .circular-progress-
|
|
95
|
+
} .circular-progress-bar__m_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
96
96
|
max-width: 48px;
|
|
97
|
-
} .circular-progress-
|
|
97
|
+
} .circular-progress-bar__m_q7chu .circular-progress-bar__title_q7chu {
|
|
98
98
|
max-height: 16px;
|
|
99
99
|
margin: 0;
|
|
100
|
-
} .circular-progress-
|
|
100
|
+
} .circular-progress-bar__s_q7chu {
|
|
101
101
|
width: 48px;
|
|
102
102
|
height: 48px
|
|
103
|
-
} .circular-progress-
|
|
103
|
+
} .circular-progress-bar__s_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
104
104
|
max-width: 40px;
|
|
105
|
-
} .circular-progress-
|
|
105
|
+
} .circular-progress-bar__s_q7chu .circular-progress-bar__title_q7chu {
|
|
106
106
|
max-height: 16px;
|
|
107
107
|
margin: 0;
|
|
108
|
-
} .circular-progress-
|
|
108
|
+
} .circular-progress-bar__xs_q7chu {
|
|
109
109
|
width: 24px;
|
|
110
110
|
height: 24px
|
|
111
|
-
} .circular-progress-
|
|
111
|
+
} .circular-progress-bar__xs_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
112
112
|
max-width: 24px;
|
|
113
|
-
} .circular-progress-
|
|
114
|
-
.circular-progress-
|
|
113
|
+
} .circular-progress-bar__backgroundCircle_q7chu,
|
|
114
|
+
.circular-progress-bar__progressCircle_q7chu {
|
|
115
115
|
width: 100%;
|
|
116
116
|
height: 100%;
|
|
117
117
|
fill: transparent;
|
|
118
|
-
} .circular-progress-
|
|
118
|
+
} .circular-progress-bar__positive_q7chu {
|
|
119
119
|
stroke: var(--circular-progress-bar-positive-color);
|
|
120
|
-
} .circular-progress-
|
|
120
|
+
} .circular-progress-bar__negative_q7chu {
|
|
121
121
|
stroke: var(--circular-progress-bar-negative-color);
|
|
122
|
-
} .circular-progress-
|
|
122
|
+
} .circular-progress-bar__backgroundCircle_q7chu {
|
|
123
123
|
stroke: var(--circular-progress-bar-stroke-color)
|
|
124
|
-
} .circular-progress-
|
|
124
|
+
} .circular-progress-bar__backgroundCircle_q7chu.circular-progress-bar__stroke_q7chu {
|
|
125
125
|
stroke: transparent;
|
|
126
|
-
} .circular-progress-
|
|
126
|
+
} .circular-progress-bar__progressCircle_q7chu {
|
|
127
127
|
stroke-linecap: round
|
|
128
|
-
} .circular-progress-
|
|
128
|
+
} .circular-progress-bar__progressCircle_q7chu.circular-progress-bar__bg-positive_q7chu {
|
|
129
129
|
fill: var(--circular-progress-bar-positive-color);
|
|
130
|
-
} .circular-progress-
|
|
130
|
+
} .circular-progress-bar__progressCircle_q7chu.circular-progress-bar__bg-negative_q7chu {
|
|
131
131
|
fill: var(--circular-progress-bar-negative-color);
|
|
132
|
-
} .circular-progress-
|
|
132
|
+
} .circular-progress-bar__iconWrapper_q7chu {
|
|
133
133
|
display: flex;
|
|
134
134
|
align-items: center;
|
|
135
135
|
justify-content: center
|
|
136
|
-
} .circular-progress-
|
|
136
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__xxl_q7chu {
|
|
137
137
|
max-width: 64px;
|
|
138
138
|
max-height: 64px;
|
|
139
|
-
} .circular-progress-
|
|
139
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__xl_q7chu {
|
|
140
140
|
max-width: 64px;
|
|
141
141
|
max-height: 64px;
|
|
142
|
-
} .circular-progress-
|
|
142
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__l_q7chu {
|
|
143
143
|
max-width: 48px;
|
|
144
144
|
max-height: 48px;
|
|
145
|
-
} .circular-progress-
|
|
145
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__m_q7chu {
|
|
146
146
|
max-width: 36px;
|
|
147
147
|
max-height: 36px;
|
|
148
|
-
} .circular-progress-
|
|
148
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__s_q7chu {
|
|
149
149
|
max-width: 24px;
|
|
150
150
|
max-height: 24px;
|
|
151
|
-
} .circular-progress-
|
|
151
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__xs_q7chu {
|
|
152
152
|
max-width: 16px;
|
|
153
153
|
max-height: 16px;
|
|
154
|
-
} .circular-progress-
|
|
154
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-tertiary_q7chu {
|
|
155
155
|
color: var(--color-light-graphic-tertiary);
|
|
156
|
-
} .circular-progress-
|
|
156
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-positive_q7chu {
|
|
157
157
|
color: var(--color-light-graphic-positive);
|
|
158
|
-
} .circular-progress-
|
|
158
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-negative_q7chu {
|
|
159
159
|
color: var(--color-light-graphic-negative);
|
|
160
|
-
} .circular-progress-
|
|
160
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-primary-inverted_q7chu {
|
|
161
161
|
color: var(--color-light-graphic-primary-inverted);
|
|
162
|
-
} .circular-progress-
|
|
162
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-primary_q7chu {
|
|
163
163
|
color: var(--color-light-graphic-primary);
|
|
164
|
-
} .circular-progress-
|
|
164
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-secondary_q7chu {
|
|
165
165
|
color: var(--color-light-graphic-secondary);
|
|
166
|
-
} .circular-progress-
|
|
166
|
+
} .circular-progress-bar__icon_q7chu {
|
|
167
167
|
width: 100%;
|
|
168
168
|
height: 100%;
|
|
169
169
|
}
|
package/modern/Component.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
4
4
|
|
|
5
|
-
const styles = {"component":"circular-progress-
|
|
5
|
+
const styles = {"component":"circular-progress-bar__component_q7chu","svg":"circular-progress-bar__svg_q7chu","title":"circular-progress-bar__title_q7chu","subtitle":"circular-progress-bar__subtitle_q7chu","labelWrapper":"circular-progress-bar__labelWrapper_q7chu","label":"circular-progress-bar__label_q7chu","typography":"circular-progress-bar__typography_q7chu","xxl":"circular-progress-bar__xxl_q7chu","xl":"circular-progress-bar__xl_q7chu","l":"circular-progress-bar__l_q7chu","m":"circular-progress-bar__m_q7chu","s":"circular-progress-bar__s_q7chu","xs":"circular-progress-bar__xs_q7chu","backgroundCircle":"circular-progress-bar__backgroundCircle_q7chu","progressCircle":"circular-progress-bar__progressCircle_q7chu","positive":"circular-progress-bar__positive_q7chu","negative":"circular-progress-bar__negative_q7chu","stroke":"circular-progress-bar__stroke_q7chu","bg-positive":"circular-progress-bar__bg-positive_q7chu","bg-negative":"circular-progress-bar__bg-negative_q7chu","iconWrapper":"circular-progress-bar__iconWrapper_q7chu","icon-tertiary":"circular-progress-bar__icon-tertiary_q7chu","icon-positive":"circular-progress-bar__icon-positive_q7chu","icon-negative":"circular-progress-bar__icon-negative_q7chu","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_q7chu","icon-primary":"circular-progress-bar__icon-primary_q7chu","icon-secondary":"circular-progress-bar__icon-secondary_q7chu","icon":"circular-progress-bar__icon_q7chu"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const SIZES = {
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1a5wr */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-primary: #dcdcdd;
|
|
@@ -36,134 +36,134 @@
|
|
|
36
36
|
/* theme */
|
|
37
37
|
--circular-progress-bar-font-family: var(--font-family-system);
|
|
38
38
|
--circular-progress-bar-font-weight: 600;
|
|
39
|
-
} .circular-progress-
|
|
39
|
+
} .circular-progress-bar__component_q7chu {
|
|
40
40
|
position: relative;
|
|
41
41
|
display: flex;
|
|
42
42
|
justify-content: center;
|
|
43
43
|
align-items: center;
|
|
44
|
-
} .circular-progress-
|
|
44
|
+
} .circular-progress-bar__svg_q7chu {
|
|
45
45
|
display: block;
|
|
46
46
|
width: 100%;
|
|
47
|
-
} .circular-progress-
|
|
48
|
-
.circular-progress-
|
|
47
|
+
} .circular-progress-bar__title_q7chu,
|
|
48
|
+
.circular-progress-bar__subtitle_q7chu {
|
|
49
49
|
overflow: hidden;
|
|
50
50
|
word-break: break-word;
|
|
51
51
|
white-space: nowrap;
|
|
52
52
|
text-overflow: ellipsis;
|
|
53
53
|
margin: 0 6px;
|
|
54
|
-
} .circular-progress-
|
|
54
|
+
} .circular-progress-bar__subtitle_q7chu {
|
|
55
55
|
max-height: 40px;
|
|
56
|
-
} .circular-progress-
|
|
56
|
+
} .circular-progress-bar__labelWrapper_q7chu {
|
|
57
57
|
text-align: center;
|
|
58
58
|
position: absolute;
|
|
59
59
|
top: 50%;
|
|
60
60
|
left: 50%;
|
|
61
61
|
width: 100%;
|
|
62
62
|
transform: translate(-50%, -50%)
|
|
63
|
-
} .circular-progress-
|
|
63
|
+
} .circular-progress-bar__labelWrapper_q7chu.circular-progress-bar__label_q7chu {
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
|
-
} .circular-progress-
|
|
67
|
+
} .circular-progress-bar__typography_q7chu {
|
|
68
68
|
font-feature-settings: 'ss01';
|
|
69
69
|
font-weight: var(--circular-progress-bar-font-weight);
|
|
70
70
|
font-family: var(--circular-progress-bar-font-family);
|
|
71
|
-
} .circular-progress-
|
|
71
|
+
} .circular-progress-bar__xxl_q7chu {
|
|
72
72
|
width: 144px;
|
|
73
73
|
height: 144px
|
|
74
|
-
} .circular-progress-
|
|
74
|
+
} .circular-progress-bar__xxl_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
75
75
|
max-width: 128px;
|
|
76
|
-
} .circular-progress-
|
|
76
|
+
} .circular-progress-bar__xxl_q7chu .circular-progress-bar__title_q7chu {
|
|
77
77
|
max-height: 32px;
|
|
78
|
-
} .circular-progress-
|
|
78
|
+
} .circular-progress-bar__xl_q7chu {
|
|
79
79
|
width: 128px;
|
|
80
80
|
height: 128px
|
|
81
|
-
} .circular-progress-
|
|
81
|
+
} .circular-progress-bar__xl_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
82
82
|
max-width: 108px;
|
|
83
|
-
} .circular-progress-
|
|
83
|
+
} .circular-progress-bar__xl_q7chu .circular-progress-bar__title_q7chu {
|
|
84
84
|
max-height: 32px;
|
|
85
|
-
} .circular-progress-
|
|
85
|
+
} .circular-progress-bar__l_q7chu {
|
|
86
86
|
width: 80px;
|
|
87
87
|
height: 80px
|
|
88
|
-
} .circular-progress-
|
|
88
|
+
} .circular-progress-bar__l_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
89
89
|
max-width: 64px;
|
|
90
|
-
} .circular-progress-
|
|
90
|
+
} .circular-progress-bar__l_q7chu .circular-progress-bar__title_q7chu {
|
|
91
91
|
max-height: 24px;
|
|
92
|
-
} .circular-progress-
|
|
92
|
+
} .circular-progress-bar__m_q7chu {
|
|
93
93
|
width: 64px;
|
|
94
94
|
height: 64px
|
|
95
|
-
} .circular-progress-
|
|
95
|
+
} .circular-progress-bar__m_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
96
96
|
max-width: 48px;
|
|
97
|
-
} .circular-progress-
|
|
97
|
+
} .circular-progress-bar__m_q7chu .circular-progress-bar__title_q7chu {
|
|
98
98
|
max-height: 16px;
|
|
99
99
|
margin: 0;
|
|
100
|
-
} .circular-progress-
|
|
100
|
+
} .circular-progress-bar__s_q7chu {
|
|
101
101
|
width: 48px;
|
|
102
102
|
height: 48px
|
|
103
|
-
} .circular-progress-
|
|
103
|
+
} .circular-progress-bar__s_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
104
104
|
max-width: 40px;
|
|
105
|
-
} .circular-progress-
|
|
105
|
+
} .circular-progress-bar__s_q7chu .circular-progress-bar__title_q7chu {
|
|
106
106
|
max-height: 16px;
|
|
107
107
|
margin: 0;
|
|
108
|
-
} .circular-progress-
|
|
108
|
+
} .circular-progress-bar__xs_q7chu {
|
|
109
109
|
width: 24px;
|
|
110
110
|
height: 24px
|
|
111
|
-
} .circular-progress-
|
|
111
|
+
} .circular-progress-bar__xs_q7chu .circular-progress-bar__labelWrapper_q7chu {
|
|
112
112
|
max-width: 24px;
|
|
113
|
-
} .circular-progress-
|
|
114
|
-
.circular-progress-
|
|
113
|
+
} .circular-progress-bar__backgroundCircle_q7chu,
|
|
114
|
+
.circular-progress-bar__progressCircle_q7chu {
|
|
115
115
|
width: 100%;
|
|
116
116
|
height: 100%;
|
|
117
117
|
fill: transparent;
|
|
118
|
-
} .circular-progress-
|
|
118
|
+
} .circular-progress-bar__positive_q7chu {
|
|
119
119
|
stroke: var(--circular-progress-bar-positive-color);
|
|
120
|
-
} .circular-progress-
|
|
120
|
+
} .circular-progress-bar__negative_q7chu {
|
|
121
121
|
stroke: var(--circular-progress-bar-negative-color);
|
|
122
|
-
} .circular-progress-
|
|
122
|
+
} .circular-progress-bar__backgroundCircle_q7chu {
|
|
123
123
|
stroke: var(--circular-progress-bar-stroke-color)
|
|
124
|
-
} .circular-progress-
|
|
124
|
+
} .circular-progress-bar__backgroundCircle_q7chu.circular-progress-bar__stroke_q7chu {
|
|
125
125
|
stroke: transparent;
|
|
126
|
-
} .circular-progress-
|
|
126
|
+
} .circular-progress-bar__progressCircle_q7chu {
|
|
127
127
|
stroke-linecap: round
|
|
128
|
-
} .circular-progress-
|
|
128
|
+
} .circular-progress-bar__progressCircle_q7chu.circular-progress-bar__bg-positive_q7chu {
|
|
129
129
|
fill: var(--circular-progress-bar-positive-color);
|
|
130
|
-
} .circular-progress-
|
|
130
|
+
} .circular-progress-bar__progressCircle_q7chu.circular-progress-bar__bg-negative_q7chu {
|
|
131
131
|
fill: var(--circular-progress-bar-negative-color);
|
|
132
|
-
} .circular-progress-
|
|
132
|
+
} .circular-progress-bar__iconWrapper_q7chu {
|
|
133
133
|
display: flex;
|
|
134
134
|
align-items: center;
|
|
135
135
|
justify-content: center
|
|
136
|
-
} .circular-progress-
|
|
136
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__xxl_q7chu {
|
|
137
137
|
max-width: 64px;
|
|
138
138
|
max-height: 64px;
|
|
139
|
-
} .circular-progress-
|
|
139
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__xl_q7chu {
|
|
140
140
|
max-width: 64px;
|
|
141
141
|
max-height: 64px;
|
|
142
|
-
} .circular-progress-
|
|
142
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__l_q7chu {
|
|
143
143
|
max-width: 48px;
|
|
144
144
|
max-height: 48px;
|
|
145
|
-
} .circular-progress-
|
|
145
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__m_q7chu {
|
|
146
146
|
max-width: 36px;
|
|
147
147
|
max-height: 36px;
|
|
148
|
-
} .circular-progress-
|
|
148
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__s_q7chu {
|
|
149
149
|
max-width: 24px;
|
|
150
150
|
max-height: 24px;
|
|
151
|
-
} .circular-progress-
|
|
151
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__xs_q7chu {
|
|
152
152
|
max-width: 16px;
|
|
153
153
|
max-height: 16px;
|
|
154
|
-
} .circular-progress-
|
|
154
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-tertiary_q7chu {
|
|
155
155
|
color: var(--color-light-graphic-tertiary);
|
|
156
|
-
} .circular-progress-
|
|
156
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-positive_q7chu {
|
|
157
157
|
color: var(--color-light-graphic-positive);
|
|
158
|
-
} .circular-progress-
|
|
158
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-negative_q7chu {
|
|
159
159
|
color: var(--color-light-graphic-negative);
|
|
160
|
-
} .circular-progress-
|
|
160
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-primary-inverted_q7chu {
|
|
161
161
|
color: var(--color-light-graphic-primary-inverted);
|
|
162
|
-
} .circular-progress-
|
|
162
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-primary_q7chu {
|
|
163
163
|
color: var(--color-light-graphic-primary);
|
|
164
|
-
} .circular-progress-
|
|
164
|
+
} .circular-progress-bar__iconWrapper_q7chu.circular-progress-bar__icon-secondary_q7chu {
|
|
165
165
|
color: var(--color-light-graphic-secondary);
|
|
166
|
-
} .circular-progress-
|
|
166
|
+
} .circular-progress-bar__icon_q7chu {
|
|
167
167
|
width: 100%;
|
|
168
168
|
height: 100%;
|
|
169
169
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-circular-progress-bar",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
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.1.0",
|
|
15
15
|
"classnames": "^2.3.1",
|
|
16
16
|
"tslib": "^2.4.0"
|
|
17
17
|
},
|