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 CHANGED
@@ -38,6 +38,10 @@
38
38
 
39
39
  [Dropdowns](https://flowbite-svelte.vercel.app/dropdowns)
40
40
 
41
+ ## Form components
42
+
43
+ [Forms](https://flowbite-svelte.vercel.app/forms)
44
+
41
45
  ## Footer
42
46
 
43
47
  [Footer](https://flowbite-svelte.vercel.app/footer)
@@ -6,7 +6,7 @@ declare const __propDef: {
6
6
  labelClass?: string;
7
7
  inputClass?: string;
8
8
  divClass?: string;
9
- helper: any;
9
+ helper: string;
10
10
  };
11
11
  events: {
12
12
  [evt: string]: CustomEvent<any>;
@@ -2,7 +2,7 @@ import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  id: string;
5
- type: string;
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: string;
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;
@@ -1,7 +1,7 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- type: string;
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;
@@ -1,5 +1,4 @@
1
- <script >// import type { TextareaType } from '../types';
2
- export let id = 'message';
1
+ <script >export let id = 'message';
3
2
  export let name = 'message';
4
3
  export let label = 'Your message';
5
4
  export let rows = 4;
@@ -1,6 +1,4 @@
1
- <script >// import type { ToggleType } from '../types';
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?: string;
6
- textColor?: string;
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?: string;
6
- textColor?: string;
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?: string;
6
- textColor?: string;
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
6
  btnName?: string;
6
- btnColor?: string;
7
+ btnColor?: Colors;
7
8
  openFn?: (id: string) => void;
8
9
  };
9
10
  events: {
@@ -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?: string;
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?: string;
6
- textColor?: string;
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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "author": {
6
6
  "name": "Shinichi Okada",