@umriss-ui/core 0.33.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/core 0.33.0
1
+ # @umriss-ui/core 0.34.0
2
2
 
3
3
  > React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.
4
4
 
@@ -18,10 +18,10 @@ The engineer on call at Quillmere works an open incident from this console: chec
18
18
  4. The alerts that belong to the incident stand in the list; acknowledging one records who knew when.
19
19
  5. Resolving asks for a cause and a summary, and a toast confirms it without covering the console.
20
20
 
21
- Built from: Breadcrumb, Badge, Tag, Stepper, Stat, Tabs, Menu, Modal, FormField, Select, Textarea, Checkbox, Toast, Line, AlarmList.
21
+ Built from: Breadcrumb, Badge, Tag, Stepper, Stat, Tabs, Menu, Modal, FormField, Select, Textarea, Checkbox, Toast, Line, Table.
22
22
 
23
23
  ```tsx
24
- import { useMemo, useState } from "react";
24
+ import { useState } from "react";
25
25
  import {
26
26
  Badge,
27
27
  Breadcrumb,
@@ -57,7 +57,7 @@ import {
57
57
  } from "@umriss-ui/core";
58
58
  import type { LimitSet } from "@umriss-ui/core";
59
59
  import { LimitLine, Tooltip, useChart } from "@umriss-ui/charts";
60
- import { AlarmList, alarmModel, useTableSelection } from "@umriss-ui/table";
60
+ import { useTable } from "@umriss-ui/table";
61
61
 
62
62
  /* Data from the operations world, written out here so the example runs on its own. */
63
63
  /** A small LCG - the same numbers on every computer. */
@@ -201,44 +201,31 @@ const INCIDENTS: readonly Incident[] = [
201
201
  { id: "INC-1041", title: "Invoices generated twice", service: "billing", severity: "SEV2", opened: at(12, 16, 10), acknowledged: at(12, 16, 18), resolved: at(12, 18, 40), assignee: "priya" },
202
202
  ];
203
203
 
204
- /** A kind of alert, shaped as `@umriss-ui/table`'s alarm list reads it. */
205
- interface AlertType {
206
- id: string;
207
- label: string;
208
- priority: "high" | "medium" | "low";
209
- }
210
-
211
- const ALERT_TYPES: readonly AlertType[] = [
212
- { id: "checkout-latency", label: "Checkout · p95 latency above 300 ms", priority: "high" },
213
- { id: "checkout-errors", label: "Checkout · error rate above 2\u00a0%", priority: "high" },
214
- { id: "webhooks-queue", label: "Webhooks · queue older than 5 min", priority: "medium" },
215
- { id: "search-latency", label: "Search · p95 latency above 250 ms", priority: "medium" },
216
- { id: "images-disk", label: "Image service · disk 85 % full", priority: "low" },
217
- { id: "reports-job", label: "Reporting · nightly job late", priority: "low" },
218
- ];
204
+ type Priority = "high" | "medium" | "low";
219
205
 
220
- /** One alert, shaped as `@umriss-ui/table`'s alarm list reads it. */
221
- type Alert = {
206
+ interface Alert {
222
207
  id: string;
223
- type: string;
224
- lifecycle: "active-unacknowledged" | "active-acknowledged" | "resolved-unacknowledged" | "resolved-acknowledged";
225
208
  raised: number;
226
- resolved?: number;
209
+ priority: Priority;
210
+ message: string;
211
+ state: "Active" | "Resolved";
227
212
  acknowledgedAt?: number;
228
- } & (
229
- | { availability?: "in-service" | "suppressed" | "disabled"; snooze?: undefined }
230
- | { availability: "snoozed"; snooze: { until: number; by: string } }
231
- );
213
+ }
214
+
215
+ const TONE = { high: "danger", medium: "warning", low: "neutral" } as const;
216
+ const RANK = { high: 0, medium: 1, low: 2 } as const;
217
+
218
+ /** Worst first: by priority, then what nobody has acknowledged, then the newest. */
219
+ const WORST_FIRST = [
220
+ { column: "priority", direction: "asc" },
221
+ { column: "acknowledged", direction: "asc" },
222
+ { column: "raised", direction: "desc" },
223
+ ] as const;
232
224
 
233
225
  /** The alerts as they stand at 10:30. */
234
226
  const ALERTS: readonly Alert[] = [
235
- { id: "a-1", type: "checkout-latency", lifecycle: "active-acknowledged", raised: at(17, 9, 41), acknowledgedAt: at(17, 9, 46) },
236
- { id: "a-2", type: "checkout-errors", lifecycle: "resolved-unacknowledged", raised: at(17, 9, 43), resolved: at(17, 10, 11) },
237
- { id: "a-3", type: "webhooks-queue", lifecycle: "active-acknowledged", raised: at(17, 7, 12), acknowledgedAt: at(17, 8, 2) },
238
- { id: "a-4", type: "search-latency", lifecycle: "active-unacknowledged", raised: at(17, 10, 24) },
239
- { id: "a-5", type: "search-latency", lifecycle: "resolved-acknowledged", raised: at(17, 8, 5), resolved: at(17, 8, 9), acknowledgedAt: at(17, 8, 6) },
240
- { id: "a-6", type: "images-disk", lifecycle: "active-unacknowledged", raised: at(17, 6, 0), availability: "snoozed", snooze: { until: at(17, 14), by: "Tomasz Nowak" } },
241
- { id: "a-7", type: "reports-job", lifecycle: "active-unacknowledged", raised: at(17, 4, 30), availability: "disabled" },
227
+ { id: "a-1", raised: at(17, 9, 41), priority: "high", message: "Checkout · p95 latency above 300 ms", state: "Active", acknowledgedAt: at(17, 9, 46) },
228
+ { id: "a-2", raised: at(17, 9, 43), priority: "high", message: "Checkout · error rate above 2\u00a0%", state: "Resolved" },
242
229
  ];
243
230
 
244
231
  const INCIDENT = INCIDENTS.find((one) => one.id === "INC-1048")!;
@@ -274,31 +261,22 @@ const STEPS = [
274
261
  { label: "Resolved" },
275
262
  ];
276
263
 
277
- /* The alerts of the services this incident touches. */
278
- const OWN = new Set(["checkout-latency", "checkout-errors"]);
279
-
280
264
  function Content() {
281
265
  const { toast } = useToast();
282
266
  const { Chart, XAxis, YAxis, Line } = useChart(TODAY);
283
- const [alerts, setAlerts] = useState<readonly Alert[]>(() => ALERTS.filter((one) => OWN.has(one.type)));
267
+ const [alerts, setAlerts] = useState<readonly Alert[]>(ALERTS);
284
268
  const [resolved, setResolved] = useState<number | null>(null);
285
269
  const [resolving, setResolving] = useState(false);
286
270
  const [cause, setCause] = useState("");
287
271
  const [summary, setSummary] = useState("");
288
272
  const [tried, setTried] = useState(false);
289
273
 
290
- const view = useMemo(() => alarmModel({ alarms: [...alerts], types: ALERT_TYPES, asOf: NOW }), [alerts]);
291
- const selection = useTableSelection(view.filtered.map((row) => row.id));
292
-
293
- const acknowledge = (ids: readonly string[]) => {
294
- setAlerts((before) =>
295
- before.map((one) =>
296
- ids.includes(one.id) && one.lifecycle.endsWith("-unacknowledged")
297
- ? { ...one, lifecycle: one.lifecycle.replace("-unacknowledged", "-acknowledged") as Alert["lifecycle"], acknowledgedAt: NOW }
298
- : one,
299
- ),
300
- );
301
- selection.clear();
274
+ const t = useTable(alerts, { rowKey: (a) => a.id, defaultSort: WORST_FIRST });
275
+ const { Table, Column } = t;
276
+
277
+ const acknowledge = () => {
278
+ setAlerts((before) => before.map((one) => (t.selection.selected.has(one.id) ? { ...one, acknowledgedAt: one.acknowledgedAt ?? NOW } : one)));
279
+ t.selection.clear();
302
280
  };
303
281
 
304
282
  const resolve = () => {
@@ -406,7 +384,26 @@ function Content() {
406
384
  </TabList>
407
385
  <TabPanel value="alerts">
408
386
  <div data-callout="4">
409
- <AlarmList view={view} selection={selection} density="compact" onAcknowledge={acknowledge} />
387
+ <Stack gap={2}>
388
+ <Table selectable ariaLabel="Alerts of the incident">
389
+ <Column value="raised" label="Raised">
390
+ {(raised) => time(raised)}
391
+ </Column>
392
+ <Column value="priority" label="Priority" sortValue={(priority) => RANK[priority]}>
393
+ {(priority) => <Badge tone={TONE[priority]}>{priority}</Badge>}
394
+ </Column>
395
+ <Column value="message" label="Alert" rowHeader />
396
+ <Column value="state" label="State" />
397
+ <Column id="acknowledged" label="Acknowledged" value={(a) => a.acknowledgedAt ?? 0}>
398
+ {(_, a) => (a.acknowledgedAt === undefined ? "No" : time(a.acknowledgedAt))}
399
+ </Column>
400
+ </Table>
401
+ <div>
402
+ <Button size="sm" disabled={t.selection.selected.size === 0} onClick={acknowledge}>
403
+ Acknowledge
404
+ </Button>
405
+ </div>
406
+ </Stack>
410
407
  </div>
411
408
  </TabPanel>
412
409
  <TabPanel value="earlier">
@@ -1605,18 +1602,19 @@ export default function SetUpATeam() {
1605
1602
  A line lead at Brenholt Tile Works keeps this control room open through the shift to see the kiln, its alarms, the plan and the OEE at once.
1606
1603
 
1607
1604
  1. The shift runs a minute per second; Pause stops it, and under reduced motion it starts stopped. The skip links reach each region by keyboard.
1608
- 2. The tile reads zone 3 against its limits and says the verdict in a word. The minute the kiln crosses its alarm limit is the same minute in the trend and in the alarm list.
1605
+ 2. The tile reads zone 3 against its limits and says the verdict in a word. The minute the kiln crosses its alarm limit is the same minute in the trend and in the alarm table.
1609
1606
  3. The trend draws the limits the tile reads, and its table view holds every reading for a screen reader.
1610
- 4. The alarm the kiln raised stands in the list; acknowledging it records who knew when and changes nothing else on the screen.
1607
+ 4. The alarm the kiln raised stands in the table; acknowledging it records who knew when and changes nothing else on the screen.
1611
1608
  5. Choosing a batch in the plan and opening its details shows what the kiln has fired of it so far, in a drawer.
1612
1609
  6. The OEE shows its working, down to the counts it is made of, so the scrap from the excursion can be traced back.
1613
1610
 
1614
- Built from: Stat, Card, ProgressBar, Drawer, Line, ControlChart, AlarmList, Schedule, Calculation.
1611
+ Built from: Stat, Card, ProgressBar, Drawer, Line, ControlChart, Table, Schedule, Calculation.
1615
1612
 
1616
1613
  ```tsx
1617
1614
  import { useEffect, useMemo, useState } from "react";
1618
1615
  import type { MouseEvent, ReactNode } from "react";
