[web] Domi UI: the web UI on @domi/ui v1.0.4, vendored (CPAL-1.0), with the Built on Domi credit (PR #14, squashed)

@domi/ui v1.0.4 vendored unchanged in packages/domi-ui by domi-design's tools/vendor.mjs and used as workspace:*, so
the Nix build fetches nothing from Gitea (web.nix sources the folder; fetchPnpmDeps hash from the NixOS runner).
Its fonts, roles (data-domi-room="ianitor", the same hex) and controls replace Ianitor's copies: Button through
Ianitor's adapter (desktop sizes kept), every text field a TextField with its seal, Checkbox, Select, Segmented.
Ianitor's 22 role names renamed to --domi-*. <DomiCredit /> on every screen and in About, with the CPAL section 15
note beside the source link; the README names the vendored package. Disabled buttons are natively disabled.
This commit was merged in pull request #14.
This commit is contained in:
2026-11-23 00:52:19 +01:00
parent 0934bb3419
commit c9aa55ec99
83 changed files with 8528 additions and 396 deletions
@@ -0,0 +1,39 @@
<script lang="ts">
import type { Snippet } from 'svelte';
interface Props {
/** The group's chosen value. Bind the same variable on every radio of the group: bind:group. */
group?: string;
value: string;
name: string;
label?: string;
hint?: string;
disabled?: boolean;
onchange?: (value: string) => void;
force?: string;
class?: string;
children?: Snippet;
}
let { group = $bindable(''), value, name, label, hint, disabled = false, onchange, force, class: cls = '', children }: Props = $props();
const uid = $props.id();
</script>
<label class={['domi-choice', 'domi-choice--radio', cls]} data-force={force}>
<span class="domi-choice__control">
<input
class="domi-choice__input"
type="radio"
bind:group
{value}
{name}
{disabled}
aria-describedby={hint ? `domi-hint-${uid}` : undefined}
onchange={() => onchange?.(value)}
/>
<span class="domi-choice__mark" aria-hidden="true"></span>
</span>
<span class="domi-choice__text">
<span>{#if children}{@render children()}{:else}{label}{/if}</span>
{#if hint}<span class="domi-choice__hint" id={`domi-hint-${uid}`}>{hint}</span>{/if}
</span>
</label>