@glimstone/svelte 5.0.4 → 5.0.6

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.
@@ -25,9 +25,9 @@
25
25
  copyLabel: string;
26
26
  closeLabel: string;
27
27
  };
28
- /** The address as a scannable square. */
28
+ /** Draws the address in place of the window's own QR code. */
29
29
  renderQr?: Snippet<[string]>;
30
- /** A coin's own mark. */
30
+ /** Draws a coin's mark in place of the core's. */
31
31
  renderMark?: Snippet<[CryptoCoin]>;
32
32
  /** Copy the address and say so in a toast, in the app's own words. */
33
33
  onCopy: (coin: CryptoCoin, network: CryptoNetwork) => void;
@@ -38,10 +38,12 @@
38
38
  </script>
39
39
 
40
40
  <script lang="ts">
41
- import { hueVars } from "@glimstone/core";
41
+ import { hueVars, qrCode, type TileMark } from "@glimstone/core";
42
+ import { CRYPTO_MARKS } from "@glimstone/core/cryptoMarks";
42
43
  import { useLabelMode } from "./engines.svelte.js";
43
44
  import { css } from "./style.js";
44
45
  import Badge from "./Badge.svelte";
46
+ import BrandMark from "./BrandMark.svelte";
45
47
  import Button from "./Button.svelte";
46
48
 
47
49
  // The window for giving from a crypto wallet.
@@ -53,9 +55,9 @@
53
55
  // sits above the picker, since it is what the window is opened for.
54
56
  //
55
57
  // The component holds no state and touches no `document`; the app owns the
56
- // selection, Escape, the portal and the toast. `renderQr` and `renderMark` are
57
- // props because a QR code needs a library and a coin's mark is someone else's
58
- // brand; without them the window shows the address, a copy button and tickers.
58
+ // selection, Escape, the portal and the toast. The window draws the address as
59
+ // a QR code and a coin's mark from the core's set by itself; `renderQr` and
60
+ // `renderMark` let an app draw its own instead.
59
61
  let { coins, coin, network, onPick, text, renderQr, renderMark, onCopy, onClose, ref = $bindable(null) }: CryptoDonateDialogProps = $props();
60
62
 
61
63
  // `reactive` shows both mark and ticker here: somebody searching a grid of
@@ -63,6 +65,8 @@
63
65
  const mode = useLabelMode("buttons");
64
66
  const showMark = $derived(mode.current !== "text");
65
67
  const showTicker = $derived(mode.current !== "glyph");
68
+ const MARKS: Record<string, TileMark | undefined> = CRYPTO_MARKS;
69
+ const code = $derived(qrCode(network.address));
66
70
  </script>
67
71
 
68
72
  <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->
@@ -95,7 +99,15 @@
95
99
  <p class="glim-give-intro">{text.intro}</p>
96
100
 
97
101
  <div class="glim-give-well">
