[ui] DomiUi: Rosea's buttons and town search on @domi/ui v1.0.4 (CPAL-1.0, vendored by its own tool into packages/domi-ui), the licence credit at the foot of every screen, the README's copy line and public-domain sources; before-and-after pictures by pnpm look:shots

This commit is contained in:
2026-11-23 00:59:50 +01:00
parent 295e6ba59a
commit 8018268821
79 changed files with 8554 additions and 222 deletions
+10 -26
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import { Button } from '@domi/ui';
import { en } from '../copy/en.js';
import type { RoseWiring } from './types.js';
@@ -76,17 +77,18 @@
<p>{refused ? en.rose.safe.refused : persisted === true ? en.rose.safe.kept : persisted === false ? en.rose.safe.mayClear : en.rose.safe.unknown}</p>
{/if}
{#if !inApp && persisted === false && !refused}
<button type="button" class="quiet" onclick={ask}>{en.rose.safe.ask}</button>
<Button variant="quiet" onclick={() => void ask()}>{en.rose.safe.ask}</Button>
{/if}
{#if !inApp && wiring.installHint}
<p>{en.rose.safe.install}</p>
{/if}
<button type="button" onclick={save}>{en.rose.safe.save}</button>
<Button onclick={() => void save()}>{en.rose.safe.save}</Button>
<p class="note">{en.rose.safe.fileNote}</p>
<label class="file">
<span>{en.rose.safe.bringBack}</span>
<!-- A label, so the file picker stays the browser's own; it wears @domi/ui's plate. -->
<label class="file domi-btn">
<span class="domi-btn__label">{en.rose.safe.bringBack}</span>
<input type="file" accept="application/json,.json" onchange={bringBack} />
</label>
<p class="said" role="status">{said}</p>
@@ -122,24 +124,6 @@
display: none;
}
button,
.file {
font: inherit;
padding: var(--space-2) var(--space-3);
border-radius: 999px;
border: 1px solid var(--rose);
background: var(--paper);
color: var(--ink);
cursor: pointer;
}
.quiet {
border: none;
padding: var(--space-1) 0;
color: var(--rose);
text-decoration: underline;
}
.file {
position: relative;
}
@@ -152,9 +136,9 @@
cursor: pointer;
}
.file:focus-within,
button:focus-visible {
outline: 2px solid var(--rose);
outline-offset: 2px;
/* The plate's own focus ring, on the label that holds the real input. */
.file:focus-within {
outline: 2px solid var(--domi-accent);
outline-offset: 3px;
}
</style>