@x33025/sveltely 0.0.17 → 0.0.18
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/index.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ export { portalHost, portalContent } from './actions/portal';
|
|
|
3
3
|
export { default as AnimatedNumber } from './components/AnimatedNumber.svelte';
|
|
4
4
|
export { default as GlowEffect } from './components/GlowEffect.svelte';
|
|
5
5
|
export { default as NavigationStack } from './components/NavigationStack';
|
|
6
|
-
export { default as PortalHost } from './components/PortalHost.svelte';
|
|
7
|
-
export { default as PortalContent } from './components/PortalContent.svelte';
|
|
8
6
|
export { default as Slider } from './components/Slider.svelte';
|
|
9
7
|
export { default as Sheet } from './components/Sheet';
|
|
10
8
|
export { default as Spinner } from './components/Spinner.svelte';
|
package/dist/index.js
CHANGED
|
@@ -3,8 +3,6 @@ export { portalHost, portalContent } from './actions/portal';
|
|
|
3
3
|
export { default as AnimatedNumber } from './components/AnimatedNumber.svelte';
|
|
4
4
|
export { default as GlowEffect } from './components/GlowEffect.svelte';
|
|
5
5
|
export { default as NavigationStack } from './components/NavigationStack';
|
|
6
|
-
export { default as PortalHost } from './components/PortalHost.svelte';
|
|
7
|
-
export { default as PortalContent } from './components/PortalContent.svelte';
|
|
8
6
|
export { default as Slider } from './components/Slider.svelte';
|
|
9
7
|
export { default as Sheet } from './components/Sheet';
|
|
10
8
|
export { default as Spinner } from './components/Spinner.svelte';
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
import { portalContent } from '../actions/portal';
|
|
4
|
-
|
|
5
|
-
let {
|
|
6
|
-
to = 'default',
|
|
7
|
-
class: className = '',
|
|
8
|
-
style = '',
|
|
9
|
-
children,
|
|
10
|
-
...props
|
|
11
|
-
}: { to?: string; class?: string; style?: string; children?: Snippet } & Record<
|
|
12
|
-
string,
|
|
13
|
-
unknown
|
|
14
|
-
> = $props();
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<div use:portalContent={to} class={className} {style} {...props}>
|
|
18
|
-
{#if children}
|
|
19
|
-
{@render children()}
|
|
20
|
-
{/if}
|
|
21
|
-
</div>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from 'svelte';
|
|
2
|
-
type $$ComponentProps = {
|
|
3
|
-
to?: string;
|
|
4
|
-
class?: string;
|
|
5
|
-
style?: string;
|
|
6
|
-
children?: Snippet;
|
|
7
|
-
} & Record<string, unknown>;
|
|
8
|
-
declare const PortalContent: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
9
|
-
type PortalContent = ReturnType<typeof PortalContent>;
|
|
10
|
-
export default PortalContent;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { portalHost } from '../actions/portal';
|
|
3
|
-
|
|
4
|
-
let {
|
|
5
|
-
name = 'default',
|
|
6
|
-
class: className = '',
|
|
7
|
-
style = '',
|
|
8
|
-
...props
|
|
9
|
-
}: { name?: string; class?: string; style?: string } & Record<string, unknown> = $props();
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<div use:portalHost={name} class={className} {style} {...props}></div>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type $$ComponentProps = {
|
|
2
|
-
name?: string;
|
|
3
|
-
class?: string;
|
|
4
|
-
style?: string;
|
|
5
|
-
} & Record<string, unknown>;
|
|
6
|
-
declare const PortalHost: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
7
|
-
type PortalHost = ReturnType<typeof PortalHost>;
|
|
8
|
-
export default PortalHost;
|