fuma 2.0.7 → 2.0.8

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.
@@ -88,7 +88,7 @@
88
88
  <FormControl {key} {label} {error} class={klass}>
89
89
  {#snippet children({ key })}
90
90
  <div class="flex grow gap-2" class:hidden={item}>
91
- <div class="input input-bordered flex grow items-center pr-2">
91
+ <div class="input flex grow items-center pr-2">
92
92
  <input
93
93
  type="text"
94
94
  id={key}
@@ -112,7 +112,7 @@
112
112
  {#if noSlotItemWrapper}
113
113
  {@render slotItem(item)}
114
114
  {:else}
115
- <div class="flex h-12 items-center gap-2 rounded-lg border bg-base-100 pl-4 pr-2">
115
+ <div class="bg-base-100 flex h-12 items-center gap-2 rounded-lg border pr-2 pl-4">
116
116
  <div class="grow">
117
117
  {@render slotItem(item)}
118
118
  </div>
@@ -43,12 +43,7 @@
43
43
  <svelte:fragment slot="activator">
44
44
  <FormControl {...props}>
45
45
  {#snippet children({ key })}
46
- <button
47
- bind:this={button}
48
- id={key}
49
- type="button"
50
- class="input-bordered flex h-12 items-center gap-2 rounded-lg border pl-4 pr-2 hover:bg-base-200/50"
51
- >
46
+ <button bind:this={button} id={key} type="button" class="input flex grow items-center pr-2">
52
47
  {#if selectedOption}
53
48
  {#if selectedOption.icon}
54
49
  <Icon path={selectedOption.icon} size={21} class="opacity-70" />
@@ -77,6 +72,6 @@
77
72
  {#if item.icon}
78
73
  <Icon path={item.icon} size={18} class="opacity-70" />
79
74
  {/if}
80
- <span class="whitespace-nowrap pr-4">{item.label}</span>
75
+ <span class="pr-4 whitespace-nowrap">{item.label}</span>
81
76
  </SelectorList>
82
77
  </DropDown>
@@ -2,7 +2,7 @@ import type { Options } from '../../utils/options.js';
2
2
  import type { SnippetLike } from './type.js';
3
3
  export type Primitive = string | number | boolean | Date;
4
4
  export type ItemBase = {
5
- id: number | number;
5
+ id: string | number;
6
6
  };
7
7
  export type TableField<Item extends ItemBase> = (TableFieldCommon<Item> & TableFieldPrimitve) | (TableFieldCommon<Item> & TableFieldSelect);
8
8
  type TableFieldCommon<Item extends ItemBase> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",