flowbite-svelte 0.15.8 → 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/auth/Reset.svelte DELETED
@@ -1,57 +0,0 @@
1
- <script>import { Alert } from '../index';
2
- export let resetpw = undefined;
3
- export let password = '';
4
- export let email = '';
5
- export let confirmpw = '';
6
- export let error = '';
7
- export let message = '';
8
- </script>
9
-
10
- <div
11
- class="p-4 max-w-sm bg-white rounded-lg border border-gray-200 shadow-md sm:p-6 lg:p-8 dark:bg-gray-800 dark:border-gray-700 w-full"
12
- >
13
- <form class="space-y-6" on:submit|preventDefault={resetpw}>
14
- <div class="heading">
15
- <h2 class="text-xl font-medium text-gray-900 dark:text-white">Reset password</h2>
16
- </div>
17
- <input
18
- type="password"
19
- required
20
- name="password"
21
- placeholder="Enter your password."
22
- bind:value={password}
23
- 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-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white"
24
- />
25
- <input
26
- type="password"
27
- required
28
- name="confirmpw"
29
- placeholder="Confirm your password."
30
- bind:value={confirmpw}
31
- 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-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white"
32
- />
33
- <input type="hidden" required name="email" bind:value={email} />
34
- {#if error}
35
- <div class="mt-6">
36
- <Alert alertId="alert-green" color="red" closeBtn>
37
- {error}
38
- </Alert>
39
- </div>
40
- {/if}
41
- {#if message}
42
- <div class="mt-6">
43
- <Alert alertId="alert-green" color="green" closeBtn>
44
- {message}
45
- </Alert>
46
- <a
47
- href="/auth/login"
48
- class="ml-auto text-sm text-blue-700 hover:underline dark:text-blue-500">Go to Login</a
49
- >
50
- </div>
51
- {/if}
52
- <button
53
- class="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"
54
- type="submit">Reset</button
55
- >
56
- </form>
57
- </div>
@@ -1,22 +0,0 @@
1
- import { SvelteComponentTyped } from "svelte";
2
- import type { AuthFunctionType } from '../types';
3
- declare const __propDef: {
4
- props: {
5
- resetpw?: AuthFunctionType;
6
- password?: string;
7
- email?: string;
8
- confirmpw?: string;
9
- error?: string;
10
- message?: string;
11
- };
12
- events: {
13
- [evt: string]: CustomEvent<any>;
14
- };
15
- slots: {};
16
- };
17
- export declare type ResetProps = typeof __propDef.props;
18
- export declare type ResetEvents = typeof __propDef.events;
19
- export declare type ResetSlots = typeof __propDef.slots;
20
- export default class Reset extends SvelteComponentTyped<ResetProps, ResetEvents, ResetSlots> {
21
- }
22
- export {};