flowbite-svelte 0.9.7 → 0.9.8

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/auth/Login.svelte CHANGED
@@ -6,21 +6,9 @@ export let rememberMe = false;
6
6
  export let signup = undefined;
7
7
  export let lostPassword = undefined;
8
8
  export let error = '';
9
+ export let submitText = 'Login to your account';
9
10
  let submitClass;
10
- export let fields = [
11
- {
12
- label: 'email',
13
- fieldtype: 'email',
14
- required: true,
15
- placeholder: 'Your email'
16
- },
17
- {
18
- label: 'password',
19
- fieldtype: 'password',
20
- required: true,
21
- placeholder: 'Your password'
22
- }
23
- ];
11
+ export let fields;
24
12
  if (btnSignInColor === 'blue') {
25
13
  submitClass =
26
14
  'w-full text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800';
@@ -114,7 +102,7 @@ else {
114
102
  </Alert>
115
103
  </div>
116
104
  {/if}
117
- <button type="submit" class={submitClass}>Login to your account</button>
105
+ <button type="submit" class={submitClass}>{submitText}</button>
118
106
  {#if signup}
119
107
  <div class="text-sm font-medium text-gray-500 dark:text-gray-300">
120
108
  Not registered? <a
@@ -9,7 +9,8 @@ declare const __propDef: {
9
9
  signup?: LinkType;
10
10
  lostPassword?: LinkType;
11
11
  error?: string;
12
- fields?: AuthFieldType[];
12
+ submitText?: string;
13
+ fields: AuthFieldType[];
13
14
  };
14
15
  events: {
15
16
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "author": {
6
6
  "name": "Shinichi Okada",
package/types.d.ts CHANGED
@@ -75,7 +75,7 @@ export interface ListCardType {
75
75
  field2?: string;
76
76
  field3?: string;
77
77
  }
78
- export declare type AuthFunctionType = () => Promise<string>;
78
+ export declare type AuthFunctionType = () => Promise<void>;
79
79
  export declare type ButtonType = 'button' | 'submit' | 'reset';
80
80
  export interface AuthFieldType {
81
81
  label: string;