flowbite-svelte 0.19.10 → 0.19.11

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.19.11](https://github.com/themesberg/flowbite-svelte/compare/v0.19.10...v0.19.11) (2022-06-30)
6
+
7
+
8
+ ### Features
9
+
10
+ * can add own search function to TableSearch component ([514c7f7](https://github.com/themesberg/flowbite-svelte/commit/514c7f71ba0ff48637ff37051c9e453a40a56f11))
11
+
5
12
  ### [0.19.10](https://github.com/themesberg/flowbite-svelte/compare/v0.19.9...v0.19.10) (2022-06-30)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.19.10",
3
+ "version": "0.19.11",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -4,15 +4,9 @@ export let divClass = 'relative overflow-x-auto shadow-md sm:rounded-lg';
4
4
  export let inputValue = '';
5
5
  export let striped = false;
6
6
  export let hoverable = false;
7
- export let menuItems;
8
- export let filteredItems = [];
9
7
  export let placeholder = 'Search';
10
8
  $: setContext('striped', striped);
11
9
  $: setContext('hoverable', hoverable);
12
- const handleInput = () => {
13
- let result = (filteredItems = menuItems.filter((item) => item[0].toLowerCase().match(inputValue.toLowerCase())));
14
- return result;
15
- };
16
10
  </script>
17
11
 
18
12
  <div class={divClass}>
@@ -34,7 +28,6 @@ const handleInput = () => {
34
28
  </div>
35
29
  <input
36
30
  bind:value={inputValue}
37
- on:input={handleInput}
38
31
  type="text"
39
32
  id="table-search"
40
33
  class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-80 pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
@@ -6,8 +6,6 @@ declare const __propDef: {
6
6
  inputValue?: string;
7
7
  striped?: boolean;
8
8
  hoverable?: boolean;
9
- menuItems: Array<Array<string>>;
10
- filteredItems?: Array<Array<string>>;
11
9
  placeholder?: string;
12
10
  };
13
11
  events: {