@skeletonlabs/skeleton-svelte 1.2.0 → 1.2.2
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:
|
|
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
|
}
|
|
@@ -38,8 +38,12 @@
|
|
|
38
38
|
>{api.description}</span
|
|
39
39
|
>
|
|
40
40
|
</div>
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
{#if api.closable}
|
|
42
|
+
<!-- Dismiss Button -->
|
|
43
|
+
<button class="{props.btnDismissBase} {props.btnDismissClasses}" {...api.getCloseTriggerProps()} data-testid="toast-dismiss"
|
|
44
|
+
>×</button
|
|
45
|
+
>
|
|
46
|
+
{/if}
|
|
43
47
|
</div>
|
|
44
48
|
|
|
45
49
|
<style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skeletonlabs/skeleton-svelte",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "The Svelte package for Skeleton.",
|
|
5
5
|
"author": "endigo9740 <chris@skeletonlabs.dev>",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"tailwindcss": "^4.0.17",
|
|
54
54
|
"tslib": "^2.8.1",
|
|
55
55
|
"typescript": "^5.8.2",
|
|
56
|
-
"vite": "^6.2.
|
|
56
|
+
"vite": "^6.2.5",
|
|
57
57
|
"vitest": "3.1.1",
|
|
58
|
-
"@skeletonlabs/skeleton": "3.1.
|
|
58
|
+
"@skeletonlabs/skeleton": "3.1.3"
|
|
59
59
|
},
|
|
60
60
|
"type": "module",
|
|
61
61
|
"scripts": {
|