98
- {@render renderQr?.(network.address)}
102
+ {#if renderQr}
103
+ {@render renderQr(network.address)}
104
+ {:else}
105
+ <!-- A camera reads dark modules on a light ground, so these two colours stay put in every theme. -->
106
+ <svg class="glim-give-qr" aria-hidden="true" viewBox="-4 -4 {code.size + 8} {code.size + 8}" shape-rendering="crispEdges">
107
+ <rect x={-4} y={-4} width={code.size + 8} height={code.size + 8} fill="#ffffff" />
108
+ <path d={code.path} fill="#161616" />
109
+ </svg>
110
+ {/if}
99
111
  <!-- Never shortened, since an address is checked by eye before sending.
100
112
  `dir="ltr"` keeps it left-to-right in a right-to-left interface. -->
101
113
  <p dir="ltr" class="glim-give-address">{network.address}</p>
@@ -140,15 +152,17 @@
140
152
  type="button"
141
153
  role="option"
142
154
  aria-selected={picked}
143
- aria-label={`${c.name} (${c.symbol})`}
155
+ aria-label={`${c.symbol}, ${c.name}`}
144
156
  title={c.name}
145
157
  onclick={() => onPick(c, c.networks[0]!)}
146
158
  style={css({ ...hueVars(i), ...(lit && { "--tile": c.tile!.color, "--tile-ink": c.tile!.ink }) })}
147
159
  class={`glim-give-coin ${showTicker ? "glim-hue glim-hue-icon" : "glim-hue"} ${
148
- picked ? "glim-active" : lit ? "glim-brand-tile" : "glim-give-coin--plain"
160
+ picked ? "glim-active" : lit ? "glim-brand-tile" : ""
149
161
  }`}
150
162
  >
151
- {#if showMark}{@render renderMark?.(c)}{/if}
163
+ {#if showMark}
164
+ {#if renderMark}{@render renderMark(c)}{:else if MARKS[c.id]}<BrandMark svg={MARKS[c.id]!.svg} hover={MARKS[c.id]!.hover} />{/if}
165
+ {/if}
152
166
  {#if showTicker}<span class="glim-give-ticker">{c.symbol}</span>{/if}
153
167
  </button>
154
168
  {/each}
@@ -22,9 +22,9 @@ export interface CryptoDonateDialogProps {
22
22
  copyLabel: string;
23
23
  closeLabel: string;
24
24
  };
25
- /** The address as a scannable square. */
25
+ /** Draws the address in place of the window's own QR code. */
26
26
  renderQr?: Snippet<[string]>;
27
- /** A coin's own mark. */
27
+ /** Draws a coin's mark in place of the core's. */
28
28
  renderMark?: Snippet<[CryptoCoin]>;
29
29
  /** Copy the address and say so in a toast, in the app's own words. */
30
30
  onCopy: (coin: CryptoCoin, network: CryptoNetwork) => void;
@@ -67,6 +67,8 @@
67
67
  <script lang="ts">
68
68
  import { createFortressFlow, fill, hueVars, joinRefusalText, listOf, othersLine, storedShowOthers, storeShowOthers } from "@glimstone/core";
69
69
  import Button from "./Button.svelte";
70
+ import Card from "./Card.svelte";
71
+ import EmptyState from "./EmptyState.svelte";
70
72
  import FortressAppCard from "./FortressAppCard.svelte";
71
73
  import FortressPermissions from "./FortressPermissions.svelte";
72
74
  import FortressWindow from "./FortressWindow.svelte";
@@ -141,16 +143,18 @@
141
143
  <div class="glim-fortress-grid">
142
144
  {@render children?.(flow.openRemove)}
143
145
  {#if !joined}
144
- <div class="glim-card glim-instance glim-instance--out" data-fortress="out">
145
- <h3 class="glim-instance-title">{removedHere ? text.removedHereTitle : text.outTitle}</h3>
146
- <p class="glim-instance-hint">{fill(removedHere ? text.removedHereHint : text.outHint, { app: app.name })}</p>
146
+ <Card data-fortress="out" title={text.fortress} hint={fill(removedHere ? text.removedHereHint : text.outHint, { app: app.name })}>
147
+ <EmptyState nested glyph={glyphFor(keys.join)} title={removedHere ? text.removedHereTitle : text.outTitle} />
147
148
  {#if found}
148
149
  <p class="glim-instance-found">
149
150
  {#if found.logo}<img src={found.logo} alt="" />{/if}
150
151
  <span>{fill(text.found, { app: found.app, device: found.device })}</span>
151
152
  </p>
152
153
  {/if}
153
- </div>
154
+ <div class="glim-empty-foot">
155
+ <Button label={text.enterPhrase} labelKey={keys.join} onClick={flow.openJoin} data-fortress="open-join" />
156
+ </div>
157
+ </Card>
154
158
  {/if}
155
159
  </div>
156
160
 
@@ -198,21 +202,17 @@
198
202
  {/if}
199
203
 
200
204
  <!-- An app that shows the phrase in its pairing settings leaves the corner out. -->
201
- {#if !joined || onShowPhrase}
205
+ {#if joined && onShowPhrase}
202
206
  <div class="glim-fortress-actions">
203
- {#if !joined}
204
- <Button label={text.enterPhrase} labelKey={keys.join} tone="accent" size="key" onClick={flow.openJoin} data-fortress="open-join" />
205
- {:else}
206
- <Button
207
- label={text.showPhrase}
208
- labelKey={keys.showPhrase}
209
- tone="accent"
210
- size="key"
211
- busy={s.busy === "show"}
212
- onClick={() => void flow.openPhrase()}
213
- data-fortress="show"
214
- />
215
- {/if}
207
+ <Button
208
+ label={text.showPhrase}
209
+ labelKey={keys.showPhrase}
210
+ tone="accent"
211
+ size="key"
212
+ busy={s.busy === "show"}
213
+ onClick={() => void flow.openPhrase()}
214
+ data-fortress="show"
215
+ />
216
216
  </div>
217
217
  {/if}
218
218
 
@@ -0,0 +1,85 @@
1
+ <script lang="ts" module>
2
+ import type { HueChoiceText } from "@glimstone/core";
3
+
4
+ export interface HueChoiceProps {
5
+ /** A palette name such as "teal", a mixed `#rrggbb`, or none. */
6
+ value?: string;
7
+ onChange: (next: string | undefined) => void;
8
+ /** Names the radio group, such as "Colour". */
9
+ label: string;
10
+ text?: HueChoiceText;
11
+ class?: string;
12
+ }
13
+ </script>
14
+
15
+ <script lang="ts">
16
+ import { HUE_CHOICES, HUE_CHOICE_TEXT, hueChoiceStep, hueName, hueOwn, huePlace } from "@glimstone/core";
17
+ import ColorPicker from "./ColorPicker.svelte";
18
+
19
+ // The colour of an item somebody marks: no colour or one of the palette's
20
+ // eight as a row of discs that behaves as one radio group, or a colour mixed
21
+ // in the colour picker behind the last disc. The palette discs take the
22
+ // palette's own variables, so they follow the colour mode and a palette
23
+ // picked under Look.
24
+ let { value, onChange, label, text = HUE_CHOICE_TEXT, class: className }: HueChoiceProps = $props();
25
+
26
+ // The colour the picker starts from when nothing was mixed yet.
27
+ const START = "#1d99f3";
28
+ let row: HTMLDivElement;
29
+ let ownDisc = $state<HTMLButtonElement | null>(null);
30
+ let mixing = $state(false);
31
+ const mixed = $derived(hueOwn(value));
32
+ const current = $derived(mixed ? undefined : huePlace(value) === undefined ? "" : value);
33
+
34
+ function step(e: KeyboardEvent & { currentTarget: HTMLButtonElement }, at: number) {
35
+ const rtl = getComputedStyle(e.currentTarget).direction === "rtl";
36
+ const next = hueChoiceStep(e.key, at, HUE_CHOICES.length, rtl);
37
+ if (next === undefined) return;
38
+ e.preventDefault();
39
+ onChange(HUE_CHOICES[next] || undefined);
40
+ row.querySelectorAll<HTMLButtonElement>('[role="radio"]')[next]?.focus();
41
+ }
42
+
43
+ // The picker opens on the colour in force, so mixing starts from what shows.
44
+ function start(): string {
45
+ const at = huePlace(value);
46
+ if (mixed) return mixed;
47
+ if (at === undefined || !ownDisc) return START;
48
+ return hueOwn(getComputedStyle(ownDisc).getPropertyValue(`--rb-${at}`).trim()) ?? START;
49
+ }
50
+ </script>
51
+
52
+ <div data-glim="HueChoice" class={["glim-hue-choice", className].filter(Boolean).join(" ")}>
53
+ <div bind:this={row} role="radiogroup" aria-label={label} style="display: contents">
54
+ {#each HUE_CHOICES as hue, at (hue || "none")}
55
+ {@const name = hueName(hue, text)}
56
+ <button
57
+ type="button"
58
+ role="radio"
59
+ aria-checked={hue === current}
60
+ aria-label={name}
61
+ title={name}
62
+ tabindex={hue === (current ?? "") ? 0 : -1}
63
+ class={hue ? "glim-hue-disc" : "glim-hue-disc glim-hue-disc--none"}
64
+ onclick={() => onChange(hue || undefined)}
65
+ onkeydown={(e) => step(e, at)}
66
+ >
67
+ <span style:background={hue ? `var(--rb-${at - 1})` : undefined}></span>
68
+ </button>
69
+ {/each}
70
+ </div>
71
+ <button
72
+ bind:this={ownDisc}
73
+ type="button"
74
+ aria-pressed={!!mixed}
75
+ aria-label={mixed ? hueName(mixed, text) : text.own}
76
+ title={mixed ? hueName(mixed, text) : text.ownHint}
77
+ class="glim-hue-disc glim-hue-disc--own"
78
+ onclick={() => (mixing = !mixing)}
79
+ >
80
+ <span style:background={mixed}></span>
81
+ </button>
82
+ {#if mixing}
83
+ <ColorPicker value={start()} anchor={ownDisc} onApply={(hex) => onChange(hex)} onClose={() => (mixing = false)} />
84
+ {/if}
85
+ </div>
@@ -0,0 +1,13 @@
1
+ import type { HueChoiceText } from "@glimstone/core";
2
+ export interface HueChoiceProps {
3
+ /** A palette name such as "teal", a mixed `#rrggbb`, or none. */
4
+ value?: string;
5
+ onChange: (next: string | undefined) => void;
6
+ /** Names the radio group, such as "Colour". */
7
+ label: string;
8
+ text?: HueChoiceText;
9
+ class?: string;
10
+ }
11
+ declare const HueChoice: import("svelte").Component<HueChoiceProps, {}, "">;
12
+ type HueChoice = ReturnType<typeof HueChoice>;
13
+ export default HueChoice;
@@ -31,6 +31,8 @@
31
31
  /** The switch under the state, bound with `bind:autoUpdate`. Left out, the card draws none. */
32
32
  autoUpdate?: boolean;
33
33
  onAutoUpdateChange?: (on: boolean) => void;
34
+ /** Why the app cannot replace itself, such as in a container. When set, the switch stands refused with it. */
35
+ autoRefused?: string;
34
36
  openUrl?: OpenUrl;
35
37
  hueIndex?: number;
36
38
  }
@@ -61,13 +63,14 @@
61
63
  unseen = 0,
62
64
  autoUpdate = $bindable(),
63
65
  onAutoUpdateChange,
66
+ autoRefused,
64
67
  openUrl = openInBrowser,
65
68
  hueIndex,
66
69
  }: InfoVersionCardProps = $props();
67
70
 
68
71
  const face = $derived(updateLine(state, text));
69
72
  const action = $derived(updateAction(route, state, text));
70
- const toggle = $derived(autoSwitch(route, text));
73
+ const toggle = $derived(autoSwitch(route, text, autoRefused));
71
74
  const check = $derived(checkButton(route, state));
72
75
  const number = $derived(numberLink({ name, version, repoUrl }));
73
76
 
@@ -95,9 +98,9 @@
95
98
  <span class="glim-num glim-version-number">{number.released ? number.shown : text.unreleased(number.shown)}</span>
96
99
  {/if}
97
100
  </div>
98
- {#if toggle && autoUpdate !== undefined}
101
+ {#if toggle && (toggle.refused || autoUpdate !== undefined)}
99
102
  <FieldRow label={toggle.label} hint={withApp(toggle.hint, name)}>
100
- <Toggle checked={autoUpdate} onChange={flip} label={toggle.label} hideLabel />
103
+ <Toggle checked={!toggle.refused && !!autoUpdate} onChange={flip} label={toggle.label} hideLabel refused={toggle.refused} />
101
104
  </FieldRow>
102
105
  {/if}
103
106
  {#if state.kind === "downloading"}
@@ -28,6 +28,8 @@ export interface InfoVersionCardProps {
28
28
  /** The switch under the state, bound with `bind:autoUpdate`. Left out, the card draws none. */
29
29
  autoUpdate?: boolean;
30
30
  onAutoUpdateChange?: (on: boolean) => void;
31
+ /** Why the app cannot replace itself, such as in a container. When set, the switch stands refused with it. */
32
+ autoRefused?: string;
31
33
  openUrl?: OpenUrl;
32
34
  hueIndex?: number;
33
35
  }
@@ -0,0 +1,98 @@
1
+ <script lang="ts" module>
2
+ import type { HTMLLiAttributes } from "svelte/elements";
3
+ import type { ListGroupText, ListItemState } from "@glimstone/core";
4
+ import type { ListRowAction, ListRowMenu } from "./ListRow.svelte";
5
+
6
+ export interface ListGroupHeadProps extends Omit<HTMLLiAttributes, "children" | "class"> {
7
+ name: string;
8
+ /** How each of its items stands, folded away or not. */
9
+ items: readonly ListItemState[];
10
+ folded: boolean;
11
+ /** Hears the state a press on the fold button asks for. */
12
+ onFold: (folded: boolean) => void;
13
+ /** The group's colour, a palette name or `#rrggbb`, which it wears with the rainbow look off too. */
14
+ hue?: string;
15
+ /** Its place among the list's groups, which gives it the rainbow look's colour when it has none of its own. */
16
+ place?: number;
17
+ /** The one action it keeps in view, such as running its items, as a quiet button. */
18
+ action?: ListRowAction;
19
+ /** Every other action, such as rename, move and delete, behind the More button. */
20
+ menu?: ListRowMenu;
21
+ text?: ListGroupText;
22
+ class?: string;
23
+ }
24
+ </script>
25
+
26
+ <script lang="ts">
27
+ import { LIST_GROUP_TEXT, badgeClassName, groupState, hueStyle, hueVars, menuPointUnder, takePageHue } from "@glimstone/core";
28
+ import Button from "./Button.svelte";
29
+ import EmptyState from "./EmptyState.svelte";
30
+ import ContextMenu from "./ContextMenu.svelte";
31
+ import IconTipButton from "./IconTipButton.svelte";
32
+ import { IconExpand, IconMore } from "./glyphs.js";
33
+ import { css } from "./style.js";
34
+
35
+ // A group's heading in a grouped list, the top of the group's card: the name
36
+ // in the notch, and on its line the fold, how its items stand, a More button
37
+ // and one action. An open group without items says so under the line. It is
38
+ // one of the list's own items, so
39
+ // reorderList carries it like the rest, and an item let go on it joins the
40
+ // group. The other props of an <li> go to the heading.
41
+ let { name, items, folded, onFold, hue, place, action, menu, text = LIST_GROUP_TEXT, class: className, style, ...rest }: ListGroupHeadProps = $props();
42
+
43
+ // The action narrows to its glyph below this window width, as a list row's does.
44
+ const NARROW = 640;
45
+ const nameClass = `glim-list-group-name ${badgeClassName({ tone: "heading", size: "heading", wrap: true, inFlow: true })}`;
46
+ let menuAt = $state<{ x: number; y: number } | null>(null);
47
+ let more = $state<HTMLElement | null>(null);
48
+
49
+ const stay = (e: MouseEvent) => e.stopPropagation();
50
+ const reach = (e: Event) => takePageHue(e.currentTarget as HTMLElement);
51
+ function toggleMenu(e: MouseEvent & { currentTarget: EventTarget & HTMLElement }) {
52
+ more = e.currentTarget;
53
+ menuAt = menuAt ? null : menuPointUnder(e.currentTarget);
54
+ }
55
+
56
+ const standing = $derived(groupState(items));
57
+ const own = $derived(hueStyle(hue));
58
+ const vars = $derived(own ?? (place === undefined ? undefined : hueVars(place)));
59
+ const fold = $derived(text.fold(name, folded));
60
+ const classes = $derived(["glim-list-group-head", vars && "glim-hue", own && "glim-hue-own", className].filter(Boolean).join(" "));
61
+ </script>
62
+
63
+ <li data-glim="ListGroupHead" data-folded={folded ? "" : undefined} {...rest} style={[style, css(vars)].filter(Boolean).join("; ") || undefined} class={classes}>
64
+ <span class={nameClass}>{name}</span>
65
+ <button type="button" class="glim-btn-bare glim-list-group-fold" aria-expanded={!folded} aria-label={fold} title={fold} onclick={() => onFold(!folded)}>
66
+ {@render IconExpand()}
67
+ </button>
68
+ {#if standing.state !== "empty"}
69
+ <span class="glim-list-group-state" data-state={standing.state}>{text.state(standing)}</span>
70
+ {/if}
71
+ <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->
72
+ {#if action || menu}
73
+ <span class="glim-list-group-end" onclick={stay}>
74
+ {#if menu}
75
+ <IconTipButton
76
+ tip={menu.label}
77
+ aria-haspopup="menu"
78
+ ariaExpanded={menuAt !== null}
79
+ class="glim-btn-bare glim-icon-btn"
80
+ onpointerenter={reach}
81
+ onfocusin={reach}
82
+ onclick={toggleMenu}
83
+ >
84
+ {@render IconMore()}
85
+ </IconTipButton>
86
+ {#if menuAt}
87
+ <ContextMenu x={menuAt.x} y={menuAt.y} end items={menu.items} label={menu.label} opener={more} onClose={() => (menuAt = null)} />
88
+ {/if}
89
+ {/if}
90
+ {#if action}
91
+ <Button tone="subtle" label={action.label} labelKey={action.labelKey} glyph={action.glyph} disabled={action.disabled} compactBelow={NARROW} onClick={action.onClick} />
92
+ {/if}
93
+ </span>
94
+ {/if}
95
+ {#if standing.state === "empty" && !folded}
96
+ <EmptyState nested title={text.state(standing)} />
97
+ {/if}
98
+ </li>
@@ -0,0 +1,24 @@
1
+ import type { HTMLLiAttributes } from "svelte/elements";
2
+ import type { ListGroupText, ListItemState } from "@glimstone/core";
3
+ import type { ListRowAction, ListRowMenu } from "./ListRow.svelte";
4
+ export interface ListGroupHeadProps extends Omit<HTMLLiAttributes, "children" | "class"> {
5
+ name: string;
6
+ /** How each of its items stands, folded away or not. */
7
+ items: readonly ListItemState[];
8
+ folded: boolean;
9
+ /** Hears the state a press on the fold button asks for. */
10
+ onFold: (folded: boolean) => void;
11
+ /** The group's colour, a palette name or `#rrggbb`, which it wears with the rainbow look off too. */
12
+ hue?: string;
13
+ /** Its place among the list's groups, which gives it the rainbow look's colour when it has none of its own. */
14
+ place?: number;
15
+ /** The one action it keeps in view, such as running its items, as a quiet button. */
16
+ action?: ListRowAction;
17
+ /** Every other action, such as rename, move and delete, behind the More button. */
18
+ menu?: ListRowMenu;
19
+ text?: ListGroupText;
20
+ class?: string;
21
+ }
22
+ declare const ListGroupHead: import("svelte").Component<ListGroupHeadProps, {}, "">;
23
+ type ListGroupHead = ReturnType<typeof ListGroupHead>;
24
+ export default ListGroupHead;
@@ -199,7 +199,7 @@
199
199
  </FieldRow>
200
200
  </FieldRowGroup>
201
201
  {/if}
202
- <div class="glim-signin-tile-foot">
202
+ <div class="glim-signin-tile-foot glim-empty-foot">
203
203
  {#if s.editing}
204
204
  <Button label={text.cancel} labelKey="common.cancel" glyph={IconCancel} onClick={flow.cancelPassword} />
205
205
  <Button
@@ -244,7 +244,7 @@
244
244
  {:else}
245
245
  <EmptyState nested glyph={glyph(keys.setUp)} title={t.none} />
246
246
  {/if}
247
- <div class="glim-signin-tile-foot">
247
+ <div class="glim-signin-tile-foot glim-empty-foot">
248
248
  {#if on}
249
249
  <Button label={t.newCodes} labelKey={keys.newCodes} busy={s.busy === "two-factor-codes"} data-signin-tile="two-factor-codes" onClick={() => void flow.newCodes()} />
250
250
  <Button label={t.turnOff} labelKey={keys.turnOff} data-signin-tile="ask-two-factor-off" onClick={flow.askTwoFactorOff} />
@@ -285,7 +285,7 @@
285
285
  <EmptyState nested glyph={glyph(keys.passkey)} title={t.none} />
286
286
  {/if}
287
287
  {#if here}
288
- <div class="glim-signin-tile-foot">
288
+ <div class="glim-signin-tile-foot glim-empty-foot">
289
289
  <Button label={t.add} labelKey={keys.add} data-signin-tile="passkey-ask-add" onClick={() => flow.askAddPasskey()} />
290
290
  </div>
291
291
  {/if}
@@ -314,7 +314,7 @@
314
314
  {/each}
315
315
  </div>
316
316
  {#if s.sessions.some((x) => !x.current)}
317
- <div class="glim-signin-tile-foot">
317
+ <div class="glim-signin-tile-foot glim-empty-foot">
318
318
  <Button
319
319
  label={t.endOthers}
320
320
  labelKey={keys.endOthers}
@@ -353,7 +353,7 @@
353
353
  {:else}
354
354
  <EmptyState nested glyph={glyph(keys.token)} title={t.none} />
355
355
  {/if}
356
- <div class="glim-signin-tile-foot">
356
+ <div class="glim-signin-tile-foot glim-empty-foot">
357
357
  <Button label={t.create} labelKey={keys.createToken} data-signin-tile="token-ask" onClick={flow.askToken} />
358
358
  </div>
359
359
  </div>
@@ -402,7 +402,7 @@
402
402
  {:else}
403
403
  <EmptyState nested glyph={glyph(keys.service)} title={t.none} />
404
404
  {/if}
405
- <div class="glim-signin-tile-foot">
405
+ <div class="glim-signin-tile-foot glim-empty-foot">
406
406
  <Button label={t.add} labelKey={keys.addService} data-signin-tile="service-pick" onClick={flow.pickService} />
407
407
  </div>
408
408
  </div>
package/dist/index.d.ts CHANGED
@@ -23,6 +23,7 @@ export { default as FortressPermissions, type FortressPermission, type FortressP
23
23
  export { default as FortressStatusWindow, type FortressLogLine, type FortressStatusReport, type FortressStatusWindowProps } from "./FortressStatusWindow.svelte";
24
24
  export { default as GlyphField, type GlyphFieldProps } from "./GlyphField.svelte";
25
25
  export { default as GlyphTile, type GlyphTileProps } from "./GlyphTile.svelte";
26
+ export { default as HueChoice, type HueChoiceProps } from "./HueChoice.svelte";
26
27
  export { default as IconButton, type IconButtonProps } from "./IconButton.svelte";
27
28
  export { default as IconTipButton, type IconTipButtonProps } from "./IconTipButton.svelte";
28
29
  export { default as InfoAboutCard, type InfoAboutCardProps } from "./InfoAboutCard.svelte";
@@ -33,6 +34,7 @@ export { default as InfoTile, type InfoTileProps } from "./InfoTile.svelte";
33
34
  export { default as InfoVersionCard, type InfoVersionCardProps, type UpdateCheck, type UpdateRoute, type UpdateState, type VersionCardText, type VersionRow } from "./InfoVersionCard.svelte";
34
35
  export { default as InstanceCard, type InstanceCardProps, type InstanceFigure } from "./InstanceCard.svelte";
35
36
  export { default as Kbd, type KbdProps } from "./Kbd.svelte";
37
+ export { default as ListGroupHead, type ListGroupHeadProps } from "./ListGroupHead.svelte";
36
38
  export { default as ListRow, type ListRowAction, type ListRowMenu, type ListRowProps } from "./ListRow.svelte";
37
39
  export type { HoverCardFact, ListRowStatus } from "@glimstone/core";
38
40
  export { default as ListTable, type ListColumn, type ListTableProps, type ListTableText } from "./ListTable.svelte";
package/dist/index.js CHANGED
@@ -23,6 +23,7 @@ export { default as FortressPermissions } from "./FortressPermissions.svelte";
23
23
  export { default as FortressStatusWindow } from "./FortressStatusWindow.svelte";
24
24
  export { default as GlyphField } from "./GlyphField.svelte";
25
25
  export { default as GlyphTile } from "./GlyphTile.svelte";
26
+ export { default as HueChoice } from "./HueChoice.svelte";
26
27
  export { default as IconButton } from "./IconButton.svelte";
27
28
  export { default as IconTipButton } from "./IconTipButton.svelte";
28
29
  export { default as InfoAboutCard } from "./InfoAboutCard.svelte";
@@ -33,6 +34,7 @@ export { default as InfoTile } from "./InfoTile.svelte";
33
34
  export { default as InfoVersionCard } from "./InfoVersionCard.svelte";
34
35
  export { default as InstanceCard } from "./InstanceCard.svelte";
35
36
  export { default as Kbd } from "./Kbd.svelte";
37
+ export { default as ListGroupHead } from "./ListGroupHead.svelte";
36
38
  export { default as ListRow } from "./ListRow.svelte";
37
39
  export { default as ListTable } from "./ListTable.svelte";
38
40
  export { default as MarkSvg } from "./MarkSvg.svelte";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glimstone/svelte",
3
- "version": "5.0.4",
3
+ "version": "5.0.6",
4
4
  "description": "GlimStone's components for Svelte",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -146,7 +146,7 @@
146
146
  "build": "svelte-package -i src -o dist"
147
147
  },
148
148
  "dependencies": {
149
- "@glimstone/core": "5.0.4"
149
+ "@glimstone/core": "5.0.6"
150
150
  },
151
151
  "peerDependencies": {
152
152
  "@internationalized/date": "^3.12.4",