@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.
@@ -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>
@@ -17,6 +17,7 @@ declare const __propDef: {
17
17
  _maxHeight?: string | undefined;
18
18
  _minWidth?: string | undefined;
19
19
  _borderRadius?: string | undefined;
20
+ openingId?: ComponentProps<Menu>['openingId'];
20
21
  };
21
22
  events: {
22
23
  close: CustomEvent<{}>;
@@ -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
@@ -20,6 +20,7 @@ declare const __propDef: {
20
20
  _maxHeight?: string | undefined;
21
21
  _minWidth?: string | undefined;
22
22
  _borderRadius?: string | undefined;
23
+ openingId?: ComponentProps<MenuOrDrawer>['openingId'];
23
24
  };
24
25
  events: {
25
26
  select: CustomEvent<{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair and others",
4
- "version": "3.1.22",
4
+ "version": "3.1.23",
5
5
  "scripts": {
6
6
  "host": "vite --host",
7
7
  "dev": "vite dev",