fuma 2.0.42 → 2.0.44

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.
@@ -55,6 +55,7 @@
55
55
 
56
56
  const dispatch = createEventDispatcher<{
57
57
  input: { value: RelationItem | null }
58
+ blur: void
58
59
  }>()
59
60
 
60
61
  export async function clear() {
@@ -98,6 +99,7 @@
98
99
  async function handleBlur() {
99
100
  isFocus = false
100
101
  searchValue = ''
102
+ dispatch('blur')
101
103
  }
102
104
  </script>
103
105
 
@@ -105,7 +107,7 @@
105
107
  <div class="contents" slot="activator">
106
108
  <FormControl {key} {label} {error} class={klass}>
107
109
  {#snippet children({ key })}
108
- <label class="input" class:hidden={item}>
110
+ <label class="input w-full" class:hidden={item}>
109
111
  <svelte:component this={Icon} class="h-5 w-5 shrink-0 opacity-70" />
110
112
  <input
111
113
  type="text"
@@ -42,6 +42,7 @@ declare class __sveltets_Render<RelationItem extends {
42
42
  input: CustomEvent<{
43
43
  value: RelationItem | null;
44
44
  }>;
45
+ blur: CustomEvent<void>;
45
46
  } & {
46
47
  [evt: string]: CustomEvent<any>;
47
48
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "2.0.42",
3
+ "version": "2.0.44",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",