bits-ui 0.0.28 → 0.0.29
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/bits/alert-dialog/components/AlertDialog.svelte +1 -1
- package/dist/bits/context-menu/components/ContextMenu.svelte +0 -3
- package/dist/bits/dialog/components/Dialog.svelte +1 -1
- package/dist/internal/helpers.js +1 -1
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.js +1 -0
- package/dist/internal/is.d.ts +1 -0
- package/dist/internal/is.js +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import { writable } from "svelte/store";
|
|
2
2
|
import { ctx } from "../ctx.js";
|
|
3
3
|
import { onDestroy } from "svelte";
|
|
4
|
-
import { isBrowser } from "
|
|
4
|
+
import { isBrowser } from "../../../internal/index.js";
|
|
5
5
|
export let preventScroll = void 0;
|
|
6
6
|
export let closeOnEscape = void 0;
|
|
7
7
|
export let closeOnOutsideClick = false;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
<script>import { ctx } from "../ctx.js";
|
|
2
|
-
import { writable } from "svelte/store";
|
|
3
|
-
import { onDestroy } from "svelte";
|
|
4
|
-
import { isBrowser } from "@/utils/is.js";
|
|
5
2
|
export let closeOnOutsideClick = void 0;
|
|
6
3
|
export let closeOnEscape = void 0;
|
|
7
4
|
export let portal = void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>import { writable } from "svelte/store";
|
|
2
2
|
import { ctx } from "../ctx.js";
|
|
3
|
-
import { isBrowser } from "
|
|
3
|
+
import { isBrowser } from "../../../internal/index.js";
|
|
4
4
|
import { onDestroy } from "svelte";
|
|
5
5
|
export let preventScroll = void 0;
|
|
6
6
|
export let closeOnEscape = void 0;
|
package/dist/internal/helpers.js
CHANGED
package/dist/internal/index.d.ts
CHANGED
package/dist/internal/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isBrowser: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const isBrowser = typeof document !== "undefined";
|