@alfalab/core-components-circular-progress-bar 3.5.6 → 3.6.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.
@@ -0,0 +1,239 @@
1
+ /* */
2
+
3
+ :root {
4
+ /* stroke */
5
+ --circular-progress-bar-stroke-color: var(--color-light-neutral-translucent-300);
6
+
7
+ /* positive */
8
+ --circular-progress-bar-positive-color: var(--color-light-status-positive);
9
+
10
+ /* negative */
11
+ --circular-progress-bar-negative-color: var(--color-light-status-negative);
12
+
13
+ /* theme */
14
+ --circular-progress-bar-font-family: var(--font-family-system);
15
+ --circular-progress-bar-font-weight: 600;
16
+ }
17
+
18
+ .component {
19
+ position: relative;
20
+ display: flex;
21
+ justify-content: center;
22
+ align-items: center;
23
+ border-radius: var(--border-radius-pill)
24
+ }
25
+
26
+ .component.bg-positive {
27
+ background: var(--circular-progress-bar-positive-color);
28
+ }
29
+
30
+ .component.bg-negative {
31
+ background: var(--circular-progress-bar-negative-color);
32
+ }
33
+
34
+ .svg {
35
+ display: block;
36
+ width: 100%;
37
+ }
38
+
39
+ .title,
40
+ .subtitle {
41
+ overflow: hidden;
42
+ word-break: break-word;
43
+ white-space: nowrap;
44
+ text-overflow: ellipsis;
45
+ margin: var(--gap-0) 6px;
46
+ }
47
+
48
+ .subtitle {
49
+ max-height: 40px;
50
+ }
51
+
52
+ .labelWrapper {
53
+ text-align: center;
54
+ position: absolute;
55
+ top: 50%;
56
+ left: 50%;
57
+ width: 100%;
58
+ transform: translate(-50%, -50%)
59
+ }
60
+
61
+ .labelWrapper.label {
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+ }
66
+
67
+ .typography {
68
+ font-feature-settings: 'ss01';
69
+ font-weight: var(--circular-progress-bar-font-weight);
70
+ font-family: var(--circular-progress-bar-font-family);
71
+ }
72
+
73
+ .size-144 {
74
+ width: 144px;
75
+ height: 144px
76
+ }
77
+
78
+ .size-144 .labelWrapper {
79
+ max-width: 128px;
80
+ }
81
+
82
+ .size-144 .title {
83
+ max-height: 32px;
84
+ }
85
+
86
+ .size-128 {
87
+ width: 128px;
88
+ height: 128px
89
+ }
90
+
91
+ .size-128 .labelWrapper {
92
+ max-width: 108px;
93
+ }
94
+
95
+ .size-128 .title {
96
+ max-height: 32px;
97
+ }
98
+
99
+ .size-80 {
100
+ width: 80px;
101
+ height: 80px
102
+ }
103
+
104
+ .size-80 .labelWrapper {
105
+ max-width: 64px;
106
+ }
107
+
108
+ .size-80 .title {
109
+ max-height: 24px;
110
+ }
111
+
112
+ .size-64 {
113
+ width: 64px;
114
+ height: 64px
115
+ }
116
+
117
+ .size-64 .labelWrapper {
118
+ max-width: 48px;
119
+ }
120
+
121
+ .size-64 .title {
122
+ max-height: 16px;
123
+ margin: var(--gap-0);
124
+ }
125
+
126
+ .size-48 {
127
+ width: 48px;
128
+ height: 48px
129
+ }
130
+
131
+ .size-48 .labelWrapper {
132
+ max-width: 40px;
133
+ }
134
+
135
+ .size-48 .title {
136
+ max-height: 16px;
137
+ margin: var(--gap-0);
138
+ }
139
+
140
+ .size-24 {
141
+ width: 24px;
142
+ height: 24px
143
+ }
144
+
145
+ .size-24 .labelWrapper {
146
+ max-width: 24px;
147
+ }
148
+
149
+ .backgroundCircle,
150
+ .progressCircle {
151
+ width: 100%;
152
+ height: 100%;
153
+ fill: transparent;
154
+ }
155
+
156
+ .positive {
157
+ stroke: var(--circular-progress-bar-positive-color);
158
+ }
159
+
160
+ .negative {
161
+ stroke: var(--circular-progress-bar-negative-color);
162
+ }
163
+
164
+ .backgroundCircle {
165
+ stroke: var(--circular-progress-bar-stroke-color)
166
+ }
167
+
168
+ .backgroundCircle.stroke {
169
+ stroke: transparent;
170
+ }
171
+
172
+ .progressCircle {
173
+ stroke-linecap: round;
174
+ }
175
+
176
+ .iconWrapper {
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: center
180
+ }
181
+
182
+ .iconWrapper.size-144 {
183
+ max-width: 64px;
184
+ max-height: 64px;
185
+ }
186
+
187
+ .iconWrapper.size-128 {
188
+ max-width: 64px;
189
+ max-height: 64px;
190
+ }
191
+
192
+ .iconWrapper.size-80 {
193
+ max-width: 48px;
194
+ max-height: 48px;
195
+ }
196
+
197
+ .iconWrapper.size-64 {
198
+ max-width: 36px;
199
+ max-height: 36px;
200
+ }
201
+
202
+ .iconWrapper.size-48 {
203
+ max-width: 24px;
204
+ max-height: 24px;
205
+ }
206
+
207
+ .iconWrapper.size-24 {
208
+ max-width: 16px;
209
+ max-height: 16px;
210
+ }
211
+
212
+ .iconWrapper.icon-tertiary {
213
+ color: var(--color-light-neutral-500);
214
+ }
215
+
216
+ .iconWrapper.icon-positive {
217
+ color: var(--color-light-status-positive);
218
+ }
219
+
220
+ .iconWrapper.icon-negative {
221
+ color: var(--color-light-status-negative);
222
+ }
223
+
224
+ .iconWrapper.icon-primary-inverted {
225
+ color: var(--color-light-neutral-translucent-1300-inverted);
226
+ }
227
+
228
+ .iconWrapper.icon-primary {
229
+ color: var(--color-light-neutral-translucent-1300);
230
+ }
231
+
232
+ .iconWrapper.icon-secondary {
233
+ color: var(--color-light-neutral-700);
234
+ }
235
+
236
+ .icon {
237
+ width: 100%;
238
+ height: 100%;
239
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-circular-progress-bar",
3
- "version": "3.5.6",
3
+ "version": "3.6.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -11,13 +11,13 @@
11
11
  "directory": "dist"
12
12
  },
