fuma 0.1.27 → 0.1.28

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,7 @@
1
1
  <script>import { slide } from "svelte/transition";
2
2
  import { onMount } from "svelte";
3
3
  import { formContext } from "../../validation/form.js";
4
+ import { Slot } from "../index.js";
4
5
  let klass = "";
5
6
  export { klass as class };
6
7
  export let classLabel = "";
@@ -42,7 +43,11 @@ onMount(() => {
42
43
  >
43
44
  {#if label || $$slots.label}
44
45
  <label for="{prefixFor}{_key}" class="label cursor-pointer {classLabel}">
45
- <span class="label-text">{label}</span>
46
+ <span class="label-text">
47
+ <slot name="label">
48
+ <Slot slot={label} />
49
+ </slot>
50
+ </span>
46
51
  <slot name="label" />
47
52
  <slot name="label_append" />
48
53
  </label>
@@ -1,10 +1,11 @@
1
1
  import { SvelteComponent } from "svelte";
2
+ import type { ComponentAndProps } from '../../utils/index.js';
2
3
  declare const __propDef: {
3
4
  props: {
4
5
  class?: string | undefined;
5
6
  classLabel?: string | undefined;
6
7
  key?: string | undefined;
7
- label?: string | undefined;
8
+ label?: string | ComponentAndProps | undefined;
8
9
  error?: string | undefined;
9
10
  hint?: string | undefined;
10
11
  prefix?: string | number | undefined;
@@ -8,6 +8,10 @@ const dispatch = createEventDispatcher();
8
8
  </script>
9
9
 
10
10
  <FormControl {...$$restProps} let:key class="">
11
+ <svelte:fragment slot="label">
12
+ <slot name="label" />
13
+ </svelte:fragment>
14
+
11
15
  <input
12
16
  bind:this={inputElement}
13
17
  bind:checked={value}
@@ -5,7 +5,7 @@ declare const __propDef: {
5
5
  class?: string | undefined;
6
6
  classLabel?: string | undefined;
7
7
  key?: string | undefined;
8
- label?: string | undefined;
8
+ label?: string | import("../../index.js").ComponentAndProps | undefined;
9
9
  error?: string | undefined;
10
10
  hint?: string | undefined;
11
11
  prefix?: string | number | undefined;
@@ -28,7 +28,9 @@ declare const __propDef: {
28
28
  } & {
29
29
  [evt: string]: CustomEvent<any>;
30
30
  };
31
- slots: {};
31
+ slots: {
32
+ label: {};
33
+ };
32
34
  };
33
35
  export type InputBooleanProps = typeof __propDef.props;
34
36
  export type InputBooleanEvents = typeof __propDef.events;
@@ -5,7 +5,7 @@ declare const __propDef: {
5
5
  class?: string | undefined;
6
6
  classLabel?: string | undefined;
7
7
  key?: string | undefined;
8
- label?: string | undefined;
8
+ label?: string | import("../../index.js").ComponentAndProps | undefined;
9
9
  error?: string | undefined;
10
10
  hint?: string | undefined;
11
11
  prefix?: string | number | undefined;
@@ -5,7 +5,7 @@ declare const __propDef: {
5
5
  class?: string | undefined;
6
6
  classLabel?: string | undefined;
7
7
  key?: string | undefined;
8
- label?: string | undefined;
8
+ label?: string | import("../../utils/index.js").ComponentAndProps | undefined;
9
9
  error?: string | undefined;
10
10
  hint?: string | undefined;
11
11
  prefix?: string | number | undefined;
@@ -8,7 +8,7 @@ declare const __propDef: {
8
8
  class?: string | undefined;
9
9
  classLabel?: string | undefined;
10
10
  key?: string | undefined;
11
- label?: string | undefined;
11
+ label?: string | import("../../index.js").ComponentAndProps | undefined;
12
12
  error?: string | undefined;
13
13
  hint?: string | undefined;
14
14
  prefix?: string | number | undefined;
@@ -4,7 +4,7 @@ declare const __propDef: {
4
4
  class?: string | undefined;
5
5
  classLabel?: string | undefined;
6
6
  key?: string | undefined;
7
- label?: string | undefined;
7
+ label?: string | import("../../index.js").ComponentAndProps | undefined;
8
8
  error?: string | undefined;
9
9
  hint?: string | undefined;
10
10
  prefix?: string | number | undefined;
@@ -5,7 +5,7 @@ declare const __propDef: {
5
5
  class?: string | undefined;
6
6
  classLabel?: string | undefined;
7
7
  key?: string | undefined;
8
- label?: string | undefined;
8
+ label?: string | import("../../index.js").ComponentAndProps | undefined;
9
9
  error?: string | undefined;
10
10
  hint?: string | undefined;
11
11
  prefix?: string | number | undefined;
@@ -4,7 +4,7 @@ declare const __propDef: {
4
4
  class?: string | undefined;
5
5
  classLabel?: string | undefined;
6
6
  key?: string | undefined;
7
- label?: string | undefined;
7
+ label?: string | import("../../..").ComponentAndProps | undefined;
8
8
  error?: string | undefined;
9
9
  hint?: string | undefined;
10
10
  prefix?: string | number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod and more",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",