[ui] DomiUi: @domi/ui v1.4.0: Water and Touch her are Button again (the handler fix from here), the credit is DomiCredit link={false}

This commit is contained in:
2026-11-23 02:31:50 +01:00
parent 7f8b6861f9
commit 87ca83cd1b
17 changed files with 213 additions and 60 deletions
+26
View File
@@ -1,5 +1,31 @@
# Changelog
## 1.4.0 (2026-11-23)
- `DomiCredit link={false}`: the same credit with the URL as plain text, for an offline app (asked by Rosea). The licence
asks for the URL to be shown, not to be clickable.
- Visual tests: one retry, so an intermittent shot is reported as flaky by name.
- Fix: `Button` dropped an `onkeydown` or `onblur` passed to it, because its own handlers came after `{...rest}`. It
now runs the passed one first, then its own (Escape and blur still disarm a confirm). Found in Rosea, where a held
Space pours water and blur stops the pour.
## 1.3.1 (2026-11-23)
- **Praeco Domi's brass is now `#ab821e`** (Mark: "Move praeco apart"). A burnished, darker herald's brass: 0.101 from
Tabula's gold in OKLab distance (was 0.026), 0.136 from Ostende, at least 0.10 from every app. Text 5.0:1 or more on every dark
ground; leaf `#c89e41` → `#b88e2f` → `#ab821e` with a dark label, 5.5:1 or more. Tabula keeps its gold. Atrium's
catalogue.rs and Praeco take the new hex. A patch by Mark's request: a colour fix for a palette entry.
- Tests: screenshot comparison now uses a per-pixel colour tolerance of 0.02 (Playwright's default 0.2 let the old
Praeco brass pass against the new one). Under it, five earlier baselines turned out slightly off and were renewed:
the light-theme leaf on hover (the 1.0.1 hover fix) and switch and segmented focus. Contrast numbers were never affected.
## 1.3.0 (2026-11-23)
- **Praeco Domi** (`praeco`, label Marketing): brass `#c9a227` (Praeco-plan J1), Scaena's royal red `#9B1B30` as the
second light through its text tint `#d6565f`. All 66 of its contrast pairs pass. Its brass sits 0.026 from Tabula's gold in
OKLab distance: the two tiles read alike; Mark to decide (PALETTE.md).
## 1.2.0 (2026-11-23)
- **The seal without a script**: on a static page (Aula), `.domi-field:has(.domi-field__input:placeholder-shown)` lays
+1 -1
View File
@@ -1,4 +1,4 @@
This folder is @domi/ui v1.2.0, copied unchanged from domi-design by tools/vendor.mjs.
This folder is @domi/ui v1.4.0, copied unchanged from domi-design by tools/vendor.mjs.
Licence: Common Public Attribution License 1.0 (LICENSE). Original Code: @domi/ui. Initial Developer: Marek Novák.
Attribution Information (Exhibit B). Any app built with this code shows, prominently in its user interface when
+1 -1
View File
@@ -1 +1 @@
v1.2.0
v1.4.0
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@domi/ui",
"version": "1.2.0",
"description": "The Domi design system: tokens for every Domi app, struck buttons and fields with an integrated send button, Svelte 5 components. Vendored copy of v1.2.0: do not edit here; change domi-design and vendor the next tag.",
"version": "1.4.0",
"description": "The Domi design system: tokens for every Domi app, struck buttons and fields with an integrated send button, Svelte 5 components. Vendored copy of v1.4.0: do not edit here; change domi-design and vendor the next tag.",
"license": "CPAL-1.0",
"type": "module",
"svelte": "./src/index.ts",
+11 -2
View File
@@ -56,6 +56,9 @@
disabled = false,
type = 'button',
children,
// Taken out of rest, so the button can run them before its own (a spread before the attribute would lose them).
onkeydown: passedKeydown,
onblur: passedBlur,
...rest
}: Props = $props();
@@ -133,8 +136,14 @@
aria-label={iconOnly ? (armed ? confirm : label) : undefined}
title={iconOnly ? (armed ? confirm : label) : undefined}
onclick={press}
onkeydown={(e) => e.key === 'Escape' && armed && disarm()}
onblur={disarm}
onkeydown={(e) => {
passedKeydown?.(e);
if (e.key === 'Escape' && armed) disarm();
}}
onblur={(e) => {
passedBlur?.(e);
disarm();
}}
use:strike
>
<span class="domi-btn__label">
@@ -8,14 +8,19 @@
import { DOMI_ATTRIBUTION as A } from '../lib/credit';
interface Props {
/**
* true (default): the URL is a link. false: the URL is plain text, for an offline app (Rosea's game, an app with
* no network): the licence asks for the URL to be shown, not to be clickable.
*/
link?: boolean;
class?: string;
}
let { class: cls = '' }: Props = $props();
let { link = true, class: cls = '' }: Props = $props();
</script>
<p class={['domi-credit', cls]}>
<!-- Real spaces around the dots, so copied text reads as the licence writes it; flex ignores them in layout. -->
<span>{A.phrase}</span> <span class="domi-credit__dot" aria-hidden="true">·</span>
<a href={A.url} target="_blank" rel="noopener noreferrer">{A.url}</a>
{#if link}<a href={A.url} target="_blank" rel="noopener noreferrer">{A.url}</a>{:else}<span class="domi-credit__url">{A.url}</span>{/if}
<span class="domi-credit__dot" aria-hidden="true">·</span> <span>{A.copyright}</span>
</p>
+3
View File
@@ -1083,6 +1083,9 @@ textarea.domi-field__input {
text-decoration-color: var(--domi-edge-accent);
text-underline-offset: 3px;
}
.domi-credit__url {
color: var(--domi-fg-2);
}
.domi-credit a:hover {
color: var(--domi-accent-strong);
}
+68
View File
@@ -91,6 +91,7 @@
--domi-brand-panda: #e08a4f;
--domi-brand-pictor: #f27ab9;
--domi-brand-postea: #7fd8ab;
--domi-brand-praeco: #ab821e;
--domi-brand-respicio: #d9ac66;
--domi-brand-rosea: #e8899b;
--domi-brand-scriptum: #b9a0f2;
@@ -496,6 +497,22 @@
--domi-danger-fg-postea: #1a0a06;
--domi-ok-postea: #9fd08f;
--domi-warning-postea: #f2c66d;
--domi-accent-praeco: #ab821e;
--domi-accent-strong-praeco: #c59b3e;
--domi-leaf-hi-praeco: #c89e41;
--domi-leaf-mid-praeco: #b88e2f;
--domi-leaf-lo-praeco: #ab821e;
--domi-leaf-hover-hi-praeco: #cea854;
--domi-leaf-hover-mid-praeco: #bd963e;
--domi-leaf-hover-lo-praeco: #af8829;
--domi-leaf-edge-praeco: #e9be63;
--domi-leaf-fg-praeco: #0b0d14;
--domi-rim-praeco: #b88e2f;
--domi-second-praeco: #d6565f;
--domi-danger-praeco: #ff9d9d;
--domi-danger-fg-praeco: #1a0a06;
--domi-ok-praeco: #9fd08f;
--domi-warning-praeco: #f2c66d;
--domi-accent-respicio: #d9ac66;
--domi-accent-strong-respicio: #e8c27f;
--domi-leaf-hi-respicio: #e8c27f;
@@ -999,6 +1016,22 @@
--domi-danger-fg-postea: #ffffff;
--domi-ok-postea: #2d6a27;
--domi-warning-postea: #7a5200;
--domi-accent-praeco: #8b6700;
--domi-accent-strong-praeco: #664b01;
--domi-leaf-hi-praeco: #947014;
--domi-leaf-mid-praeco: #8b6700;
--domi-leaf-lo-praeco: #735400;
--domi-leaf-hover-hi-praeco: #93721d;
--domi-leaf-hover-mid-praeco: #937212;
--domi-leaf-hover-lo-praeco: #7a5d0d;
--domi-leaf-edge-praeco: #624700;
--domi-leaf-fg-praeco: #ffffff;
--domi-rim-praeco: #8b6700;
--domi-second-praeco: #be3f4b;
--domi-danger-praeco: #a8231b;
--domi-danger-fg-praeco: #ffffff;
--domi-ok-praeco: #2d6a27;
--domi-warning-praeco: #7a5200;
--domi-accent-respicio: #8e6518;
--domi-accent-strong-respicio: #6b4900;
--domi-leaf-hi-respicio: #976e23;
@@ -1499,6 +1532,22 @@
--domi-danger-fg-postea: #ffffff;
--domi-ok-postea: #2d6a27;
--domi-warning-postea: #7a5200;
--domi-accent-praeco: #8b6700;
--domi-accent-strong-praeco: #664b01;
--domi-leaf-hi-praeco: #947014;
--domi-leaf-mid-praeco: #8b6700;
--domi-leaf-lo-praeco: #735400;
--domi-leaf-hover-hi-praeco: #93721d;
--domi-leaf-hover-mid-praeco: #937212;
--domi-leaf-hover-lo-praeco: #7a5d0d;
--domi-leaf-edge-praeco: #624700;
--domi-leaf-fg-praeco: #ffffff;
--domi-rim-praeco: #8b6700;
--domi-second-praeco: #be3f4b;
--domi-danger-praeco: #a8231b;
--domi-danger-fg-praeco: #ffffff;
--domi-ok-praeco: #2d6a27;
--domi-warning-praeco: #7a5200;
--domi-accent-respicio: #8e6518;
--domi-accent-strong-respicio: #6b4900;
--domi-leaf-hi-respicio: #976e23;
@@ -2075,6 +2124,25 @@
--domi-ok: var(--domi-ok-postea);
--domi-warning: var(--domi-warning-postea);
}
[data-domi-app="praeco"],
[data-domi-room="praeco"] {
--domi-accent: var(--domi-accent-praeco);
--domi-accent-strong: var(--domi-accent-strong-praeco);
--domi-leaf-hi: var(--domi-leaf-hi-praeco);
--domi-leaf-mid: var(--domi-leaf-mid-praeco);
--domi-leaf-lo: var(--domi-leaf-lo-praeco);
--domi-leaf-hover-hi: var(--domi-leaf-hover-hi-praeco);
--domi-leaf-hover-mid: var(--domi-leaf-hover-mid-praeco);
--domi-leaf-hover-lo: var(--domi-leaf-hover-lo-praeco);
--domi-leaf-edge: var(--domi-leaf-edge-praeco);
--domi-leaf-fg: var(--domi-leaf-fg-praeco);
--domi-rim: var(--domi-rim-praeco);
--domi-second: var(--domi-second-praeco);
--domi-danger: var(--domi-danger-praeco);
--domi-danger-fg: var(--domi-danger-fg-praeco);
--domi-ok: var(--domi-ok-praeco);
--domi-warning: var(--domi-warning-praeco);
}
[data-domi-app="respicio"],
[data-domi-room="respicio"] {
--domi-accent: var(--domi-accent-respicio);
+45 -1
View File
@@ -2,7 +2,7 @@
/* eslint-disable */
export const tokens = {
"name": "@domi/ui",
"version": "1.2.0",
"version": "1.4.0",
"note": "GENERATED by tools/build-tokens.mjs. Colours are sRGB hex. Use roles, never the hex in a component.",
"themes": {
"dark": {
@@ -1517,6 +1517,50 @@ export const tokens = {
},
"lightRoom": null
},
"praeco": {
"name": "Praeco Domi",
"label": "Marketing",
"stack": "svelte",
"brand": "#ab821e",
"dark": {
"accent": "#ab821e",
"accentStrong": "#c59b3e",
"leafHi": "#c89e41",
"leafMid": "#b88e2f",
"leafLo": "#ab821e",
"leafEdge": "#e9be63",
"leafFg": "#0b0d14",
"rim": "#b88e2f",
"second": "#d6565f",
"danger": "#ff9d9d",
"ok": "#9fd08f",
"warning": "#f2c66d",
"dangerFg": "#1a0a06",
"leafHoverHi": "#cea854",
"leafHoverMid": "#bd963e",
"leafHoverLo": "#af8829"
},
"light": {
"accent": "#8b6700",
"accentStrong": "#664b01",
"leafHi": "#947014",
"leafMid": "#8b6700",
"leafLo": "#735400",
"leafEdge": "#624700",
"leafFg": "#ffffff",
"rim": "#8b6700",
"second": "#be3f4b",
"danger": "#a8231b",
"ok": "#2d6a27",
"warning": "#7a5200",
"dangerFg": "#ffffff",
"leafHoverHi": "#93721d",
"leafHoverMid": "#937212",
"leafHoverLo": "#7a5d0d"
},
"room": null,
"lightRoom": null
},
"respicio": {
"name": "Respicio",
"label": "Reflection",