13
13
  "dependencies": {
14
- "@alfalab/core-components-typography": "^4.9.0",
14
+ "@alfalab/core-components-typography": "^4.10.1",
15
15
  "classnames": "^2.3.1",
16
16
  "tslib": "^2.4.0"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
20
20
  },
21
- "themesVersion": "13.0.2",
22
- "varsVersion": "9.11.1"
21
+ "themesVersion": "13.2.0",
22
+ "varsVersion": "9.13.0"
23
23
  }
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-themes/src/default.css';
1
+ @import '@alfalab/core-components-vars/src/index.css';
2
2
 
3
3
  :root {
4
4
  /* stroke */
@@ -42,7 +42,7 @@
42
42
  word-break: break-word;
43
43
  white-space: nowrap;
44
44
  text-overflow: ellipsis;
45
- margin: 0 6px;
45
+ margin: var(--gap-0) 6px;
46
46
  }
47
47
 
48
48
  .subtitle {
@@ -119,7 +119,7 @@
119
119
 
120
120
  & .title {
121
121
  max-height: 16px;
122
- margin: 0;
122
+ margin: var(--gap-0);
123
123
  }
124
124
  }
125
125
 
@@ -133,7 +133,7 @@
133
133
 
134
134
  & .title {
135
135
  max-height: 16px;
136
- margin: 0;
136
+ margin: var(--gap-0);
137
137
  }
138
138
  }
139
139