ui-ingredients 0.18.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,5 @@
|
|
1
|
-
|
2
|
-
container?: HTMLElement;
|
3
|
-
}
|
4
|
-
|
5
|
-
|
6
|
-
container?: HTMLElement;
|
7
|
-
})) => void;
|
1
|
+
interface PortalProviderProps {
|
2
|
+
container?: HTMLElement | null;
|
3
|
+
}
|
4
|
+
export declare const getPortalProviderPropsContext: () => PortalProviderProps | undefined, setPortalProviderPropsContext: (context: PortalProviderProps | (() => PortalProviderProps)) => void;
|
5
|
+
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Snippet } from 'svelte';
|
2
2
|
export interface PortalProviderProps {
|
3
|
-
container?: HTMLElement;
|
3
|
+
container?: HTMLElement | null;
|
4
4
|
children?: Snippet;
|
5
5
|
}
|
6
6
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
interface PortalActionProps {
|
6
6
|
disabled?: boolean;
|
7
|
-
container?: HTMLElement;
|
7
|
+
container?: HTMLElement | null;
|
8
8
|
}
|
9
9
|
|
10
10
|
export interface PortalProps
|
@@ -30,8 +30,11 @@
|
|
30
30
|
|
31
31
|
<div
|
32
32
|
use:portal={{
|
33
|
-
|
34
|
-
|
33
|
+
container:
|
34
|
+
portalActionProps.container ??
|
35
|
+
portalProviderProps?.container ??
|
36
|
+
undefined,
|
37
|
+
disabled: portalActionProps.disabled ?? false,
|
35
38
|
getRootNode: environment?.getRootNode,
|
36
39
|
}}
|
37
40
|
{...localProps}
|
@@ -2,7 +2,7 @@ import type { Assign } from '../types.js';
|
|
2
2
|
import type { SvelteHTMLElements } from 'svelte/elements';
|
3
3
|
interface PortalActionProps {
|
4
4
|
disabled?: boolean;
|
5
|
-
container?: HTMLElement;
|
5
|
+
container?: HTMLElement | null;
|
6
6
|
}
|
7
7
|
export interface PortalProps extends Assign<SvelteHTMLElements['div'], PortalActionProps> {
|
8
8
|
}
|