[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
+12
View File
@@ -0,0 +1,12 @@
import { screen } from '@testing-library/svelte';
/**
* The one status line Rosea herself speaks through. Every @domi/ui button also carries a hidden status of its own
* (`.domi-sr`, empty until the button works on a Promise, which Rosea's never do: domi-ui.md D2), so "the" status
* is the one that is not a button's.
*/
export function said(): HTMLElement {
const own = screen.getAllByRole('status').filter((el) => !el.classList.contains('domi-sr'));
if (own.length !== 1) throw new Error(`expected one status line of Rosea's own, found ${own.length}`);
return own[0]!;
}