@skeletonlabs/skeleton-svelte 1.2.1 → 1.2.3

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.
@@ -48,7 +48,7 @@
48
48
  let options = $state.raw(data);
49
49
  const collection = $derived(
50
50
  combobox.collection({
51
- items: data,
51
+ items: options,
52
52
  // Map data structure
53
53
  itemToValue: (item) => item.value,
54
54
  itemToString: (item) => item.label
@@ -66,7 +66,6 @@
66
66
  },
67
67
  onInputValueChange(event) {
68
68
  const filtered = data.filter((item) => item.label.toLowerCase().includes(event.inputValue.toLowerCase()));
69
- collection.setItems(filtered);
70
69
  options = filtered;
71
70
  zagProps.onInputValueChange?.(event);
72
71
  }
@@ -53,5 +53,5 @@ export interface ModalProps extends Omit<dialog.Props, 'id'> {
53
53
  /** Provide the template contents of the dialog itself. */
54
54
  content?: Snippet;
55
55
  /** Handle the dialog button click event. */
56
- onclick?: () => void;
56
+ onclick?: HTMLButtonAttributes['onclick'];
57
57
  }
@@ -11,9 +11,9 @@
11
11
  // Root
12
12
  base = 'inline-flex items-stretch overflow-hidden',
13
13
  background = 'preset-outlined-surface-200-800',
14
- border = 'p-2',
14
+ border = '',
15
15
  gap = 'gap-2',
16
- padding = '',
16
+ padding = 'p-2',
17
17
  rounded = 'rounded-container',
18
18
  classes = '',
19
19
  // Titles
@@ -38,5 +38,5 @@ export interface PopoverProps extends Omit<popover.Props, 'id'> {
38
38
  /** Provide the template contents of the popover itself. */
39
39
  content?: Snippet;
40
40
  /** Handle the popover button click event. */
41
- onclick?: () => void;
41
+ onclick?: HTMLButtonAttributes['onclick'];
42
42
  }
@@ -8,9 +8,9 @@
8
8
  // Root
9
9
  base = 'inline-flex items-stretch overflow-hidden',
10
10
  background = 'preset-outlined-surface-200-800',
11
- border = 'p-2',
11
+ border = '',
12
12
  gap = 'gap-2',
13
- padding = '',
13
+ padding = 'p-2',
14
14
  rounded = 'rounded-container',
15
15
  width = '',
16
16
  classes = '',
@@ -38,7 +38,7 @@ export interface TooltipProps extends Omit<tooltip.Props, 'id'> {
38
38
  /** Provide the template contents of the tooltip itself. */
39
39
  content?: Snippet;
40
40
  /** Handle the tooltip button hover event. */
41
- onmouseover?: () => void;
41
+ onmouseover?: HTMLButtonAttributes['onmouseover'];
42
42
  /** Handle the tooltip button click event. */
43
- onclick?: () => void;
43
+ onclick?: HTMLButtonAttributes['onclick'];
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton-svelte",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "The Svelte package for Skeleton.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "types": "./dist/index.d.ts",
@@ -55,7 +55,7 @@
55
55
  "typescript": "^5.8.2",
56
56
  "vite": "^6.2.5",
57
57
  "vitest": "3.1.1",
58
- "@skeletonlabs/skeleton": "3.1.2"
58
+ "@skeletonlabs/skeleton": "3.1.3"
59
59
  },
60
60
  "type": "module",
61
61
  "scripts": {