flowbite-svelte 0.21.8 → 0.21.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 +7 -0
- package/forms/Fileupload.svelte +9 -6
- package/forms/Fileupload.svelte.d.ts +1 -1
- package/package.json +1 -1
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.9](https://github.com/themesberg/flowbite-svelte/compare/v0.21.8...v0.21.9) (2022-07-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add fileupload multiple files and sizes ([81ab128](https://github.com/themesberg/flowbite-svelte/commit/81ab1284902e9e89bf08725a74b22394aae57244))
|
|
11
|
+
|
|
5
12
|
### [0.21.8](https://github.com/themesberg/flowbite-svelte/compare/v0.21.7...v0.21.8) (2022-07-17)
|
|
6
13
|
|
|
7
14
|
|
package/forms/Fileupload.svelte
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export let
|
|
3
|
-
export let
|
|
1
|
+
<script>import classNames from 'classnames';
|
|
2
|
+
export let value = '';
|
|
3
|
+
export let size = 'sm';
|
|
4
|
+
export let inputClass = 'block w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 cursor-pointer dark:text-gray-400 focus:outline-none dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400';
|
|
4
5
|
</script>
|
|
5
6
|
|
|
6
7
|
<input
|
|
7
8
|
{...$$restProps}
|
|
8
9
|
bind:value
|
|
9
|
-
class={inputClass
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
class={classNames(inputClass, {
|
|
11
|
+
'mb-5 text-xs': size === 'xs',
|
|
12
|
+
'mb-5 text-sm': size === 'sm',
|
|
13
|
+
'text-lg': size === 'lg'
|
|
14
|
+
})}
|
|
12
15
|
type="file"
|
|
13
16
|
/>
|