flowbite-svelte 0.21.16 → 0.21.17

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,14 @@
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.17](https://github.com/themesberg/flowbite-svelte/compare/v0.21.16...v0.21.17) (2022-07-20)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Checkbox on:click position ([cfb1c65](https://github.com/themesberg/flowbite-svelte/commit/cfb1c658ae971bb689cd4e01f797ccc5c11db991))
11
+ * on:click for Toggle, Checkbox and Radio ([48710b5](https://github.com/themesberg/flowbite-svelte/commit/48710b59c9a9096ec95dfa26d1764a312552b49e))
12
+
5
13
  ### [0.21.16](https://github.com/themesberg/flowbite-svelte/compare/v0.21.14...v0.21.16) (2022-07-20)
6
14
 
7
15
 
@@ -32,6 +32,7 @@ export let tinted = false;
32
32
 
33
33
  <Radio class={$$restProps.class} bind:inputClass {color} {custom} {inline} {tinted}>
34
34
  <input
35
+ on:click
35
36
  slot="input"
36
37
  type="checkbox"
37
38
  bind:checked
@@ -12,6 +12,8 @@ declare const __propDef: {
12
12
  tinted?: boolean;
13
13
  };
14
14
  events: {
15
+ click: MouseEvent;
16
+ } & {
15
17
  [evt: string]: CustomEvent<any>;
16
18
  };
17
19
  slots: {
@@ -44,7 +44,7 @@ const colorClasses = {
44
44
  <!-- svelte-ignore a11y-label-has-associated-control -->
45
45
  <label class={labelClass}>
46
46
  <slot name="input">
47
- <input type="radio" bind:group {value} {...$$restProps} class={inputClass} />
47
+ <input on:click type="radio" bind:group {value} {...$$restProps} class={inputClass} />
48
48
  </slot>
49
49
  <slot />
50
50
  </label>
@@ -12,6 +12,8 @@ declare const __propDef: {
12
12
  inputClass: string;
13
13
  };
14
14
  events: {
15
+ click: MouseEvent;
16
+ } & {
15
17
  [evt: string]: CustomEvent<any>;
16
18
  };
17
19
  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.16",
3
+ "version": "0.21.17",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {