m3-svelte 3.5.0 → 3.6.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/package/forms/TextField.svelte +1 -1
- package/package/forms/TextFieldMultiline.svelte +1 -1
- package/package/forms/TextFieldOutlined.svelte +1 -1
- package/package/forms/TextFieldOutlinedMultiline.svelte +1 -1
- package/package/misc/_ripple.svelte +4 -5
- package/package/misc/recommended-styles.css +39 -0
- package/package.json +4 -1
|
@@ -73,11 +73,10 @@
|
|
|
73
73
|
svg.appendChild(gradient);
|
|
74
74
|
svg.appendChild(circle);
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
) {
|
|
76
|
+
const ua = navigator.userAgent;
|
|
77
|
+
const isFirefox = ua.includes("Firefox");
|
|
78
|
+
const isTrulySafari = !ua.includes("Chrome") && ua.includes("Safari");
|
|
79
|
+
if (!isFirefox && !isTrulySafari && size > 100) {
|
|
81
80
|
const filter = document.createElementNS("http://www.w3.org/2000/svg", "filter");
|
|
82
81
|
filter.id = `noise-${Date.now()}`;
|
|
83
82
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--m3-util-refocus: refocus-one 0.6s cubic-bezier(0.14, 5.63, 0.4, 0.5) forwards;
|
|
3
|
+
}
|
|
4
|
+
:focus-visible:not(.focus-inset, .focus-none) {
|
|
5
|
+
animation: var(--m3-util-refocus);
|
|
6
|
+
outline: none;
|
|
7
|
+
}
|
|
8
|
+
:focus-visible:is(.focus-inset):not(.focus-none) {
|
|
9
|
+
animation: refocus-simple 0.3s forwards cubic-bezier(0.05, 0.7, 0.1, 1);
|
|
10
|
+
outline: none;
|
|
11
|
+
}
|
|
12
|
+
:focus-visible.focus-none {
|
|
13
|
+
outline: none;
|
|
14
|
+
}
|
|
15
|
+
@keyframes refocus-one {
|
|
16
|
+
0% {
|
|
17
|
+
box-shadow: 0 0 0 0px rgb(var(--m3-scheme-primary));
|
|
18
|
+
}
|
|
19
|
+
100% {
|
|
20
|
+
box-shadow: 0 0 0 3px rgb(var(--m3-scheme-primary));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
@keyframes refocus-simple {
|
|
24
|
+
0% {
|
|
25
|
+
box-shadow: inset 0 0 0 0px rgb(var(--m3-scheme-primary));
|
|
26
|
+
}
|
|
27
|
+
100% {
|
|
28
|
+
box-shadow: inset 0 0 0 3px rgb(var(--m3-scheme-primary));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
::placeholder {
|
|
33
|
+
color: rgb(var(--m3-scheme-on-background) / 0.5);
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
36
|
+
::selection {
|
|
37
|
+
background-color: rgb(var(--m3-scheme-tertiary));
|
|
38
|
+
color: rgb(var(--m3-scheme-on-tertiary));
|
|
39
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "m3-svelte",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"license": "Apache-2.0 OR GPL-3.0-only",
|
|
5
5
|
"repository": "KTibow/m3-svelte",
|
|
6
6
|
"author": {
|
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"./misc/styles.css": {
|
|
28
28
|
"import": "./package/misc/styles.css"
|
|
29
|
+
},
|
|
30
|
+
"./misc/recommended-styles.css": {
|
|
31
|
+
"import": "./package/misc/recommended-styles.css"
|
|
29
32
|
}
|
|
30
33
|
},
|
|
31
34
|
"devDependencies": {
|