@alfalab/core-components-circular-progress-bar 3.0.12 → 3.0.13
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 -5
- package/send-stats.js +0 -82
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_koxwo","svg":"circular-progress-bar__svg_koxwo","title":"circular-progress-bar__title_koxwo","subtitle":"circular-progress-bar__subtitle_koxwo","labelWrapper":"circular-progress-bar__labelWrapper_koxwo","label":"circular-progress-bar__label_koxwo","typography":"circular-progress-bar__typography_koxwo","xxl":"circular-progress-bar__xxl_koxwo","xl":"circular-progress-bar__xl_koxwo","l":"circular-progress-bar__l_koxwo","m":"circular-progress-bar__m_koxwo","s":"circular-progress-bar__s_koxwo","xs":"circular-progress-bar__xs_koxwo","backgroundCircle":"circular-progress-bar__backgroundCircle_koxwo","progressCircle":"circular-progress-bar__progressCircle_koxwo","positive":"circular-progress-bar__positive_koxwo","negative":"circular-progress-bar__negative_koxwo","stroke":"circular-progress-bar__stroke_koxwo","bg-positive":"circular-progress-bar__bg-positive_koxwo","bg-negative":"circular-progress-bar__bg-negative_koxwo","iconWrapper":"circular-progress-bar__iconWrapper_koxwo","icon-tertiary":"circular-progress-bar__icon-tertiary_koxwo","icon-positive":"circular-progress-bar__icon-positive_koxwo","icon-negative":"circular-progress-bar__icon-negative_koxwo","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_koxwo","icon-primary":"circular-progress-bar__icon-primary_koxwo","icon-secondary":"circular-progress-bar__icon-secondary_koxwo","icon":"circular-progress-bar__icon_koxwo"};
|
|
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_koxwo","svg":"circular-progress-bar__svg_koxwo","title":"circular-progress-bar__title_koxwo","subtitle":"circular-progress-bar__subtitle_koxwo","labelWrapper":"circular-progress-bar__labelWrapper_koxwo","label":"circular-progress-bar__label_koxwo","typography":"circular-progress-bar__typography_koxwo","xxl":"circular-progress-bar__xxl_koxwo","xl":"circular-progress-bar__xl_koxwo","l":"circular-progress-bar__l_koxwo","m":"circular-progress-bar__m_koxwo","s":"circular-progress-bar__s_koxwo","xs":"circular-progress-bar__xs_koxwo","backgroundCircle":"circular-progress-bar__backgroundCircle_koxwo","progressCircle":"circular-progress-bar__progressCircle_koxwo","positive":"circular-progress-bar__positive_koxwo","negative":"circular-progress-bar__negative_koxwo","stroke":"circular-progress-bar__stroke_koxwo","bg-positive":"circular-progress-bar__bg-positive_koxwo","bg-negative":"circular-progress-bar__bg-negative_koxwo","iconWrapper":"circular-progress-bar__iconWrapper_koxwo","icon-tertiary":"circular-progress-bar__icon-tertiary_koxwo","icon-positive":"circular-progress-bar__icon-positive_koxwo","icon-negative":"circular-progress-bar__icon-negative_koxwo","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_koxwo","icon-primary":"circular-progress-bar__icon-primary_koxwo","icon-secondary":"circular-progress-bar__icon-secondary_koxwo","icon":"circular-progress-bar__icon_koxwo"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
var SIZES = {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 2fyhb */
|
|
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_koxwo {
|
|
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_koxwo {
|
|
45
45
|
display: block;
|
|
46
46
|
width: 100%;
|
|
47
|
-
} .circular-progress-
|
|
48
|
-
.circular-progress-
|
|
47
|
+
} .circular-progress-bar__title_koxwo,
|
|
48
|
+
.circular-progress-bar__subtitle_koxwo {
|
|
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_koxwo {
|
|
55
55
|
max-height: 40px;
|
|
56
|
-
} .circular-progress-
|
|
56
|
+
} .circular-progress-bar__labelWrapper_koxwo {
|
|
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_koxwo.circular-progress-bar__label_koxwo {
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
|
-
} .circular-progress-
|
|
67
|
+
} .circular-progress-bar__typography_koxwo {
|
|
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_koxwo {
|
|
72
72
|
width: 144px;
|
|
73
73
|
height: 144px
|
|
74
|
-
} .circular-progress-
|
|
74
|
+
} .circular-progress-bar__xxl_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
75
75
|
max-width: 128px;
|
|
76
|
-
} .circular-progress-
|
|
76
|
+
} .circular-progress-bar__xxl_koxwo .circular-progress-bar__title_koxwo {
|
|
77
77
|
max-height: 32px;
|
|
78
|
-
} .circular-progress-
|
|
78
|
+
} .circular-progress-bar__xl_koxwo {
|
|
79
79
|
width: 128px;
|
|
80
80
|
height: 128px
|
|
81
|
-
} .circular-progress-
|
|
81
|
+
} .circular-progress-bar__xl_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
82
82
|
max-width: 108px;
|
|
83
|
-
} .circular-progress-
|
|
83
|
+
} .circular-progress-bar__xl_koxwo .circular-progress-bar__title_koxwo {
|
|
84
84
|
max-height: 32px;
|
|
85
|
-
} .circular-progress-
|
|
85
|
+
} .circular-progress-bar__l_koxwo {
|
|
86
86
|
width: 80px;
|
|
87
87
|
height: 80px
|
|
88
|
-
} .circular-progress-
|
|
88
|
+
} .circular-progress-bar__l_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
89
89
|
max-width: 64px;
|
|
90
|
-
} .circular-progress-
|
|
90
|
+
} .circular-progress-bar__l_koxwo .circular-progress-bar__title_koxwo {
|
|
91
91
|
max-height: 24px;
|
|
92
|
-
} .circular-progress-
|
|
92
|
+
} .circular-progress-bar__m_koxwo {
|
|
93
93
|
width: 64px;
|
|
94
94
|
height: 64px
|
|
95
|
-
} .circular-progress-
|
|
95
|
+
} .circular-progress-bar__m_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
96
96
|
max-width: 48px;
|
|
97
|
-
} .circular-progress-
|
|
97
|
+
} .circular-progress-bar__m_koxwo .circular-progress-bar__title_koxwo {
|
|
98
98
|
max-height: 16px;
|
|
99
99
|
margin: 0;
|
|
100
|
-
} .circular-progress-
|
|
100
|
+
} .circular-progress-bar__s_koxwo {
|
|
101
101
|
width: 48px;
|
|
102
102
|
height: 48px
|
|
103
|
-
} .circular-progress-
|
|
103
|
+
} .circular-progress-bar__s_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
104
104
|
max-width: 40px;
|
|
105
|
-
} .circular-progress-
|
|
105
|
+
} .circular-progress-bar__s_koxwo .circular-progress-bar__title_koxwo {
|
|
106
106
|
max-height: 16px;
|
|
107
107
|
margin: 0;
|
|
108
|
-
} .circular-progress-
|
|
108
|
+
} .circular-progress-bar__xs_koxwo {
|
|
109
109
|
width: 24px;
|
|
110
110
|
height: 24px
|
|
111
|
-
} .circular-progress-
|
|
111
|
+
} .circular-progress-bar__xs_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
112
112
|
max-width: 24px;
|
|
113
|
-
} .circular-progress-
|
|
114
|
-
.circular-progress-
|
|
113
|
+
} .circular-progress-bar__backgroundCircle_koxwo,
|
|
114
|
+
.circular-progress-bar__progressCircle_koxwo {
|
|
115
115
|
width: 100%;
|
|
116
116
|
height: 100%;
|
|
117
117
|
fill: transparent;
|
|
118
|
-
} .circular-progress-
|
|
118
|
+
} .circular-progress-bar__positive_koxwo {
|
|
119
119
|
stroke: var(--circular-progress-bar-positive-color);
|
|
120
|
-
} .circular-progress-
|
|
120
|
+
} .circular-progress-bar__negative_koxwo {
|
|
121
121
|
stroke: var(--circular-progress-bar-negative-color);
|
|
122
|
-
} .circular-progress-
|
|
122
|
+
} .circular-progress-bar__backgroundCircle_koxwo {
|
|
123
123
|
stroke: var(--circular-progress-bar-stroke-color)
|
|
124
|
-
} .circular-progress-
|
|
124
|
+
} .circular-progress-bar__backgroundCircle_koxwo.circular-progress-bar__stroke_koxwo {
|
|
125
125
|
stroke: transparent;
|
|
126
|
-
} .circular-progress-
|
|
126
|
+
} .circular-progress-bar__progressCircle_koxwo {
|
|
127
127
|
stroke-linecap: round
|
|
128
|
-
} .circular-progress-
|
|
128
|
+
} .circular-progress-bar__progressCircle_koxwo.circular-progress-bar__bg-positive_koxwo {
|
|
129
129
|
fill: var(--circular-progress-bar-positive-color);
|
|
130
|
-
} .circular-progress-
|
|
130
|
+
} .circular-progress-bar__progressCircle_koxwo.circular-progress-bar__bg-negative_koxwo {
|
|
131
131
|
fill: var(--circular-progress-bar-negative-color);
|
|
132
|
-
} .circular-progress-
|
|
132
|
+
} .circular-progress-bar__iconWrapper_koxwo {
|
|
133
133
|
display: flex;
|
|
134
134
|
align-items: center;
|
|
135
135
|
justify-content: center
|
|
136
|
-
} .circular-progress-
|
|
136
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__xxl_koxwo {
|
|
137
137
|
max-width: 64px;
|
|
138
138
|
max-height: 64px;
|
|
139
|
-
} .circular-progress-
|
|
139
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__xl_koxwo {
|
|
140
140
|
max-width: 64px;
|
|
141
141
|
max-height: 64px;
|
|
142
|
-
} .circular-progress-
|
|
142
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__l_koxwo {
|
|
143
143
|
max-width: 48px;
|
|
144
144
|
max-height: 48px;
|
|
145
|
-
} .circular-progress-
|
|
145
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__m_koxwo {
|
|
146
146
|
max-width: 36px;
|
|
147
147
|
max-height: 36px;
|
|
148
|
-
} .circular-progress-
|
|
148
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__s_koxwo {
|
|
149
149
|
max-width: 24px;
|
|
150
150
|
max-height: 24px;
|
|
151
|
-
} .circular-progress-
|
|
151
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__xs_koxwo {
|
|
152
152
|
max-width: 16px;
|
|
153
153
|
max-height: 16px;
|
|
154
|
-
} .circular-progress-
|
|
154
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-tertiary_koxwo {
|
|
155
155
|
color: var(--color-light-graphic-tertiary);
|
|
156
|
-
} .circular-progress-
|
|
156
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-positive_koxwo {
|
|
157
157
|
color: var(--color-light-graphic-positive);
|
|
158
|
-
} .circular-progress-
|
|
158
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-negative_koxwo {
|
|
159
159
|
color: var(--color-light-graphic-negative);
|
|
160
|
-
} .circular-progress-
|
|
160
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-primary-inverted_koxwo {
|
|
161
161
|
color: var(--color-light-graphic-primary-inverted);
|
|
162
|
-
} .circular-progress-
|
|
162
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-primary_koxwo {
|
|
163
163
|
color: var(--color-light-graphic-primary);
|
|
164
|
-
} .circular-progress-
|
|
164
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-secondary_koxwo {
|
|
165
165
|
color: var(--color-light-graphic-secondary);
|
|
166
|
-
} .circular-progress-
|
|
166
|
+
} .circular-progress-bar__icon_koxwo {
|
|
167
167
|
width: 100%;
|
|
168
168
|
height: 100%;
|
|
169
169
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 2fyhb */
|
|
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_koxwo {
|
|
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_koxwo {
|
|
45
45
|
display: block;
|
|
46
46
|
width: 100%;
|
|
47
|
-
} .circular-progress-
|
|
48
|
-
.circular-progress-
|
|
47
|
+
} .circular-progress-bar__title_koxwo,
|
|
48
|
+
.circular-progress-bar__subtitle_koxwo {
|
|
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_koxwo {
|
|
55
55
|
max-height: 40px;
|
|
56
|
-
} .circular-progress-
|
|
56
|
+
} .circular-progress-bar__labelWrapper_koxwo {
|
|
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_koxwo.circular-progress-bar__label_koxwo {
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
|
-
} .circular-progress-
|
|
67
|
+
} .circular-progress-bar__typography_koxwo {
|
|
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_koxwo {
|
|
72
72
|
width: 144px;
|
|
73
73
|
height: 144px
|
|
74
|
-
} .circular-progress-
|
|
74
|
+
} .circular-progress-bar__xxl_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
75
75
|
max-width: 128px;
|
|
76
|
-
} .circular-progress-
|
|
76
|
+
} .circular-progress-bar__xxl_koxwo .circular-progress-bar__title_koxwo {
|
|
77
77
|
max-height: 32px;
|
|
78
|
-
} .circular-progress-
|
|
78
|
+
} .circular-progress-bar__xl_koxwo {
|
|
79
79
|
width: 128px;
|
|
80
80
|
height: 128px
|
|
81
|
-
} .circular-progress-
|
|
81
|
+
} .circular-progress-bar__xl_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
82
82
|
max-width: 108px;
|
|
83
|
-
} .circular-progress-
|
|
83
|
+
} .circular-progress-bar__xl_koxwo .circular-progress-bar__title_koxwo {
|
|
84
84
|
max-height: 32px;
|
|
85
|
-
} .circular-progress-
|
|
85
|
+
} .circular-progress-bar__l_koxwo {
|
|
86
86
|
width: 80px;
|
|
87
87
|
height: 80px
|
|
88
|
-
} .circular-progress-
|
|
88
|
+
} .circular-progress-bar__l_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
89
89
|
max-width: 64px;
|
|
90
|
-
} .circular-progress-
|
|
90
|
+
} .circular-progress-bar__l_koxwo .circular-progress-bar__title_koxwo {
|
|
91
91
|
max-height: 24px;
|
|
92
|
-
} .circular-progress-
|
|
92
|
+
} .circular-progress-bar__m_koxwo {
|
|
93
93
|
width: 64px;
|
|
94
94
|
height: 64px
|
|
95
|
-
} .circular-progress-
|
|
95
|
+
} .circular-progress-bar__m_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
96
96
|
max-width: 48px;
|
|
97
|
-
} .circular-progress-
|
|
97
|
+
} .circular-progress-bar__m_koxwo .circular-progress-bar__title_koxwo {
|
|
98
98
|
max-height: 16px;
|
|
99
99
|
margin: 0;
|
|
100
|
-
} .circular-progress-
|
|
100
|
+
} .circular-progress-bar__s_koxwo {
|
|
101
101
|
width: 48px;
|
|
102
102
|
height: 48px
|
|
103
|
-
} .circular-progress-
|
|
103
|
+
} .circular-progress-bar__s_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
104
104
|
max-width: 40px;
|
|
105
|
-
} .circular-progress-
|
|
105
|
+
} .circular-progress-bar__s_koxwo .circular-progress-bar__title_koxwo {
|
|
106
106
|
max-height: 16px;
|
|
107
107
|
margin: 0;
|
|
108
|
-
} .circular-progress-
|
|
108
|
+
} .circular-progress-bar__xs_koxwo {
|
|
109
109
|
width: 24px;
|
|
110
110
|
height: 24px
|
|
111
|
-
} .circular-progress-
|
|
111
|
+
} .circular-progress-bar__xs_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
112
112
|
max-width: 24px;
|
|
113
|
-
} .circular-progress-
|
|
114
|
-
.circular-progress-
|
|
113
|
+
} .circular-progress-bar__backgroundCircle_koxwo,
|
|
114
|
+
.circular-progress-bar__progressCircle_koxwo {
|
|
115
115
|
width: 100%;
|
|
116
116
|
height: 100%;
|
|
117
117
|
fill: transparent;
|
|
118
|
-
} .circular-progress-
|
|
118
|
+
} .circular-progress-bar__positive_koxwo {
|
|
119
119
|
stroke: var(--circular-progress-bar-positive-color);
|
|
120
|
-
} .circular-progress-
|
|
120
|
+
} .circular-progress-bar__negative_koxwo {
|
|
121
121
|
stroke: var(--circular-progress-bar-negative-color);
|
|
122
|
-
} .circular-progress-
|
|
122
|
+
} .circular-progress-bar__backgroundCircle_koxwo {
|
|
123
123
|
stroke: var(--circular-progress-bar-stroke-color)
|
|
124
|
-
} .circular-progress-
|
|
124
|
+
} .circular-progress-bar__backgroundCircle_koxwo.circular-progress-bar__stroke_koxwo {
|
|
125
125
|
stroke: transparent;
|
|
126
|
-
} .circular-progress-
|
|
126
|
+
} .circular-progress-bar__progressCircle_koxwo {
|
|
127
127
|
stroke-linecap: round
|
|
128
|
-
} .circular-progress-
|
|
128
|
+
} .circular-progress-bar__progressCircle_koxwo.circular-progress-bar__bg-positive_koxwo {
|
|
129
129
|
fill: var(--circular-progress-bar-positive-color);
|
|
130
|
-
} .circular-progress-
|
|
130
|
+
} .circular-progress-bar__progressCircle_koxwo.circular-progress-bar__bg-negative_koxwo {
|
|
131
131
|
fill: var(--circular-progress-bar-negative-color);
|
|
132
|
-
} .circular-progress-
|
|
132
|
+
} .circular-progress-bar__iconWrapper_koxwo {
|
|
133
133
|
display: flex;
|
|
134
134
|
align-items: center;
|
|
135
135
|
justify-content: center
|
|
136
|
-
} .circular-progress-
|
|
136
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__xxl_koxwo {
|
|
137
137
|
max-width: 64px;
|
|
138
138
|
max-height: 64px;
|
|
139
|
-
} .circular-progress-
|
|
139
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__xl_koxwo {
|
|
140
140
|
max-width: 64px;
|
|
141
141
|
max-height: 64px;
|
|
142
|
-
} .circular-progress-
|
|
142
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__l_koxwo {
|
|
143
143
|
max-width: 48px;
|
|
144
144
|
max-height: 48px;
|
|
145
|
-
} .circular-progress-
|
|
145
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__m_koxwo {
|
|
146
146
|
max-width: 36px;
|
|
147
147
|
max-height: 36px;
|
|
148
|
-
} .circular-progress-
|
|
148
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__s_koxwo {
|
|
149
149
|
max-width: 24px;
|
|
150
150
|
max-height: 24px;
|
|
151
|
-
} .circular-progress-
|
|
151
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__xs_koxwo {
|
|
152
152
|
max-width: 16px;
|
|
153
153
|
max-height: 16px;
|
|
154
|
-
} .circular-progress-
|
|
154
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-tertiary_koxwo {
|
|
155
155
|
color: var(--color-light-graphic-tertiary);
|
|
156
|
-
} .circular-progress-
|
|
156
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-positive_koxwo {
|
|
157
157
|
color: var(--color-light-graphic-positive);
|
|
158
|
-
} .circular-progress-
|
|
158
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-negative_koxwo {
|
|
159
159
|
color: var(--color-light-graphic-negative);
|
|
160
|
-
} .circular-progress-
|
|
160
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-primary-inverted_koxwo {
|
|
161
161
|
color: var(--color-light-graphic-primary-inverted);
|
|
162
|
-
} .circular-progress-
|
|
162
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-primary_koxwo {
|
|
163
163
|
color: var(--color-light-graphic-primary);
|
|
164
|
-
} .circular-progress-
|
|
164
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-secondary_koxwo {
|
|
165
165
|
color: var(--color-light-graphic-secondary);
|
|
166
|
-
} .circular-progress-
|
|
166
|
+
} .circular-progress-bar__icon_koxwo {
|
|
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_koxwo","svg":"circular-progress-bar__svg_koxwo","title":"circular-progress-bar__title_koxwo","subtitle":"circular-progress-bar__subtitle_koxwo","labelWrapper":"circular-progress-bar__labelWrapper_koxwo","label":"circular-progress-bar__label_koxwo","typography":"circular-progress-bar__typography_koxwo","xxl":"circular-progress-bar__xxl_koxwo","xl":"circular-progress-bar__xl_koxwo","l":"circular-progress-bar__l_koxwo","m":"circular-progress-bar__m_koxwo","s":"circular-progress-bar__s_koxwo","xs":"circular-progress-bar__xs_koxwo","backgroundCircle":"circular-progress-bar__backgroundCircle_koxwo","progressCircle":"circular-progress-bar__progressCircle_koxwo","positive":"circular-progress-bar__positive_koxwo","negative":"circular-progress-bar__negative_koxwo","stroke":"circular-progress-bar__stroke_koxwo","bg-positive":"circular-progress-bar__bg-positive_koxwo","bg-negative":"circular-progress-bar__bg-negative_koxwo","iconWrapper":"circular-progress-bar__iconWrapper_koxwo","icon-tertiary":"circular-progress-bar__icon-tertiary_koxwo","icon-positive":"circular-progress-bar__icon-positive_koxwo","icon-negative":"circular-progress-bar__icon-negative_koxwo","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_koxwo","icon-primary":"circular-progress-bar__icon-primary_koxwo","icon-secondary":"circular-progress-bar__icon-secondary_koxwo","icon":"circular-progress-bar__icon_koxwo"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const SIZES = {
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 2fyhb */
|
|
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_koxwo {
|
|
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_koxwo {
|
|
45
45
|
display: block;
|
|
46
46
|
width: 100%;
|
|
47
|
-
} .circular-progress-
|
|
48
|
-
.circular-progress-
|
|
47
|
+
} .circular-progress-bar__title_koxwo,
|
|
48
|
+
.circular-progress-bar__subtitle_koxwo {
|
|
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_koxwo {
|
|
55
55
|
max-height: 40px;
|
|
56
|
-
} .circular-progress-
|
|
56
|
+
} .circular-progress-bar__labelWrapper_koxwo {
|
|
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_koxwo.circular-progress-bar__label_koxwo {
|
|
64
64
|
display: flex;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
|
-
} .circular-progress-
|
|
67
|
+
} .circular-progress-bar__typography_koxwo {
|
|
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_koxwo {
|
|
72
72
|
width: 144px;
|
|
73
73
|
height: 144px
|
|
74
|
-
} .circular-progress-
|
|
74
|
+
} .circular-progress-bar__xxl_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
75
75
|
max-width: 128px;
|
|
76
|
-
} .circular-progress-
|
|
76
|
+
} .circular-progress-bar__xxl_koxwo .circular-progress-bar__title_koxwo {
|
|
77
77
|
max-height: 32px;
|
|
78
|
-
} .circular-progress-
|
|
78
|
+
} .circular-progress-bar__xl_koxwo {
|
|
79
79
|
width: 128px;
|
|
80
80
|
height: 128px
|
|
81
|
-
} .circular-progress-
|
|
81
|
+
} .circular-progress-bar__xl_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
82
82
|
max-width: 108px;
|
|
83
|
-
} .circular-progress-
|
|
83
|
+
} .circular-progress-bar__xl_koxwo .circular-progress-bar__title_koxwo {
|
|
84
84
|
max-height: 32px;
|
|
85
|
-
} .circular-progress-
|
|
85
|
+
} .circular-progress-bar__l_koxwo {
|
|
86
86
|
width: 80px;
|
|
87
87
|
height: 80px
|
|
88
|
-
} .circular-progress-
|
|
88
|
+
} .circular-progress-bar__l_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
89
89
|
max-width: 64px;
|
|
90
|
-
} .circular-progress-
|
|
90
|
+
} .circular-progress-bar__l_koxwo .circular-progress-bar__title_koxwo {
|
|
91
91
|
max-height: 24px;
|
|
92
|
-
} .circular-progress-
|
|
92
|
+
} .circular-progress-bar__m_koxwo {
|
|
93
93
|
width: 64px;
|
|
94
94
|
height: 64px
|
|
95
|
-
} .circular-progress-
|
|
95
|
+
} .circular-progress-bar__m_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
96
96
|
max-width: 48px;
|
|
97
|
-
} .circular-progress-
|
|
97
|
+
} .circular-progress-bar__m_koxwo .circular-progress-bar__title_koxwo {
|
|
98
98
|
max-height: 16px;
|
|
99
99
|
margin: 0;
|
|
100
|
-
} .circular-progress-
|
|
100
|
+
} .circular-progress-bar__s_koxwo {
|
|
101
101
|
width: 48px;
|
|
102
102
|
height: 48px
|
|
103
|
-
} .circular-progress-
|
|
103
|
+
} .circular-progress-bar__s_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
104
104
|
max-width: 40px;
|
|
105
|
-
} .circular-progress-
|
|
105
|
+
} .circular-progress-bar__s_koxwo .circular-progress-bar__title_koxwo {
|
|
106
106
|
max-height: 16px;
|
|
107
107
|
margin: 0;
|
|
108
|
-
} .circular-progress-
|
|
108
|
+
} .circular-progress-bar__xs_koxwo {
|
|
109
109
|
width: 24px;
|
|
110
110
|
height: 24px
|
|
111
|
-
} .circular-progress-
|
|
111
|
+
} .circular-progress-bar__xs_koxwo .circular-progress-bar__labelWrapper_koxwo {
|
|
112
112
|
max-width: 24px;
|
|
113
|
-
} .circular-progress-
|
|
114
|
-
.circular-progress-
|
|
113
|
+
} .circular-progress-bar__backgroundCircle_koxwo,
|
|
114
|
+
.circular-progress-bar__progressCircle_koxwo {
|
|
115
115
|
width: 100%;
|
|
116
116
|
height: 100%;
|
|
117
117
|
fill: transparent;
|
|
118
|
-
} .circular-progress-
|
|
118
|
+
} .circular-progress-bar__positive_koxwo {
|
|
119
119
|
stroke: var(--circular-progress-bar-positive-color);
|
|
120
|
-
} .circular-progress-
|
|
120
|
+
} .circular-progress-bar__negative_koxwo {
|
|
121
121
|
stroke: var(--circular-progress-bar-negative-color);
|
|
122
|
-
} .circular-progress-
|
|
122
|
+
} .circular-progress-bar__backgroundCircle_koxwo {
|
|
123
123
|
stroke: var(--circular-progress-bar-stroke-color)
|
|
124
|
-
} .circular-progress-
|
|
124
|
+
} .circular-progress-bar__backgroundCircle_koxwo.circular-progress-bar__stroke_koxwo {
|
|
125
125
|
stroke: transparent;
|
|
126
|
-
} .circular-progress-
|
|
126
|
+
} .circular-progress-bar__progressCircle_koxwo {
|
|
127
127
|
stroke-linecap: round
|
|
128
|
-
} .circular-progress-
|
|
128
|
+
} .circular-progress-bar__progressCircle_koxwo.circular-progress-bar__bg-positive_koxwo {
|
|
129
129
|
fill: var(--circular-progress-bar-positive-color);
|
|
130
|
-
} .circular-progress-
|
|
130
|
+
} .circular-progress-bar__progressCircle_koxwo.circular-progress-bar__bg-negative_koxwo {
|
|
131
131
|
fill: var(--circular-progress-bar-negative-color);
|
|
132
|
-
} .circular-progress-
|
|
132
|
+
} .circular-progress-bar__iconWrapper_koxwo {
|
|
133
133
|
display: flex;
|
|
134
134
|
align-items: center;
|
|
135
135
|
justify-content: center
|
|
136
|
-
} .circular-progress-
|
|
136
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__xxl_koxwo {
|
|
137
137
|
max-width: 64px;
|
|
138
138
|
max-height: 64px;
|
|
139
|
-
} .circular-progress-
|
|
139
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__xl_koxwo {
|
|
140
140
|
max-width: 64px;
|
|
141
141
|
max-height: 64px;
|
|
142
|
-
} .circular-progress-
|
|
142
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__l_koxwo {
|
|
143
143
|
max-width: 48px;
|
|
144
144
|
max-height: 48px;
|
|
145
|
-
} .circular-progress-
|
|
145
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__m_koxwo {
|
|
146
146
|
max-width: 36px;
|
|
147
147
|
max-height: 36px;
|
|
148
|
-
} .circular-progress-
|
|
148
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__s_koxwo {
|
|
149
149
|
max-width: 24px;
|
|
150
150
|
max-height: 24px;
|
|
151
|
-
} .circular-progress-
|
|
151
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__xs_koxwo {
|
|
152
152
|
max-width: 16px;
|
|
153
153
|
max-height: 16px;
|
|
154
|
-
} .circular-progress-
|
|
154
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-tertiary_koxwo {
|
|
155
155
|
color: var(--color-light-graphic-tertiary);
|
|
156
|
-
} .circular-progress-
|
|
156
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-positive_koxwo {
|
|
157
157
|
color: var(--color-light-graphic-positive);
|
|
158
|
-
} .circular-progress-
|
|
158
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-negative_koxwo {
|
|
159
159
|
color: var(--color-light-graphic-negative);
|
|
160
|
-
} .circular-progress-
|
|
160
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-primary-inverted_koxwo {
|
|
161
161
|
color: var(--color-light-graphic-primary-inverted);
|
|
162
|
-
} .circular-progress-
|
|
162
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-primary_koxwo {
|
|
163
163
|
color: var(--color-light-graphic-primary);
|
|
164
|
-
} .circular-progress-
|
|
164
|
+
} .circular-progress-bar__iconWrapper_koxwo.circular-progress-bar__icon-secondary_koxwo {
|
|
165
165
|
color: var(--color-light-graphic-secondary);
|
|
166
|
-
} .circular-progress-
|
|
166
|
+
} .circular-progress-bar__icon_koxwo {
|
|
167
167
|
width: 100%;
|
|
168
168
|
height: 100%;
|
|
169
169
|
}
|
package/package.json
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-circular-progress-bar",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "./esm/index.js",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
|
|
11
|
-
},
|
|
12
9
|
"publishConfig": {
|
|
13
10
|
"access": "public",
|
|
14
11
|
"directory": "dist"
|
|
15
12
|
},
|
|
16
13
|
"dependencies": {
|
|
17
|
-
"@alfalab/core-components-typography": "^3.2.
|
|
14
|
+
"@alfalab/core-components-typography": "^3.2.2",
|
|
18
15
|
"classnames": "^2.3.1",
|
|
19
16
|
"tslib": "^2.4.0"
|
|
20
17
|
},
|
package/send-stats.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
const http = require('http');
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const { promisify } = require('util');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const readFile = promisify(fs.readFile);
|
|
7
|
-
|
|
8
|
-
async function main() {
|
|
9
|
-
const remoteHost = process.env.NIS_HOST || 'digital';
|
|
10
|
-
const remotePort = process.env.NIS_PORT || 80;
|
|
11
|
-
const remotePath = process.env.NIS_PATH || '/npm-install-stats/api/install-stats';
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
const [_, node, os, arch] =
|
|
15
|
-
/node\/v(\d+\.\d+\.\d+) (\w+) (\w+)/.exec(process.env.npm_config_user_agent) || [];
|
|
16
|
-
const [__, npm] = /npm\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
17
|
-
const [___, yarn] = /yarn\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
18
|
-
|
|
19
|
-
let ownPackageJson, packageJson;
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
const result = await Promise.all([
|
|
23
|
-
readFile(path.join(process.cwd(), 'package.json'), 'utf-8'),
|
|
24
|
-
readFile(path.join(process.cwd(), '../../../package.json'), 'utf-8'),
|
|
25
|
-
]);
|
|
26
|
-
|
|
27
|
-
ownPackageJson = JSON.parse(result[0]);
|
|
28
|
-
packageJson = JSON.parse(result[1]);
|
|
29
|
-
} catch (err) {
|
|
30
|
-
ownPackageJson = '';
|
|
31
|
-
packageJson = '';
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const data = {
|
|
35
|
-
node,
|
|
36
|
-
npm,
|
|
37
|
-
yarn,
|
|
38
|
-
os,
|
|
39
|
-
arch,
|
|
40
|
-
ownPackageJson: JSON.stringify(ownPackageJson),
|
|
41
|
-
packageJson: JSON.stringify(packageJson),
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const body = JSON.stringify(data);
|
|
45
|
-
|
|
46
|
-
const options = {
|
|
47
|
-
host: remoteHost,
|
|
48
|
-
port: remotePort,
|
|
49
|
-
path: remotePath,
|
|
50
|
-
method: 'POST',
|
|
51
|
-
headers: {
|
|
52
|
-
'Content-Type': 'application/json',
|
|
53
|
-
'Content-Length': body.length,
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return new Promise((resolve, reject) => {
|
|
58
|
-
const req = http.request(options, (res) => {
|
|
59
|
-
res.on('end', () => {
|
|
60
|
-
resolve();
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
req.on('error', () => {
|
|
65
|
-
reject();
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
req.write(body);
|
|
69
|
-
req.end();
|
|
70
|
-
});
|
|
71
|
-
} catch (error) {
|
|
72
|
-
throw error;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
main()
|
|
77
|
-
.then(() => {
|
|
78
|
-
process.exit(0);
|
|
79
|
-
})
|
|
80
|
-
.catch(() => {
|
|
81
|
-
process.exit(0);
|
|
82
|
-
});
|