@3birds/midori-ui 0.0.19 → 0.0.21
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { InputType } from '../types';
|
|
3
|
+
import type { FormEventHandler } from 'svelte/elements';
|
|
3
4
|
|
|
4
5
|
let {
|
|
5
6
|
type,
|
|
@@ -15,7 +16,9 @@
|
|
|
15
16
|
icon,
|
|
16
17
|
placeholder,
|
|
17
18
|
option,
|
|
18
|
-
value = $bindable()
|
|
19
|
+
value = $bindable(),
|
|
20
|
+
oninput,
|
|
21
|
+
onchange
|
|
19
22
|
}: {
|
|
20
23
|
type: InputType;
|
|
21
24
|
required?: boolean;
|
|
@@ -31,6 +34,8 @@
|
|
|
31
34
|
placeholder?: string;
|
|
32
35
|
option?: string;
|
|
33
36
|
value: any;
|
|
37
|
+
oninput?: (e: Event & { currentTarget: EventTarget & HTMLInputElement }) => void;
|
|
38
|
+
onchange?: (e: Event & { currentTarget: EventTarget & HTMLInputElement }) => void;
|
|
34
39
|
} = $props();
|
|
35
40
|
</script>
|
|
36
41
|
|
|
@@ -54,6 +59,8 @@
|
|
|
54
59
|
{max}
|
|
55
60
|
{placeholder}
|
|
56
61
|
bind:value
|
|
62
|
+
{oninput}
|
|
63
|
+
{onchange}
|
|
57
64
|
/>
|
|
58
65
|
</label>
|
|
59
66
|
{#if option}
|
|
@@ -14,6 +14,12 @@ type $$ComponentProps = {
|
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
option?: string;
|
|
16
16
|
value: any;
|
|
17
|
+
oninput?: (e: Event & {
|
|
18
|
+
currentTarget: EventTarget & HTMLInputElement;
|
|
19
|
+
}) => void;
|
|
20
|
+
onchange?: (e: Event & {
|
|
21
|
+
currentTarget: EventTarget & HTMLInputElement;
|
|
22
|
+
}) => void;
|
|
17
23
|
};
|
|
18
24
|
declare const Input: import("svelte").Component<$$ComponentProps, {}, "value">;
|
|
19
25
|
type Input = ReturnType<typeof Input>;
|
package/dist/firebase.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { initializeApp, getApps, getApp } from 'firebase/app';
|
|
2
2
|
import { getAuth } from 'firebase/auth';
|
|
3
|
-
import {
|
|
3
|
+
import { env } from '$env/dynamic/public';
|
|
4
4
|
const firebaseConfig = {
|
|
5
|
-
apiKey: PUBLIC_FIREBASE_API_KEY,
|
|
6
|
-
authDomain: PUBLIC_FIREBASE_AUTH_DOMAIN,
|
|
7
|
-
projectId: PUBLIC_FIREBASE_PROJECT_ID,
|
|
8
|
-
storageBucket: PUBLIC_FIREBASE_STORAGE_BUCKET,
|
|
9
|
-
messagingSenderId: PUBLIC_FIREBASE_MESSAGING_SENDER_ID,
|
|
10
|
-
appId: PUBLIC_FIREBASE_APP_ID
|
|
5
|
+
apiKey: env.PUBLIC_FIREBASE_API_KEY,
|
|
6
|
+
authDomain: env.PUBLIC_FIREBASE_AUTH_DOMAIN,
|
|
7
|
+
projectId: env.PUBLIC_FIREBASE_PROJECT_ID,
|
|
8
|
+
storageBucket: env.PUBLIC_FIREBASE_STORAGE_BUCKET,
|
|
9
|
+
messagingSenderId: env.PUBLIC_FIREBASE_MESSAGING_SENDER_ID,
|
|
10
|
+
appId: env.PUBLIC_FIREBASE_APP_ID
|
|
11
11
|
};
|
|
12
12
|
const app = getApps().length ? getApp() : initializeApp(firebaseConfig);
|
|
13
13
|
export const auth = getAuth(app);
|