flowbite-svelte 0.27.8 → 0.27.9

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,15 @@
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.27.9](https://github.com/themesberg/flowbite-svelte/compare/v0.27.8...v0.27.9) (2022-10-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * [#379](https://github.com/themesberg/flowbite-svelte/issues/379) ([#380](https://github.com/themesberg/flowbite-svelte/issues/380)) ([0019915](https://github.com/themesberg/flowbite-svelte/commit/001991546e3e7376a02c17481784c5a5636d6ed7))
11
+ * optional Frame transition' ([#385](https://github.com/themesberg/flowbite-svelte/issues/385)) ([e7fc8db](https://github.com/themesberg/flowbite-svelte/commit/e7fc8db0f920e3bd907ce9fcf1c532885da193af))
12
+ * restProps for NumberInput ([#382](https://github.com/themesberg/flowbite-svelte/issues/382)) ([d1acb7f](https://github.com/themesberg/flowbite-svelte/commit/d1acb7f1b22a69acfc0f1ab6d2859c2a7d8a082c))
13
+
5
14
  ### [0.27.8](https://github.com/themesberg/flowbite-svelte/compare/v0.27.7...v0.27.8) (2022-10-17)
6
15
 
7
16
  ### [0.27.7](https://github.com/themesberg/flowbite-svelte/compare/v0.27.6...v0.27.7) (2022-10-17)
@@ -2,6 +2,6 @@
2
2
  export let value = 0;
3
3
  </script>
4
4
 
5
- <Input let:props>
5
+ <Input let:props {...$$restProps}>
6
6
  <input {...props} type="number" bind:value />
7
7
  </Input>
@@ -1,6 +1,7 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
+ [x: string]: any;
4
5
  value?: number | undefined;
5
6
  };
6
7
  events: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.27.8",
3
+ "version": "0.27.9",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -71,23 +71,35 @@ const borderColors = {
71
71
  form: 'border-gray-300 dark:border-gray-700',
72
72
  none: ''
73
73
  };
74
- // have a custom transition function that returns the desired transition
75
- let transitionFunc;
76
- $: transitionFunc = transition ?? (() => ({}));
77
74
  let divClass;
78
75
  $: divClass = classNames(bgColors[color], textColors[color], rounded && (color === 'dropdown' ? 'rounded' : 'rounded-lg'), border && 'border', borderColors[color], shadow && 'shadow-md', $$props.class);
79
76
  </script>
80
77
 
81
- <svelte:element
82
- this={tag}
83
- use:use={options}
84
- bind:this={node}
85
- transition:transitionFunc={params}
86
- {...$$restProps}
87
- class={divClass}
88
- on:mouseenter
89
- on:mouseleave
90
- on:focusin
91
- on:focusout>
92
- <slot />
93
- </svelte:element>
78
+ {#if transition}
79
+ <svelte:element
80
+ this={tag}
81
+ use:use={options}
82
+ bind:this={node}
83
+ transition:transition={params}
84
+ {...$$restProps}
85
+ class={divClass}
86
+ on:mouseenter
87
+ on:mouseleave
88
+ on:focusin
89
+ on:focusout>
90
+ <slot />
91
+ </svelte:element>
92
+ {:else}
93
+ <svelte:element
94
+ this={tag}
95
+ use:use={options}
96
+ bind:this={node}
97
+ {...$$restProps}
98
+ class={divClass}
99
+ on:mouseenter
100
+ on:mouseleave
101
+ on:focusin
102
+ on:focusout>
103
+ <slot />
104
+ </svelte:element>
105
+ {/if}