m3-svelte 5.15.4 → 5.15.5
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/package/buttons/FAB.svelte +6 -4
- package/package/buttons/SplitButton.svelte +6 -4
- package/package/containers/BottomSheet.svelte +4 -2
- package/package/containers/Card.svelte +4 -2
- package/package/containers/Dialog.svelte +4 -2
- package/package/containers/Menu.svelte +4 -2
- package/package/containers/SnackbarItem.svelte +4 -2
- package/package/forms/Chip.svelte +4 -2
- package/package/forms/DateField.svelte +4 -2
- package/package/forms/DateFieldOutlined.svelte +4 -2
- package/package/forms/DatePickerDocked.svelte +4 -2
- package/package/forms/LinearProgressIndeterminate.svelte +4 -2
- package/package/forms/Select.svelte +5 -3
- package/package/forms/SelectOutlined.svelte +5 -3
- package/package/forms/Slider.svelte +6 -4
- package/package/forms/Switch.svelte +5 -3
- package/package/forms/TextField.svelte +8 -3
- package/package/forms/TextFieldMultiline.svelte +8 -3
- package/package/forms/TextFieldOutlined.svelte +8 -6
- package/package/forms/TextFieldOutlinedMultiline.svelte +8 -6
- package/package/misc/recommended-styles.css +4 -2
- package/package/misc/styles.css +121 -121
- package/package.json +1 -1
|
@@ -51,10 +51,12 @@
|
|
|
51
51
|
</button>
|
|
52
52
|
|
|
53
53
|
<style>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
@layer tokens {
|
|
55
|
+
:root {
|
|
56
|
+
--m3-fab-small-shape: var(--m3-util-rounding-small);
|
|
57
|
+
--m3-fab-normal-shape: var(--m3-util-rounding-large);
|
|
58
|
+
--m3-fab-large-shape: var(--m3-util-rounding-extra-large);
|
|
59
|
+
}
|
|
58
60
|
}
|
|
59
61
|
button {
|
|
60
62
|
display: inline-flex;
|
|
@@ -50,10 +50,12 @@
|
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
<style>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
@layer tokens {
|
|
54
|
+
:root {
|
|
55
|
+
--m3-split-button-outer-shape: 1.25rem;
|
|
56
|
+
--m3-split-button-half-shape: var(--m3-util-rounding-medium);
|
|
57
|
+
--m3-split-button-inner-shape: var(--m3-util-rounding-extra-small);
|
|
58
|
+
}
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
.m3-container {
|
|
@@ -111,8 +111,10 @@ opacity: ${Math.min(t * 3, 1)};`,
|
|
|
111
111
|
margin-block-end: 1rem;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
@layer tokens {
|
|
115
|
+
:root {
|
|
116
|
+
--m3-datefield-shape: var(--m3-util-rounding-extra-small);
|
|
117
|
+
}
|
|
116
118
|
}
|
|
117
119
|
.m3-container {
|
|
118
120
|
position: relative;
|
|
@@ -116,8 +116,10 @@ opacity: ${Math.min(t * 3, 1)};`,
|
|
|
116
116
|
want to customize the label's background?
|
|
117
117
|
do this: <DateFieldOutlined --m3-util-background="rgb(var(--m3-scheme-surface-container))" />
|
|
118
118
|
*/
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
@layer tokens {
|
|
120
|
+
:root {
|
|
121
|
+
--m3-datefield-outlined-shape: var(--m3-util-rounding-extra-small);
|
|
122
|
+
}
|
|
121
123
|
}
|
|
122
124
|
.m3-container {
|
|
123
125
|
display: inline-flex;
|
|
@@ -45,9 +45,11 @@
|
|
|
45
45
|
</div>
|
|
46
46
|
|
|
47
47
|
<style>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
@layer tokens {
|
|
49
|
+
:root {
|
|
50
|
+
--m3-menu-shape: var(--m3-util-rounding-extra-small);
|
|
51
|
+
--m3-field-filled-shape: var(--m3-util-rounding-extra-small);
|
|
52
|
+
}
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
.m3-container {
|
|
@@ -50,9 +50,11 @@
|
|
|
50
50
|
want to customize the label's background?
|
|
51
51
|
do this: <SelectOutlined --m3-util-background="rgb(var(--m3-scheme-surface-container))" />
|
|
52
52
|
*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
@layer tokens {
|
|
54
|
+
:root {
|
|
55
|
+
--m3-menu-shape: var(--m3-util-rounding-extra-small);
|
|
56
|
+
--m3-field-outlined-shape: var(--m3-util-rounding-extra-small);
|
|
57
|
+
}
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
.m3-container {
|
|
@@ -116,10 +116,12 @@
|
|
|
116
116
|
</div>
|
|
117
117
|
|
|
118
118
|
<style>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
@layer tokens {
|
|
120
|
+
:root {
|
|
121
|
+
--m3-slider-track-out-shape: 0.5rem;
|
|
122
|
+
--m3-slider-track-in-shape: 0.125rem;
|
|
123
|
+
--m3-slider-handle-shape: var(--m3-util-rounding-full);
|
|
124
|
+
}
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
.m3-container {
|
|
@@ -68,9 +68,11 @@
|
|
|
68
68
|
</div>
|
|
69
69
|
|
|
70
70
|
<style>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
@layer tokens {
|
|
72
|
+
:root {
|
|
73
|
+
--m3-switch-track-shape: var(--m3-util-rounding-full);
|
|
74
|
+
--m3-switch-handle-shape: var(--m3-util-rounding-full);
|
|
75
|
+
}
|
|
74
76
|
}
|
|
75
77
|
.m3-container {
|
|
76
78
|
display: inline-flex;
|
|
@@ -61,9 +61,14 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
|
|
63
63
|
<style>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
@layer tokens {
|
|
65
|
+
:root {
|
|
66
|
+
/* "textfield" is deprecated */
|
|
67
|
+
--m3-field-filled-shape: var(
|
|
68
|
+
--m3-textfield-filled-shape,
|
|
69
|
+
var(--m3-util-rounding-extra-small)
|
|
70
|
+
);
|
|
71
|
+
}
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
.m3-container {
|
|
@@ -56,9 +56,14 @@
|
|
|
56
56
|
</div>
|
|
57
57
|
|
|
58
58
|
<style>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
@layer tokens {
|
|
60
|
+
:root {
|
|
61
|
+
/* "textfield" is deprecated */
|
|
62
|
+
--m3-field-filled-shape: var(
|
|
63
|
+
--m3-textfield-filled-shape,
|
|
64
|
+
var(--m3-util-rounding-extra-small)
|
|
65
|
+
);
|
|
66
|
+
}
|
|
62
67
|
}
|
|
63
68
|
.m3-container {
|
|
64
69
|
display: inline-flex;
|
|
@@ -65,12 +65,14 @@
|
|
|
65
65
|
want to customize the label's background?
|
|
66
66
|
do this: <TextFieldOutlined --m3-util-background="rgb(var(--m3-scheme-surface-container))" />
|
|
67
67
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
--m3-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
@layer tokens {
|
|
69
|
+
:root {
|
|
70
|
+
/* "textfield" is deprecated */
|
|
71
|
+
--m3-field-outlined-shape: var(
|
|
72
|
+
--m3-textfield-outlined-shape,
|
|
73
|
+
var(--m3-util-rounding-extra-small)
|
|
74
|
+
);
|
|
75
|
+
}
|
|
74
76
|
}
|
|
75
77
|
.m3-container {
|
|
76
78
|
display: inline-flex;
|
|
@@ -60,12 +60,14 @@
|
|
|
60
60
|
want to customize the label's background?
|
|
61
61
|
do this: <TextFieldOutlinedMultiline --m3-util-background="rgb(var(--m3-scheme-surface-container))" />
|
|
62
62
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
--m3-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
@layer tokens {
|
|
64
|
+
:root {
|
|
65
|
+
/* "textfield" is deprecated */
|
|
66
|
+
--m3-field-outlined-shape: var(
|
|
67
|
+
--m3-textfield-outlined-shape,
|
|
68
|
+
var(--m3-util-rounding-extra-small)
|
|
69
|
+
);
|
|
70
|
+
}
|
|
69
71
|
}
|
|
70
72
|
.m3-container {
|
|
71
73
|
display: inline-flex;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@layer tokens {
|
|
2
|
+
:root {
|
|
3
|
+
--m3-util-refocus: refocus-outward 0.6s cubic-bezier(0.14, 5.63, 0.4, 0.5) forwards;
|
|
4
|
+
}
|
|
3
5
|
}
|
|
4
6
|
:focus-visible:not(.focus-inset, .focus-none) {
|
|
5
7
|
animation: var(--m3-util-refocus);
|
package/package/misc/styles.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
inherits: true;
|
|
9
9
|
initial-value: 0;
|
|
10
10
|
}
|
|
11
|
-
@layer
|
|
11
|
+
@layer tokens {
|
|
12
12
|
:root {
|
|
13
13
|
/* Needed for elevation to work */
|
|
14
14
|
--m3-util-elevation-0: none;
|
|
@@ -165,127 +165,127 @@
|
|
|
165
165
|
|
|
166
166
|
accent-color: rgb(var(--m3-scheme-primary));
|
|
167
167
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
168
|
+
}
|
|
169
|
+
.m3-font-display-large,
|
|
170
|
+
.m3-font-display-medium,
|
|
171
|
+
.m3-font-display-small {
|
|
172
|
+
font-family: var(--m3-font-display);
|
|
173
|
+
}
|
|
174
|
+
.m3-font-headline-large,
|
|
175
|
+
.m3-font-headline-medium,
|
|
176
|
+
.m3-font-headline-small {
|
|
177
|
+
font-family: var(--m3-font-headline);
|
|
178
|
+
}
|
|
179
|
+
.m3-font-title-large,
|
|
180
|
+
.m3-font-title-medium,
|
|
181
|
+
.m3-font-title-small {
|
|
182
|
+
font-family: var(--m3-font-title);
|
|
183
|
+
}
|
|
184
|
+
.m3-font-label-large,
|
|
185
|
+
.m3-font-label-medium,
|
|
186
|
+
.m3-font-label-small {
|
|
187
|
+
font-family: var(--m3-font-label);
|
|
188
|
+
}
|
|
189
|
+
.m3-font-body-large,
|
|
190
|
+
.m3-font-body-medium,
|
|
191
|
+
.m3-font-body-small {
|
|
192
|
+
font-family: var(--m3-font-body);
|
|
193
|
+
}
|
|
194
|
+
/* As the largest text on the screen, display styles are reserved for short, important text or numerals. */
|
|
195
|
+
.m3-font-display-large {
|
|
196
|
+
font-size: var(--m3-font-display-large-size);
|
|
197
|
+
line-height: var(--m3-font-display-large-height);
|
|
198
|
+
letter-spacing: var(--m3-font-display-large-tracking);
|
|
199
|
+
font-weight: var(--m3-font-display-large-weight);
|
|
200
|
+
}
|
|
201
|
+
.m3-font-display-medium {
|
|
202
|
+
font-size: var(--m3-font-display-medium-size);
|
|
203
|
+
line-height: var(--m3-font-display-medium-height);
|
|
204
|
+
letter-spacing: var(--m3-font-display-medium-tracking);
|
|
205
|
+
font-weight: var(--m3-font-display-medium-weight);
|
|
206
|
+
}
|
|
207
|
+
.m3-font-display-small {
|
|
208
|
+
font-size: var(--m3-font-display-small-size);
|
|
209
|
+
line-height: var(--m3-font-display-small-height);
|
|
210
|
+
letter-spacing: var(--m3-font-display-small-tracking);
|
|
211
|
+
font-weight: var(--m3-font-display-small-weight);
|
|
212
|
+
}
|
|
213
|
+
/* Headlines are best-suited for short, high-emphasis text on smaller screens. */
|
|
214
|
+
.m3-font-headline-large {
|
|
215
|
+
font-size: var(--m3-font-headline-large-size);
|
|
216
|
+
line-height: var(--m3-font-headline-large-height);
|
|
217
|
+
letter-spacing: var(--m3-font-headline-large-tracking);
|
|
218
|
+
font-weight: var(--m3-font-headline-large-weight);
|
|
219
|
+
}
|
|
220
|
+
.m3-font-headline-medium {
|
|
221
|
+
font-size: var(--m3-font-headline-medium-size);
|
|
222
|
+
line-height: var(--m3-font-headline-medium-height);
|
|
223
|
+
letter-spacing: var(--m3-font-headline-medium-tracking);
|
|
224
|
+
font-weight: var(--m3-font-headline-medium-weight);
|
|
225
|
+
}
|
|
226
|
+
.m3-font-headline-small {
|
|
227
|
+
font-size: var(--m3-font-headline-small-size);
|
|
228
|
+
line-height: var(--m3-font-headline-small-height);
|
|
229
|
+
letter-spacing: var(--m3-font-headline-small-tracking);
|
|
230
|
+
font-weight: var(--m3-font-headline-small-weight);
|
|
231
|
+
}
|
|
232
|
+
/* Titles are smaller than headline styles, and should be used for medium-emphasis text that remains relatively short. */
|
|
233
|
+
.m3-font-title-large {
|
|
234
|
+
font-size: var(--m3-font-title-large-size);
|
|
235
|
+
line-height: var(--m3-font-title-large-height);
|
|
236
|
+
letter-spacing: var(--m3-font-title-large-tracking);
|
|
237
|
+
font-weight: var(--m3-font-title-large-weight);
|
|
238
|
+
}
|
|
239
|
+
.m3-font-title-medium {
|
|
240
|
+
font-size: var(--m3-font-title-medium-size);
|
|
241
|
+
line-height: var(--m3-font-title-medium-height);
|
|
242
|
+
letter-spacing: var(--m3-font-title-medium-tracking);
|
|
243
|
+
font-weight: var(--m3-font-title-medium-weight);
|
|
244
|
+
}
|
|
245
|
+
.m3-font-title-small {
|
|
246
|
+
font-size: var(--m3-font-title-small-size);
|
|
247
|
+
line-height: var(--m3-font-title-small-height);
|
|
248
|
+
letter-spacing: var(--m3-font-title-small-tracking);
|
|
249
|
+
font-weight: var(--m3-font-title-small-weight);
|
|
250
|
+
}
|
|
251
|
+
/* Label styles are smaller, utilitarian styles, used for things like the text inside components
|
|
251
252
|
or for very small text in the content body, such as captions. */
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
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
|
-
}
|
|
253
|
+
.m3-font-label-large {
|
|
254
|
+
font-size: var(--m3-font-label-large-size);
|
|
255
|
+
line-height: var(--m3-font-label-large-height);
|
|
256
|
+
letter-spacing: var(--m3-font-label-large-tracking);
|
|
257
|
+
font-weight: var(--m3-font-label-large-weight);
|
|
258
|
+
}
|
|
259
|
+
.m3-font-label-medium {
|
|
260
|
+
font-size: var(--m3-font-label-medium-size);
|
|
261
|
+
line-height: var(--m3-font-label-medium-height);
|
|
262
|
+
letter-spacing: var(--m3-font-label-medium-tracking);
|
|
263
|
+
font-weight: var(--m3-font-label-medium-weight);
|
|
264
|
+
}
|
|
265
|
+
.m3-font-label-small {
|
|
266
|
+
font-size: var(--m3-font-label-small-size);
|
|
267
|
+
line-height: var(--m3-font-label-small-height);
|
|
268
|
+
letter-spacing: var(--m3-font-label-small-tracking);
|
|
269
|
+
font-weight: var(--m3-font-label-small-weight);
|
|
270
|
+
}
|
|
271
|
+
/* Body styles are used for longer passages of text in your app. */
|
|
272
|
+
.m3-font-body-large {
|
|
273
|
+
font-size: var(--m3-font-body-large-size);
|
|
274
|
+
line-height: var(--m3-font-body-large-height);
|
|
275
|
+
letter-spacing: var(--m3-font-body-large-tracking);
|
|
276
|
+
font-weight: var(--m3-font-body-large-weight);
|
|
277
|
+
}
|
|
278
|
+
.m3-font-body-medium {
|
|
279
|
+
font-size: var(--m3-font-body-medium-size);
|
|
280
|
+
line-height: var(--m3-font-body-medium-height);
|
|
281
|
+
letter-spacing: var(--m3-font-body-medium-tracking);
|
|
282
|
+
font-weight: var(--m3-font-body-medium-weight);
|
|
283
|
+
}
|
|
284
|
+
.m3-font-body-small {
|
|
285
|
+
font-size: var(--m3-font-body-small-size);
|
|
286
|
+
line-height: var(--m3-font-body-small-height);
|
|
287
|
+
letter-spacing: var(--m3-font-body-small-tracking);
|
|
288
|
+
font-weight: var(--m3-font-body-small-weight);
|
|
289
289
|
}
|
|
290
290
|
@layer base {
|
|
291
291
|
/* Reset a few things */
|