m3-svelte 6.0.0 → 6.0.2
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/README.md +1 -1
- package/package/buttons/Button.svelte +15 -46
- package/package/buttons/FAB.svelte +1 -8
- package/package/buttons/SplitButton.svelte +2 -9
- package/package/containers/BottomSheet.svelte +4 -4
- package/package/containers/Dialog.svelte +3 -15
- package/package/containers/ListItem.svelte +7 -31
- package/package/containers/MenuItem.svelte +4 -10
- package/package/containers/Snackbar.svelte +3 -15
- package/package/containers/StandardSideSheet.svelte +1 -7
- package/package/forms/Checkbox.svelte +2 -3
- package/package/forms/Chip.svelte +4 -11
- package/package/forms/CircularProgressEstimate.svelte +1 -33
- package/package/forms/DateField.svelte +7 -19
- package/package/forms/DateFieldOutlined.svelte +9 -21
- package/package/forms/LinearProgressEstimate.svelte +1 -98
- package/package/forms/RadioAnim1.svelte +1 -2
- package/package/forms/RadioAnim2.svelte +1 -2
- package/package/forms/RadioAnim3.svelte +1 -2
- package/package/forms/Select.svelte +4 -16
- package/package/forms/SelectOutlined.svelte +4 -16
- package/package/forms/Slider.svelte +6 -12
- package/package/forms/Switch.svelte +7 -8
- package/package/forms/TextField.svelte +10 -29
- package/package/forms/TextFieldMultiline.svelte +11 -37
- package/package/forms/TextFieldOutlined.svelte +8 -27
- package/package/forms/TextFieldOutlinedMultiline.svelte +9 -35
- package/package/forms/_picker/CalendarPicker.svelte +1 -7
- package/package/forms/_picker/FocusPicker.svelte +1 -7
- package/package/forms/_picker/Header.svelte +2 -8
- package/package/forms/_picker/Item.svelte +2 -8
- package/package/misc/Layer.svelte +18 -16
- package/package/misc/recommended-styles.css +1 -1
- package/package/misc/styles.css +109 -16
- package/package/misc/tailwind-styles.css +15 -105
- package/package/nav/NavCMLX.svelte +8 -38
- package/package/nav/NavCMLXItem.svelte +19 -277
- package/package/nav/Tabs.svelte +1 -8
- package/package/nav/TabsLink.svelte +1 -8
- package/package/nav/VariableTabs.svelte +1 -8
- package/package/nav/VariableTabsLink.svelte +1 -8
- package/package.json +7 -5
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
@mixin --cmlxi-vertical {
|
|
63
|
+
flex-direction: column;
|
|
63
64
|
.content {
|
|
64
65
|
flex-direction: column;
|
|
65
66
|
text-align: center;
|
|
@@ -126,18 +127,13 @@
|
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
.m3-container {
|
|
129
|
-
|
|
130
|
-
font-family: var(--m3-font);
|
|
131
|
-
font-size: 0.75rem;
|
|
132
|
-
line-height: 1.333;
|
|
133
|
-
letter-spacing: 0.031rem;
|
|
134
|
-
font-weight: 500;
|
|
135
|
-
|
|
130
|
+
@apply --m3-label-medium;
|
|
136
131
|
display: flex;
|
|
137
132
|
|
|
138
133
|
&:is(button) {
|
|
139
134
|
background: none;
|
|
140
135
|
border: none;
|
|
136
|
+
padding: 0;
|
|
141
137
|
cursor: pointer;
|
|
142
138
|
}
|
|
143
139
|
|
|
@@ -179,296 +175,42 @@
|
|
|
179
175
|
}
|
|
180
176
|
|
|
181
177
|
&.compact {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
padding-block: 0.375rem;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
.content {
|
|
188
|
-
flex-direction: column;
|
|
189
|
-
text-align: center;
|
|
190
|
-
|
|
191
|
-
&:hover {
|
|
192
|
-
> .icon {
|
|
193
|
-
background-color: oklab(from currentColor l a b / 0.08);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
&:focus-visible,
|
|
198
|
-
&:active {
|
|
199
|
-
> .icon {
|
|
200
|
-
background-color: oklab(from currentColor l a b / 0.12);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
> .icon {
|
|
205
|
-
width: 3.5rem;
|
|
206
|
-
height: 2rem;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
> :global(:is(.ripple-container, .tint)) {
|
|
210
|
-
display: none;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.content.selected {
|
|
215
|
-
color: var(--m3c-secondary);
|
|
216
|
-
> .icon {
|
|
217
|
-
color: var(--m3c-on-secondary-container);
|
|
218
|
-
}
|
|
219
|
-
> .icon::before {
|
|
220
|
-
opacity: 1;
|
|
221
|
-
width: 100%;
|
|
222
|
-
inset: 0;
|
|
223
|
-
transition:
|
|
224
|
-
width var(--m3-easing-fast-spatial),
|
|
225
|
-
inset var(--m3-easing-fast-spatial);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
178
|
+
@apply --cmlxi-compact;
|
|
179
|
+
@apply --cmlxi-vertical;
|
|
229
180
|
}
|
|
230
181
|
&.medium {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
padding-block: 0.75rem;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
.content {
|
|
237
|
-
padding-inline: 1rem;
|
|
238
|
-
border-radius: var(--m3-shape-full);
|
|
239
|
-
}
|
|
240
|
-
.content.selected {
|
|
241
|
-
background-color: var(--m3c-secondary-container);
|
|
242
|
-
color: var(--m3c-on-secondary-container);
|
|
243
|
-
}
|
|
244
|
-
|
|
182
|
+
@apply --cmlxi-medium;
|
|
183
|
+
@apply --cmlxi-horizontal;
|
|
245
184
|
}
|
|
246
185
|
&.large {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
.content {
|
|
250
|
-
padding-block: 0.375rem;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
.content {
|
|
255
|
-
flex-direction: column;
|
|
256
|
-
text-align: center;
|
|
257
|
-
|
|
258
|
-
&:hover {
|
|
259
|
-
> .icon {
|
|
260
|
-
background-color: oklab(from currentColor l a b / 0.08);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
&:focus-visible,
|
|
265
|
-
&:active {
|
|
266
|
-
> .icon {
|
|
267
|
-
background-color: oklab(from currentColor l a b / 0.12);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
> .icon {
|
|
272
|
-
width: 3.5rem;
|
|
273
|
-
height: 2rem;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
> :global(:is(.ripple-container, .tint)) {
|
|
277
|
-
display: none;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.content.selected {
|
|
282
|
-
color: var(--m3c-secondary);
|
|
283
|
-
> .icon {
|
|
284
|
-
color: var(--m3c-on-secondary-container);
|
|
285
|
-
}
|
|
286
|
-
> .icon::before {
|
|
287
|
-
opacity: 1;
|
|
288
|
-
width: 100%;
|
|
289
|
-
inset: 0;
|
|
290
|
-
transition:
|
|
291
|
-
width var(--m3-easing-fast-spatial),
|
|
292
|
-
inset var(--m3-easing-fast-spatial);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
186
|
+
@apply --cmlxi-large;
|
|
187
|
+
@apply --cmlxi-vertical;
|
|
296
188
|
}
|
|
297
189
|
&.extra-large {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
font-family: var(--m3-font);
|
|
301
|
-
font-size: 0.875rem;
|
|
302
|
-
line-height: 1.429;
|
|
303
|
-
letter-spacing: 0.006rem;
|
|
304
|
-
font-weight: 500;
|
|
305
|
-
|
|
306
|
-
height: 3.5rem;
|
|
307
|
-
padding-inline: 1.25rem;
|
|
308
|
-
|
|
309
|
-
.content {
|
|
310
|
-
gap: 0.75rem;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
.content {
|
|
315
|
-
padding-inline: 1rem;
|
|
316
|
-
border-radius: var(--m3-shape-full);
|
|
317
|
-
}
|
|
318
|
-
.content.selected {
|
|
319
|
-
background-color: var(--m3c-secondary-container);
|
|
320
|
-
color: var(--m3c-on-secondary-container);
|
|
321
|
-
}
|
|
322
|
-
|
|
190
|
+
@apply --cmlxi-extra-large;
|
|
191
|
+
@apply --cmlxi-horizontal;
|
|
323
192
|
}
|
|
324
193
|
}
|
|
325
194
|
.m3-container.auto {
|
|
326
195
|
@media (width < 37.5rem) {
|
|
327
196
|
/* Compact */
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
padding-block: 0.375rem;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
.content {
|
|
334
|
-
flex-direction: column;
|
|
335
|
-
text-align: center;
|
|
336
|
-
|
|
337
|
-
&:hover {
|
|
338
|
-
> .icon {
|
|
339
|
-
background-color: oklab(from currentColor l a b / 0.08);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
&:focus-visible,
|
|
344
|
-
&:active {
|
|
345
|
-
> .icon {
|
|
346
|
-
background-color: oklab(from currentColor l a b / 0.12);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
> .icon {
|
|
351
|
-
width: 3.5rem;
|
|
352
|
-
height: 2rem;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
> :global(:is(.ripple-container, .tint)) {
|
|
356
|
-
display: none;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.content.selected {
|
|
361
|
-
color: var(--m3c-secondary);
|
|
362
|
-
> .icon {
|
|
363
|
-
color: var(--m3c-on-secondary-container);
|
|
364
|
-
}
|
|
365
|
-
> .icon::before {
|
|
366
|
-
opacity: 1;
|
|
367
|
-
width: 100%;
|
|
368
|
-
inset: 0;
|
|
369
|
-
transition:
|
|
370
|
-
width var(--m3-easing-fast-spatial),
|
|
371
|
-
inset var(--m3-easing-fast-spatial);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
|
|
197
|
+
@apply --cmlxi-compact;
|
|
198
|
+
@apply --cmlxi-vertical;
|
|
375
199
|
}
|
|
376
200
|
@media (37.5rem <= width < 52.5rem) {
|
|
377
201
|
/* Medium */
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
padding-block: 0.75rem;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
.content {
|
|
384
|
-
padding-inline: 1rem;
|
|
385
|
-
border-radius: var(--m3-shape-full);
|
|
386
|
-
}
|
|
387
|
-
.content.selected {
|
|
388
|
-
background-color: var(--m3c-secondary-container);
|
|
389
|
-
color: var(--m3c-on-secondary-container);
|
|
390
|
-
}
|
|
391
|
-
|
|
202
|
+
@apply --cmlxi-medium;
|
|
203
|
+
@apply --cmlxi-horizontal;
|
|
392
204
|
}
|
|
393
205
|
@media (52.5rem <= width < 100rem) {
|
|
394
206
|
/* Large */
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
.content {
|
|
398
|
-
padding-block: 0.375rem;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
.content {
|
|
403
|
-
flex-direction: column;
|
|
404
|
-
text-align: center;
|
|
405
|
-
|
|
406
|
-
&:hover {
|
|
407
|
-
> .icon {
|
|
408
|
-
background-color: oklab(from currentColor l a b / 0.08);
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
&:focus-visible,
|
|
413
|
-
&:active {
|
|
414
|
-
> .icon {
|
|
415
|
-
background-color: oklab(from currentColor l a b / 0.12);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
> .icon {
|
|
420
|
-
width: 3.5rem;
|
|
421
|
-
height: 2rem;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
> :global(:is(.ripple-container, .tint)) {
|
|
425
|
-
display: none;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.content.selected {
|
|
430
|
-
color: var(--m3c-secondary);
|
|
431
|
-
> .icon {
|
|
432
|
-
color: var(--m3c-on-secondary-container);
|
|
433
|
-
}
|
|
434
|
-
> .icon::before {
|
|
435
|
-
opacity: 1;
|
|
436
|
-
width: 100%;
|
|
437
|
-
inset: 0;
|
|
438
|
-
transition:
|
|
439
|
-
width var(--m3-easing-fast-spatial),
|
|
440
|
-
inset var(--m3-easing-fast-spatial);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
|
|
207
|
+
@apply --cmlxi-large;
|
|
208
|
+
@apply --cmlxi-vertical;
|
|
444
209
|
}
|
|
445
210
|
@media (100rem <= width) {
|
|
446
211
|
/* Extra large */
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
font-family: var(--m3-font);
|
|
450
|
-
font-size: 0.875rem;
|
|
451
|
-
line-height: 1.429;
|
|
452
|
-
letter-spacing: 0.006rem;
|
|
453
|
-
font-weight: 500;
|
|
454
|
-
|
|
455
|
-
height: 3.5rem;
|
|
456
|
-
padding-inline: 1.25rem;
|
|
457
|
-
|
|
458
|
-
.content {
|
|
459
|
-
gap: 0.75rem;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
.content {
|
|
464
|
-
padding-inline: 1rem;
|
|
465
|
-
border-radius: var(--m3-shape-full);
|
|
466
|
-
}
|
|
467
|
-
.content.selected {
|
|
468
|
-
background-color: var(--m3c-secondary-container);
|
|
469
|
-
color: var(--m3c-on-secondary-container);
|
|
470
|
-
}
|
|
471
|
-
|
|
212
|
+
@apply --cmlxi-extra-large;
|
|
213
|
+
@apply --cmlxi-horizontal;
|
|
472
214
|
}
|
|
473
215
|
}
|
|
474
216
|
</style>
|
package/package/nav/Tabs.svelte
CHANGED
|
@@ -77,13 +77,7 @@
|
|
|
77
77
|
height: 1.5rem;
|
|
78
78
|
}
|
|
79
79
|
label > span {
|
|
80
|
-
|
|
81
|
-
font-family: var(--m3-font);
|
|
82
|
-
font-size: 0.875rem;
|
|
83
|
-
line-height: 1.429;
|
|
84
|
-
letter-spacing: 0.006rem;
|
|
85
|
-
font-weight: 500;
|
|
86
|
-
|
|
80
|
+
@apply --m3-title-small;
|
|
87
81
|
}
|
|
88
82
|
|
|
89
83
|
@media (hover: hover) {
|
|
@@ -152,7 +146,6 @@
|
|
|
152
146
|
|
|
153
147
|
.bar {
|
|
154
148
|
print-color-adjust: exact;
|
|
155
|
-
-webkit-print-color-adjust: exact;
|
|
156
149
|
}
|
|
157
150
|
@media screen and (forced-colors: active) {
|
|
158
151
|
.bar {
|
|
@@ -75,13 +75,7 @@
|
|
|
75
75
|
height: 1.5rem;
|
|
76
76
|
}
|
|
77
77
|
a > span {
|
|
78
|
-
|
|
79
|
-
font-family: var(--m3-font);
|
|
80
|
-
font-size: 0.875rem;
|
|
81
|
-
line-height: 1.429;
|
|
82
|
-
letter-spacing: 0.006rem;
|
|
83
|
-
font-weight: 500;
|
|
84
|
-
|
|
78
|
+
@apply --m3-title-small;
|
|
85
79
|
}
|
|
86
80
|
|
|
87
81
|
@media (hover: hover) {
|
|
@@ -130,7 +124,6 @@
|
|
|
130
124
|
|
|
131
125
|
.bar {
|
|
132
126
|
print-color-adjust: exact;
|
|
133
|
-
-webkit-print-color-adjust: exact;
|
|
134
127
|
}
|
|
135
128
|
@media screen and (forced-colors: active) {
|
|
136
129
|
.bar {
|
|
@@ -138,13 +138,7 @@
|
|
|
138
138
|
height: 1.5rem;
|
|
139
139
|
}
|
|
140
140
|
label > span {
|
|
141
|
-
|
|
142
|
-
font-family: var(--m3-font);
|
|
143
|
-
font-size: 0.875rem;
|
|
144
|
-
line-height: 1.429;
|
|
145
|
-
letter-spacing: 0.006rem;
|
|
146
|
-
font-weight: 500;
|
|
147
|
-
|
|
141
|
+
@apply --m3-title-small;
|
|
148
142
|
}
|
|
149
143
|
|
|
150
144
|
@media (hover: hover) {
|
|
@@ -223,7 +217,6 @@
|
|
|
223
217
|
|
|
224
218
|
.bar {
|
|
225
219
|
print-color-adjust: exact;
|
|
226
|
-
-webkit-print-color-adjust: exact;
|
|
227
220
|
}
|
|
228
221
|
@media screen and (forced-colors: active) {
|
|
229
222
|
.bar {
|
|
@@ -136,13 +136,7 @@
|
|
|
136
136
|
height: 1.5rem;
|
|
137
137
|
}
|
|
138
138
|
a > span {
|
|
139
|
-
|
|
140
|
-
font-family: var(--m3-font);
|
|
141
|
-
font-size: 0.875rem;
|
|
142
|
-
line-height: 1.429;
|
|
143
|
-
letter-spacing: 0.006rem;
|
|
144
|
-
font-weight: 500;
|
|
145
|
-
|
|
139
|
+
@apply --m3-title-small;
|
|
146
140
|
}
|
|
147
141
|
|
|
148
142
|
@media (hover: hover) {
|
|
@@ -191,7 +185,6 @@
|
|
|
191
185
|
|
|
192
186
|
.bar {
|
|
193
187
|
print-color-adjust: exact;
|
|
194
|
-
-webkit-print-color-adjust: exact;
|
|
195
188
|
}
|
|
196
189
|
@media screen and (forced-colors: active) {
|
|
197
190
|
.bar {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "m3-svelte",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"license": "Apache-2.0 OR GPL-3.0-only",
|
|
5
5
|
"repository": "KTibow/m3-svelte",
|
|
6
6
|
"author": {
|
|
@@ -44,22 +44,24 @@
|
|
|
44
44
|
"@sveltejs/package": "^2.5.7",
|
|
45
45
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
46
46
|
"@types/flubber": "^0.4.0",
|
|
47
|
+
"@types/node": "^24.10.1",
|
|
47
48
|
"eslint": "^9.39.1",
|
|
48
49
|
"eslint-config-prettier": "^10.1.8",
|
|
49
50
|
"eslint-plugin-svelte": "^3.13.1",
|
|
50
|
-
"fast-glob": "^3.3.3",
|
|
51
51
|
"flubber": "^0.4.2",
|
|
52
52
|
"globals": "^16.5.0",
|
|
53
|
+
"m3-svelte": "link:",
|
|
53
54
|
"prettier": "^3.7.4",
|
|
54
55
|
"prettier-plugin-svelte": "^3.4.0",
|
|
55
56
|
"publint": "^0.3.15",
|
|
56
57
|
"svelte": "^5.45.6",
|
|
57
58
|
"svelte-check": "^4.3.4",
|
|
58
59
|
"svelte-highlight": "^7.9.0",
|
|
60
|
+
"tinyglobby": "^0.2.15",
|
|
59
61
|
"typescript": "^5.9.3",
|
|
60
|
-
"typescript-eslint": "^8.
|
|
61
|
-
"vite": "^7.2.
|
|
62
|
-
"vite-plugin-functions-mixins": "^0.
|
|
62
|
+
"typescript-eslint": "^8.49.0",
|
|
63
|
+
"vite": "^7.2.7",
|
|
64
|
+
"vite-plugin-functions-mixins": "^0.4.0",
|
|
63
65
|
"vite-plugin-token-shaker": "^0.0.3"
|
|
64
66
|
},
|
|
65
67
|
"peerDependencies": {
|