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.
@@ -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 {children, ...props}: PortalProps = $props();
16
+ let {container, disabled, getRootNode, children}: PortalProps = $props();
17
+ let environmentContext = useEnvironmentContext();
16
18
  </script>
17
19
 
18
- <div use:portal={props}>
20
+ <div
21
+ use:portal={{
22
+ container,
23
+ disabled,
24
+ getRootNode: getRootNode ?? environmentContext?.getRootNode,
25
+ }}
26
+ >
19
27
  {@render children?.()}
20
28
  </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui-ingredients",
3
3
  "type": "module",
4
- "version": "0.0.12",
4
+ "version": "0.0.13",
5
5
  "packageManager": "pnpm@9.7.0",
6
6
  "svelte": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",