@likable-hair/svelte 3.1.2 → 3.1.4

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.
@@ -28,8 +28,8 @@ beforeUpdate(() => {
28
28
  if (open && localOpen != open) {
29
29
  hasBeenOpened = true;
30
30
  let otherDialogs = document.querySelectorAll("[data-dialog=true]");
31
+ let maxZIndex = 0;
31
32
  if (otherDialogs.length > 0) {
32
- let maxZIndex = 0;
33
33
  otherDialogs.forEach((dialog) => {
34
34
  let computedStyle = getComputedStyle(dialog);
35
35
  let currentZIndex = computedStyle.getPropertyValue("--dialog-z-index");
@@ -38,6 +38,16 @@ beforeUpdate(() => {
38
38
  });
39
39
  zIndex = maxZIndex + 2;
40
40
  }
41
+ let otherDrawers = document.querySelectorAll("[data-drawer=true]");
42
+ if (otherDrawers.length > 0) {
43
+ otherDrawers.forEach((dialog) => {
44
+ let computedStyle = getComputedStyle(dialog);
45
+ let currentZIndex = computedStyle.getPropertyValue("--drawer-z-index");
46
+ if (!maxZIndex || maxZIndex < Number(currentZIndex))
47
+ maxZIndex = Number(currentZIndex);
48
+ });
49
+ zIndex = maxZIndex + 2;
50
+ }
41
51
  document.body.style.overflow = "hidden";
42
52
  } else if (!open) {
43
53
  let otherDialogs = document.querySelectorAll("[data-dialog=true]");
@@ -71,6 +71,7 @@ beforeUpdate(() => {
71
71
  style:--drawer-overlay-speed={_overlaySpeed}
72
72
  style:--drawer-overlay-background-color={_overlayBackgroundColor}
73
73
  style:--drawer-overlay-opacity={_overlayOpacity}
74
+ style:--drawer-z-index={zIndex}
74
75
  >
75
76
  <div
76
77
  style:position="fixed"
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export { default as Gesture } from './components/simple/common/Gesture.svelte';
4
4
  export { default as IntersectionObserver } from './components/simple/common/IntersectionObserver.svelte';
5
5
  export { default as MediaQuery } from './components/simple/common/MediaQuery.svelte';
6
6
  export { default as Menu } from './components/simple/common/Menu.svelte';
7
+ export { default as ToolTip } from './components/composed/common/ToolTip.svelte';
7
8
  export { scrollAtCenter as scrollAtCenter } from './components/simple/common/scroller';
8
9
  export { default as Calendar } from './components/simple/dates/Calendar.svelte';
9
10
  export { default as DatePicker } from './components/simple/dates/DatePicker.svelte';
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ export { default as Gesture } from './components/simple/common/Gesture.svelte';
4
4
  export { default as IntersectionObserver } from './components/simple/common/IntersectionObserver.svelte';
5
5
  export { default as MediaQuery } from './components/simple/common/MediaQuery.svelte';
6
6
  export { default as Menu } from './components/simple/common/Menu.svelte';
7
+ export { default as ToolTip } from './components/composed/common/ToolTip.svelte';
7
8
  export { scrollAtCenter as scrollAtCenter } from './components/simple/common/scroller';
8
9
  export { default as Calendar } from './components/simple/dates/Calendar.svelte';
9
10
  export { default as DatePicker } from './components/simple/dates/DatePicker.svelte';
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.1.2",
4
+ "version": "3.1.4",
5
5
  "scripts": {
6
6
  "host": "vite --host",
7
7
  "dev": "vite dev",