@zeyolabs/ui 2026.11.45 → 2026.11.47
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 +5 -3
- package/update/UpdateOverlay.svelte +26 -0
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>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeyolabs/ui",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.47",
|
|
4
4
|
"description": "Shared Svelte 5 components, form fields and design tokens for SvelteKit 3 apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -69,7 +69,8 @@
|
|
|
69
69
|
"theme",
|
|
70
70
|
"tokens.css",
|
|
71
71
|
"turnstile",
|
|
72
|
-
"typography.css"
|
|
72
|
+
"typography.css",
|
|
73
|
+
"update"
|
|
73
74
|
],
|
|
74
75
|
"exports": {
|
|
75
76
|
"./template.css": "./template.css",
|
|
@@ -131,7 +132,8 @@
|
|
|
131
132
|
"./theme/theme.svelte": "./theme/theme.svelte.ts",
|
|
132
133
|
"./theme/*": "./theme/*",
|
|
133
134
|
"./turnstile/*": "./turnstile/*",
|
|
134
|
-
"./head/*": "./head/*"
|
|
135
|
+
"./head/*": "./head/*",
|
|
136
|
+
"./update/*": "./update/*"
|
|
135
137
|
},
|
|
136
138
|
"peerDependencies": {
|
|
137
139
|
"@zeyolabs/kit": ">=2026.11.44",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { updated } from '$app/state';
|
|
3
|
+
import { Button } from '@zeyolabs/ui/form';
|
|
4
|
+
import Text from '@zeyolabs/ui/text/Text.svelte';
|
|
5
|
+
|
|
6
|
+
/** Once in the root layout: covers the page when a newer deploy is live, with a reload button. */
|
|
7
|
+
let {
|
|
8
|
+
label = 'Reload to update',
|
|
9
|
+
message = 'A new version is available.',
|
|
10
|
+
}: {
|
|
11
|
+
label?: string;
|
|
12
|
+
message?: string;
|
|
13
|
+
} = $props();
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
{#if updated.current}
|
|
17
|
+
<div
|
|
18
|
+
class="fixed inset-0 z-99999 flex flex-col items-center justify-center gap-4 bg-black/80 p-6 text-center"
|
|
19
|
+
aria-label={message}
|
|
20
|
+
aria-modal="true"
|
|
21
|
+
role="alertdialog"
|
|
22
|
+
>
|
|
23
|
+
<Text bold centered color="white">{message}</Text>
|
|
24
|
+
<Button onclick={() => location.reload()}>{label}</Button>
|
|
25
|
+
</div>
|
|
26
|
+
{/if}
|