[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,44 @@
<script lang="ts">
import Icon from './Icon.svelte';
import type { DomiOption } from '../types';
interface Props {
/** Left unset, the first option is chosen. */
value?: string;
label: string;
hideLabel?: boolean;
options: DomiOption[];
hint?: string;
name?: string;
disabled?: boolean;
required?: boolean;
onchange?: (value: string) => void;
force?: string;
class?: string;
}
let { value = $bindable(), label, hideLabel = false, options, hint, name, disabled = false, required = false, onchange, force, class: cls = '' }: Props = $props();
const uid = $props.id();
</script>
<!-- A native select: on Android and iOS it opens the system picker, which is the right control for a thumb. -->
<div class={['domi-field', cls]}>
<label class={['domi-field__label', hideLabel && 'domi-sr']} for={`domi-select-${uid}`}>{label}</label>
<div class="domi-select" data-force={force}>
<select
class="domi-select__input"
id={`domi-select-${uid}`}
bind:value
{name}
{disabled}
{required}
aria-describedby={hint ? `domi-hint-${uid}` : undefined}
onchange={() => onchange?.(value ?? '')}
>
{#each options as o (o.value)}
<option value={o.value} disabled={o.disabled}>{o.label}</option>
{/each}
</select>
<Icon name="chevron-down" />
</div>
{#if hint}<p class="domi-field__hint" id={`domi-hint-${uid}`}>{hint}</p>{/if}
</div>