[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
+3 -24
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import { Button } from '@domi/ui';
import type { PetalNow } from '@rosea/engine';
import type { HopeSentence } from '@rosea/schema';
import { tick } from 'svelte';
@@ -34,11 +35,11 @@
{#if petal.kind === 'folded'}
<div class="petal">
<img src={folded} alt={en.rose.petal.folded} width="56" height="56" />
<button type="button" onclick={open}>{en.rose.petal.open}</button>
<Button onclick={() => void open()}>{en.rose.petal.open}</Button>
</div>
{:else if petal.kind === 'open' && today}
<div class="petal">
<button type="button" class="quiet" aria-expanded={showing} aria-controls="{uid}-words" onclick={() => (showing = !showing)}>{en.rose.petal.today}</button>
<Button variant="quiet" aria-expanded={showing} aria-controls="{uid}-words" onclick={() => (showing = !showing)}>{en.rose.petal.today}</Button>
{#if showing}
<div id="{uid}-words" class="words" tabindex="-1" bind:this={words}>
<figure>
@@ -103,26 +104,4 @@
color: var(--ink-soft);
}
button {
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;
background: none;
padding: var(--space-1) 0;
color: var(--rose);
text-decoration: underline;
}
button:focus-visible {
outline: 2px solid var(--rose);
outline-offset: 2px;
}
</style>