fuma 2.0.27 → 2.0.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.
@@ -56,18 +56,18 @@
56
56
  {
57
57
  key: 'name',
58
58
  label: 'Prop',
59
- getCell: (p) => p.id,
59
+ cell: (p) => p.id,
60
60
  locked: true
61
61
  },
62
62
  {
63
63
  key: 'type',
64
64
  label: 'Type',
65
- getCell: (p) => typeof p.value
65
+ cell: (p) => typeof p.value
66
66
  },
67
67
  {
68
68
  key: 'value',
69
69
  label: 'Value',
70
- getCell: (p) => p.value,
70
+ cell: (p) => p.value,
71
71
  visible: true
72
72
  }
73
73
  ]}
@@ -64,7 +64,7 @@
64
64
  <SelectorList
65
65
  trigger={button}
66
66
  {focusIndex}
67
- items={_options.map((opt) => ({ id: opt.value, ...opt }))}
67
+ items={_options.map((opt) => ({ id: opt.value, ...opt })).filter((opt) => !opt.disable)}
68
68
  let:item
69
69
  on:select={({ detail }) => onSelect(detail)}
70
70
  class="w-full"
@@ -3,6 +3,7 @@ export type Option = {
3
3
  value: string;
4
4
  label: string;
5
5
  icon?: string | Snippet;
6
+ disable?: boolean;
6
7
  };
7
8
  export type OptionRecord<Values extends string> = Record<Values, Omit<Option, 'value'>>;
8
9
  export type Options = string | string[] | Option[] | Record<string, string> | OptionRecord<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fuma",
3
- "version": "2.0.27",
3
+ "version": "2.0.28",
4
4
  "description": "My fullstack material build with sveltekit, daisyui, zod, prisma, lucia",
5
5
  "author": {
6
6
  "name": "Jonas Voisard",
@@ -114,7 +114,7 @@
114
114
  "svelte-sonner": "^0.3.28",
115
115
  "tippy.js": "^6.3.7",
116
116
  "ts-node": "^10.9.2",
117
- "vite": "^7.1.9",
117
+ "vite": "^7.1.12",
118
118
  "zod": "^4.1.11"
119
119
  },
120
120
  "scripts": {