ui-ingredients 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/portal/root.svelte +10 -2
- package/package.json +1 -1
package/dist/portal/root.svelte
CHANGED
@@ -10,11 +10,19 @@
|
|
10
10
|
</script>
|
11
11
|
|
12
12
|
<script lang="ts">
|
13
|
+
import {useEnvironmentContext} from '../environment-provider/index.js';
|
13
14
|
import {portal} from '@zag-js/svelte';
|
14
15
|
|
15
|
-
let {
|
16
|
+
let {container, disabled, getRootNode, children}: PortalProps = $props();
|
17
|
+
let environmentContext = useEnvironmentContext();
|
16
18
|
</script>
|
17
19
|
|
18
|
-
<div
|
20
|
+
<div
|
21
|
+
use:portal={{
|
22
|
+
container,
|
23
|
+
disabled,
|
24
|
+
getRootNode: getRootNode ?? environmentContext?.getRootNode,
|
25
|
+
}}
|
26
|
+
>
|
19
27
|
{@render children?.()}
|
20
28
|
</div>
|