@likable-hair/svelte 3.0.47 → 3.0.48

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", _boxShadow = "rgb(var(--global-color-grey-900), .5) 0px 2px 4px", _height = "fit-content", _maxHeight = void 0, _minWidth = "100px", _borderRadius = "5px";
5
+ export let open = false, activator, drawerPosition = "bottom", menuAnchor = "bottom-center", _boxShadow = "rgb(var(--global-color-grey-900), .5) 0px 2px 4px", _height = "fit-content", _width = void 0, _maxHeight = void 0, _minWidth = "100px", _borderRadius = "5px";
6
6
  </script>
7
7
 
8
8
  <MediaQuery let:mAndDown>
@@ -25,6 +25,7 @@ export let open = false, activator, drawerPosition = "bottom", menuAnchor = "bot
25
25
  _maxHeight={_maxHeight}
26
26
  _minWidth={_minWidth}
27
27
  _borderRadius={_borderRadius}
28
+ _width={_width || ""}
28
29
  anchor={menuAnchor}
29
30
  >
30
31
  <slot isDrawer={false} isMenu={true}></slot>
@@ -11,6 +11,7 @@ declare const __propDef: {
11
11
  menuAnchor?: ComponentProps<Menu>['anchor'];
12
12
  _boxShadow?: string | undefined;
13
13
  _height?: string | undefined;
14
+ _width?: string | undefined;
14
15
  _maxHeight?: string | undefined;
15
16
  _minWidth?: string | undefined;
16
17
  _borderRadius?: string | undefined;
@@ -3,7 +3,7 @@ import Autocomplete, {
3
3
  } from "../../simple/forms/Autocomplete.svelte";
4
4
  let clazz = {};
5
5
  export { clazz as class };
6
- export let autocompleteProps = {};
6
+ export let autocompleteProps = {}, selected = [];
7
7
  let items = [
8
8
  { value: "AD", label: "Andorra" },
9
9
  { value: "AE", label: "United Arab Emirates" },
@@ -259,6 +259,7 @@ let items = [
259
259
 
260
260
  <Autocomplete
261
261
  items={items}
262
+ bind:values={selected}
262
263
  {...autocompleteProps}
263
264
  >
264
265
  <svelte:fragment
@@ -36,6 +36,7 @@ declare const __propDef: {
36
36
  menuBorderRadius?: string | undefined;
37
37
  mobileDrawer?: boolean | undefined;
38
38
  }, "items"> | undefined;
39
+ selected?: Item[] | undefined;
39
40
  };
40
41
  events: {
41
42
  [evt: string]: CustomEvent<any>;
@@ -246,6 +246,7 @@ import MenuOrDrawer from "../../composed/common/MenuOrDrawer.svelte";
246
246
  {:else}
247
247
  <MenuOrDrawer
248
248
  {activator}
249
+ _width={menuWidth || ""}
249
250
  _height={menuHeight}
250
251
  _maxHeight="300px"
251
252
  _boxShadow={menuBoxShadow}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair",
4
- "version": "3.0.47",
4
+ "version": "3.0.48",
5
5
  "scripts": {
6
6
  "host": "vite --host",
7
7
  "dev": "vite dev",