@likable-hair/svelte 3.1.22 → 3.1.23
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/components/composed/common/MenuOrDrawer.svelte +2 -1
- package/dist/components/composed/common/MenuOrDrawer.svelte.d.ts +1 -0
- package/dist/components/composed/common/MenuOrDrawerOptions.svelte +2 -1
- package/dist/components/composed/common/MenuOrDrawerOptions.svelte.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import Drawer from "../../simple/navigation/Drawer.svelte";
|
|
3
3
|
import Menu from "../../simple/common/Menu.svelte";
|
|
4
4
|
import MediaQuery from "../../simple/common/MediaQuery.svelte";
|
|
5
|
-
export let open = false, activator, drawerPosition = "bottom", menuAnchor = "bottom-center", stayInViewport = true, flipOnOverflow = false, _boxShadow = "rgb(var(--global-color-grey-900), .5) 0px 2px 4px", _height = "fit-content", _width = void 0, _maxHeight = void 0, _minWidth = "100px", _borderRadius = "5px";
|
|
5
|
+
export let open = false, activator, drawerPosition = "bottom", menuAnchor = "bottom-center", stayInViewport = true, flipOnOverflow = false, _boxShadow = "rgb(var(--global-color-grey-900), .5) 0px 2px 4px", _height = "fit-content", _width = void 0, _maxHeight = void 0, _minWidth = "100px", _borderRadius = "5px", openingId = void 0;
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MediaQuery let:mAndDown>
|
|
@@ -29,6 +29,7 @@ export let open = false, activator, drawerPosition = "bottom", menuAnchor = "bot
|
|
|
29
29
|
anchor={menuAnchor}
|
|
30
30
|
bind:stayInViewport={stayInViewport}
|
|
31
31
|
bind:flipOnOverflow={flipOnOverflow}
|
|
32
|
+
bind:openingId
|
|
32
33
|
>
|
|
33
34
|
<slot isDrawer={false} isMenu={true}></slot>
|
|
34
35
|
</Menu>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<script>import "../../../css/main.css";
|
|
4
4
|
import MenuOrDrawer from "./MenuOrDrawer.svelte";
|
|
5
5
|
import SelectableVerticalList from "../../simple/lists/SelectableVerticalList.svelte";
|
|
6
|
-
export let open = false, activator, drawerPosition = "bottom", menuAnchor = "bottom-center", elements = [], stayInViewport = true, flipOnOverflow = false, _boxShadow = "rgb(var(--global-color-grey-900), .5) 0px 2px 4px", _height = "fit-content", _maxHeight = void 0, _minWidth = "100px", _borderRadius = "5px";
|
|
6
|
+
export let open = false, activator, drawerPosition = "bottom", menuAnchor = "bottom-center", elements = [], stayInViewport = true, flipOnOverflow = false, _boxShadow = "rgb(var(--global-color-grey-900), .5) 0px 2px 4px", _height = "fit-content", _maxHeight = void 0, _minWidth = "100px", _borderRadius = "5px", openingId = void 0;
|
|
7
7
|
let selected;
|
|
8
8
|
let focused;
|
|
9
9
|
$:
|
|
@@ -28,6 +28,7 @@ $:
|
|
|
28
28
|
{_borderRadius}
|
|
29
29
|
let:isDrawer
|
|
30
30
|
--drawer-default-space={`${Math.min(elements?.length || 0, 5) * 56}px`}
|
|
31
|
+
bind:openingId
|
|
31
32
|
>
|
|
32
33
|
<div class="selectable-list-wrapper">
|
|
33
34
|
<SelectableVerticalList
|