@skeletonlabs/skeleton 1.6.2-dev.9011cd1d → 1.6.2-dev.a0370b80
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/styles/all.css
CHANGED
package/dist/styles/skeleton.css
CHANGED
|
@@ -86,10 +86,13 @@ function applyAnimationSettings() {
|
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
if (event.target === elemBackdrop)
|
|
89
|
+
function onDrawerInteraction(event) {
|
|
90
|
+
if (event.target === elemBackdrop) {
|
|
91
91
|
drawerStore.close();
|
|
92
|
-
|
|
92
|
+
dispatch("backdrop", event);
|
|
93
|
+
} else {
|
|
94
|
+
dispatch("drawer", event);
|
|
95
|
+
}
|
|
93
96
|
}
|
|
94
97
|
function onKeydownWindow(event) {
|
|
95
98
|
if (!$drawerStore)
|
|
@@ -125,8 +128,9 @@ $:
|
|
|
125
128
|
bind:this={elemBackdrop}
|
|
126
129
|
class="drawer-backdrop {classesBackdrop}"
|
|
127
130
|
data-testid="drawer-backdrop"
|
|
128
|
-
on:mousedown={
|
|
129
|
-
on:touchstart
|
|
131
|
+
on:mousedown={onDrawerInteraction}
|
|
132
|
+
on:touchstart
|
|
133
|
+
on:touchend
|
|
130
134
|
on:keypress
|
|
131
135
|
transition:fade|local={{ duration }}
|
|
132
136
|
use:focusTrap={true}
|
|
@@ -36,9 +36,13 @@ declare const __propDef: {
|
|
|
36
36
|
describedby?: string | undefined;
|
|
37
37
|
};
|
|
38
38
|
events: {
|
|
39
|
+
touchstart: TouchEvent;
|
|
40
|
+
touchend: TouchEvent;
|
|
39
41
|
keypress: KeyboardEvent;
|
|
40
42
|
/** {{ event }} backdrop - Fires on backdrop interaction.*/
|
|
41
43
|
backdrop: CustomEvent<any>;
|
|
44
|
+
/** {{ event }} drawer - Fires on drawer interaction.*/
|
|
45
|
+
drawer: CustomEvent<any>;
|
|
42
46
|
} & {
|
|
43
47
|
[evt: string]: CustomEvent<any>;
|
|
44
48
|
};
|