@x33025/sveltely 0.0.15 → 0.0.16

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.
@@ -1,6 +1,12 @@
1
1
  <script lang="ts">
2
2
  import { createPortal } from '../actions/portal';
3
- export let name: string = 'default';
3
+
4
+ let {
5
+ name = 'default',
6
+ class: className = '',
7
+ style = '',
8
+ ...props
9
+ }: { name?: string; class?: string; style?: string } & Record<string, unknown> = $props();
4
10
  </script>
5
11
 
6
- <div use:createPortal={name}></div>
12
+ <div use:createPortal={name} class={className} {style} {...props}></div>
@@ -1,20 +1,8 @@
1
- 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> {
2
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
- $$bindings?: Bindings;
4
- } & Exports;
5
- (internal: unknown, props: Props & {
6
- $$events?: Events;
7
- $$slots?: Slots;
8
- }): Exports & {
9
- $set?: any;
10
- $on?: any;
11
- };
12
- z_$$bindings?: Bindings;
13
- }
14
- declare const Portal: $$__sveltets_2_IsomorphicComponent<{
1
+ type $$ComponentProps = {
15
2
  name?: string;
16
- }, {
17
- [evt: string]: CustomEvent<any>;
18
- }, {}, {}, string>;
19
- type Portal = InstanceType<typeof Portal>;
3
+ class?: string;
4
+ style?: string;
5
+ } & Record<string, unknown>;
6
+ declare const Portal: import("svelte").Component<$$ComponentProps, {}, "">;
7
+ type Portal = ReturnType<typeof Portal>;
20
8
  export default Portal;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { motion, hover } from './actions/motion';
2
+ export { portal } from './actions/portal';
2
3
  export { default as AnimatedNumber } from './components/AnimatedNumber.svelte';
3
4
  export { default as GlowEffect } from './components/GlowEffect.svelte';
4
5
  export { default as NavigationStack } from './components/NavigationStack';
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export { motion, hover } from './actions/motion';
2
+ export { portal } from './actions/portal';
2
3
  export { default as AnimatedNumber } from './components/AnimatedNumber.svelte';
3
4
  export { default as GlowEffect } from './components/GlowEffect.svelte';
4
5
  export { default as NavigationStack } from './components/NavigationStack';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x33025/sveltely",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",