@maggioli-design-system/mds-progress 2.9.2 → 2.10.0
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/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-2c37527a.js +1199 -0
- package/dist/cjs/loader.cjs.js +4 -2
- package/dist/cjs/mds-progress.cjs.entry.js +5 -4
- package/dist/cjs/mds-progress.cjs.js +12 -10
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/common/locale.js +50 -0
- package/dist/collection/components/mds-progress/mds-progress.css +258 -152
- package/dist/collection/components/mds-progress/mds-progress.js +1 -1
- package/dist/collection/type/preference.js +1 -0
- package/dist/collection/type/variant-file-format.js +20 -11
- package/dist/components/mds-progress.js +4 -3
- package/dist/documentation.d.ts +34 -0
- package/dist/documentation.json +3 -3
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-2c599ac6.js +1171 -0
- package/dist/esm/loader.js +5 -3
- package/dist/esm/mds-progress.entry.js +5 -4
- package/dist/esm/mds-progress.js +13 -11
- package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
- package/dist/esm-es5/index-2c599ac6.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-progress.entry.js +1 -1
- package/dist/esm-es5/mds-progress.js +1 -1
- package/dist/mds-progress/mds-progress.esm.js +1 -1
- package/dist/mds-progress/mds-progress.js +1 -1
- package/dist/mds-progress/p-247bfa7b.system.js +1 -0
- package/dist/mds-progress/p-313d3f72.js +2 -0
- package/dist/mds-progress/p-56ba5cbf.system.js +1 -0
- package/dist/mds-progress/p-63b6c1a0.system.entry.js +1 -0
- package/dist/mds-progress/p-a9121660.entry.js +1 -0
- package/dist/mds-progress/p-e1255160.js +1 -0
- package/dist/mds-progress/p-ecdde885.system.js +2 -0
- package/dist/stats.json +55 -40
- package/dist/types/common/locale.d.ts +15 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/dist/types/type/preference.d.ts +2 -0
- package/documentation.json +43 -23
- package/loader/cdn.js +1 -2
- package/loader/index.cjs.js +1 -2
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -2
- package/loader/index.js +1 -2
- package/package.json +3 -3
- package/src/common/locale.ts +66 -0
- package/src/components/mds-progress/css/mds-progress-pref-animation.css +18 -0
- package/src/components/mds-progress/css/mds-progress-pref-contrast.css +23 -0
- package/src/components/mds-progress/css/mds-progress-pref-theme.css +70 -0
- package/src/components/mds-progress/mds-progress.css +8 -0
- package/src/components/mds-progress/mds-progress.tsx +1 -0
- package/src/fixtures/icons.json +18 -0
- package/src/fixtures/iconsauce.json +9 -0
- package/src/tailwind/components.css +71 -0
- package/src/type/preference.ts +10 -0
- package/src/type/variant-file-format.ts +20 -11
- package/www/build/mds-progress.esm.js +1 -1
- package/www/build/mds-progress.js +1 -1
- package/www/build/p-247bfa7b.system.js +1 -0
- package/www/build/p-313d3f72.js +2 -0
- package/www/build/p-56ba5cbf.system.js +1 -0
- package/www/build/p-63b6c1a0.system.entry.js +1 -0
- package/www/build/p-a9121660.entry.js +1 -0
- package/www/build/p-e1255160.js +1 -0
- package/www/build/p-ecdde885.system.js +2 -0
- package/dist/cjs/index-ef941864.js +0 -1686
- package/dist/collection/components/mds-progress/test/mds-progress.e2e.js +0 -10
- package/dist/esm/index-370f577b.js +0 -1658
- package/dist/esm-es5/index-370f577b.js +0 -1
- package/dist/mds-progress/p-20cc5857.system.entry.js +0 -1
- package/dist/mds-progress/p-87430859.js +0 -2
- package/dist/mds-progress/p-91249106.system.js +0 -1
- package/dist/mds-progress/p-b8ddb760.entry.js +0 -1
- package/dist/mds-progress/p-bf3c5077.system.js +0 -2
- package/www/build/p-20cc5857.system.entry.js +0 -1
- package/www/build/p-87430859.js +0 -2
- package/www/build/p-91249106.system.js +0 -1
- package/www/build/p-b8ddb760.entry.js +0 -1
- package/www/build/p-bf3c5077.system.js +0 -2
|
@@ -1,3 +1,76 @@
|
|
|
1
|
+
@tailwind components;
|
|
2
|
+
@tailwind utilities;
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/* @import '../../tailwind/static-components.css'; */
|
|
6
|
+
|
|
7
|
+
.svg{
|
|
8
|
+
display: flex;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.svg svg{
|
|
12
|
+
aspect-ratio: 1/1;
|
|
13
|
+
height: 100%;
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.contrast-area {
|
|
18
|
+
border-radius: inherit;
|
|
19
|
+
box-shadow: 0 0 0 2px rgb(var(--tone-neutral-01) / 0.3) inset;
|
|
20
|
+
display: none;
|
|
21
|
+
inset: 0;
|
|
22
|
+
opacity: 0;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
position: absolute;
|
|
25
|
+
transition-behavior: allow-discrete;
|
|
26
|
+
transition-property: display opacity;
|
|
27
|
+
|
|
28
|
+
box-shadow: 0 0 0 1px rgb(var(--tone-neutral-01) / 0.3) inset;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@container style(--magma-pref-contrast: more) {
|
|
32
|
+
.contrast-area,
|
|
33
|
+
.contrast-area-50{
|
|
34
|
+
display: block;
|
|
35
|
+
opacity: 1;
|
|
36
|
+
|
|
37
|
+
/* @starting-style {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
} */
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@container style(--magma-pref-contrast: system) {
|
|
44
|
+
|
|
45
|
+
@media (prefers-contrast: more) {
|
|
46
|
+
.contrast-area,
|
|
47
|
+
.contrast-area-50{
|
|
48
|
+
display: block;
|
|
49
|
+
opacity: 1;
|
|
50
|
+
|
|
51
|
+
/* @starting-style {
|
|
52
|
+
opacity: 0;
|
|
53
|
+
} */
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@container style(--magma-pref-animation: reduce) {
|
|
59
|
+
.contrast-area,
|
|
60
|
+
.contrast-area-50{
|
|
61
|
+
transition-duration: 0s;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@container style(--magma-pref-animation: system) {
|
|
66
|
+
|
|
67
|
+
@media (prefers-reduced-motion) {
|
|
68
|
+
.contrast-area,
|
|
69
|
+
.contrast-area-50{
|
|
70
|
+
transition-duration: 0s;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
1
74
|
@tailwind utilities;
|
|
2
75
|
|
|
3
76
|
/**
|
|
@@ -25,6 +98,7 @@
|
|
|
25
98
|
height: var(--mds-progress-thickness);
|
|
26
99
|
min-width: var(--mds-progress-thickness);
|
|
27
100
|
overflow: hidden;
|
|
101
|
+
position: relative;
|
|
28
102
|
width: 100%;
|
|
29
103
|
}
|
|
30
104
|
|
|
@@ -36,8 +110,7 @@
|
|
|
36
110
|
}
|
|
37
111
|
|
|
38
112
|
.progress{
|
|
39
|
-
|
|
40
|
-
transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
|
|
113
|
+
transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
|
|
41
114
|
|
|
42
115
|
background-color: var(--mds-progress-color);
|
|
43
116
|
border-radius: var(--mds-progress-radius);
|
|
@@ -45,264 +118,297 @@
|
|
|
45
118
|
transition-property: background-color, flex-grow;
|
|
46
119
|
}
|
|
47
120
|
|
|
48
|
-
|
|
121
|
+
@tailwind utilities;
|
|
122
|
+
|
|
123
|
+
:host( [variant="dark"] ) {
|
|
49
124
|
|
|
50
|
-
|
|
125
|
+
--mds-progress-color: rgb(var(--tone-neutral-04));
|
|
126
|
+
--mds-progress-background: rgb(var(--tone-neutral-08));
|
|
51
127
|
}
|
|
52
128
|
|
|
53
|
-
|
|
129
|
+
:host( [variant="light"] ) {
|
|
54
130
|
|
|
55
|
-
|
|
131
|
+
--mds-progress-color: rgb(var(--tone-neutral));
|
|
132
|
+
--mds-progress-background: rgb(var(--tone-neutral-05));
|
|
56
133
|
}
|
|
57
134
|
|
|
58
|
-
|
|
135
|
+
:host( [variant="error"] ) {
|
|
59
136
|
|
|
60
|
-
|
|
137
|
+
--mds-progress-color: rgb(var(--status-error-06));
|
|
138
|
+
--mds-progress-background: rgb(var(--status-error-09));
|
|
61
139
|
}
|
|
62
140
|
|
|
63
|
-
|
|
141
|
+
:host( [variant="warning"] ) {
|
|
64
142
|
|
|
65
|
-
|
|
143
|
+
--mds-progress-color: rgb(var(--status-warning-06));
|
|
144
|
+
--mds-progress-background: rgb(var(--status-warning-09));
|
|
66
145
|
}
|
|
67
146
|
|
|
68
|
-
|
|
147
|
+
:host( [variant="success"] ) {
|
|
148
|
+
|
|
149
|
+
--mds-progress-color: rgb(var(--status-success-06));
|
|
150
|
+
--mds-progress-background: rgb(var(--status-success-09));
|
|
151
|
+
}
|
|
69
152
|
|
|
70
|
-
|
|
153
|
+
:host( [variant="info"] ) {
|
|
71
154
|
|
|
72
|
-
|
|
155
|
+
--mds-progress-color: rgb(var(--status-info-06));
|
|
156
|
+
--mds-progress-background: rgb(var(--status-info-09));
|
|
73
157
|
}
|
|
74
158
|
|
|
75
|
-
|
|
159
|
+
:host( [variant="primary"] ) {
|
|
76
160
|
|
|
77
|
-
--
|
|
161
|
+
--mds-progress-color: rgb(var(--brand-maggioli-03));
|
|
162
|
+
--mds-progress-background: rgb(var(--tone-neutral-08));
|
|
163
|
+
}
|
|
78
164
|
|
|
79
|
-
|
|
165
|
+
@tailwind utilities;
|
|
166
|
+
|
|
167
|
+
@container style(--magma-pref-animation: reduce) {
|
|
168
|
+
:host,
|
|
169
|
+
.progress {
|
|
170
|
+
transition-duration: 0s;
|
|
171
|
+
}
|
|
80
172
|
}
|
|
81
173
|
|
|
82
|
-
|
|
174
|
+
@container style(--magma-pref-animation: system) {
|
|
83
175
|
|
|
84
|
-
|
|
176
|
+
@media (prefers-reduced-motion) {
|
|
177
|
+
:host,
|
|
178
|
+
.progress {
|
|
179
|
+
transition-duration: 0s;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
85
183
|
|
|
86
|
-
|
|
184
|
+
.static{
|
|
185
|
+
position: static;
|
|
87
186
|
}
|
|
88
187
|
|
|
89
|
-
.
|
|
188
|
+
.fixed{
|
|
189
|
+
position: fixed;
|
|
190
|
+
}
|
|
90
191
|
|
|
91
|
-
|
|
192
|
+
.absolute{
|
|
193
|
+
position: absolute;
|
|
194
|
+
}
|
|
92
195
|
|
|
93
|
-
|
|
196
|
+
.border{
|
|
197
|
+
border-width: 1px;
|
|
94
198
|
}
|
|
95
199
|
|
|
96
|
-
.bg-label-
|
|
200
|
+
.bg-label-amaranth-10{
|
|
201
|
+
--tw-bg-opacity: 1;
|
|
202
|
+
background-color: rgb(var(--label-amaranth-10) / var(--tw-bg-opacity));
|
|
203
|
+
}
|
|
97
204
|
|
|
98
|
-
|
|
205
|
+
.bg-label-aqua-10{
|
|
206
|
+
--tw-bg-opacity: 1;
|
|
207
|
+
background-color: rgb(var(--label-aqua-10) / var(--tw-bg-opacity));
|
|
208
|
+
}
|
|
99
209
|
|
|
100
|
-
|
|
210
|
+
.bg-label-blue-10{
|
|
211
|
+
--tw-bg-opacity: 1;
|
|
212
|
+
background-color: rgb(var(--label-blue-10) / var(--tw-bg-opacity));
|
|
101
213
|
}
|
|
102
214
|
|
|
103
|
-
.bg-label-
|
|
215
|
+
.bg-label-green-10{
|
|
216
|
+
--tw-bg-opacity: 1;
|
|
217
|
+
background-color: rgb(var(--label-green-10) / var(--tw-bg-opacity));
|
|
218
|
+
}
|
|
104
219
|
|
|
105
|
-
|
|
220
|
+
.bg-label-lime-10{
|
|
221
|
+
--tw-bg-opacity: 1;
|
|
222
|
+
background-color: rgb(var(--label-lime-10) / var(--tw-bg-opacity));
|
|
223
|
+
}
|
|
106
224
|
|
|
107
|
-
|
|
225
|
+
.bg-label-orange-10{
|
|
226
|
+
--tw-bg-opacity: 1;
|
|
227
|
+
background-color: rgb(var(--label-orange-10) / var(--tw-bg-opacity));
|
|
108
228
|
}
|
|
109
229
|
|
|
110
230
|
.bg-label-orchid-10{
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));
|
|
231
|
+
--tw-bg-opacity: 1;
|
|
232
|
+
background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));
|
|
115
233
|
}
|
|
116
234
|
|
|
117
235
|
.bg-label-violet-10{
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));
|
|
236
|
+
--tw-bg-opacity: 1;
|
|
237
|
+
background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));
|
|
122
238
|
}
|
|
123
239
|
|
|
124
240
|
.bg-label-yellow-10{
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));
|
|
241
|
+
--tw-bg-opacity: 1;
|
|
242
|
+
background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));
|
|
129
243
|
}
|
|
130
244
|
|
|
131
245
|
.bg-tone-neutral-10{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));
|
|
246
|
+
--tw-bg-opacity: 1;
|
|
247
|
+
background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));
|
|
136
248
|
}
|
|
137
249
|
|
|
138
250
|
.fill-label-amaranth-04{
|
|
139
|
-
|
|
140
|
-
fill: rgb(var(--label-amaranth-04));
|
|
251
|
+
fill: rgb(var(--label-amaranth-04));
|
|
141
252
|
}
|
|
142
253
|
|
|
143
254
|
.fill-label-aqua-04{
|
|
144
|
-
|
|
145
|
-
fill: rgb(var(--label-aqua-04));
|
|
255
|
+
fill: rgb(var(--label-aqua-04));
|
|
146
256
|
}
|
|
147
257
|
|
|
148
258
|
.fill-label-blue-04{
|
|
149
|
-
|
|
150
|
-
fill: rgb(var(--label-blue-04));
|
|
259
|
+
fill: rgb(var(--label-blue-04));
|
|
151
260
|
}
|
|
152
261
|
|
|
153
262
|
.fill-label-green-04{
|
|
154
|
-
|
|
155
|
-
fill: rgb(var(--label-green-04));
|
|
263
|
+
fill: rgb(var(--label-green-04));
|
|
156
264
|
}
|
|
157
265
|
|
|
158
266
|
.fill-label-lime-04{
|
|
159
|
-
|
|
160
|
-
fill: rgb(var(--label-lime-04));
|
|
267
|
+
fill: rgb(var(--label-lime-04));
|
|
161
268
|
}
|
|
162
269
|
|
|
163
270
|
.fill-label-orange-04{
|
|
164
|
-
|
|
165
|
-
fill: rgb(var(--label-orange-04));
|
|
271
|
+
fill: rgb(var(--label-orange-04));
|
|
166
272
|
}
|
|
167
273
|
|
|
168
274
|
.fill-label-orchid-04{
|
|
169
|
-
|
|
170
|
-
fill: rgb(var(--label-orchid-04));
|
|
275
|
+
fill: rgb(var(--label-orchid-04));
|
|
171
276
|
}
|
|
172
277
|
|
|
173
278
|
.fill-label-violet-04{
|
|
174
|
-
|
|
175
|
-
fill: rgb(var(--label-violet-04));
|
|
279
|
+
fill: rgb(var(--label-violet-04));
|
|
176
280
|
}
|
|
177
281
|
|
|
178
282
|
.fill-label-yellow-04{
|
|
179
|
-
|
|
180
|
-
fill: rgb(var(--label-yellow-04));
|
|
283
|
+
fill: rgb(var(--label-yellow-04));
|
|
181
284
|
}
|
|
182
285
|
|
|
183
286
|
.fill-tone-neutral-04{
|
|
184
|
-
|
|
185
|
-
fill: rgb(var(--tone-neutral-04));
|
|
287
|
+
fill: rgb(var(--tone-neutral-04));
|
|
186
288
|
}
|
|
187
289
|
|
|
188
290
|
.text-label-amaranth-04{
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));
|
|
291
|
+
--tw-text-opacity: 1;
|
|
292
|
+
color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));
|
|
193
293
|
}
|
|
194
294
|
|
|
195
295
|
.text-label-aqua-04{
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));
|
|
296
|
+
--tw-text-opacity: 1;
|
|
297
|
+
color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));
|
|
200
298
|
}
|
|
201
299
|
|
|
202
300
|
.text-label-blue-04{
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
color: rgb(var(--label-blue-04) / var(--tw-text-opacity));
|
|
301
|
+
--tw-text-opacity: 1;
|
|
302
|
+
color: rgb(var(--label-blue-04) / var(--tw-text-opacity));
|
|
207
303
|
}
|
|
208
304
|
|
|
209
305
|
.text-label-green-04{
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
color: rgb(var(--label-green-04) / var(--tw-text-opacity));
|
|
306
|
+
--tw-text-opacity: 1;
|
|
307
|
+
color: rgb(var(--label-green-04) / var(--tw-text-opacity));
|
|
214
308
|
}
|
|
215
309
|
|
|
216
310
|
.text-label-lime-04{
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
color: rgb(var(--label-lime-04) / var(--tw-text-opacity));
|
|
311
|
+
--tw-text-opacity: 1;
|
|
312
|
+
color: rgb(var(--label-lime-04) / var(--tw-text-opacity));
|
|
221
313
|
}
|
|
222
314
|
|
|
223
315
|
.text-label-orange-04{
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
color: rgb(var(--label-orange-04) / var(--tw-text-opacity));
|
|
316
|
+
--tw-text-opacity: 1;
|
|
317
|
+
color: rgb(var(--label-orange-04) / var(--tw-text-opacity));
|
|
228
318
|
}
|
|
229
319
|
|
|
230
320
|
.text-label-orchid-04{
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));
|
|
321
|
+
--tw-text-opacity: 1;
|
|
322
|
+
color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));
|
|
235
323
|
}
|
|
236
324
|
|
|
237
325
|
.text-label-violet-04{
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
color: rgb(var(--label-violet-04) / var(--tw-text-opacity));
|
|
326
|
+
--tw-text-opacity: 1;
|
|
327
|
+
color: rgb(var(--label-violet-04) / var(--tw-text-opacity));
|
|
242
328
|
}
|
|
243
329
|
|
|
244
330
|
.text-label-yellow-04{
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));
|
|
331
|
+
--tw-text-opacity: 1;
|
|
332
|
+
color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));
|
|
249
333
|
}
|
|
250
334
|
|
|
251
335
|
.text-tone-neutral-04{
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));
|
|
336
|
+
--tw-text-opacity: 1;
|
|
337
|
+
color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));
|
|
256
338
|
}
|
|
257
339
|
|
|
258
340
|
.shadow{
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
:
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
:
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
341
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
342
|
+
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
343
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@container style(--magma-pref-theme: dark) {
|
|
347
|
+
:host,
|
|
348
|
+
:host( [variant="primary"] ) {
|
|
349
|
+
|
|
350
|
+
--mds-progress-color: rgb(var(--brand-maggioli-05));
|
|
351
|
+
--mds-progress-background: rgb(var(--tone-neutral-07));
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
:host( [variant="error"] ) {
|
|
355
|
+
|
|
356
|
+
--mds-progress-color: rgb(var(--status-error-04));
|
|
357
|
+
--mds-progress-background: rgb(var(--status-error-07));
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
:host( [variant="warning"] ) {
|
|
361
|
+
|
|
362
|
+
--mds-progress-color: rgb(var(--status-warning-04));
|
|
363
|
+
--mds-progress-background: rgb(var(--status-warning-07));
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
:host( [variant="success"] ) {
|
|
367
|
+
|
|
368
|
+
--mds-progress-color: rgb(var(--status-success-04));
|
|
369
|
+
--mds-progress-background: rgb(var(--status-success-07));
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
:host( [variant="info"] ) {
|
|
373
|
+
|
|
374
|
+
--mds-progress-color: rgb(var(--status-info-04));
|
|
375
|
+
--mds-progress-background: rgb(var(--status-info-07));
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
@container style(--magma-pref-theme: system) {
|
|
380
|
+
|
|
381
|
+
@media (prefers-color-scheme: dark) {
|
|
382
|
+
:host,
|
|
383
|
+
:host( [variant="primary"] ) {
|
|
384
|
+
|
|
385
|
+
--mds-progress-color: rgb(var(--brand-maggioli-05));
|
|
386
|
+
--mds-progress-background: rgb(var(--tone-neutral-07));
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
:host( [variant="error"] ) {
|
|
390
|
+
|
|
391
|
+
--mds-progress-color: rgb(var(--status-error-04));
|
|
392
|
+
--mds-progress-background: rgb(var(--status-error-07));
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
:host( [variant="warning"] ) {
|
|
396
|
+
|
|
397
|
+
--mds-progress-color: rgb(var(--status-warning-04));
|
|
398
|
+
--mds-progress-background: rgb(var(--status-warning-07));
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
:host( [variant="success"] ) {
|
|
402
|
+
|
|
403
|
+
--mds-progress-color: rgb(var(--status-success-04));
|
|
404
|
+
--mds-progress-background: rgb(var(--status-success-07));
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
:host( [variant="info"] ) {
|
|
408
|
+
|
|
409
|
+
--mds-progress-color: rgb(var(--status-info-04));
|
|
410
|
+
--mds-progress-background: rgb(var(--status-info-07));
|
|
411
|
+
}
|
|
412
|
+
}
|
|
307
413
|
}
|
|
308
414
|
|
|
@@ -25,7 +25,7 @@ export class MdsProgress {
|
|
|
25
25
|
this.stepsList = steps.split(',');
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { "aria-valuemax": "100", "aria-valuemin": "0", "aria-valuenow": Math.round(this.progress * 100), role: "progressbar" }, h("div", { class: "progress", style: this.direction === 'horizontal'
|
|
28
|
+
return (h(Host, { key: 'fadd41ff24e30137a6998f2d6627fcd5d44c68ae', "aria-valuemax": "100", "aria-valuemin": "0", "aria-valuenow": Math.round(this.progress * 100), role: "progressbar" }, h("div", { key: '8e1cc488d34e9876b8e256e58c65c973a7fe7a11', class: "contrast-area" }), h("div", { key: '611728b4b0b6702b3f98e005a8de265e43f7cf7b', class: "progress", style: this.direction === 'horizontal'
|
|
29
29
|
? { flexGrow: `${this.progress}` }
|
|
30
30
|
: { flexGrow: `${this.progress}`, width: '100%' } })));
|
|
31
31
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,15 @@ import baselineAudiotrack from "@icon/mi/baseline/audiotrack.svg";
|
|
|
4
4
|
import baselineTerminal from "@icon/mi/baseline/terminal.svg";
|
|
5
5
|
import baselineInsertDriveFile from "@icon/mi/baseline/insert-drive-file.svg";
|
|
6
6
|
import mdiHardDisk from "@icon/mdi/harddisk.svg";
|
|
7
|
+
import baselineEmail from "@icon/mi/baseline/email.svg";
|
|
8
|
+
import baselineWysiwyg from "@icon/mi/baseline/wysiwyg.svg";
|
|
9
|
+
import baselinePanorama from "@icon/mi/baseline/panorama.svg";
|
|
10
|
+
import baselineWeb from "@icon/mi/baseline/web.svg";
|
|
11
|
+
import baselineTV from "@icon/mi/baseline/tv.svg";
|
|
12
|
+
import baselineBorderAll from "@icon/mi/baseline/border-all.svg";
|
|
13
|
+
import baselineDescription from "@icon/mi/baseline/description.svg";
|
|
14
|
+
import mdiVectorCurve from "@icon/mdi/vector-curve.svg";
|
|
15
|
+
import baselineVideocam from "@icon/mi/baseline/videocam.svg";
|
|
7
16
|
const fileFormatsVariant = {
|
|
8
17
|
archive: {
|
|
9
18
|
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
|
@@ -43,67 +52,67 @@ const fileFormatsVariant = {
|
|
|
43
52
|
},
|
|
44
53
|
email: {
|
|
45
54
|
color: 'fill-label-blue-04 text-label-blue-04',
|
|
46
|
-
icon:
|
|
55
|
+
icon: baselineEmail,
|
|
47
56
|
iconBackground: 'bg-label-blue-10',
|
|
48
57
|
variant: 'blue',
|
|
49
58
|
},
|
|
50
59
|
executable: {
|
|
51
60
|
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
|
52
|
-
icon:
|
|
61
|
+
icon: baselineWysiwyg,
|
|
53
62
|
iconBackground: 'bg-label-amaranth-10',
|
|
54
63
|
variant: 'amaranth',
|
|
55
64
|
},
|
|
56
65
|
image: {
|
|
57
66
|
color: 'fill-label-green-04 text-label-green-04',
|
|
58
|
-
icon:
|
|
67
|
+
icon: baselinePanorama,
|
|
59
68
|
iconBackground: 'bg-label-green-10',
|
|
60
69
|
variant: 'green',
|
|
61
70
|
},
|
|
62
71
|
imageRaster: {
|
|
63
72
|
color: 'fill-label-green-04 text-label-green-04',
|
|
64
|
-
icon:
|
|
73
|
+
icon: baselinePanorama,
|
|
65
74
|
iconBackground: 'bg-label-green-10',
|
|
66
75
|
variant: 'green',
|
|
67
76
|
},
|
|
68
77
|
markup: {
|
|
69
78
|
color: 'fill-label-yellow-04 text-label-yellow-04',
|
|
70
|
-
icon:
|
|
79
|
+
icon: baselineWeb,
|
|
71
80
|
iconBackground: 'bg-label-yellow-10',
|
|
72
81
|
variant: 'yellow',
|
|
73
82
|
},
|
|
74
83
|
slide: {
|
|
75
84
|
color: 'fill-label-orchid-04 text-label-orchid-04',
|
|
76
|
-
icon:
|
|
85
|
+
icon: baselineTV,
|
|
77
86
|
iconBackground: 'bg-label-orchid-10',
|
|
78
87
|
variant: 'orchid',
|
|
79
88
|
},
|
|
80
89
|
spreadsheet: {
|
|
81
90
|
color: 'fill-label-lime-04 text-label-lime-04',
|
|
82
|
-
icon:
|
|
91
|
+
icon: baselineBorderAll,
|
|
83
92
|
iconBackground: 'bg-label-lime-10',
|
|
84
93
|
variant: 'lime',
|
|
85
94
|
},
|
|
86
95
|
text: {
|
|
87
96
|
color: 'fill-label-blue-04 text-label-blue-04',
|
|
88
|
-
icon:
|
|
97
|
+
icon: baselineDescription,
|
|
89
98
|
iconBackground: 'bg-label-blue-10',
|
|
90
99
|
variant: 'blue',
|
|
91
100
|
},
|
|
92
101
|
vectorImage: {
|
|
93
102
|
color: 'fill-label-aqua-04 text-label-aqua-04',
|
|
94
|
-
icon:
|
|
103
|
+
icon: mdiVectorCurve,
|
|
95
104
|
iconBackground: 'bg-label-aqua-10',
|
|
96
105
|
variant: 'aqua',
|
|
97
106
|
},
|
|
98
107
|
vector: {
|
|
99
108
|
color: 'fill-label-aqua-04 text-label-aqua-04',
|
|
100
|
-
icon:
|
|
109
|
+
icon: mdiVectorCurve,
|
|
101
110
|
iconBackground: 'bg-label-aqua-10',
|
|
102
111
|
variant: 'aqua',
|
|
103
112
|
},
|
|
104
113
|
video: {
|
|
105
114
|
color: 'fill-label-violet-04 text-label-violet-04',
|
|
106
|
-
icon:
|
|
115
|
+
icon: baselineVideocam,
|
|
107
116
|
iconBackground: 'bg-label-violet-10',
|
|
108
117
|
variant: 'violet',
|
|
109
118
|
},
|