1619
1616
  import {
1617
+ Badge,
1620
1618
  Button,
1621
1619
  Card,
1622
1620
  CardBody,
@@ -1634,29 +1632,28 @@ import {
1634
1632
  } from "@umriss-ui/core";
1635
1633
  import type { FreshnessAges, LimitSet } from "@umriss-ui/core";
1636
1634
  import { ControlChart, DataTable, LimitBand, LimitLine, Tooltip, useChart } from "@umriss-ui/charts";
1637
- import { AlarmList, alarmModel, isHidden, useTableSelection } from "@umriss-ui/table";
1635
+ import { useTable } from "@umriss-ui/table";
1638
1636
  import { useSchedule } from "@umriss-ui/schedule";
1639
1637
  import type { Subtask, Task } from "@umriss-ui/schedule";
1640
1638
  import { Calculation, Difference, Given, Product, Quotient, Ref } from "@umriss-ui/calculation";
1641
1639
 
1642
1640
  /* Data from the plant world, written out here so the example runs on its own. */
1643
1641
 
1644
- /** An alarm's dead band, as `@umriss-ui/table` reads it. */
1642
+ /** An alarm's dead band. */
1645
1643
  interface ReturnBand {
1646
1644
  direction: "upper" | "lower";
1647
1645
  limit: number;
1648
1646
  returnTo: number;
1649
1647
  }
1650
1648
 
1651
- /** A kind of alarm, as `@umriss-ui/table` reads it. */
1649
+ /** A kind of alarm. */
1652
1650
  interface AlarmType {
1653
1651
  id: string;
1654
1652
  label: string;
1655
1653
  priority: "high" | "medium" | "low";
1656
- returnBand?: ReturnBand;
1657
1654
  }
1658
1655
 
1659
- /** One alarm, as `@umriss-ui/table` reads it. */
1656
+ /** One alarm. */
1660
1657
  interface Alarm {
1661
1658
  id: string;
1662
1659
  type: string;
@@ -1698,7 +1695,7 @@ const KILN_LIMITS: LimitSet = {
1698
1695
  the ideal cycle time of the OEE's performance. */
1699
1696
  const IDEAL_CYCLE_MINUTES = 0.25;
1700
1697
 
1701
- /** The kiln alarm's condition and its dead band, as the table's model reads them. */
1698
+ /** The kiln alarm's condition and its dead band. */
1702
1699
  const KILN_RETURN: ReturnBand = { direction: "upper", limit: KILN.alarm, returnTo: KILN.returnTo };
1703
1700
 
1704
1701
  /** What the four measuring points of the line can report. */
@@ -1707,9 +1704,6 @@ const ALARM_TYPES: readonly AlarmType[] = [
1707
1704
  id: "kiln-high",
1708
1705
  label: "Kiln K1 · zone 3 above alarm limit",
1709
1706
  priority: "high",
1710
- /* The dead band: back below `returnTo`, not merely below the limit, or a
1711
- reading riding on the limit would raise an alarm a minute. */
1712
- returnBand: KILN_RETURN,
1713
1707
  },
1714
1708
  { id: "exit-silent", label: "Kiln K1 · exit pyrometer sends nothing", priority: "medium" },
1715
1709
  { id: "belt-empty", label: "Kiln K1 · belt empty", priority: "medium" },
@@ -1871,8 +1865,9 @@ function spans(
1871
1865
  * The alarms of the shift as they stand at the minute: raised, resolved - and
1872
1866
  * acknowledged where the operator did, at the instant he did.
1873
1867
  *
1874
- * `start` is the instant the shift began; the alarms carry instants because the
1875
- * table's model does.
1868
+ * `start` is the instant the shift began; the alarms carry instants.
1869
+ * The dead band applies: an alarm clears only below `returnTo`, not merely
1870
+ * below the limit, or a reading riding on the limit would raise one a minute.
1876
1871
  */
1877
1872
  function alarmsAt(
1878
1873
  p: Plant,
@@ -2111,6 +2106,17 @@ function skipTo(event: MouseEvent<HTMLAnchorElement>, id: string) {
2111
2106
  region?.scrollIntoView({ block: "start" });
2112
2107
  }
2113
2108
 
2109
+ const clock = (t: number) => new Date(t).toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" });
2110
+
2111
+ const RANK = { high: 0, medium: 1, low: 2 } as const;
2112
+
2113
+ /** Worst first: by priority, then what nobody has acknowledged, then the newest. */
2114
+ const WORST_FIRST = [
2115
+ { column: "priority", direction: "asc" },
2116
+ { column: "acknowledged", direction: "asc" },
2117
+ { column: "raised", direction: "desc" },
2118
+ ] as const;
2119
+
2114
2120
  export default function ControlRoom() {
2115
2121
  const { Schedule, Lane, Subtasks } = useSchedule({ initialView: { domain: PLAN_DOMAIN } });
2116
2122
  const { minute, wall, running, setRunning } = usePlantMinute();
@@ -2118,7 +2124,6 @@ export default function ControlRoom() {
2118
2124
  const reading = SHIFT.readings[minute]!;
2119
2125
 
2120
2126
  const [acknowledged, setAcknowledged] = useState<ReadonlyMap<string, number>>(new Map());
2121
- const [hiddenOnly, setHiddenOnly] = useState(false);
2122
2127
  const [batch, setBatch] = useState<string | null>(() => inKiln(FROM)?.id ?? null);
2123
2128
  const [details, setDetails] = useState(false);
2124
2129
 
@@ -2134,13 +2139,22 @@ export default function ControlRoom() {
2134
2139
  const tileLength = useChart(measured);
2135
2140
  const alarms = useMemo(
2136
2141
  () =>
2137
- alarmModel(
2138
- { alarms: alarmsAt(SHIFT, minute, START, acknowledged), types: ALARM_TYPES, asOf: now },
2139
- hiddenOnly ? { filter: (row) => isHidden(row.availability) } : {},
2140
- ),
2141
- [minute, now, acknowledged, hiddenOnly],
2142
- );
2143
- const selection = useTableSelection(alarms.filtered.map((row) => row.id));
2142
+ alarmsAt(SHIFT, minute, START, acknowledged).map((one) => {
2143
+ const type = ALARM_TYPES.find((kind) => kind.id === one.type)!;
2144
+ const ended = one.resolved === undefined ? "Active" : "Resolved";
2145
+ return {
2146
+ id: one.id,
2147
+ raised: one.raised,
2148
+ priority: type.priority,
2149
+ message: type.label,
2150
+ state: one.availability === "suppressed" || one.availability === "disabled" ? `${ended}, ${one.availability}` : ended,
2151
+ acknowledgedAt: one.acknowledgedAt,
2152
+ };
2153
+ }),
2154
+ [minute, acknowledged],
2155
+ );
2156
+ const t = useTable(alarms, { rowKey: (a) => a.id, defaultSort: WORST_FIRST });
2157
+ const { Table, Column } = t;
2144
2158
 
2145
2159
  const count = countAt(SHIFT, minute);
2146
2160
  const oee = (IDEAL_CYCLE_MINUTES * count.good) / count.planned;
@@ -2226,17 +2240,33 @@ export default function ControlRoom() {
2226
2240
  </Region>
2227
2241
 
2228
2242
  <Region id="room-alarms" title="Alarms" quiet callout="4">
2229
- <AlarmList
2230
- view={alarms}
2231
- selection={selection}
2232
- density="compact"
2233
- hiddenOnly={hiddenOnly}
2234
- onHiddenOnlyChange={setHiddenOnly}
2235
- onAcknowledge={(ids) => {
2236
- setAcknowledged((before) => new Map([...before, ...ids.map((id) => [id, now] as const)]));
2237
- selection.clear();
2238
- }}
2239
- />
2243
+ <Stack gap={2}>
2244
+ <Table selectable ariaLabel="Alarms">
2245
+ <Column value="raised" label="Raised">
2246
+ {(raised) => clock(raised)}
2247
+ </Column>
2248
+ <Column value="priority" label="Priority" sortValue={(priority) => RANK[priority]}>
2249
+ {(priority) => <Badge tone={priority === "high" ? "danger" : priority === "medium" ? "warning" : "neutral"}>{priority}</Badge>}
2250
+ </Column>
2251
+ <Column value="message" label="Alarm" rowHeader />
2252
+ <Column value="state" label="State" />
2253
+ <Column id="acknowledged" label="Acknowledged" value={(a) => a.acknowledgedAt ?? 0}>
2254
+ {(_, a) => (a.acknowledgedAt === undefined ? "No" : clock(a.acknowledgedAt))}
2255
+ </Column>
2256
+ </Table>
2257
+ <div>
2258
+ <Button
2259
+ size="sm"
2260
+ disabled={t.selection.selected.size === 0}
2261
+ onClick={() => {
2262
+ setAcknowledged((before) => new Map([...before, ...[...t.selection.selected].map((id) => [String(id), now] as const)]));
2263
+ t.selection.clear();
2264
+ }}
2265
+ >
2266
+ Acknowledge
2267
+ </Button>
2268
+ </div>
2269
+ </Stack>
2240
2270
  </Region>
2241
2271
 
2242
2272
  <Region
@@ -2548,7 +2578,7 @@ The keys of [Button](#/button/keyboard-button), [Menu](#/menu/keyboard-menu) and
2548
2578
 
2549
2579
  | Prop | Type | Default | Description |
2550
2580
  |---|---|---|---|
2551
- | `density` | [`Density`](#type-Density)<br>`"comfortable" \| "compact"` | none - a component keeps its own density | The default for the `density` of every component that reads it with `useDensityFor` - in `@umriss-ui/table` `Table` and `AlarmList`, in `@umriss-ui/calculation` `Calculation` ("comfortable" means "regular").<br>Shown in: [Set up an application](#/umrissprovider/everything-at-once) |
2581
+ | `density` | [`Density`](#type-Density)<br>`"comfortable" \| "compact"` | none - a component keeps its own density | The default for the `density` of every component that reads it with `useDensityFor` - in `@umriss-ui/table` `Table`, in `@umriss-ui/calculation` `Calculation` ("comfortable" means "regular").<br>Shown in: [Set up an application](#/umrissprovider/everything-at-once) |
2552
2582
  | `portalTarget` | [`PortalTarget`](#type-PortalTarget) | `null` | Where overlays portal to. A function is evaluated on every opening - a target that only enters the tree later cannot be given otherwise; `null` means "as before". The callers' own rules take precedence: the popover seam portals into the nearest `<dialog>` ancestor, because a portal at the body does not reach the top layer.<br>Shown in: [Open overlays inside a full-screen panel](#/umrissprovider/portal-target), [Set up an application](#/umrissprovider/everything-at-once) |
2553
2583
  | `toast` | [`ToastConfig`](#type-ToastConfig) | — | The setting for toasts: the display duration where the individual toast names none, where they stand, and how many stand at once.<br>Shown in: [At the root](#/umrissprovider/at-the-root), [Set up an application](#/umrissprovider/everything-at-once), [Where they stand (Toast)](#/toast/where-they-stand) and 1 more |
2554
2584
  | `language` | [`LanguageOptions`](#/language/type-LanguageOptions) | none - the surrounding language holds, English at the root | Formats and wording, entry by entry - see [Language](#/language).<br>Shown in: [Set up an application](#/umrissprovider/everything-at-once) |
@@ -2631,7 +2661,6 @@ import { Badge, Button, Card, CardBody, CardHeader, Checkbox, Link, Stack, Switc
2631
2661
  :root {
2632
2662
  --u-color-accent: light-dark(#4338ca, #818cf8);
2633
2663
  --u-color-accent-hover: light-dark(#3730a3, #a5b4fc);
2634
- --u-color-accent-active: light-dark(#312e81, #6366f1);
2635
2664
  --u-color-accent-subtle: light-dark(#eef0fb, #1e1f3d);
2636
2665
  --u-color-accent-subtle-pressed: light-dark(#dfe2f7, #282a52);
2637
2666
  --u-color-accent-text: light-dark(#4338ca, #a5b4fc);
@@ -2643,7 +2672,6 @@ import { Badge, Button, Card, CardBody, CardHeader, Checkbox, Link, Stack, Switc
2643
2672
  const INDIGO = {
2644
2673
  "--u-color-accent": "light-dark(#4338ca, #818cf8)",
2645
2674
  "--u-color-accent-hover": "light-dark(#3730a3, #a5b4fc)",
2646
- "--u-color-accent-active": "light-dark(#312e81, #6366f1)",
2647
2675
  "--u-color-accent-subtle": "light-dark(#eef0fb, #1e1f3d)",
2648
2676
  "--u-color-accent-subtle-pressed": "light-dark(#dfe2f7, #282a52)",
2649
2677
  "--u-color-accent-text": "light-dark(#4338ca, #a5b4fc)",
@@ -2770,7 +2798,7 @@ Every token the components draw with, grouped as the stylesheet groups them. A s
2770
2798
  | `--u-color-bg` | `#fafafa` | `#0f0f10` | — |
2771
2799
  | `--u-color-surface` | `#ffffff` | `#161618` | — |
2772
2800
  | `--u-color-surface-sunken` | `#f4f4f5` | `#1e1e21` | — |
2773
- | `--u-color-surface-pressed` | `#e9e9eb` | `#28282c` | The pressed step of a quiet key: what sinks to the sunken surface under the pointer sinks once more while it is pressed (the interaction-state canon, visuelle-wertigkeit 04). The three `-pressed` surfaces exist because the vocabulary had a hover for each ground and nothing stronger. |
2801
+ | `--u-color-surface-pressed` | `#e9e9eb` | `#28282c` | The pressed step of a quiet key: what sinks to the sunken surface under the pointer sinks once more while it is pressed (the interaction-state canon). The three `-pressed` surfaces exist because a hover for each ground needs something stronger. |
2774
2802
  | `--u-color-text` | `#171717` | `#ededed` | — |
2775
2803
  | `--u-color-text-secondary` | `#565656` | `#a5a5ab` | — |
2776
2804
  | `--u-color-text-muted` | `#8b8b8b` | `#77777e` | — |
@@ -2784,7 +2812,7 @@ Every token the components draw with, grouped as the stylesheet groups them. A s
2784
2812
  | `--u-edge` | `0 0 0 1px var(`[--u-edge-color](#token-u-edge-color)`)` | same | — |
2785
2813
  | `--u-edge-strong` | `0 0 0 1px var(`[--u-edge-color-strong](#token-u-edge-color-strong)`)` | same | — |
2786
2814
  | `--u-hairline` | `rgba(23, 23, 23, 0.06)` | `rgba(255, 255, 255, 0.07)` | inner dividing lines |
2787
- | `--u-color-edge-hover` | `color-mix(in srgb, var(`[--u-color-text](#token-u-color-text)`) 30%, transparent)` | same | The edge of a field under the pointer. It stood seven times as the same mixture across the modules, and twice as muted text beside them. |
2815
+ | `--u-color-edge-hover` | `color-mix(in srgb, var(`[--u-color-text](#token-u-color-text)`) 30%, transparent)` | same | The edge of a field under the pointer. |
2788
2816
  | `--u-hairline-strong` | `rgba(23, 23, 23, 0.12)` | `rgba(255, 255, 255, 0.14)` | e.g. under table heads |
2789
2817
 
2790
2818
  ##### Ink as interaction (the primary button)
@@ -2802,12 +2830,11 @@ Every token the components draw with, grouped as the stylesheet groups them. A s
2802
2830
  |---|---|---|---|
2803
2831
  | `--u-color-accent` | `#0e7d72` | `#17a292` | — |
2804
2832
  | `--u-color-accent-hover` | `#0a685f` | `#1cb5a3` | — |
2805
- | `--u-color-accent-active` | `#085a52` | `#128d7f` | — |
2806
2833
  | `--u-color-accent-subtle` | `#e9f4f2` | `#142e2b` | — |
2807
2834
  | `--u-color-accent-subtle-pressed` | `#d5e9e6` | `#1b3d39` | — |
2808
2835
  | `--u-color-accent-text` | `#0b6a61` | `#4cc4b5` | — |
2809
2836
  | `--u-color-on-accent` | `#ffffff` | `#072522` | — |
2810
- | `--u-color-on-danger` | `#ffffff` | `#2b0f0d` | Type on the danger surface - it stood as #ffffff inside the button, and so slipped past every check (library-audit 07). Dark: White measures only 3.68:1 on the lighter danger surface. The polarity turns as it does for the accent: dark type on a light ground. |
2837
+ | `--u-color-on-danger` | `#ffffff` | `#2b0f0d` | Type on the danger surface, a token so that a contrast check sees it. Dark: White measures only 3.68:1 on the lighter danger surface. The polarity turns as it does for the accent: dark type on a light ground. |
2811
2838
 
2812
2839
  ##### Semantics (muted)
2813
2840
 
@@ -2815,7 +2842,7 @@ Every token the components draw with, grouped as the stylesheet groups them. A s
2815
2842
  |---|---|---|---|
2816
2843
  | `--u-color-success` | `#217a4b` | `#4fae7c` | — |
2817
2844
  | `--u-color-success-subtle` | `#e8f2ec` | `#16241d` | — |
2818
- | `--u-color-warning` | `#8a5c00` | `#d0a24d` | Darkened from #9a6700: on its own pale surface the old value reached only 4.24:1 and so missed the 4.5:1 for normal text. Found by the accessibility check, once the demo finally ran with tokens (see demo/main.tsx). Now 4.97:1. |
2845
+ | `--u-color-warning` | `#8a5c00` | `#d0a24d` | Darkened from #9a6700, which reached only 4.24:1 on its own pale surface and so missed the 4.5:1 for normal text; this reaches 4.97:1. |
2819
2846
  | `--u-color-warning-subtle` | `#f7efdb` | `#2b2415` | — |
2820
2847
  | `--u-color-danger` | `#b13636` | `#d0655c` | — |
2821
2848
  | `--u-color-danger-hover` | `#9a2c2c` | `#da7a72` | — |
@@ -2826,7 +2853,7 @@ Every token the components draw with, grouped as the stylesheet groups them. A s
2826
2853
 
2827
2854
  ##### Focus: a crisp accent edge, two pixels, no glow
2828
2855
 
2829
- One look for every component. It was a soft 4px glow at 20 %, and on fields an accent edge inside it: the two read as a second, shadowy border. On a field the ring lies where its edge lies, so the edge seems to grow. `-danger` for an invalid field, which keeps its colour.
2856
+ One look for every component. A soft glow would read as a second, shadowy border. On a field the ring lies where its edge lies, so the edge seems to grow. `-danger` for an invalid field, which keeps its colour.
2830
2857
 
2831
2858
  | Token | Light | Dark | Description |
2832
2859
  |---|---|---|---|
@@ -2845,7 +2872,7 @@ One look for every component. It was a soft 4px glow at 20 %, and on fields an a
2845
2872
  | `--u-text-lg` | `1rem` | same | — |
2846
2873
  | `--u-text-xl` | `1.1875rem` | same | — |
2847
2874
  | `--u-text-2xl` | `1.5rem` | same | — |
2848
- | `--u-text-mono` | `0.75rem` | same | Figures in Geist Mono inside a control or a cell, beside --u-text-sm set in Sans. The mono cut runs wider and taller, so one step down reads as the same size. It stood as 0.75rem in eight places - the date picker's value, days and time fields, the numeric field and input, the table's numeric cells - which is a role, not a coincidence (visuelle-wertigkeit 01). |
2875
+ | `--u-text-mono` | `0.75rem` | same | Figures in Geist Mono inside a control or a cell, beside --u-text-sm set in Sans. The mono cut runs wider and taller, so one step down reads as the same size. It serves as a role: the date picker's value, days and time fields, the numeric field and input, the table's numeric cells. |
2849
2876
  | `--u-leading-none` | `1` | same | A box as tall as its type: a badge, a tag, a count, a glyph. The height comes from the control or the padding, and the line adds no leading. |
2850
2877
  | `--u-leading-tight` | `1.3` | same | — |
2851
2878
  | `--u-leading-normal` | `1.5` | same | — |
@@ -2882,24 +2909,7 @@ One look for every component. It was a soft 4px glow at 20 %, and on fields an a
2882
2909
  | `--u-icon-size-sm` | `12px` | same | — |
2883
2910
  | `--u-button-padding` | `10px` | same | The room left and right of a button's label, one step per control height. What stands beside a quiet button and has to align with its word hangs out by exactly this much (the date pickers' foot, the MultiSelect's quick keys) - so they read it here instead of repeating the number. |
2884
2911
  | `--u-button-padding-sm` | `6px` | same | — |
2885
-
2886
- ##### Dock (floating-dock)
2887
-
2888
- A dock's measurements stand here and not only in the module, because the component READS THEM BACK at runtime: whether a resting place fits is a calculation over exactly these values (Dock/place.ts), and a second copy of them in JavaScript would be one that stops being true at some point. Whoever changes them here also changes how many tools it takes for a side edge to be refused - and that is as it should be.
2889
-
2890
- The travel of the grip is the knob to turn when the gesture feels lifeless: [ADR-0013](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0013-a-dock-snaps-it-does-not-follow.md) lets the grip follow the pointer and not the dock, and if that looks broken rather than like resistance, this value grows - the dock does not become movable.
2891
-
2892
- | Token | Light | Dark | Description |
2893
- |---|---|---|---|
2894
- | `--u-dock-tool` | `30px` | same | edge length of one tool |
2895
- | `--u-dock-grip` | `18px` | same | extent of the grip along the strip |
2896
- | `--u-dock-gap` | `2px` | same | gap between two tools |
2897
- | `--u-dock-padding` | `5px` | same | padding at the ends |
2898
- | `--u-dock-margin` | `16px` | same | air between strip and host edge |
2899
- | `--u-dock-grip-travel` | `6px` | same | how far the grip may follow the pointer |
2900
- | `--u-dock-refusal-surface` | `color-mix(in srgb, var(`[--u-color-material-fallback](#token-u-color-material-fallback)`) 55%, transparent)` | same | The refusal: the outline the dock would have at a place it does not fit. The same material, half as present - no warning colour, because nothing has gone wrong here. The duration deliberately does NOT stand in the `--u-duration-*` scale and therefore does not fall to zero under `prefers-reduced-motion`: it measures how long a statement stays readable, not how long a movement lasts. Whoever switches motion off does not mean to switch a refusal off. It is needed only for the keyboard - with the pointer the refusal ends as soon as it leaves the zone. |
2901
- | `--u-dock-refusal-duration` | `1400ms` | same | — |
2902
- | `--u-drawer-width` | `400px` | same | The width of a drawer (core-foundations 03). A token rather than a size prop: a detail beside a process picture wants one width across an application, and one drawer that needs another sets it in its `style`. |
2912
+ | `--u-drawer-width` | `400px` | same | The width of a drawer A token rather than a size prop: a detail beside a process picture wants one width across an application, and one drawer that needs another sets it in its `style`. |
2903
2913
 
2904
2914
  ##### Toast (toast-inset-tokens)
2905
2915
 
@@ -2918,7 +2928,7 @@ Card: edge, contact with the ground, soft depth. Overlay: edge, near shadow, dep
2918
2928
  |---|---|---|---|
2919
2929
  | `--u-shadow-card` | `var(`[--u-edge](#token-u-edge)`), 0 1px 2px rgba(23, 23, 23, 0.04), 0 8px 24px -12px rgba(23, 23, 23, 0.14)` | `var(`[--u-edge](#token-u-edge)`), 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6)` | — |
2920
2930
  | `--u-shadow-overlay` | `var(`[--u-edge](#token-u-edge)`), 0 4px 8px rgba(23, 23, 23, 0.06), 0 24px 48px -16px rgba(23, 23, 23, 0.24)` | `var(`[--u-edge](#token-u-edge)`), 0 4px 8px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.7)` | — |
2921
- | `--u-shadow-sticky` | `rgba(23, 23, 23, 0.09)` | `rgba(0, 0, 0, 0.5)` | The shadow a sticking part casts on what scrolls under it - a pinned column block, a stuck group header - as the colour its gradient starts from. Dark is black at a higher opacity: the text colour at 9 % read as a glow on the dark ground (table-column-pinning 03). |
2931
+ | `--u-shadow-sticky` | `rgba(23, 23, 23, 0.09)` | `rgba(0, 0, 0, 0.5)` | The shadow a sticking part casts on what scrolls under it - a pinned column block, a stuck group header - as the colour its gradient starts from. Dark is black at a higher opacity: the text colour at 9 % read as a glow on the dark ground. |
2922
2932
 
2923
2933
  ##### Translucent material and scrim ([ADR-0012](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0012-a-translucent-material-needs-a-floor.md))
2924
2934
 
@@ -2928,11 +2938,11 @@ The alpha value is a FLOOR and not a matter of taste: the opaque colour carries
2928
2938
 
2929
2939
  Three tokens, because there are three jobs: - `-fallback` is the opaque colour underneath. It is really painted where `backdrop-filter` is missing or switched off, and it is what the contrast test checks (see tests-unit/contrast.test.ts). - `--u-color-material` is the same colour with the floor alpha. - `--u-material-blur` softens what shows through. Decoration under the same rule: the blur does not make the type legible.
2930
2940
 
2931
- The scrim dims the page behind an overlay. Until now it stood as a `color-mix` in the demo - that is, in exactly the place where nobody finds a token later. Dark gets its own values, chosen by eye: inverting a light surface lands wrong, because light type over a dark blur tolerates far less transparency than the other way round.
2941
+ The scrim dims the page behind an overlay. Dark gets its own values, chosen by eye: inverting a light surface lands wrong, because light type over a dark blur tolerates far less transparency than the other way round.
2932
2942
 
2933
2943
  | Token | Light | Dark | Description |
2934
2944
  |---|---|---|---|
2935
- | `--u-color-material-fallback` | `#fdfdfe` | `#1f1f23` | The numbers were looked at, not calculated. The first attempt (scrim 0.38, alpha 0.78) was wrong in the light theme: the scrim pressed the whole page to a middling grey, the panel landed above it at around #e9e9e9, and instead of a window above the application there stood a grey slab within it. It was legible - the floor held - but it looked like a fault. Now the scrim dims less and the panel covers more, and the distance between the two carries the step. The dark theme needed no such correction: there the lightness already separates them. Dark: Chosen by eye, not derived from the light theme: the alpha floor lies higher here, because light type over a dark blur tolerates markedly less transparency. |
2945
+ | `--u-color-material-fallback` | `#fdfdfe` | `#1f1f23` | The numbers were looked at, not calculated. In the light theme the scrim must dim less and the panel cover more: a scrim that presses the whole page to a middling grey leaves the panel a grey slab within it, legible but looking like a fault. The distance between the two carries the step. The dark theme needs no such correction: there the lightness already separates them. Dark: Chosen by eye, not derived from the light theme: the alpha floor lies higher here, because light type over a dark blur tolerates markedly less transparency. |
2936
2946
  | `--u-color-material` | `rgba(253, 253, 254, 0.86)` | `rgba(31, 31, 35, 0.82)` | — |
2937
2947
  | `--u-material-blur` | `24px` | same | — |
2938
2948
  | `--u-color-scrim` | `rgba(23, 23, 23, 0.30)` | `rgba(0, 0, 0, 0.60)` | — |
@@ -2960,7 +2970,7 @@ Continuous process. A spinner or a shimmer has no start and no end; it runs stea
2960
2970
  | `--u-duration-draw` | `320ms` | same | a stroke drawn slowly enough to watch: the tick **0ms under reduced motion.** |
2961
2971
  | `--u-delay-draw` | `60ms` | same | the box fills first, then the tick is drawn **0ms under reduced motion.** |
2962
2972
  | `--u-delay-stale` | `200ms` | same | content being reloaded dims only after this: a quick answer never flickers |
2963
- | `--u-duration-exit-fast` | `100ms` | same | Exits. They stood twice - as a number in the code waiting for the end, and in the stylesheet drawing the movement - and for the toast the two had drifted ten milliseconds apart. The code reads these tokens (library-audit 07). a panel or a tooltip goes **0ms under reduced motion.** |
2973
+ | `--u-duration-exit-fast` | `100ms` | same | Exits. The stylesheet drawing the movement and the code waiting for its end read the same tokens, so the two cannot drift apart. a panel or a tooltip goes **0ms under reduced motion.** |
2964
2974
  | `--u-duration-exit` | `160ms` | same | a sheet takes its leave: modal **0ms under reduced motion.** |
2965
2975
  | `--u-duration-exit-collapse` | `200ms` | same | a message goes and its place closes **0ms under reduced motion.** |
2966
2976
  | `--u-duration-spin` | `700ms` | same | Continuous processes. They do NOT fall to zero under reduced motion - a spinner at 0ms says nothing; each module slows or stops its own. |
@@ -2971,7 +2981,7 @@ Continuous process. A spinner or a shimmer has no start and no end; it runs stea
2971
2981
 
2972
2982
  ##### Stacking order
2973
2983
 
2974
- Scattered literals stood here before (900 for panels, 1000 toast, 1100 tooltip), which is how a menu inside a modal ended up behind the dialog. Popovers now portal into the nearest <dialog> ancestor, and this scale orders the rest.
2984
+ Popovers portal into the nearest <dialog> ancestor, and this scale orders the rest.
2975
2985
 
2976
2986
  | Token | Light | Dark | Description |
2977
2987
  |---|---|---|---|
@@ -3797,9 +3807,9 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
3797
3807
  | `selectNone` | None | Keine | — |
3798
3808
  | `invertSelection` | Invert | Umkehren | — |
3799
3809
  | `nothingSelected` | Nothing selected | Nichts ausgewählt | — |
3800
- | `removeSelectedValue(beschriftung)` | `` `Remove ${beschriftung}` `` | `` `${beschriftung} entfernen` `` | The cross on a selected value in the trigger. |
3810
+ | `removeSelectedValue(beschriftung)` | `` `Remove ${beschriftung}` `` | `` `${label} entfernen` `` | The cross on a selected value in the trigger. |
3801
3811
  | `manageMoreSelected(count)` | `` `Manage all ${count} selected` `` | `` `Alle ${count} Gewählten verwalten` `` | The "+N" counter in the trigger. |
3802
- | `multiSelectSummary(gewaehlt, total)` | `` `${gewaehlt} / ${total}` `` | `` `${gewaehlt} / ${total}` `` | The summary in the panel: "3 / 12". The sentence structure belongs to the language, even where it is only a slash here. |
3812
+ | `multiSelectSummary(gewaehlt, total)` | `` `${gewaehlt} / ${total}` `` | `` `${selected} / ${total}` `` | The summary in the panel: "3 / 12". The sentence structure belongs to the language, even where it is only a slash here. |
3803
3813
  | `optionCount(count)` | `` (count === 1 ? "1 option" : `${count} options`) `` | `` (count === 1 ? "1 Option" : `${count} Optionen`) `` | How many options stand, when a list opens or its filter changes; never zero - an empty list says its own empty text. Named, like the three below, after the moment it is spoken in: an announcement labels no element. |
3804
3814
  | `optionActive(label, state)` | `[label, group, selected && "selected", disabled && "unavailable"].filter(Boolean).join(", ")` | `[label, group, selected && "ausgewählt", disabled && "nicht verfügbar"].filter(Boolean).join(", ")` | The option the keys moved onto, with what VoiceOver leaves out. |
3805
3815
  | `optionAdded(label)` | `` `${label} added` `` | `` `${label} hinzugefügt` `` | A value the multi-select took or gave away where no checkbox had the focus to say it - Enter in the search, a chip, Backspace. |
@@ -3821,16 +3831,6 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
3821
3831
  | `paletteHintClose` | close | schließen | — |
3822
3832
  | `paletteKeyEsc` | Esc | Esc | The legend on the Escape key. The arrows and the return key are glyphs and therefore do not stand here; "Esc" is a word and is called something else elsewhere. |
3823
3833
 
3824
- ##### Dock
3825
-
3826
- | Key | English | German | Description |
3827
- |---|---|---|---|
3828
- | `dockTools` | Tools | Werkzeuge | Accessible name of a dock's tools. |
3829
- | `dockGrip` | Move dock | Dock verschieben | Accessible name of the grip - it says what it does, not what it is. |
3830
- | `dockPlace(place)` | `({ top: "top", right: "right", bottom: "bottom", left: "left" })[place]` | `({ top: "oben", right: "rechts", bottom: "unten", left: "links" })[place]` | The four resting places, named. The keys are the `DockPlace` type's, and a register translates them: the German one answers "oben" where the English one answers "top". |
3831
- | `dockPlaced(place)` | `` `Dock at the ${place}` `` | `` `Dock ${place}` `` | What the screen reader hears once the dock has taken a place. |
3832
- | `dockNoPlace(place)` | `` `No room for the dock on the ${place}` `` | `` `Für das Dock ist ${place} kein Platz` `` | And what it hears when a place has refused. A refusal is not a fault: a wide, flat host with no room for a standing dock is not a mistake anyone made. |
3833
-
3834
3834
  ##### Date and time
3835
3835
 
3836
3836
  | Key | English | German | Description |
@@ -3866,23 +3866,23 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
3866
3866
  | `endHour` | End hour | Endstunde | — |
3867
3867
  | `endMinute` | End minute | Endminute | — |
3868
3868
  | `endSecond` | End second | Endsekunde | — |
3869
- | `timeFieldIncrease(feld)` | `` `Increase ${feld}` `` | `` `${feld} erhöhen` `` | Stepper buttons of a time field; the label comes from above. |
3870
- | `timeFieldDecrease(feld)` | `` `Decrease ${feld}` `` | `` `${feld} verringern` `` | — |
3869
+ | `timeFieldIncrease(feld)` | `` `Increase ${feld}` `` | `` `${field} erhöhen` `` | Stepper buttons of a time field; the label comes from above. |
3870
+ | `timeFieldDecrease(feld)` | `` `Decrease ${feld}` `` | `` `${field} verringern` `` | — |
3871
3871
  | `chooseStartDate` | Select start date | Startdatum wählen | Footer of the range panels. |
3872
3872
  | `chooseEndDate` | Select end date – backwards is allowed | Enddatum wählen – rückwärts ist erlaubt | — |
3873
3873
  | `days(count)` | `` `${count} ${count === 1 ? "day" : "days"}` `` | `` `${count} ${count === 1 ? "Tag" : "Tage"}` `` | "3 days" or "1 day" - the plural belongs to the language. |
3874
3874
  | `daysSelected(count)` | `` `${count} ${count === 1 ? "day" : "days"} selected` `` | `` `${count} ${count === 1 ? "Tag" : "Tage"} gewählt` `` | "3 days selected" |
3875
3875
  | `rangePreview(from, to, count)` | `` `${from} – ${to} · ${count} ${count === 1 ? "day" : "days"}` `` | `` `${from} – ${to}\u2009·\u2009${count} ${count === 1 ? "Tag" : "Tage"}` `` | "17.03. – 19.03. · 3 days" while dragging; the dates come from the formats. |
3876
3876
  | `daysAllDay(count)` | `` `${count} ${count === 1 ? "day" : "days"} (all day)` `` | `` `${count} ${count === 1 ? "Tag" : "Tage"} (ganztägig)` `` | "3 days (all day)" |
3877
- | `duration(teile)` | `` `Duration: ${teile.join(" ")}` `` | `` `Dauer: ${teile.join(" ")}` `` | "Duration: 1 day 2 hrs 30 min" |
3877
+ | `duration(teile)` | `` `Duration: ${teile.join(" ")}` `` | `` `Dauer: ${parts.join(" ")}` `` | "Duration: 1 day 2 hrs 30 min" |
3878
3878
  | `hoursShort(count)` | `` `${count} ${count === 1 ? "hr" : "hrs"}` `` | `` `${count} Std` `` | — |
3879
3879
  | `minutesShort(count)` | `` `${count} min` `` | `` `${count} Min` `` | — |
3880
3880
  | `timeMissingHint(timeOfDay)` | `` `This time does not exist on this day (start of daylight saving time). ${timeOfDay} is used instead.` `` | `` `Diese Uhrzeit existiert an diesem Tag nicht (Beginn der Sommerzeit). Es wird ${timeOfDay} Uhr verwendet.` `` | Daylight-saving change: the hour that does not exist. |
3881
3881
  | `timeMissingHintSide(side, timeOfDay)` | `` `${side}: This time does not exist on this day (start of daylight saving time). ${timeOfDay} is used instead.` `` | `` `${side}: Diese Uhrzeit existiert an diesem Tag nicht (Beginn der Sommerzeit). Es wird ${timeOfDay} Uhr verwendet.` `` | The same, with the side put in front ("From"/"To"). |
3882
3882
  | `timeAmbiguousHint` | This time occurs twice on this day (end of daylight saving time): | Diese Uhrzeit kommt an diesem Tag zweimal vor (Ende der Sommerzeit): | Daylight-saving change: the hour that occurs twice. |
3883
3883
  | `timeAmbiguousHintSide(side)` | `` `${side}: This time occurs twice on this day (end of daylight saving time):` `` | `` `${side}: Diese Uhrzeit kommt an diesem Tag zweimal vor (Ende der Sommerzeit):` `` | — |
3884
- | `timeEarlier(versatz)` | `` `Earlier (${versatz})` `` | `` `Frühere (${versatz})` `` | — |
3885
- | `timeLater(versatz)` | `` `Later (${versatz})` `` | `` `Spätere (${versatz})` `` | — |
3884
+ | `timeEarlier(versatz)` | `` `Earlier (${versatz})` `` | `` `Frühere (${offset})` `` | — |
3885
+ | `timeLater(versatz)` | `` `Later (${versatz})` `` | `` `Spätere (${offset})` `` | — |
3886
3886
  | `weekdays` | `["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]` | `["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"]` | The calendar's weekday headers, starting at Monday. |
3887
3887
  | `presets.today` | Today | Heute | The quick-select ranges, in the order of PRESET_LABELS. |
3888
3888
  | `presets.yesterday` | Yesterday | Gestern | The quick-select ranges, in the order of PRESET_LABELS. |
@@ -3935,7 +3935,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
3935
3935
  | `expandRowNamed(row)` | `` `Expand ${row}` `` | `` `${row} aufklappen` `` | The expand button, named after the row header. |
3936
3936
  | `collapseRowNamed(row)` | `` `Collapse ${row}` `` | `` `${row} zuklappen` `` | — |
3937
3937
  | `rowActions` | Actions | Aktionen | Header of the actions column - for the screen reader, not visible. |
3938
- | `rowAction(aktion, row)` | `` `${aktion}: ${row}` `` | `` `${aktion}: ${row}` `` | One action on a row: "Open: A-2041". |
3938
+ | `rowAction(aktion, row)` | `` `${aktion}: ${row}` `` | `` `${action}: ${row}` `` | One action on a row: "Open: A-2041". |
3939
3939
  | `rowActionsMenu(row)` | `` `Actions: ${row}` `` | `` `Aktionen: ${row}` `` | The menu holding a row's actions. |
3940
3940
  | `editCell(column, row)` | `` `Edit ${column}: ${row}` `` | `` `${column} bearbeiten: ${row}` `` | The editor of a cell in a table's grid mode, named after its column and its row: "Edit Budget: Marketing". |
3941
3941
  | `newRow` | New row | Neue Zeile | The button above a grid that opens an empty row to fill in, and the name of that row while it has none ([ADR-0036](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0036-a-grid-edits-on-the-first-click-and-saves-rows-on-purpose.md)). |
@@ -3984,8 +3984,8 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
3984
3984
  | `treeSearchPlaceholder` | Search the tree … | Im Baum suchen … | — |
3985
3985
  | `treeNoMatches` | Nothing matches the search. | Nichts passt zur Suche. | — |
3986
3986
  | `conditions` | Active filters | Aktive Filter | Group name of the conditions in the table toolbar. |
3987
- | `removeConditionNamed(label, value)` | `` `Remove ${label}: ${value}` `` | `` `${label}: ${wert} entfernen` `` | The button that removes a condition: "Remove Region: EU, US". |
3988
- | `editConditionNamed(label, value)` | `` `Edit ${label}: ${value}` `` | `` `${label}: ${wert} bearbeiten` `` | The condition itself, which opens its filter: "Edit Region: EU, US". |
3987
+ | `removeConditionNamed(label, value)` | `` `Remove ${label}: ${value}` `` | `` `${label}: ${value} entfernen` `` | The button that removes a condition: "Remove Region: EU, US". |
3988
+ | `editConditionNamed(label, value)` | `` `Edit ${label}: ${value}` `` | `` `${label}: ${value} bearbeiten` `` | The condition itself, which opens its filter: "Edit Region: EU, US". |
3989
3989
  | `moreValues(count, formatted)` | `` `+${formatted}` `` | `` `+${formatted}` `` | The remainder of a long list in a condition: "+1". |
3990
3990
  | `filterFrom` | From | Von | The two fields of the range filter. |
3991
3991
  | `filterTo` | To | Bis | — |
@@ -4006,54 +4006,13 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
4006
4006
  | `verdictUnknown` | No value | Kein Wert | — |
4007
4007
  | `statAbsentValue` | — | — | What stands in the value field when there is no value. No dash, no zero: either could be a value. |
4008
4008
  | `target` | Target | Ziel | — |
4009
- | `deviationAbove(betrag)` | `` `${betrag} above target` `` | `` `${betrag} über Ziel` `` | "3,2 above target" or "1,5 below target" - the amount comes from the formats, which is where the comma is from. |
4010
- | `deviationBelow(betrag)` | `` `${betrag} below target` `` | `` `${betrag} unter Ziel` `` | — |
4009
+ | `deviationAbove(betrag)` | `` `${betrag} above target` `` | `` `${amount} über Ziel` `` | "3,2 above target" or "1,5 below target" - the amount comes from the formats, which is where the comma is from. |
4010
+ | `deviationBelow(betrag)` | `` `${betrag} below target` `` | `` `${amount} unter Ziel` `` | — |
4011
4011
  | `deviationOnTarget` | on target | auf Ziel | — |
4012
4012
  | `freshnessFresh` | Fresh | Aktuell | The three freshness states. They are a DIFFERENT axis from the verdict: a stale value keeps its verdict ([ADR-0010](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0010-a-stale-value-keeps-its-verdict.md)). |
4013
4013
  | `freshnessStale` | Stale | Veraltet | — |
4014
4014
  | `freshnessDisconnected` | No connection | Keine Verbindung | — |
4015
- | `asOfAgo(duration)` | `` `As of: ${dauer}` `` | `` `Stand: ${dauer}` `` | "As of: 3 minutes ago", where the duration comes from the formats. |
4016
- | `asOfUnknown` | As-of time unknown | Stand unbekannt | — |
4017
-
4018
- ##### Alarm list
4019
-
4020
- | Key | English | German | Description |
4021
- |---|---|---|---|
4022
- | `alarms` | Alarms | Meldungen | — |
4023
- | `noAlarms` | No alarms | Keine Meldungen | — |
4024
- | `noAlarmsDisconnected` | No alarms – the connection is down | Keine Meldungen – die Verbindung steht nicht | Empty, but the line is down - that is something other than quiet. |
4025
- | `acknowledgeAlarm` | Acknowledge | Quittieren | — |
4026
- | `acknowledgeAlarms(count)` | `` count === 1 ? "Acknowledge 1 alarm" : `Acknowledge ${count} alarms` `` | `` count === 1 ? "1 Meldung quittieren" : `${count} Meldungen quittieren` `` | Bulk acknowledgement; the number stands in the text on purpose. |
4027
- | `snoozeAlarm` | Snooze | Zurückstellen | The alarm list's snooze menu, beside "Acknowledge": the word on its button, and the sentence with the number of alarms it acts on. |
4028
- | `snoozeAlarms(count)` | `` (count === 1 ? "Snooze 1 alarm" : `Snooze ${count} alarms`) `` | `` (count === 1 ? "1 Meldung zurückstellen" : `${count} Meldungen zurückstellen`) `` | — |
4029
- | `snoozeDuration` | Duration | Dauer | The labels in the panel that opens with `snoozeReason`: the duration to choose and the reason to give. The panel's own button is `snoozeAlarm`. |
4030
- | `snoozeReason` | Reason | Grund | — |
4031
- | `unsnoozeAlarm` | Unsnooze | Zurückstellung aufheben | Ends the snooze of the ticked alarms before its time. |
4032
- | `unsnoozeAlarms(count)` | `` (count === 1 ? "Unsnooze 1 alarm" : `Unsnooze ${count} alarms`) `` | `` count === 1 ? "Zurückstellung von 1 Meldung aufheben" : `Zurückstellung von ${count} Meldungen aufheben` `` | — |
4033
- | `priorityHigh` | High | Hoch | — |
4034
- | `priorityMedium` | Medium | Mittel | — |
4035
- | `priorityLow` | Low | Niedrig | — |
4036
- | `lifecycleActiveUnacknowledged` | Active, unacknowledged | Aktiv, unquittiert | The four lifecycle states, written out. |
4037
- | `lifecycleActiveAcknowledged` | Active, acknowledged | Aktiv, quittiert | — |
4038
- | `lifecycleResolvedUnacknowledged` | Resolved, unacknowledged | Behoben, unquittiert | — |
4039
- | `lifecycleResolvedAcknowledged` | Resolved, acknowledged | Behoben, quittiert | — |
4040
- | `floodHint(count)` | `` `Alarm flood: ${count} in quick succession` `` | `` `Meldungsflut: ${count} in kurzer Folge` `` | "Alarm flood: 12 in quick succession" - a flood is marked, never suppressed. |
4041
- | `chatterHint(count)` | `` `${count}×` `` | `` `${count}×` `` | "40×" on a chattering alarm type. |
4042
- | `activeUnacknowledged(count)` | `` count === 1 ? "1 active alarm, unacknowledged" : `${count} active alarms, unacknowledged` `` | `` count === 1 ? "1 aktive Meldung, unquittiert" : `${count} aktive Meldungen, unquittiert` `` | The text of the live region: the number of active unacknowledged alarms. |
4043
- | `columnAlarm` | Alarm | Meldung | — |
4044
- | `columnLifecycleState` | State | Zustand | — |
4045
- | `columnPriority` | Priority | Priorität | — |
4046
- | `columnRaised` | Raised | Gekommen | — |
4047
- | `columnDuration` | Duration | Dauer | — |
4048
- | `columnFrequency` | Frequency | Häufigkeit | — |
4049
- | `columnAcknowledgement` | Acknowledgement | Quittierung | The two columns of the alarm model the list does not show, but which do land in the column menu and the CSV header (`alarmColumns`). |
4050
- | `columnAge` | Age | Alter | — |
4051
- | `availabilitySnoozed(until, by, reason)` | `` `Snoozed until ${until} by ${by}${reason ? `: ${reason}` : ""}` `` | `` `Zurückgestellt bis ${until} von ${by}${reason ? `: ${reason}` : ""}` `` | The availability of an alarm (ISA-18.2's special states), written out. A snooze names its end and who snoozed it - a snooze is tracked, not anonymous; the time comes from the formats. The reason, when the snooze has one, comes last and is optional: a wording of two parameters fits. |
4052
- | `availabilitySnoozedShort` | Snoozed | Zurückgestellt | A snooze as one word - the alarm list's badge; the sentence above stands in its tooltip and in what is spoken. |
4053
- | `availabilitySuppressed` | Suppressed | Unterdrückt | — |
4054
- | `availabilityDisabled` | Disabled | Deaktiviert | — |
4055
- | `hiddenAlarms(count)` | `` `Hidden: ${count}` `` | `` `Ausgeblendet: ${count}` `` | "Hidden: 3" - the count of the view of snoozed, suppressed and disabled alarms, and its name where the list offers the view as a switch. |
4056
- | `columnAvailability` | Availability | Verfügbarkeit | The availability column of the alarm model: the column menu and the CSV header, like the two above. |
4015
+ | `asOfAgo(duration)` | `` `As of: ${duration}` `` | `` `Stand: ${duration}` `` | "As of: 3 minutes ago", where the duration comes from the formats. |
4057
4016
 
4058
4017
  ##### Overlays and states
4059
4018
 
@@ -4084,7 +4043,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
4084
4043
  | `hide` | Hide | Ausblenden | — |
4085
4044
  | `moreActions` | More actions | Weitere Aktionen | — |
4086
4045
  | `remove` | Remove | Entfernen | The cross on a tag without text content. |
4087
- | `removeTag(beschriftung)` | `` `Remove ${beschriftung}` `` | `` `${beschriftung} entfernen` `` | The cross on a tag with text content. |
4046
+ | `removeTag(beschriftung)` | `` `Remove ${beschriftung}` `` | `` `${label} entfernen` `` | The cross on a tag with text content. |
4088
4047
 
4089
4048
  ##### @umriss-ui/schedule
4090
4049
 
@@ -4144,6 +4103,7 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
4144
4103
 
4145
4104
  | Key | English | German | Description |
4146
4105
  |---|---|---|---|
4106
+ | `locale` | en-GB | de-DE | The BCP 47 tag every number and every date or time label of the chart is formatted in (`en-GB`, `de-DE`). The one input for the locale: the browser's language is not read. The clock stays 24-hour in both. |
4147
4107
  | `roleDescription` | chart | Diagramm | What a screen reader calls the plot area that takes the keys (`aria-roledescription`). |
4148
4108
  | `empty` | No data | Keine Daten | Shown in the plot area when no visible series has a point to show. |
4149
4109
  | `seriesList(names)` | `` `${names.length === 1 ? "1 series" : `${names.length} series`}: ${names.join(", ")}.` `` | `` `${names.length === 1 ? "1 Serie" : `${names.length} Serien`}: ${names.join(", ")}.` `` | The summary's visible series, by name. |
@@ -4151,15 +4111,15 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
4151
4111
  | `seriesExtent(name, min, max)` | `` `${name} from ${min} to ${max}.` `` | `` `${name} von ${min} bis ${max}.` `` | The summary's lowest and highest value of one series in that stretch. |
4152
4112
  | `limitList(limits)` | `` `Limits: ${limits.map((l) => `${l.name} ${l.value}`).join(", ")}.` `` | `` `Grenzen: ${limits.map((l) => `${l.name} ${l.value}`).join(", ")}.` `` | The summary's labelled limits, each with its value in its axis' format (a band's two edges as one value). |
4153
4113
  | `readout(x, rows)` | `` [`${x}.`, ...rows.map((r) => `${r.name} ${r.value}${r.x === "" ? "" : ` at ${r.x}`}.`)].join(" ") `` | `` [`${x}.`, ...rows.map((r) => `${r.name} ${r.value}${r.x === "" ? "" : ` bei ${r.x}`}.`)].join(" ") `` | What is read after a key: the position, then each series with its value (and its own x where it stands on another x axis), the emphasised one first. |
4154
- | `stackTotal` | Total | Summe | The last row of a stack in the tooltip and the readout: the sum of its members at the point (charts-stacking K4). |
4155
- | `percent(value)` | `` `${value}%` `` | `` `${value} %` `` | A share in a normalised stack, its number already formatted (K5). |
4114
+ | `stackTotal` | Total | Summe | The last row of a stack in the tooltip and the readout: the sum of its members at the point. |
4115
+ | `percent(value)` | `` `${value}%` `` | `` `${value} %` `` | A share in a normalised stack, its number already formatted. |
4156
4116
  | `walkHelp` | Left and right arrows move through the values, up and down change the series, Home and End go to the first and the last, Escape clears. | Pfeil links und rechts gehen durch die Werte, Pfeil hoch und runter wechseln die Serie, Pos1 und Ende springen zum ersten und letzten Wert, Escape hebt die Markierung auf. | The keys that walk the chart. |
4157
4117
  | `selectHelp` | Enter chooses the point. | Enter wählt den Punkt. | The key that reports the Active point - only where `onSelect` is given. |
4158
4118
  | `zoomHelp` | Plus and minus zoom, Shift with left or right pans, 0 goes back to the axis' own span. | Plus und Minus zoomen, Umschalt mit Pfeil links oder rechts verschiebt, 0 kehrt zum eigenen Bereich der Achse zurück. | The keys that zoom and pan it - only where the chart can be zoomed. |
4159
4119
  | `legendHelp` | In the legend, Enter hides or shows a series, Shift+Enter shows only it. | In der Legende blendet Enter eine Serie aus oder ein, Umschalt+Enter zeigt nur sie. | The keys of the legend's entries - only where it has one to press. |
4160
4120
  | `allShown` | Nothing would be left to see, so every series is shown. | Sonst wäre nichts mehr zu sehen, darum werden alle Serien gezeigt. | Read out where hiding would leave nothing to see, and every series is shown instead. |
4161
4121
  | `showAll` | Show all | Alles zeigen | The control over a zoomed plot that brings every zoomed axis back to its own domain (component-view 04). |
4162
- | `showData` | Show data | Daten zeigen | The data table's disclosure key, closed and open (charts-alternatives C1). |
4122
+ | `showData` | Show data | Daten zeigen | The data table's disclosure key, closed and open. |
4163
4123
  | `hideData` | Hide data | Daten verbergen | — |
4164
4124
  | `positionColumn` | Position | Position | The heading of the table's x column where its axis has no `label`, and of a matrix' row column where its y axis has none. |
4165
4125
  | `rowColumn` | Row | Zeile | — |
@@ -4174,7 +4134,7 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
4174
4134
  | `notch` | Notch | Notch | — |
4175
4135
  | `count` | n | n | — |
4176
4136
  | `outlierList(values, more)` | `` `${values.length + more}: ${values.join(", ")}${more > 0 ? ` and ${more} more` : ""}` `` | `` `${values.length + more}: ${values.join(", ")}${more > 0 ? ` und ${more} weitere` : ""}` `` | — |
4177
- | `downsampled(readings)` | `` `Downsampled from ${readings.toLocaleString("en-GB")} readings: the first, lowest, highest and last value of each stretch.` `` | `` `Ausgedünnt aus ${readings.toLocaleString("de-DE")} Messwerten: erster, kleinster, größter und letzter Wert je Abschnitt.` `` | Added to the caption where the table shows the downsampled course (C2): how many readings its rows stand for. |
4137
+ | `downsampled(readings)` | `` `Downsampled from ${readings.toLocaleString("en-GB")} readings: the first, lowest, highest and last value of each stretch.` `` | `` `Ausgedünnt aus ${readings.toLocaleString("de-DE")} Messwerten: erster, kleinster, größter und letzter Wert je Abschnitt.` `` | Added to the caption where the table shows the downsampled course: how many readings its rows stand for. |
4178
4138
 
4179
4139
  #### Formats
4180
4140
 
@@ -4274,11 +4234,6 @@ Everything the library puts out as text.
4274
4234
  | `paletteHintChoose` *required* | `string` | — | |
4275
4235
  | `paletteHintClose` *required* | `string` | — | |
4276
4236
  | `paletteKeyEsc` *required* | `string` | — | The legend on the Escape key. The arrows and the return key are glyphs and therefore do not stand here; "Esc" is a word and is called something else elsewhere. |
4277
- | `dockTools` *required* | `string` | — | Accessible name of a dock's tools. |
4278
- | `dockGrip` *required* | `string` | — | Accessible name of the grip - it says what it does, not what it is. |
4279
- | `dockPlace` *required* | `(place: "top" \| "right" \| "bottom" \| "left") => string` | — | The four resting places, named. The keys are the `DockPlace` type's, and a register translates them: the German one answers "oben" where the English one answers "top". |
4280
- | `dockPlaced` *required* | `(place: string) => string` | — | What the screen reader hears once the dock has taken a place. |
4281
- | `dockNoPlace` *required* | `(place: string) => string` | — | And what it hears when a place has refused. A refusal is not a fault: a wide, flat host with no room for a standing dock is not a mistake anyone made. |
4282
4237
  | `datePlaceholder` *required* | `string` | — | |
4283
4238
  | `datePanel` *required* | `string` | — | Accessible name of the panel. Deliberately kept apart from the placeholder: whoever labels the field differently does not thereby rename the dialog. |
4284
4239
  | `dateClear` *required* | `string` | — | |
@@ -4435,42 +4390,6 @@ Everything the library puts out as text.
4435
4390
  | `freshnessStale` *required* | `string` | — | |
4436
4391
  | `freshnessDisconnected` *required* | `string` | — | |
4437
4392
  | `asOfAgo` *required* | `(duration: string) => string` | — | "As of: 3 minutes ago", where the duration comes from the formats. |
4438
- | `asOfUnknown` *required* | `string` | — | |
4439
- | `alarms` *required* | `string` | — | |
4440
- | `noAlarms` *required* | `string` | — | |
4441
- | `noAlarmsDisconnected` *required* | `string` | — | Empty, but the line is down - that is something other than quiet. |
4442
- | `acknowledgeAlarm` *required* | `string` | — | |
4443
- | `acknowledgeAlarms` *required* | `(count: number) => string` | — | Bulk acknowledgement; the number stands in the text on purpose. |
4444
- | `snoozeAlarm` *required* | `string` | — | The alarm list's snooze menu, beside "Acknowledge": the word on its button, and the sentence with the number of alarms it acts on. |
4445
- | `snoozeAlarms` *required* | `(count: number) => string` | — | |
4446
- | `snoozeDuration` *required* | `string` | — | The labels in the panel that opens with `snoozeReason`: the duration to choose and the reason to give. The panel's own button is `snoozeAlarm`. |
4447
- | `snoozeReason` *required* | `string` | — | |
4448
- | `unsnoozeAlarm` *required* | `string` | — | Ends the snooze of the ticked alarms before its time. |
4449
- | `unsnoozeAlarms` *required* | `(count: number) => string` | — | |
4450
- | `priorityHigh` *required* | `string` | — | |
4451
- | `priorityMedium` *required* | `string` | — | |
4452
- | `priorityLow` *required* | `string` | — | |
4453
- | `lifecycleActiveUnacknowledged` *required* | `string` | — | The four lifecycle states, written out. |
4454
- | `lifecycleActiveAcknowledged` *required* | `string` | — | |
4455
- | `lifecycleResolvedUnacknowledged` *required* | `string` | — | |
4456
- | `lifecycleResolvedAcknowledged` *required* | `string` | — | |
4457
- | `floodHint` *required* | `(count: number) => string` | — | "Alarm flood: 12 in quick succession" - a flood is marked, never suppressed. |
4458
- | `chatterHint` *required* | `(count: number) => string` | — | "40×" on a chattering alarm type. |
4459
- | `activeUnacknowledged` *required* | `(count: number) => string` | — | The text of the live region: the number of active unacknowledged alarms. |
4460
- | `columnAlarm` *required* | `string` | — | |
4461
- | `columnLifecycleState` *required* | `string` | — | |
4462
- | `columnPriority` *required* | `string` | — | |
4463
- | `columnRaised` *required* | `string` | — | |
4464
- | `columnDuration` *required* | `string` | — | |
4465
- | `columnFrequency` *required* | `string` | — | |
4466
- | `columnAcknowledgement` *required* | `string` | — | The two columns of the alarm model the list does not show, but which do land in the column menu and the CSV header (`alarmColumns`). |
4467
- | `columnAge` *required* | `string` | — | |
4468
- | `availabilitySnoozed` *required* | `(until: string, by: string, reason?: string) => string` | — | The availability of an alarm (ISA-18.2's special states), written out. A snooze names its end and who snoozed it - a snooze is tracked, not anonymous; the time comes from the formats. The reason, when the snooze has one, comes last and is optional: a wording of two parameters fits. |
4469
- | `availabilitySnoozedShort` *required* | `string` | — | A snooze as one word - the alarm list's badge; the sentence above stands in its tooltip and in what is spoken. |
4470
- | `availabilitySuppressed` *required* | `string` | — | |
4471
- | `availabilityDisabled` *required* | `string` | — | |
4472
- | `hiddenAlarms` *required* | `(count: number) => string` | — | "Hidden: 3" - the count of the view of snoozed, suppressed and disabled alarms, and its name where the list offers the view as a switch. |
4473
- | `columnAvailability` *required* | `string` | — | The availability column of the alarm model: the column menu and the CSV header, like the two above. |
4474
4393
  | `close` *required* | `string` | — | |
4475
4394
  | `closeToast` *required* | `string` | — | |
4476
4395
  | `toastDeckCount` *required* | `(count: number) => string` | — | The count on the front toast of a closed deck; pressing it shows them all. |
@@ -4850,7 +4769,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
4850
4769
  | Prop | Type | Default | Description |
4851
4770
  |---|---|---|---|
4852
4771
  | `direction` | `"row" \| "column"` | `"column"` | Below one another or beside one another. Below is the direction content stands in anyway, without being asked.<br>Shown in: [A row](#/stack-and-grid/a-row), [Gaps](#/stack-and-grid/gaps), [Wrapping](#/stack-and-grid/wrapping) and 68 more |
4853
- | `gap` | [`SpaceStep`](#type-SpaceStep)<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `3` | Spacing as a step of the 4 px spacing steps (1–8).<br>Shown in: [A column](#/stack-and-grid/a-column), [A row](#/stack-and-grid/a-row), [Gaps](#/stack-and-grid/gaps) and 166 more |
4772
+ | `gap` | [`SpaceStep`](#type-SpaceStep)<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `3` | Spacing as a step of the 4 px spacing steps (1–8).<br>Shown in: [A column](#/stack-and-grid/a-column), [A row](#/stack-and-grid/a-row), [Gaps](#/stack-and-grid/gaps) and 163 more |
4854
4773
  | `align` | `CSSProperties["alignItems"]` | — | Alignment across the direction – `alignItems` unchanged.<br>Shown in: [A row](#/stack-and-grid/a-row), [Gaps](#/stack-and-grid/gaps), [A tour summary](#/stack-and-grid/a-tour-summary) and 77 more |
4855
4774
  | `justify` | `CSSProperties["justifyContent"]` | — | Distribution along the direction – `justifyContent` unchanged.<br>Shown in: [A row](#/stack-and-grid/a-row), [A tour summary](#/stack-and-grid/a-tour-summary), [Name the same action in every row (VisuallyHidden)](#/visuallyhidden/actions-in-rows) and 9 more |
4856
4775
  | `wrap` | `boolean` | `false` | Lets the children wrap when the line does not suffice.<br>Shown in: [Gaps](#/stack-and-grid/gaps), [Wrapping](#/stack-and-grid/wrapping), [Sized to the value (Sizes)](#/sizes/sized-to-the-value) and 32 more |
@@ -5572,7 +5491,7 @@ function metrics(serviceId: string): MetricPoint[] {
5572
5491
  return points;
5573
5492
  }
5574
5493
 
5575
- /** A kind of alert, shaped as `@umriss-ui/table`'s alarm list reads it. */
5494
+ /** A kind of alert. */
5576
5495
  interface AlertType {
5577
5496
  id: string;
5578
5497
  label: string;
@@ -5588,7 +5507,7 @@ const ALERT_TYPES: readonly AlertType[] = [
5588
5507
  { id: "reports-job", label: "Reporting · nightly job late", priority: "low" },
5589
5508
  ];
5590
5509
 
5591
- /** One alert, shaped as `@umriss-ui/table`'s alarm list reads it. */
5510
+ /** One alert. */
5592
5511
  type Alert = {
5593
5512
  id: string;
5594
5513
  type: string;
@@ -5720,403 +5639,6 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
5720
5639
 
5721
5640
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
5722
5641
 
5723
- ### Dock
5724
-
5725
- A strip of tools that floats above one surface, a chart or a map, and rests at the edge the user moves it to (also called a floating toolbar). Reach for it when the tools act on that surface and must not take room from it.
5726
-
5727
- ```ts
5728
- import { Dock } from "@umriss-ui/core";
5729
- ```
5730
-
5731
- Demo page: https://romanhaendler.github.io/umriss-ui/core/dock/
5732
-
5733
- It snaps and does not follow: dragging moves the handle, and the dock jumps to the edge whose zone the pointer reaches. It always rests at one of four places, never in between and never in a corner ([ADR-0013](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0013-a-dock-snaps-it-does-not-follow.md)).
5734
-
5735
- It belongs to one surface; two charts side by side have two docks. Which tools are modes is yours to say through `mode`; without it, every tool simply reports its use.
5736
-
5737
- Where an edge has no room for the strip, as the side edges of a wide, flat chart, that edge refuses visibly and shows the outline the dock would take. Nothing shrinks and nothing overflows.
5738
-
5739
- #### Examples
5740
-
5741
- ##### A tool strip
5742
-
5743
- Put the dock inside a positioned surface and give it `tools`; it lies above the surface and takes no room from it.
5744
-
5745
- ```tsx
5746
- import { Dock, GridGlyph, MeasureGlyph } from "@umriss-ui/core";
5747
- import type { DockTool } from "@umriss-ui/core";
5748
-
5749
- const TOOLS: readonly DockTool[] = [
5750
- { id: "grid", label: "Grid", icon: <GridGlyph /> },
5751
- { id: "measure", label: "Measure", icon: <MeasureGlyph /> },
5752
- ];
5753
-
5754
- export default function AToolStrip() {
5755
- return (
5756
- <div
5757
- style={{
5758
- position: "relative",
5759
- height: 200,
5760
- borderRadius: "var(--u-radius-lg)",
5761
- background: "var(--u-color-surface-sunken)",
5762
- boxShadow: "var(--u-edge)",
5763
- }}
5764
- >
5765
- <Dock tools={TOOLS} defaultPlace="bottom" />
5766
- </div>
5767
- );
5768
- }
5769
- ```
5770
-
5771
- ##### Four resting places
5772
-
5773
- Drag the handle or press an arrow on it to move the dock; control `place` with `onPlaceChange` to keep it in the user's settings.
5774
-
5775
- ```tsx
5776
- import { useState } from "react";
5777
- import { Dock, GridGlyph, MeasureGlyph, PlusGlyph, Stack, Text } from "@umriss-ui/core";
5778
- import type { DockPlace, DockTool } from "@umriss-ui/core";
5779
-
5780
- const TOOLS: readonly DockTool[] = [
5781
- { id: "zoom-in", label: "Zoom in", icon: <PlusGlyph /> },
5782
- { id: "grid", label: "Grid", icon: <GridGlyph /> },
5783
- { id: "measure", label: "Measure", icon: <MeasureGlyph /> },
5784
- ];
5785
-
5786
- export default function FourRestingPlaces() {
5787
- const [place, setPlace] = useState<DockPlace>("top");
5788
-
5789
- return (
5790
- <Stack gap={2}>
5791
- <div
5792
- style={{
5793
- position: "relative",
5794
- height: 260,
5795
- borderRadius: "var(--u-radius-lg)",
5796
- background: "var(--u-color-surface-sunken)",
5797
- boxShadow: "var(--u-edge)",
5798
- }}
5799
- >
5800
- <Dock tools={TOOLS} place={place} onPlaceChange={setPlace} />
5801
- </div>
5802
- <Text size="xs" tone="muted">
5803
- Resting place: <code>{place}</code>
5804
- </Text>
5805
- </Stack>
5806
- );
5807
- }
5808
- ```
5809
-
5810
- ##### Modes and actions
5811
-
5812
- Set `mode` for the tool the surface stands in and let `onUse` report the rest; a `disabled` tool stays in its place.
5813
-
5814
- ```tsx
5815
- import { useState } from "react";
5816
- import { CrossGlyph, Dock, GridGlyph, MeasureGlyph, MinusGlyph, PlusGlyph, Stack, Text } from "@umriss-ui/core";
5817
- import type { DockTool } from "@umriss-ui/core";
5818
-
5819
- const TOOLS: readonly DockTool[] = [
5820
- { id: "zoom-in", label: "Zoom in", icon: <PlusGlyph /> },
5821
- { id: "zoom-out", label: "Zoom out", icon: <MinusGlyph />, disabled: true },
5822
- { id: "grid", label: "Grid", icon: <GridGlyph /> },
5823
- { id: "measure", label: "Measure", icon: <MeasureGlyph /> },
5824
- { id: "clear", label: "Clear the selection", icon: <CrossGlyph /> },
5825
- ];
5826
-
5827
- /** Which tools are modes is the application's knowledge, not the dock's. */
5828
- const MODES = new Set(["grid", "measure"]);
5829
-
5830
- export default function ModesAndActions() {
5831
- const [mode, setMode] = useState("grid");
5832
- const [last, setLast] = useState<string | null>(null);
5833
-
5834
- return (
5835
- <Stack gap={2}>
5836
- <div
5837
- style={{
5838
- position: "relative",
5839
- height: 220,
5840
- borderRadius: "var(--u-radius-lg)",
5841
- background: "var(--u-color-surface-sunken)",
5842
- boxShadow: "var(--u-edge)",
5843
- }}
5844
- >
5845
- <Dock
5846
- tools={TOOLS}
5847
- defaultPlace="bottom"
5848
- mode={mode}
5849
- onModeChange={(id) => {
5850
- if (MODES.has(id)) setMode(id);
5851
- }}
5852
- onUse={setLast}
5853
- />
5854
- </div>
5855
- <Text size="xs" tone="muted">
5856
- Mode: <code>{mode}</code>, last used: <code>{last ?? "none"}</code>
5857
- </Text>
5858
- </Stack>
5859
- );
5860
- }
5861
- ```
5862
-
5863
- ##### Move the dock, and where it does not fit
5864
-
5865
- Above a latency chart the dock reaches all four edges; on a flat chart the two side edges refuse and show why.
5866
-
5867
- ```tsx
5868
- /* `data-dock` names the two hosts for the screenshot and interaction suites:
5869
- `spacious` has room for an upright dock, `flat` has not. */
5870
-
5871
- import { useState } from "react";
5872
- import type { ReactNode } from "react";
5873
- import { CrossGlyph, Dock, GridGlyph, MeasureGlyph, MinusGlyph, PlusGlyph, Stack, Text } from "@umriss-ui/core";
5874
- import type { DockPlace, DockTool } from "@umriss-ui/core";
5875
-
5876
- /* Data from the operations world, written out here so the example runs on its own. */
5877
- /** A small LCG - the same numbers on every computer. */
5878
- function random(seed: number): () => number {
5879
- let s = seed >>> 0;
5880
- return () => {
5881
- s = (Math.imul(s, 1664525) + 1013904223) >>> 0;
5882
- return s / 4294967296;
5883
- };
5884
- }
5885
-
5886
- const at = (day: number, hours: number, minutes = 0) => new Date(2026, 2, day, hours, minutes).getTime();
5887
- const MINUTE = 60_000;
5888
-
5889
- /** Tuesday, 17 March 2026, 10:30 - the moment the screens are read at. */
5890
- const NOW = at(17, 10, 30);
5891
-
5892
- interface Service {
5893
- id: string;
5894
- name: string;
5895
- team: string;
5896
- /** 1 is customer-facing and pages at night; 3 waits for the morning. */
5897
- tier: 1 | 2 | 3;
5898
- /** The latency objective: the 95th percentile stays below this, in ms. */
5899
- latencySlo: number;
5900
- /** The availability promised for a month, in per cent. */
5901
- availabilityTarget: number;
5902
- }
5903
-
5904
- const SERVICES: readonly Service[] = [
5905
- { id: "checkout", name: "Checkout", team: "Payments", tier: 1, latencySlo: 300, availabilityTarget: 99.95 },
5906
- { id: "billing", name: "Billing", team: "Payments", tier: 1, latencySlo: 400, availabilityTarget: 99.9 },
5907
- { id: "sign-in", name: "Sign-in", team: "Identity", tier: 1, latencySlo: 200, availabilityTarget: 99.95 },
5908
- { id: "search", name: "Search", team: "Discovery", tier: 1, latencySlo: 250, availabilityTarget: 99.9 },
5909
- { id: "images", name: "Image service", team: "Discovery", tier: 2, latencySlo: 500, availabilityTarget: 99.5 },
5910
- { id: "notifications", name: "Notifications", team: "Messaging", tier: 2, latencySlo: 800, availabilityTarget: 99.5 },
5911
- { id: "webhooks", name: "Webhooks", team: "Integrations", tier: 2, latencySlo: 1000, availabilityTarget: 99.5 },
5912
- { id: "reports", name: "Reporting", team: "Insights", tier: 3, latencySlo: 2000, availabilityTarget: 99 },
5913
- ];
5914
-
5915
- interface MetricPoint {
5916
- t: number;
5917
- /** Median and 95th percentile latency, in ms. */
5918
- p50: number;
5919
- p95: number;
5920
- /** Failed requests, in per cent. */
5921
- errorRate: number;
5922
- /** Requests per minute. */
5923
- requests: number;
5924
- }
5925
-
5926
- /** Requests per minute at the busiest hour, by tier. */
5927
- const VOLUME = { 1: 900, 2: 400, 3: 120 } as const;
5928
-
5929
- /** A service's latency and error rate every five minutes of today, from
5930
- midnight up to now. Busy by day, quiet at night; Checkout's 95th percentile
5931
- climbs well past its objective from 09:40 to 10:10, and its errors with it. */
5932
- function metrics(serviceId: string): MetricPoint[] {
5933
- const index = SERVICES.findIndex((one) => one.id === serviceId);
5934
- const service = SERVICES[index];
5935
- if (service === undefined) throw new Error(`No service "${serviceId}".`);
5936
- const r = random(1000 + index * 37);
5937
- const points: MetricPoint[] = [];
5938
- let drift = 0;
5939
- for (let t = at(17, 0); t <= NOW; t += 5 * MINUTE) {
5940
- const hour = (t - at(17, 0)) / (60 * MINUTE);
5941
- const load = 0.35 + 0.65 * Math.max(0, Math.sin((Math.PI * (hour - 5)) / 16));
5942
- drift = 0.8 * drift + (r() - 0.5) * 0.08;
5943
- const base = service.latencySlo * (0.45 + 0.2 * load + drift);
5944
- const surge = serviceId === "checkout" && t >= at(17, 9, 40) && t < at(17, 10, 10) ? 1.9 : 1;
5945
- const p95 = Math.round(base * surge * (1 + r() * 0.08));
5946
- points.push({
5947
- t,
5948
- p50: Math.round(p95 * (0.42 + r() * 0.06)),
5949
- p95,
5950
- errorRate: Math.round((0.05 + r() * 0.12 + (surge > 1 ? 2.4 + r() : 0)) * 100) / 100,
5951
- requests: Math.round(VOLUME[service.tier] * load * (1 + (r() - 0.5) * 0.1)),
5952
- });
5953
- }
5954
- return points;
5955
- }
5956
-
5957
- const TOOLS: readonly DockTool[] = [
5958
- { id: "zoom-in", label: "Zoom in", icon: <PlusGlyph /> },
5959
- { id: "zoom-out", label: "Zoom out", icon: <MinusGlyph />, disabled: true },
5960
- { id: "grid", label: "Grid", icon: <GridGlyph /> },
5961
- { id: "measure", label: "Measure", icon: <MeasureGlyph /> },
5962
- { id: "clear", label: "Clear the selection", icon: <CrossGlyph /> },
5963
- ];
5964
-
5965
- /** Which tools are modes is the application's knowledge, not the dock's. */
5966
- const MODES = new Set(["grid", "measure"]);
5967
-
5968
- /* Checkout's p95 today, scaled into a 400 × 100 box: the chart the tools
5969
- would act on, drawn as a plain line. */
5970
- const P95 = metrics("checkout").map((point) => point.p95);
5971
- const TOP = Math.max(...P95) * 1.1;
5972
- const POINTS = P95.map((value, i) => `${((i / (P95.length - 1)) * 400).toFixed(1)},${(100 - (value / TOP) * 100).toFixed(1)}`).join(" ");
5973
-
5974
- function Chart({ height, children }: { height: number; children: ReactNode }) {
5975
- return (
5976
- <div
5977
- style={{
5978
- position: "relative",
5979
- height: `${height}px`,
5980
- borderRadius: "var(--u-radius-lg)",
5981
- overflow: "hidden",
5982
- background:
5983
- "repeating-linear-gradient(0deg, var(--u-hairline-strong) 0 1px, transparent 1px 24px)," +
5984
- "repeating-linear-gradient(90deg, var(--u-hairline-strong) 0 1px, transparent 1px 24px)," +
5985
- "var(--u-color-surface-sunken)",
5986
- boxShadow: "var(--u-edge)",
5987
- }}
5988
- >
5989
- <svg
5990
- viewBox="0 0 400 100"
5991
- preserveAspectRatio="none"
5992
- role="img"
5993
- aria-label="Checkout, p95 latency today"
5994
- style={{ position: "absolute", inset: 0, width: "100%", height: "100%" }}
5995
- >
5996
- <polyline
5997
- points={POINTS}
5998
- fill="none"
5999
- stroke="var(--u-color-accent)"
6000
- strokeWidth="1.5"
6001
- vectorEffect="non-scaling-stroke"
6002
- strokeLinejoin="round"
6003
- strokeLinecap="round"
6004
- />
6005
- </svg>
6006
- {children}
6007
- </div>
6008
- );
6009
- }
6010
-
6011
- export default function RoomAndNoRoom() {
6012
- const [place, setPlace] = useState<DockPlace>("bottom");
6013
- const [mode, setMode] = useState("grid");
6014
- const [last, setLast] = useState<string | null>(null);
6015
-
6016
- return (
6017
- <Stack gap={4}>
6018
- <div data-dock="spacious">
6019
- <Chart height={320}>
6020
- <Dock
6021
- tools={TOOLS}
6022
- place={place}
6023
- onPlaceChange={setPlace}
6024
- mode={mode}
6025
- onModeChange={(id) => {
6026
- if (MODES.has(id)) setMode(id);
6027
- }}
6028
- onUse={setLast}
6029
- />
6030
- </Chart>
6031
- </div>
6032
- <Text size="xs" tone="muted">
6033
- Resting place: <code>{place}</code>, mode: <code>{mode}</code>, last used: <code>{last ?? "none"}</code>
6034
- </Text>
6035
-
6036
- <Text size="sm" weight="medium">
6037
- A flat chart, where the side edges refuse
6038
- </Text>
6039
- <div data-dock="flat">
6040
- <Chart height={140}>
6041
- <Dock tools={TOOLS} defaultPlace="bottom" mode="grid" />
6042
- </Chart>
6043
- </div>
6044
- </Stack>
6045
- );
6046
- }
6047
- ```
6048
-
6049
- #### When to use something else
6050
-
6051
- - A toolbar standing in the flow above a table → `Toolbar` from @umriss-ui/table
6052
-
6053
- #### Keyboard
6054
-
6055
- | Key | Action |
6056
- |---|---|
6057
- | `Tab` | Moves to the handle, then into the tools: one stop for all of them. |
6058
- | `Arrow keys (on a tool)` | Moves to the next or previous tool, passing disabled ones. |
6059
- | `Home / End (on a tool)` | Moves to the first or the last tool. |
6060
- | `Enter or Space (on a tool)` | Takes the tool. |
6061
- | `Arrow Up / Right / Down / Left (on the handle)` | Moves the dock to the top, right, bottom or left edge. |
6062
- | `Escape (while dragging)` | Puts the dock back where the drag started. |
6063
-
6064
- #### Accessibility
6065
-
6066
- The strip is a `group` named by `label`, "Tools" by default. The handle is a button named "Move dock", and each tool a button named by its `label`, which its tooltip shows too. Only the tool of the current `mode` carries `aria-pressed`; the others are not announced as switches that are off, since which tools are modes is yours to say.
6067
-
6068
- A polite live region beside the strip says where the dock has gone - "Dock at the top" - or that an edge has no room for it - "No room for the dock on the left" - so a move by the arrow keys on the handle is heard, not only seen.
6069
-
6070
- #### API
6071
-
6072
- ##### `DockProps`
6073
-
6074
- | Prop | Type | Default | Description |
6075
- |---|---|---|---|
6076
- | `tools` *required* | `readonly `[`DockTool`](#type-DockTool)`[]` | — | The tools - a property and expressly not children. Children would read more flexibly and would cost exactly the one number that is needed: the dock must know how many tools it has in order to answer whether it would have room at a side edge at all - and to answer that before it is there.<br>Shown in: [A tool strip](#/dock/a-tool-strip), [Four resting places](#/dock/four-resting-places), [Modes and actions](#/dock/modes-and-actions) and 1 more |
6077
- | `defaultPlace` | [`DockPlace`](#type-DockPlace)<br>`"top" \| "right" \| "bottom" \| "left"` | `DEFAULT_PLACE` | Uncontrolled: the resting place it starts with.<br>Shown in: [A tool strip](#/dock/a-tool-strip), [Modes and actions](#/dock/modes-and-actions), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
6078
- | `place` | [`DockPlace`](#type-DockPlace)<br>`"top" \| "right" \| "bottom" \| "left"` | — | Controlled: the dock reports and waits, it does not move itself.<br>Shown in: [Four resting places](#/dock/four-resting-places), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
6079
- | `onPlaceChange` | `(place: `[`DockPlace`](#type-DockPlace)`) => void` | — | Reports the desired resting place. Controlled, the dock moves only once `place` follows; uncontrolled it is merely a message.<br>Shown in: [Four resting places](#/dock/four-resting-places), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
6080
- | `mode` | `string` | — | The mode - the tool the dock stands in. At most one, and without a value NONE is marked: a dock whose tools simply fire has no mode. None is invented either, and none is preset to the first tool - that would be a statement about the state of the application which this component cannot make.<br>Shown in: [Modes and actions](#/dock/modes-and-actions), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
6081
- | `onModeChange` | `(id: string) => void` | — | Reported is only what is a CHANGE, and only as long as there is a mode at all: without `mode` there is no change of mode to report, and the taking itself reports `onUse`.<br>Shown in: [Modes and actions](#/dock/modes-and-actions), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
6082
- | `label` | `string` | the wording's "Tools" | The accessible name of the dock. |
6083
-
6084
- ###### Events
6085
-
6086
- | Prop | Type | Default | Description |
6087
- |---|---|---|---|
6088
- | `onUse` | `(id: string) => void` | — | A tool was taken.<br>Shown in: [Modes and actions](#/dock/modes-and-actions), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
6089
-
6090
- Also takes every attribute of `<div>` – without `onSelect`.
6091
-
6092
- ##### `DockTool`
6093
-
6094
- | Prop | Type | Default | Description |
6095
- |---|---|---|---|
6096
- | `id` *required* | `string` | — | What is reported on taking.<br>Shown in: [A tool strip](#/dock/a-tool-strip), [Four resting places](#/dock/four-resting-places), [Modes and actions](#/dock/modes-and-actions) and 1 more |
6097
- | `label` *required* | `string` | — | The name. It reaches the eye through the tooltip and the screen reader through the accessible name - it never stands written, because a standing dock has no room for text.<br>Shown in: [A tool strip](#/dock/a-tool-strip), [Four resting places](#/dock/four-resting-places), [Modes and actions](#/dock/modes-and-actions) and 1 more |
6098
- | `icon` *required* | `ReactNode` | — | The glyph. Drawn according to `packages/core/docs/glyphs.md`: only `currentColor`.<br>Shown in: [A tool strip](#/dock/a-tool-strip), [Four resting places](#/dock/four-resting-places), [Modes and actions](#/dock/modes-and-actions) and 1 more |
6099
- | `disabled` | `boolean` | — | Shows the tool but does not let it be taken. It stays standing in the strip: a dock whose tools come and go grows and shrinks under the hand reaching for them.<br>Shown in: [Modes and actions](#/dock/modes-and-actions), [Move the dock, and where it does not fit](#/dock/room-and-no-room) |
6100
-
6101
- ##### Types on this page
6102
-
6103
- ###### `DockPlace`
6104
-
6105
- The outside of the resting place: one of the four edges of the host.
6106
- There is no fifth and no corner.
6107
-
6108
- ```ts
6109
- type DockPlace = "top" | "right" | "bottom" | "left";
6110
- ```
6111
-
6112
- #### Known limits
6113
-
6114
- - No free position and no corner: four resting places only ([ADR-0013](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0013-a-dock-snaps-it-does-not-follow.md)).
6115
- - No overflow menu and no shrinking; a dock with more tools than an edge holds is refused at that edge.
6116
- - It does not remember its place beyond its own life; keep it in the user's settings through `place`.
6117
-
6118
- What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
6119
-
6120
5642
  ## Typography
6121
5643
 
6122
5644
  The type a screen is set in.
@@ -6475,9 +5997,9 @@ export default function IncidentSummary() {
6475
5997
  | Prop | Type | Default | Description |
6476
5998
  |---|---|---|---|
6477
5999
  | `as` | `ElementType` | `"p"` | Element to render as.<br>Shown in: [Tones and weights](#/typography/tones-and-weights), [Set an incident summary](#/typography/incident-summary), [Use the language in your own components (Language)](#/language/own-components) and 16 more |
6478
- | `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#/typography/configurator-typography), [Sizes](#/typography/sizes), [Tones and weights](#/typography/tones-and-weights) and 131 more |
6479
- | `weight` | [`TextWeight`](#type-TextWeight)<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 16 more |
6480
- | `tone` | [`TextTone`](#type-TextTone)<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 96 more |
6000
+ | `size` | [`TextSize`](#type-TextSize)<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#/typography/configurator-typography), [Sizes](#/typography/sizes), [Tones and weights](#/typography/tones-and-weights) and 128 more |
6001
+ | `weight` | [`TextWeight`](#type-TextWeight)<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 15 more |
6002
+ | `tone` | [`TextTone`](#type-TextTone)<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tones and weights](#/typography/tones-and-weights), [Tracking and leading](#/typography/tracking-and-leading) and 93 more |
6481
6003
  | `mono` | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers.<br>Shown in: [Configurator](#/typography/configurator-typography), [Numbers and identifiers](#/typography/numbers), [Handle long values](#/typography/long-values) and 30 more |
6482
6004
  | `tracking` | [`TextTracking`](#type-TextTracking)<br>`"normal" \| "tight" \| "display" \| "caps"` | `"normal"` | Letter spacing from the token set. `caps` belongs with letterspaced capitals.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tracking and leading](#/typography/tracking-and-leading), [Set an incident summary](#/typography/incident-summary) |
6483
6005
  | `leading` | [`TextLeading`](#type-TextLeading)<br>`"normal" \| "tight"` | `"normal"` | Line spacing. `tight` for multi-line headings and key figures, where the normal spacing lets the lines fall apart.<br>Shown in: [Configurator](#/typography/configurator-typography), [Tracking and leading](#/typography/tracking-and-leading) |
@@ -7302,7 +6824,6 @@ export default function Toolbar() {
7302
6824
 
7303
6825
  - The action is clearer said than drawn → Button
7304
6826
  - Icon buttons that act on the same thing → ButtonGroup
7305
- - A floating strip of tools over a canvas → Dock
7306
6827
 
7307
6828
  #### Keyboard
7308
6829
 
@@ -10788,7 +10309,7 @@ export default function CheckADueDate() {
10788
10309
 
10789
10310
  | Prop | Type | Default | Description |
10790
10311
  |---|---|---|---|
10791
- | `onChange` *required* | `(date: Date \| null) => void` | — | Runs as soon as a day is settled - on a click in the grid, on "Today", on clearing (`null`) and on a valid input. Every one of these ways hands out local midnight; there is none that delivers a time along with it.<br>Shown in: [Configurator](#/datepicker/configurator-datepicker), [Pick a day](#/datepicker/pick-a-day), [States](#/datepicker/states) and 8 more |
10312
+ | `onChange` *required* | `(date: Date \| null) => void` | — | Runs as soon as a day is settled - on a click in the grid, on "Today" and on clearing (`null`). Every one of these ways hands out local midnight; there is none that delivers a time along with it.<br>Shown in: [Configurator](#/datepicker/configurator-datepicker), [Pick a day](#/datepicker/pick-a-day), [States](#/datepicker/states) and 8 more |
10792
10313
 
10793
10314
  Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
10794
10315
 
@@ -13899,7 +13420,7 @@ type ModalSize = "sm" | "md" | "lg";
13899
13420
 
13900
13421
  #### Known limits
13901
13422
 
13902
- - No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#/splitter) or a [Dock](#/dock).
13423
+ - No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#/splitter).
13903
13424
 
13904
13425
  What umriss deliberately does not build, and why: [ADR-0032](https://romanhaendler.github.io/umriss-ui/what-umriss-ui-is-not/).
13905
13426
 
@@ -16667,7 +16188,7 @@ The keys of [Button](#/button/keyboard-button) apply here.
16667
16188
 
16668
16189
  | Prop | Type | Default | Description |
16669
16190
  |---|---|---|---|
16670
- | `tone` | [`BadgeTone`](#type-BadgeTone)<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | `"neutral"` | What the badge stands for. There is always a word beside it: a colour on its own is not a statement.<br>Shown in: [Configurator](#/badge/configurator-badge), [Tones](#/badge/tones), [Counters](#/badge/counters) and 18 more |
16191
+ | `tone` | [`BadgeTone`](#type-BadgeTone)<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | `"neutral"` | What the badge stands for. There is always a word beside it: a colour on its own is not a statement.<br>Shown in: [Configurator](#/badge/configurator-badge), [Tones](#/badge/tones), [Counters](#/badge/counters) and 19 more |
16671
16192
  | `pill` | `boolean` | `false` | Fully rounded pill shape - for counters and key figures. The default is the slightly rounded badge shape for status labels.<br>Shown in: [Configurator](#/badge/configurator-badge), [Counters](#/badge/counters), [Fold the body (Card)](#/card/fold-the-body) and 1 more |
16672
16193
 
16673
16194
  Also takes every attribute of `<span>`.
@@ -17731,8 +17252,7 @@ Also takes every attribute of `<div>` – without `children`.
17731
17252
  The set a value is read against.
17732
17253
 
17733
17254
  The target stands beside the limits and is not one: it is missed, never
17734
- violated, and it is never the edge of a region. Conflating the two is how a
17735
- tile turns red for being above target.
17255
+ violated, and it is never the edge of a region.
17736
17256
 
17737
17257
  | Prop | Type | Default | Description |
17738
17258
  |---|---|---|---|
@@ -17759,8 +17279,7 @@ A bound: a value, a side, a severity.
17759
17279
 
17760
17280
  No tolerance band as input. A band is derived - two limits of equal
17761
17281
  severity on opposite sides enclose one - and as an input type it would
17762
- force a `null` on one edge in the one-sided case. One-sided is the common
17763
- case, not the exception.
17282
+ force a `null` on one edge in the one-sided case.
17764
17283
 
17765
17284
  | Prop | Type | Default | Description |
17766
17285
  |---|---|---|---|
@@ -17779,8 +17298,7 @@ type Side = "upper" | "lower";
17779
17298
  ###### `Severity`
17780
17299
 
17781
17300
  How seriously a violation weighs: one severity that advises and one that
17782
- calls for action. Exactly two - whoever offers five gets five colours on
17783
- the screen, and five colours are noise. For a third distinction one sets a
17301
+ calls for action. Exactly two; for a third distinction one sets a
17784
17302
  second limit.
17785
17303
 
17786
17304
  ```ts
@@ -18375,7 +17893,7 @@ dialog, a toast or an alert - one drawing at the size of its place.
18375
17893
  const CrossGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18376
17894
  ```
18377
17895
 
18378
- Used on [Dock](#/dock) and [IconButton](#/iconbutton).
17896
+ Used on [IconButton](#/iconbutton).
18379
17897
 
18380
17898
  ##### `DatePicker`
18381
17899
 
@@ -18407,12 +17925,6 @@ Used on [Sizes](#/sizes) and [DateTimeRangePicker](#/datetimerangepicker).
18407
17925
 
18408
17926
  Used on [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Switch](#/switch), [ProgressBar](#/progressbar) and [CommandPalette](#/commandpalette).
18409
17927
 
18410
- ##### `Dock`
18411
-
18412
- [Dock](#/dock) – A strip of tools that floats above one surface, a chart or a map, and rests at the edge the user moves it to (also called a floating toolbar). Reach for it when the tools act on that surface and must not take room from it.
18413
-
18414
- Used on [Dock](#/dock).
18415
-
18416
17928
  ##### `Drawer`
18417
17929
 
18418
17930
  [Drawer](#/drawer) – A modal window that slides in from the left or right edge of the screen (also called a side sheet or side panel). Reach for it for the detail of something picked from a list, while the list stays in sight behind it.
@@ -18456,7 +17968,7 @@ function FormFieldBoundary({ children }: {
18456
17968
  [Stack and Grid](#/stack-and-grid) – Children in a grid: a fixed number of columns, a list of column widths,
18457
17969
  or as many columns as fit at `minItemWidth`.
18458
17970
 
18459
- Used on [Scenarios](#/), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Card](#/card), [Splitter](#/splitter), [Dock](#/dock), [Typography](#/typography), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Checkbox](#/checkbox), [Switch](#/switch), [RadioGroup](#/radiogroup), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Modal](#/modal), [Drawer](#/drawer), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [TreeView](#/treeview), [Stat](#/stat) and [Meter](#/meter).
17971
+ Used on [Scenarios](#/), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Card](#/card), [Splitter](#/splitter), [Typography](#/typography), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Checkbox](#/checkbox), [Switch](#/switch), [RadioGroup](#/radiogroup), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Modal](#/modal), [Drawer](#/drawer), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [TreeView](#/treeview), [Stat](#/stat) and [Meter](#/meter).
18460
17972
 
18461
17973
  ##### `GridGlyph`
18462
17974
 
@@ -18467,20 +17979,13 @@ purpose, otherwise it would be a window.
18467
17979
  const GridGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18468
17980
  ```
18469
17981
 
18470
- Used on [Dock](#/dock) and [CommandPalette](#/commandpalette).
17982
+ Used on [CommandPalette](#/commandpalette).
18471
17983
 
18472
17984
  ##### `GripGlyph`
18473
17985
 
18474
- The grip a dock is moved by: two grooves, the hand needs no more. Dotted
18475
- would be the obvious form and is wrong here - dots are fill, and point 4 of
17986
+ The grip a drag is taken by: two grooves. Dots are fill, and point 4 of
18476
17987
  the specification draws with the stroke.
18477
17988
 
18478
- The grooves stand the same way in both orientations of the dock. Turning
18479
- them with it would be prettier and would need a `rotate()` in a component
18480
- whose acceptance ([ADR-0014](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0014-a-turn-that-cannot-be-a-transition.md), ticket 04) rules exactly that out - a glyph
18481
- that has to be rotated to be right is one that would be rotated along at
18482
- the change.
18483
-
18484
17989
  ```ts
18485
17990
  const GripGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18486
17991
  ```
@@ -18524,15 +18029,13 @@ Used on [Scenarios](#/), [Theming](#/theming), [Typography](#/typography) and [M
18524
18029
 
18525
18030
  ##### `MeasureGlyph`
18526
18031
 
18527
- Measuring: a line with two end marks. Not a ruler with a scale - the teeth
18032
+ Measuring: a line with two end marks. Not a ruler with a scale: the teeth
18528
18033
  would be a grey stripe at ten nominal units.
18529
18034
 
18530
18035
  ```ts
18531
18036
  const MeasureGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18532
18037
  ```
18533
18038
 
18534
- Used on [Dock](#/dock).
18535
-
18536
18039
  ##### `Menu`
18537
18040
 
18538
18041
  [Menu](#/menu) – A list of actions that opens under a button (also called a dropdown menu). Reach for it when a place has more actions than room for buttons, or for the actions of each row in a list.
@@ -18570,7 +18073,7 @@ The minus of `NumberInput`'s step buttons.
18570
18073
  const MinusGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18571
18074
  ```
18572
18075
 
18573
- Used on [Dock](#/dock) and [IconButton](#/iconbutton).
18076
+ Used on [IconButton](#/iconbutton).
18574
18077
 
18575
18078
  ##### `Modal`
18576
18079
 
@@ -18626,7 +18129,7 @@ The plus of `NumberInput`'s step buttons.
18626
18129
  const PlusGlyph: import("react").ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18627
18130
  ```
18628
18131
 
18629
- Used on [Dock](#/dock) and [IconButton](#/iconbutton).
18132
+ Used on [IconButton](#/iconbutton).
18630
18133
 
18631
18134
  ##### `Popover`
18632
18135
 
@@ -18701,7 +18204,7 @@ Used on [Splitter](#/splitter) and [CommandPalette](#/commandpalette).
18701
18204
  [Stack and Grid](#/stack-and-grid) – Children below or beside one another, spaced by a step of the spacing
18702
18205
  scale.
18703
18206
 
18704
- Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [Dock](#/dock), [Typography](#/typography), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Checkbox](#/checkbox), [Switch](#/switch), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Spinner](#/spinner), [ProgressBar](#/progressbar), [Skeleton](#/skeleton), [Alert](#/alert), [Toast](#/toast), [EmptyState](#/emptystate), [Tooltip](#/tooltip), [Popover](#/popover), [Menu](#/menu), [ContextMenu](#/contextmenu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [Accordion](#/accordion), [Stepper](#/stepper), [TreeView](#/treeview), [Badge](#/badge), [Tag](#/tag), [Stat](#/stat), [Meter](#/meter) and [Sparkline](#/sparkline).
18207
+ Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [Typography](#/typography), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Checkbox](#/checkbox), [Switch](#/switch), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Spinner](#/spinner), [ProgressBar](#/progressbar), [Skeleton](#/skeleton), [Alert](#/alert), [Toast](#/toast), [EmptyState](#/emptystate), [Tooltip](#/tooltip), [Popover](#/popover), [Menu](#/menu), [ContextMenu](#/contextmenu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [Accordion](#/accordion), [Stepper](#/stepper), [TreeView](#/treeview), [Badge](#/badge), [Tag](#/tag), [Stat](#/stat), [Meter](#/meter) and [Sparkline](#/sparkline).
18705
18208
 
18706
18209
  ##### `Stat`
18707
18210
 
@@ -18726,7 +18229,7 @@ Used on [Scenarios](#/), [Theming](#/theming), [Sizes](#/sizes), [Switch](#/swit
18726
18229
  [Tabs](#/tabs) – One tab of a `TabList`; choosing it shows the `TabPanel` of the same
18727
18230
  `value`.
18728
18231
 
18729
- Used on [Scenarios](#/), [Card](#/card), [Dock](#/dock), [Typography](#/typography), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [Textarea](#/textarea), [RadioGroup](#/radiogroup), [SegmentedControl](#/segmentedcontrol), [Select](#/select), [Alert](#/alert), [Toast](#/toast), [Tooltip](#/tooltip), [Menu](#/menu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [Accordion](#/accordion) and [Tag](#/tag).
18232
+ Used on [Scenarios](#/), [Card](#/card), [Typography](#/typography), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [Textarea](#/textarea), [RadioGroup](#/radiogroup), [SegmentedControl](#/segmentedcontrol), [Select](#/select), [Alert](#/alert), [Toast](#/toast), [Tooltip](#/tooltip), [Menu](#/menu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [Accordion](#/accordion) and [Tag](#/tag).
18730
18233
 
18731
18234
  ##### `TabList`
18732
18235
 
@@ -18770,7 +18273,7 @@ Used on [Scenarios](#/), [EmptyState](#/emptystate) and [Tag](#/tag).
18770
18273
  [Typography](#/typography) – Body text from the token set; `as` chooses the element, independent of the
18771
18274
  size.
18772
18275
 
18773
- Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [Dock](#/dock), [Typography](#/typography), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Switch](#/switch), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Spinner](#/spinner), [ProgressBar](#/progressbar), [Skeleton](#/skeleton), [Toast](#/toast), [EmptyState](#/emptystate), [Tooltip](#/tooltip), [Popover](#/popover), [Menu](#/menu), [ContextMenu](#/contextmenu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [Accordion](#/accordion), [Stepper](#/stepper), [TreeView](#/treeview), [Badge](#/badge), [Tag](#/tag), [Stat](#/stat), [Meter](#/meter) and [Sparkline](#/sparkline).
18276
+ Used on [Scenarios](#/), [UmrissProvider](#/umrissprovider), [Theming](#/theming), [Sizes](#/sizes), [Language](#/language), [Stack and Grid](#/stack-and-grid), [Divider](#/divider), [Card](#/card), [Splitter](#/splitter), [Typography](#/typography), [VisuallyHidden](#/visuallyhidden), [Button](#/button), [IconButton](#/iconbutton), [ButtonGroup](#/buttongroup), [Input](#/input), [FormField](#/formfield), [Textarea](#/textarea), [NumberInput](#/numberinput), [Slider](#/slider), [Switch](#/switch), [SegmentedControl](#/segmentedcontrol), [FileInput](#/fileinput), [Select](#/select), [Combobox](#/combobox), [MultiSelect](#/multiselect), [DatePicker](#/datepicker), [DateTimePicker](#/datetimepicker), [DateRangePicker](#/daterangepicker), [DateTimeRangePicker](#/datetimerangepicker), [Spinner](#/spinner), [ProgressBar](#/progressbar), [Skeleton](#/skeleton), [Toast](#/toast), [EmptyState](#/emptystate), [Tooltip](#/tooltip), [Popover](#/popover), [Menu](#/menu), [ContextMenu](#/contextmenu), [Modal](#/modal), [Drawer](#/drawer), [ConfirmDialog](#/confirmdialog), [CommandPalette](#/commandpalette), [Breadcrumb](#/breadcrumb), [Tabs](#/tabs), [Accordion](#/accordion), [Stepper](#/stepper), [TreeView](#/treeview), [Badge](#/badge), [Tag](#/tag), [Stat](#/stat), [Meter](#/meter) and [Sparkline](#/sparkline).
18774
18277
 
18775
18278
  ##### `Textarea`
18776
18279
 
@@ -18851,8 +18354,7 @@ const useDensity: () => Density;
18851
18354
  A component's `density`: its own value, else the density the provider
18852
18355
  explicitly configured, else its own default.
18853
18356
 
18854
- "comfortable" means "regular" here. A compact set of tokens does not exist -
18855
- that is work package B.13; here only what exists is wired up.
18357
+ "comfortable" means "regular" here. A compact set of tokens does not exist.
18856
18358
 
18857
18359
  ```ts
18858
18360
  function useDensityFor(own: "regular" | "compact" | undefined, fallback: "regular" | "compact"): "regular" | "compact";
@@ -18964,9 +18466,8 @@ Holds the scroll position and the measured heights and derives the window
18964
18466
  from them.
18965
18467
 
18966
18468
  It is measured on the first rendered row rather than taken from the caller's
18967
- value: row height depends on density, font size and zoom, and an assumption
18968
- two pixels off adds up over twenty thousand rows to a scrollbar that lies by
18969
- forty thousand pixels.
18469
+ value: row height depends on density, font size and zoom, and a small error
18470
+ adds up over many rows to a scrollbar that lies.
18970
18471
 
18971
18472
  ```ts
18972
18473
  function useVirtual(count: number, options: VirtualOptions): VirtualRows;
@@ -19044,9 +18545,7 @@ severe ones the one with the greatest excess. A warning must not hide an
19044
18545
  alarm, even where the value lies further beyond the warning.
19045
18546
 
19046
18547
  No hysteresis: that would need the previous state, and a function of a
19047
- single value has none. Exactly that is what makes this module safe to
19048
- duplicate; the trailing of an alarm belongs to its lifecycle and not to a
19049
- bound.
18548
+ single value has none.
19050
18549
 
19051
18550
  ```ts
19052
18551
  function assess(value: number | null | undefined, set?: LimitSet): Assessment;
@@ -19070,50 +18569,16 @@ is then enough.
19070
18569
  function cadence(ages: FreshnessAges): number;
19071
18570
  ```
19072
18571
 
19073
- ##### `clampedHeight`
19074
-
19075
- The height the field is allowed to take on. Without an upper bound it
19076
- grows with its content; with one, up to that many rows and then no
19077
- further.
19078
-
19079
- A line height of 0 is treated as "not measurable yet" (the font has not
19080
- been loaded), because otherwise the field visibly collapsed while
19081
- loading.
19082
-
19083
- ```ts
19084
- const clampedHeight: (measured: number, lineHeight: number, maxRows: number | undefined) => number;
19085
- ```
19086
-
19087
- ##### `collapse`
19088
-
19089
- Closes a branch. Returns the same snapshot where it is closed already.
19090
-
19091
- ```ts
19092
- function collapse<S extends Key>(snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
19093
- ```
19094
-
19095
- Used on [Scenarios](#/), [Meter](#/meter) and [Sparkline](#/sparkline).
19096
-
19097
18572
  ##### `duplicateKey`
19098
18573
 
19099
18574
  The first key that occurs twice, otherwise null. Two nodes with the same
19100
- key break the cascade and the active node silently - the companion reports
18575
+ key break the cascade and the active node silently - [`useTree`](#/api/useTree) reports
19101
18576
  that during development.
19102
18577
 
19103
18578
  ```ts
19104
18579
  function duplicateKey<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S | null;
19105
18580
  ```
19106
18581
 
19107
- ##### `expand`
19108
-
19109
- Opens a branch. Returns the same snapshot where it is open already.
19110
-
19111
- ```ts
19112
- function expand<S extends Key>(snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
19113
- ```
19114
-
19115
- Used on [TreeView](#/treeview).
19116
-
19117
18582
  ##### `freshness`
19118
18583
 
19119
18584
  The freshness of a value: its as-of time, measured against a reference time,
@@ -19134,50 +18599,14 @@ function freshness(asOf: Instant, now: Instant, ages: FreshnessAges): Freshness;
19134
18599
 
19135
18600
  Used on [Scenarios](#/) and [Stat](#/stat).
19136
18601
 
19137
- ##### `keysBetween`
19138
-
19139
- The checkable keys between two visible nodes, both ends included and
19140
- independent of their order. Whatever may not be checked drops out: the
19141
- gesture does what it can instead of nothing.
19142
-
19143
- ```ts
19144
- function keysBetween<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], from: S, to: S): S[];
19145
- ```
19146
-
19147
18602
  ##### `mergeLanguage`
19148
18603
 
19149
18604
  Builds a complete instance from the default and a partial value.
19150
18605
 
19151
18606
  ```ts
19152
- function mergeLanguage(optionen: LanguageOptions | undefined): Language;
18607
+ function mergeLanguage(options: LanguageOptions | undefined): Language;
19153
18608
  ```
19154
18609
 
19155
- ##### `move`
19156
-
19157
- Move the active node.
19158
-
19159
- `in` and `out` have two meanings each, and that is intended: one key goes
19160
- deeper, no matter whether something has to be opened for it first. Doing
19161
- both at once - opening *and* stepping inside - makes the tree impossible to
19162
- inspect without expanding it.
19163
-
19164
- ```ts
19165
- function move<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], snapshot: TreeSnapshot<S>, direction: Direction): TreeSnapshot<S>;
19166
- ```
19167
-
19168
- Used on [Scenarios](#/), [Alert](#/alert) and [Stat](#/stat).
19169
-
19170
- ##### `pathTo`
19171
-
19172
- The keys from the root down to the target, the target included; null if
19173
- the key does not exist in the data.
19174
-
19175
- ```ts
19176
- function pathTo<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, key: S): S[] | null;
19177
- ```
19178
-
19179
- Used on [Breadcrumb](#/breadcrumb).
19180
-
19181
18610
  ##### `rangeDays`
19182
18611
 
19183
18612
  The number of days in the range, both ends included. It is calculated on day
@@ -19190,46 +18619,12 @@ const rangeDays: (from: Date, to: Date) => number;
19190
18619
 
19191
18620
  Used on [DateRangePicker](#/daterangepicker).
19192
18621
 
19193
- ##### `remainingChars`
19194
-
19195
- How many characters still fit. Without a limit there is nothing to
19196
- report. Counts the way the browser counts (UTF-16 units, an emoji is
19197
- two), so that the display and `maxLength` say the same thing.
19198
-
19199
- Negative is allowed and intended: a value set from outside does not know
19200
- `maxLength`, and then the display is meant to show that.
19201
-
19202
- ```ts
19203
- const remainingChars: (value: string, maxLength: number | undefined) => number | undefined;
19204
- ```
19205
-
19206
- ##### `revealPath`
19207
-
19208
- Expands along a path as far as the data reaches, and reports the deepest
19209
- key it got to.
19210
-
19211
- The path is handed over and not searched for: a deep link knows it, the
19212
- data does not know it yet. If the run gets stuck at an unloaded branch,
19213
- that branch's key is the answer - and because it is expanded in the
19214
- process, it triggers the loading at the same time. The caller loads and
19215
- calls again; the same loop it already has for expanding anyway.
19216
-
19217
- The target itself is not expanded: it is meant to be shown, not opened.
19218
-
19219
- ```ts
19220
- function revealPath<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>, path: readonly S[]): {
19221
- snapshot: TreeSnapshot<S>;
19222
- reached: S | null;
19223
- };
19224
- ```
19225
-
19226
18622
  ##### `scrollForRow`
19227
18623
 
19228
18624
  The scroll position at which a row is visible - or null where it already is.
19229
18625
 
19230
- This is the arithmetic the keyboard handling hangs on. Without it the focus
19231
- moves into a row that is not rendered, and the focus ring disappears - a
19232
- virtualised table that cannot do this is worse than a paged one.
18626
+ This is the arithmetic the keyboard handling hangs on: without it the focus
18627
+ moves into a row that is not rendered.
19233
18628
 
19234
18629
  The sticky header counts against the upper edge: a row standing exactly at
19235
18630
  `scrollTop` lies behind it.
@@ -19243,71 +18638,14 @@ function scrollForRow(index: number, { rowHeight, scrollTop, viewportHeight, hea
19243
18638
  The separators a set of formats writes, read off the formats themselves.
19244
18639
 
19245
18640
  A field that formats a number must be able to read its own output back, and
19246
- an application may have replaced `number` with anything ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md) moved the
19247
- default from German to English, which is how this came up). So the
19248
- separators are not declared a second time but measured: one number with one
19249
- decimal place, digits struck out, and what remains is the notation's own
19250
- punctuation.
18641
+ an application may have replaced `number` with anything. So the
18642
+ separators are measured: one number with one decimal place, digits struck
18643
+ out, and what remains is the notation's own punctuation.
19251
18644
 
19252
18645
  ```ts
19253
18646
  function separatorsOf(formats: Formats): Separators;
19254
18647
  ```
19255
18648
 
19256
- ##### `setActive`
19257
-
19258
- Sets the active node; `null` for none. Returns the same snapshot where
19259
- nothing changes.
19260
-
19261
- ```ts
19262
- function setActive<S extends Key>(snapshot: TreeSnapshot<S>, key: S | null): TreeSnapshot<S>;
19263
- ```
19264
-
19265
- ##### `setAnchor`
19266
-
19267
- Sets the node a range selection spans from; `null` for none. Returns the
19268
- same snapshot where nothing changes.
19269
-
19270
- ```ts
19271
- function setAnchor<S extends Key>(snapshot: TreeSnapshot<S>, key: S | null): TreeSnapshot<S>;
19272
- ```
19273
-
19274
- ##### `setChecked`
19275
-
19276
- Sets a set of nodes to checked or unchecked - and does not toggle.
19277
-
19278
- That is the decision which separates a range from a sequence of single
19279
- clicks: if it contains a branch *and* one of its children, a sequence of
19280
- toggles would touch the child twice and uncheck it again. Every target is
19281
- set together with its descendants; afterwards all ancestors of the targets
19282
- are reconciled, from the bottom up - and only those.
19283
-
19284
- ```ts
19285
- function setChecked<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>, targets: readonly S[], on: boolean): TreeSnapshot<S>;
19286
- ```
19287
-
19288
- Used on [TreeView](#/treeview).
19289
-
19290
- ##### `toggleAll`
19291
-
19292
- Everything checkable on - or empty, if everything is on already.
19293
-
19294
- ```ts
19295
- function toggleAll<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>): TreeSnapshot<S>;
19296
- ```
19297
-
19298
- ##### `toggleCheck`
19299
-
19300
- Toggle a check: cascade downwards, reconcile upwards.
19301
-
19302
- A single check is a range of one target - which is why the arithmetic
19303
- stands there only once, and the direction comes from the same definition of
19304
- "full" as in toggleAll. If the node is not checkable or does not exist, the
19305
- snapshot stays unchanged.
19306
-
19307
- ```ts
19308
- function toggleCheck<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
19309
- ```
19310
-
19311
18649
  ##### `treeModel`
19312
18650
 
19313
18651
  The visible nodes in reading order.
@@ -19324,23 +18662,6 @@ actually expanded.
19324
18662
  function treeModel<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>): readonly FlatteningEntry<K, S>[];
19325
18663
  ```
19326
18664
 
19327
- ##### `typeaheadTarget`
19328
-
19329
- The next visible node whose label starts like this - or null.
19330
-
19331
- A single letter searches **behind** the active node, so that the same
19332
- letter pressed twice jumps onwards instead of finding the same node again.
19333
- Several letters search **from** the active node, so that refining does not
19334
- jump onwards. Both are intended and are the reason why the length of the
19335
- prefix matters here.
19336
-
19337
- At the end it wraps around. Disabled and unloaded nodes are valid targets:
19338
- typeahead moves only the focus, and both are navigable.
19339
-
19340
- ```ts
19341
- function typeaheadTarget<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], prefix: string, active: S | null): S | null;
19342
- ```
19343
-
19344
18665
  ##### `verdictWeight`
19345
18666
 
19346
18667
  How heavily a verdict weighs - for sorting and comparing, as when a matrix
@@ -19452,7 +18773,7 @@ The verdict and what led to it.
19452
18773
  | `verdict` *required* | [`Verdict`](#type-Verdict)<br>`"ok" \| "unknown" \| "warning" \| "alarm"` | — | |
19453
18774
  | `limit` | [`Limit`](#type-Limit) | — | The violated limit - the same object the caller passed in. Absent where none is violated. |
19454
18775
  | `excess` | `number` | — | The amount beyond the bound, always positive. Absent where none is violated. |
19455
- | `deviation` | `number` | — | The signed distance from the target. Absent where none is set: no target means no deviation, not a deviation of zero. Two fields, because they are two numbers. A single one meaning the one thing when a bound is violated and the other otherwise reads well and is wrong at three in the morning. |
18776
+ | `deviation` | `number` | — | The signed distance from the target. Absent where none is set: no target means no deviation, not a deviation of zero. |
19456
18777
 
19457
18778
  ##### `BadgeProps`
19458
18779
 
@@ -19614,27 +18935,6 @@ type Direction = "up" | "down" | "in" | "out" | "start" | "end";
19614
18935
 
19615
18936
  Its table stands on [Divider](#/divider/type-DividerProps).
19616
18937
 
19617
- ##### `DockPlace`
19618
-
19619
- The outside of the resting place: one of the four edges of the host.
19620
- There is no fifth and no corner.
19621
-
19622
- ```ts
19623
- type DockPlace = "top" | "right" | "bottom" | "left";
19624
- ```
19625
-
19626
- Used on [Dock](#/dock).
19627
-
19628
- ##### `DockProps`
19629
-
19630
- Its table stands on [Dock](#/dock/type-DockProps).
19631
-
19632
- ##### `DockTool`
19633
-
19634
- Its table stands on [Dock](#/dock/type-DockTool).
19635
-
19636
- Used on [Dock](#/dock).
19637
-
19638
18938
  ##### `DrawerProps`
19639
18939
 
19640
18940
  Its table stands on [Drawer](#/drawer/type-DrawerProps).
@@ -19738,7 +19038,7 @@ The props of a glyph: an SVG's attributes and its edge length.
19738
19038
 
19739
19039
  | Prop | Type | Default | Description |
19740
19040
  |---|---|---|---|
19741
- | `size` | `number` | `12` | Edge length in pixels. The default is the size the glyph is already drawn at today - whoever changes it changes the picture. |
19041
+ | `size` | `number` | `12` | Edge length in pixels. The default is the size the glyph is drawn at in the components. |
19742
19042
 
19743
19043
  Also takes every attribute of `<svg>` – without `children`, `viewBox`.
19744
19044
 
@@ -19807,8 +19107,7 @@ A bound: a value, a side, a severity.
19807
19107
 
19808
19108
  No tolerance band as input. A band is derived - two limits of equal
19809
19109
  severity on opposite sides enclose one - and as an input type it would
19810
- force a `null` on one edge in the one-sided case. One-sided is the common
19811
- case, not the exception.
19110
+ force a `null` on one edge in the one-sided case.
19812
19111
 
19813
19112
  | Prop | Type | Default | Description |
19814
19113
  |---|---|---|---|
@@ -19821,8 +19120,7 @@ case, not the exception.
19821
19120
  The set a value is read against.
19822
19121
 
19823
19122
  The target stands beside the limits and is not one: it is missed, never
19824
- violated, and it is never the edge of a region. Conflating the two is how a
19825
- tile turns red for being above target.
19123
+ violated, and it is never the edge of a region.
19826
19124
 
19827
19125
  | Prop | Type | Default | Description |
19828
19126
  |---|---|---|---|
@@ -19896,7 +19194,7 @@ thereby stays entirely the caller's.
19896
19194
  | `children` *required* | `(node: K) => readonly K[] \| undefined` | — | `undefined` means leaf, an empty list means empty branch - the difference is visible and intended.<br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 4 more |
19897
19195
  | `label` *required* | `(node: K) => string` | — | Text the search checks against.<br>Shown in: [A tree (TreeView)](#/treeview/a-tree), [Tick a selection (TreeView)](#/treeview/tick-a-selection), [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand) and 4 more |
19898
19196
  | `disabled` | `(node: K) => boolean` | — | May this node be checked? Without an answer: everyone may. Disabled is a statement about the checkbox, not about the node - it stays navigable ([ADR-0005](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0005-what-cannot-be-checked.md)).<br>Shown in: [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
19899
- | `unloaded` | `(node: K) => boolean` | — | Can this branch have children that are not present? Without an answer: no. Its own name instead of an overloaded return value: putting `null` against `undefined` would be the kind of distinction that is got wrong more often than right.<br>Shown in: [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand), [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
19197
+ | `unloaded` | `(node: K) => boolean` | — | Can this branch have children that are not present? Without an answer: no.<br>Shown in: [Load branches on demand (TreeView)](#/treeview/load-branches-on-demand), [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
19900
19198
  | `matches` | `(node: K) => boolean` | — | Does this node match? Given, it filters instead of the search text, which is then not read - a table matches by its columns and filters, not by one label. The path rule stays the same. |
19901
19199
 
19902
19200
  Used on [Scenarios](#/) and [TreeView](#/treeview).
@@ -19993,8 +19291,7 @@ The two characters a notation separates with.
19993
19291
  ##### `Severity`
19994
19292
 
19995
19293
  How seriously a violation weighs: one severity that advises and one that
19996
- calls for action. Exactly two - whoever offers five gets five colours on
19997
- the screen, and five colours are noise. For a third distinction one sets a
19294
+ calls for action. Exactly two; for a third distinction one sets a
19998
19295
  second limit.
19999
19296
 
20000
19297
  ```ts
@@ -20237,7 +19534,7 @@ either uncontrolled (`default…`) or controlled with its `on…` handler.
20237
19534
  | `active` | `S \| null` | — | <br>Shown in: [Dispatch a tour (Scenarios)](#/scenarios/dispatch-a-tour) |
20238
19535
  | `anchor` | `S \| null` | — | Where a range gesture spans from. Steerable from outside like the other four values, so that a range is repeatable. |
20239
19536
  | `search` | `string` | — | <br>Shown in: [Search with the path (TreeView)](#/treeview/search-with-the-path), [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
20240
- | `virtual` | [`VirtualOptions`](#type-VirtualOptions) | — | Render only what stands in the scroll area. Deliberately optional: a tree with thirty nodes should not pay for machinery it does not need, and whoever has not ordered it should not have to think about row heights.<br>Shown in: [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
19537
+ | `virtual` | [`VirtualOptions`](#type-VirtualOptions) | — | Render only what stands in the scroll area. Optional: without it every row is rendered and no row height is needed.<br>Shown in: [Search, check and reveal in a large tree (TreeView)](#/treeview/search-check-and-reveal) |
20241
19538
 
20242
19539
  ###### Events
20243
19540
 
@@ -20295,9 +19592,8 @@ Used on [UmrissProvider](#/umrissprovider).
20295
19592
  What a value is. Four outcomes, ordered by severity, `unknown` between
20296
19593
  `ok` and `warning`: a value nobody has is a reason to look.
20297
19594
 
20298
- The fourth outcome is not a `null`. A `null` would invite `?? "ok"` at the
20299
- call site, and that expression is exactly the defect this module exists
20300
- against: a dead data source would look like a healthy service.
19595
+ The fourth outcome is not a `null`, which would invite `?? "ok"` at the
19596
+ call site: a dead data source would look like a healthy service.
20301
19597
 
20302
19598
  ```ts
20303
19599
  type Verdict = "ok" | "unknown" | "warning" | "alarm";
@@ -20390,11 +19686,6 @@ Everything the library puts out as text.
20390
19686
  | `paletteHintChoose` *required* | `string` | — | |
20391
19687
  | `paletteHintClose` *required* | `string` | — | |
20392
19688
  | `paletteKeyEsc` *required* | `string` | — | The legend on the Escape key. The arrows and the return key are glyphs and therefore do not stand here; "Esc" is a word and is called something else elsewhere. |
20393
- | `dockTools` *required* | `string` | — | Accessible name of a dock's tools. |
20394
- | `dockGrip` *required* | `string` | — | Accessible name of the grip - it says what it does, not what it is. |
20395
- | `dockPlace` *required* | `(place: "top" \| "right" \| "bottom" \| "left") => string` | — | The four resting places, named. The keys are the `DockPlace` type's, and a register translates them: the German one answers "oben" where the English one answers "top". |
20396
- | `dockPlaced` *required* | `(place: string) => string` | — | What the screen reader hears once the dock has taken a place. |
20397
- | `dockNoPlace` *required* | `(place: string) => string` | — | And what it hears when a place has refused. A refusal is not a fault: a wide, flat host with no room for a standing dock is not a mistake anyone made. |
20398
19689
  | `datePlaceholder` *required* | `string` | — | |
20399
19690
  | `datePanel` *required* | `string` | — | Accessible name of the panel. Deliberately kept apart from the placeholder: whoever labels the field differently does not thereby rename the dialog. |
20400
19691
  | `dateClear` *required* | `string` | — | |
@@ -20551,42 +19842,6 @@ Everything the library puts out as text.
20551
19842
  | `freshnessStale` *required* | `string` | — | |
20552
19843
  | `freshnessDisconnected` *required* | `string` | — | |
20553
19844
  | `asOfAgo` *required* | `(duration: string) => string` | — | "As of: 3 minutes ago", where the duration comes from the formats. |
20554
- | `asOfUnknown` *required* | `string` | — | |
20555
- | `alarms` *required* | `string` | — | |
20556
- | `noAlarms` *required* | `string` | — | |
20557
- | `noAlarmsDisconnected` *required* | `string` | — | Empty, but the line is down - that is something other than quiet. |
20558
- | `acknowledgeAlarm` *required* | `string` | — | |
20559
- | `acknowledgeAlarms` *required* | `(count: number) => string` | — | Bulk acknowledgement; the number stands in the text on purpose. |
20560
- | `snoozeAlarm` *required* | `string` | — | The alarm list's snooze menu, beside "Acknowledge": the word on its button, and the sentence with the number of alarms it acts on. |
20561
- | `snoozeAlarms` *required* | `(count: number) => string` | — | |
20562
- | `snoozeDuration` *required* | `string` | — | The labels in the panel that opens with `snoozeReason`: the duration to choose and the reason to give. The panel's own button is `snoozeAlarm`. |
20563
- | `snoozeReason` *required* | `string` | — | |
20564
- | `unsnoozeAlarm` *required* | `string` | — | Ends the snooze of the ticked alarms before its time. |
20565
- | `unsnoozeAlarms` *required* | `(count: number) => string` | — | |
20566
- | `priorityHigh` *required* | `string` | — | |
20567
- | `priorityMedium` *required* | `string` | — | |
20568
- | `priorityLow` *required* | `string` | — | |
20569
- | `lifecycleActiveUnacknowledged` *required* | `string` | — | The four lifecycle states, written out. |
20570
- | `lifecycleActiveAcknowledged` *required* | `string` | — | |
20571
- | `lifecycleResolvedUnacknowledged` *required* | `string` | — | |
20572
- | `lifecycleResolvedAcknowledged` *required* | `string` | — | |
20573
- | `floodHint` *required* | `(count: number) => string` | — | "Alarm flood: 12 in quick succession" - a flood is marked, never suppressed. |
20574
- | `chatterHint` *required* | `(count: number) => string` | — | "40×" on a chattering alarm type. |
20575
- | `activeUnacknowledged` *required* | `(count: number) => string` | — | The text of the live region: the number of active unacknowledged alarms. |
20576
- | `columnAlarm` *required* | `string` | — | |
20577
- | `columnLifecycleState` *required* | `string` | — | |
20578
- | `columnPriority` *required* | `string` | — | |
20579
- | `columnRaised` *required* | `string` | — | |
20580
- | `columnDuration` *required* | `string` | — | |
20581
- | `columnFrequency` *required* | `string` | — | |
20582
- | `columnAcknowledgement` *required* | `string` | — | The two columns of the alarm model the list does not show, but which do land in the column menu and the CSV header (`alarmColumns`). |
20583
- | `columnAge` *required* | `string` | — | |
20584
- | `availabilitySnoozed` *required* | `(until: string, by: string, reason?: string) => string` | — | The availability of an alarm (ISA-18.2's special states), written out. A snooze names its end and who snoozed it - a snooze is tracked, not anonymous; the time comes from the formats. The reason, when the snooze has one, comes last and is optional: a wording of two parameters fits. |
20585
- | `availabilitySnoozedShort` *required* | `string` | — | A snooze as one word - the alarm list's badge; the sentence above stands in its tooltip and in what is spoken. |
20586
- | `availabilitySuppressed` *required* | `string` | — | |
20587
- | `availabilityDisabled` *required* | `string` | — | |
20588
- | `hiddenAlarms` *required* | `(count: number) => string` | — | "Hidden: 3" - the count of the view of snoozed, suppressed and disabled alarms, and its name where the list offers the view as a switch. |
20589
- | `columnAvailability` *required* | `string` | — | The availability column of the alarm model: the column menu and the CSV header, like the two above. |
20590
19845
  | `close` *required* | `string` | — | |
20591
19846
  | `closeToast` *required* | `string` | — | |
20592
19847
  | `toastDeckCount` *required* | `(count: number) => string` | — | The count on the front toast of a closed deck; pressing it shows them all. |