@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 w-full text-left {className}">
95
- <div class="w-full" bind:this={triggerEl}>
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="block w-full text-left"
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
- 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/dist/style.css CHANGED
@@ -233,6 +233,9 @@
233
233
  .flex {
234
234
  display: flex;
235
235
  }
236
+ .inline-block {
237
+ display: inline-block;
238
+ }
236
239
  .size-4 {
237
240
  width: calc(var(--spacing) * 4);
238
241
  height: calc(var(--spacing) * 4);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x33025/sveltely",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",