flowbite-svelte 0.10.1 → 0.10.2
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/README.md +4 -0
- package/forms/Fileupload.svelte.d.ts +1 -1
- package/forms/FloatingLabelInput.svelte.d.ts +1 -1
- package/forms/Iconinput.svelte.d.ts +1 -1
- package/forms/Input.svelte.d.ts +1 -1
- package/forms/Textarea.svelte +1 -2
- package/forms/Toggle.svelte +1 -3
- package/modals/ExtraLargeModal.svelte.d.ts +3 -2
- package/modals/LargeModal.svelte.d.ts +3 -2
- package/modals/MediumModal.svelte.d.ts +3 -2
- package/modals/ModalButton.svelte.d.ts +2 -1
- package/modals/SignInModal.svelte.d.ts +2 -1
- package/modals/SmallModal.svelte.d.ts +3 -2
- package/navbar/DropdownNavbar.svelte +4 -1
- package/navbar/DropdownNavbar.svelte.d.ts +3 -1
- package/navbar/Navbar.svelte +4 -1
- package/navbar/Navbar.svelte.d.ts +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
id: string;
|
|
5
|
-
type:
|
|
5
|
+
type: 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week';
|
|
6
6
|
name: string;
|
|
7
7
|
label: string;
|
|
8
8
|
required?: boolean;
|
|
@@ -4,7 +4,7 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
label: string;
|
|
6
6
|
id: string;
|
|
7
|
-
type:
|
|
7
|
+
type: 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week';
|
|
8
8
|
icon: typeof SvelteComponent;
|
|
9
9
|
helper: string;
|
|
10
10
|
placeholder: string;
|
package/forms/Input.svelte.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
type:
|
|
4
|
+
type: 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week';
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
label: string;
|
package/forms/Textarea.svelte
CHANGED
package/forms/Toggle.svelte
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
<script
|
|
2
|
-
// export let props: ToggleType = {
|
|
3
|
-
export let name = 'toggle-example';
|
|
1
|
+
<script >export let name = 'toggle-example';
|
|
4
2
|
export let id = 'toggle-example';
|
|
5
3
|
export let label = 'Toggle me';
|
|
6
4
|
export let checked = false;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Colors } from '../types';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
id?: string;
|
|
5
|
-
btnColor?:
|
|
6
|
-
textColor?:
|
|
6
|
+
btnColor?: Colors;
|
|
7
|
+
textColor?: Colors;
|
|
7
8
|
title?: string;
|
|
8
9
|
btn1: string;
|
|
9
10
|
btn2: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Colors } from '../types';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
id?: string;
|
|
5
|
-
btnColor?:
|
|
6
|
-
textColor?:
|
|
6
|
+
btnColor?: Colors;
|
|
7
|
+
textColor?: Colors;
|
|
7
8
|
title?: string;
|
|
8
9
|
btn1: string;
|
|
9
10
|
btn2: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Colors } from '../types';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
id?: string;
|
|
5
|
-
btnColor?:
|
|
6
|
-
textColor?:
|
|
6
|
+
btnColor?: Colors;
|
|
7
|
+
textColor?: Colors;
|
|
7
8
|
title?: string;
|
|
8
9
|
btn1: string;
|
|
9
10
|
btn2: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Colors } from '../types';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
id?: string;
|
|
5
|
-
btnSignInColor?:
|
|
6
|
+
btnSignInColor?: Colors;
|
|
6
7
|
titleSignIn?: string;
|
|
7
8
|
lostPasswordLink: string;
|
|
8
9
|
rememberMe?: boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Colors } from '../types';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
id?: string;
|
|
5
|
-
btnColor?:
|
|
6
|
-
textColor?:
|
|
6
|
+
btnColor?: Colors;
|
|
7
|
+
textColor?: Colors;
|
|
7
8
|
title?: string;
|
|
8
9
|
btn1: string;
|
|
9
10
|
btn2: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script >import { page } from '$app/stores';
|
|
1
|
+
<script >import { page, session } from '$app/stores';
|
|
2
2
|
let hidden = true;
|
|
3
3
|
let block = false;
|
|
4
4
|
let activeDropdown = undefined;
|
|
@@ -112,6 +112,9 @@ export let liButtonClass = `flex justify-between items-center py-2 pr-4 pl-3 w-f
|
|
|
112
112
|
{/if}
|
|
113
113
|
{/each}
|
|
114
114
|
</ul>
|
|
115
|
+
{#if $session['user']}
|
|
116
|
+
<slot name="user" />
|
|
117
|
+
{/if}
|
|
115
118
|
</div>
|
|
116
119
|
</div>
|
|
117
120
|
</nav>
|
|
@@ -18,7 +18,9 @@ declare const __propDef: {
|
|
|
18
18
|
events: {
|
|
19
19
|
[evt: string]: CustomEvent<any>;
|
|
20
20
|
};
|
|
21
|
-
slots: {
|
|
21
|
+
slots: {
|
|
22
|
+
user: {};
|
|
23
|
+
};
|
|
22
24
|
};
|
|
23
25
|
export declare type DropdownNavbarProps = typeof __propDef.props;
|
|
24
26
|
export declare type DropdownNavbarEvents = typeof __propDef.events;
|
package/navbar/Navbar.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script >import { page } from '$app/stores';
|
|
1
|
+
<script >import { page, session } from '$app/stores';
|
|
2
2
|
export let sitename = 'Svelte Flow';
|
|
3
3
|
export let logo = '/images/mkdir-logo.png';
|
|
4
4
|
export let alt = 'Svelte Flow';
|
|
@@ -61,6 +61,9 @@ export let liLinkClass = `block py-2 pr-4 pl-3 text-gray-700 border-b border-gr
|
|
|
61
61
|
</li>
|
|
62
62
|
{/each}
|
|
63
63
|
</ul>
|
|
64
|
+
{#if $session['user']}
|
|
65
|
+
<slot name="user" />
|
|
66
|
+
{/if}
|
|
64
67
|
</div>
|
|
65
68
|
</div>
|
|
66
69
|
</nav>
|
|
@@ -15,7 +15,9 @@ declare const __propDef: {
|
|
|
15
15
|
events: {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
17
17
|
};
|
|
18
|
-
slots: {
|
|
18
|
+
slots: {
|
|
19
|
+
user: {};
|
|
20
|
+
};
|
|
19
21
|
};
|
|
20
22
|
export declare type NavbarProps = typeof __propDef.props;
|
|
21
23
|
export declare type NavbarEvents = typeof __propDef.events;
|