diff --git a/src/lib/syv.ts b/src/lib/core/dialog.ts similarity index 94% rename from src/lib/syv.ts rename to src/lib/core/dialog.ts index 0ba3db8..68bc9a4 100644 --- a/src/lib/syv.ts +++ b/src/lib/core/dialog.ts @@ -1,5 +1,5 @@ import type { ComponentProps, ComponentType, SvelteComponent } from 'svelte'; -import type { Demand, LazyComponent, SyvOptions } from './types.js'; +import type { Demand, LazyComponent, SyvOptions } from '../types.js'; import { mount as create, unmount } from 'svelte'; let instance: ReturnType; diff --git a/src/lib/index.ts b/src/lib/index.ts index 2f1ace1..78003e7 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,3 +1,2 @@ -export * as syv from './syv.js'; - +export * as dialog from './core/dialog.js'; export * as tooltip from './core/tooltip.js'; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index cfcfc43..6ce796e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,6 +1,5 @@
{}}> - import('./ExampleDialog.svelte'), () => import('$lib/core/ScrollTop.svelte')]} - > - {#snippet children([ - Example, - Scroll, - // @ts-expect-error - Yeah, - ])} - - - {/snippet} - - true} /> @@ -35,20 +20,20 @@