@likable-hair/svelte 0.0.38 → 0.0.39

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.
@@ -1,7 +1,7 @@
1
1
  <script >export let value = false, height = "20px", width = "40px", padding = "6px", borderRadius = "10px", toggleActiveColor = "#5c5c5c", toggleDeactiveColor = "#5c5c5c", backgroundActiveColor = "#e6e6e6", backgroundDeactiveColor = "#e6e6e6", animationDuration = "0.1s";
2
2
  </script>
3
3
 
4
- <span
4
+ <div
5
5
  style:--switch-toggle-active-color={toggleActiveColor}
6
6
  style:--switch-toggle-deactive-color={toggleDeactiveColor}
7
7
  style:--switch-animation-duration={animationDuration}
@@ -19,12 +19,13 @@
19
19
  <input
20
20
  bind:checked={value}
21
21
  type="checkbox"
22
+ on:change
22
23
  >
23
24
  <span
24
25
  class="slider"
25
26
  ></span>
26
27
  </div>
27
- </span>
28
+ </div>
28
29
 
29
30
  <style>
30
31
  .container {
@@ -13,6 +13,8 @@ declare const __propDef: {
13
13
  animationDuration?: string;
14
14
  };
15
15
  events: {
16
+ change: Event;
17
+ } & {
16
18
  [evt: string]: CustomEvent<any>;
17
19
  };
18
20
  slots: {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair",
4
- "version": "0.0.38",
4
+ "version": "0.0.39",
5
5
  "devDependencies": {
6
6
  "@sveltejs/adapter-auto": "next",
7
7
  "@sveltejs/kit": "next",