@umriss-ui/core 0.44.0 → 0.46.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.44.0
1
+ # @umriss-ui/core 0.46.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
 
@@ -1602,6 +1602,7 @@ A line lead at Brenholt Tile Works keeps this control room open through the shif
1602
1602
  4. The alarm the kiln raised stands in the table; acknowledging it records who knew when and changes nothing else on the screen.
1603
1603
  5. Choosing a batch in the plan and opening its details shows what the kiln has fired of it so far, in a drawer.
1604
1604
  6. The OEE shows its working, down to the counts it is made of, so the scrap from the excursion can be traced back.
1605
+ 7. The plant runs in Berlin time. From another zone the trend, the alarm table and the plan name the zone once; Your time shows every time in the reader's zone instead. The switch is the formats' `timeZone`, the recipe for an application that wants one.
1605
1606
 
1606
1607
  Built from: Stat, Card, ProgressBar, Drawer, Line, ControlChart, Table, Schedule, Calculation.
1607
1608
 
@@ -1616,14 +1617,20 @@ import {
1616
1617
  CardHeader,
1617
1618
  Drawer,
1618
1619
  Grid,
1620
+ LanguageProvider,
1619
1621
  Link,
1620
1622
  ModalBody,
1621
1623
  ModalFooter,
1622
1624
  ModalHeader,
1623
1625
  ProgressBar,
1626
+ SegmentedControl,
1624
1627
  Stack,
1625
1628
  Stat,
1626
1629
  Text,
1630
+ useFormats,
1631
+ useLanguage,
1632
+ zoneFields,
1633
+ zoneInstant,
1627
1634
  } from "@umriss-ui/core";
1628
1635
  import type { FreshnessAges, LimitSet } from "@umriss-ui/core";
1629
1636
  import { ControlChart, DataTable, LimitBand, LimitLine, Tooltip, useChart } from "@umriss-ui/charts";
@@ -1955,7 +1962,16 @@ const LAST = SHIFT_MINUTES - 1;
1955
1962
  const SECOND = 1000;
1956
1963
  const MIN = 60_000;
1957
1964
  /* The shift begins at 06:00 today; everything below counts from there. */
1958
- const START = new Date(new Date().setHours(6, 0, 0, 0)).getTime();
1965
+ /** The plant's zone: its shift starts at 06:00 here, whoever reads the page. */
1966
+ const PLANT_ZONE = "Europe/Berlin";
1967
+
1968
+ /** Today's 06:00 in the plant's zone, as an instant. */
1969
+ function plantSix(): number {
1970
+ const { year, month, day } = zoneFields(new Date(), PLANT_ZONE);
1971
+ return zoneInstant({ year, month, day, hours: 6 }, PLANT_ZONE).getTime();
1972
+ }
1973
+
1974
+ const START = plantSix();
1959
1975
  const at = (minute: number) => START + minute * MIN;
1960
1976
 
1961
1977
  const AGES: FreshnessAges = { stale: 5 * MIN, lost: 30 * MIN };
@@ -2101,8 +2117,6 @@ function skipTo(event: MouseEvent<HTMLAnchorElement>, id: string) {
2101
2117
  region?.scrollIntoView({ block: "start" });
2102
2118
  }
2103
2119
 
2104
- const clock = (t: number) => new Date(t).toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" });
2105
-
2106
2120
  const RANK = { high: 0, medium: 1, low: 2 } as const;
2107
2121
 
2108
2122
  /** Worst first: by priority, then what nobody has acknowledged, then the newest. */
@@ -2112,7 +2126,36 @@ const WORST_FIRST = [
2112
2126
  { column: "raised", direction: "desc" },
2113
2127
  ] as const;
2114
2128
 
