flowbite-svelte 0.21.14 → 0.21.15

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.21.15](https://github.com/themesberg/flowbite-svelte/compare/v0.21.14...v0.21.15) (2022-07-20)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * add on:click to Toggle, Radio, and Checkbox component ([82cb3f0](https://github.com/themesberg/flowbite-svelte/commit/82cb3f032e85ba91015a545ee1ff325c08962855))
11
+
5
12
  ### [0.21.14](https://github.com/themesberg/flowbite-svelte/compare/v0.21.13...v0.21.14) (2022-07-19)
6
13
 
7
14
 
@@ -31,6 +31,7 @@ export let inline = false;
31
31
 
32
32
  <Radio class={$$restProps.class} bind:inputClass {color} {custom} {inline}>
33
33
  <input
34
+ on:click
34
35
  slot="input"
35
36
  type="checkbox"
36
37
  bind:checked
@@ -11,6 +11,8 @@ declare const __propDef: {
11
11
  inline?: boolean;
12
12
  };
13
13
  events: {
14
+ click: MouseEvent;
15
+ } & {
14
16
  [evt: string]: CustomEvent<any>;
15
17
  };
16
18
  slots: {
@@ -43,7 +43,7 @@ const colorClasses = {
43
43
  <!-- svelte-ignore a11y-label-has-associated-control -->
44
44
  <label class={labelClass}>
45
45
  <slot name="input">
46
- <input type="radio" bind:group {value} {...$$restProps} class={inputClass} />
46
+ <input type="radio" bind:group {value} {...$$restProps} class={inputClass} on:click />
47
47
  </slot>
48
48
  <slot />
49
49
  </label>
@@ -11,6 +11,8 @@ declare const __propDef: {
11
11
  inputClass: string;
12
12
  };
13
13
  events: {
14
+ click: MouseEvent;
15
+ } & {
14
16
  [evt: string]: CustomEvent<any>;
15
17
  };
16
18
  slots: {
@@ -18,7 +18,7 @@ const sizes = {
18
18
  };
19
19
  </script>
20
20
 
21
- <Checkbox custom class="relative {$$restProps.class}" {...$$restProps}>
21
+ <Checkbox on:click custom class="relative {$$restProps.class}" {...$$restProps}>
22
22
  <div class={classNames(common, colors[$$restProps.color ?? 'blue'], sizes[size])} />
23
23
  <slot />
24
24
  </Checkbox>
@@ -5,6 +5,8 @@ declare const __propDef: {
5
5
  size?: 'small' | 'default' | 'large';
6
6
  };
7
7
  events: {
8
+ click: MouseEvent;
9
+ } & {
8
10
  [evt: string]: CustomEvent<any>;
9
11
  };
10
12
  slots: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.21.14",
3
+ "version": "0.21.15",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {