flowbite-svelte 0.14.2 → 0.14.3

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.14.3](https://github.com/shinokada/flowbite-svelte/compare/v0.14.2...v0.14.3) (2022-04-18)
6
+
7
+
8
+ ### Features
9
+
10
+ * add slot and {...70121restProps} to all button components ([c98057c](https://github.com/shinokada/flowbite-svelte/commit/c98057cd6ee39053660378dad2b0bdb6970e18da))
11
+
5
12
  ### [0.14.2](https://github.com/shinokada/flowbite-svelte/compare/v0.14.1...v0.14.2) (2022-04-18)
6
13
 
7
14
  ### [0.14.1](https://github.com/shinokada/flowbite-svelte/compare/v0.13.10...v0.14.1) (2022-04-18)
@@ -63,7 +63,7 @@ else {
63
63
  }
64
64
  </script>
65
65
 
66
- <button type={btnType} class={buttonClass} on:click>
66
+ <button type={btnType} class={buttonClass} on:click {...$$restProps}>
67
67
  {name}
68
68
  <slot />
69
69
  </button>
@@ -2,6 +2,7 @@ import { SvelteComponentTyped } from "svelte";
2
2
  import type { Buttontypes, ButtonType, Textsize } from '../types';
3
3
  declare const __propDef: {
4
4
  props: {
5
+ [x: string]: any;
5
6
  rounded?: boolean;
6
7
  textSize?: Textsize;
7
8
  name?: string;
@@ -32,4 +32,7 @@ else {
32
32
  }
33
33
  </script>
34
34
 
35
- <button type={btnType} class={btnClass} on:click>{name}</button>
35
+ <button type={btnType} class={btnClass} on:click {...$$restProps}>
36
+ {name}
37
+ <slot />
38
+ </button>
@@ -2,6 +2,7 @@ import { SvelteComponentTyped } from "svelte";
2
2
  import type { Buttonshadows, Textsize, ButtonType } from '../types';
3
3
  declare const __propDef: {
4
4
  props: {
5
+ [x: string]: any;
5
6
  textSize?: Textsize;
6
7
  color?: Buttonshadows;
7
8
  name?: string;
@@ -12,7 +13,9 @@ declare const __propDef: {
12
13
  } & {
13
14
  [evt: string]: CustomEvent<any>;
14
15
  };
15
- slots: {};
16
+ slots: {
17
+ default: {};
18
+ };
16
19
  };
17
20
  export declare type ColorShadowButtonProps = typeof __propDef.props;
18
21
  export declare type ColorShadowButtonEvents = typeof __propDef.events;
@@ -29,4 +29,7 @@ else {
29
29
  }
30
30
  </script>
31
31
 
32
- <button type={btnType} class={btnClass} on:click>{name}</button>
32
+ <button type={btnType} class={btnClass} on:click {...$$restProps}>
33
+ {name}
34
+ <slot />
35
+ </button>
@@ -2,6 +2,7 @@ import { SvelteComponentTyped } from "svelte";
2
2
  import type { Gradientduotones, Textsize, ButtonType } from '../types';
3
3
  declare const __propDef: {
4
4
  props: {
5
+ [x: string]: any;
5
6
  textSize?: Textsize;
6
7
  color?: Gradientduotones;
7
8
  name?: string;
@@ -12,7 +13,9 @@ declare const __propDef: {
12
13
  } & {
13
14
  [evt: string]: CustomEvent<any>;
14
15
  };
15
- slots: {};
16
+ slots: {
17
+ default: {};
18
+ };
16
19
  };
17
20
  export declare type GradientDuotoneButtonProps = typeof __propDef.props;
18
21
  export declare type GradientDuotoneButtonEvents = typeof __propDef.events;
@@ -32,4 +32,7 @@ else {
32
32
  }
33
33
  </script>
34
34
 
35
- <button type={btnType} class={btnClass} on:click>{name}</button>
35
+ <button type={btnType} class={btnClass} on:click {...$$restProps}>
36
+ {name}
37
+ <slot />
38
+ </button>
@@ -2,6 +2,7 @@ import { SvelteComponentTyped } from "svelte";
2
2
  import type { Buttonshadows, Textsize, ButtonType } from '../types';
3
3
  declare const __propDef: {
4
4
  props: {
5
+ [x: string]: any;
5
6
  textSize?: Textsize;
6
7
  color?: Buttonshadows;
7
8
  name?: string;
@@ -12,7 +13,9 @@ declare const __propDef: {
12
13
  } & {
13
14
  [evt: string]: CustomEvent<any>;
14
15
  };
15
- slots: {};
16
+ slots: {
17
+ default: {};
18
+ };
16
19
  };
17
20
  export declare type GradientMonochromeButtonProps = typeof __propDef.props;
18
21
  export declare type GradientMonochromeButtonEvents = typeof __propDef.events;
@@ -38,6 +38,7 @@ else {
38
38
  }
39
39
  </script>
40
40
 
41
- <button class={btnClass} type={btnType}>
41
+ <button class={btnClass} type={btnType} {...$$restProps}>
42
42
  <span class={spanClass} on:click>{name}</span>
43
+ <slot />
43
44
  </button>
@@ -2,6 +2,7 @@ import { SvelteComponentTyped } from "svelte";
2
2
  import type { Gradientduotones, Textsize, ButtonType } from '../types';
3
3
  declare const __propDef: {
4
4
  props: {
5
+ [x: string]: any;
5
6
  textSize?: Textsize;
6
7
  color?: Gradientduotones;
7
8
  name?: string;
@@ -12,7 +13,9 @@ declare const __propDef: {
12
13
  } & {
13
14
  [evt: string]: CustomEvent<any>;
14
15
  };
15
- slots: {};
16
+ slots: {
17
+ default: {};
18
+ };
16
19
  };
17
20
  export declare type GradientOutlineButtonProps = typeof __propDef.props;
18
21
  export declare type GradientOutlineButtonEvents = typeof __propDef.events;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "./package/index.js",
6
6
  "author": {