@likable-hair/svelte 3.1.33 → 3.1.34
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.
|
@@ -8,7 +8,7 @@ import ColorInvertedSelector, {} from "../simple/lists/ColorInvertedSelector.sve
|
|
|
8
8
|
import { sidebarOpened } from "../../stores/layouts/unstableSidebarOpened";
|
|
9
9
|
let clazz = {};
|
|
10
10
|
export { clazz as class };
|
|
11
|
-
export let drawerOpened = false, expandOn = "hover", options = [], selectedIndex = void 0;
|
|
11
|
+
export let drawerOpened = false, expandOn = "hover", options = [], selectedIndex = void 0, sidebarExpanded = false;
|
|
12
12
|
let dispatch = createEventDispatcher();
|
|
13
13
|
function toggleMenu() {
|
|
14
14
|
drawerOpened = !drawerOpened;
|
|
@@ -26,7 +26,6 @@ function handleMenuSelection(option) {
|
|
|
26
26
|
option
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
let sidebarExpanded = false;
|
|
30
29
|
$:
|
|
31
30
|
$sidebarOpened = sidebarExpanded;
|
|
32
31
|
</script>
|
|
@@ -113,6 +112,8 @@ $:
|
|
|
113
112
|
on:keypress={handleOverlayClick}
|
|
114
113
|
class:visible={drawerOpened}
|
|
115
114
|
class="overlay {clazz.overlay || ''}"
|
|
115
|
+
role="presentation"
|
|
116
|
+
tabindex="-1"
|
|
116
117
|
></div>
|
|
117
118
|
<div
|
|
118
119
|
class="content"
|