ywana-core8 0.1.74 → 0.1.76
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/ACCORDION_EVALUATION.md +583 -0
- package/CHECKBOX_EVALUATION.md +273 -0
- package/CHIP_EVALUATION.md +542 -0
- package/COLOR_EVALUATION.md +524 -0
- package/COMPONENTS_EVALUATION.md +477 -0
- package/FORM_EVALUATION.md +459 -0
- package/HEADER_EVALUATION.md +436 -0
- package/ICON_EVALUATION.md +254 -0
- package/LIST_EVALUATION.md +574 -0
- package/PROGRESS_EVALUATION.md +450 -0
- package/RADIO_EVALUATION.md +439 -0
- package/RADIO_VISUAL_FIX.md +183 -0
- package/SECTION_IMPROVEMENTS.md +153 -0
- package/SWITCH_EVALUATION.md +335 -0
- package/SWITCH_VISUAL_FIX.md +232 -0
- package/TAB_EVALUATION.md +626 -0
- package/TEXTFIELD_EVALUATION.md +747 -0
- package/TOOLTIP_FIX.md +157 -0
- package/TREE_EVALUATION.md +708 -0
- package/dist/index.cjs +7900 -1615
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +6094 -1122
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +7929 -1645
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7900 -1615
- package/dist/index.umd.js.map +1 -1
- package/jest.config.js +24 -0
- package/package.json +10 -1
- package/src/html/accordion.css +208 -4
- package/src/html/accordion.example.js +390 -0
- package/src/html/accordion.js +284 -28
- package/src/html/accordion.unit.test.js +334 -0
- package/src/html/button.css +157 -16
- package/src/html/button.example.js +374 -0
- package/src/html/button.js +240 -60
- package/src/html/button.test.js +422 -0
- package/src/html/checkbox.css +74 -2
- package/src/html/checkbox.example.js +316 -0
- package/src/html/checkbox.js +113 -26
- package/src/html/checkbox.test.js +285 -0
- package/src/html/chip.css +230 -19
- package/src/html/chip.example.js +355 -0
- package/src/html/chip.js +321 -25
- package/src/html/chip.test.js +425 -0
- package/src/html/color.css +435 -6
- package/src/html/color.example.js +527 -0
- package/src/html/color.js +458 -9
- package/src/html/color.test.js +362 -4
- package/src/html/components.example.js +492 -0
- package/src/html/components_enhanced.test.js +581 -0
- package/src/html/form.css +70 -3
- package/src/html/form.example.js +385 -0
- package/src/html/form.js +232 -34
- package/src/html/form.test.js +369 -0
- package/src/html/header2.css +264 -0
- package/src/html/header2.example.js +411 -0
- package/src/html/header2.js +203 -0
- package/src/html/header2.test.js +377 -0
- package/src/html/icon.css +20 -2
- package/src/html/icon.example.js +268 -0
- package/src/html/icon.js +86 -16
- package/src/html/icon.test.js +231 -0
- package/src/html/index.js +1 -1
- package/src/html/list.css +393 -1
- package/src/html/list.example.js +404 -0
- package/src/html/list.js +583 -40
- package/src/html/list.test.js +383 -0
- package/src/html/progress.css +707 -17
- package/src/html/progress.example.js +424 -0
- package/src/html/progress.js +906 -9
- package/src/html/progress.test.js +313 -0
- package/src/html/property.css +399 -0
- package/src/html/property.example.js +553 -0
- package/src/html/property.js +393 -15
- package/src/html/property.test.js +351 -2
- package/src/html/radio-visual-test.js +289 -0
- package/src/html/radio.css +137 -11
- package/src/html/radio.example.js +389 -0
- package/src/html/radio.js +234 -10
- package/src/html/radio.test.js +318 -0
- package/src/html/section.example.js +99 -0
- package/src/html/section.js +40 -3
- package/src/html/section.test.js +131 -0
- package/src/html/selector.css +329 -3
- package/src/html/selector.js +369 -23
- package/src/html/switch-debug.js +197 -0
- package/src/html/switch-test-visual.js +294 -0
- package/src/html/switch.css +200 -0
- package/src/html/switch.example.js +461 -0
- package/src/html/switch.js +283 -23
- package/src/html/switch.test.js +355 -0
- package/src/html/tab.css +288 -0
- package/src/html/tab.example.js +446 -0
- package/src/html/tab.js +387 -22
- package/src/html/tab_enhanced.js +378 -0
- package/src/html/tab_enhanced.test.js +504 -0
- package/src/html/table2.css +576 -0
- package/src/html/table2.example.js +703 -0
- package/src/html/table2.js +1252 -0
- package/src/html/table2.migration.md +328 -0
- package/src/html/table2.test.js +582 -0
- package/src/html/text.css +375 -0
- package/src/html/text.js +311 -20
- package/src/html/textfield.js +1 -1
- package/src/html/textfield2.css +842 -0
- package/src/html/textfield2.example.js +499 -0
- package/src/html/textfield2.js +1130 -0
- package/src/html/textfield2.test.js +950 -0
- package/src/html/thumbnail.css +289 -2
- package/src/html/thumbnail.js +214 -9
- package/src/html/tokenfield.css +449 -1
- package/src/html/tokenfield.example.js +503 -0
- package/src/html/tokenfield.js +561 -56
- package/src/html/tokenfield.test.js +423 -0
- package/src/html/tooltip-positioning-demo.js +187 -0
- package/src/html/tooltip.css +25 -2
- package/src/html/tree.css +228 -0
- package/src/html/tree.example.js +475 -0
- package/src/html/tree.js +712 -28
- package/src/html/tree_enhanced.test.js +495 -0
- package/table2.test.js +454 -0
- package/src/html/button.tsx +0 -38
package/src/html/progress.css
CHANGED
@@ -1,20 +1,710 @@
|
|
1
|
+
/* Enhanced Progress Components Styles */
|
2
|
+
|
3
|
+
/* Keyframes for animations */
|
1
4
|
@keyframes rotating {
|
2
|
-
from {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
}
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
}
|
16
|
-
|
17
|
-
|
5
|
+
from { transform: rotate(0deg); }
|
6
|
+
to { transform: rotate(360deg); }
|
7
|
+
}
|
8
|
+
|
9
|
+
@keyframes indeterminate-rotate {
|
10
|
+
0% { transform: rotate(0deg); }
|
11
|
+
100% { transform: rotate(360deg); }
|
12
|
+
}
|
13
|
+
|
14
|
+
@keyframes indeterminate-dash {
|
15
|
+
0% {
|
16
|
+
stroke-dasharray: 1, 200;
|
17
|
+
stroke-dashoffset: 0;
|
18
|
+
}
|
19
|
+
50% {
|
20
|
+
stroke-dasharray: 100, 200;
|
21
|
+
stroke-dashoffset: -15;
|
22
|
+
}
|
23
|
+
100% {
|
24
|
+
stroke-dasharray: 100, 200;
|
25
|
+
stroke-dashoffset: -125;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
@keyframes linear-indeterminate-primary {
|
30
|
+
0% {
|
31
|
+
left: -35%;
|
32
|
+
right: 100%;
|
33
|
+
}
|
34
|
+
60% {
|
35
|
+
left: 100%;
|
36
|
+
right: -90%;
|
37
|
+
}
|
38
|
+
100% {
|
39
|
+
left: 100%;
|
40
|
+
right: -90%;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
@keyframes linear-indeterminate-secondary {
|
45
|
+
0% {
|
46
|
+
left: -200%;
|
47
|
+
right: 100%;
|
48
|
+
}
|
49
|
+
60% {
|
50
|
+
left: 107%;
|
51
|
+
right: -8%;
|
52
|
+
}
|
53
|
+
100% {
|
54
|
+
left: 107%;
|
55
|
+
right: -8%;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
@keyframes pulse {
|
60
|
+
0%, 100% { opacity: 1; }
|
61
|
+
50% { opacity: 0.7; }
|
62
|
+
}
|
63
|
+
|
64
|
+
@keyframes shimmer {
|
65
|
+
0% { background-position: -200px 0; }
|
66
|
+
100% { background-position: calc(200px + 100%) 0; }
|
67
|
+
}
|
68
|
+
|
69
|
+
/* Circular Progress Component */
|
18
70
|
.circular-progress {
|
19
|
-
|
71
|
+
position: relative;
|
72
|
+
display: inline-flex;
|
73
|
+
align-items: center;
|
74
|
+
justify-content: center;
|
75
|
+
flex-shrink: 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
.circular-progress--small { width: 24px; height: 24px; }
|
79
|
+
.circular-progress--medium { width: 40px; height: 40px; }
|
80
|
+
.circular-progress--large { width: 56px; height: 56px; }
|
81
|
+
.circular-progress--xlarge { width: 80px; height: 80px; }
|
82
|
+
|
83
|
+
.circular-progress--disabled {
|
84
|
+
opacity: 0.6;
|
85
|
+
pointer-events: none;
|
86
|
+
}
|
87
|
+
|
88
|
+
.circular-progress__svg {
|
89
|
+
position: absolute;
|
90
|
+
top: 0;
|
91
|
+
left: 0;
|
92
|
+
transform: rotate(-90deg);
|
93
|
+
}
|
94
|
+
|
95
|
+
.circular-progress__background {
|
96
|
+
stroke: var(--divider-color, #e0e0e0);
|
97
|
+
opacity: 0.3;
|
98
|
+
}
|
99
|
+
|
100
|
+
.circular-progress__progress {
|
101
|
+
stroke: var(--primary-color, #2196f3);
|
102
|
+
transition: stroke-dashoffset 0.3s ease;
|
103
|
+
}
|
104
|
+
|
105
|
+
/* Color variants */
|
106
|
+
.circular-progress--primary .circular-progress__progress { stroke: var(--primary-color, #2196f3); }
|
107
|
+
.circular-progress--secondary .circular-progress__progress { stroke: var(--secondary-color, #ff9800); }
|
108
|
+
.circular-progress--success .circular-progress__progress { stroke: var(--success-color, #4caf50); }
|
109
|
+
.circular-progress--warning .circular-progress__progress { stroke: var(--warning-color, #ff9800); }
|
110
|
+
.circular-progress--error .circular-progress__progress { stroke: var(--error-color, #f44336); }
|
111
|
+
|
112
|
+
/* Indeterminate animation */
|
113
|
+
.circular-progress--indeterminate .circular-progress__svg {
|
114
|
+
animation: indeterminate-rotate 1.4s linear infinite;
|
115
|
+
}
|
116
|
+
|
117
|
+
.circular-progress--indeterminate .circular-progress__progress {
|
118
|
+
animation: indeterminate-dash 1.4s ease-in-out infinite;
|
119
|
+
}
|
120
|
+
|
121
|
+
/* Content overlay */
|
122
|
+
.circular-progress__content {
|
123
|
+
position: relative;
|
124
|
+
display: flex;
|
125
|
+
flex-direction: column;
|
126
|
+
align-items: center;
|
127
|
+
justify-content: center;
|
128
|
+
z-index: 1;
|
129
|
+
}
|
130
|
+
|
131
|
+
.circular-progress__value {
|
132
|
+
font-size: 0.75rem;
|
133
|
+
font-weight: 600;
|
134
|
+
color: var(--text-color, #333);
|
135
|
+
line-height: 1;
|
136
|
+
}
|
137
|
+
|
138
|
+
.circular-progress--large .circular-progress__value {
|
139
|
+
font-size: 0.875rem;
|
140
|
+
}
|
141
|
+
|
142
|
+
.circular-progress--xlarge .circular-progress__value {
|
143
|
+
font-size: 1rem;
|
144
|
+
}
|
145
|
+
|
146
|
+
.circular-progress__label {
|
147
|
+
position: absolute;
|
148
|
+
top: 100%;
|
149
|
+
left: 50%;
|
150
|
+
transform: translateX(-50%);
|
151
|
+
margin-top: 0.5rem;
|
152
|
+
font-size: 0.75rem;
|
153
|
+
color: var(--text-color-light, #666);
|
154
|
+
white-space: nowrap;
|
155
|
+
}
|
156
|
+
|
157
|
+
.circular-progress__icon {
|
158
|
+
color: var(--primary-color, #2196f3);
|
159
|
+
}
|
160
|
+
|
161
|
+
/* Complete state */
|
162
|
+
.circular-progress--complete .circular-progress__progress {
|
163
|
+
stroke: var(--success-color, #4caf50);
|
164
|
+
}
|
165
|
+
|
166
|
+
.circular-progress--complete .circular-progress__icon {
|
167
|
+
color: var(--success-color, #4caf50);
|
168
|
+
}
|
169
|
+
|
170
|
+
/* Linear Progress Component */
|
171
|
+
.linear-progress {
|
172
|
+
width: 100%;
|
173
|
+
display: flex;
|
174
|
+
flex-direction: column;
|
175
|
+
}
|
176
|
+
|
177
|
+
.linear-progress__header {
|
178
|
+
display: flex;
|
179
|
+
justify-content: space-between;
|
180
|
+
align-items: center;
|
181
|
+
margin-bottom: 0.5rem;
|
182
|
+
}
|
183
|
+
|
184
|
+
.linear-progress__label {
|
185
|
+
font-size: 0.875rem;
|
186
|
+
font-weight: 500;
|
187
|
+
color: var(--text-color, #333);
|
188
|
+
}
|
189
|
+
|
190
|
+
.linear-progress__info {
|
191
|
+
display: flex;
|
192
|
+
gap: 1rem;
|
193
|
+
align-items: center;
|
194
|
+
}
|
195
|
+
|
196
|
+
.linear-progress__value {
|
197
|
+
font-size: 0.75rem;
|
198
|
+
font-weight: 600;
|
199
|
+
color: var(--text-color, #333);
|
200
|
+
}
|
201
|
+
|
202
|
+
.linear-progress__time {
|
203
|
+
font-size: 0.75rem;
|
204
|
+
color: var(--text-color-light, #666);
|
205
|
+
}
|
206
|
+
|
207
|
+
.linear-progress__track {
|
208
|
+
position: relative;
|
209
|
+
width: 100%;
|
210
|
+
background-color: var(--divider-color, #e0e0e0);
|
211
|
+
overflow: hidden;
|
212
|
+
}
|
213
|
+
|
214
|
+
/* Size variants */
|
215
|
+
.linear-progress--small .linear-progress__track { height: 4px; }
|
216
|
+
.linear-progress--medium .linear-progress__track { height: 6px; }
|
217
|
+
.linear-progress--large .linear-progress__track { height: 8px; }
|
218
|
+
|
219
|
+
/* Rounded corners */
|
220
|
+
.linear-progress--rounded .linear-progress__track {
|
221
|
+
border-radius: 10px;
|
222
|
+
}
|
223
|
+
|
224
|
+
.linear-progress--rounded .linear-progress__bar,
|
225
|
+
.linear-progress--rounded .linear-progress__buffer {
|
226
|
+
border-radius: 10px;
|
227
|
+
}
|
228
|
+
|
229
|
+
.linear-progress__buffer {
|
230
|
+
position: absolute;
|
231
|
+
top: 0;
|
232
|
+
left: 0;
|
233
|
+
height: 100%;
|
234
|
+
background-color: var(--primary-color-light, #bbdefb);
|
235
|
+
opacity: 0.3;
|
236
|
+
transition: width 0.3s ease;
|
237
|
+
}
|
238
|
+
|
239
|
+
.linear-progress__bar {
|
240
|
+
position: relative;
|
241
|
+
height: 100%;
|
242
|
+
background-color: var(--primary-color, #2196f3);
|
243
|
+
transition: width 0.3s ease;
|
244
|
+
overflow: hidden;
|
245
|
+
}
|
246
|
+
|
247
|
+
/* Color variants */
|
248
|
+
.linear-progress--primary .linear-progress__bar { background-color: var(--primary-color, #2196f3); }
|
249
|
+
.linear-progress--secondary .linear-progress__bar { background-color: var(--secondary-color, #ff9800); }
|
250
|
+
.linear-progress--success .linear-progress__bar { background-color: var(--success-color, #4caf50); }
|
251
|
+
.linear-progress--warning .linear-progress__bar { background-color: var(--warning-color, #ff9800); }
|
252
|
+
.linear-progress--error .linear-progress__bar { background-color: var(--error-color, #f44336); }
|
253
|
+
|
254
|
+
/* Striped pattern */
|
255
|
+
.linear-progress--striped .linear-progress__bar {
|
256
|
+
background-image: linear-gradient(
|
257
|
+
45deg,
|
258
|
+
rgba(255, 255, 255, 0.15) 25%,
|
259
|
+
transparent 25%,
|
260
|
+
transparent 50%,
|
261
|
+
rgba(255, 255, 255, 0.15) 50%,
|
262
|
+
rgba(255, 255, 255, 0.15) 75%,
|
263
|
+
transparent 75%,
|
264
|
+
transparent
|
265
|
+
);
|
266
|
+
background-size: 1rem 1rem;
|
267
|
+
}
|
268
|
+
|
269
|
+
.linear-progress--striped.linear-progress--animated .linear-progress__bar {
|
270
|
+
animation: shimmer 1s linear infinite;
|
271
|
+
}
|
272
|
+
|
273
|
+
/* Indeterminate animation */
|
274
|
+
.linear-progress--indeterminate .linear-progress__bar {
|
275
|
+
width: 100% !important;
|
276
|
+
background: transparent;
|
277
|
+
}
|
278
|
+
|
279
|
+
.linear-progress__bar-primary,
|
280
|
+
.linear-progress__bar-secondary {
|
281
|
+
position: absolute;
|
282
|
+
top: 0;
|
283
|
+
height: 100%;
|
284
|
+
background-color: var(--primary-color, #2196f3);
|
285
|
+
}
|
286
|
+
|
287
|
+
.linear-progress--indeterminate .linear-progress__bar-primary {
|
288
|
+
animation: linear-indeterminate-primary 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
289
|
+
}
|
290
|
+
|
291
|
+
.linear-progress--indeterminate .linear-progress__bar-secondary {
|
292
|
+
animation: linear-indeterminate-secondary 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
293
|
+
animation-delay: 1.15s;
|
294
|
+
}
|
295
|
+
|
296
|
+
/* Disabled state */
|
297
|
+
.linear-progress--disabled {
|
298
|
+
opacity: 0.6;
|
299
|
+
}
|
300
|
+
|
301
|
+
.linear-progress--disabled .linear-progress__bar {
|
302
|
+
background-color: var(--divider-color, #e0e0e0);
|
303
|
+
}
|
304
|
+
|
305
|
+
/* Complete state */
|
306
|
+
.linear-progress--complete .linear-progress__bar {
|
307
|
+
background-color: var(--success-color, #4caf50);
|
308
|
+
}
|
309
|
+
|
310
|
+
/* Step Progress Component */
|
311
|
+
.step-progress {
|
312
|
+
display: flex;
|
313
|
+
align-items: flex-start;
|
314
|
+
}
|
315
|
+
|
316
|
+
.step-progress--vertical {
|
317
|
+
flex-direction: column;
|
318
|
+
}
|
319
|
+
|
320
|
+
.step-progress--horizontal {
|
321
|
+
flex-direction: row;
|
322
|
+
align-items: center;
|
323
|
+
}
|
324
|
+
|
325
|
+
.step-progress__step {
|
326
|
+
position: relative;
|
327
|
+
display: flex;
|
328
|
+
flex: 1;
|
329
|
+
align-items: center;
|
330
|
+
}
|
331
|
+
|
332
|
+
.step-progress--vertical .step-progress__step {
|
333
|
+
flex-direction: column;
|
334
|
+
align-items: flex-start;
|
335
|
+
margin-bottom: 2rem;
|
336
|
+
}
|
337
|
+
|
338
|
+
.step-progress--horizontal .step-progress__step {
|
339
|
+
flex-direction: column;
|
340
|
+
align-items: center;
|
341
|
+
text-align: center;
|
342
|
+
}
|
343
|
+
|
344
|
+
.step-progress__connector {
|
345
|
+
position: absolute;
|
346
|
+
background-color: var(--divider-color, #e0e0e0);
|
347
|
+
transition: background-color 0.3s ease;
|
348
|
+
}
|
349
|
+
|
350
|
+
.step-progress--horizontal .step-progress__connector {
|
351
|
+
top: 50%;
|
352
|
+
left: 100%;
|
353
|
+
right: -100%;
|
354
|
+
height: 2px;
|
355
|
+
transform: translateY(-50%);
|
356
|
+
}
|
357
|
+
|
358
|
+
.step-progress--vertical .step-progress__connector {
|
359
|
+
left: 50%;
|
360
|
+
top: 100%;
|
361
|
+
bottom: -2rem;
|
362
|
+
width: 2px;
|
363
|
+
transform: translateX(-50%);
|
364
|
+
}
|
365
|
+
|
366
|
+
.step-progress__circle {
|
367
|
+
position: relative;
|
368
|
+
display: flex;
|
369
|
+
align-items: center;
|
370
|
+
justify-content: center;
|
371
|
+
border-radius: 50%;
|
372
|
+
background-color: var(--divider-color, #e0e0e0);
|
373
|
+
color: var(--text-color-light, #666);
|
374
|
+
transition: all 0.3s ease;
|
375
|
+
z-index: 1;
|
376
|
+
}
|
377
|
+
|
378
|
+
/* Size variants */
|
379
|
+
.step-progress--small .step-progress__circle {
|
380
|
+
width: 24px;
|
381
|
+
height: 24px;
|
382
|
+
font-size: 0.75rem;
|
383
|
+
}
|
384
|
+
|
385
|
+
.step-progress--medium .step-progress__circle {
|
386
|
+
width: 32px;
|
387
|
+
height: 32px;
|
388
|
+
font-size: 0.875rem;
|
389
|
+
}
|
390
|
+
|
391
|
+
.step-progress--large .step-progress__circle {
|
392
|
+
width: 40px;
|
393
|
+
height: 40px;
|
394
|
+
font-size: 1rem;
|
395
|
+
}
|
396
|
+
|
397
|
+
.step-progress__number {
|
398
|
+
font-weight: 600;
|
399
|
+
line-height: 1;
|
400
|
+
}
|
401
|
+
|
402
|
+
/* Step states */
|
403
|
+
.step-progress__step--current .step-progress__circle {
|
404
|
+
background-color: var(--primary-color, #2196f3);
|
405
|
+
color: white;
|
406
|
+
box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2);
|
407
|
+
}
|
408
|
+
|
409
|
+
.step-progress__step--completed .step-progress__circle {
|
410
|
+
background-color: var(--success-color, #4caf50);
|
411
|
+
color: white;
|
412
|
+
}
|
413
|
+
|
414
|
+
.step-progress__step--completed .step-progress__connector {
|
415
|
+
background-color: var(--success-color, #4caf50);
|
416
|
+
}
|
417
|
+
|
418
|
+
.step-progress__step--error .step-progress__circle {
|
419
|
+
background-color: var(--error-color, #f44336);
|
420
|
+
color: white;
|
421
|
+
}
|
422
|
+
|
423
|
+
.step-progress__step--clickable .step-progress__circle {
|
424
|
+
cursor: pointer;
|
425
|
+
}
|
426
|
+
|
427
|
+
.step-progress__step--clickable .step-progress__circle:hover {
|
428
|
+
transform: scale(1.1);
|
429
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
430
|
+
}
|
431
|
+
|
432
|
+
.step-progress__label {
|
433
|
+
margin-top: 0.5rem;
|
434
|
+
}
|
435
|
+
|
436
|
+
.step-progress--vertical .step-progress__label {
|
437
|
+
margin-top: 0;
|
438
|
+
margin-left: 1rem;
|
439
|
+
}
|
440
|
+
|
441
|
+
.step-progress__title {
|
442
|
+
font-size: 0.875rem;
|
443
|
+
font-weight: 500;
|
444
|
+
color: var(--text-color, #333);
|
445
|
+
margin-bottom: 0.25rem;
|
446
|
+
}
|
447
|
+
|
448
|
+
.step-progress__description {
|
449
|
+
font-size: 0.75rem;
|
450
|
+
color: var(--text-color-light, #666);
|
451
|
+
line-height: 1.4;
|
452
|
+
}
|
453
|
+
|
454
|
+
/* Color variants */
|
455
|
+
.step-progress--primary .step-progress__step--current .step-progress__circle { background-color: var(--primary-color, #2196f3); }
|
456
|
+
.step-progress--secondary .step-progress__step--current .step-progress__circle { background-color: var(--secondary-color, #ff9800); }
|
457
|
+
.step-progress--success .step-progress__step--current .step-progress__circle { background-color: var(--success-color, #4caf50); }
|
458
|
+
.step-progress--warning .step-progress__step--current .step-progress__circle { background-color: var(--warning-color, #ff9800); }
|
459
|
+
.step-progress--error .step-progress__step--current .step-progress__circle { background-color: var(--error-color, #f44336); }
|
460
|
+
|
461
|
+
/* Radial Progress Component */
|
462
|
+
.radial-progress {
|
463
|
+
position: relative;
|
464
|
+
display: inline-flex;
|
465
|
+
align-items: center;
|
466
|
+
justify-content: center;
|
467
|
+
flex-shrink: 0;
|
468
|
+
}
|
469
|
+
|
470
|
+
.radial-progress__svg {
|
471
|
+
position: absolute;
|
472
|
+
top: 0;
|
473
|
+
left: 0;
|
474
|
+
transform: rotate(-90deg);
|
475
|
+
}
|
476
|
+
|
477
|
+
.radial-progress__background {
|
478
|
+
opacity: 0.2;
|
479
|
+
}
|
480
|
+
|
481
|
+
.radial-progress__progress {
|
482
|
+
stroke: var(--primary-color, #2196f3);
|
483
|
+
transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
|
484
|
+
}
|
485
|
+
|
486
|
+
/* Color variants */
|
487
|
+
.radial-progress--primary .radial-progress__progress { stroke: var(--primary-color, #2196f3); }
|
488
|
+
.radial-progress--secondary .radial-progress__progress { stroke: var(--secondary-color, #ff9800); }
|
489
|
+
.radial-progress--success .radial-progress__progress { stroke: var(--success-color, #4caf50); }
|
490
|
+
.radial-progress--warning .radial-progress__progress { stroke: var(--warning-color, #ff9800); }
|
491
|
+
.radial-progress--error .radial-progress__progress { stroke: var(--error-color, #f44336); }
|
492
|
+
|
493
|
+
/* Gradient effect */
|
494
|
+
.radial-progress--gradient .radial-progress__progress {
|
495
|
+
stroke: url(#gradient-primary);
|
496
|
+
}
|
497
|
+
|
498
|
+
.radial-progress__content {
|
499
|
+
position: relative;
|
500
|
+
display: flex;
|
501
|
+
flex-direction: column;
|
502
|
+
align-items: center;
|
503
|
+
justify-content: center;
|
504
|
+
z-index: 1;
|
505
|
+
text-align: center;
|
506
|
+
}
|
507
|
+
|
508
|
+
.radial-progress__value {
|
509
|
+
font-size: 1.5rem;
|
510
|
+
font-weight: 700;
|
511
|
+
color: var(--text-color, #333);
|
512
|
+
line-height: 1;
|
513
|
+
margin-bottom: 0.25rem;
|
514
|
+
}
|
515
|
+
|
516
|
+
.radial-progress__label {
|
517
|
+
font-size: 0.875rem;
|
518
|
+
color: var(--text-color-light, #666);
|
519
|
+
font-weight: 500;
|
520
|
+
}
|
521
|
+
|
522
|
+
.radial-progress__icon {
|
523
|
+
margin-bottom: 0.5rem;
|
524
|
+
color: var(--primary-color, #2196f3);
|
525
|
+
}
|
526
|
+
|
527
|
+
/* Multi Progress Component */
|
528
|
+
.multi-progress {
|
529
|
+
display: flex;
|
530
|
+
flex-direction: column;
|
531
|
+
gap: 1rem;
|
532
|
+
}
|
533
|
+
|
534
|
+
.multi-progress--small { gap: 0.75rem; }
|
535
|
+
.multi-progress--medium { gap: 1rem; }
|
536
|
+
.multi-progress--large { gap: 1.25rem; }
|
537
|
+
|
538
|
+
.multi-progress__item {
|
539
|
+
display: flex;
|
540
|
+
flex-direction: column;
|
541
|
+
}
|
542
|
+
|
543
|
+
.multi-progress__header {
|
544
|
+
display: flex;
|
545
|
+
justify-content: space-between;
|
546
|
+
align-items: center;
|
547
|
+
margin-bottom: 0.5rem;
|
548
|
+
}
|
549
|
+
|
550
|
+
.multi-progress__label {
|
551
|
+
font-size: 0.875rem;
|
552
|
+
font-weight: 500;
|
553
|
+
color: var(--text-color, #333);
|
554
|
+
}
|
555
|
+
|
556
|
+
.multi-progress__value {
|
557
|
+
font-size: 0.75rem;
|
558
|
+
font-weight: 600;
|
559
|
+
color: var(--text-color, #333);
|
560
|
+
}
|
561
|
+
|
562
|
+
.multi-progress__bar {
|
563
|
+
margin: 0;
|
564
|
+
}
|
565
|
+
|
566
|
+
/* Responsive Design */
|
567
|
+
@media (max-width: 768px) {
|
568
|
+
.step-progress--horizontal {
|
569
|
+
flex-direction: column;
|
570
|
+
align-items: flex-start;
|
571
|
+
}
|
572
|
+
|
573
|
+
.step-progress--horizontal .step-progress__step {
|
574
|
+
flex-direction: row;
|
575
|
+
align-items: center;
|
576
|
+
text-align: left;
|
577
|
+
width: 100%;
|
578
|
+
margin-bottom: 1rem;
|
579
|
+
}
|
580
|
+
|
581
|
+
.step-progress--horizontal .step-progress__connector {
|
582
|
+
display: none;
|
583
|
+
}
|
584
|
+
|
585
|
+
.step-progress--horizontal .step-progress__label {
|
586
|
+
margin-top: 0;
|
587
|
+
margin-left: 1rem;
|
588
|
+
}
|
589
|
+
|
590
|
+
.radial-progress__value {
|
591
|
+
font-size: 1.25rem;
|
592
|
+
}
|
593
|
+
|
594
|
+
.linear-progress__header {
|
595
|
+
flex-direction: column;
|
596
|
+
align-items: flex-start;
|
597
|
+
gap: 0.25rem;
|
598
|
+
}
|
599
|
+
|
600
|
+
.linear-progress__info {
|
601
|
+
gap: 0.5rem;
|
602
|
+
}
|
603
|
+
}
|
604
|
+
|
605
|
+
/* Dark Theme Support */
|
606
|
+
@media (prefers-color-scheme: dark) {
|
607
|
+
.circular-progress__background,
|
608
|
+
.linear-progress__track,
|
609
|
+
.step-progress__connector {
|
610
|
+
background-color: var(--divider-color-dark, #424242);
|
611
|
+
stroke: var(--divider-color-dark, #424242);
|
612
|
+
}
|
613
|
+
|
614
|
+
.circular-progress__value,
|
615
|
+
.linear-progress__label,
|
616
|
+
.linear-progress__value,
|
617
|
+
.step-progress__title,
|
618
|
+
.radial-progress__value,
|
619
|
+
.multi-progress__label,
|
620
|
+
.multi-progress__value {
|
621
|
+
color: var(--text-color-dark, #ffffff);
|
622
|
+
}
|
623
|
+
|
624
|
+
.linear-progress__time,
|
625
|
+
.step-progress__description,
|
626
|
+
.radial-progress__label {
|
627
|
+
color: var(--text-color-light-dark, #cccccc);
|
628
|
+
}
|
629
|
+
|
630
|
+
.step-progress__circle {
|
631
|
+
background-color: var(--divider-color-dark, #424242);
|
632
|
+
color: var(--text-color-light-dark, #cccccc);
|
633
|
+
}
|
634
|
+
}
|
635
|
+
|
636
|
+
/* High Contrast Mode */
|
637
|
+
@media (prefers-contrast: high) {
|
638
|
+
.circular-progress__progress,
|
639
|
+
.linear-progress__bar,
|
640
|
+
.radial-progress__progress {
|
641
|
+
stroke-width: 3px;
|
642
|
+
}
|
643
|
+
|
644
|
+
.step-progress__connector {
|
645
|
+
height: 3px;
|
646
|
+
width: 3px;
|
647
|
+
}
|
648
|
+
|
649
|
+
.step-progress__circle {
|
650
|
+
border: 2px solid currentColor;
|
651
|
+
}
|
652
|
+
}
|
653
|
+
|
654
|
+
/* Reduced Motion */
|
655
|
+
@media (prefers-reduced-motion: reduce) {
|
656
|
+
.circular-progress--animated,
|
657
|
+
.linear-progress--animated,
|
658
|
+
.step-progress--animated,
|
659
|
+
.radial-progress--animated,
|
660
|
+
.multi-progress--animated {
|
661
|
+
animation: none;
|
662
|
+
transition: none;
|
663
|
+
}
|
664
|
+
|
665
|
+
.circular-progress__progress,
|
666
|
+
.linear-progress__bar,
|
667
|
+
.linear-progress__buffer,
|
668
|
+
.radial-progress__progress,
|
669
|
+
.step-progress__circle,
|
670
|
+
.step-progress__connector {
|
671
|
+
transition: none;
|
672
|
+
}
|
673
|
+
|
674
|
+
.step-progress__step--clickable .step-progress__circle:hover {
|
675
|
+
transform: none;
|
676
|
+
}
|
677
|
+
}
|
678
|
+
|
679
|
+
/* Print Styles */
|
680
|
+
@media print {
|
681
|
+
.circular-progress,
|
682
|
+
.linear-progress,
|
683
|
+
.step-progress,
|
684
|
+
.radial-progress,
|
685
|
+
.multi-progress {
|
686
|
+
break-inside: avoid;
|
687
|
+
}
|
688
|
+
|
689
|
+
.circular-progress--indeterminate,
|
690
|
+
.linear-progress--indeterminate {
|
691
|
+
display: none;
|
692
|
+
}
|
693
|
+
|
694
|
+
.circular-progress__progress,
|
695
|
+
.linear-progress__bar,
|
696
|
+
.radial-progress__progress {
|
697
|
+
stroke: black !important;
|
698
|
+
background-color: black !important;
|
699
|
+
}
|
700
|
+
|
701
|
+
.circular-progress__value,
|
702
|
+
.linear-progress__label,
|
703
|
+
.linear-progress__value,
|
704
|
+
.step-progress__title,
|
705
|
+
.radial-progress__value,
|
706
|
+
.multi-progress__label,
|
707
|
+
.multi-progress__value {
|
708
|
+
color: black !important;
|
709
|
+
}
|
20
710
|
}
|