@skeletonlabs/skeleton-svelte 1.1.0 → 1.2.1

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.
@@ -52,6 +52,8 @@
52
52
  <div {...api.getRootProps()} class="{base} {padding} {gap} {rxDisabled} {classes}" data-testid="tags">
53
53
  <!-- Input -->
54
54
  <input {...api.getInputProps()} {placeholder} class="{inputBase} {inputClasses}" data-testid="tags-input-add" />
55
+ <!-- Hidden Input -->
56
+ <input {...api.getHiddenInputProps()} data-testid="tags-input" />
55
57
  <!-- Tag List -->
56
58
  {#if api.value.length > 0}
57
59
  <div class="{tagListBase} {tagListClasses}" data-testid="tags-list">
@@ -38,8 +38,12 @@
38
38
  >{api.description}</span
39
39
  >
40
40
  </div>
41
- <!-- Dismiss Button -->
42
- <button class="{props.btnDismissBase} {props.btnDismissClasses}" onclick={api.dismiss} data-testid="toast-dismiss">&times;</button>
41
+ {#if api.closable}
42
+ <!-- Dismiss Button -->
43
+ <button class="{props.btnDismissBase} {props.btnDismissClasses}" {...api.getCloseTriggerProps()} data-testid="toast-dismiss"
44
+ >&times;</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.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "The Svelte package for Skeleton.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "types": "./dist/index.d.ts",
@@ -53,7 +53,7 @@
53
53
  "tailwindcss": "^4.0.17",
54
54
  "tslib": "^2.8.1",
55
55
  "typescript": "^5.8.2",
56
- "vite": "^6.2.4",
56
+ "vite": "^6.2.5",
57
57
  "vitest": "3.1.1",
58
58
  "@skeletonlabs/skeleton": "3.1.2"
59
59
  },