flowbite-svelte 0.15.10 → 0.15.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 +7 -0
- package/forms/Search.svelte +17 -0
- package/forms/Search.svelte.d.ts +23 -0
- package/index.js +1 -0
- package/package.json +2 -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.15.11](https://github.com/themesberg/flowbite-svelte/compare/v0.15.10...v0.15.11) (2022-05-03)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add Search component ([c9874ad](https://github.com/themesberg/flowbite-svelte/commit/c9874ada31fbf20c74a882ee6392e9a7cc8ecc36))
|
|
11
|
+
|
|
5
12
|
### [0.15.10](https://github.com/themesberg/flowbite-svelte/compare/v0.15.9...v0.15.10) (2022-05-03)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script>export let id = '';
|
|
2
|
+
export let labelClass = 'mb-2 text-sm font-medium text-gray-900 sr-only dark:text-gray-300';
|
|
3
|
+
export let inputClass = 'block p-4 pl-10 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 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';
|
|
4
|
+
export let btnClass = 'text-white absolute right-2.5 bottom-2.5 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800';
|
|
5
|
+
export let placeholder = 'Search';
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<form on:submit>
|
|
9
|
+
<label for={id} class={labelClass}>Search</label>
|
|
10
|
+
<div class="relative">
|
|
11
|
+
<div class="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none">
|
|
12
|
+
<svg class="w-5 h-5 text-gray-500 dark:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg>
|
|
13
|
+
</div>
|
|
14
|
+
<input type="search" {id} class={inputClass} {placeholder} {...$$restProps} />
|
|
15
|
+
<button type="submit" class={btnClass}>Search</button>
|
|
16
|
+
</div>
|
|
17
|
+
</form>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
id?: string;
|
|
6
|
+
labelClass?: string;
|
|
7
|
+
inputClass?: string;
|
|
8
|
+
btnClass?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
};
|
|
11
|
+
events: {
|
|
12
|
+
submit: SubmitEvent;
|
|
13
|
+
} & {
|
|
14
|
+
[evt: string]: CustomEvent<any>;
|
|
15
|
+
};
|
|
16
|
+
slots: {};
|
|
17
|
+
};
|
|
18
|
+
export declare type SearchProps = typeof __propDef.props;
|
|
19
|
+
export declare type SearchEvents = typeof __propDef.events;
|
|
20
|
+
export declare type SearchSlots = typeof __propDef.slots;
|
|
21
|
+
export default class Search extends SvelteComponentTyped<SearchProps, SearchEvents, SearchSlots> {
|
|
22
|
+
}
|
|
23
|
+
export {};
|
package/index.js
CHANGED
|
@@ -65,6 +65,7 @@ export { default as Input } from './forms/Input.svelte'
|
|
|
65
65
|
export { default as Radio } from './forms/Radio.svelte'
|
|
66
66
|
export { default as Range } from './forms/Range.svelte'
|
|
67
67
|
export { default as SingleCheckbox } from './forms/SingleCheckbox.svelte'
|
|
68
|
+
export { default as Search } from './forms/Search.svelte'
|
|
68
69
|
export { default as Select } from './forms/Select.svelte'
|
|
69
70
|
export { default as Textarea } from './forms/Textarea.svelte'
|
|
70
71
|
export { default as Toggle } from './forms/Toggle.svelte'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.11",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "./package/index.js",
|
|
6
6
|
"author": {
|
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
"./forms/Input.svelte": "./forms/Input.svelte",
|
|
131
131
|
"./forms/Radio.svelte": "./forms/Radio.svelte",
|
|
132
132
|
"./forms/Range.svelte": "./forms/Range.svelte",
|
|
133
|
+
"./forms/Search.svelte": "./forms/Search.svelte",
|
|
133
134
|
"./forms/Select.svelte": "./forms/Select.svelte",
|
|
134
135
|
"./forms/SingleCheckbox.svelte": "./forms/SingleCheckbox.svelte",
|
|
135
136
|
"./forms/Textarea.svelte": "./forms/Textarea.svelte",
|