2129
+ /* The switch between the plant's time and the reader's is the recipe for an
2130
+ application that wants one: it changes the zone in the formats, and every
2131
+ time below - the formats' texts, the charts through `Chart`'s `timeZone`, the
2132
+ table, the schedule - follows at once. */
2115
2133
  export default function ControlRoom() {
2134
+ const [plantTime, setPlantTime] = useState(true);
2135
+ const parent = useLanguage().formats;
2136
+ const formats = useMemo(() => (plantTime ? { ...parent, timeZone: PLANT_ZONE } : parent), [parent, plantTime]);
2137
+ return (
2138
+ <LanguageProvider formats={formats}>
2139
+ <Stack gap={4}>
2140
+ <SegmentedControl
2141
+ data-callout="7"
2142
+ aria-label="Time shown in"
2143
+ value={plantTime ? "plant" : "reader"}
2144
+ onChange={(value) => setPlantTime(value === "plant")}
2145
+ options={[
2146
+ { value: "plant", label: "Plant time" },
2147
+ { value: "reader", label: "Your time" },
2148
+ ]}
2149
+ />
2150
+ <ControlRoomBody />
2151
+ </Stack>
2152
+ </LanguageProvider>
2153
+ );
2154
+ }
2155
+
2156
+ function ControlRoomBody() {
2157
+ const { timeZone, time } = useFormats();
2158
+ const clock = (t: number) => time(new Date(t), false);
2116
2159
  const { Schedule, Lane, Subtasks } = useSchedule({ initialView: { domain: PLAN_DOMAIN } });
2117
2160
  const { minute, wall, running, setRunning } = usePlantMinute();
2118
2161
  const now = at(minute);
@@ -2139,7 +2182,7 @@ export default function ControlRoom() {
2139
2182
  const ended = one.resolved === undefined ? "Active" : "Resolved";
2140
2183
  return {
2141
2184
  id: one.id,
2142
- raised: one.raised,
2185
+ raised: new Date(one.raised),
2143
2186
  priority: type.priority,
2144
2187
  message: type.label,
2145
2188
  state: one.availability === "suppressed" || one.availability === "disabled" ? `${ended}, ${one.availability}` : ended,
@@ -2167,7 +2210,7 @@ export default function ControlRoom() {
2167
2210
  <Stack gap={4}>
2168
2211
  <Stack direction="row" gap={4} align="center" wrap>
2169
2212
  <Text mono>
2170
- {new Date(now).toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" })}
2213
+ {clock(now)}
2171
2214
  </Text>
2172
2215
  <Button size="sm" data-callout="1" disabled={minute === LAST} onClick={() => setRunning(!running)}>
2173
2216
  {running ? "Pause the shift" : "Run the shift"}
@@ -2223,7 +2266,7 @@ export default function ControlRoom() {
2223
2266
  </Region>
2224
2267
 
2225
2268
  <Region id="room-trend" title="Kiln trend" callout="3">
2226
- <kilnTrend.Chart height={240} aria-label="Kiln K1, zone 3, over the shift">
2269
+ <kilnTrend.Chart height={240} timeZone={timeZone} aria-label="Kiln K1, zone 3, over the shift">
2227
2270
  <kilnTrend.XAxis value="t" domain={[at(0), at(LAST)]} time />
2228
2271
  <kilnTrend.YAxis domain={[1170, 1250]} label="°C" />
2229
2272
  <LimitBand from={KILN.tolerance[0]} to={KILN.tolerance[1]} severity="warning" label="Tolerance" />
@@ -2237,9 +2280,7 @@ export default function ControlRoom() {
2237
2280
  <Region id="room-alarms" title="Alarms" quiet callout="4">
2238
2281
  <Stack gap={2}>
2239
2282
  <Table selectable aria-label="Alarms">
2240
- <Column value="raised" label="Raised">
2241
- {(raised) => clock(raised)}
2242
- </Column>
2283
+ <Column value="raised" label="Raised" format="time" />
2243
2284
  <Column value="priority" label="Priority" sortValue={(priority) => RANK[priority]}>
2244
2285
  {(priority) => <Badge tone={priority === "high" ? "danger" : priority === "medium" ? "warning" : "neutral"}>{priority}</Badge>}
2245
2286
  </Column>
@@ -2291,7 +2332,7 @@ export default function ControlRoom() {
2291
2332
 
2292
2333
  <Grid columns={2} gap={4}>
2293
2334
  <Region id="room-quality" title="Tile length">
2294
- <tileLength.Chart aria-label="Tile length after firing, individuals chart">
2335
+ <tileLength.Chart timeZone={timeZone} aria-label="Tile length after firing, individuals chart">
2295
2336
  <tileLength.XAxis value="t" domain={[at(0), at(LAST)]} time />
2296
2337
  <tileLength.YAxis domain={[597, 602]} label="mm" />
2297
2338
  <LimitLine value={601.5} severity="alarm" label="USL" />
@@ -2347,7 +2388,8 @@ function BatchDetails({ batch, minute, onClose }: { batch: Batch; minute: number
2347
2388
  const fired = upTo(SHIFT.readings, minute).filter((one) => batch.kiln[0] <= one.minute && one.minute < batch.kiln[1]);
2348
2389
  const total = fired.reduce((sum, one) => sum + one.fired, 0);
2349
2390
  const good = fired.reduce((sum, one) => sum + one.good, 0);
2350
- const time = (m: number) => new Date(at(m)).toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" });
2391
+ const formats = useFormats();
2392
+ const time = (m: number) => formats.time(new Date(at(m)), false);
2351
2393
 
2352
2394
  return (
2353
2395
  <>
@@ -2683,7 +2725,7 @@ From `ButtonProps` — the full table stands on [Button](#button).
2683
2725
  - No font is loaded or bundled.
2684
2726
  - Chrome 123, Firefox 120 and Safari 17.5 or newer; an older browser discards the tokens and shows the components unstyled.
2685
2727
 
2686
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
2728
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
2687
2729
 
2688
2730
  ### UmrissProvider
2689
2731
 
@@ -2894,7 +2936,7 @@ type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "
2894
2936
 
2895
2937
  - No theme and no default variants for components: a component is configured by its own props.
2896
2938
 
2897
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
2939
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
2898
2940
 
2899
2941
  ## Customising
2900
2942
 
@@ -3130,6 +3172,7 @@ One look for every component. A soft glow would read as a second, shadowy border
3130
3172
  | `--u-text-2xl` | `1.5rem` | same | — |
3131
3173
  | `--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. |
3132
3174
  | `--u-label-size` | `var(`--u-text-sm`)` | same | The size of a FormField's label. The controls keep their own text size (--u-text-sm), so a label can be set apart from the field's text. |
3175
+ | `--u-label-width` | `10rem` | same | The width of the label column of a FormField with `labelPlacement="start"`; the field takes the rest of the row. |
3133
3176
  | `--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. |
3134
3177
  | `--u-leading-tight` | `1.3` | same | — |
3135
3178
  | `--u-leading-normal` | `1.5` | same | — |
@@ -3367,7 +3410,7 @@ From `BadgeProps` — the full table stands on [Badge](#badge).
3367
3410
  - A token that names another resolves where it is declared: set `--u-color-accent` on a region, and `--u-focus-ring`, which names it on `:root`, still draws the application's accent there. Set the naming token in the region too.
3368
3411
  - A panel opened in a portal - a popover, a tooltip, a toast - takes the tokens and the `color-scheme` of the place it lands, not of the region it was opened from; inside a dialog the toasts take the tokens of the dialog's place. Give [UmrissProvider](#umrissprovider) a `portalTarget` inside the region, or override on `:root` - as for the toasts' distance from the window's edge and its sides, `--u-toast-inset-top`, `--u-toast-inset-bottom`, `--u-toast-inset-start` and `--u-toast-inset-end`.
3369
3412
 
3370
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
3413
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
3371
3414
 
3372
3415
  ### Sizes
3373
3416
 
@@ -3785,7 +3828,7 @@ type ControlSize = "sm" | "md";
3785
3828
  - A field does not grow to fill a row: give it room with the row's own layout (`flex: 1` on its FormField, or a grid).
3786
3829
  - A place that sizes itself by its content and has no width to stop at - an `auto` grid track, an inline block, a row that does not wrap - gives a field at least its natural width, as it gives a native input its own; on a narrow screen let such a row wrap, or size the track with `minmax(0, auto)`.
3787
3830
 
3788
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
3831
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
3789
3832
 
3790
3833
  ### Language
3791
3834
 
@@ -4099,6 +4142,9 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
4099
4142
  | `datePlaceholder` | Select date | Datum wählen | — |
4100
4143
  | `datePanel` | Select date | Datum wählen | Accessible name of the panel. Deliberately kept apart from the placeholder: whoever labels the field differently does not thereby rename the dialog. |
4101
4144
  | `dateClear` | Clear date | Datum leeren | — |
4145
+ | `typeDate` | Type a date | Datum eingeben | The name of the DatePicker panel's typed field. |
4146
+ | `notADate` | Not a date | Kein gültiges Datum | Announced when the typed text is no date. |
4147
+ | `dateOutOfRange(min, max)` | `` min && max ? `Not between ${min} and ${max}` : min ? `Not before ${min}` : `Not after ${max}` `` | `` min && max ? `Nicht zwischen ${min} und ${max}` : min ? `Nicht vor ${min}` : `Nicht nach ${max}` `` | Announced when the typed date lies outside `min` and `max`; each bound is written in the formats in use, `null` where there is none. |
4102
4148
  | `dateTimePlaceholder` | Select date and time | Datum und Zeit wählen | — |
4103
4149
  | `dateTimePanel` | Select date and time | Datum und Zeit wählen | — |
4104
4150
  | `dateTimeClear` | Clear date and time | Datum und Zeit leeren | — |
@@ -4109,6 +4155,8 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
4109
4155
  | `dateTimeRangeClear` | Clear range with time | Zeitraum mit Uhrzeit leeren | The clearing x of the range with time - kept apart from the range without, so that an application can call the two differently. |
4110
4156
  | `previousMonth` | Previous month | Voriger Monat | — |
4111
4157
  | `nextMonth` | Next month | Nächster Monat | — |
4158
+ | `monthSelect` | Month | Monat | Name of the calendar head's month list. |
4159
+ | `yearSelect` | Year | Jahr | Name of the calendar head's year list. |
4112
4160
  | `quickSelect` | Quick select | Schnellwahl | Group name of the preset column. |
4113
4161
  | `today` | Today | Heute | — |
4114
4162
  | `now` | Now | Jetzt | — |
@@ -4281,6 +4329,9 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
4281
4329
  | `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)). |
4282
4330
  | `freshnessStale` | Stale | Veraltet | — |
4283
4331
  | `freshnessDisconnected` | No connection | Keine Verbindung | — |
4332
+ | `qualityGood` | Good quality | Qualität gut | The three quality levels ([ADR-0077](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0077-a-bad-value-keeps-its-verdict.md)) - the THIRD axis, beside the verdict and the freshness: how far the value's source vouches for it. A bad value keeps its verdict and its age. |
4333
+ | `qualityUncertain` | Uncertain quality | Qualität unsicher | — |
4334
+ | `qualityBad` | Bad quality | Qualität schlecht | — |
4284
4335
  | `asOfAgo(duration)` | `` `As of: ${duration}` `` | `` `Stand: ${duration}` `` | "As of: 3 minutes ago", where the duration comes from the formats. |
4285
4336
 
4286
4337
  ##### Overlays and states
@@ -4336,7 +4387,18 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
4336
4387
  | `scheduleLaneCount(count)` | `` (count === 1 ? "1 lane" : `${count} lanes`) `` | `` (count === 1 ? "1 Bahn" : `${count} Bahnen`) `` | How many lanes a group holds, beside its name in the header. |
4337
4388
  | `scheduleRoleDescription` | schedule | Belegungsplan | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
4338
4389
  | `scheduleSummary(summary)` | `` `${lanes === 1 ? "1 lane" : `${lanes} lanes`}, ${subtasks === 1 ? "1 subtask" : `${subtasks} subtasks`} in view from ${from} to ${to}. ` + `${overlaps === 1 ? "1 overlap" : `${overlaps} overlaps`}, ${violated === 1 ? "1 violated dependency" : `${violated} violated dependencies`}` + (blocked === 0 ? "." : `, ${blocked === 1 ? "1 subtask" : `${blocked} subtasks`} in blocked time.`) + (milestones === 0 ? "" : ` ${milestones === 1 ? "1 milestone" : `${milestones} milestones`}.`) `` | `` `${lanes === 1 ? "1 Bahn" : `${lanes} Bahnen`}, ${subtasks === 1 ? "1 Teilaufgabe" : `${subtasks} Teilaufgaben`} im Blick von ${from} bis ${to}. ` + `${overlaps === 1 ? "1 Überschneidung" : `${overlaps} Überschneidungen`}, ${violated === 1 ? "1 verletzte Abhängigkeit" : `${violated} verletzte Abhängigkeiten`}` + (blocked === 0 ? "." : `, ${blocked === 1 ? "1 Teilaufgabe in einer Sperrzeit" : `${blocked} Teilaufgaben in Sperrzeiten`}.`) + (milestones === 0 ? "" : ` ${milestones === 1 ? "1 Meilenstein" : `${milestones} Meilensteine`}.`) `` | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
4339
- | `scheduleKeyHelp` | Left and right arrows move along the lane, up and down change the lane, Home and End go to its first and last, Page Up and Page Down jump a tenth of the view. Right bracket or T follows a dependency out, left bracket or Shift and T goes back. Space or Enter selects. Alt with left or right proposes a move, Alt and Shift a new end. Escape clears. | Pfeil links und rechts gehen die Bahn entlang, Pfeil hoch und runter wechseln die Bahn, Pos1 und Ende springen zur ersten und letzten Teilaufgabe, Bild auf und Bild ab springen ein Zehntel der Ansicht. Schließende eckige Klammer oder T folgt einer Abhängigkeit hinaus, öffnende eckige Klammer oder Umschalt und T geht zurück. Leertaste oder Eingabe wählt aus. Alt mit Pfeil links oder rechts schlägt eine Verschiebung vor, Alt und Umschalt ein neues Ende. Escape lässt die aktive Teilaufgabe los. | The keys that walk the plot, select and edit - read after the summary. |
4390
+ | `scheduleVisibleRange(from, to)` | `` `From ${from} to ${to}.` `` | `` `Von ${from} bis ${to}.` `` | The span in view, said after a zoom key. |
4391
+ | `scheduleKeyHelp` | Left and right arrows move along the lane, up and down change the lane, Home and End go to its first and last, Page Up and Page Down jump a tenth of the view. Plus zooms in, minus zooms out, zero fits all the work. Right bracket or T follows a dependency out, left bracket or Shift and T goes back. Space or Enter selects. Alt with left or right proposes a move, Alt and Shift a new end. Escape clears. | Pfeil links und rechts gehen die Bahn entlang, Pfeil hoch und runter wechseln die Bahn, Pos1 und Ende springen zur ersten und letzten Teilaufgabe, Bild auf und Bild ab springen ein Zehntel der Ansicht. Plus zoomt hinein, Minus zoomt heraus, Null zeigt die gesamte Arbeit. Schließende eckige Klammer oder T folgt einer Abhängigkeit hinaus, öffnende eckige Klammer oder Umschalt und T geht zurück. Leertaste oder Eingabe wählt aus. Alt mit Pfeil links oder rechts schlägt eine Verschiebung vor, Alt und Umschalt ein neues Ende. Escape lässt die aktive Teilaufgabe los. | The keys that walk the plot, select and edit - read after the summary. |
4392
+ | `scheduleShowData` | Show data | Daten zeigen | The disclosure key of the plan's table. |
4393
+ | `scheduleHideData` | Hide data | Daten verbergen | — |
4394
+ | `scheduleTableCaption(from, to)` | `` `Subtasks from ${from} to ${to}.` `` | `` `Teilaufgaben von ${from} bis ${to}.` `` | The open table's caption: the span it lists, both ends formatted. |
4395
+ | `scheduleColumnLane` | Lane | Bahn | The table's column heads. |
4396
+ | `scheduleColumnTask` | Task | Aufgabe | — |
4397
+ | `scheduleColumnSubtask` | Subtask | Teilaufgabe | — |
4398
+ | `scheduleColumnFrom` | From | Von | — |
4399
+ | `scheduleColumnTo` | To | Bis | — |
4400
+ | `scheduleColumnDuration` | Duration | Dauer | — |
4401
+ | `scheduleColumnFindings` | Findings | Befunde | — |
4340
4402
 
4341
4403
  ##### @umriss-ui/dashboard
4342
4404
 
@@ -4352,6 +4414,9 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
4352
4414
  | `dashboardMenu(title)` | `` `Actions for ${title}` `` | `` `Aktionen für ${title}` `` | The name of a widget's menu button: the widget's title is the thing. |
4353
4415
  | `dashboardPlace(place, of)` | `` `Place ${place} of ${of}` `` | `` `Platz ${place} von ${of}` `` | At the top of the menu, and in the name of a head the arrow keys move. |
4354
4416
  | `dashboardHead(title, place, of)` | `` `${title}, place ${place} of ${of}` `` | `` `${title}, Platz ${place} von ${of}` `` | — |
4417
+ | `dashboardHeadLocked(title, place, of)` | `` `${title}, place ${place} of ${of}, locked` `` | `` `${title}, Platz ${place} von ${of}, gesperrt` `` | The name of the head of a locked widget in the editing mode. |
4418
+ | `dashboardLocked` | Locked | Gesperrt | The word beside a locked widget's size in the mode. |
4419
+ | `dashboardLockedLine` | Locked: keeps its size and options | Gesperrt: behält Größe und Optionen | The disabled line in a locked widget's menu, where the sizes, the options and "Remove" would stand. |
4355
4420
  | `dashboardMoveStart` | Move to start | An den Anfang | — |
4356
4421
  | `dashboardMoveEarlier` | Move earlier | Weiter nach vorn | — |
4357
4422
  | `dashboardMoveLater` | Move later | Weiter nach hinten | — |
@@ -4460,6 +4525,7 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
4460
4525
  | `count` | n | n | — |
4461
4526
  | `outlierList(values, more)` | `` `${values.length + more}: ${values.join(", ")}${more > 0 ? ` and ${more} more` : ""}` `` | `` `${values.length + more}: ${values.join(", ")}${more > 0 ? ` und ${more} weitere` : ""}` `` | — |
4462
4527
  | `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. |
4528
+ | `levelRange(from, to)` | `` `from ${from} to ${to}` `` | `` `von ${from} bis ${to}` `` | Added to the name of a matrix' legend entry that has a colour bar: the range its colours span, both ends written in the matrix' format. The bar's own values are hidden from assistive technology. |
4463
4529
 
4464
4530
  #### Formats
4465
4531
 
@@ -4467,9 +4533,13 @@ Every entry of `Formats`: `DEFAULT_FORMATS` beside `GERMAN_FORMATS`. Each set as
4467
4533
 
4468
4534
  | Key | English | German | Description |
4469
4535
  |---|---|---|---|
4536
+ | `locale` | en-GB | de-DE | The language tag the set was built in: "en-GB". |
4537
+ | `timeZone` | none: the reader's own | none: the reader's own | The IANA name of the time zone instants are written in, or `undefined` for the reader's own. |
4538
+ | `timeZoneName(d)` | CET | MEZ | The zone's generic name in the set's locale: "Central European Time". Empty until the page has hydrated where no zone is named. |
4470
4539
  | `date(d)` | 17/03/2026 | 17.03.2026 | Date as displayed: 17/03/2026 |
4471
4540
  | `dateShort(d)` | 17/03 | 17.03. | Short form without the year, in the range footer: 17/03 |
4472
4541
  | `month(d)` | March 2026 | März 2026 | The calendar's month header: March 2026 |
4542
+ | `monthName(d)` | March | März | The month alone, in the calendar head's month list: March |
4473
4543
  | `dateLong(d)` | Tuesday, 17 March 2026 | Dienstag, 17. März 2026 | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
4474
4544
  | `time(d, withSeconds)` | 09:05 | 09:05 | Time of day, optionally with seconds: 09:05 or 09:05:03 |
4475
4545
  | `dateTime(d, withSeconds)` | 17/03/2026, 09:05 | 17.03.2026, 09:05 | Date and time together: 17/03/2026, 09:05 |
@@ -4495,7 +4565,7 @@ The keys of [Button](#button), [NumberInput](#numberinput), [Combobox](#combobox
4495
4565
 
4496
4566
  | Prop | Type | Default | Description |
4497
4567
  |---|---|---|---|
4498
- | `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)).<br>Shown in: [German](#language), [English and German side by side](#language), [Write numbers in your own notation](#language) and 2 more |
4568
+ | `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)).<br>Shown in: [German](#language), [English and German side by side](#language), [Write numbers in your own notation](#language) and 3 more |
4499
4569
  | `wording` | `Partial<Omit<``Wording``, "presets">> & { presets?: Partial<``Wording``["presets"]> }` | — | The presets are a register of their own and are likewise overridden entry by entry.<br>Shown in: [German](#language), [English and German side by side](#language), [Replace single entries](#language) and 2 more |
4500
4570
 
4501
4571
  ##### Types on this page
@@ -4506,11 +4576,15 @@ Everything the library knows about formatting.
4506
4576
 
4507
4577
  | Prop | Type | Default | Description |
4508
4578
  |---|---|---|---|
4579
+ | `locale` *required* | `string` | — | The language tag the set was built in: "en-GB". |
4580
+ | `timeZone` *required* | `string \| undefined` | — | The IANA name of the time zone instants are written in, or `undefined` for the reader's own.<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
4581
+ | `timeZoneName` *required* | `(d: Date) => string` | — | The zone's generic name in the set's locale: "Central European Time". Empty until the page has hydrated where no zone is named. |
4509
4582
  | `date` *required* | `(d: Date) => string` | — | Date as displayed: 17/03/2026<br>Shown in: [A span of days (DateRangePicker)](#daterangepicker) |
4510
4583
  | `dateShort` *required* | `(d: Date) => string` | — | Short form without the year, in the range footer: 17/03 |
4511
4584
  | `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
4585
+ | `monthName` *required* | `(d: Date) => string` | — | The month alone, in the calendar head's month list: March |
4512
4586
  | `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
4513
- | `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03 |
4587
+ | `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
4514
4588
  | `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05<br>Shown in: [Use the language in your own components](#language), [Pick a day (DatePicker)](#datepicker), [Set an instant (DateTimePicker)](#datetimepicker) and 1 more |
4515
4589
  | `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
4516
4590
  | `number` *required* | `(n: number, decimals?: number) => string` | — | A number in the set's notation. Without a digit count the value stands to the tenth decimal place, and a non-zero value that would read 0 there is written in scientific notation; with one it is padded and rounded to exactly that many places.<br>Shown in: [Write numbers in your own notation](#language), [Price an invoice line (NumberInput)](#numberinput), [Split a budget (Slider)](#slider) |
@@ -4564,6 +4638,9 @@ Everything the library puts out as text.
4564
4638
  | `datePlaceholder` *required* | `string` | — | |
4565
4639
  | `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. |
4566
4640
  | `dateClear` *required* | `string` | — | |
4641
+ | `typeDate` *required* | `string` | — | The name of the DatePicker panel's typed field. |
4642
+ | `notADate` *required* | `string` | — | Announced when the typed text is no date. |
4643
+ | `dateOutOfRange` *required* | `(min: string \| null, max: string \| null) => string` | — | Announced when the typed date lies outside `min` and `max`; each bound is written in the formats in use, `null` where there is none. |
4567
4644
  | `dateTimePlaceholder` *required* | `string` | — | |
4568
4645
  | `dateTimePanel` *required* | `string` | — | |
4569
4646
  | `dateTimeClear` *required* | `string` | — | |
@@ -4574,6 +4651,8 @@ Everything the library puts out as text.
4574
4651
  | `dateTimeRangeClear` *required* | `string` | — | The clearing x of the range with time - kept apart from the range without, so that an application can call the two differently. |
4575
4652
  | `previousMonth` *required* | `string` | — | |
4576
4653
  | `nextMonth` *required* | `string` | — | |
4654
+ | `monthSelect` *required* | `string` | — | Name of the calendar head's month list. |
4655
+ | `yearSelect` *required* | `string` | — | Name of the calendar head's year list. |
4577
4656
  | `quickSelect` *required* | `string` | — | Group name of the preset column. |
4578
4657
  | `today` *required* | `string` | — | <br>Shown in: [Use the language in your own components](#language) |
4579
4658
  | `now` *required* | `string` | — | |
@@ -4724,6 +4803,9 @@ Everything the library puts out as text.
4724
4803
  | `freshnessFresh` *required* | `string` | — | 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)). |
4725
4804
  | `freshnessStale` *required* | `string` | — | |
4726
4805
  | `freshnessDisconnected` *required* | `string` | — | |
4806
+ | `qualityGood` *required* | `string` | — | The three quality levels ([ADR-0077](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0077-a-bad-value-keeps-its-verdict.md)) - the THIRD axis, beside the verdict and the freshness: how far the value's source vouches for it. A bad value keeps its verdict and its age. |
4807
+ | `qualityUncertain` *required* | `string` | — | |
4808
+ | `qualityBad` *required* | `string` | — | |
4727
4809
  | `asOfAgo` *required* | `(duration: string) => string` | — | "As of: 3 minutes ago", where the duration comes from the formats. |
4728
4810
  | `close` *required* | `string` | — | |
4729
4811
  | `closeToast` *required* | `string` | — | |
@@ -4769,7 +4851,18 @@ Everything the library puts out as text.
4769
4851
  | `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
4770
4852
  | `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
4771
4853
  | `scheduleSummary` *required* | `(summary: { lanes: number; subtasks: number; from: string; to: string; overlaps: number; violated: number; /** Subtasks in blocked time; said only where there are any. */ blocked: number; /** Milestones of the plan; said only where there are any. */ milestones: number; }) => string` | — | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
4854
+ | `scheduleVisibleRange` *required* | `(from: string, to: string) => string` | — | The span in view, said after a zoom key. |
4772
4855
  | `scheduleKeyHelp` *required* | `string` | — | The keys that walk the plot, select and edit - read after the summary. |
4856
+ | `scheduleShowData` *required* | `string` | — | The disclosure key of the plan's table. |
4857
+ | `scheduleHideData` *required* | `string` | — | |
4858
+ | `scheduleTableCaption` *required* | `(from: string, to: string) => string` | — | The open table's caption: the span it lists, both ends formatted. |
4859
+ | `scheduleColumnLane` *required* | `string` | — | The table's column heads. |
4860
+ | `scheduleColumnTask` *required* | `string` | — | |
4861
+ | `scheduleColumnSubtask` *required* | `string` | — | |
4862
+ | `scheduleColumnFrom` *required* | `string` | — | |
4863
+ | `scheduleColumnTo` *required* | `string` | — | |
4864
+ | `scheduleColumnDuration` *required* | `string` | — | |
4865
+ | `scheduleColumnFindings` *required* | `string` | — | |
4773
4866
  | `dashboardEdit` *required* | `string` | — | The editing bar's buttons and the label that says the mode is on. |
4774
4867
  | `dashboardEditing` *required* | `string` | — | |
4775
4868
  | `dashboardCancel` *required* | `string` | — | |
@@ -4780,6 +4873,9 @@ Everything the library puts out as text.
4780
4873
  | `dashboardMenu` *required* | `(title: string) => string` | — | The name of a widget's menu button: the widget's title is the thing. |
4781
4874
  | `dashboardPlace` *required* | `(place: number, of: number) => string` | — | At the top of the menu, and in the name of a head the arrow keys move. |
4782
4875
  | `dashboardHead` *required* | `(title: string, place: number, of: number) => string` | — | |
4876
+ | `dashboardHeadLocked` *required* | `(title: string, place: number, of: number) => string` | — | The name of the head of a locked widget in the editing mode. |
4877
+ | `dashboardLocked` *required* | `string` | — | The word beside a locked widget's size in the mode. |
4878
+ | `dashboardLockedLine` *required* | `string` | — | The disabled line in a locked widget's menu, where the sizes, the options and "Remove" would stand. |
4783
4879
  | `dashboardMoveStart` *required* | `string` | — | |
4784
4880
  | `dashboardMoveEarlier` *required* | `string` | — | |
4785
4881
  | `dashboardMoveLater` *required* | `string` | — | |
@@ -4839,10 +4935,10 @@ Everything the library puts out as text.
4839
4935
 
4840
4936
  #### Known limits
4841
4937
 
4842
- - Two languages ship; a third is a `Wording` object of your own. No right-to-left ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md)).
4938
+ - Two languages ship; a third is a `Wording` object of your own. No right-to-left ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md)).
4843
4939
  - It holds only what the components say themselves; your labels, titles and data are yours to translate.
4844
4940
 
4845
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
4941
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
4846
4942
 
4847
4943
  ## Layout
4848
4944
 
@@ -5144,12 +5240,12 @@ The keys of [Button](#button) apply here.
5144
5240
 
5145
5241
  | Prop | Type | Default | Description |
5146
5242
  |---|---|---|---|
5147
- | `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), [Gaps](#stack-and-grid), [Wrapping](#stack-and-grid) and 70 more |
5148
- | `gap` | `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 row](#stack-and-grid), [Gaps](#stack-and-grid) and 166 more |
5149
- | `align` | `CSSProperties["alignItems"]` | — | Alignment across the direction – `alignItems` unchanged.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [A tour summary](#stack-and-grid) and 79 more |
5243
+ | `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), [Gaps](#stack-and-grid), [Wrapping](#stack-and-grid) and 71 more |
5244
+ | `gap` | `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 row](#stack-and-grid), [Gaps](#stack-and-grid) and 172 more |
5245
+ | `align` | `CSSProperties["alignItems"]` | — | Alignment across the direction – `alignItems` unchanged.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [A tour summary](#stack-and-grid) and 80 more |
5150
5246
  | `justify` | `CSSProperties["justifyContent"]` | — | Distribution along the direction – `justifyContent` unchanged.<br>Shown in: [A row](#stack-and-grid), [A tour summary](#stack-and-grid), [Name the same action in every row (VisuallyHidden)](#visuallyhidden) and 9 more |
5151
5247
  | `wrap` | `boolean` | `false` | Lets the children wrap when the line does not suffice.<br>Shown in: [Gaps](#stack-and-grid), [Wrapping](#stack-and-grid), [Sized to the value (Sizes)](#sizes) and 33 more |
5152
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
5248
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
5153
5249
 
5154
5250
  Also takes every attribute of `<div>`.
5155
5251
 
@@ -5158,9 +5254,9 @@ Also takes every attribute of `<div>`.
5158
5254
  | Prop | Type | Default | Description |
5159
5255
  |---|---|---|---|
5160
5256
  | `columns` | `number \| readonly ``GridColumnWidth``[]` | `2` | How many columns, all of one width - or a list with one width per column: a number in pixels, or `"fill"` for a share of what is left. Overridden by minItemWidth.<br>Shown in: [Fixed columns](#stack-and-grid), [Columns of their own widths](#stack-and-grid), [A token for one region (Theming)](#theming) and 5 more |
5161
- | `minItemWidth` | `string` | — | Responsive: as many columns as fit at this minimum width; wins over `columns`, a list included.<br>Shown in: [Columns by width](#stack-and-grid), [A tour summary](#stack-and-grid), [A dark region (Theming)](#theming) and 51 more |
5162
- | `gap` | `SpaceStep`<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions.<br>Shown in: [Fixed columns](#stack-and-grid), [Columns by width](#stack-and-grid), [Columns of their own widths](#stack-and-grid) and 58 more |
5163
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
5257
+ | `minItemWidth` | `string` | — | Responsive: as many columns as fit at this minimum width; wins over `columns`, a list included.<br>Shown in: [Columns by width](#stack-and-grid), [A tour summary](#stack-and-grid), [A dark region (Theming)](#theming) and 52 more |
5258
+ | `gap` | `SpaceStep`<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions.<br>Shown in: [Fixed columns](#stack-and-grid), [Columns by width](#stack-and-grid), [Columns of their own widths](#stack-and-grid) and 59 more |
5259
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
5164
5260
 
5165
5261
  Also takes every attribute of `<div>`.
5166
5262
 
@@ -5189,7 +5285,7 @@ type GridColumnWidth = number | "fill";
5189
5285
  - No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
5190
5286
  - Tiles are not arranged by the user: for a dashboard the reader arranges, see `@umriss-ui/dashboard` ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
5191
5287
 
5192
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
5288
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
5193
5289
 
5194
5290
  ### Divider
5195
5291
 
@@ -5291,7 +5387,7 @@ The keys of [Button](#button) apply here.
5291
5387
  | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | Horizontally it separates rows, vertically it separates columns.<br>Shown in: [Configurator](#divider), [Upright in a bar](#divider) |
5292
5388
  | `strong` | `boolean` | `false` | A stronger line - for section boundaries rather than row separation.<br>Shown in: [Configurator](#divider), [Strength and label](#divider), [Upright in a bar](#divider) |
5293
5389
  | `label` | `ReactNode` | — | A label in the middle. It makes the line a named separator.<br>Shown in: [Configurator](#divider), [Strength and label](#divider) |
5294
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
5390
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
5295
5391
 
5296
5392
  Also takes every attribute of `<div>`.
5297
5393
 
@@ -5561,7 +5657,7 @@ The keys of [Button](#button) apply here.
5561
5657
  | `defaultCollapsed` | `boolean` | `false` | Initial state of the collapse mechanism; afterwards it belongs to the card. Only effective together with `collapsible`.<br>Shown in: [Fold the body](#card) |
5562
5658
  | `collapsed` | `boolean` | — | Controlled: whether the body is folded away - for a card folded from outside, or one whose state is kept in an address. Only effective together with `collapsible`.<br>Shown in: [Fold from outside](#card) |
5563
5659
  | `onCollapsedChange` | `(collapsed: boolean) => void` | — | Reports the wish of the header's button. Controlled, the card folds only once `collapsed` follows; uncontrolled it is merely a message.<br>Shown in: [Fold from outside](#card) |
5564
- | `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
5660
+ | `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
5565
5661
 
5566
5662
  Also takes every attribute of the rendered element.
5567
5663
 
@@ -5573,7 +5669,7 @@ Also takes every attribute of the rendered element.
5573
5669
  | `eyebrow` | `ReactNode` | — | Small all-caps label above the title, e.g. a category.<br>Shown in: [Eyebrow and actions](#card), [A flush body](#card), [Fold the body](#card) and 17 more |
5574
5670
  | `actions` | `ReactNode` | — | Right-aligned area, e.g. buttons or badges.<br>Shown in: [Eyebrow and actions](#card), [Fold the body](#card), [Cards on a dashboard](#card) and 13 more |
5575
5671
  | `divider` | `boolean` | `false` | A dividing line below the head. Only set it where the body needs it - typically with flush data (flush tables, logs). With normal content the white space carries the hierarchy on its own.<br>Shown in: [A flush body](#card) |
5576
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
5672
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
5577
5673
 
5578
5674
  Also takes every attribute of `<div>` – without `title`.
5579
5675
 
@@ -5582,7 +5678,7 @@ Also takes every attribute of `<div>` – without `title`.
5582
5678
  | Prop | Type | Default | Description |
5583
5679
  |---|---|---|---|
5584
5680
  | `flush` | `boolean` | `false` | Removes the inner padding, e.g. for flush tables.<br>Shown in: [A flush body](#card) |
5585
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
5681
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
5586
5682
 
5587
5683
  Also takes every attribute of `<div>`.
5588
5684
 
@@ -5999,7 +6095,7 @@ export default function ThreePanes() {
5999
6095
  | `step` | `number` | `5` | How far an arrow key moves the separator, in per cent.<br>Shown in: [Keep the share](#splitter) |
6000
6096
  | `separatorLabel` | `string` | the wording's "Resize the panes" | The separator's name. The APG names it after the first pane ("Trend").<br>Shown in: [One above the other](#splitter), [Keep the share](#splitter), [Three panes](#splitter) |
6001
6097
  | `children` *required* | `[ReactNode, ReactNode]` | — | The first pane and the second, in this order.<br>Shown in: [Two panes](#splitter), [One above the other](#splitter), [Keep the share](#splitter) and 1 more |
6002
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
6098
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
6003
6099
 
6004
6100
  ###### Events
6005
6101
 
@@ -6014,7 +6110,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
6014
6110
  - Two panes per splitter, no more. Tiles are not arranged by the user: for a dashboard the reader arranges, see `@umriss-ui/dashboard` ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
6015
6111
  - It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
6016
6112
 
6017
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
6113
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
6018
6114
 
6019
6115
  ## Typography
6020
6116
 
@@ -6371,14 +6467,14 @@ export default function IncidentSummary() {
6371
6467
 
6372
6468
  | Prop | Type | Default | Description |
6373
6469
  |---|---|---|---|
6374
- | `as` | `ElementType` | `"p"` | Element to render as.<br>Shown in: [Tones and weights](#typography-2), [Set an incident summary](#typography-2), [Use the language in your own components (Language)](#language) and 17 more |
6375
- | `size` | `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-2), [Sizes](#typography-2), [Tones and weights](#typography-2) and 130 more |
6376
- | `weight` | `TextWeight`<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#typography-2), [Tones and weights](#typography-2), [Tracking and leading](#typography-2) and 15 more |
6377
- | `tone` | `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-2), [Tones and weights](#typography-2), [Tracking and leading](#typography-2) and 95 more |
6378
- | `mono` | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers.<br>Shown in: [Configurator](#typography-2), [Numbers and identifiers](#typography-2), [Handle long values](#typography-2) and 31 more |
6470
+ | `as` | `ElementType` | `"p"` | Element to render as.<br>Shown in: [Tones and weights](#typography-2), [Set an incident summary](#typography-2), [Use the language in your own components (Language)](#language) and 20 more |
6471
+ | `size` | `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-2), [Sizes](#typography-2), [Tones and weights](#typography-2) and 136 more |
6472
+ | `weight` | `TextWeight`<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#typography-2), [Tones and weights](#typography-2), [Tracking and leading](#typography-2) and 18 more |
6473
+ | `tone` | `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-2), [Tones and weights](#typography-2), [Tracking and leading](#typography-2) and 99 more |
6474
+ | `mono` | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers.<br>Shown in: [Configurator](#typography-2), [Numbers and identifiers](#typography-2), [Handle long values](#typography-2) and 34 more |
6379
6475
  | `tracking` | `TextTracking`<br>`"normal" \| "tight" \| "display" \| "caps"` | `"normal"` | Letter spacing from the token set. `caps` belongs with letterspaced capitals.<br>Shown in: [Configurator](#typography-2), [Tracking and leading](#typography-2), [Set an incident summary](#typography-2) |
6380
6476
  | `leading` | `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-2), [Tracking and leading](#typography-2) |
6381
- | `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
6477
+ | `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
6382
6478
 
6383
6479
  Also takes every attribute of the rendered element.
6384
6480
 
@@ -6390,7 +6486,7 @@ Also takes every attribute of the rendered element.
6390
6486
  | `size` | `TextSize`<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | the size matching the level | Optical size; independent of the level.<br>Shown in: [Tones and weights](#typography-2), [Choose the level apart from the size](#typography-2), [Set an incident summary](#typography-2) and 4 more |
6391
6487
  | `weight` | `TextWeight`<br>`"regular" \| "medium" \| "semibold"` | `"semibold"` | Font weight from the token set.<br>Shown in: [Tones and weights](#typography-2) |
6392
6488
  | `tone` | `TextTone`<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the heading is.<br>Shown in: [Choose the level apart from the size](#typography-2) |
6393
- | `ref` | `Ref<HTMLHeadingElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
6489
+ | `ref` | `Ref<HTMLHeadingElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
6394
6490
 
6395
6491
  Also takes every attribute of the heading.
6396
6492
 
@@ -6400,7 +6496,7 @@ Also takes every attribute of the heading.
6400
6496
  |---|---|---|---|
6401
6497
  | `size` | `TextSize`<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Size from the token set – a link has to match its body text.<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
6402
6498
  | `external` | `boolean` | `false` | Opens in a new tab and sets the necessary protective attributes.<br>Shown in: [Link out of the application](#typography-2), [Set an incident summary](#typography-2) |
6403
- | `ref` | `Ref<HTMLAnchorElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
6499
+ | `ref` | `Ref<HTMLAnchorElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
6404
6500
 
6405
6501
  Also takes every attribute of `<a>`.
6406
6502
 
@@ -6450,10 +6546,10 @@ type TextLeading = "normal" | "tight";
6450
6546
  #### Known limits
6451
6547
 
6452
6548
  - No truncation and no line length: both depend on the column, which only the application knows.
6453
- - No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md)).
6549
+ - No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md)).
6454
6550
  - `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
6455
6551
 
6456
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
6552
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
6457
6553
 
6458
6554
  ### VisuallyHidden
6459
6555
 
@@ -6569,7 +6665,7 @@ export default function ActionsInRows() {
6569
6665
  |---|---|---|---|
6570
6666
  | `as` | `E` | `"span"` | Element to render as.<br>Shown in: [Add a skip link](#visuallyhidden) |
6571
6667
  | `focusable` | `boolean` | `false` | Becomes visible as soon as the content receives the focus (skip link).<br>Shown in: [Add a skip link](#visuallyhidden) |
6572
- | `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
6668
+ | `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
6573
6669
 
6574
6670
  Also takes every attribute of the chosen element – without `as`, `ref`.
6575
6671
 
@@ -6577,7 +6673,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
6577
6673
 
6578
6674
  - It hides from the eye only; to hide something from everyone, do not render it.
6579
6675
 
6580
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
6676
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
6581
6677
 
6582
6678
  ## Actions
6583
6679
 
@@ -6863,10 +6959,10 @@ Under forced colours every variant keeps an outline where its edge would lie, an
6863
6959
 
6864
6960
  | Prop | Type | Default | Description |
6865
6961
  |---|---|---|---|
6866
- | `variant` | `ButtonVariant`<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"secondary"` | How loud the button is. `primary` exactly once per surface - two main actions side by side are no longer a main action. `ghost` is quiet in the accent, `plain` quiet and neutral.<br>Shown in: [Configurator](#button), [Variants](#button), [Sizes](#button) and 52 more |
6867
- | `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise.<br>Shown in: [Configurator](#button), [Sizes](#button), [Add an icon](#button) and 58 more |
6962
+ | `variant` | `ButtonVariant`<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"secondary"` | How loud the button is. `primary` exactly once per surface - two main actions side by side are no longer a main action. `ghost` is quiet in the accent, `plain` quiet and neutral.<br>Shown in: [Configurator](#button), [Variants](#button), [Sizes](#button) and 55 more |
6963
+ | `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise.<br>Shown in: [Configurator](#button), [Sizes](#button), [Add an icon](#button) and 60 more |
6868
6964
  | `loading` | `boolean` | `false` | Shows a loading indicator and locks the button.<br>Shown in: [Configurator](#button), [Loading and disabled](#button), [Submit a form](#button) and 4 more |
6869
- | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
6965
+ | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
6870
6966
 
6871
6967
  Also takes every attribute of `<button>`.
6872
6968
 
@@ -6906,7 +7002,7 @@ type ControlSize = "sm" | "md";
6906
7002
  - The label stays on one line; keep it short rather than let it wrap.
6907
7003
  - No icon slot: an icon goes among the children, before the label, and the button sets its size.
6908
7004
 
6909
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
7005
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
6910
7006
 
6911
7007
  ### IconButton
6912
7008
 
@@ -7129,7 +7225,7 @@ Plain buttons for the bar, a group for the pair that belongs together, a menu fo
7129
7225
 
7130
7226
  ```tsx
7131
7227
  import { useState } from "react";
7132
- import { ButtonGroup, IconButton, Menu, MenuItem, MenuSeparator, MinusGlyph, PlusGlyph, Stack, Text } from "@umriss-ui/core";
7228
+ import { ButtonGroup, IconButton, Menu, MenuItem, MenuSeparator, MinusGlyph, MoreGlyph, PlusGlyph, Stack, Text } from "@umriss-ui/core";
7133
7229
 
7134
7230
  const ZOOM = [50, 75, 100, 150, 200];
7135
7231
 
@@ -7179,7 +7275,7 @@ export default function Toolbar() {
7179
7275
  align="end"
7180
7276
  trigger={
7181
7277
  <IconButton size="sm" aria-label="More actions for the tours">
7182
- ⋯
7278
+ <MoreGlyph />
7183
7279
  </IconButton>
7184
7280
  }
7185
7281
  >
@@ -7213,17 +7309,17 @@ export default function Toolbar() {
7213
7309
 
7214
7310
  | Prop | Type | Default | Description |
7215
7311
  |---|---|---|---|
7216
- | `children` *required* | `ReactNode` | — | The icon: an SVG, a glyph of the set or an icon font's element. The button sets its size - `--u-icon-size`, `--u-icon-size-sm` at `sm`.<br>Shown in: [Configurator](#iconbutton), [Name the icon](#iconbutton), [Variants](#iconbutton) and 5 more |
7312
+ | `children` *required* | `ReactNode` | — | The icon: an SVG, a glyph of the set or an icon font's element. The button sets its size - `--u-icon-size`, `--u-icon-size-sm` at `sm`.<br>Shown in: [Configurator](#iconbutton), [Name the icon](#iconbutton), [Variants](#iconbutton) and 6 more |
7217
7313
  | `variant` | `ButtonVariant`<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"plain"` | How loud the button is; `plain` is quiet and neutral, and the rest mean what they mean on a `Button`.<br>Shown in: [Configurator](#iconbutton), [Variants](#iconbutton), [Sizes](#iconbutton) and 3 more |
7218
- | `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. From `ButtonProps`.<br>Shown in: [Configurator](#iconbutton), [Sizes](#iconbutton), [Build a toolbar](#iconbutton) and 58 more |
7314
+ | `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. From `ButtonProps`.<br>Shown in: [Configurator](#iconbutton), [Sizes](#iconbutton), [Build a toolbar](#iconbutton) and 60 more |
7219
7315
  | `loading` | `boolean` | `false` | Shows a loading indicator and locks the button. From `ButtonProps`.<br>Shown in: [Configurator](#iconbutton), [Loading and disabled](#iconbutton), [Configurator (Button)](#button) and 4 more |
7220
- | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
7316
+ | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
7221
7317
 
7222
7318
  ###### Accessibility
7223
7319
 
7224
7320
  | Prop | Type | Default | Description |
7225
7321
  |---|---|---|---|
7226
- | `aria-label` *required* | `string` | — | The name: what a screen reader announces and the tooltip shows. Required - an icon alone names nothing.<br>Shown in: [Configurator](#iconbutton), [Name the icon](#iconbutton), [Variants](#iconbutton) and 5 more |
7322
+ | `aria-label` *required* | `string` | — | The name: what a screen reader announces and the tooltip shows. Required - an icon alone names nothing.<br>Shown in: [Configurator](#iconbutton), [Name the icon](#iconbutton), [Variants](#iconbutton) and 6 more |
7227
7323
 
7228
7324
  Also takes every attribute of `<button>`.
7229
7325
 
@@ -7263,7 +7359,7 @@ type ControlSize = "sm" | "md";
7263
7359
  - The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
7264
7360
  - A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
7265
7361
 
7266
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
7362
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
7267
7363
 
7268
7364
  ### ButtonGroup
7269
7365
 
@@ -7557,7 +7653,7 @@ export default function InvoiceToolbar() {
7557
7653
  | Prop | Type | Default | Description |
7558
7654
  |---|---|---|---|
7559
7655
  | `size` | `ButtonSize`<br>`"sm" \| "md"` | the size around it, else `"md"` | The size of the buttons in it that do not say their own - one group, one height.<br>Shown in: [Variants and sizes](#buttongroup) |
7560
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
7656
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
7561
7657
 
7562
7658
  ###### Accessibility
7563
7659
 
@@ -7578,7 +7674,7 @@ Also takes every attribute of `<div>`.
7578
7674
  | `menuLabel` | `string` | the wording's "More actions" | Label of the trigger. |
7579
7675
  | `align` | `"start" \| "end"` | `"end"` | Alignment of the menu relative to the trigger.<br>Shown in: [Offer variants of the main action](#buttongroup) |
7580
7676
  | `loading` | `boolean` | `false` | Shows a loading indicator and locks the button. From `ButtonProps`.<br>Shown in: [Configurator (Button)](#button), [Loading and disabled (Button)](#button), [Submit a form (Button)](#button) and 4 more |
7581
- | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
7677
+ | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
7582
7678
 
7583
7679
  ###### Events
7584
7680
 
@@ -7623,7 +7719,7 @@ type ControlSize = "sm" | "md";
7623
7719
 
7624
7720
  - No toggle or segmented state; a choice that stays is a radio group.
7625
7721
 
7626
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
7722
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
7627
7723
 
7628
7724
  ## Forms
7629
7725
 
@@ -7868,6 +7964,42 @@ export default function TakeADeliveryAddress() {
7868
7964
  }
7869
7965
  ```
7870
7966
 
7967
+ ##### Reveal a secret
7968
+
7969
+ `Input` has no end slot, because `chars` counts the field's own chrome; the eye is your application's button beside it, and `type` is your state.
7970
+
7971
+ ```tsx
7972
+ import { useState } from "react";
7973
+ import { FormField, IconButton, Input, Stack } from "@umriss-ui/core";
7974
+
7975
+ /* Stands for the application's own icon set. */
7976
+ function Eye({ crossed }: { crossed: boolean }) {
7977
+ return (
7978
+ <svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true">
7979
+ <path d="M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8Z" fill="none" stroke="currentColor" strokeWidth="1.4" strokeLinejoin="round" />
7980
+ <circle cx="8" cy="8" r="2" fill="none" stroke="currentColor" strokeWidth="1.4" />
7981
+ {crossed && <path d="M2.5 13.5l11-11" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" />}
7982
+ </svg>
7983
+ );
7984
+ }
7985
+
7986
+ export default function RevealASecret() {
7987
+ const [token, setToken] = useState("sk_live_7f3a91c2d0b4");
7988
+ const [shown, setShown] = useState(false);
7989
+
7990
+ return (
7991
+ <Stack direction="row" gap={2} align="flex-end" style={{ maxWidth: 420 }}>
7992
+ <FormField label="API token" style={{ flex: 1 }}>
7993
+ <Input type={shown ? "text" : "password"} autoComplete="off" value={token} onChange={(event) => setToken(event.target.value)} />
7994
+ </FormField>
7995
+ <IconButton aria-label="Show the token" aria-pressed={shown} onClick={() => setShown(!shown)}>
7996
+ <Eye crossed={shown} />
7997
+ </IconButton>
7998
+ </Stack>
7999
+ );
8000
+ }
8001
+ ```
8002
+
7871
8003
  #### When to use something else
7872
8004
 
7873
8005
  - A figure that is calculated with, with a unit and a range → NumberInput
@@ -7892,7 +8024,7 @@ export default function TakeADeliveryAddress() {
7892
8024
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#input), [With an error](#input), [With an error (TreeView)](#treeview) |
7893
8025
  | `numeric` | `boolean` | `false` | Right-aligned tabular figures in Geist Mono, e.g. for key figures.<br>Shown in: [Configurator](#input), [Align reference numbers](#input), [Take a delivery address](#input) and 2 more |
7894
8026
  | `clearable` | `boolean` | `false` | Shows a gently appearing cross where there is content, which clears the input. Requires a controlled field (value) and onClear.<br>Shown in: [Clear the field](#input), [A row that holds still (Sizes)](#sizes) |
7895
- | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
8027
+ | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
7896
8028
 
7897
8029
  ###### Events
7898
8030
 
@@ -7907,7 +8039,7 @@ Also takes every attribute of `<input>` – without `size`.
7907
8039
  - No input masks or formatting while typing; check the value on leave or on submit.
7908
8040
  - No validation of its own: the error is the application's, handed to the `FormField`.
7909
8041
 
7910
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
8042
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
7911
8043
 
7912
8044
  ### FormField
7913
8045
 
@@ -7996,16 +8128,16 @@ export default function MarkAFieldAsRequired() {
7996
8128
 
7997
8129
  ##### Check an invoice on submit
7998
8130
 
7999
- Hold the values, check them all on submit, and give each `FormField` its own message; the fields follow.
8131
+ Hold the values, check them all on submit, and give each `FormField` its own message; the summary, the announcement and the focus are the application's, since only it knows its form.
8000
8132
 
8001
8133
  ```tsx
8002
- import { useState } from "react";
8134
+ import { useRef, useState } from "react";
8003
8135
  import type { FormEvent } from "react";
8004
- import { Button, DatePicker, FormField, Grid, Input, NumberInput, Select, Stack, Text } from "@umriss-ui/core";
8136
+ import { Button, Combobox, DatePicker, FormField, Grid, Input, NumberInput, Stack, Text, announce } from "@umriss-ui/core";
8005
8137
 
8006
8138
  interface Invoice {
8007
8139
  number: string;
8008
- centre: string;
8140
+ centre: string | null;
8009
8141
  amount: number | null;
8010
8142
  due: Date | null;
8011
8143
  }
@@ -8015,16 +8147,30 @@ type Errors = Partial<Record<keyof Invoice, string>>;
8015
8147
  function check(invoice: Invoice): Errors {
8016
8148
  const errors: Errors = {};
8017
8149
  if (!/^INV-\d{4}$/.test(invoice.number)) errors.number = "An invoice number reads INV- and four digits.";
8018
- if (invoice.centre === "") errors.centre = "Choose the cost centre the invoice is booked on.";
8150
+ if (invoice.centre === null) errors.centre = "Choose the cost centre the invoice is booked on.";
8019
8151
  if (invoice.amount === null || invoice.amount <= 0) errors.amount = "Give the net amount.";
8020
8152
  if (invoice.due === null) errors.due = "Give the due date from the invoice.";
8021
8153
  return errors;
8022
8154
  }
8023
8155
 
8156
+ const CENTRES = [
8157
+ { value: "CC-1200", label: "CC-1200 Marketing" },
8158
+ { value: "CC-2200", label: "CC-2200 Design" },
8159
+ { value: "CC-4300", label: "CC-4300 IT" },
8160
+ ];
8161
+
8162
+ const KEYS = ["number", "centre", "amount", "due"] as const;
8163
+
8024
8164
  export default function CheckAnInvoiceOnSubmit() {
8025
- const [invoice, setInvoice] = useState<Invoice>({ number: "INV-31", centre: "", amount: 4860, due: null });
8165
+ const [invoice, setInvoice] = useState<Invoice>({ number: "INV-31", centre: null, amount: 4860, due: null });
8026
8166
  const [errors, setErrors] = useState<Errors>({});
8027
8167
  const [booked, setBooked] = useState(false);
8168
+ /* Every focus goes through the control's own ref; a DatePicker's is its trigger. */
8169
+ const numberRef = useRef<HTMLInputElement>(null);
8170
+ const centreRef = useRef<HTMLInputElement>(null);
8171
+ const amountRef = useRef<HTMLInputElement>(null);
8172
+ const dueRef = useRef<HTMLButtonElement>(null);
8173
+ const focus = (key: (typeof KEYS)[number]) => ({ number: numberRef, centre: centreRef, amount: amountRef, due: dueRef })[key].current?.focus();
8028
8174
  const set = (patch: Partial<Invoice>) => setInvoice((previous) => ({ ...previous, ...patch }));
8029
8175
 
8030
8176
  const submit = (event: FormEvent) => {
@@ -8032,30 +8178,52 @@ export default function CheckAnInvoiceOnSubmit() {
8032
8178
  const next = check(invoice);
8033
8179
  setErrors(next);
8034
8180
  setBooked(Object.keys(next).length === 0);
8181
+ const failed = KEYS.filter((key) => next[key] !== undefined);
8182
+ if (failed.length === 0) return;
8183
+ announce(failed.length === 1 ? "1 problem with the invoice." : `${failed.length} problems with the invoice.`);
8184
+ focus(failed[0]!);
8035
8185
  };
8036
8186
 
8187
+ const problems = KEYS.filter((key) => errors[key] !== undefined);
8188
+
8037
8189
  return (
8038
8190
  <form onSubmit={submit} noValidate style={{ maxWidth: 560 }}>
8039
8191
  <Stack gap={4}>
8192
+ {problems.length > 0 && (
8193
+ <section aria-labelledby="invoice-problems" style={{ border: "1px solid var(--u-color-danger)", borderRadius: 6, padding: "var(--u-space-3) var(--u-space-4)" }}>
8194
+ <Text as="h3" id="invoice-problems" size="md" weight="semibold">
8195
+ {problems.length === 1 ? "There is 1 problem" : `There are ${problems.length} problems`}
8196
+ </Text>
8197
+ <Text as="ul" size="sm" style={{ margin: 0, paddingInlineStart: "var(--u-space-4)" }}>
8198
+ {problems.map((key) => (
8199
+ <li key={key}>
8200
+ <a
8201
+ href="#"
8202
+ style={{ color: "var(--u-color-danger)" }}
8203
+ onClick={(event) => {
8204
+ event.preventDefault();
8205
+ focus(key);
8206
+ }}
8207
+ >
8208
+ {errors[key]}
8209
+ </a>
8210
+ </li>
8211
+ ))}
8212
+ </Text>
8213
+ </section>
8214
+ )}
8040
8215
  <Grid minItemWidth="220px" gap={4}>
8041
8216
  <FormField label="Invoice number" required error={errors.number}>
8042
- <Input numeric value={invoice.number} onChange={(event) => set({ number: event.target.value })} />
8217
+ <Input ref={numberRef} numeric value={invoice.number} onChange={(event) => set({ number: event.target.value })} />
8043
8218
  </FormField>
8044
8219
  <FormField label="Cost centre" required error={errors.centre}>
8045
- <Select value={invoice.centre} onChange={(event) => set({ centre: event.target.value })}>
8046
- <option value="" disabled>
8047
- Choose a cost centre
8048
- </option>
8049
- <option value="CC-1200">CC-1200 Marketing</option>
8050
- <option value="CC-2200">CC-2200 Design</option>
8051
- <option value="CC-4300">CC-4300 IT</option>
8052
- </Select>
8220
+ <Combobox ref={centreRef} options={CENTRES} value={invoice.centre} onChange={(centre) => set({ centre })} placeholder="Choose a cost centre" />
8053
8221
  </FormField>
8054
8222
  <FormField label="Net amount" required error={errors.amount}>
8055
- <NumberInput value={invoice.amount} onChange={(amount) => set({ amount })} min={0} decimals={2} suffix="€" />
8223
+ <NumberInput ref={amountRef} value={invoice.amount} onChange={(amount) => set({ amount })} min={0} decimals={2} suffix="€" />
8056
8224
  </FormField>
8057
8225
  <FormField label="Due" required error={errors.due}>
8058
- <DatePicker value={invoice.due} onChange={(due) => set({ due })} clearable />
8226
+ <DatePicker ref={dueRef} value={invoice.due} onChange={(due) => set({ due })} clearable />
8059
8227
  </FormField>
8060
8228
  </Grid>
8061
8229
  <Stack direction="row" gap={3} align="center">
@@ -8074,6 +8242,44 @@ export default function CheckAnInvoiceOnSubmit() {
8074
8242
  }
8075
8243
  ```
8076
8244
 
8245
+ ##### Put the labels in a column
8246
+
8247
+ Set `labelPlacement="start"` on each field of a property panel; the labels stand in a column as wide as `--u-label-width`, and a narrow place puts each field under its label.
8248
+
8249
+ ```tsx
8250
+ import { useState } from "react";
8251
+ import { Checkbox, FormField, Input, NumberInput, Select, Stack, Switch } from "@umriss-ui/core";
8252
+
8253
+ export default function PutTheLabelsInAColumn() {
8254
+ const [budget, setBudget] = useState<number | null>(0);
8255
+ return (
8256
+ <Stack gap={3} style={{ maxWidth: 560 }}>
8257
+ <FormField label="Name" labelPlacement="start" required>
8258
+ <Input defaultValue="Invoice review" />
8259
+ </FormField>
8260
+ <FormField label="Cost centre" labelPlacement="start" hint="As on the budget sheet, for example CC-2100.">
8261
+ <Input defaultValue="CC-2100" />
8262
+ </FormField>
8263
+ <FormField label="Budget" labelPlacement="start" error="The budget must be above zero.">
8264
+ <NumberInput value={budget} onChange={setBudget} />
8265
+ </FormField>
8266
+ <FormField label="Owner" labelPlacement="start">
8267
+ <Select defaultValue="finance">
8268
+ <option value="finance">Finance</option>
8269
+ <option value="sales">Sales</option>
8270
+ </Select>
8271
+ </FormField>
8272
+ <FormField label="Archived" labelPlacement="start">
8273
+ <Switch label="Hide from the overview" />
8274
+ </FormField>
8275
+ <FormField label="Approval" labelPlacement="start">
8276
+ <Checkbox label="Checked by a second person" />
8277
+ </FormField>
8278
+ </Stack>
8279
+ );
8280
+ }
8281
+ ```
8282
+
8077
8283
  #### Keyboard
8078
8284
 
8079
8285
  The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox), [Select](#select), [DatePicker](#datepicker) and [Button](#button) apply here.
@@ -8084,12 +8290,13 @@ The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox),
8084
8290
 
8085
8291
  | Prop | Type | Default | Description |
8086
8292
  |---|---|---|---|
8087
- | `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 78 more |
8088
- | `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 33 more |
8089
- | `error` | `ReactNode` | — | Error message; it marks the field as invalid at the same time.<br>Shown in: [Configurator](#formfield), [Show an error](#formfield), [Check an invoice on submit](#formfield) and 22 more |
8090
- | `required` | `boolean` | `false` | Sets the required mark on the label and `aria-required` on the field - on Input, Select, Textarea, NumberInput, Combobox, RadioGroup and Checkbox. The triggers of the pickers and of the MultiSelect are buttons, on which `aria-required` is not a permitted attribute; there the mark carries it alone. It validates nothing - validation belongs to the caller ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).<br>Shown in: [Configurator](#formfield), [Mark a field as required](#formfield), [Check an invoice on submit](#formfield) and 9 more |
8293
+ | `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 87 more |
8294
+ | `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 37 more |
8295
+ | `error` | `ReactNode` | — | Error message; it marks the field as invalid at the same time.<br>Shown in: [Configurator](#formfield), [Show an error](#formfield), [Check an invoice on submit](#formfield) and 23 more |
8296
+ | `required` | `boolean` | `false` | Sets the required mark on the label and `aria-required` on the field - on Input, Select, Textarea, NumberInput, Combobox, RadioGroup and Checkbox. The triggers of the pickers and of the MultiSelect are buttons, on which `aria-required` is not a permitted attribute; there the mark carries it alone. It validates nothing - validation belongs to the caller ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).<br>Shown in: [Configurator](#formfield), [Mark a field as required](#formfield), [Check an invoice on submit](#formfield) and 10 more |
8091
8297
  | `fieldId` | `string` | — | Optional: a fixed id for the input element (instead of a generated one).<br>Shown in: [Sum up a form's errors (Alert)](#alert) |
8092
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
8298
+ | `labelPlacement` | `"top" \| "start"` | `"top"` | Where the label stands: `"top"` above the field (the default) or `"start"` beside it, in a column as wide as `--u-label-width`, level on the first baseline. `"start"` is for a column of fields and fills its place; where the row cannot hold the label and 12rem of field, the field wraps under the label. A `Grid` of fields keeps `"top"`.<br>Shown in: [Put the labels in a column](#formfield) |
8299
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [Check an invoice on submit](#formfield), [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover) and 4 more |
8093
8300
 
8094
8301
  Also takes every attribute of `<div>`.
8095
8302
 
@@ -8098,7 +8305,7 @@ Also takes every attribute of `<div>`.
8098
8305
  - No validation: the caller's form library decides; pass `error` ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)). No form state and no submit handling either.
8099
8306
  - One field per `FormField`; a group of fields that share one label is a fieldset of your own.
8100
8307
 
8101
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
8308
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
8102
8309
 
8103
8310
  ### Textarea
8104
8311
 
@@ -8278,7 +8485,7 @@ With `showCount` the characters left stand in a polite live region: a screen rea
8278
8485
  | `maxRows` | `number` | — | Upper bound for `autoGrow` in rows; beyond it the field scrolls.<br>Shown in: [Grow with the text](#textarea), [Resolve an incident (Scenarios)](#resolve-an-incident), [Approve spending against a budget (Scenarios)](#approve-spending-against-a-budget) |
8279
8486
  | `showCount` | `boolean` | `false` | Shows at the bottom right how many characters still fit. Needs `maxLength`.<br>Shown in: [Count the characters](#textarea) |
8280
8487
  | `resize` | `"none" \| "vertical"` | `"none"` while the field grows by itself, else `"vertical"` | Whether the browser's handle for dragging is offered.<br>Shown in: [Configurator](#textarea) |
8281
- | `ref` | `Ref<HTMLTextAreaElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
8488
+ | `ref` | `Ref<HTMLTextAreaElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
8282
8489
 
8283
8490
  Also takes every attribute of `<textarea>` – without `cols`.
8284
8491
 
@@ -8286,7 +8493,7 @@ Also takes every attribute of `<textarea>` – without `cols`.
8286
8493
 
8287
8494
  - Plain text only: no formatting, mentions or rich text.
8288
8495
 
8289
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
8496
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
8290
8497
 
8291
8498
  ### NumberInput
8292
8499
 
@@ -8522,7 +8729,7 @@ export default function YearWithoutGrouping() {
8522
8729
 
8523
8730
  | Prop | Type | Default | Description |
8524
8731
  |---|---|---|---|
8525
- | `value` *required* | `number \| null` | — | The number, or `null` for "not stated". An empty field is not zero: a quantity that was not measured is not a quantity of zero.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 14 more |
8732
+ | `value` *required* | `number \| null` | — | The number, or `null` for "not stated". An empty field is not zero: a quantity that was not measured is not a quantity of zero.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 15 more |
8526
8733
  | `min` | `number` | — | Lower bound. Every reported value is clamped; the text in the field follows on leaving.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 12 more |
8527
8734
  | `max` | `number` | — | Upper bound. Every reported value is clamped; the text in the field follows on leaving.<br>Shown in: [Configurator](#numberinput), [Units and decimals](#numberinput), [Keep a value in range](#numberinput) and 6 more |
8528
8735
  | `step` | `number` | `1` | Step size for the arrow keys; Shift multiplies it by ten.<br>Shown in: [Configurator](#numberinput), [Units and decimals](#numberinput), [Keep a value in range](#numberinput) and 3 more |
@@ -8533,13 +8740,13 @@ export default function YearWithoutGrouping() {
8533
8740
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#numberinput), [States](#numberinput), [Set up a team (Scenarios)](#set-up-a-team) |
8534
8741
  | `chars` | `number` | — | The width in characters - room for the number; the field adds its own padding and steppers, and the room for a `prefix` and `suffix` given as text. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 10 characters wide where the place asks - in a toolbar or a row.<br>Shown in: [Configurator](#numberinput), [Sized to the value (Sizes)](#sizes) |
8535
8742
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` – by hand only needed without `FormField`.<br>Shown in: [Configurator](#numberinput), [With an error](#numberinput) |
8536
- | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
8743
+ | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
8537
8744
 
8538
8745
  ###### Events
8539
8746
 
8540
8747
  | Prop | Type | Default | Description |
8541
8748
  |---|---|---|---|
8542
- | `onChange` *required* | `(value: number \| null) => void` | — | Runs on every valid input, with `null` for the emptied field – and always clamped: what goes out lies between `min` and `max`, by every route, while typing included. Only the text in the field may still stand outside while typing; on leaving it is set to the clamped value.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 14 more |
8749
+ | `onChange` *required* | `(value: number \| null) => void` | — | Runs on every valid input, with `null` for the emptied field – and always clamped: what goes out lies between `min` and `max`, by every route, while typing included. Only the text in the field may still stand outside while typing; on leaving it is set to the clamped value.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 15 more |
8543
8750
 
8544
8751
  Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`, `type`, `value`.
8545
8752
 
@@ -8548,7 +8755,7 @@ Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`
8548
8755
  - No expressions: “12*4” is not calculated.
8549
8756
  - No currency conversion; the unit is a label.
8550
8757
 
8551
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
8758
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
8552
8759
 
8553
8760
  ### Slider
8554
8761
 
@@ -8716,7 +8923,7 @@ export default function SplitABudget() {
8716
8923
  | `marks` | `readonly ``SliderMark``[]` | — | Values marked on the track; an object with a `label` writes the word beneath its mark. A mark shows a value, it does not catch the thumb.<br>Shown in: [Units and marks](#slider), [Set roughly, then exactly](#slider), [Split a budget](#slider) and 1 more |
8717
8924
  | `format` | `(value: number) => string` | the number in the formats' notation, with as many decimals as the step has | The value as text: for the readout and for the screen reader (`aria-valuetext`).<br>Shown in: [Units and marks](#slider), [Set roughly, then exactly](#slider), [Split a budget](#slider) and 3 more |
8718
8925
  | `showValue` | `boolean` | `true` | The value in mono beside the track.<br>Shown in: [Configurator](#slider), [Units and marks](#slider), [Set roughly, then exactly](#slider) and 1 more |
8719
- | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
8926
+ | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
8720
8927
 
8721
8928
  ###### Events
8722
8929
 
@@ -8741,7 +8948,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
8741
8948
  - One thumb: no range with two ends.
8742
8949
  - Marks show values; they do not catch the thumb.
8743
8950
 
8744
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
8951
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
8745
8952
 
8746
8953
  ### Checkbox
8747
8954
 
@@ -8855,9 +9062,9 @@ export default function SelectAllWithAMixedState() {
8855
9062
 
8856
9063
  | Prop | Type | Default | Description |
8857
9064
  |---|---|---|---|
8858
- | `label` | `ReactNode` | — | Label to the right of the checkbox.<br>Shown in: [Configurator](#checkbox), [Checkbox](#checkbox), [States](#checkbox) and 10 more |
9065
+ | `label` | `ReactNode` | — | Label to the right of the checkbox.<br>Shown in: [Configurator](#checkbox), [Checkbox](#checkbox), [States](#checkbox) and 11 more |
8859
9066
  | `indeterminate` | `boolean` | `false` | Partially checked (e.g. "select all" with a mixed selection).<br>Shown in: [Configurator](#checkbox), [States](#checkbox), [Select all with a mixed state](#checkbox) |
8860
- | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
9067
+ | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
8861
9068
 
8862
9069
  Also takes every attribute of `<input>` – without `size`, `type`.
8863
9070
 
@@ -9058,10 +9265,10 @@ export default function SettingsOfAService() {
9058
9265
 
9059
9266
  | Prop | Type | Default | Description |
9060
9267
  |---|---|---|---|
9061
- | `label` | `ReactNode` | — | Label to the right of the switch.<br>Shown in: [Configurator](#switch), [On and off](#switch), [States and sizes](#switch) and 13 more |
9268
+ | `label` | `ReactNode` | — | Label to the right of the switch.<br>Shown in: [Configurator](#switch), [On and off](#switch), [States and sizes](#switch) and 15 more |
9062
9269
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#switch), [States and sizes](#switch) |
9063
9270
  | `invalid` | `boolean` | — | Marks the switch as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#switch), [With an error](#switch) |
9064
- | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
9271
+ | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
9065
9272
 
9066
9273
  Also takes every attribute of `<input>` – without `role`, `size`, `type`.
9067
9274
 
@@ -9069,7 +9276,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
9069
9276
 
9070
9277
  - No pending or loading state; while your application applies the change, disable the switch or say so beside it.
9071
9278
 
9072
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
9279
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
9073
9280
 
9074
9281
  ### RadioGroup
9075
9282
 
@@ -9224,7 +9431,7 @@ export default function States() {
9224
9431
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#radiogroup), [States](#radiogroup) |
9225
9432
  | `disabled` | `boolean` | `false` | Disables the whole group. `RadioOption` disables single possibilities.<br>Shown in: [Configurator](#radiogroup), [States](#radiogroup) |
9226
9433
  | `name` | `string` | a generated one | Name of the radio group within the form. |
9227
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
9434
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
9228
9435
 
9229
9436
  ###### Events
9230
9437
 
@@ -9501,21 +9708,21 @@ export default function DrawnAsAField() {
9501
9708
 
9502
9709
  | Prop | Type | Default | Description |
9503
9710
  |---|---|---|---|
9504
- | `options` *required* | `readonly ``SegmentedOption``<T>[]` | — | The possibilities, two to four, in the order in which they stand.<br>Shown in: [Configurator](#segmentedcontrol), [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol) and 5 more |
9711
+ | `options` *required* | `readonly ``SegmentedOption``<T>[]` | — | The possibilities, two to four, in the order in which they stand.<br>Shown in: [Configurator](#segmentedcontrol), [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol) and 6 more |
9505
9712
  | `defaultValue` | `T \| null` | — | Initial value of an uncontrolled control. Not together with `value`.<br>Shown in: [Configurator](#segmentedcontrol), [States and sizes](#segmentedcontrol), [Long words in a narrow place](#segmentedcontrol) and 3 more |
9506
- | `value` | `T \| null` | — | The chosen possibility; `null` means: none yet. Together with `onChange` the control is controlled.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol) |
9713
+ | `value` | `T \| null` | — | The chosen possibility; `null` means: none yet. Together with `onChange` the control is controlled.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
9507
9714
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#segmentedcontrol), [States and sizes](#segmentedcontrol) |
9508
9715
  | `variant` | `"field" \| "inset"` | `"inset"` | How it is drawn. `inset`: a sunken track without an edge, the choice a surface lifted out of it. `field`: a field's edge, the choice filled with ink - for a row whose fields it should match box for box.<br>Shown in: [Configurator](#segmentedcontrol), [Drawn as a field](#segmentedcontrol) |
9509
9716
  | `fill` | `boolean` | `false` | Takes the whole width its place gives it, as a field in a column does, and shares it equally between the segments. Without it the control is as wide as its words.<br>Shown in: [Configurator](#segmentedcontrol), [A theme switch](#segmentedcontrol) |
9510
9717
  | `disabled` | `boolean` | `false` | Disables the whole control. `SegmentedOption` disables single possibilities.<br>Shown in: [Configurator](#segmentedcontrol), [States and sizes](#segmentedcontrol) |
9511
9718
  | `name` | `string` | a generated one | Name of the radio group within the form. |
9512
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
9719
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
9513
9720
 
9514
9721
  ###### Events
9515
9722
 
9516
9723
  | Prop | Type | Default | Description |
9517
9724
  |---|---|---|---|
9518
- | `onChange` | `(value: T) => void` | — | Runs on every choice – on the one made with the arrow keys as well.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol) |
9725
+ | `onChange` | `(value: T) => void` | — | Runs on every choice – on the one made with the arrow keys as well.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
9519
9726
 
9520
9727
  Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
9521
9728
 
@@ -9523,8 +9730,8 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
9523
9730
 
9524
9731
  | Prop | Type | Default | Description |
9525
9732
  |---|---|---|---|
9526
- | `value` *required* | `T` | — | What comes back when this possibility is chosen.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [States and sizes](#segmentedcontrol) and 4 more |
9527
- | `label` *required* | `ReactNode` | — | The segment's word - a short one; a long label ends in an ellipsis.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [States and sizes](#segmentedcontrol) and 4 more |
9733
+ | `value` *required* | `T` | — | What comes back when this possibility is chosen.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [States and sizes](#segmentedcontrol) and 5 more |
9734
+ | `label` *required* | `ReactNode` | — | The segment's word - a short one; a long label ends in an ellipsis.<br>Shown in: [Segmented control](#segmentedcontrol), [In a field](#segmentedcontrol), [States and sizes](#segmentedcontrol) and 5 more |
9528
9735
  | `icon` | `ReactNode` | — | An icon before the word: an SVG, a glyph of the set or an icon font's element. The control sets its size - `--u-icon-size`, `--u-icon-size-sm` at `sm` - and hides it from assistive technology: the word names the possibility.<br>Shown in: [A theme switch](#segmentedcontrol) |
9529
9736
  | `disabled` | `boolean` | — | Takes the possibility out of the choice but leaves it visible.<br>Shown in: [States and sizes](#segmentedcontrol) |
9530
9737
 
@@ -9533,7 +9740,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
9533
9740
  - Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
9534
9741
  - No icons and no line of explanation in a segment; several chosen at once is not this control.
9535
9742
 
9536
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
9743
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
9537
9744
 
9538
9745
  ### FileInput
9539
9746
 
@@ -9754,6 +9961,102 @@ export default function ImportBudgets() {
9754
9961
  }
9755
9962
  ```
9756
9963
 
9964
+ ##### Progress and thumbnails
9965
+
9966
+ The field only chooses, so the files, their progress and their thumbnails are your state: `value={[]}` keeps it a drop zone, and a phone offers its camera for `capture`.
9967
+
9968
+ ```tsx
9969
+ import { useEffect, useRef, useState } from "react";
9970
+ import { Button, FileInput, FormField, ProgressBar, Stack, Text, VisuallyHidden } from "@umriss-ui/core";
9971
+
9972
+ type Phase = "waiting" | "sending" | "done" | "failed";
9973
+
9974
+ interface Entry {
9975
+ id: number;
9976
+ file: File;
9977
+ phase: Phase;
9978
+ progress: number;
9979
+ /** An object URL for an image; revoked when the entry leaves the list. */
9980
+ thumbnail: string | null;
9981
+ }
9982
+
9983
+ const WORDS: Record<Phase, string> = { waiting: "Waiting", sending: "Sending", done: "Done", failed: "Failed - remove it and try again" };
9984
+
9985
+ export default function ProgressAndThumbnails() {
9986
+ const [entries, setEntries] = useState<Entry[]>([]);
9987
+ const counter = useRef(1);
9988
+ const live = useRef(entries);
9989
+ useEffect(() => {
9990
+ live.current = entries;
9991
+ });
9992
+
9993
+ /* A simulated upload: one file at a time, a quarter every 300 ms; every second file fails at half. */
9994
+ const active = entries.find((entry) => entry.phase === "sending") ?? entries.find((entry) => entry.phase === "waiting");
9995
+ useEffect(() => {
9996
+ if (!active) return;
9997
+ const timer = setTimeout(() => {
9998
+ const progress = active.phase === "waiting" ? 0 : Math.min(1, active.progress + 0.25);
9999
+ const phase: Phase = active.id % 2 === 0 && progress >= 0.5 ? "failed" : progress >= 1 ? "done" : "sending";
10000
+ setEntries((all) => all.map((one) => (one.id === active.id ? { ...one, progress, phase } : one)));
10001
+ }, 300);
10002
+ return () => clearTimeout(timer);
10003
+ }, [active]);
10004
+
10005
+ /* What is left when the example goes. */
10006
+ useEffect(() => () => live.current.forEach((entry) => entry.thumbnail && URL.revokeObjectURL(entry.thumbnail)), []);
10007
+
10008
+ const add = (files: File[]) => {
10009
+ const added = files.map((file) => ({
10010
+ id: counter.current++,
10011
+ file,
10012
+ phase: "waiting" as Phase,
10013
+ progress: 0,
10014
+ thumbnail: file.type.startsWith("image/") ? URL.createObjectURL(file) : null,
10015
+ }));
10016
+ setEntries((all) => [...all, ...added]);
10017
+ };
10018
+
10019
+ const remove = (entry: Entry) => {
10020
+ if (entry.thumbnail) URL.revokeObjectURL(entry.thumbnail);
10021
+ setEntries((all) => all.filter((one) => one.id !== entry.id));
10022
+ };
10023
+
10024
+ return (
10025
+ <Stack gap={4} style={{ maxWidth: 480 }}>
10026
+ <FormField label="Photos of the damage" hint="Choose, drop or take a photo. The third file fails, to show that state.">
10027
+ <FileInput multiple accept="image/*" capture="environment" value={[]} onChange={add} />
10028
+ </FormField>
10029
+ {entries.length > 0 && (
10030
+ <ul aria-label="Files to send" style={{ listStyle: "none", margin: 0, padding: 0, display: "grid", gap: "var(--u-space-3)" }}>
10031
+ {entries.map((entry) => (
10032
+ <li key={entry.id} style={{ display: "flex", gap: "var(--u-space-3)", alignItems: "center" }}>
10033
+ {entry.thumbnail ? (
10034
+ <img src={entry.thumbnail} alt="" width={40} height={40} style={{ objectFit: "cover", borderRadius: 4, flex: "none" }} />
10035
+ ) : (
10036
+ <span style={{ width: 40, height: 40, flex: "none" }} />
10037
+ )}
10038
+ <Stack gap={1} style={{ flex: 1, minWidth: 0 }}>
10039
+ <Text size="sm" style={{ overflowWrap: "anywhere" }}>
10040
+ {entry.file.name}
10041
+ </Text>
10042
+ <ProgressBar label={entry.file.name} value={entry.progress} valueText={WORDS[entry.phase]} />
10043
+ <Text size="xs" tone="muted" style={entry.phase === "failed" ? { color: "var(--u-color-danger)" } : undefined}>
10044
+ {WORDS[entry.phase]}
10045
+ </Text>
10046
+ </Stack>
10047
+ <Button size="sm" variant="secondary" onClick={() => remove(entry)}>
10048
+ Remove
10049
+ <VisuallyHidden> {entry.file.name}</VisuallyHidden>
10050
+ </Button>
10051
+ </li>
10052
+ ))}
10053
+ </ul>
10054
+ )}
10055
+ </Stack>
10056
+ );
10057
+ }
10058
+ ```
10059
+
9757
10060
  #### Keyboard
9758
10061
 
9759
10062
  | Key | Action |
@@ -9766,15 +10069,15 @@ export default function ImportBudgets() {
9766
10069
 
9767
10070
  | Prop | Type | Default | Description |
9768
10071
  |---|---|---|---|
9769
- | `value` | `readonly File[]` | — | Controlled: the chosen files. Uncontrolled, the input keeps its own and starts empty.<br>Shown in: [Several files](#fileinput), [With an error](#fileinput), [Require a file before sending](#fileinput) and 1 more |
10072
+ | `value` | `readonly File[]` | — | Controlled: the chosen files. Uncontrolled, the input keeps its own and starts empty.<br>Shown in: [Several files](#fileinput), [With an error](#fileinput), [Require a file before sending](#fileinput) and 2 more |
9770
10073
  | `invalid` | `boolean` | — | Marks the input as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [With an error](#fileinput) |
9771
- | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
10074
+ | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
9772
10075
 
9773
10076
  ###### Events
9774
10077
 
9775
10078
  | Prop | Type | Default | Description |
9776
10079
  |---|---|---|---|
9777
- | `onChange` | `(files: File[]) => void` | — | Reports the files after a choice, a drop or a removal - only those `accept` takes, and one where the input takes one.<br>Shown in: [Several files](#fileinput), [With an error](#fileinput), [Require a file before sending](#fileinput) and 1 more |
10080
+ | `onChange` | `(files: File[]) => void` | — | Reports the files after a choice, a drop or a removal - only those `accept` takes, and one where the input takes one.<br>Shown in: [Several files](#fileinput), [With an error](#fileinput), [Require a file before sending](#fileinput) and 2 more |
9778
10081
 
9779
10082
  Also takes every attribute of `<input>` – without `defaultValue`, `onChange`, `size`, `type`, `value`.
9780
10083
 
@@ -9782,7 +10085,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
9782
10085
 
9783
10086
  - No upload, no progress and no size limit of its own; those belong to the application sending the files.
9784
10087
 
9785
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
10088
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
9786
10089
 
9787
10090
  ## Choosing
9788
10091
 
@@ -9964,7 +10267,7 @@ export default function ClearTheChoice() {
9964
10267
  | `chars` | `number` | — | The width in characters - room for the chosen option; the field adds its own padding, chevron and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 20 characters wide where the place asks - never as wide as its longest option.<br>Shown in: [Configurator](#select), [A row of fields (Sizes)](#sizes) |
9965
10268
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` – by hand only necessary without `FormField`.<br>Shown in: [Configurator](#select), [With an error](#select) |
9966
10269
  | `clearable` | `boolean` | `false` | Shows a × once a selection has been made, which fades in on hover/focus and empties the selection. Requires a controlled field (value) and onClear; sensible for optional selects with a placeholder option.<br>Shown in: [Clear the choice](#select) |
9967
- | `ref` | `Ref<HTMLSelectElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
10270
+ | `ref` | `Ref<HTMLSelectElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
9968
10271
 
9969
10272
  ###### Events
9970
10273
 
@@ -9978,7 +10281,7 @@ Also takes every attribute of `<select>` – without `size`.
9978
10281
 
9979
10282
  - The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
9980
10283
 
9981
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
10284
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
9982
10285
 
9983
10286
  ### Combobox
9984
10287
 
@@ -10193,6 +10496,120 @@ export default function AssignAnIncident() {
10193
10496
  }
10194
10497
  ```
10195
10498
 
10499
+ ##### Thousands of cost centres
10500
+
10501
+ A list of more than 500 options draws only the options in view; a shorter one is drawn whole. Press End in the open list for the last cost centre.
10502
+
10503
+ ```tsx
10504
+ import { useState } from "react";
10505
+ import { Combobox, FormField, Stack, Text } from "@umriss-ui/core";
10506
+
10507
+ const CENTRES = Array.from({ length: 5000 }, (_, index) => ({
10508
+ value: `cc-${index + 1}`,
10509
+ label: `CC-${String(index + 1).padStart(4, "0")} ${["Sales", "Marketing", "Engineering", "Design", "Support"][index % 5]}`,
10510
+ }));
10511
+
10512
+ export default function ThousandsOfCostCentres() {
10513
+ const [centre, setCentre] = useState<string | null>(null);
10514
+
10515
+ return (
10516
+ <Stack gap={3} style={{ maxWidth: 320 }}>
10517
+ <FormField label="Cost centre">
10518
+ <Combobox value={centre} onChange={setCentre} clearable options={CENTRES} placeholder="Type a number or a name" />
10519
+ </FormField>
10520
+ <Text size="xs" tone="muted" mono>
10521
+ value: {centre === null ? "null" : `"${centre}"`}
10522
+ </Text>
10523
+ </Stack>
10524
+ );
10525
+ }
10526
+ ```
10527
+
10528
+ ##### Search with the server
10529
+
10530
+ The field reports what is typed and shows the results as given. The debounce and the cancelling of a stale request are the application's: here 250 ms of rest and an AbortController. Type “err” for a failed request.
10531
+
10532
+ ```tsx
10533
+ import { useEffect, useState } from "react";
10534
+ import { Alert, Combobox, FormField, Stack, Text } from "@umriss-ui/core";
10535
+
10536
+ interface Customer {
10537
+ value: string;
10538
+ label: string;
10539
+ }
10540
+
10541
+ const NAMES = ["Acme Logistics", "Acorn Foods", "Alder Mills", "Birch Freight", "Cobalt Marine", "Delta Tools", "Ember Works", "Fjord Energy"];
10542
+ const CUSTOMERS: readonly Customer[] = NAMES.map((label, index) => ({ value: `c-${index + 1}`, label }));
10543
+
10544
+ /* A server that answers after 400 ms, and stops answering when it is aborted. */
10545
+ function searchCustomers(text: string, signal: AbortSignal): Promise<Customer[]> {
10546
+ return new Promise((resolve, reject) => {
10547
+ const timer = setTimeout(() => {
10548
+ if (text.toLowerCase().includes("err")) reject(new Error("The server did not answer."));
10549
+ else resolve(CUSTOMERS.filter((customer) => customer.label.toLowerCase().includes(text.toLowerCase())));
10550
+ }, 400);
10551
+ signal.addEventListener("abort", () => {
10552
+ clearTimeout(timer);
10553
+ reject(new DOMException("Aborted", "AbortError"));
10554
+ });
10555
+ });
10556
+ }
10557
+
10558
+ export default function SearchWithTheServer() {
10559
+ const [customer, setCustomer] = useState<string | null>(null);
10560
+ const [options, setOptions] = useState<readonly Customer[]>(CUSTOMERS);
10561
+ const [loading, setLoading] = useState(false);
10562
+ const [failed, setFailed] = useState(false);
10563
+ const [text, setText] = useState("");
10564
+
10565
+ // The debounce: a request starts once the typing rests, and the stale one is aborted.
10566
+ useEffect(() => {
10567
+ const controller = new AbortController();
10568
+ const timer = setTimeout(() => {
10569
+ setLoading(true);
10570
+ setFailed(false);
10571
+ searchCustomers(text, controller.signal).then(
10572
+ (found) => {
10573
+ setOptions(found);
10574
+ setLoading(false);
10575
+ },
10576
+ (error: unknown) => {
10577
+ if (error instanceof DOMException && error.name === "AbortError") return;
10578
+ setOptions([]);
10579
+ setFailed(true);
10580
+ setLoading(false);
10581
+ },
10582
+ );
10583
+ }, 250);
10584
+ return () => {
10585
+ clearTimeout(timer);
10586
+ controller.abort();
10587
+ };
10588
+ }, [text]);
10589
+
10590
+ return (
10591
+ <Stack gap={3} style={{ maxWidth: 320 }}>
10592
+ <FormField label="Customer">
10593
+ <Combobox
10594
+ value={customer}
10595
+ onChange={setCustomer}
10596
+ options={options}
10597
+ filter={false}
10598
+ loading={loading}
10599
+ onSearch={setText}
10600
+ clearable
10601
+ placeholder="Search customers"
10602
+ />
10603
+ </FormField>
10604
+ {failed && <Alert tone="danger" title="The search failed" />}
10605
+ <Text size="xs" tone="muted" mono>
10606
+ value: {customer === null ? "null" : `"${customer}"`}
10607
+ </Text>
10608
+ </Stack>
10609
+ );
10610
+ }
10611
+ ```
10612
+
10196
10613
  #### When to use something else
10197
10614
 
10198
10615
  - A short list that needs no search, with the system's picker under a finger → Select
@@ -10203,6 +10620,7 @@ export default function AssignAnIncident() {
10203
10620
  | Key | Action |
10204
10621
  |---|---|
10205
10622
  | `Arrow Down / Arrow Up` | Opens the list, then moves through the rows. |
10623
+ | `Home / End` | In a list of more than 500 options, moves to the first or last row; in a shorter one they move the caret. |
10206
10624
  | `Enter` | Chooses the active row. |
10207
10625
  | `Escape` | Closes the list. |
10208
10626
 
@@ -10212,22 +10630,25 @@ export default function AssignAnIncident() {
10212
10630
 
10213
10631
  | Prop | Type | Default | Description |
10214
10632
  |---|---|---|---|
10215
- | `options` *required* | `readonly ``ComboboxOption``<T>[]` | — | The possibilities, in their natural order. Filtered while typing; never reordered.<br>Shown in: [Configurator](#combobox), [Combobox](#combobox), [States](#combobox) and 5 more |
10216
- | `value` *required* | `T \| null` | — | The chosen value; `null` means none. Always controlled - the field keeps no second state beside the caller's.<br>Shown in: [Configurator](#combobox), [Combobox](#combobox), [States](#combobox) and 5 more |
10217
- | `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [Combobox](#combobox), [States](#combobox), [With an error](#combobox) and 3 more |
10633
+ | `options` *required* | `readonly ``ComboboxOption``<T>[]` | — | The possibilities, in their natural order. Filtered while typing; never reordered.<br>Shown in: [Configurator](#combobox), [Combobox](#combobox), [States](#combobox) and 8 more |
10634
+ | `value` *required* | `T \| null` | — | The chosen value; `null` means none. Always controlled - the field keeps no second state beside the caller's.<br>Shown in: [Configurator](#combobox), [Combobox](#combobox), [States](#combobox) and 8 more |
10635
+ | `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [Combobox](#combobox), [States](#combobox), [With an error](#combobox) and 6 more |
10218
10636
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#combobox) |
10219
10637
  | `chars` | `number` | — | The width in characters - room for the typed text and the chosen option; the field adds its own padding, chevron and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 20 characters wide where the place asks - in a toolbar or a row. The panel is never narrower than the field.<br>Shown in: [Configurator](#combobox) |
10220
10638
  | `disabled` | `boolean` | `false` | Locks field and panel.<br>Shown in: [Configurator](#combobox), [States](#combobox), [Dispatch a tour (Scenarios)](#dispatch-a-tour) |
10221
10639
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#combobox), [With an error](#combobox) |
10222
10640
  | `emptyText` | `string` | — | Text shown for an empty search result.<br>Shown in: [States](#combobox) |
10223
- | `clearable` | `boolean` | `false` | Shows a cross on selection or input that clears field and selection.<br>Shown in: [Configurator](#combobox), [Combobox](#combobox), [Assign an incident](#combobox) and 2 more |
10224
- | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
10641
+ | `clearable` | `boolean` | `false` | Shows a cross on selection or input that clears field and selection.<br>Shown in: [Configurator](#combobox), [Combobox](#combobox), [Assign an incident](#combobox) and 4 more |
10642
+ | `filter` | `boolean` | `true` | With `false` the field filters nothing: `options` are shown as given, in their order - the server's ranking. The active option returns to the first when they change while the panel is open.<br>Shown in: [Search with the server](#combobox) |
10643
+ | `loading` | `boolean` | `false` | Results are on their way: the list shows the wording's "Loading" line where it would show the empty text, below any `options` given, and is `aria-busy`.<br>Shown in: [Search with the server](#combobox) |
10644
+ | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
10225
10645
 
10226
10646
  ###### Events
10227
10647
 
10228
10648
  | Prop | Type | Default | Description |
10229
10649
  |---|---|---|---|
10230
- | `onChange` *required* | `(value: T \| null) => void` | — | Runs on choosing and on clearing (`null`). Not while typing: what is typed is a search term and not yet a value.<br>Shown in: [Configurator](#combobox), [Combobox](#combobox), [States](#combobox) and 5 more |
10650
+ | `onChange` *required* | `(value: T \| null) => void` | — | Runs on choosing and on clearing (`null`). Not while typing: what is typed is a search term and not yet a value.<br>Shown in: [Configurator](#combobox), [Combobox](#combobox), [States](#combobox) and 8 more |
10651
+ | `onSearch` | `(text: string) => void` | — | Runs on every change of the typed text - the clearing cross's too, with `""` - and not on opening or closing. For an application that fetches the matches itself: debounce and cancelling stale requests are yours.<br>Shown in: [Search with the server](#combobox) |
10231
10652
 
10232
10653
  Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
10233
10654
 
@@ -10242,9 +10663,9 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
10242
10663
  #### Known limits
10243
10664
 
10244
10665
  - No free text as a value: only an option can be chosen.
10245
- - No loading of options from a server; filter your own list and pass it in.
10666
+ - No request of its own: `onSearch` reports the typed text and you fetch, debounce and cancel; `filter={false}` shows what you return.
10246
10667
 
10247
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
10668
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
10248
10669
 
10249
10670
  ### MultiSelect
10250
10671
 
@@ -10468,6 +10889,36 @@ export default function FilterIncidentsByService() {
10468
10889
  }
10469
10890
  ```
10470
10891
 
10892
+ ##### Thousands of assets
10893
+
10894
+ A list of more than 500 options draws only the checkboxes in view; All, None and Invert still act on every match of the search. Press End in the list for the last asset.
10895
+
10896
+ ```tsx
10897
+ import { useState } from "react";
10898
+ import { FormField, MultiSelect, Stack, Text } from "@umriss-ui/core";
10899
+
10900
+ const KINDS = ["Pump", "Valve", "Sensor", "Motor", "Gearbox"];
10901
+ const ASSETS = Array.from({ length: 3000 }, (_, index) => ({
10902
+ value: `asset-${index + 1}`,
10903
+ label: `A-${String(index + 1).padStart(4, "0")} ${KINDS[index % KINDS.length]}`,
10904
+ }));
10905
+
10906
+ export default function ThousandsOfAssets() {
10907
+ const [assets, setAssets] = useState<string[]>([]);
10908
+
10909
+ return (
10910
+ <Stack gap={3} style={{ maxWidth: 320 }}>
10911
+ <FormField label="Assets">
10912
+ <MultiSelect value={assets} onChange={setAssets} options={ASSETS} clearable placeholder="Choose assets" searchPlaceholder="Search assets" />
10913
+ </FormField>
10914
+ <Text size="xs" tone="muted" mono>
10915
+ chosen: {assets.length}
10916
+ </Text>
10917
+ </Stack>
10918
+ );
10919
+ }
10920
+ ```
10921
+
10471
10922
  #### When to use something else
10472
10923
 
10473
10924
  - Exactly one value → Combobox
@@ -10490,23 +10941,23 @@ export default function FilterIncidentsByService() {
10490
10941
 
10491
10942
  | Prop | Type | Default | Description |
10492
10943
  |---|---|---|---|
10493
- | `options` *required* | `readonly ``MultiSelectOption``<T>[]` | — | The possibilities, in their natural order. The list never re-sorts – not even in the "selected" scope.<br>Shown in: [Configurator](#multiselect), [Chips in the field](#multiselect), [States](#multiselect) and 5 more |
10494
- | `value` *required* | `readonly T[]` | — | The chosen values. Always controlled.<br>Shown in: [Configurator](#multiselect), [Chips in the field](#multiselect), [States](#multiselect) and 5 more |
10495
- | `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [Chips in the field](#multiselect), [States](#multiselect), [With an error](#multiselect) and 3 more |
10496
- | `searchPlaceholder` | `string` | — | What stands in the panel's search field.<br>Shown in: [Filter incidents by service](#multiselect) |
10944
+ | `options` *required* | `readonly ``MultiSelectOption``<T>[]` | — | The possibilities, in their natural order. The list never re-sorts – not even in the "selected" scope.<br>Shown in: [Configurator](#multiselect), [Chips in the field](#multiselect), [States](#multiselect) and 6 more |
10945
+ | `value` *required* | `readonly T[]` | — | The chosen values. Always controlled.<br>Shown in: [Configurator](#multiselect), [Chips in the field](#multiselect), [States](#multiselect) and 6 more |
10946
+ | `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [Chips in the field](#multiselect), [States](#multiselect), [With an error](#multiselect) and 4 more |
10947
+ | `searchPlaceholder` | `string` | — | What stands in the panel's search field.<br>Shown in: [Filter incidents by service](#multiselect), [Thousands of assets](#multiselect) |
10497
10948
  | `emptyText` | `string` | — | Text when the search finds nothing.<br>Shown in: [States](#multiselect) |
10498
10949
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#multiselect) |
10499
10950
  | `chars` | `number` | — | The width in characters - room for the chips; the field adds its own padding and chevron. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 20 characters wide where the place asks - in a toolbar or a row, room for two short chips and the counter. Either way, choosing and removing values never moves it: the chips that do not fit stand as "+N".<br>Shown in: [Configurator](#multiselect) |
10500
10951
  | `disabled` | `boolean` | `false` | Locks field and panel.<br>Shown in: [Configurator](#multiselect), [States](#multiselect), [Dispatch a tour (Scenarios)](#dispatch-a-tour) |
10501
10952
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` – by hand only necessary without `FormField`.<br>Shown in: [Configurator](#multiselect), [With an error](#multiselect) |
10502
- | `clearable` | `boolean` | `false` | Shows a cross beside the chips that empties the selection, as "Select none" does: a chosen value whose option is disabled stays. The field keeps room for it, chosen values or none, so that it never moves.<br>Shown in: [Configurator](#multiselect), [Filter incidents by service](#multiselect), [A row that holds still (Sizes)](#sizes) |
10503
- | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
10953
+ | `clearable` | `boolean` | `false` | Shows a cross beside the chips that empties the selection, as "Select none" does: a chosen value whose option is disabled stays. The field keeps room for it, chosen values or none, so that it never moves.<br>Shown in: [Configurator](#multiselect), [Filter incidents by service](#multiselect), [Thousands of assets](#multiselect) and 1 more |
10954
+ | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
10504
10955
 
10505
10956
  ###### Events
10506
10957
 
10507
10958
  | Prop | Type | Default | Description |
10508
10959
  |---|---|---|---|
10509
- | `onChange` *required* | `(value: T[]) => void` | — | Runs on every change of the selection, with the complete new list – not with the one value that moved.<br>Shown in: [Configurator](#multiselect), [Chips in the field](#multiselect), [States](#multiselect) and 5 more |
10960
+ | `onChange` *required* | `(value: T[]) => void` | — | Runs on every change of the selection, with the complete new list – not with the one value that moved.<br>Shown in: [Configurator](#multiselect), [Chips in the field](#multiselect), [States](#multiselect) and 6 more |
10510
10961
 
10511
10962
  Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10512
10963
 
@@ -10538,7 +10989,7 @@ The value contract of the four pickers stands here. `DatePicker` hands out a `Da
10538
10989
 
10539
10990
  ##### Pick a day
10540
10991
 
10541
- The value is a `Date` at local midnight or `null`; `onChange` runs as soon as a day is chosen.
10992
+ The value is a `Date` at local midnight or `null`; `onChange` runs as soon as a day is chosen. In the panel a known date is typed: `17.03.1985` and Enter, or a digit on the grid to start.
10542
10993
 
10543
10994
  ```tsx
10544
10995
  import { useState } from "react";
@@ -10657,6 +11108,27 @@ export default function CheckADueDate() {
10657
11108
  }
10658
11109
  ```
10659
11110
 
11111
+ ##### From the first reading to today
11112
+
11113
+ `min` and `max` are inclusive, by day: the year list, the month list, the arrows, the grid, Today and the typed date all keep to them.
11114
+
11115
+ ```tsx
11116
+ import { useState } from "react";
11117
+ import { DatePicker, FormField } from "@umriss-ui/core";
11118
+
11119
+ export default function FromTheFirstReadingToToday() {
11120
+ const [day, setDay] = useState<Date | null>(null);
11121
+
11122
+ return (
11123
+ <div style={{ maxWidth: 320 }}>
11124
+ <FormField label="Reading" hint="From 1 March 2020 to today.">
11125
+ <DatePicker value={day} onChange={setDay} min={new Date(2020, 2, 1)} max={new Date()} clearable />
11126
+ </FormField>
11127
+ </div>
11128
+ );
11129
+ }
11130
+ ```
11131
+
10660
11132
  #### When to use something else
10661
11133
 
10662
11134
  - A day and a time of day → DateTimePicker
@@ -10677,20 +11149,22 @@ export default function CheckADueDate() {
10677
11149
 
10678
11150
  | Prop | Type | Default | Description |
10679
11151
  |---|---|---|---|
10680
- | `value` *required* | `Date \| null` | — | The day, as a `Date` on local midnight; `null` means none.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and 8 more |
11152
+ | `value` *required* | `Date \| null` | — | The day, as a `Date` on midnight in the formats' zone (the reader's, unless the application names one); `null` means none.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and 10 more |
10681
11153
  | `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [States](#datepicker) |
10682
11154
  | `disabled` | `boolean` | `false` | Locks the field and the panel.<br>Shown in: [Configurator](#datepicker), [States](#datepicker) |
10683
11155
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#datepicker), [With an error](#datepicker) |
10684
11156
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#datepicker), [States](#datepicker) |
10685
11157
  | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, glyph and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as its longest value in the formats in use, so a date never truncates.<br>Shown in: [Configurator](#datepicker) |
10686
- | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and 4 more |
10687
- | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
11158
+ | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. Without it no way to empty the value is offered.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and 6 more |
11159
+ | `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given.<br>Shown in: [From the first reading to today](#datepicker) |
11160
+ | `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is.<br>Shown in: [From the first reading to today](#datepicker) |
11161
+ | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
10688
11162
 
10689
11163
  ###### Events
10690
11164
 
10691
11165
  | Prop | Type | Default | Description |
10692
11166
  |---|---|---|---|
10693
- | `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), [Pick a day](#datepicker), [States](#datepicker) and 8 more |
11167
+ | `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 midnight in the formats' zone; there is none that delivers a time along with it.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and 10 more |
10694
11168
 
10695
11169
  Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10696
11170
 
@@ -10699,7 +11173,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10699
11173
  - No typing of a date into the field.
10700
11174
  - umriss shows the reader's time ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
10701
11175
 
10702
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
11176
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
10703
11177
 
10704
11178
  ### DateTimePicker
10705
11179
 
@@ -10846,15 +11320,17 @@ export default function WithAnError() {
10846
11320
 
10847
11321
  | Prop | Type | Default | Description |
10848
11322
  |---|---|---|---|
10849
- | `value` *required* | `Date \| null` | — | The instant; `null` means none.<br>Shown in: [Configurator](#datetimepicker), [Set an instant](#datetimepicker), [With seconds](#datetimepicker) and 3 more |
11323
+ | `value` *required* | `Date \| null` | — | The instant; `null` means none. The panel reads and sets its day and wall clock in the formats' zone (the reader's, unless the application names one).<br>Shown in: [Configurator](#datetimepicker), [Set an instant](#datetimepicker), [With seconds](#datetimepicker) and 3 more |
10850
11324
  | `withSeconds` | `boolean` | `false` | Show the seconds field.<br>Shown in: [Configurator](#datetimepicker), [With seconds](#datetimepicker) |
10851
11325
  | `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [States](#datetimepicker) |
10852
11326
  | `disabled` | `boolean` | `false` | Locks the field and the panel.<br>Shown in: [Configurator](#datetimepicker), [States](#datetimepicker) |
10853
11327
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#datetimepicker), [States](#datetimepicker) |
10854
11328
  | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, glyph and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as its longest value in the formats in use, so a date never truncates.<br>Shown in: [Configurator](#datetimepicker) |
10855
11329
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#datetimepicker), [With an error](#datetimepicker) |
10856
- | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value.<br>Shown in: [Configurator](#datetimepicker), [Set an instant](#datetimepicker), [States](#datetimepicker) |
10857
- | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
11330
+ | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. Without it no way to empty the value is offered.<br>Shown in: [Configurator](#datetimepicker), [Set an instant](#datetimepicker), [States](#datetimepicker) |
11331
+ | `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given. |
11332
+ | `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is. |
11333
+ | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
10858
11334
 
10859
11335
  ###### Events
10860
11336
 
@@ -10868,7 +11344,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10868
11344
 
10869
11345
  - umriss shows the reader's time ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
10870
11346
 
10871
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
11347
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
10872
11348
 
10873
11349
  ### DateRangePicker
10874
11350
 
@@ -11022,6 +11498,29 @@ export default function WithAnError() {
11022
11498
  }
11023
11499
  ```
11024
11500
 
11501
+ ##### Presets cut to a bound
11502
+
11503
+ A preset that overlaps `min` or `max` is cut to the range, and one wholly outside is disabled: with `min` the first of this month and `max` today, "Previous month" is disabled and "This month" ends today.
11504
+
11505
+ ```tsx
11506
+ import { useState } from "react";
11507
+ import { DateRangePicker, FormField } from "@umriss-ui/core";
11508
+ import type { DateRange } from "@umriss-ui/core";
11509
+
11510
+ export default function PresetsCutToABound() {
11511
+ const [report, setReport] = useState<DateRange | null>(null);
11512
+ const today = new Date();
11513
+
11514
+ return (
11515
+ <div style={{ maxWidth: 320 }}>
11516
+ <FormField label="Report" hint="This month, up to today.">
11517
+ <DateRangePicker value={report} onChange={setReport} min={new Date(today.getFullYear(), today.getMonth(), 1)} max={today} clearable />
11518
+ </FormField>
11519
+ </div>
11520
+ );
11521
+ }
11522
+ ```
11523
+
11025
11524
  #### When to use something else
11026
11525
 
11027
11526
  - A span with times at both ends → DateTimeRangePicker
@@ -11041,21 +11540,23 @@ export default function WithAnError() {
11041
11540
 
11042
11541
  | Prop | Type | Default | Description |
11043
11542
  |---|---|---|---|
11044
- | `value` *required* | `DateRange`` \| null` | — | The time span, both ends on local midnight and both inclusive; `null` means none.<br>Shown in: [Configurator](#daterangepicker), [A span of days](#daterangepicker), [Presets](#daterangepicker) and 3 more |
11543
+ | `value` *required* | `DateRange`` \| null` | — | The time span, both ends on midnight in the formats' zone (the reader's, unless the application names one) and both inclusive; `null` means none.<br>Shown in: [Configurator](#daterangepicker), [A span of days](#daterangepicker), [Presets](#daterangepicker) and 4 more |
11045
11544
  | `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [Presets](#daterangepicker) |
11046
11545
  | `disabled` | `boolean` | `false` | Locks the field and the panel.<br>Shown in: [Configurator](#daterangepicker), [States](#daterangepicker) |
11047
11546
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#daterangepicker), [With an error](#daterangepicker) |
11048
11547
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#daterangepicker), [States](#daterangepicker) |
11049
11548
  | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, glyph and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as its longest value in the formats in use, so a date never truncates.<br>Shown in: [Configurator](#daterangepicker) |
11050
- | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value.<br>Shown in: [Configurator](#daterangepicker), [A span of days](#daterangepicker), [Presets](#daterangepicker) and 2 more |
11549
+ | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. Without it no way to empty the value is offered.<br>Shown in: [Configurator](#daterangepicker), [A span of days](#daterangepicker), [Presets](#daterangepicker) and 3 more |
11051
11550
  | `presets` | `RangePreset``[]` | `DEFAULT_PRESETS`, in the wording's labels | The quick-select column in the panel. An empty array hides the column.<br>Shown in: [Presets](#daterangepicker) |
11052
- | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
11551
+ | `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given.<br>Shown in: [Presets cut to a bound](#daterangepicker) |
11552
+ | `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is.<br>Shown in: [Presets cut to a bound](#daterangepicker) |
11553
+ | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
11053
11554
 
11054
11555
  ###### Events
11055
11556
 
11056
11557
  | Prop | Type | Default | Description |
11057
11558
  |---|---|---|---|
11058
- | `onChange` *required* | `(range: ``DateRange`` \| null) => void` | — | Runs as soon as both ends are settled - after the second click, on a preset and on clearing (`null`). Ends dragged backwards swap silently; there is no error state to handle.<br>Shown in: [Configurator](#daterangepicker), [A span of days](#daterangepicker), [Presets](#daterangepicker) and 3 more |
11559
+ | `onChange` *required* | `(range: ``DateRange`` \| null) => void` | — | Runs as soon as both ends are settled - after the second click, on a preset and on clearing (`null`). Ends dragged backwards swap silently; there is no error state to handle.<br>Shown in: [Configurator](#daterangepicker), [A span of days](#daterangepicker), [Presets](#daterangepicker) and 4 more |
11059
11560
 
11060
11561
  Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
11061
11562
 
@@ -11086,7 +11587,7 @@ the moment of the click.
11086
11587
 
11087
11588
  - One span; no list of separate days.
11088
11589
 
11089
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
11590
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
11090
11591
 
11091
11592
  ### DateTimeRangePicker
11092
11593
 
@@ -11253,16 +11754,18 @@ export default function WithAnError() {
11253
11754
 
11254
11755
  | Prop | Type | Default | Description |
11255
11756
  |---|---|---|---|
11256
- | `value` *required* | `DateRange`` \| null` | — | The time span with times at both ends; `null` means none.<br>Shown in: [Configurator](#datetimerangepicker), [A downtime window](#datetimerangepicker), [With seconds](#datetimerangepicker) and 3 more |
11757
+ | `value` *required* | `DateRange`` \| null` | — | The time span with times at both ends; `null` means none. The panel reads and sets days and wall clocks in the formats' zone (the reader's, unless the application names one).<br>Shown in: [Configurator](#datetimerangepicker), [A downtime window](#datetimerangepicker), [With seconds](#datetimerangepicker) and 3 more |
11257
11758
  | `withSeconds` | `boolean` | `false` | Show the seconds fields.<br>Shown in: [Configurator](#datetimerangepicker), [With seconds](#datetimerangepicker) |
11258
11759
  | `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [States](#datetimerangepicker) |
11259
11760
  | `disabled` | `boolean` | `false` | Locks the field and the panel.<br>Shown in: [Configurator](#datetimerangepicker), [States](#datetimerangepicker) |
11260
11761
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#datetimerangepicker), [With an error](#datetimerangepicker) |
11261
11762
  | `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#datetimerangepicker), [States](#datetimerangepicker) |
11262
11763
  | `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, glyph and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as its longest value in the formats in use, so a date never truncates.<br>Shown in: [Configurator](#datetimerangepicker) |
11263
- | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value.<br>Shown in: [Configurator](#datetimerangepicker), [A downtime window](#datetimerangepicker), [States](#datetimerangepicker) |
11764
+ | `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. Without it no way to empty the value is offered.<br>Shown in: [Configurator](#datetimerangepicker), [A downtime window](#datetimerangepicker), [States](#datetimerangepicker) |
11264
11765
  | `presets` | `RangePreset``[]` | `DEFAULT_PRESETS`, in the wording's labels | The quick-select column in the panel; presets apply for the whole day and close immediately. An empty array hides the column.<br>Shown in: [With seconds](#datetimerangepicker) |
11265
- | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
11766
+ | `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given. |
11767
+ | `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is. |
11768
+ | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
11266
11769
 
11267
11770
  ###### Events
11268
11771
 
@@ -11300,7 +11803,7 @@ the moment of the click.
11300
11803
  - umriss shows the reader's time ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
11301
11804
  - No recurring windows.
11302
11805
 
11303
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
11806
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
11304
11807
 
11305
11808
  ## Feedback
11306
11809
 
@@ -11442,7 +11945,7 @@ With reduced motion it turns at less than half its speed instead of stopping, so
11442
11945
  | Prop | Type | Default | Description |
11443
11946
  |---|---|---|---|
11444
11947
  | `size` | `number` | `14` | Edge length in pixels.<br>Shown in: [Sizes](#spinner), [Colour](#spinner) |
11445
- | `ref` | `Ref<SVGSVGElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
11948
+ | `ref` | `Ref<SVGSVGElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
11446
11949
 
11447
11950
  Also takes every attribute of `<svg>`.
11448
11951
 
@@ -11450,7 +11953,7 @@ Also takes every attribute of `<svg>`.
11450
11953
 
11451
11954
  - One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
11452
11955
 
11453
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
11956
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
11454
11957
 
11455
11958
  ### ProgressBar
11456
11959
 
@@ -11621,11 +12124,11 @@ Under forced colours the track takes an edge and the fill the system's selection
11621
12124
 
11622
12125
  | Prop | Type | Default | Description |
11623
12126
  |---|---|---|---|
11624
- | `value` | `number` | — | How far the task has come, from 0 to 1. Left out, the bar is indeterminate: the task runs, and nobody knows how far it is.<br>Shown in: [Configurator](#progressbar), [How far a job has come](#progressbar), [Count instead of a share](#progressbar) and 3 more |
11625
- | `label` | `string` | the wording's "Progress" | What is progressing, e.g. "Import of the invoice records". A progress bar needs a name from the author.<br>Shown in: [How far a job has come](#progressbar), [Count instead of a share](#progressbar), [Run without a known end](#progressbar) and 3 more |
11626
- | `valueText` | `string` | — | What a screen reader says instead of the percentage, where a count says it better - "3 of 12 files".<br>Shown in: [Count instead of a share](#progressbar), [Follow a job through its steps](#progressbar), [A deployment (Stepper)](#stepper) |
12127
+ | `value` | `number` | — | How far the task has come, from 0 to 1. Left out, the bar is indeterminate: the task runs, and nobody knows how far it is.<br>Shown in: [Configurator](#progressbar), [How far a job has come](#progressbar), [Count instead of a share](#progressbar) and 4 more |
12128
+ | `label` | `string` | the wording's "Progress" | What is progressing, e.g. "Import of the invoice records". A progress bar needs a name from the author.<br>Shown in: [How far a job has come](#progressbar), [Count instead of a share](#progressbar), [Run without a known end](#progressbar) and 4 more |
12129
+ | `valueText` | `string` | — | What a screen reader says instead of the percentage, where a count says it better - "3 of 12 files".<br>Shown in: [Count instead of a share](#progressbar), [Follow a job through its steps](#progressbar), [Progress and thumbnails (FileInput)](#fileinput) and 1 more |
11627
12130
  | `showLabel` | `boolean` | `false` | The percentage beside the bar (Geist Mono). Never for an indeterminate bar - it has no figure to show.<br>Shown in: [Configurator](#progressbar), [How far a job has come](#progressbar), [Follow a job through its steps](#progressbar) and 1 more |
11628
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
12131
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
11629
12132
 
11630
12133
  Also takes every attribute of `<div>`.
11631
12134
 
@@ -11633,7 +12136,7 @@ Also takes every attribute of `<div>`.
11633
12136
 
11634
12137
  - No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
11635
12138
 
11636
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
12139
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
11637
12140
 
11638
12141
  ### Skeleton
11639
12142
 
@@ -11782,7 +12285,7 @@ With reduced motion the shimmer stops, and the shape stands in a still, faint gr
11782
12285
  | `width` | `string \| number` | `"100%"` | Width, e.g. "120px" or "60%".<br>Shown in: [Configurator](#skeleton), [Lines of text to come](#skeleton), [Shapes](#skeleton) and 2 more |
11783
12286
  | `height` | `string \| number` | `"12px"` | Height, e.g. "12px" or 16.<br>Shown in: [Configurator](#skeleton), [Shapes](#skeleton), [Hold a list's place while it loads](#skeleton) |
11784
12287
  | `circle` | `boolean` | `false` | Circular shape, e.g. for an avatar placeholder.<br>Shown in: [Configurator](#skeleton), [Shapes](#skeleton), [Hold a list's place while it loads](#skeleton) |
11785
- | `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
12288
+ | `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
11786
12289
 
11787
12290
  Also takes every attribute of `<span>`.
11788
12291
 
@@ -11790,7 +12293,7 @@ Also takes every attribute of `<span>`.
11790
12293
 
11791
12294
  - It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
11792
12295
 
11793
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
12296
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
11794
12297
 
11795
12298
  ### Alert
11796
12299
 
@@ -11978,11 +12481,11 @@ The title is a paragraph, not a heading, so an alert does not enter the page's o
11978
12481
 
11979
12482
  | Prop | Type | Default | Description |
11980
12483
  |---|---|---|---|
11981
- | `tone` | `AlertTone`<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | `"neutral"` | How urgent the message is. Only `warning` and `danger` interrupt the screen reader - the other two report politely.<br>Shown in: [Configurator](#alert), [Tones](#alert), [Offer the way forward](#alert) and 5 more |
11982
- | `title` | `ReactNode` | — | Heading; without it the body text carries the message on its own.<br>Shown in: [A message](#alert), [Tones](#alert), [Offer the way forward](#alert) and 5 more |
12484
+ | `tone` | `AlertTone`<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | `"neutral"` | How urgent the message is. Only `warning` and `danger` interrupt the screen reader - the other two report politely.<br>Shown in: [Configurator](#alert), [Tones](#alert), [Offer the way forward](#alert) and 6 more |
12485
+ | `title` | `ReactNode` | — | Heading; without it the body text carries the message on its own.<br>Shown in: [A message](#alert), [Tones](#alert), [Offer the way forward](#alert) and 6 more |
11983
12486
  | `actions` | `ReactNode` | — | Actions below the text, e.g. "Try again".<br>Shown in: [Offer the way forward](#alert), [Sum up a form's errors](#alert), [A deployment (Stepper)](#stepper) |
11984
12487
  | `dismissLabel` | `string` | the wording's "Close message" | Label of the dismiss cross. |
11985
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
12488
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
11986
12489
 
11987
12490
  ###### Events
11988
12491
 
@@ -12008,7 +12511,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
12008
12511
  - No timer: an alert stays until you remove it. A message that goes by itself is a toast.
12009
12512
  - No stack or queue of messages; place each alert where its matter is.
12010
12513
 
12011
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
12514
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
12012
12515
 
12013
12516
  ### Toast
12014
12517
 
@@ -12566,7 +13069,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
12566
13069
  - No queue: a toast over the limit pushes the oldest timed one out rather than waiting. Lasting and `loading` toasts are not capped: the deck holds every one of them beside the timed ones.
12567
13070
  - Without the Popover API the deck moves with a dialog that transforms itself: inside a dialog the toasts stand in the top layer only where the browser has it, and elsewhere they are a fixed box in the dialog.
12568
13071
 
12569
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
13072
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
12570
13073
 
12571
13074
  ### EmptyState
12572
13075
 
@@ -12701,7 +13204,7 @@ The keys of [Button](#button) and [Tag](#tag) apply here.
12701
13204
  | `description` | `ReactNode` | — | One sentence on why nothing is here and what would put something here.<br>Shown in: [Nothing yet](#emptystate), [Say why a filter found nothing](#emptystate), [Mark good news in a panel](#emptystate) and 3 more |
12702
13205
  | `action` | `ReactNode` | — | The way into the next action, e.g. a button.<br>Shown in: [Nothing yet](#emptystate), [Say why a filter found nothing](#emptystate), [Cards on a dashboard (Card)](#card) and 1 more |
12703
13206
  | `icon` | `ReactNode` | — | Optional symbol above the title.<br>Shown in: [Mark good news in a panel](#emptystate) |
12704
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
13207
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
12705
13208
 
12706
13209
  Also takes every attribute of `<div>` – without `title`.
12707
13210
 
@@ -12874,7 +13377,7 @@ export default function ACalculation() {
12874
13377
  - No interactive content and no rich layout inside: it is read, never used.
12875
13378
  - No placement option: it stands above its element and flips below where there is no room.
12876
13379
 
12877
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
13380
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
12878
13381
 
12879
13382
  ### Popover
12880
13383
 
@@ -13129,7 +13632,7 @@ type Align = "start" | "end" | "center";
13129
13632
  - No padding and no inner layout: it brings the overlay's surface - ground, corners, shadow - and the rest is yours. A `className` restates the surface where one needs another.
13130
13633
  - It does not trap focus; a surface the user must answer is a [Modal](#modal).
13131
13634
 
13132
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
13635
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
13133
13636
 
13134
13637
  ### Menu
13135
13638
 
@@ -13221,7 +13724,7 @@ One menu per row keeps a list quiet; the trigger's name says which row it acts o
13221
13724
 
13222
13725
  ```tsx
13223
13726
  import { useState } from "react";
13224
- import { Badge, IconButton, Menu, MenuItem, MenuSeparator, Stack, Text } from "@umriss-ui/core";
13727
+ import { Badge, IconButton, Menu, MenuItem, MenuSeparator, MoreGlyph, Stack, Text } from "@umriss-ui/core";
13225
13728
 
13226
13729
  interface Incident {
13227
13730
  id: string;
@@ -13261,7 +13764,7 @@ export default function PerRow() {
13261
13764
  align="end"
13262
13765
  trigger={
13263
13766
  <IconButton size="sm" aria-label={`Actions for ${incident.id}`}>
13264
- ⋯
13767
+ <MoreGlyph />
13265
13768
  </IconButton>
13266
13769
  }
13267
13770
  >
@@ -13316,7 +13819,7 @@ export default function PerRow() {
13316
13819
  | Prop | Type | Default | Description |
13317
13820
  |---|---|---|---|
13318
13821
  | `tone` | `"default" \| "danger"` | `"default"` | "danger" for destructive actions.<br>Shown in: [Run actions from a trigger](#menu), [Disable an entry, mark a destructive one](#menu), [Act on a row](#menu) and 5 more |
13319
- | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
13822
+ | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
13320
13823
 
13321
13824
  ###### Events
13322
13825
 
@@ -13330,7 +13833,7 @@ Also takes every attribute of `<button>` – without `onSelect`.
13330
13833
 
13331
13834
  - No submenus, no checkable entries and no type-ahead.
13332
13835
 
13333
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
13836
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
13334
13837
 
13335
13838
  ### ContextMenu
13336
13839
 
@@ -13547,7 +14050,7 @@ export default function OnARow() {
13547
14050
  - It listens to no right-click itself: the element and the point are yours, through the hook.
13548
14051
  - No submenus, no checkable entries and no type-ahead, as in the menu.
13549
14052
 
13550
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
14053
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
13551
14054
 
13552
14055
  ### Modal
13553
14056
 
@@ -13820,6 +14323,39 @@ export default function MustBeAnswered() {
13820
14323
  }
13821
14324
  ```
13822
14325
 
14326
+ ##### A date in a window
14327
+
14328
+ A picker's panel and the lists inside it open within the window: a pick in the month list keeps the panel, and Escape closes the list, then the panel, then the window.
14329
+
14330
+ ```tsx
14331
+ import { useState } from "react";
14332
+ import { Button, DatePicker, FormField, Modal, ModalBody, ModalFooter, ModalHeader } from "@umriss-ui/core";
14333
+
14334
+ export default function ADateInAWindow() {
14335
+ const [open, setOpen] = useState(false);
14336
+ const [due, setDue] = useState<Date | null>(null);
14337
+
14338
+ return (
14339
+ <>
14340
+ <Button onClick={() => setOpen(true)}>Set the due date</Button>
14341
+ <Modal open={open} onClose={() => setOpen(false)}>
14342
+ <ModalHeader title="Due date" />
14343
+ <ModalBody>
14344
+ <FormField label="Due">
14345
+ <DatePicker value={due} onChange={setDue} clearable />
14346
+ </FormField>
14347
+ </ModalBody>
14348
+ <ModalFooter>
14349
+ <Button variant="primary" onClick={() => setOpen(false)}>
14350
+ Done
14351
+ </Button>
14352
+ </ModalFooter>
14353
+ </Modal>
14354
+ </>
14355
+ );
14356
+ }
14357
+ ```
14358
+
13823
14359
  #### When to use something else
13824
14360
 
13825
14361
  - A detail beside the list the user came from → Drawer
@@ -13839,16 +14375,16 @@ export default function MustBeAnswered() {
13839
14375
 
13840
14376
  | Prop | Type | Default | Description |
13841
14377
  |---|---|---|---|
13842
- | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 10 more |
14378
+ | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 12 more |
13843
14379
  | `size` | `ModalSize`<br>`"sm" \| "md" \| "lg"` | `"md"` | The width of the window. The height comes from the content; only the body scrolls, header and footer stand fast.<br>Shown in: [Sizes](#modal), [Scroll long content](#modal), [Guard unsaved changes](#modal) and 3 more |
13844
14380
  | `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop.<br>Shown in: [A window that must be answered](#modal) |
13845
- | `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
14381
+ | `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
13846
14382
 
13847
14383
  ###### Events
13848
14384
 
13849
14385
  | Prop | Type | Default | Description |
13850
14386
  |---|---|---|---|
13851
- | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 10 more |
14387
+ | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 12 more |
13852
14388
 
13853
14389
  Also takes every attribute of `<dialog>` – without `onClose`.
13854
14390
 
@@ -13856,10 +14392,10 @@ Also takes every attribute of `<dialog>` – without `onClose`.
13856
14392
 
13857
14393
  | Prop | Type | Default | Description |
13858
14394
  |---|---|---|---|
13859
- | `title` *required* | `ReactNode` | — | The heading of the window. It names it for the screen reader at the same time – a dialog without a name says only "dialog".<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 10 more |
14395
+ | `title` *required* | `ReactNode` | — | The heading of the window. It names it for the screen reader at the same time – a dialog without a name says only "dialog".<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 12 more |
13860
14396
  | `description` | `ReactNode` | — | One sentence below the heading: what is to be decided here.<br>Shown in: [A window that holds focus](#modal), [Scroll long content](#modal), [Guard unsaved changes](#modal) and 8 more |
13861
14397
  | `hideClose` | `boolean` | `false` | Hides the close button.<br>Shown in: [A window that must be answered](#modal) |
13862
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
14398
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
13863
14399
 
13864
14400
  Also takes every attribute of `<div>` – without `title`.
13865
14401
 
@@ -13877,7 +14413,7 @@ type ModalSize = "sm" | "md" | "lg";
13877
14413
 
13878
14414
  - No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
13879
14415
 
13880
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
14416
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
13881
14417
 
13882
14418
  ### Drawer
13883
14419
 
@@ -14156,6 +14692,89 @@ export default function BesideAServiceList() {
14156
14692
  }
14157
14693
  ```
14158
14694
 
14695
+ ##### An app shell
14696
+
14697
+ A frame is layout, so it is your application's: the same links stand in a side column or in a drawer, and your router's own link (react-router's `NavLink` sets `aria-current` itself) replaces core's `Link`.
14698
+
14699
+ ```tsx
14700
+ import { useState, useSyncExternalStore } from "react";
14701
+ import { Button, Drawer, Link, ModalBody, ModalHeader, Text } from "@umriss-ui/core";
14702
+
14703
+ const PAGES = ["Overview", "Shipments", "Tours", "Settings"];
14704
+ const NARROW = "(max-width: 719px)";
14705
+
14706
+ /* A few lines of `matchMedia`: core has no media hook. */
14707
+ function useNarrow(): boolean {
14708
+ return useSyncExternalStore(
14709
+ (notify) => {
14710
+ const query = window.matchMedia(NARROW);
14711
+ query.addEventListener("change", notify);
14712
+ return () => query.removeEventListener("change", notify);
14713
+ },
14714
+ () => window.matchMedia(NARROW).matches,
14715
+ () => false,
14716
+ );
14717
+ }
14718
+
14719
+ export default function AnAppShell() {
14720
+ const narrow = useNarrow();
14721
+ const [page, setPage] = useState("Overview");
14722
+ const [open, setOpen] = useState(false);
14723
+
14724
+ const links = (
14725
+ <nav aria-label="Main">
14726
+ <ul style={{ listStyle: "none", margin: 0, padding: 0, display: "grid", gap: "var(--u-space-1)" }}>
14727
+ {PAGES.map((name) => (
14728
+ <li key={name}>
14729
+ <Text as="span" weight={name === page ? "semibold" : "regular"}>
14730
+ <Link
14731
+ href="#"
14732
+ aria-current={name === page ? "page" : undefined}
14733
+ onClick={(event) => {
14734
+ event.preventDefault();
14735
+ setPage(name);
14736
+ setOpen(false);
14737
+ }}
14738
+ style={{ display: "block", padding: "var(--u-space-2) var(--u-space-3)", fontWeight: "inherit" }}
14739
+ >
14740
+ {name}
14741
+ </Link>
14742
+ </Text>
14743
+ </li>
14744
+ ))}
14745
+ </ul>
14746
+ </nav>
14747
+ );
14748
+
14749
+ return (
14750
+ <div style={{ border: "1px solid var(--u-hairline)", borderRadius: 8, overflow: "hidden" }}>
14751
+ <header
14752
+ style={{ display: "flex", alignItems: "center", gap: "var(--u-space-3)", padding: "var(--u-space-3) var(--u-space-4)", borderBottom: "1px solid var(--u-hairline)" }}
14753
+ >
14754
+ {narrow && (
14755
+ <Button size="sm" variant="secondary" aria-haspopup="dialog" onClick={() => setOpen(true)}>
14756
+ Menu
14757
+ </Button>
14758
+ )}
14759
+ <Text weight="semibold">Fleet Planner</Text>
14760
+ </header>
14761
+ <div style={{ display: "flex", minHeight: 200 }}>
14762
+ {!narrow && <div style={{ width: 200, padding: "var(--u-space-3)", borderInlineEnd: "1px solid var(--u-hairline)" }}>{links}</div>}
14763
+ <main style={{ flex: 1, minWidth: 0, padding: "var(--u-space-4)" }}>
14764
+ <Text as="h3" size="lg" weight="semibold">
14765
+ {page}
14766
+ </Text>
14767
+ </main>
14768
+ </div>
14769
+ <Drawer side="left" open={narrow && open} onClose={() => setOpen(false)}>
14770
+ <ModalHeader title="Fleet Planner" />
14771
+ <ModalBody>{links}</ModalBody>
14772
+ </Drawer>
14773
+ </div>
14774
+ );
14775
+ }
14776
+ ```
14777
+
14159
14778
  #### When to use something else
14160
14779
 
14161
14780
  - A task that has nothing to do with what lies behind it → Modal
@@ -14174,16 +14793,16 @@ export default function BesideAServiceList() {
14174
14793
 
14175
14794
  | Prop | Type | Default | Description |
14176
14795
  |---|---|---|---|
14177
- | `side` | `"right" \| "left"` | `"right"` | The edge the drawer stands at and enters from.<br>Shown in: [From the left, and wider](#drawer) |
14178
- | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and 10 more |
14796
+ | `side` | `"right" \| "left"` | `"right"` | The edge the drawer stands at and enters from.<br>Shown in: [From the left, and wider](#drawer), [An app shell](#drawer) |
14797
+ | `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and 12 more |
14179
14798
  | `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop. From `ModalProps`.<br>Shown in: [A window that must be answered (Modal)](#modal) |
14180
- | `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
14799
+ | `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
14181
14800
 
14182
14801
  ###### Events
14183
14802
 
14184
14803
  | Prop | Type | Default | Description |
14185
14804
  |---|---|---|---|
14186
- | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and 10 more |
14805
+ | `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and 12 more |
14187
14806
 
14188
14807
  Also takes every attribute of `<dialog>` – without `onClose`.
14189
14808
 
@@ -14192,7 +14811,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
14192
14811
  - Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
14193
14812
  - Only the left and right edges; nothing slides in from the top or bottom.
14194
14813
 
14195
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
14814
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
14196
14815
 
14197
14816
  ### ConfirmDialog
14198
14817
 
@@ -14354,7 +14973,7 @@ export default function WhileItRuns() {
14354
14973
  | `cancelLabel` | `string` | the wording's "Cancel" | Label of the cancelling button.<br>Shown in: [Guard unsaved changes (Modal)](#modal) |
14355
14974
  | `tone` | `"primary" \| "danger"` | `"primary"` | "danger" for destructive actions.<br>Shown in: [The one question](#confirmdialog), [Ask before a commitment](#confirmdialog), [Stay open while it runs](#confirmdialog) and 2 more |
14356
14975
  | `loading` | `boolean` | `false` | Locks the actions while the confirmation is running.<br>Shown in: [Stay open while it runs](#confirmdialog) |
14357
- | `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
14976
+ | `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
14358
14977
 
14359
14978
  ###### Events
14360
14979
 
@@ -14369,7 +14988,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
14369
14988
 
14370
14989
  - A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
14371
14990
 
14372
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
14991
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
14373
14992
 
14374
14993
  ### CommandPalette
14375
14994
 
@@ -14479,11 +15098,11 @@ export default function RecentFirst() {
14479
15098
 
14480
15099
  ##### Open it with a shortcut
14481
15100
 
14482
- [`useCommandPaletteShortcut`](#api-index-1) binds Cmd-K or Ctrl-K and “/” – except inside a text field, where a slash stays a slash.
15101
+ [`useCommandPaletteShortcut`](#api-index-1) binds Cmd-K or Ctrl-K and “/” – except inside a text field, where a slash stays a slash. An application setting turns the single-key “/” off (WCAG 2.1.4).
14483
15102
 
14484
15103
  ```tsx
14485
15104
  import { useCallback, useState } from "react";
14486
- import { CommandPalette, Input, Stack, Text, useCommandPaletteShortcut } from "@umriss-ui/core";
15105
+ import { CommandPalette, Input, Stack, Switch, Text, useCommandPaletteShortcut } from "@umriss-ui/core";
14487
15106
 
14488
15107
  const PROJECTS = [
14489
15108
  { id: "shop", label: "Online shop relaunch", group: "Pembury Home" },
@@ -14496,14 +15115,16 @@ export default function Shortcut() {
14496
15115
  const [open, setOpen] = useState(false);
14497
15116
  const [text, setText] = useState("");
14498
15117
  const [project, setProject] = useState("-");
15118
+ const [slash, setSlash] = useState(true);
14499
15119
 
14500
- useCommandPaletteShortcut(useCallback(() => setOpen(true), []));
15120
+ useCommandPaletteShortcut(useCallback(() => setOpen(true), []), { slash });
14501
15121
 
14502
15122
  return (
14503
15123
  <Stack gap={3} align="flex-start">
14504
15124
  <Text size="sm" tone="secondary">
14505
15125
  Press Cmd-K, Ctrl-K or “/” to jump to a project. Current: {project}
14506
15126
  </Text>
15127
+ <Switch label="“/” opens the palette" checked={slash} onChange={(event) => setSlash(event.target.checked)} />
14507
15128
  <Input
14508
15129
  size="sm"
14509
15130
  aria-label="Here a slash stays a slash"
@@ -14641,7 +15262,7 @@ export default function SearchHundredsOfPages() {
14641
15262
  | `items` *required* | `readonly ``CommandPaletteItem``[]` | — | The candidates that are searched. They belong to the caller: the palette keeps no memory and does not reorder them.<br>Shown in: [Run a command](#commandpalette), [Show recent choices first](#commandpalette), [Open it with a shortcut](#commandpalette) and 2 more |
14642
15263
  | `restingItems` | `readonly ``CommandPaletteItem``[]` | — | What stands there as long as nothing is typed. Without a value: nothing, and the window is only the field. A LIST and not a switch, because the interesting question is not "all or none" but "which". Whoever really wants to show everything passes `restingItems={items}`; whoever wants to show the five most recently used passes those - and a switch cannot do that. With long lists "all" is also exactly the state this component did away with: a list that is already full can only shrink. The rows stand in THIS order and without marks: without a query there is no rank and nothing to mark. Rank and weight therefore play no part here; the order belongs to the caller.<br>Shown in: [Run a command](#commandpalette), [Show recent choices first](#commandpalette) |
14643
15264
  | `maxFinds` | `number` | every find | The most finds that stand at once - the best by rank. A last line says how many more there are, and typing on narrows them. For a long list of candidates, where a single letter finds hundreds and drawing them all would make every keystroke wait.<br>Shown in: [Search hundreds of pages](#commandpalette) |
14644
- | `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
15265
+ | `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
14645
15266
 
14646
15267
  ###### Events
14647
15268
 
@@ -14669,7 +15290,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
14669
15290
  - No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
14670
15291
  - No nested steps or arguments: a command that needs input opens your own form after it is chosen.
14671
15292
 
14672
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
15293
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
14673
15294
 
14674
15295
  ## Navigation
14675
15296
 
@@ -14968,7 +15589,7 @@ export default function BrowseDownAndBackUp() {
14968
15589
  | Prop | Type | Default | Description |
14969
15590
  |---|---|---|---|
14970
15591
  | `items` *required* | `readonly ``BreadcrumbEntry``[]` | — | The trail from the root to the current page; the last is the page.<br>Shown in: [A trail](#breadcrumb), [Route it yourself](#breadcrumb), [Fold when narrow](#breadcrumb) and 3 more |
14971
- | `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
15592
+ | `ref` | `Ref<HTMLElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
14972
15593
 
14973
15594
  Also takes every attribute of the rendered element.
14974
15595
 
@@ -14989,7 +15610,7 @@ Also takes every attribute of the rendered element.
14989
15610
 
14990
15611
  - It neither routes nor reads the address: the trail is what you pass.
14991
15612
 
14992
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
15613
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
14993
15614
 
14994
15615
  ### Tabs
14995
15616
 
@@ -15327,7 +15948,7 @@ export default function MoreTabsThanRoom() {
15327
15948
  |---|---|---|---|
15328
15949
  | `defaultValue` | `string` | — | Uncontrolled: the tab that stands first. Afterwards the choice belongs to the tabs - for a switch no address and no handler needs to know.<br>Shown in: [One view at a time](#tabs), [Loading and empty panels](#tabs), [An invoice in tabs](#tabs) and 2 more |
15329
15950
  | `value` | `string` | — | The value of the visible tab. Controlled, `Tabs` remember nothing, so that the tab can come out of an address.<br>Shown in: [Keep the tab in the address](#tabs) |
15330
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
15951
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
15331
15952
 
15332
15953
  ###### Events
15333
15954
 
@@ -15342,7 +15963,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
15342
15963
  | Prop | Type | Default | Description |
15343
15964
  |---|---|---|---|
15344
15965
  | `value` *required* | `string` | — | The value this tab reports – and under which its panel stands.<br>Shown in: [One view at a time](#tabs), [Keep the tab in the address](#tabs), [Loading and empty panels](#tabs) and 3 more |
15345
- | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
15966
+ | `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
15346
15967
 
15347
15968
  Also takes every attribute of `<button>`.
15348
15969
 
@@ -15351,7 +15972,7 @@ Also takes every attribute of `<button>`.
15351
15972
  | Prop | Type | Default | Description |
15352
15973
  |---|---|---|---|
15353
15974
  | `value` *required* | `string` | — | The value of the tab this panel belongs to. Only the matching panel stands in the document – a hidden panel would keep focus, scroll position and live regions that nobody sees.<br>Shown in: [One view at a time](#tabs), [Keep the tab in the address](#tabs), [Loading and empty panels](#tabs) and 3 more |
15354
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
15975
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
15355
15976
 
15356
15977
  Also takes every attribute of `<div>`.
15357
15978
 
@@ -15359,7 +15980,7 @@ Also takes every attribute of `<div>`.
15359
15980
 
15360
15981
  - More tabs than fit scroll sideways within the list; there is no overflow menu, and no closing or reordering of tabs.
15361
15982
 
15362
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
15983
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
15363
15984
 
15364
15985
  ### Accordion
15365
15986
 
@@ -15583,7 +16204,7 @@ export default function LongSettingsInSections() {
15583
16204
  | `defaultValue` | `readonly string[]` | `[]` | Uncontrolled: the sections open at the start.<br>Shown in: [One section at a time](#accordion), [Several open, one locked](#accordion), [Long settings in sections](#accordion) |
15584
16205
  | `value` | `readonly string[]` | — | Controlled: the values of the open sections. A list for both types, so that switching the type changes nothing else.<br>Shown in: [Open and fold all](#accordion) |
15585
16206
  | `headingLevel` | `2 \| 3 \| 4 \| 5 \| 6` | `3` | The level of the heading each header stands in - the one that fits the page's outline.<br>Shown in: [Several open, one locked](#accordion), [Long settings in sections](#accordion) |
15586
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
16207
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
15587
16208
 
15588
16209
  ###### Events
15589
16210
 
@@ -15600,7 +16221,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
15600
16221
  | `value` *required* | `string` | — | What names the section in the accordion's `value`.<br>Shown in: [One section at a time](#accordion), [Several open, one locked](#accordion), [Open and fold all](#accordion) and 1 more |
15601
16222
  | `title` *required* | `ReactNode` | — | The header's text. It names the section's region too.<br>Shown in: [One section at a time](#accordion), [Several open, one locked](#accordion), [Open and fold all](#accordion) and 1 more |
15602
16223
  | `disabled` | `boolean` | `false` | A section that cannot be opened now; its header stays in the list.<br>Shown in: [Several open, one locked](#accordion) |
15603
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
16224
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
15604
16225
 
15605
16226
  Also takes every attribute of `<div>` – without `title`.
15606
16227
 
@@ -15608,7 +16229,7 @@ Also takes every attribute of `<div>` – without `title`.
15608
16229
 
15609
16230
  - A folded section's content stays rendered; for heavy content, render it only while its section is open.
15610
16231
 
15611
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
16232
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
15612
16233
 
15613
16234
  ### Stepper
15614
16235
 
@@ -15688,26 +16309,49 @@ export default function AFailedStep() {
15688
16309
 
15689
16310
  ##### Move on yourself
15690
16311
 
15691
- The stepper has no keys of its own: your application sets `current` after its own check, here behind two buttons.
16312
+ The stepper has no keys or clicks of its own: your application sets `current`, behind two buttons or a done step's label, and moves the focus to the new step's heading.
15692
16313
 
15693
16314
  ```tsx
15694
- import { useState } from "react";
15695
- import { Button, Stack, Stepper } from "@umriss-ui/core";
16315
+ import { useEffect, useRef, useState } from "react";
16316
+ import { Button, Stack, Stepper, Text } from "@umriss-ui/core";
15696
16317
 
15697
- const STEPS = [{ label: "Choose people" }, { label: "Set capacity" }, { label: "Plan leave" }, { label: "Confirm" }];
16318
+ const LABELS = ["Choose people", "Set capacity", "Plan leave", "Confirm"];
15698
16319
 
15699
16320
  export default function MoveOnYourself() {
15700
- const [current, setCurrent] = useState(1);
16321
+ const [current, setCurrent] = useState(2);
16322
+ const heading = useRef<HTMLHeadingElement>(null);
16323
+ const moved = useRef(false);
16324
+
16325
+ /* Not on the first render: the focus moves because a step changed. */
16326
+ useEffect(() => {
16327
+ if (moved.current) heading.current?.focus();
16328
+ moved.current = true;
16329
+ }, [current]);
16330
+
16331
+ /* A done step's label is a button that goes back to it. */
16332
+ const steps = LABELS.map((label, index) => ({
16333
+ label:
16334
+ index < current ? (
16335
+ <Button size="sm" variant="plain" onClick={() => setCurrent(index)}>
16336
+ {label}
16337
+ </Button>
16338
+ ) : (
16339
+ label
16340
+ ),
16341
+ }));
15701
16342
 
15702
16343
  return (
15703
16344
  <Stack gap={4} style={{ maxWidth: 560 }}>
15704
- <Stepper aria-label="Set up sprint 15" steps={STEPS} current={current} />
16345
+ <Stepper aria-label="Set up sprint 15" steps={steps} current={current} />
16346
+ <Text as="h3" size="lg" weight="semibold" ref={heading} tabIndex={-1} style={{ outline: "none" }}>
16347
+ {LABELS[current] ?? "Sprint 15 is running"}
16348
+ </Text>
15705
16349
  <Stack direction="row" gap={2}>
15706
16350
  <Button size="sm" variant="secondary" disabled={current === 0} onClick={() => setCurrent(current - 1)}>
15707
16351
  Back
15708
16352
  </Button>
15709
- <Button size="sm" variant="primary" disabled={current === STEPS.length} onClick={() => setCurrent(current + 1)}>
15710
- {current >= STEPS.length - 1 ? "Start the sprint" : "Next"}
16353
+ <Button size="sm" variant="primary" disabled={current === LABELS.length} onClick={() => setCurrent(current + 1)}>
16354
+ {current >= LABELS.length - 1 ? "Start the sprint" : "Next"}
15711
16355
  </Button>
15712
16356
  </Stack>
15713
16357
  </Stack>
@@ -15801,7 +16445,7 @@ Under forced colours the lines between the steps take the system's text colour,
15801
16445
  | `steps` *required* | `readonly ``StepperStep``[]` | — | The steps in the order they are walked.<br>Shown in: [Where a procedure stands](#stepper), [Steps in a column](#stepper), [A failed step](#stepper) and 6 more |
15802
16446
  | `current` *required* | `number` | — | The index of the step being worked on. The steps before it are done, the ones after it upcoming; past the last step, every step is done.<br>Shown in: [Where a procedure stands](#stepper), [Steps in a column](#stepper), [A failed step](#stepper) and 6 more |
15803
16447
  | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | `horizontal` in a row, `vertical` in a column for steps with longer descriptions.<br>Shown in: [Steps in a column](#stepper), [A failed step](#stepper), [An invoice in tabs (Tabs)](#tabs) |
15804
- | `ref` | `Ref<HTMLOListElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
16448
+ | `ref` | `Ref<HTMLOListElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [Move on yourself](#stepper), [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield) and 4 more |
15805
16449
 
15806
16450
  Also takes every attribute of the rendered element.
15807
16451
 
@@ -15815,10 +16459,10 @@ Also takes every attribute of the rendered element.
15815
16459
 
15816
16460
  #### Known limits
15817
16461
 
15818
- - The steps are read, not navigated: no keys, no clicks, and no next or back of its own. Moving on is your application's decision.
16462
+ - The steps are read, not navigated: no keys, no clicks, and no next or back of its own. Moving on is your application's decision, by a done step's label as a button or by buttons of its own.
15819
16463
  - No branching or optional steps; pass the steps that apply.
15820
16464
 
15821
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
16465
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
15822
16466
 
15823
16467
  ### TreeView
15824
16468
 
@@ -16378,7 +17022,7 @@ export default function SearchCheckAndReveal() {
16378
17022
  | `tree` *required* | `Tree``<K, S>` | — | The tree from `useTree`. It is the whole state: flattening, active node, checks, anchor. The view holds nothing beside it.<br>Shown in: [A tree](#treeview), [Tick a selection](#treeview), [Load branches on demand](#treeview) and 5 more |
16379
17023
  | `checkable` | `boolean` | `false` | Show ticks. Without them a tree remains that knows only an active node - and no space is kept free for them.<br>Shown in: [Tick a selection](#treeview), [With an error](#treeview), [Search, check and reveal in a large tree](#treeview) |
16380
17024
  | `children` *required* | `(entry: ``FlatteningEntry``<K, S>) => ReactNode` | — | What the node says.<br>Shown in: [A tree](#treeview), [Tick a selection](#treeview), [Load branches on demand](#treeview) and 5 more |
16381
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
17025
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
16382
17026
 
16383
17027
  ###### Accessibility
16384
17028
 
@@ -16398,7 +17042,7 @@ Also takes every attribute of `<div>` – without `children`.
16398
17042
  | `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`. From `InputProps`.<br>Shown in: [With an error](#treeview), [Configurator (Input)](#input), [With an error (Input)](#input) |
16399
17043
  | `numeric` | `boolean` | `false` | Right-aligned tabular figures in Geist Mono, e.g. for key figures. From `InputProps`.<br>Shown in: [Configurator (Input)](#input), [Align reference numbers (Input)](#input), [Take a delivery address (Input)](#input) and 2 more |
16400
17044
  | `clearable` | `boolean` | `false` | Shows a gently appearing cross where there is content, which clears the input. Requires a controlled field (value) and onClear. From `InputProps`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Clear the field (Input)](#input) |
16401
- | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
17045
+ | `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
16402
17046
 
16403
17047
  ###### Events
16404
17048
 
@@ -16496,7 +17140,7 @@ to render and the heights of the filler rows around it.
16496
17140
  - No dragging nodes to rearrange them.
16497
17141
  - It fetches nothing and handles no loading errors: retries and messages stay in your application ([ADR-0005](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0005-what-cannot-be-checked.md)).
16498
17142
 
16499
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
17143
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
16500
17144
 
16501
17145
  ### Benchmark
16502
17146
 
@@ -16953,7 +17597,7 @@ The keys of [Button](#button) apply here.
16953
17597
  |---|---|---|---|
16954
17598
  | `tone` | `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), [Tones](#badge), [Counters](#badge) and 20 more |
16955
17599
  | `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), [Counters](#badge), [Fold the body (Card)](#card) and 1 more |
16956
- | `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
17600
+ | `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
16957
17601
 
16958
17602
  Also takes every attribute of `<span>`.
16959
17603
 
@@ -16973,7 +17617,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
16973
17617
  - It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
16974
17618
  - It counts nothing itself: capping at “99+” is yours.
16975
17619
 
16976
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
17620
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
16977
17621
 
16978
17622
  ### Tag
16979
17623
 
@@ -17201,7 +17845,7 @@ export default function AFilterBar() {
17201
17845
  | `children` *required* | `ReactNode` | — | The text of the label – short enough to stand on one line.<br>Shown in: [Configurator](#tag), [A tag](#tag), [Tones](#tag) and 5 more |
17202
17846
  | `removeLabel` | `string` | — | Label of the remove key. Needed as soon as the content is not text – no sentence can be formed out of a node.<br>Shown in: [Remove tags from a group](#tag) |
17203
17847
  | `disabled` | `boolean` | `false` | Takes the remove key away from the tag without hiding it: disabled is a statement about the key and not about the label.<br>Shown in: [Configurator](#tag), [Remove tags from a group](#tag) |
17204
- | `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
17848
+ | `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
17205
17849
 
17206
17850
  ###### Events
17207
17851
 
@@ -17215,7 +17859,7 @@ Also takes every attribute of `<span>` – without `onRemove`.
17215
17859
 
17216
17860
  | Prop | Type | Default | Description |
17217
17861
  |---|---|---|---|
17218
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
17862
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
17219
17863
 
17220
17864
  ###### Accessibility
17221
17865
 
@@ -17240,7 +17884,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
17240
17884
  - No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
17241
17885
  - Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
17242
17886
 
17243
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
17887
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
17244
17888
 
17245
17889
  ### Stat
17246
17890
 
@@ -17981,6 +18625,49 @@ export default function AServiceOverview() {
17981
18625
  }
17982
18626
  ```
17983
18627
 
18628
+ ##### Say how far the source vouches for a value
18629
+
18630
+ Pass `quality` – `good`, `uncertain` or `bad`, the severities of an OPC UA status code – and the tile says so in a word and a line under the figure. The number and the verdict stay; mapping a status code to a level is the application's.
18631
+
18632
+ ```tsx
18633
+ import { Grid, Stat } from "@umriss-ui/core";
18634
+ import type { FreshnessAges, LimitSet } from "@umriss-ui/core";
18635
+
18636
+ /* Distances from the moment the page loaded, so the tiles always read the same. */
18637
+ const LOADED = Date.now();
18638
+ const MIN = 60_000;
18639
+
18640
+ const AGES: FreshnessAges = { stale: 2 * MIN, lost: 10 * MIN };
18641
+
18642
+ /** The same limits for every tile: warn from 820 °C, alarm from 860 °C. */
18643
+ const FURNACE: LimitSet = {
18644
+ limits: [
18645
+ { value: 820, side: "upper", severity: "warning" },
18646
+ { value: 860, side: "upper", severity: "alarm" },
18647
+ ],
18648
+ };
18649
+
18650
+ export default function SourceQuality() {
18651
+ return (
18652
+ <Grid minItemWidth="200px" gap={4}>
18653
+ <Stat label="Furnace 1" value={805} unit="°C" decimals={0} limits={FURNACE} quality="good" />
18654
+ <Stat label="Furnace 2" value={812} unit="°C" decimals={0} limits={FURNACE} quality="uncertain" />
18655
+ <Stat label="Furnace 3" value={905} unit="°C" decimals={0} limits={FURNACE} quality="bad" />
18656
+ <Stat
18657
+ label="Furnace 4"
18658
+ value={841}
18659
+ unit="°C"
18660
+ decimals={0}
18661
+ limits={FURNACE}
18662
+ quality="bad"
18663
+ asOf={LOADED - 4 * MIN}
18664
+ ages={AGES}
18665
+ />
18666
+ </Grid>
18667
+ );
18668
+ }
18669
+ ```
18670
+
17984
18671
  #### When to use something else
17985
18672
 
17986
18673
  - A share of a whole, drawn as a bar → Meter
@@ -17999,15 +18686,16 @@ It announces nothing: a value that changes or a verdict that turns is read when
17999
18686
 
18000
18687
  | Prop | Type | Default | Description |
18001
18688
  |---|---|---|---|
18002
- | `label` *required* | `string` | — | What is being measured.<br>Shown in: [Configurator](#stat), [A figure](#stat), [Read a value against its limits](#stat) and 15 more |
18003
- | `value` *required* | `number \| null \| undefined` | — | The measured value. Absent or non-finite gives the verdict `unknown` – and the tile says so, instead of showing a zero or an empty bar.<br>Shown in: [Configurator](#stat), [A figure](#stat), [Read a value against its limits](#stat) and 15 more |
18004
- | `unit` | `string` | — | The unit as it stands behind the value – „ms", „%", „GB".<br>Shown in: [Configurator](#stat), [Read a value against its limits](#stat), [Show a value nobody has](#stat) and 14 more |
18005
- | `decimals` | `number` | — | Fixed number of decimal places. Without it the notation decides; a metric whose number of digits jumps reads as a jump in the value.<br>Shown in: [Configurator](#stat), [A figure](#stat), [Read a value against its limits](#stat) and 12 more |
18006
- | `limits` | `LimitSet` | — | The rule the value is read against. Without it the tile is neutral – the honest display of a number for which nobody has named a rule.<br>Shown in: [Read a value against its limits](#stat), [Show a value nobody has](#stat), [Add a history](#stat) and 12 more |
18689
+ | `label` *required* | `string` | — | What is being measured.<br>Shown in: [Configurator](#stat), [A figure](#stat), [Read a value against its limits](#stat) and 16 more |
18690
+ | `value` *required* | `number \| null \| undefined` | — | The measured value. Absent or non-finite gives the verdict `unknown` – and the tile says so, instead of showing a zero or an empty bar.<br>Shown in: [Configurator](#stat), [A figure](#stat), [Read a value against its limits](#stat) and 16 more |
18691
+ | `unit` | `string` | — | The unit as it stands behind the value – „ms", „%", „GB".<br>Shown in: [Configurator](#stat), [Read a value against its limits](#stat), [Show a value nobody has](#stat) and 15 more |
18692
+ | `decimals` | `number` | — | Fixed number of decimal places. Without it the notation decides; a metric whose number of digits jumps reads as a jump in the value.<br>Shown in: [Configurator](#stat), [A figure](#stat), [Read a value against its limits](#stat) and 13 more |
18693
+ | `limits` | `LimitSet` | — | The rule the value is read against. Without it the tile is neutral – the honest display of a number for which nobody has named a rule.<br>Shown in: [Read a value against its limits](#stat), [Show a value nobody has](#stat), [Add a history](#stat) and 13 more |
18007
18694
  | `history` | `readonly number[]` | — | Values in chronological order; yields the history line, across the tile beneath the figures, or beside them in a tile of 380 px and more.<br>Shown in: [Add a history](#stat), [Give the history room](#stat), [Watch a kiln zone](#stat) and 4 more |
18008
- | `asOf` | `Date \| number \| null` | — | When the value was true – not when it was fetched.<br>Shown in: [Show how fresh a value is](#stat), [Watch the services that page at night](#stat), [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
18009
- | `ages` | `FreshnessAges` | — | Without ages there is no freshness display and no cadence.<br>Shown in: [Show how fresh a value is](#stat), [Watch the services that page at night](#stat), [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
18010
- | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
18695
+ | `asOf` | `Date \| number \| null` | — | When the value was true – not when it was fetched.<br>Shown in: [Show how fresh a value is](#stat), [Watch the services that page at night](#stat), [Say how far the source vouches for a value](#stat) and 1 more |
18696
+ | `ages` | `FreshnessAges` | — | Without ages there is no freshness display and no cadence.<br>Shown in: [Show how fresh a value is](#stat), [Watch the services that page at night](#stat), [Say how far the source vouches for a value](#stat) and 1 more |
18697
+ | `quality` | `Quality`<br>`"good" \| "uncertain" \| "bad"` | — | How far the value's source vouches for it. Absent and `good` show nothing; `uncertain` and `bad` say so in a word, in the tile's name and in a line under the figure. The verdict and the freshness stay.<br>Shown in: [Say how far the source vouches for a value](#stat) |
18698
+ | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
18011
18699
 
18012
18700
  Also takes every attribute of `<div>` – without `children`.
18013
18701
 
@@ -18022,7 +18710,7 @@ violated, and it is never the edge of a region.
18022
18710
 
18023
18711
  | Prop | Type | Default | Description |
18024
18712
  |---|---|---|---|
18025
- | `limits` | `readonly ``Limit``[]` | — | In any order; none, one or several.<br>Shown in: [Read a value against its limits](#stat), [Show a value nobody has](#stat), [Add a history](#stat) and 12 more |
18713
+ | `limits` | `readonly ``Limit``[]` | — | In any order; none, one or several.<br>Shown in: [Read a value against its limits](#stat), [Show a value nobody has](#stat), [Add a history](#stat) and 13 more |
18026
18714
  | `target` | `number` | — | <br>Shown in: [Measure against a target](#stat), [Watch a kiln zone](#stat), [English and German side by side (Language)](#language) and 3 more |
18027
18715
 
18028
18716
  ###### `FreshnessAges`
@@ -18036,8 +18724,17 @@ harder statement still wins - the middle state simply falls away.
18036
18724
 
18037
18725
  | Prop | Type | Default | Description |
18038
18726
  |---|---|---|---|
18039
- | `stale` *required* | `number` | — | From this age on the value counts as stale, but keeps its verdict.<br>Shown in: [Show how fresh a value is](#stat), [Watch the services that page at night](#stat), [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
18040
- | `lost` *required* | `number` | — | From this age on the connection counts as disconnected.<br>Shown in: [Show how fresh a value is](#stat), [Watch the services that page at night](#stat), [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
18727
+ | `stale` *required* | `number` | — | From this age on the value counts as stale, but keeps its verdict.<br>Shown in: [Show how fresh a value is](#stat), [Watch the services that page at night](#stat), [Say how far the source vouches for a value](#stat) and 1 more |
18728
+ | `lost` *required* | `number` | — | From this age on the connection counts as disconnected.<br>Shown in: [Show how fresh a value is](#stat), [Watch the services that page at night](#stat), [Say how far the source vouches for a value](#stat) and 1 more |
18729
+
18730
+ ###### `Quality`
18731
+
18732
+ How far a value's source vouches for it - independently of how the value is judged and how old it is.
18733
+ The levels are the severities of an OPC UA status code; mapping a code (or another protocol's quality) to a level is the application's.
18734
+
18735
+ ```ts
18736
+ type Quality = "good" | "uncertain" | "bad";
18737
+ ```
18041
18738
 
18042
18739
  ###### `Limit`
18043
18740
 
@@ -18049,9 +18746,9 @@ force a `null` on one edge in the one-sided case.
18049
18746
 
18050
18747
  | Prop | Type | Default | Description |
18051
18748
  |---|---|---|---|
18052
- | `value` *required* | `number` | — | <br>Shown in: [Read a value against its limits](#stat), [Show a value nobody has](#stat), [Add a history](#stat) and 12 more |
18053
- | `side` *required* | `Side`<br>`"upper" \| "lower"` | — | <br>Shown in: [Read a value against its limits](#stat), [Show a value nobody has](#stat), [Add a history](#stat) and 12 more |
18054
- | `severity` *required* | `Severity`<br>`"warning" \| "alarm"` | — | <br>Shown in: [Read a value against its limits](#stat), [Show a value nobody has](#stat), [Add a history](#stat) and 12 more |
18749
+ | `value` *required* | `number` | — | <br>Shown in: [Read a value against its limits](#stat), [Show a value nobody has](#stat), [Add a history](#stat) and 13 more |
18750
+ | `side` *required* | `Side`<br>`"upper" \| "lower"` | — | <br>Shown in: [Read a value against its limits](#stat), [Show a value nobody has](#stat), [Add a history](#stat) and 13 more |
18751
+ | `severity` *required* | `Severity`<br>`"warning" \| "alarm"` | — | <br>Shown in: [Read a value against its limits](#stat), [Show a value nobody has](#stat), [Add a history](#stat) and 13 more |
18055
18752
 
18056
18753
  ###### `Side`
18057
18754
 
@@ -18076,7 +18773,7 @@ type Severity = "warning" | "alarm";
18076
18773
  - No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
18077
18774
  - It fetches and polls nothing: freshness is judged from the `asOf` you give it.
18078
18775
 
18079
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
18776
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
18080
18777
 
18081
18778
  ### Meter
18082
18779
 
@@ -18228,7 +18925,7 @@ It is no live region: a new value is read when a reader reaches the bar. Under f
18228
18925
  | `tone` | `MeterTone`<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | `"accent"` | The colour of the bar. It comes from an assessment and not from taste: beside the bar there is always the number or a word, so that the colour is never the only statement.<br>Shown in: [Configurator](#meter), [Tones](#meter), [Compare a team's capacity](#meter) and 2 more |
18229
18926
  | `showLabel` | `boolean` | `true` | The percentage to the right of the bar (Geist Mono).<br>Shown in: [Configurator](#meter), [A share](#meter), [Compare a team's capacity](#meter) and 2 more |
18230
18927
  | `label` | `string` | the wording's "Fill level" | What is being measured, e.g. "Utilisation". A role of `meter` needs a name from the author - the visible percentage inside it does not count for that, and neither does the column heading beside it. Whoever knows what the bar measures says it better than the general term.<br>Shown in: [A share](#meter), [Tones](#meter), [Compare a team's capacity](#meter) and 2 more |
18231
- | `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
18928
+ | `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
18232
18929
 
18233
18930
  Also takes every attribute of `<span>`.
18234
18931
 
@@ -18246,7 +18943,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
18246
18943
 
18247
18944
  - No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
18248
18945
 
18249
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
18946
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
18250
18947
 
18251
18948
  ### Sparkline
18252
18949
 
@@ -18496,7 +19193,7 @@ export default function InATable() {
18496
19193
  | `width` | `number \| "fill"` | `96` | Width in pixels; the default is a row width, not a chart width. `"fill"` takes the width of its container, as a tile's history does; the line keeps its stroke and the end point stays round.<br>Shown in: [Configurator](#sparkline), [Size and tone](#sparkline), [One above the other (Splitter)](#splitter) and 1 more |
18497
19194
  | `height` | `number` | `28` | Height in pixels; the default is as high as a table row. With `width` `"fill"` a stylesheet may set the height instead: the drawing follows its box.<br>Shown in: [Configurator](#sparkline), [Size and tone](#sparkline), [One above the other (Splitter)](#splitter) and 1 more |
18498
19195
  | `tone` | `"ink" \| "accent"` | `"ink"` | The line is ink, not meaning: `accent` only where exactly one line among several is to be emphasised.<br>Shown in: [Configurator](#sparkline), [Size and tone](#sparkline) |
18499
- | `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
19196
+ | `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
18500
19197
 
18501
19198
  Also takes every attribute of `<span>`.
18502
19199
 
@@ -18504,7 +19201,7 @@ Also takes every attribute of `<span>`.
18504
19201
 
18505
19202
  - No axes, labels, tooltip or points to hover: the value stands beside it.
18506
19203
 
18507
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
19204
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.46.0/docs/adr/0032-what-umriss-is-not.md).
18508
19205
 
18509
19206
  ## API index
18510
19207
 
@@ -18532,7 +19229,7 @@ Used on [Accordion](#accordion).
18532
19229
 
18533
19230
  [Alert](#alert) – A message that stays in the page until its matter is settled (also called a banner or callout). Reach for it when the reader must notice something here: a failed import, an approval waiting, a form that did not save.
18534
19231
 
18535
- Used on [Scenarios](#scenarios), [Splitter](#splitter), [Textarea](#textarea), [Slider](#slider), [FileInput](#fileinput), [DateTimePicker](#datetimepicker), [Alert](#alert) and [Stepper](#stepper).
19232
+ Used on [Scenarios](#scenarios), [Splitter](#splitter), [Textarea](#textarea), [Slider](#slider), [FileInput](#fileinput), [Combobox](#combobox), [DateTimePicker](#datetimepicker), [Alert](#alert) and [Stepper](#stepper).
18536
19233
 
18537
19234
  ##### `AngleGlyph`
18538
19235
 
@@ -18618,7 +19315,7 @@ function ClockGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Ele
18618
19315
 
18619
19316
  [Combobox](#combobox) – One choice from a long list, found by typing (autocomplete, typeahead, searchable select): a driver, a service, an account. The list filters along while the value stays exactly one.
18620
19317
 
18621
- Used on [Scenarios](#scenarios), [Language](#language), [Combobox](#combobox), [Popover](#popover) and [CommandPalette](#commandpalette).
19318
+ Used on [Scenarios](#scenarios), [Language](#language), [FormField](#formfield), [Combobox](#combobox), [Popover](#popover) and [CommandPalette](#commandpalette).
18622
19319
 
18623
19320
  ##### `CommandPalette`
18624
19321
 
@@ -18661,7 +19358,7 @@ Used on [IconButton](#iconbutton).
18661
19358
 
18662
19359
  [DatePicker](#datepicker) – One day, picked in a calendar (date field): a delivery date, a due date. Weeks begin on Monday.
18663
19360
 
18664
- Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [Sizes](#sizes), [Language](#language), [FormField](#formfield) and [DatePicker](#datepicker).
19361
+ Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [Sizes](#sizes), [Language](#language), [FormField](#formfield), [DatePicker](#datepicker) and [Modal](#modal).
18665
19362
 
18666
19363
  ##### `DateRangePicker`
18667
19364
 
@@ -18763,7 +19460,7 @@ Used on [Scenarios](#scenarios), [Stack and Grid](#stack-and-grid), [Typography]
18763
19460
 
18764
19461
  [IconButton](#iconbutton) – A square button that shows only an icon (also called an icon-only button): refresh, export, close, the actions of a row. Reach for it where the icon is known well enough to stand alone; its name is required and shows as a tooltip.
18765
19462
 
18766
- Used on [Button](#button), [IconButton](#iconbutton) and [Menu](#menu).
19463
+ Used on [Button](#button), [IconButton](#iconbutton), [Input](#input) and [Menu](#menu).
18767
19464
 
18768
19465
  ##### `Input`
18769
19466
 
@@ -18780,14 +19477,14 @@ and usable directly for a section as well.
18780
19477
  function LanguageProvider({ formats, wording, children }: LanguageProviderProps): import("react").JSX.Element;
18781
19478
  ```
18782
19479
 
18783
- Used on [Language](#language).
19480
+ Used on [Scenarios](#scenarios) and [Language](#language).
18784
19481
 
18785
19482
  ##### `Link`
18786
19483
 
18787
19484
  [Typography](#typography-2) – A link in the size of its text; `external` opens it in a new tab with the
18788
19485
  protective attributes set.
18789
19486
 
18790
- Used on [Scenarios](#scenarios), [Theming](#theming), [Typography](#typography-2) and [Menu](#menu).
19487
+ Used on [Scenarios](#scenarios), [Theming](#theming), [Typography](#typography-2), [Menu](#menu) and [Drawer](#drawer).
18791
19488
 
18792
19489
  ##### `MeasureGlyph`
18793
19490
 
@@ -18802,7 +19499,7 @@ function MeasureGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.E
18802
19499
 
18803
19500
  [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.
18804
19501
 
18805
- Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [IconButton](#iconbutton), [Popover](#popover), [Menu](#menu) and [CommandPalette](#commandpalette).
19502
+ Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [IconButton](#iconbutton), [Popover](#popover), [Menu](#menu), [Drawer](#drawer) and [CommandPalette](#commandpalette).
18806
19503
 
18807
19504
  ##### `MenuItem`
18808
19505
 
@@ -18871,6 +19568,17 @@ screen reader, an optional sentence below it, and the close cross.
18871
19568
 
18872
19569
  Used on [Scenarios](#scenarios), [Sizes](#sizes), [Toast](#toast-1), [Modal](#modal) and [Drawer](#drawer).
18873
19570
 
19571
+ ##### `MoreGlyph`
19572
+
19573
+ The "more" of a menu trigger: three dots. Each is a zero-length stroke, which
19574
+ a round cap draws as a dot.
19575
+
19576
+ ```ts
19577
+ function MoreGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
19578
+ ```
19579
+
19580
+ Used on [IconButton](#iconbutton) and [Menu](#menu).
19581
+
18874
19582
  ##### `MultiSelect`
18875
19583
 
18876
19584
  [MultiSelect](#multiselect) – Several values from a list (multi-select, tag picker): a project team, services to filter by. The chosen ones stand as chips in the field, with a view in the panel that shows only them.
@@ -18903,7 +19611,7 @@ Used on [Popover](#popover) and [CommandPalette](#commandpalette).
18903
19611
 
18904
19612
  [ProgressBar](#progressbar) – A bar that shows how far a job has come, or that it runs while nobody knows how far (also called a progress indicator). Reach for it for imports, uploads and anything else that counts towards an end.
18905
19613
 
18906
- Used on [Scenarios](#scenarios), [ProgressBar](#progressbar) and [Stepper](#stepper).
19614
+ Used on [Scenarios](#scenarios), [FileInput](#fileinput), [ProgressBar](#progressbar) and [Stepper](#stepper).
18907
19615
 
18908
19616
  ##### `RadioGroup`
18909
19617
 
@@ -18915,7 +19623,7 @@ Used on [Scenarios](#scenarios), [Sizes](#sizes) and [RadioGroup](#radiogroup).
18915
19623
 
18916
19624
  [SegmentedControl](#segmentedcontrol) – One choice out of a few short possibilities, drawn as one control with a segment for each (segmented button, button toggle): a sunken track, the choice lifted out of it. As tall as a select, so it stands in a row of fields too.
18917
19625
 
18918
- Used on [Sizes](#sizes) and [SegmentedControl](#segmentedcontrol).
19626
+ Used on [Scenarios](#scenarios), [Sizes](#sizes) and [SegmentedControl](#segmentedcontrol).
18919
19627
 
18920
19628
  ##### `Select`
18921
19629
 
@@ -18984,7 +19692,7 @@ Used on [Scenarios](#scenarios), [FileInput](#fileinput), [Tabs](#tabs) and [Ste
18984
19692
 
18985
19693
  [Switch](#switch) – On or off, taking effect at once (toggle): paging at night, autoscaling, a feature for one service. A screen reader announces it as a switch, on or off.
18986
19694
 
18987
- Used on [Scenarios](#scenarios), [Theming](#theming), [Sizes](#sizes), [Switch](#switch), [Toast](#toast-1), [Drawer](#drawer), [CommandPalette](#commandpalette) and [Accordion](#accordion).
19695
+ Used on [Scenarios](#scenarios), [Theming](#theming), [Sizes](#sizes), [FormField](#formfield), [Switch](#switch), [Toast](#toast-1), [Drawer](#drawer), [CommandPalette](#commandpalette) and [Accordion](#accordion).
18988
19696
 
18989
19697
  ##### `Tab`
18990
19698
 
@@ -19085,19 +19793,19 @@ Used on [UmrissProvider](#umrissprovider) and [Toast](#toast-1).
19085
19793
 
19086
19794
  [VisuallyHidden](#visuallyhidden) – Text a screen reader announces but the eye does not see (also called screen-reader-only or sr-only). Reach for it when a visible label is clear from its surroundings but not on its own, and for a skip link.
19087
19795
 
19088
- Used on [VisuallyHidden](#visuallyhidden).
19796
+ Used on [VisuallyHidden](#visuallyhidden) and [FileInput](#fileinput).
19089
19797
 
19090
19798
  #### Hooks
19091
19799
 
19092
19800
  ##### `useCommandPaletteShortcut`
19093
19801
 
19094
- Binds Cmd+K/Ctrl+K and "/" to the opening of a palette.
19802
+ Binds Cmd+K/Ctrl+K and "/" to the opening of a palette. To remap a key, call the same `onOpen` from your own listener.
19095
19803
 
19096
- `onOpen` may be new on every render: the hook remembers the current version
19097
- rather than unsubscribing and resubscribing the listener each time.
19804
+ `onOpen` and `options` may be new on every render: the hook remembers the
19805
+ current version rather than unsubscribing and resubscribing the listener each time.
19098
19806
 
19099
19807
  ```ts
19100
- function useCommandPaletteShortcut(onOpen: () => void): void;
19808
+ function useCommandPaletteShortcut(onOpen: () => void, options?: CommandPaletteShortcutOptions): void;
19101
19809
  ```
19102
19810
 
19103
19811
  Used on [CommandPalette](#commandpalette).
@@ -19143,13 +19851,15 @@ function useDensityFor(own: "regular" | "compact" | undefined, fallback: "regula
19143
19851
 
19144
19852
  ##### `useFormats`
19145
19853
 
19146
- Only the formatting. Dates and times are empty until the page has hydrated.
19854
+ Only the formatting. Without a named zone, dates and times are empty until
19855
+ the page has hydrated. A named zone does not depend on the reader, so the
19856
+ server writes every instant with it.
19147
19857
 
19148
19858
  ```ts
19149
19859
  function useFormats(): Formats;
19150
19860
  ```
19151
19861
 
19152
- Used on [Language](#language), [NumberInput](#numberinput), [Slider](#slider), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [DateRangePicker](#daterangepicker) and [DateTimeRangePicker](#datetimerangepicker).
19862
+ Used on [Scenarios](#scenarios), [Language](#language), [NumberInput](#numberinput), [Slider](#slider), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [DateRangePicker](#daterangepicker) and [DateTimeRangePicker](#datetimerangepicker).
19153
19863
 
19154
19864
  ##### `useFormField`
19155
19865
 
@@ -19184,6 +19894,8 @@ Formatting and wording together; without a provider, the defaults.
19184
19894
  const useLanguage: () => Language;
19185
19895
  ```
19186
19896
 
19897
+ Used on [Scenarios](#scenarios).
19898
+
19187
19899
  ##### `usePortalTarget`
19188
19900
 
19189
19901
  Resolves the configured portal target.
@@ -19198,6 +19910,17 @@ would be invisible.
19198
19910
  function usePortalTarget(): () => HTMLElement | null;
19199
19911
  ```
19200
19912
 
19913
+ ##### `useTimeZoneLabel`
19914
+
19915
+ The name of the formats' time zone, for a view that shows instants: set when
19916
+ the formats name a zone, the page has hydrated, and the reader's own zone is
19917
+ another; `null` otherwise. The reader's zone is known only in the browser,
19918
+ so the server never writes it.
19919
+
19920
+ ```ts
19921
+ function useTimeZoneLabel(): string | null;
19922
+ ```
19923
+
19201
19924
  ##### `useToast`
19202
19925
 
19203
19926
  Access to `toast()`, `update()` and `dismiss()`; requires a ToastProvider.
@@ -19314,7 +20037,7 @@ a surface is laid out, and a region is laid out nowhere.
19314
20037
  function announce(text: string, at?: Element | null): void;
19315
20038
  ```
19316
20039
 
19317
- Used on [VisuallyHidden](#visuallyhidden) and [CommandPalette](#commandpalette).
20040
+ Used on [VisuallyHidden](#visuallyhidden), [FormField](#formfield) and [CommandPalette](#commandpalette).
19318
20041
 
19319
20042
  ##### `assess`
19320
20043
 
@@ -19490,6 +20213,37 @@ object is `numberWith`.
19490
20213
  function writeNumber(formats: Formats, n: number, format?: NumberFormat): string;
19491
20214
  ```
19492
20215
 
20216
+ ##### `zoneDayStart`
20217
+
20218
+ The instant at which the zone's day containing `instant` begins; `undefined`
20219
+ is the reader's zone.
20220
+
20221
+ ```ts
20222
+ function zoneDayStart(instant: Date | number, timeZone: string | undefined): Date;
20223
+ ```
20224
+
20225
+ ##### `zoneFields`
20226
+
20227
+ The wall-clock fields of an instant in a zone; `undefined` is the reader's.
20228
+
20229
+ ```ts
20230
+ function zoneFields(instant: Date | number, timeZone: string | undefined): ZoneFields;
20231
+ ```
20232
+
20233
+ Used on [Scenarios](#scenarios).
20234
+
20235
+ ##### `zoneInstant`
20236
+
20237
+ The instant at which a zone's clock shows the given fields; `undefined` is
20238
+ the reader's zone. A time the clock skips moves forward, as the Date does,
20239
+ and a doubled one takes the earlier occurrence.
20240
+
20241
+ ```ts
20242
+ function zoneInstant(clock: ZoneClock, timeZone: string | undefined): Date;
20243
+ ```
20244
+
20245
+ Used on [Scenarios](#scenarios).
20246
+
19493
20247
  #### Constants
19494
20248
 
19495
20249
  ##### `DEFAULT_FORMATS`
@@ -19668,6 +20422,14 @@ Used on [CommandPalette](#commandpalette).
19668
20422
 
19669
20423
  Its table stands on [CommandPalette](#commandpalette).
19670
20424
 
20425
+ ##### `CommandPaletteShortcutOptions`
20426
+
20427
+ Options of `useCommandPaletteShortcut`.
20428
+
20429
+ | Prop | Type | Default | Description |
20430
+ |---|---|---|---|
20431
+ | `slash` | `boolean` | `true` | Whether "/" opens the palette (WCAG 2.1.4: offer the user a way to turn a single-key shortcut off). Cmd+K / Ctrl+K is unaffected.<br>Shown in: [Open it with a shortcut (CommandPalette)](#commandpalette) |
20432
+
19671
20433
  ##### `ConfirmDialogProps`
19672
20434
 
19673
20435
  Its table stands on [ConfirmDialog](#confirmdialog).
@@ -19788,11 +20550,15 @@ Everything the library knows about formatting.
19788
20550
 
19789
20551
  | Prop | Type | Default | Description |
19790
20552
  |---|---|---|---|
20553
+ | `locale` *required* | `string` | — | The language tag the set was built in: "en-GB". |
20554
+ | `timeZone` *required* | `string \| undefined` | — | The IANA name of the time zone instants are written in, or `undefined` for the reader's own.<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
20555
+ | `timeZoneName` *required* | `(d: Date) => string` | — | The zone's generic name in the set's locale: "Central European Time". Empty until the page has hydrated where no zone is named. |
19791
20556
  | `date` *required* | `(d: Date) => string` | — | Date as displayed: 17/03/2026<br>Shown in: [A span of days (DateRangePicker)](#daterangepicker) |
19792
20557
  | `dateShort` *required* | `(d: Date) => string` | — | Short form without the year, in the range footer: 17/03 |
19793
20558
  | `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
20559
+ | `monthName` *required* | `(d: Date) => string` | — | The month alone, in the calendar head's month list: March |
19794
20560
  | `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
19795
- | `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03 |
20561
+ | `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
19796
20562
  | `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05<br>Shown in: [Use the language in your own components (Language)](#language), [Pick a day (DatePicker)](#datepicker), [Set an instant (DateTimePicker)](#datetimepicker) and 1 more |
19797
20563
  | `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
19798
20564
  | `number` *required* | `(n: number, decimals?: number) => string` | — | A number in the set's notation. Without a digit count the value stands to the tenth decimal place, and a non-zero value that would read 0 there is written in scientific notation; with one it is padded and rounded to exactly that many places.<br>Shown in: [Write numbers in your own notation (Language)](#language), [Price an invoice line (NumberInput)](#numberinput), [Split a budget (Slider)](#slider) |
@@ -19820,7 +20586,7 @@ Its table stands on [FormField](#formfield).
19820
20586
 
19821
20587
  ##### `Freshness`
19822
20588
 
19823
- How much a value can be relied on right now - independently of how it is judged.
20589
+ How old a value is right now - independently of how it is judged and how far its source vouches for it.
19824
20590
 
19825
20591
  ```ts
19826
20592
  type Freshness = "fresh" | "stale" | "lost";
@@ -19839,8 +20605,8 @@ harder statement still wins - the middle state simply falls away.
19839
20605
 
19840
20606
  | Prop | Type | Default | Description |
19841
20607
  |---|---|---|---|
19842
- | `stale` *required* | `number` | — | From this age on the value counts as stale, but keeps its verdict.<br>Shown in: [Show how fresh a value is (Stat)](#stat), [Watch the services that page at night (Stat)](#stat), [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
19843
- | `lost` *required* | `number` | — | From this age on the connection counts as disconnected.<br>Shown in: [Show how fresh a value is (Stat)](#stat), [Watch the services that page at night (Stat)](#stat), [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
20608
+ | `stale` *required* | `number` | — | From this age on the value counts as stale, but keeps its verdict.<br>Shown in: [Show how fresh a value is (Stat)](#stat), [Watch the services that page at night (Stat)](#stat), [Say how far the source vouches for a value (Stat)](#stat) and 1 more |
20609
+ | `lost` *required* | `number` | — | From this age on the connection counts as disconnected.<br>Shown in: [Show how fresh a value is (Stat)](#stat), [Watch the services that page at night (Stat)](#stat), [Say how far the source vouches for a value (Stat)](#stat) and 1 more |
19844
20610
 
19845
20611
  Used on [Scenarios](#scenarios) and [Stat](#stat).
19846
20612
 
@@ -19870,7 +20636,7 @@ The props of a glyph: an SVG's attributes and its edge length.
19870
20636
  | Prop | Type | Default | Description |
19871
20637
  |---|---|---|---|
19872
20638
  | `size` | `number` | `12` | Edge length in pixels. The default is the size the glyph is drawn at in the components. |
19873
- | `ref` | `Ref<SVGSVGElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
20639
+ | `ref` | `Ref<SVGSVGElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
19874
20640
 
19875
20641
  Also takes every attribute of `<svg>` – without `children`, `viewBox`.
19876
20642
 
@@ -19913,7 +20679,7 @@ A complete language: the formats for numbers and dates, and the wording.
19913
20679
 
19914
20680
  | Prop | Type | Default | Description |
19915
20681
  |---|---|---|---|
19916
- | `formats` *required* | `Formats` | — | |
20682
+ | `formats` *required* | `Formats` | — | <br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
19917
20683
  | `wording` *required* | `Wording` | — | |
19918
20684
 
19919
20685
  Used on [Toast](#toast-1).
@@ -19931,8 +20697,8 @@ that differ from the default.
19931
20697
 
19932
20698
  | Prop | Type | Default | Description |
19933
20699
  |---|---|---|---|
19934
- | `children` *required* | `ReactNode` | — | <br>Shown in: [German (Language)](#language), [English and German side by side (Language)](#language), [Replace single entries (Language)](#language) and 2 more |
19935
- | `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)). From `LanguageOptions`.<br>Shown in: [Set up an application (UmrissProvider)](#umrissprovider), [German (Language)](#language), [English and German side by side (Language)](#language) and 2 more |
20700
+ | `children` *required* | `ReactNode` | — | <br>Shown in: [German (Language)](#language), [English and German side by side (Language)](#language), [Replace single entries (Language)](#language) and 3 more |
20701
+ | `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)). From `LanguageOptions`.<br>Shown in: [Set up an application (UmrissProvider)](#umrissprovider), [German (Language)](#language), [English and German side by side (Language)](#language) and 3 more |
19936
20702
  | `wording` | `Partial<Omit<``Wording``, "presets">> & { presets?: Partial<``Wording``["presets"]> }` | — | The presets are a register of their own and are likewise overridden entry by entry. From `LanguageOptions`.<br>Shown in: [Set up an application (UmrissProvider)](#umrissprovider), [German (Language)](#language), [English and German side by side (Language)](#language) and 2 more |
19937
20703
 
19938
20704
  ##### `Limit`
@@ -19945,9 +20711,9 @@ force a `null` on one edge in the one-sided case.
19945
20711
 
19946
20712
  | Prop | Type | Default | Description |
19947
20713
  |---|---|---|---|
19948
- | `value` *required* | `number` | — | <br>Shown in: [English and German side by side (Language)](#language), [Replace single entries (Language)](#language), [Three panes (Splitter)](#splitter) and 12 more |
19949
- | `side` *required* | `Side`<br>`"upper" \| "lower"` | — | <br>Shown in: [English and German side by side (Language)](#language), [Replace single entries (Language)](#language), [Three panes (Splitter)](#splitter) and 12 more |
19950
- | `severity` *required* | `Severity`<br>`"warning" \| "alarm"` | — | <br>Shown in: [English and German side by side (Language)](#language), [Replace single entries (Language)](#language), [Three panes (Splitter)](#splitter) and 12 more |
20714
+ | `value` *required* | `number` | — | <br>Shown in: [English and German side by side (Language)](#language), [Replace single entries (Language)](#language), [Three panes (Splitter)](#splitter) and 13 more |
20715
+ | `side` *required* | `Side`<br>`"upper" \| "lower"` | — | <br>Shown in: [English and German side by side (Language)](#language), [Replace single entries (Language)](#language), [Three panes (Splitter)](#splitter) and 13 more |
20716
+ | `severity` *required* | `Severity`<br>`"warning" \| "alarm"` | — | <br>Shown in: [English and German side by side (Language)](#language), [Replace single entries (Language)](#language), [Three panes (Splitter)](#splitter) and 13 more |
19951
20717
 
19952
20718
  ##### `LimitSet`
19953
20719
 
@@ -19958,7 +20724,7 @@ violated, and it is never the edge of a region.
19958
20724
 
19959
20725
  | Prop | Type | Default | Description |
19960
20726
  |---|---|---|---|
19961
- | `limits` | `readonly ``Limit``[]` | — | In any order; none, one or several.<br>Shown in: [English and German side by side (Language)](#language), [Replace single entries (Language)](#language), [Three panes (Splitter)](#splitter) and 12 more |
20727
+ | `limits` | `readonly ``Limit``[]` | — | In any order; none, one or several.<br>Shown in: [English and German side by side (Language)](#language), [Replace single entries (Language)](#language), [Three panes (Splitter)](#splitter) and 13 more |
19962
20728
  | `target` | `number` | — | <br>Shown in: [English and German side by side (Language)](#language), [Replace single entries (Language)](#language), [Measure against a target (Stat)](#stat) and 3 more |
19963
20729
 
19964
20730
  Used on [Scenarios](#scenarios), [Language](#language), [Drawer](#drawer) and [Stat](#stat).
@@ -20123,6 +20889,17 @@ What the detector reads of a pointer event - a DOM or a React one fits.
20123
20889
 
20124
20890
  Its table stands on [ProgressBar](#progressbar).
20125
20891
 
20892
+ ##### `Quality`
20893
+
20894
+ How far a value's source vouches for it - independently of how the value is judged and how old it is.
20895
+ The levels are the severities of an OPC UA status code; mapping a code (or another protocol's quality) to a level is the application's.
20896
+
20897
+ ```ts
20898
+ type Quality = "good" | "uncertain" | "bad";
20899
+ ```
20900
+
20901
+ Used on [Scenarios](#scenarios).
20902
+
20126
20903
  ##### `RadioGroupProps`
20127
20904
 
20128
20905
  Its table stands on [RadioGroup](#radiogroup).
@@ -20148,7 +20925,7 @@ The `ref` of a component: the element it renders at its root.
20148
20925
 
20149
20926
  | Prop | Type | Default | Description |
20150
20927
  |---|---|---|---|
20151
- | `ref` | `Ref<E> \| undefined` | — | Receives the component's root element.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
20928
+ | `ref` | `Ref<E> \| undefined` | — | Receives the component's root element.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 4 more |
20152
20929
 
20153
20930
  ##### `RowPlacement`
20154
20931
 
@@ -20614,6 +21391,9 @@ Everything the library puts out as text.
20614
21391
  | `datePlaceholder` *required* | `string` | — | |
20615
21392
  | `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. |
20616
21393
  | `dateClear` *required* | `string` | — | |
21394
+ | `typeDate` *required* | `string` | — | The name of the DatePicker panel's typed field. |
21395
+ | `notADate` *required* | `string` | — | Announced when the typed text is no date. |
21396
+ | `dateOutOfRange` *required* | `(min: string \| null, max: string \| null) => string` | — | Announced when the typed date lies outside `min` and `max`; each bound is written in the formats in use, `null` where there is none. |
20617
21397
  | `dateTimePlaceholder` *required* | `string` | — | |
20618
21398
  | `dateTimePanel` *required* | `string` | — | |
20619
21399
  | `dateTimeClear` *required* | `string` | — | |
@@ -20624,6 +21404,8 @@ Everything the library puts out as text.
20624
21404
  | `dateTimeRangeClear` *required* | `string` | — | The clearing x of the range with time - kept apart from the range without, so that an application can call the two differently. |
20625
21405
  | `previousMonth` *required* | `string` | — | |
20626
21406
  | `nextMonth` *required* | `string` | — | |
21407
+ | `monthSelect` *required* | `string` | — | Name of the calendar head's month list. |
21408
+ | `yearSelect` *required* | `string` | — | Name of the calendar head's year list. |
20627
21409
  | `quickSelect` *required* | `string` | — | Group name of the preset column. |
20628
21410
  | `today` *required* | `string` | — | <br>Shown in: [Use the language in your own components (Language)](#language) |
20629
21411
  | `now` *required* | `string` | — | |
@@ -20774,6 +21556,9 @@ Everything the library puts out as text.
20774
21556
  | `freshnessFresh` *required* | `string` | — | 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)). |
20775
21557
  | `freshnessStale` *required* | `string` | — | |
20776
21558
  | `freshnessDisconnected` *required* | `string` | — | |
21559
+ | `qualityGood` *required* | `string` | — | The three quality levels ([ADR-0077](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0077-a-bad-value-keeps-its-verdict.md)) - the THIRD axis, beside the verdict and the freshness: how far the value's source vouches for it. A bad value keeps its verdict and its age. |
21560
+ | `qualityUncertain` *required* | `string` | — | |
21561
+ | `qualityBad` *required* | `string` | — | |
20777
21562
  | `asOfAgo` *required* | `(duration: string) => string` | — | "As of: 3 minutes ago", where the duration comes from the formats. |
20778
21563
  | `close` *required* | `string` | — | |
20779
21564
  | `closeToast` *required* | `string` | — | |
@@ -20819,7 +21604,18 @@ Everything the library puts out as text.
20819
21604
  | `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
20820
21605
  | `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
20821
21606
  | `scheduleSummary` *required* | `(summary: { lanes: number; subtasks: number; from: string; to: string; overlaps: number; violated: number; /** Subtasks in blocked time; said only where there are any. */ blocked: number; /** Milestones of the plan; said only where there are any. */ milestones: number; }) => string` | — | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
21607
+ | `scheduleVisibleRange` *required* | `(from: string, to: string) => string` | — | The span in view, said after a zoom key. |
20822
21608
  | `scheduleKeyHelp` *required* | `string` | — | The keys that walk the plot, select and edit - read after the summary. |
21609
+ | `scheduleShowData` *required* | `string` | — | The disclosure key of the plan's table. |
21610
+ | `scheduleHideData` *required* | `string` | — | |
21611
+ | `scheduleTableCaption` *required* | `(from: string, to: string) => string` | — | The open table's caption: the span it lists, both ends formatted. |
21612
+ | `scheduleColumnLane` *required* | `string` | — | The table's column heads. |
21613
+ | `scheduleColumnTask` *required* | `string` | — | |
21614
+ | `scheduleColumnSubtask` *required* | `string` | — | |
21615
+ | `scheduleColumnFrom` *required* | `string` | — | |
21616
+ | `scheduleColumnTo` *required* | `string` | — | |
21617
+ | `scheduleColumnDuration` *required* | `string` | — | |
21618
+ | `scheduleColumnFindings` *required* | `string` | — | |
20823
21619
  | `dashboardEdit` *required* | `string` | — | The editing bar's buttons and the label that says the mode is on. |
20824
21620
  | `dashboardEditing` *required* | `string` | — | |
20825
21621
  | `dashboardCancel` *required* | `string` | — | |
@@ -20830,6 +21626,9 @@ Everything the library puts out as text.
20830
21626
  | `dashboardMenu` *required* | `(title: string) => string` | — | The name of a widget's menu button: the widget's title is the thing. |
20831
21627
  | `dashboardPlace` *required* | `(place: number, of: number) => string` | — | At the top of the menu, and in the name of a head the arrow keys move. |
20832
21628
  | `dashboardHead` *required* | `(title: string, place: number, of: number) => string` | — | |
21629
+ | `dashboardHeadLocked` *required* | `(title: string, place: number, of: number) => string` | — | The name of the head of a locked widget in the editing mode. |
21630
+ | `dashboardLocked` *required* | `string` | — | The word beside a locked widget's size in the mode. |
21631
+ | `dashboardLockedLine` *required* | `string` | — | The disabled line in a locked widget's menu, where the sizes, the options and "Remove" would stand. |
20833
21632
  | `dashboardMoveStart` *required* | `string` | — | |
20834
21633
  | `dashboardMoveEarlier` *required* | `string` | — | |
20835
21634
  | `dashboardMoveLater` *required* | `string` | — | |
@@ -20889,6 +21688,36 @@ Everything the library puts out as text.
20889
21688
 
20890
21689
  Used on [Language](#language).
20891
21690
 
21691
+ ##### `ZoneClock`
21692
+
21693
+ The fields a wall clock shows. Time of day defaults to midnight; a field
21694
+ out of range carries over, as `new Date(y, m, d)` does.
21695
+
21696
+ | Prop | Type | Default | Description |
21697
+ |---|---|---|---|
21698
+ | `year` *required* | `number` | — | <br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
21699
+ | `month` *required* | `number` | — | <br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
21700
+ | `day` *required* | `number` | — | <br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
21701
+ | `hours` | `number` | `0` | <br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
21702
+ | `minutes` | `number` | `0` | |
21703
+ | `seconds` | `number` | `0` | |
21704
+ | `milliseconds` | `number` | `0` | |
21705
+
21706
+ ##### `ZoneFields`
21707
+
21708
+ The wall-clock fields of an instant. `month` counts from 0 and `weekday`
21709
+ from Sunday = 0, as the Date's own getters do.
21710
+
21711
+ | Prop | Type | Default | Description |
21712
+ |---|---|---|---|
21713
+ | `year` *required* | `number` | — | <br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
21714
+ | `month` *required* | `number` | — | <br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
21715
+ | `day` *required* | `number` | — | <br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
21716
+ | `hours` *required* | `number` | — | |
21717
+ | `minutes` *required* | `number` | — | |
21718
+ | `seconds` *required* | `number` | — | |
21719
+ | `weekday` *required* | `number` | — | |
21720
+
20892
21721
  #### @umriss-ui/core/wording/de
20893
21722
 
20894
21723
  ##### `GERMAN_FORMATS`