hamzus-ui 0.0.124 → 0.0.126

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamzus-ui",
3
- "version": "0.0.124",
3
+ "version": "0.0.126",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -5,6 +5,7 @@
5
5
  export let isOpen = true;
6
6
  export let direction = "center";
7
7
  export let width = "min(100%, 350px)";
8
+ export let height = "auto";
8
9
 
9
10
  const positionBeforeAnimation = {
10
11
  "left-top":[-10,0],
@@ -29,7 +30,7 @@
29
30
  {#if isOpen}
30
31
  <Portal target="body">
31
32
  <div class="dialog {direction}" style="--left:{positionBeforeAnimation[direction][0]}px;--top:{positionBeforeAnimation[direction][1]}px;">
32
- <div class="dialog-container" style="width: {width};">
33
+ <div class="dialog-container" style="width: {width};height:{height};">
33
34
  <IconButton style="position:absolute;top:var(--pad-m);right:var(--pad-m);" label="ghost" variant="ghost" onClick={handleClose}>
34
35
  <svg
35
36
  width="25"