@zeyolabs/ui 2026.11.45 → 2026.11.46
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/account/SignIn.svelte +2 -1
- package/layout/Divider.svelte +32 -0
- package/package.json +1 -1
package/account/SignIn.svelte
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import Button from '../form/Button.svelte';
|
|
11
11
|
import Input from '../form/primitives/Input.svelte';
|
|
12
|
+
import Divider from '../layout/Divider.svelte';
|
|
12
13
|
import Span from '../text/Span.svelte';
|
|
13
14
|
import Text from '../text/Text.svelte';
|
|
14
15
|
import Turnstile from '../turnstile/Turnstile.svelte';
|
|
@@ -80,7 +81,7 @@
|
|
|
80
81
|
{busy ? 'Waiting for passkey…' : 'Sign in with a passkey'}
|
|
81
82
|
</Button>
|
|
82
83
|
{#if passkeyError}<AuthAlert>{passkeyError}</AuthAlert>{/if}
|
|
83
|
-
<
|
|
84
|
+
<Divider label="or" />
|
|
84
85
|
{/if}
|
|
85
86
|
|
|
86
87
|
<form action="/auth/email" method="post">
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Span from '../text/Span.svelte';
|
|
3
|
+
|
|
4
|
+
/** A horizontal line. With a `label` it reads as a line, the label, then a line (e.g. "OR"). */
|
|
5
|
+
let { label }: { label?: string } = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
{#if label}
|
|
9
|
+
<div class="divider" role="separator">
|
|
10
|
+
<Span color="tertiary" size="sm" uppercase>{label}</Span>
|
|
11
|
+
</div>
|
|
12
|
+
{:else}
|
|
13
|
+
<hr class="rule" />
|
|
14
|
+
{/if}
|
|
15
|
+
|
|
16
|
+
<style>
|
|
17
|
+
.divider {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: 12px;
|
|
21
|
+
}
|
|
22
|
+
.divider::before,
|
|
23
|
+
.divider::after {
|
|
24
|
+
flex: 1;
|
|
25
|
+
border-top: 1px solid var(--bd);
|
|
26
|
+
content: '';
|
|
27
|
+
}
|
|
28
|
+
.rule {
|
|
29
|
+
border: 0;
|
|
30
|
+
border-top: 1px solid var(--bd);
|
|
31
|
+
}
|
|
32
|
+
</style>
|