flowbite-svelte 0.21.15 → 0.21.16

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,12 +2,23 @@
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.16](https://github.com/themesberg/flowbite-svelte/compare/v0.21.14...v0.21.16) (2022-07-20)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * dropdown search ([4416a31](https://github.com/themesberg/flowbite-svelte/commit/4416a312756331f6dd04b1d5fe5dd61b764fd38d))
11
+ * padding issues with dropdown ([6a48d4d](https://github.com/themesberg/flowbite-svelte/commit/6a48d4dc6a262fc62aa2d9b4c6233bf1cee4b741))
12
+ * padding issues with dropdown ([8e8c2d4](https://github.com/themesberg/flowbite-svelte/commit/8e8c2d4bed3e85e95c28e936c513489e6d975e8f))
13
+
5
14
  ### [0.21.15](https://github.com/themesberg/flowbite-svelte/compare/v0.21.14...v0.21.15) (2022-07-20)
6
15
 
7
16
 
8
17
  ### Bug Fixes
9
18
 
10
- * add on:click to Toggle, Radio, and Checkbox component ([82cb3f0](https://github.com/themesberg/flowbite-svelte/commit/82cb3f032e85ba91015a545ee1ff325c08962855))
19
+ * dropdown search ([4416a31](https://github.com/themesberg/flowbite-svelte/commit/4416a312756331f6dd04b1d5fe5dd61b764fd38d))
20
+ * padding issues with dropdown ([6a48d4d](https://github.com/themesberg/flowbite-svelte/commit/6a48d4dc6a262fc62aa2d9b4c6233bf1cee4b741))
21
+ * padding issues with dropdown ([8e8c2d4](https://github.com/themesberg/flowbite-svelte/commit/8e8c2d4bed3e85e95c28e936c513489e6d975e8f))
11
22
 
12
23
  ### [0.21.14](https://github.com/themesberg/flowbite-svelte/compare/v0.21.13...v0.21.14) (2022-07-19)
13
24
 
@@ -27,11 +27,11 @@ let inputClass; // get the value from the underlying Radio
27
27
  export let custom = false;
28
28
  export let color = 'blue';
29
29
  export let inline = false;
30
+ export let tinted = false;
30
31
  </script>
31
32
 
32
- <Radio class={$$restProps.class} bind:inputClass {color} {custom} {inline}>
33
+ <Radio class={$$restProps.class} bind:inputClass {color} {custom} {inline} {tinted}>
33
34
  <input
34
- on:click
35
35
  slot="input"
36
36
  type="checkbox"
37
37
  bind:checked
@@ -9,10 +9,9 @@ declare const __propDef: {
9
9
  custom?: boolean;
10
10
  color?: FormColorType;
11
11
  inline?: boolean;
12
+ tinted?: boolean;
12
13
  };
13
14
  events: {
14
- click: MouseEvent;
15
- } & {
16
15
  [evt: string]: CustomEvent<any>;
17
16
  };
18
17
  slots: {
@@ -15,10 +15,11 @@ import classNames from 'classnames';
15
15
  export let color = 'blue';
16
16
  export let custom = false;
17
17
  export let inline = false;
18
+ export let tinted = false;
18
19
  export let group = '';
19
20
  export let value = '';
20
21
  export let inputClass;
21
- $: inputClass = classNames('w-4 h-4 bg-gray-100 border-gray-300 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600 mr-2', custom && 'sr-only peer', colorClasses[color]);
22
+ $: inputClass = classNames('w-4 h-4 bg-gray-100 border-gray-300 dark:ring-offset-gray-800 focus:ring-2 mr-2', tinted ? 'dark:bg-gray-600 dark:border-gray-500' : 'dark:bg-gray-700 dark:border-gray-600', custom && 'sr-only peer', colorClasses[color]);
22
23
  let colorLabel = 'gray';
23
24
  $: colorLabel = $$restProps.disabled ? 'disabled' : colorLabel;
24
25
  let labelClass;
@@ -43,7 +44,7 @@ const colorClasses = {
43
44
  <!-- svelte-ignore a11y-label-has-associated-control -->
44
45
  <label class={labelClass}>
45
46
  <slot name="input">
46
- <input type="radio" bind:group {value} {...$$restProps} class={inputClass} on:click />
47
+ <input type="radio" bind:group {value} {...$$restProps} class={inputClass} />
47
48
  </slot>
48
49
  <slot />
49
50
  </label>
@@ -6,13 +6,12 @@ declare const __propDef: {
6
6
  color?: FormColorType;
7
7
  custom?: boolean;
8
8
  inline?: boolean;
9
+ tinted?: boolean;
9
10
  group?: number | string;
10
11
  value?: string;
11
12
  inputClass: string;
12
13
  };
13
14
  events: {
14
- click: MouseEvent;
15
- } & {
16
15
  [evt: string]: CustomEvent<any>;
17
16
  };
18
17
  slots: {
@@ -18,7 +18,7 @@ const sizes = {
18
18
  };
19
19
  </script>
20
20
 
21
- <Checkbox on:click custom class="relative {$$restProps.class}" {...$$restProps}>
21
+ <Checkbox 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,8 +5,6 @@ declare const __propDef: {
5
5
  size?: 'small' | 'default' | 'large';
6
6
  };
7
7
  events: {
8
- click: MouseEvent;
9
- } & {
10
8
  [evt: string]: CustomEvent<any>;
11
9
  };
12
10
  slots: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.21.15",
3
+ "version": "0.21.16",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {