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 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
 
@@ -1,13 +1,16 @@
1
- <script>export let value = '';
2
- export let id = 'user_avatar';
3
- export let inputClass = 'block w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 cursor-pointer dark:text-gray-400 focus:outline-none focus:border-transparent dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400';
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
- aria-describedby="{id}_help"
11
- {id}
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
  />
@@ -3,7 +3,7 @@ declare const __propDef: {
3
3
  props: {
4
4
  [x: string]: any;
5
5
  value?: string;
6
- id?: string;
6
+ size?: 'xs' | 'sm' | 'lg';
7
7
  inputClass?: string;
8
8
  };
9
9
  events: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.21.8",
3
+ "version": "0.21.9",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {