@alfalab/core-components-circular-progress-bar 3.0.6 → 3.0.8
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 +17 -19
- package/cssm/Component.js +19 -21
- package/cssm/index.js +0 -2
- package/esm/Component.js +6 -6
- package/esm/index.css +49 -49
- package/index.css +49 -49
- package/index.js +0 -2
- package/modern/Component.js +1 -1
- package/modern/index.css +49 -49
- package/modern/index.js +1 -1
- package/package.json +2 -2
package/Component.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
4
|
var cn = require('classnames');
|
|
7
5
|
var coreComponentsTypography = require('@alfalab/core-components-typography');
|
|
8
6
|
|
|
9
|
-
function
|
|
7
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
8
|
|
|
11
|
-
var React__default = /*#__PURE__*/
|
|
12
|
-
var cn__default = /*#__PURE__*/
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
11
|
|
|
14
12
|
/******************************************************************************
|
|
15
13
|
Copyright (c) Microsoft Corporation.
|
|
@@ -38,7 +36,7 @@ var __assign = function () {
|
|
|
38
36
|
return __assign.apply(this, arguments);
|
|
39
37
|
};
|
|
40
38
|
|
|
41
|
-
var styles = {"component":"circular-progress-
|
|
39
|
+
var styles = {"component":"circular-progress-bar__component_1brjj","svg":"circular-progress-bar__svg_1brjj","title":"circular-progress-bar__title_1brjj","subtitle":"circular-progress-bar__subtitle_1brjj","labelWrapper":"circular-progress-bar__labelWrapper_1brjj","label":"circular-progress-bar__label_1brjj","typography":"circular-progress-bar__typography_1brjj","xxl":"circular-progress-bar__xxl_1brjj","xl":"circular-progress-bar__xl_1brjj","l":"circular-progress-bar__l_1brjj","m":"circular-progress-bar__m_1brjj","s":"circular-progress-bar__s_1brjj","xs":"circular-progress-bar__xs_1brjj","backgroundCircle":"circular-progress-bar__backgroundCircle_1brjj","progressCircle":"circular-progress-bar__progressCircle_1brjj","positive":"circular-progress-bar__positive_1brjj","negative":"circular-progress-bar__negative_1brjj","stroke":"circular-progress-bar__stroke_1brjj","bg-positive":"circular-progress-bar__bg-positive_1brjj","bg-negative":"circular-progress-bar__bg-negative_1brjj","iconWrapper":"circular-progress-bar__iconWrapper_1brjj","icon-tertiary":"circular-progress-bar__icon-tertiary_1brjj","icon-positive":"circular-progress-bar__icon-positive_1brjj","icon-negative":"circular-progress-bar__icon-negative_1brjj","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_1brjj","icon-primary":"circular-progress-bar__icon-primary_1brjj","icon-secondary":"circular-progress-bar__icon-secondary_1brjj","icon":"circular-progress-bar__icon_1brjj"};
|
|
42
40
|
require('./index.css')
|
|
43
41
|
|
|
44
42
|
var SIZES = {
|
|
@@ -106,34 +104,34 @@ var CircularProgressBar = function (_a) {
|
|
|
106
104
|
var subtitleContent = subtitleComplete && isComplete ? subtitleComplete : subtitle;
|
|
107
105
|
var IconComponent = IconComplete && isComplete ? IconComplete : Icon;
|
|
108
106
|
var renderTitleString = function () {
|
|
109
|
-
return SIZES[size] > 64 ? (React__default
|
|
107
|
+
return SIZES[size] > 64 ? (React__default.default.createElement(coreComponentsTypography.Typography.TitleMobile, { className: cn__default.default(styles.typography, styles.title), color: isCompleteTextColor ? completeTextColor : contentColor, tag: 'div', font: 'system', view: VIEW_TITLE[size] }, titleContent)) : (React__default.default.createElement(coreComponentsTypography.Typography.Text, { className: styles.title, color: isCompleteTextColor ? completeTextColor : contentColor, tag: 'div', weight: 'bold', view: VIEW_TEXT[size] }, titleContent));
|
|
110
108
|
};
|
|
111
109
|
var renderTitle = function () { return (typeof title === 'string' ? renderTitleString() : titleContent); };
|
|
112
110
|
var renderSubTitle = function () {
|
|
113
|
-
return typeof subtitle === 'string' ? (React__default
|
|
111
|
+
return typeof subtitle === 'string' ? (React__default.default.createElement(coreComponentsTypography.Typography.Text, { tag: 'div', className: styles.subtitle, color: isCompleteTextColor ? completeTextColor : contentColor, view: 'primary-small' }, subtitleContent)) : (subtitleContent);
|
|
114
112
|
};
|
|
115
113
|
var renderIcon = function () {
|
|
116
114
|
var _a;
|
|
117
|
-
return (React__default
|
|
118
|
-
_a[styles["icon-"
|
|
119
|
-
_a)) }, IconComponent && React__default
|
|
115
|
+
return (React__default.default.createElement("span", { className: cn__default.default(styles.iconWrapper, styles[size], styles.tertiary, styles["icon-".concat(contentColor)], (_a = {},
|
|
116
|
+
_a[styles["icon-".concat(completeIconColor)]] = completeIconColor,
|
|
117
|
+
_a)) }, IconComponent && React__default.default.createElement(IconComponent, { className: styles.icon })));
|
|
120
118
|
};
|
|
121
119
|
var renderContent = function () {
|
|
122
|
-
return Icon || (IconComplete && isComplete) ? (renderIcon()) : (React__default
|
|
120
|
+
return Icon || (IconComplete && isComplete) ? (renderIcon()) : (React__default.default.createElement(React__default.default.Fragment, null,
|
|
123
121
|
SIZES[size] > 24 && renderTitle(),
|
|
124
122
|
SIZES[size] > 64 && renderSubTitle()));
|
|
125
123
|
};
|
|
126
|
-
return (React__default
|
|
127
|
-
React__default
|
|
128
|
-
React__default
|
|
124
|
+
return (React__default.default.createElement("div", { className: cn__default.default(styles.component, styles[size], className), style: __assign({}, (height && { height: height, width: height })), "data-test-id": dataTestId },
|
|
125
|
+
React__default.default.createElement("svg", { viewBox: "0 0 ".concat(memorized.widthSVG, " ").concat(memorized.heightSVG), className: styles.svg, xmlns: 'http://www.w3.org/2000/svg' },
|
|
126
|
+
React__default.default.createElement("circle", { className: cn__default.default(styles.backgroundCircle, styles[size], (_b = {},
|
|
129
127
|
_b[styles.stroke] = !stroke,
|
|
130
128
|
_b)), cx: memorized.center, cy: memorized.center, r: memorized.radius, strokeWidth: STROKE[size] }),
|
|
131
|
-
React__default
|
|
132
|
-
_c[styles["bg-"
|
|
129
|
+
React__default.default.createElement("circle", { className: cn__default.default(styles.progressCircle, styles[view], styles[size], (_c = {},
|
|
130
|
+
_c[styles["bg-".concat(view)]] = fillComplete && isComplete,
|
|
133
131
|
_c)), cx: memorized.center, cy: memorized.center, r: memorized.radius, strokeWidth: STROKE[size], strokeDasharray: memorized.strokeDasharray, strokeDashoffset: direction === 'counter-clockwise'
|
|
134
132
|
? -memorized.strokeDashoffset
|
|
135
|
-
: memorized.strokeDashoffset, transform: "rotate("
|
|
136
|
-
React__default
|
|
133
|
+
: memorized.strokeDashoffset, transform: "rotate(".concat(-90, " ").concat(memorized.center, " ").concat(memorized.center, ")") })),
|
|
134
|
+
React__default.default.createElement("div", { className: cn__default.default(styles.labelWrapper, (_d = {},
|
|
137
135
|
_d[styles.label] = Icon || IconComplete,
|
|
138
136
|
_d)) }, children || renderContent())));
|
|
139
137
|
};
|
package/cssm/Component.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
4
|
var cn = require('classnames');
|
|
7
5
|
var coreComponentsTypography = require('@alfalab/core-components-typography/cssm');
|
|
8
6
|
var styles = require('./index.module.css');
|
|
9
7
|
|
|
10
|
-
function
|
|
8
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
9
|
|
|
12
|
-
var React__default = /*#__PURE__*/
|
|
13
|
-
var cn__default = /*#__PURE__*/
|
|
14
|
-
var styles__default = /*#__PURE__*/
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
|
+
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
12
|
+
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
15
13
|
|
|
16
14
|
/******************************************************************************
|
|
17
15
|
Copyright (c) Microsoft Corporation.
|
|
@@ -105,35 +103,35 @@ var CircularProgressBar = function (_a) {
|
|
|
105
103
|
var subtitleContent = subtitleComplete && isComplete ? subtitleComplete : subtitle;
|
|
106
104
|
var IconComponent = IconComplete && isComplete ? IconComplete : Icon;
|
|
107
105
|
var renderTitleString = function () {
|
|
108
|
-
return SIZES[size] > 64 ? (React__default
|
|
106
|
+
return SIZES[size] > 64 ? (React__default.default.createElement(coreComponentsTypography.Typography.TitleMobile, { className: cn__default.default(styles__default.default.typography, styles__default.default.title), color: isCompleteTextColor ? completeTextColor : contentColor, tag: 'div', font: 'system', view: VIEW_TITLE[size] }, titleContent)) : (React__default.default.createElement(coreComponentsTypography.Typography.Text, { className: styles__default.default.title, color: isCompleteTextColor ? completeTextColor : contentColor, tag: 'div', weight: 'bold', view: VIEW_TEXT[size] }, titleContent));
|
|
109
107
|
};
|
|
110
108
|
var renderTitle = function () { return (typeof title === 'string' ? renderTitleString() : titleContent); };
|
|
111
109
|
var renderSubTitle = function () {
|
|
112
|
-
return typeof subtitle === 'string' ? (React__default
|
|
110
|
+
return typeof subtitle === 'string' ? (React__default.default.createElement(coreComponentsTypography.Typography.Text, { tag: 'div', className: styles__default.default.subtitle, color: isCompleteTextColor ? completeTextColor : contentColor, view: 'primary-small' }, subtitleContent)) : (subtitleContent);
|
|
113
111
|
};
|
|
114
112
|
var renderIcon = function () {
|
|
115
113
|
var _a;
|
|
116
|
-
return (React__default
|
|
117
|
-
_a[styles__default
|
|
118
|
-
_a)) }, IconComponent && React__default
|
|
114
|
+
return (React__default.default.createElement("span", { className: cn__default.default(styles__default.default.iconWrapper, styles__default.default[size], styles__default.default.tertiary, styles__default.default["icon-".concat(contentColor)], (_a = {},
|
|
115
|
+
_a[styles__default.default["icon-".concat(completeIconColor)]] = completeIconColor,
|
|
116
|
+
_a)) }, IconComponent && React__default.default.createElement(IconComponent, { className: styles__default.default.icon })));
|
|
119
117
|
};
|
|
120
118
|
var renderContent = function () {
|
|
121
|
-
return Icon || (IconComplete && isComplete) ? (renderIcon()) : (React__default
|
|
119
|
+
return Icon || (IconComplete && isComplete) ? (renderIcon()) : (React__default.default.createElement(React__default.default.Fragment, null,
|
|
122
120
|
SIZES[size] > 24 && renderTitle(),
|
|
123
121
|
SIZES[size] > 64 && renderSubTitle()));
|
|
124
122
|
};
|
|
125
|
-
return (React__default
|
|
126
|
-
React__default
|
|
127
|
-
React__default
|
|
128
|
-
_b[styles__default
|
|
123
|
+
return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.component, styles__default.default[size], className), style: __assign({}, (height && { height: height, width: height })), "data-test-id": dataTestId },
|
|
124
|
+
React__default.default.createElement("svg", { viewBox: "0 0 ".concat(memorized.widthSVG, " ").concat(memorized.heightSVG), className: styles__default.default.svg, xmlns: 'http://www.w3.org/2000/svg' },
|
|
125
|
+
React__default.default.createElement("circle", { className: cn__default.default(styles__default.default.backgroundCircle, styles__default.default[size], (_b = {},
|
|
126
|
+
_b[styles__default.default.stroke] = !stroke,
|
|
129
127
|
_b)), cx: memorized.center, cy: memorized.center, r: memorized.radius, strokeWidth: STROKE[size] }),
|
|
130
|
-
React__default
|
|
131
|
-
_c[styles__default
|
|
128
|
+
React__default.default.createElement("circle", { className: cn__default.default(styles__default.default.progressCircle, styles__default.default[view], styles__default.default[size], (_c = {},
|
|
129
|
+
_c[styles__default.default["bg-".concat(view)]] = fillComplete && isComplete,
|
|
132
130
|
_c)), cx: memorized.center, cy: memorized.center, r: memorized.radius, strokeWidth: STROKE[size], strokeDasharray: memorized.strokeDasharray, strokeDashoffset: direction === 'counter-clockwise'
|
|
133
131
|
? -memorized.strokeDashoffset
|
|
134
|
-
: memorized.strokeDashoffset, transform: "rotate("
|
|
135
|
-
React__default
|
|
136
|
-
_d[styles__default
|
|
132
|
+
: memorized.strokeDashoffset, transform: "rotate(".concat(-90, " ").concat(memorized.center, " ").concat(memorized.center, ")") })),
|
|
133
|
+
React__default.default.createElement("div", { className: cn__default.default(styles__default.default.labelWrapper, (_d = {},
|
|
134
|
+
_d[styles__default.default.label] = Icon || IconComplete,
|
|
137
135
|
_d)) }, children || renderContent())));
|
|
138
136
|
};
|
|
139
137
|
|
package/cssm/index.js
CHANGED
package/esm/Component.js
CHANGED
|
@@ -29,7 +29,7 @@ var __assign = function () {
|
|
|
29
29
|
return __assign.apply(this, arguments);
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
var styles = {"component":"circular-progress-
|
|
32
|
+
var styles = {"component":"circular-progress-bar__component_1brjj","svg":"circular-progress-bar__svg_1brjj","title":"circular-progress-bar__title_1brjj","subtitle":"circular-progress-bar__subtitle_1brjj","labelWrapper":"circular-progress-bar__labelWrapper_1brjj","label":"circular-progress-bar__label_1brjj","typography":"circular-progress-bar__typography_1brjj","xxl":"circular-progress-bar__xxl_1brjj","xl":"circular-progress-bar__xl_1brjj","l":"circular-progress-bar__l_1brjj","m":"circular-progress-bar__m_1brjj","s":"circular-progress-bar__s_1brjj","xs":"circular-progress-bar__xs_1brjj","backgroundCircle":"circular-progress-bar__backgroundCircle_1brjj","progressCircle":"circular-progress-bar__progressCircle_1brjj","positive":"circular-progress-bar__positive_1brjj","negative":"circular-progress-bar__negative_1brjj","stroke":"circular-progress-bar__stroke_1brjj","bg-positive":"circular-progress-bar__bg-positive_1brjj","bg-negative":"circular-progress-bar__bg-negative_1brjj","iconWrapper":"circular-progress-bar__iconWrapper_1brjj","icon-tertiary":"circular-progress-bar__icon-tertiary_1brjj","icon-positive":"circular-progress-bar__icon-positive_1brjj","icon-negative":"circular-progress-bar__icon-negative_1brjj","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_1brjj","icon-primary":"circular-progress-bar__icon-primary_1brjj","icon-secondary":"circular-progress-bar__icon-secondary_1brjj","icon":"circular-progress-bar__icon_1brjj"};
|
|
33
33
|
require('./index.css')
|
|
34
34
|
|
|
35
35
|
var SIZES = {
|
|
@@ -105,8 +105,8 @@ var CircularProgressBar = function (_a) {
|
|
|
105
105
|
};
|
|
106
106
|
var renderIcon = function () {
|
|
107
107
|
var _a;
|
|
108
|
-
return (React.createElement("span", { className: cn(styles.iconWrapper, styles[size], styles.tertiary, styles["icon-"
|
|
109
|
-
_a[styles["icon-"
|
|
108
|
+
return (React.createElement("span", { className: cn(styles.iconWrapper, styles[size], styles.tertiary, styles["icon-".concat(contentColor)], (_a = {},
|
|
109
|
+
_a[styles["icon-".concat(completeIconColor)]] = completeIconColor,
|
|
110
110
|
_a)) }, IconComponent && React.createElement(IconComponent, { className: styles.icon })));
|
|
111
111
|
};
|
|
112
112
|
var renderContent = function () {
|
|
@@ -115,15 +115,15 @@ var CircularProgressBar = function (_a) {
|
|
|
115
115
|
SIZES[size] > 64 && renderSubTitle()));
|
|
116
116
|
};
|
|
117
117
|
return (React.createElement("div", { className: cn(styles.component, styles[size], className), style: __assign({}, (height && { height: height, width: height })), "data-test-id": dataTestId },
|
|
118
|
-
React.createElement("svg", { viewBox: "0 0 "
|
|
118
|
+
React.createElement("svg", { viewBox: "0 0 ".concat(memorized.widthSVG, " ").concat(memorized.heightSVG), className: styles.svg, xmlns: 'http://www.w3.org/2000/svg' },
|
|
119
119
|
React.createElement("circle", { className: cn(styles.backgroundCircle, styles[size], (_b = {},
|
|
120
120
|
_b[styles.stroke] = !stroke,
|
|
121
121
|
_b)), cx: memorized.center, cy: memorized.center, r: memorized.radius, strokeWidth: STROKE[size] }),
|
|
122
122
|
React.createElement("circle", { className: cn(styles.progressCircle, styles[view], styles[size], (_c = {},
|
|
123
|
-
_c[styles["bg-"
|
|
123
|
+
_c[styles["bg-".concat(view)]] = fillComplete && isComplete,
|
|
124
124
|
_c)), cx: memorized.center, cy: memorized.center, r: memorized.radius, strokeWidth: STROKE[size], strokeDasharray: memorized.strokeDasharray, strokeDashoffset: direction === 'counter-clockwise'
|
|
125
125
|
? -memorized.strokeDashoffset
|
|
126
|
-
: memorized.strokeDashoffset, transform: "rotate("
|
|
126
|
+
: memorized.strokeDashoffset, transform: "rotate(".concat(-90, " ").concat(memorized.center, " ").concat(memorized.center, ")") })),
|
|
127
127
|
React.createElement("div", { className: cn(styles.labelWrapper, (_d = {},
|
|
128
128
|
_d[styles.label] = Icon || IconComplete,
|
|
129
129
|
_d)) }, children || renderContent())));
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tbp0 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-tertiary: #e7e9eb;
|
|
4
4
|
--color-light-graphic-negative: #f15045;
|
|
@@ -34,28 +34,28 @@
|
|
|
34
34
|
--circular-progress-bar-font-family: var(--font-family-system);
|
|
35
35
|
--circular-progress-bar-font-weight: 600;
|
|
36
36
|
}
|
|
37
|
-
.circular-progress-
|
|
37
|
+
.circular-progress-bar__component_1brjj {
|
|
38
38
|
position: relative;
|
|
39
39
|
display: flex;
|
|
40
40
|
justify-content: center;
|
|
41
41
|
align-items: center;
|
|
42
42
|
}
|
|
43
|
-
.circular-progress-
|
|
43
|
+
.circular-progress-bar__svg_1brjj {
|
|
44
44
|
display: block;
|
|
45
45
|
width: 100%;
|
|
46
46
|
}
|
|
47
|
-
.circular-progress-
|
|
48
|
-
.circular-progress-
|
|
47
|
+
.circular-progress-bar__title_1brjj,
|
|
48
|
+
.circular-progress-bar__subtitle_1brjj {
|
|
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
54
|
}
|
|
55
|
-
.circular-progress-
|
|
55
|
+
.circular-progress-bar__subtitle_1brjj {
|
|
56
56
|
max-height: 40px;
|
|
57
57
|
}
|
|
58
|
-
.circular-progress-
|
|
58
|
+
.circular-progress-bar__labelWrapper_1brjj {
|
|
59
59
|
text-align: center;
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
@@ -63,150 +63,150 @@
|
|
|
63
63
|
width: 100%;
|
|
64
64
|
transform: translate(-50%, -50%)
|
|
65
65
|
}
|
|
66
|
-
.circular-progress-
|
|
66
|
+
.circular-progress-bar__labelWrapper_1brjj.circular-progress-bar__label_1brjj {
|
|
67
67
|
display: flex;
|
|
68
68
|
align-items: center;
|
|
69
69
|
justify-content: center;
|
|
70
70
|
}
|
|
71
|
-
.circular-progress-
|
|
71
|
+
.circular-progress-bar__typography_1brjj {
|
|
72
72
|
font-feature-settings: 'ss01';
|
|
73
73
|
font-weight: var(--circular-progress-bar-font-weight);
|
|
74
74
|
font-family: var(--circular-progress-bar-font-family);
|
|
75
75
|
}
|
|
76
|
-
.circular-progress-
|
|
76
|
+
.circular-progress-bar__xxl_1brjj {
|
|
77
77
|
width: 144px;
|
|
78
78
|
height: 144px
|
|
79
79
|
}
|
|
80
|
-
.circular-progress-
|
|
80
|
+
.circular-progress-bar__xxl_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
81
81
|
max-width: 128px;
|
|
82
82
|
}
|
|
83
|
-
.circular-progress-
|
|
83
|
+
.circular-progress-bar__xxl_1brjj .circular-progress-bar__title_1brjj {
|
|
84
84
|
max-height: 32px;
|
|
85
85
|
}
|
|
86
|
-
.circular-progress-
|
|
86
|
+
.circular-progress-bar__xl_1brjj {
|
|
87
87
|
width: 128px;
|
|
88
88
|
height: 128px
|
|
89
89
|
}
|
|
90
|
-
.circular-progress-
|
|
90
|
+
.circular-progress-bar__xl_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
91
91
|
max-width: 108px;
|
|
92
92
|
}
|
|
93
|
-
.circular-progress-
|
|
93
|
+
.circular-progress-bar__xl_1brjj .circular-progress-bar__title_1brjj {
|
|
94
94
|
max-height: 32px;
|
|
95
95
|
}
|
|
96
|
-
.circular-progress-
|
|
96
|
+
.circular-progress-bar__l_1brjj {
|
|
97
97
|
width: 80px;
|
|
98
98
|
height: 80px
|
|
99
99
|
}
|
|
100
|
-
.circular-progress-
|
|
100
|
+
.circular-progress-bar__l_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
101
101
|
max-width: 64px;
|
|
102
102
|
}
|
|
103
|
-
.circular-progress-
|
|
103
|
+
.circular-progress-bar__l_1brjj .circular-progress-bar__title_1brjj {
|
|
104
104
|
max-height: 24px;
|
|
105
105
|
}
|
|
106
|
-
.circular-progress-
|
|
106
|
+
.circular-progress-bar__m_1brjj {
|
|
107
107
|
width: 64px;
|
|
108
108
|
height: 64px
|
|
109
109
|
}
|
|
110
|
-
.circular-progress-
|
|
110
|
+
.circular-progress-bar__m_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
111
111
|
max-width: 48px;
|
|
112
112
|
}
|
|
113
|
-
.circular-progress-
|
|
113
|
+
.circular-progress-bar__m_1brjj .circular-progress-bar__title_1brjj {
|
|
114
114
|
max-height: 16px;
|
|
115
115
|
margin: 0;
|
|
116
116
|
}
|
|
117
|
-
.circular-progress-
|
|
117
|
+
.circular-progress-bar__s_1brjj {
|
|
118
118
|
width: 48px;
|
|
119
119
|
height: 48px
|
|
120
120
|
}
|
|
121
|
-
.circular-progress-
|
|
121
|
+
.circular-progress-bar__s_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
122
122
|
max-width: 40px;
|
|
123
123
|
}
|
|
124
|
-
.circular-progress-
|
|
124
|
+
.circular-progress-bar__s_1brjj .circular-progress-bar__title_1brjj {
|
|
125
125
|
max-height: 16px;
|
|
126
126
|
margin: 0;
|
|
127
127
|
}
|
|
128
|
-
.circular-progress-
|
|
128
|
+
.circular-progress-bar__xs_1brjj {
|
|
129
129
|
width: 24px;
|
|
130
130
|
height: 24px
|
|
131
131
|
}
|
|
132
|
-
.circular-progress-
|
|
132
|
+
.circular-progress-bar__xs_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
133
133
|
max-width: 24px;
|
|
134
134
|
}
|
|
135
|
-
.circular-progress-
|
|
136
|
-
.circular-progress-
|
|
135
|
+
.circular-progress-bar__backgroundCircle_1brjj,
|
|
136
|
+
.circular-progress-bar__progressCircle_1brjj {
|
|
137
137
|
width: 100%;
|
|
138
138
|
height: 100%;
|
|
139
139
|
fill: transparent;
|
|
140
140
|
}
|
|
141
|
-
.circular-progress-
|
|
141
|
+
.circular-progress-bar__positive_1brjj {
|
|
142
142
|
stroke: var(--circular-progress-bar-positive-color);
|
|
143
143
|
}
|
|
144
|
-
.circular-progress-
|
|
144
|
+
.circular-progress-bar__negative_1brjj {
|
|
145
145
|
stroke: var(--circular-progress-bar-negative-color);
|
|
146
146
|
}
|
|
147
|
-
.circular-progress-
|
|
147
|
+
.circular-progress-bar__backgroundCircle_1brjj {
|
|
148
148
|
stroke: var(--circular-progress-bar-bg-color)
|
|
149
149
|
}
|
|
150
|
-
.circular-progress-
|
|
150
|
+
.circular-progress-bar__backgroundCircle_1brjj.circular-progress-bar__stroke_1brjj {
|
|
151
151
|
stroke: transparent;
|
|
152
152
|
}
|
|
153
|
-
.circular-progress-
|
|
153
|
+
.circular-progress-bar__progressCircle_1brjj {
|
|
154
154
|
stroke-linecap: round
|
|
155
155
|
}
|
|
156
|
-
.circular-progress-
|
|
156
|
+
.circular-progress-bar__progressCircle_1brjj.circular-progress-bar__bg-positive_1brjj {
|
|
157
157
|
fill: var(--circular-progress-bar-positive-color);
|
|
158
158
|
}
|
|
159
|
-
.circular-progress-
|
|
159
|
+
.circular-progress-bar__progressCircle_1brjj.circular-progress-bar__bg-negative_1brjj {
|
|
160
160
|
fill: var(--circular-progress-bar-negative-color);
|
|
161
161
|
}
|
|
162
|
-
.circular-progress-
|
|
162
|
+
.circular-progress-bar__iconWrapper_1brjj {
|
|
163
163
|
display: flex;
|
|
164
164
|
align-items: center;
|
|
165
165
|
justify-content: center
|
|
166
166
|
}
|
|
167
|
-
.circular-progress-
|
|
167
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__xxl_1brjj {
|
|
168
168
|
max-width: 64px;
|
|
169
169
|
max-height: 64px;
|
|
170
170
|
}
|
|
171
|
-
.circular-progress-
|
|
171
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__xl_1brjj {
|
|
172
172
|
max-width: 64px;
|
|
173
173
|
max-height: 64px;
|
|
174
174
|
}
|
|
175
|
-
.circular-progress-
|
|
175
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__l_1brjj {
|
|
176
176
|
max-width: 48px;
|
|
177
177
|
max-height: 48px;
|
|
178
178
|
}
|
|
179
|
-
.circular-progress-
|
|
179
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__m_1brjj {
|
|
180
180
|
max-width: 36px;
|
|
181
181
|
max-height: 36px;
|
|
182
182
|
}
|
|
183
|
-
.circular-progress-
|
|
183
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__s_1brjj {
|
|
184
184
|
max-width: 24px;
|
|
185
185
|
max-height: 24px;
|
|
186
186
|
}
|
|
187
|
-
.circular-progress-
|
|
187
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__xs_1brjj {
|
|
188
188
|
max-width: 16px;
|
|
189
189
|
max-height: 16px;
|
|
190
190
|
}
|
|
191
|
-
.circular-progress-
|
|
191
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-tertiary_1brjj {
|
|
192
192
|
color: var(--color-light-graphic-tertiary);
|
|
193
193
|
}
|
|
194
|
-
.circular-progress-
|
|
194
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-positive_1brjj {
|
|
195
195
|
color: var(--color-light-graphic-positive);
|
|
196
196
|
}
|
|
197
|
-
.circular-progress-
|
|
197
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-negative_1brjj {
|
|
198
198
|
color: var(--color-light-graphic-negative);
|
|
199
199
|
}
|
|
200
|
-
.circular-progress-
|
|
200
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-primary-inverted_1brjj {
|
|
201
201
|
color: var(--color-light-graphic-primary-inverted);
|
|
202
202
|
}
|
|
203
|
-
.circular-progress-
|
|
203
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-primary_1brjj {
|
|
204
204
|
color: var(--color-light-graphic-primary);
|
|
205
205
|
}
|
|
206
|
-
.circular-progress-
|
|
206
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-secondary_1brjj {
|
|
207
207
|
color: var(--color-light-graphic-secondary);
|
|
208
208
|
}
|
|
209
|
-
.circular-progress-
|
|
209
|
+
.circular-progress-bar__icon_1brjj {
|
|
210
210
|
width: 100%;
|
|
211
211
|
height: 100%;
|
|
212
212
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tbp0 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-tertiary: #e7e9eb;
|
|
4
4
|
--color-light-graphic-negative: #f15045;
|
|
@@ -34,28 +34,28 @@
|
|
|
34
34
|
--circular-progress-bar-font-family: var(--font-family-system);
|
|
35
35
|
--circular-progress-bar-font-weight: 600;
|
|
36
36
|
}
|
|
37
|
-
.circular-progress-
|
|
37
|
+
.circular-progress-bar__component_1brjj {
|
|
38
38
|
position: relative;
|
|
39
39
|
display: flex;
|
|
40
40
|
justify-content: center;
|
|
41
41
|
align-items: center;
|
|
42
42
|
}
|
|
43
|
-
.circular-progress-
|
|
43
|
+
.circular-progress-bar__svg_1brjj {
|
|
44
44
|
display: block;
|
|
45
45
|
width: 100%;
|
|
46
46
|
}
|
|
47
|
-
.circular-progress-
|
|
48
|
-
.circular-progress-
|
|
47
|
+
.circular-progress-bar__title_1brjj,
|
|
48
|
+
.circular-progress-bar__subtitle_1brjj {
|
|
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
54
|
}
|
|
55
|
-
.circular-progress-
|
|
55
|
+
.circular-progress-bar__subtitle_1brjj {
|
|
56
56
|
max-height: 40px;
|
|
57
57
|
}
|
|
58
|
-
.circular-progress-
|
|
58
|
+
.circular-progress-bar__labelWrapper_1brjj {
|
|
59
59
|
text-align: center;
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
@@ -63,150 +63,150 @@
|
|
|
63
63
|
width: 100%;
|
|
64
64
|
transform: translate(-50%, -50%)
|
|
65
65
|
}
|
|
66
|
-
.circular-progress-
|
|
66
|
+
.circular-progress-bar__labelWrapper_1brjj.circular-progress-bar__label_1brjj {
|
|
67
67
|
display: flex;
|
|
68
68
|
align-items: center;
|
|
69
69
|
justify-content: center;
|
|
70
70
|
}
|
|
71
|
-
.circular-progress-
|
|
71
|
+
.circular-progress-bar__typography_1brjj {
|
|
72
72
|
font-feature-settings: 'ss01';
|
|
73
73
|
font-weight: var(--circular-progress-bar-font-weight);
|
|
74
74
|
font-family: var(--circular-progress-bar-font-family);
|
|
75
75
|
}
|
|
76
|
-
.circular-progress-
|
|
76
|
+
.circular-progress-bar__xxl_1brjj {
|
|
77
77
|
width: 144px;
|
|
78
78
|
height: 144px
|
|
79
79
|
}
|
|
80
|
-
.circular-progress-
|
|
80
|
+
.circular-progress-bar__xxl_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
81
81
|
max-width: 128px;
|
|
82
82
|
}
|
|
83
|
-
.circular-progress-
|
|
83
|
+
.circular-progress-bar__xxl_1brjj .circular-progress-bar__title_1brjj {
|
|
84
84
|
max-height: 32px;
|
|
85
85
|
}
|
|
86
|
-
.circular-progress-
|
|
86
|
+
.circular-progress-bar__xl_1brjj {
|
|
87
87
|
width: 128px;
|
|
88
88
|
height: 128px
|
|
89
89
|
}
|
|
90
|
-
.circular-progress-
|
|
90
|
+
.circular-progress-bar__xl_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
91
91
|
max-width: 108px;
|
|
92
92
|
}
|
|
93
|
-
.circular-progress-
|
|
93
|
+
.circular-progress-bar__xl_1brjj .circular-progress-bar__title_1brjj {
|
|
94
94
|
max-height: 32px;
|
|
95
95
|
}
|
|
96
|
-
.circular-progress-
|
|
96
|
+
.circular-progress-bar__l_1brjj {
|
|
97
97
|
width: 80px;
|
|
98
98
|
height: 80px
|
|
99
99
|
}
|
|
100
|
-
.circular-progress-
|
|
100
|
+
.circular-progress-bar__l_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
101
101
|
max-width: 64px;
|
|
102
102
|
}
|
|
103
|
-
.circular-progress-
|
|
103
|
+
.circular-progress-bar__l_1brjj .circular-progress-bar__title_1brjj {
|
|
104
104
|
max-height: 24px;
|
|
105
105
|
}
|
|
106
|
-
.circular-progress-
|
|
106
|
+
.circular-progress-bar__m_1brjj {
|
|
107
107
|
width: 64px;
|
|
108
108
|
height: 64px
|
|
109
109
|
}
|
|
110
|
-
.circular-progress-
|
|
110
|
+
.circular-progress-bar__m_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
111
111
|
max-width: 48px;
|
|
112
112
|
}
|
|
113
|
-
.circular-progress-
|
|
113
|
+
.circular-progress-bar__m_1brjj .circular-progress-bar__title_1brjj {
|
|
114
114
|
max-height: 16px;
|
|
115
115
|
margin: 0;
|
|
116
116
|
}
|
|
117
|
-
.circular-progress-
|
|
117
|
+
.circular-progress-bar__s_1brjj {
|
|
118
118
|
width: 48px;
|
|
119
119
|
height: 48px
|
|
120
120
|
}
|
|
121
|
-
.circular-progress-
|
|
121
|
+
.circular-progress-bar__s_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
122
122
|
max-width: 40px;
|
|
123
123
|
}
|
|
124
|
-
.circular-progress-
|
|
124
|
+
.circular-progress-bar__s_1brjj .circular-progress-bar__title_1brjj {
|
|
125
125
|
max-height: 16px;
|
|
126
126
|
margin: 0;
|
|
127
127
|
}
|
|
128
|
-
.circular-progress-
|
|
128
|
+
.circular-progress-bar__xs_1brjj {
|
|
129
129
|
width: 24px;
|
|
130
130
|
height: 24px
|
|
131
131
|
}
|
|
132
|
-
.circular-progress-
|
|
132
|
+
.circular-progress-bar__xs_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
133
133
|
max-width: 24px;
|
|
134
134
|
}
|
|
135
|
-
.circular-progress-
|
|
136
|
-
.circular-progress-
|
|
135
|
+
.circular-progress-bar__backgroundCircle_1brjj,
|
|
136
|
+
.circular-progress-bar__progressCircle_1brjj {
|
|
137
137
|
width: 100%;
|
|
138
138
|
height: 100%;
|
|
139
139
|
fill: transparent;
|
|
140
140
|
}
|
|
141
|
-
.circular-progress-
|
|
141
|
+
.circular-progress-bar__positive_1brjj {
|
|
142
142
|
stroke: var(--circular-progress-bar-positive-color);
|
|
143
143
|
}
|
|
144
|
-
.circular-progress-
|
|
144
|
+
.circular-progress-bar__negative_1brjj {
|
|
145
145
|
stroke: var(--circular-progress-bar-negative-color);
|
|
146
146
|
}
|
|
147
|
-
.circular-progress-
|
|
147
|
+
.circular-progress-bar__backgroundCircle_1brjj {
|
|
148
148
|
stroke: var(--circular-progress-bar-bg-color)
|
|
149
149
|
}
|
|
150
|
-
.circular-progress-
|
|
150
|
+
.circular-progress-bar__backgroundCircle_1brjj.circular-progress-bar__stroke_1brjj {
|
|
151
151
|
stroke: transparent;
|
|
152
152
|
}
|
|
153
|
-
.circular-progress-
|
|
153
|
+
.circular-progress-bar__progressCircle_1brjj {
|
|
154
154
|
stroke-linecap: round
|
|
155
155
|
}
|
|
156
|
-
.circular-progress-
|
|
156
|
+
.circular-progress-bar__progressCircle_1brjj.circular-progress-bar__bg-positive_1brjj {
|
|
157
157
|
fill: var(--circular-progress-bar-positive-color);
|
|
158
158
|
}
|
|
159
|
-
.circular-progress-
|
|
159
|
+
.circular-progress-bar__progressCircle_1brjj.circular-progress-bar__bg-negative_1brjj {
|
|
160
160
|
fill: var(--circular-progress-bar-negative-color);
|
|
161
161
|
}
|
|
162
|
-
.circular-progress-
|
|
162
|
+
.circular-progress-bar__iconWrapper_1brjj {
|
|
163
163
|
display: flex;
|
|
164
164
|
align-items: center;
|
|
165
165
|
justify-content: center
|
|
166
166
|
}
|
|
167
|
-
.circular-progress-
|
|
167
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__xxl_1brjj {
|
|
168
168
|
max-width: 64px;
|
|
169
169
|
max-height: 64px;
|
|
170
170
|
}
|
|
171
|
-
.circular-progress-
|
|
171
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__xl_1brjj {
|
|
172
172
|
max-width: 64px;
|
|
173
173
|
max-height: 64px;
|
|
174
174
|
}
|
|
175
|
-
.circular-progress-
|
|
175
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__l_1brjj {
|
|
176
176
|
max-width: 48px;
|
|
177
177
|
max-height: 48px;
|
|
178
178
|
}
|
|
179
|
-
.circular-progress-
|
|
179
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__m_1brjj {
|
|
180
180
|
max-width: 36px;
|
|
181
181
|
max-height: 36px;
|
|
182
182
|
}
|
|
183
|
-
.circular-progress-
|
|
183
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__s_1brjj {
|
|
184
184
|
max-width: 24px;
|
|
185
185
|
max-height: 24px;
|
|
186
186
|
}
|
|
187
|
-
.circular-progress-
|
|
187
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__xs_1brjj {
|
|
188
188
|
max-width: 16px;
|
|
189
189
|
max-height: 16px;
|
|
190
190
|
}
|
|
191
|
-
.circular-progress-
|
|
191
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-tertiary_1brjj {
|
|
192
192
|
color: var(--color-light-graphic-tertiary);
|
|
193
193
|
}
|
|
194
|
-
.circular-progress-
|
|
194
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-positive_1brjj {
|
|
195
195
|
color: var(--color-light-graphic-positive);
|
|
196
196
|
}
|
|
197
|
-
.circular-progress-
|
|
197
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-negative_1brjj {
|
|
198
198
|
color: var(--color-light-graphic-negative);
|
|
199
199
|
}
|
|
200
|
-
.circular-progress-
|
|
200
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-primary-inverted_1brjj {
|
|
201
201
|
color: var(--color-light-graphic-primary-inverted);
|
|
202
202
|
}
|
|
203
|
-
.circular-progress-
|
|
203
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-primary_1brjj {
|
|
204
204
|
color: var(--color-light-graphic-primary);
|
|
205
205
|
}
|
|
206
|
-
.circular-progress-
|
|
206
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-secondary_1brjj {
|
|
207
207
|
color: var(--color-light-graphic-secondary);
|
|
208
208
|
}
|
|
209
|
-
.circular-progress-
|
|
209
|
+
.circular-progress-bar__icon_1brjj {
|
|
210
210
|
width: 100%;
|
|
211
211
|
height: 100%;
|
|
212
212
|
}
|
package/index.js
CHANGED
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
|
-
|
|
5
|
+
const styles = {"component":"circular-progress-bar__component_1brjj","svg":"circular-progress-bar__svg_1brjj","title":"circular-progress-bar__title_1brjj","subtitle":"circular-progress-bar__subtitle_1brjj","labelWrapper":"circular-progress-bar__labelWrapper_1brjj","label":"circular-progress-bar__label_1brjj","typography":"circular-progress-bar__typography_1brjj","xxl":"circular-progress-bar__xxl_1brjj","xl":"circular-progress-bar__xl_1brjj","l":"circular-progress-bar__l_1brjj","m":"circular-progress-bar__m_1brjj","s":"circular-progress-bar__s_1brjj","xs":"circular-progress-bar__xs_1brjj","backgroundCircle":"circular-progress-bar__backgroundCircle_1brjj","progressCircle":"circular-progress-bar__progressCircle_1brjj","positive":"circular-progress-bar__positive_1brjj","negative":"circular-progress-bar__negative_1brjj","stroke":"circular-progress-bar__stroke_1brjj","bg-positive":"circular-progress-bar__bg-positive_1brjj","bg-negative":"circular-progress-bar__bg-negative_1brjj","iconWrapper":"circular-progress-bar__iconWrapper_1brjj","icon-tertiary":"circular-progress-bar__icon-tertiary_1brjj","icon-positive":"circular-progress-bar__icon-positive_1brjj","icon-negative":"circular-progress-bar__icon-negative_1brjj","icon-primary-inverted":"circular-progress-bar__icon-primary-inverted_1brjj","icon-primary":"circular-progress-bar__icon-primary_1brjj","icon-secondary":"circular-progress-bar__icon-secondary_1brjj","icon":"circular-progress-bar__icon_1brjj"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const SIZES = {
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tbp0 */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-tertiary: #e7e9eb;
|
|
4
4
|
--color-light-graphic-negative: #f15045;
|
|
@@ -34,28 +34,28 @@
|
|
|
34
34
|
--circular-progress-bar-font-family: var(--font-family-system);
|
|
35
35
|
--circular-progress-bar-font-weight: 600;
|
|
36
36
|
}
|
|
37
|
-
.circular-progress-
|
|
37
|
+
.circular-progress-bar__component_1brjj {
|
|
38
38
|
position: relative;
|
|
39
39
|
display: flex;
|
|
40
40
|
justify-content: center;
|
|
41
41
|
align-items: center;
|
|
42
42
|
}
|
|
43
|
-
.circular-progress-
|
|
43
|
+
.circular-progress-bar__svg_1brjj {
|
|
44
44
|
display: block;
|
|
45
45
|
width: 100%;
|
|
46
46
|
}
|
|
47
|
-
.circular-progress-
|
|
48
|
-
.circular-progress-
|
|
47
|
+
.circular-progress-bar__title_1brjj,
|
|
48
|
+
.circular-progress-bar__subtitle_1brjj {
|
|
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
54
|
}
|
|
55
|
-
.circular-progress-
|
|
55
|
+
.circular-progress-bar__subtitle_1brjj {
|
|
56
56
|
max-height: 40px;
|
|
57
57
|
}
|
|
58
|
-
.circular-progress-
|
|
58
|
+
.circular-progress-bar__labelWrapper_1brjj {
|
|
59
59
|
text-align: center;
|
|
60
60
|
position: absolute;
|
|
61
61
|
top: 50%;
|
|
@@ -63,150 +63,150 @@
|
|
|
63
63
|
width: 100%;
|
|
64
64
|
transform: translate(-50%, -50%)
|
|
65
65
|
}
|
|
66
|
-
.circular-progress-
|
|
66
|
+
.circular-progress-bar__labelWrapper_1brjj.circular-progress-bar__label_1brjj {
|
|
67
67
|
display: flex;
|
|
68
68
|
align-items: center;
|
|
69
69
|
justify-content: center;
|
|
70
70
|
}
|
|
71
|
-
.circular-progress-
|
|
71
|
+
.circular-progress-bar__typography_1brjj {
|
|
72
72
|
font-feature-settings: 'ss01';
|
|
73
73
|
font-weight: var(--circular-progress-bar-font-weight);
|
|
74
74
|
font-family: var(--circular-progress-bar-font-family);
|
|
75
75
|
}
|
|
76
|
-
.circular-progress-
|
|
76
|
+
.circular-progress-bar__xxl_1brjj {
|
|
77
77
|
width: 144px;
|
|
78
78
|
height: 144px
|
|
79
79
|
}
|
|
80
|
-
.circular-progress-
|
|
80
|
+
.circular-progress-bar__xxl_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
81
81
|
max-width: 128px;
|
|
82
82
|
}
|
|
83
|
-
.circular-progress-
|
|
83
|
+
.circular-progress-bar__xxl_1brjj .circular-progress-bar__title_1brjj {
|
|
84
84
|
max-height: 32px;
|
|
85
85
|
}
|
|
86
|
-
.circular-progress-
|
|
86
|
+
.circular-progress-bar__xl_1brjj {
|
|
87
87
|
width: 128px;
|
|
88
88
|
height: 128px
|
|
89
89
|
}
|
|
90
|
-
.circular-progress-
|
|
90
|
+
.circular-progress-bar__xl_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
91
91
|
max-width: 108px;
|
|
92
92
|
}
|
|
93
|
-
.circular-progress-
|
|
93
|
+
.circular-progress-bar__xl_1brjj .circular-progress-bar__title_1brjj {
|
|
94
94
|
max-height: 32px;
|
|
95
95
|
}
|
|
96
|
-
.circular-progress-
|
|
96
|
+
.circular-progress-bar__l_1brjj {
|
|
97
97
|
width: 80px;
|
|
98
98
|
height: 80px
|
|
99
99
|
}
|
|
100
|
-
.circular-progress-
|
|
100
|
+
.circular-progress-bar__l_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
101
101
|
max-width: 64px;
|
|
102
102
|
}
|
|
103
|
-
.circular-progress-
|
|
103
|
+
.circular-progress-bar__l_1brjj .circular-progress-bar__title_1brjj {
|
|
104
104
|
max-height: 24px;
|
|
105
105
|
}
|
|
106
|
-
.circular-progress-
|
|
106
|
+
.circular-progress-bar__m_1brjj {
|
|
107
107
|
width: 64px;
|
|
108
108
|
height: 64px
|
|
109
109
|
}
|
|
110
|
-
.circular-progress-
|
|
110
|
+
.circular-progress-bar__m_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
111
111
|
max-width: 48px;
|
|
112
112
|
}
|
|
113
|
-
.circular-progress-
|
|
113
|
+
.circular-progress-bar__m_1brjj .circular-progress-bar__title_1brjj {
|
|
114
114
|
max-height: 16px;
|
|
115
115
|
margin: 0;
|
|
116
116
|
}
|
|
117
|
-
.circular-progress-
|
|
117
|
+
.circular-progress-bar__s_1brjj {
|
|
118
118
|
width: 48px;
|
|
119
119
|
height: 48px
|
|
120
120
|
}
|
|
121
|
-
.circular-progress-
|
|
121
|
+
.circular-progress-bar__s_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
122
122
|
max-width: 40px;
|
|
123
123
|
}
|
|
124
|
-
.circular-progress-
|
|
124
|
+
.circular-progress-bar__s_1brjj .circular-progress-bar__title_1brjj {
|
|
125
125
|
max-height: 16px;
|
|
126
126
|
margin: 0;
|
|
127
127
|
}
|
|
128
|
-
.circular-progress-
|
|
128
|
+
.circular-progress-bar__xs_1brjj {
|
|
129
129
|
width: 24px;
|
|
130
130
|
height: 24px
|
|
131
131
|
}
|
|
132
|
-
.circular-progress-
|
|
132
|
+
.circular-progress-bar__xs_1brjj .circular-progress-bar__labelWrapper_1brjj {
|
|
133
133
|
max-width: 24px;
|
|
134
134
|
}
|
|
135
|
-
.circular-progress-
|
|
136
|
-
.circular-progress-
|
|
135
|
+
.circular-progress-bar__backgroundCircle_1brjj,
|
|
136
|
+
.circular-progress-bar__progressCircle_1brjj {
|
|
137
137
|
width: 100%;
|
|
138
138
|
height: 100%;
|
|
139
139
|
fill: transparent;
|
|
140
140
|
}
|
|
141
|
-
.circular-progress-
|
|
141
|
+
.circular-progress-bar__positive_1brjj {
|
|
142
142
|
stroke: var(--circular-progress-bar-positive-color);
|
|
143
143
|
}
|
|
144
|
-
.circular-progress-
|
|
144
|
+
.circular-progress-bar__negative_1brjj {
|
|
145
145
|
stroke: var(--circular-progress-bar-negative-color);
|
|
146
146
|
}
|
|
147
|
-
.circular-progress-
|
|
147
|
+
.circular-progress-bar__backgroundCircle_1brjj {
|
|
148
148
|
stroke: var(--circular-progress-bar-bg-color)
|
|
149
149
|
}
|
|
150
|
-
.circular-progress-
|
|
150
|
+
.circular-progress-bar__backgroundCircle_1brjj.circular-progress-bar__stroke_1brjj {
|
|
151
151
|
stroke: transparent;
|
|
152
152
|
}
|
|
153
|
-
.circular-progress-
|
|
153
|
+
.circular-progress-bar__progressCircle_1brjj {
|
|
154
154
|
stroke-linecap: round
|
|
155
155
|
}
|
|
156
|
-
.circular-progress-
|
|
156
|
+
.circular-progress-bar__progressCircle_1brjj.circular-progress-bar__bg-positive_1brjj {
|
|
157
157
|
fill: var(--circular-progress-bar-positive-color);
|
|
158
158
|
}
|
|
159
|
-
.circular-progress-
|
|
159
|
+
.circular-progress-bar__progressCircle_1brjj.circular-progress-bar__bg-negative_1brjj {
|
|
160
160
|
fill: var(--circular-progress-bar-negative-color);
|
|
161
161
|
}
|
|
162
|
-
.circular-progress-
|
|
162
|
+
.circular-progress-bar__iconWrapper_1brjj {
|
|
163
163
|
display: flex;
|
|
164
164
|
align-items: center;
|
|
165
165
|
justify-content: center
|
|
166
166
|
}
|
|
167
|
-
.circular-progress-
|
|
167
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__xxl_1brjj {
|
|
168
168
|
max-width: 64px;
|
|
169
169
|
max-height: 64px;
|
|
170
170
|
}
|
|
171
|
-
.circular-progress-
|
|
171
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__xl_1brjj {
|
|
172
172
|
max-width: 64px;
|
|
173
173
|
max-height: 64px;
|
|
174
174
|
}
|
|
175
|
-
.circular-progress-
|
|
175
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__l_1brjj {
|
|
176
176
|
max-width: 48px;
|
|
177
177
|
max-height: 48px;
|
|
178
178
|
}
|
|
179
|
-
.circular-progress-
|
|
179
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__m_1brjj {
|
|
180
180
|
max-width: 36px;
|
|
181
181
|
max-height: 36px;
|
|
182
182
|
}
|
|
183
|
-
.circular-progress-
|
|
183
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__s_1brjj {
|
|
184
184
|
max-width: 24px;
|
|
185
185
|
max-height: 24px;
|
|
186
186
|
}
|
|
187
|
-
.circular-progress-
|
|
187
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__xs_1brjj {
|
|
188
188
|
max-width: 16px;
|
|
189
189
|
max-height: 16px;
|
|
190
190
|
}
|
|
191
|
-
.circular-progress-
|
|
191
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-tertiary_1brjj {
|
|
192
192
|
color: var(--color-light-graphic-tertiary);
|
|
193
193
|
}
|
|
194
|
-
.circular-progress-
|
|
194
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-positive_1brjj {
|
|
195
195
|
color: var(--color-light-graphic-positive);
|
|
196
196
|
}
|
|
197
|
-
.circular-progress-
|
|
197
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-negative_1brjj {
|
|
198
198
|
color: var(--color-light-graphic-negative);
|
|
199
199
|
}
|
|
200
|
-
.circular-progress-
|
|
200
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-primary-inverted_1brjj {
|
|
201
201
|
color: var(--color-light-graphic-primary-inverted);
|
|
202
202
|
}
|
|
203
|
-
.circular-progress-
|
|
203
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-primary_1brjj {
|
|
204
204
|
color: var(--color-light-graphic-primary);
|
|
205
205
|
}
|
|
206
|
-
.circular-progress-
|
|
206
|
+
.circular-progress-bar__iconWrapper_1brjj.circular-progress-bar__icon-secondary_1brjj {
|
|
207
207
|
color: var(--color-light-graphic-secondary);
|
|
208
208
|
}
|
|
209
|
-
.circular-progress-
|
|
209
|
+
.circular-progress-bar__icon_1brjj {
|
|
210
210
|
width: 100%;
|
|
211
211
|
height: 100%;
|
|
212
212
|
}
|
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.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"directory": "dist"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@alfalab/core-components-typography": "^3.0.
|
|
17
|
+
"@alfalab/core-components-typography": "^3.0.8",
|
|
18
18
|
"classnames": "^2.3.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|