noph-ui 0.7.4 → 0.7.6

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.
@@ -13,7 +13,7 @@
13
13
  supportingText,
14
14
  buttons,
15
15
  divider,
16
- enhanceFn,
16
+ submitFunction,
17
17
  ...attributes
18
18
  }: DialogProps = $props()
19
19
 
@@ -27,7 +27,7 @@
27
27
  </script>
28
28
 
29
29
  <form
30
- use:enhance={enhanceFn}
30
+ use:enhance={submitFunction}
31
31
  bind:this={element}
32
32
  class="np-dialog"
33
33
  popover="auto"
@@ -1,3 +1,4 @@
1
+ import type { SubmitFunction } from '@sveltejs/kit';
1
2
  import type { Snippet } from 'svelte';
2
3
  import type { HTMLFormAttributes } from 'svelte/elements';
3
4
  export interface DialogProps extends Omit<HTMLFormAttributes, 'class' | 'popover'> {
@@ -9,5 +10,5 @@ export interface DialogProps extends Omit<HTMLFormAttributes, 'class' | 'popover
9
10
  element?: HTMLElement;
10
11
  showPopover?: () => void;
11
12
  hidePopover?: () => void;
12
- enhanceFn?: () => any;
13
+ submitFunction?: SubmitFunction<Record<string, unknown> | undefined, Record<string, unknown> | undefined> | undefined;
13
14
  }
@@ -101,7 +101,7 @@
101
101
  margin: 0;
102
102
  margin-bottom: 2px;
103
103
  margin-top: 2px;
104
- position-area: bottom;
104
+ top: anchor(bottom);
105
105
  position-try-fallbacks: --menu-top;
106
106
  justify-self: anchor-center;
107
107
  transition:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {