@x33025/sveltely 0.0.14 → 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.
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
|
|
92
92
|
<svelte:window onclick={handleOutsideClick} onscroll={close} onresize={close} />
|
|
93
93
|
|
|
94
|
-
<div class="dropdown-container relative
|
|
95
|
-
<div
|
|
94
|
+
<div class="dropdown-container relative inline-block text-left {className}">
|
|
95
|
+
<div bind:this={triggerEl}>
|
|
96
96
|
<button
|
|
97
97
|
type="button"
|
|
98
|
-
class="
|
|
98
|
+
class="text-left"
|
|
99
99
|
onclick={toggle}
|
|
100
100
|
aria-expanded={isOpen}
|
|
101
101
|
aria-haspopup="true"
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { createPortal } from '../actions/portal';
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
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/dist/style.css
CHANGED