@umriss-ui/core 0.42.0 → 0.43.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.42.0
1
+ # @umriss-ui/core 0.43.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
 
@@ -367,7 +367,7 @@ function Content() {
367
367
  <Card data-callout="3">
368
368
  <CardHeader title="p95 latency since 08:00" />
369
369
  <CardBody>
370
- <Chart height={200} ariaLabel={`${SERVICE.name}, p95 latency since 08:00`}>
370
+ <Chart height={200} aria-label={`${SERVICE.name}, p95 latency since 08:00`}>
371
371
  <XAxis value="t" time />
372
372
  <YAxis domain={[0, 700]} label="ms" />
373
373
  <LimitLine value={SERVICE.latencySlo} severity="alarm" label="Objective" />
@@ -385,7 +385,7 @@ function Content() {
385
385
  <TabPanel value="alerts">
386
386
  <div data-callout="4">
387
387
  <Stack gap={2}>
388
- <Table selectable ariaLabel="Alerts of the incident">
388
+ <Table selectable aria-label="Alerts of the incident">
389
389
  <Column value="raised" label="Raised">
390
390
  {(raised) => time(raised)}
391
391
  </Column>
@@ -762,7 +762,7 @@ function Content() {
762
762
  <CardHeader title="Fleet" />
763
763
  <CardBody>
764
764
  <div data-callout="1">
765
- <TreeView tree={tree} ariaLabel="Depots and vehicles">
765
+ <TreeView tree={tree} aria-label="Depots and vehicles">
766
766
  {(entry) => entry.node.name}
767
767
  </TreeView>
768
768
  </div>
@@ -2223,7 +2223,7 @@ export default function ControlRoom() {
2223
2223
  </Region>
2224
2224
 
2225
2225
  <Region id="room-trend" title="Kiln trend" callout="3">
2226
- <kilnTrend.Chart height={240} ariaLabel="Kiln K1, zone 3, over the shift">
2226
+ <kilnTrend.Chart height={240} aria-label="Kiln K1, zone 3, over the shift">
2227
2227
  <kilnTrend.XAxis value="t" domain={[at(0), at(LAST)]} time />
2228
2228
  <kilnTrend.YAxis domain={[1170, 1250]} label="°C" />
2229
2229
  <LimitBand from={KILN.tolerance[0]} to={KILN.tolerance[1]} severity="warning" label="Tolerance" />
@@ -2236,7 +2236,7 @@ export default function ControlRoom() {
2236
2236
 
2237
2237
  <Region id="room-alarms" title="Alarms" quiet callout="4">
2238
2238
  <Stack gap={2}>
2239
- <Table selectable ariaLabel="Alarms">
2239
+ <Table selectable aria-label="Alarms">
2240
2240
  <Column value="raised" label="Raised">
2241
2241
  {(raised) => clock(raised)}
2242
2242
  </Column>
@@ -2275,7 +2275,7 @@ export default function ControlRoom() {
2275
2275
  }
2276
2276
  >
2277
2277
  <Schedule
2278
- ariaLabel="Plan of the early shift: press, dryer and kiln"
2278
+ aria-label="Plan of the early shift: press, dryer and kiln"
2279
2279
  height={196}
2280
2280
  now={now}
2281
2281
  selectedTask={batch}
@@ -2291,7 +2291,7 @@ export default function ControlRoom() {
2291
2291
 
2292
2292
  <Grid columns={2} gap={4}>
2293
2293
  <Region id="room-quality" title="Tile length">
2294
- <tileLength.Chart ariaLabel="Tile length after firing, individuals chart">
2294
+ <tileLength.Chart aria-label="Tile length after firing, individuals chart">
2295
2295
  <tileLength.XAxis value="t" domain={[at(0), at(LAST)]} time />
2296
2296
  <tileLength.YAxis domain={[597, 602]} label="mm" />
2297
2297
  <LimitLine value={601.5} severity="alarm" label="USL" />
@@ -2371,6 +2371,136 @@ function BatchDetails({ batch, minute, onClose }: { batch: Batch; minute: number
2371
2371
  }
2372
2372
  ```
2373
2373
 
2374
+ ### Trace a batch through the shift
2375
+
2376
+ A line lead looks into one batch: choose it in the list, in the plan or in the kiln's trend, and the other two show the same batch.
2377
+
2378
+ 1. Enter on a batch's name chooses it, as a click anywhere on its row does. The table marks the row it was told is current and keeps nothing itself.
2379
+ 2. The plan selects the same batch. Choosing a bar there moves the table's mark and the band in the trend.
2380
+ 3. The trend draws the batch's stretch as a band of its own; choosing a point of the trend (a click, or Enter on the Active point) chooses the batch that ran at that instant.
2381
+ 4. The batch is one value in this scenario's state. Each view takes it by a prop it has and hands it back by a handler it has; no view knows the others.
2382
+
2383
+ Built from: Table, Schedule, Line, LimitLine, LimitBand.
2384
+
2385
+ ```tsx
2386
+ import { useState } from "react";
2387
+ import { Card, CardBody, CardHeader, Stack, Text } from "@umriss-ui/core";
2388
+ import { LimitBand, LimitLine, Tooltip, useChart } from "@umriss-ui/charts";
2389
+ import { useTable } from "@umriss-ui/table";
2390
+ import { useSchedule } from "@umriss-ui/schedule";
2391
+ import type { Subtask, Task } from "@umriss-ui/schedule";
2392
+
2393
+ /* Data from the plant world, written out here so the example runs on its own. */
2394
+
2395
+ /** The early shift begins at 06:00 on a day of its own, so the page is the same on every run. */
2396
+ const START = new Date(2026, 2, 17, 6, 0).getTime();
2397
+ const MIN = 60_000;
2398
+ const at = (minute: number) => START + minute * MIN;
2399
+ const SHIFT_MINUTES = 480;
2400
+
2401
+ /** A batch of tiles through the kiln. */
2402
+ export interface Batch {
2403
+ id: string;
2404
+ name: string;
2405
+ product: string;
2406
+ tiles: number;
2407
+ /** Instants, in milliseconds. */
2408
+ from: number;
2409
+ to: number;
2410
+ }
2411
+
2412
+ const BATCHES: readonly Batch[] = [
2413
+ { id: "b-4121", name: "B-4121", product: "Floor tile, grey", tiles: 280, from: at(0), to: at(75) },
2414
+ { id: "b-4122", name: "B-4122", product: "Floor tile, sand", tiles: 300, from: at(80), to: at(150) },
2415
+ { id: "b-4123", name: "B-4123", product: "Wall tile, white", tiles: 320, from: at(155), to: at(235) },
2416
+ { id: "b-4124", name: "B-4124", product: "Floor tile, grey", tiles: 260, from: at(245), to: at(310) },
2417
+ { id: "b-4125", name: "B-4125", product: "Wall tile, white", tiles: 320, from: at(315), to: at(395) },
2418
+ { id: "b-4126", name: "B-4126", product: "Floor tile, sand", tiles: 300, from: at(400), to: at(475) },
2419
+ ];
2420
+
2421
+ /** The batch that ran at the instant: both ends belong to it, a gap between two batches to none. */
2422
+ export function batchAt(batches: readonly Batch[], instant: number): Batch | undefined {
2423
+ return batches.find((batch) => batch.from <= instant && instant <= batch.to);
2424
+ }
2425
+
2426
+ const clock = (instant: number) => new Date(instant).toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" });
2427
+
2428
+ /** Zone 3 of the kiln every five minutes, in °C: it holds near 1200 while a batch is in and cools between batches. */
2429
+ const TREND = Array.from({ length: SHIFT_MINUTES / 5 }, (_, i) => {
2430
+ const t = at(i * 5);
2431
+ const loaded = batchAt(BATCHES, t) !== undefined;
2432
+ return { t, kiln: Math.round((loaded ? 1200 + 9 * Math.sin(i / 3) : 1176 + 4 * Math.sin(i / 2)) * 10) / 10 };
2433
+ });
2434
+
2435
+ const TASKS: readonly Task[] = BATCHES.map((batch) => ({ id: batch.id, name: batch.name, color: "var(--u-color-text-secondary)" }));
2436
+ const STEPS: readonly Subtask[] = BATCHES.map((batch) => ({ id: `${batch.id}-kiln`, task: batch.id, lane: "kiln", from: batch.from, to: batch.to }));
2437
+
2438
+ /* The key is the batch id, and only this state holds it. */
2439
+ export default function TraceABatch() {
2440
+ const [batch, setBatch] = useState<string | null>(null);
2441
+ const chosen = BATCHES.find((one) => one.id === batch);
2442
+
2443
+ const { Table, Column } = useTable(BATCHES, { rowKey: (b) => b.id });
2444
+ const { Schedule, Lane, Subtasks } = useSchedule({ initialView: { domain: [at(-10), at(SHIFT_MINUTES + 10)] } });
2445
+ const trend = useChart(TREND, {
2446
+ onSelect: (hit) => {
2447
+ const found = batchAt(BATCHES, hit.xValue);
2448
+ if (found !== undefined) setBatch(found.id);
2449
+ },
2450
+ });
2451
+
2452
+ return (
2453
+ <Stack gap={4}>
2454
+ <Text data-callout="4">{chosen === undefined ? "No batch chosen" : `Batch ${chosen.name}, ${clock(chosen.from)} to ${clock(chosen.to)}`}</Text>
2455
+
2456
+ <Card data-callout="1">
2457
+ <CardHeader title="Batches of the shift" />
2458
+ <CardBody>
2459
+ <Table aria-label="Batches of the early shift" currentRow={batch} onCurrentRowChange={(key) => setBatch(key)}>
2460
+ <Column value="name" label="Batch" rowHeader />
2461
+ <Column value="product" label="Product" />
2462
+ <Column value="tiles" label="Tiles" numeric />
2463
+ <Column id="kiln" label="In the kiln" value={(b) => b.from}>
2464
+ {(_, b) => `${clock(b.from)} - ${clock(b.to)}`}
2465
+ </Column>
2466
+ </Table>
2467
+ </CardBody>
2468
+ </Card>
2469
+
2470
+ <Card data-callout="2">
2471
+ <CardHeader title="Plan" />
2472
+ <CardBody>
2473
+ <Schedule
2474
+ aria-label="Plan of the early shift: the kiln"
2475
+ height={120}
2476
+ selectedTask={batch}
2477
+ onSelectedTaskChange={(task) => setBatch(task)}
2478
+ label={(subtask) => BATCHES.find((one) => one.id === subtask.task)?.name ?? subtask.task}
2479
+ >
2480
+ <Lane id="kiln" label="Kiln K1" />
2481
+ <Subtasks data={STEPS} tasks={TASKS} />
2482
+ </Schedule>
2483
+ </CardBody>
2484
+ </Card>
2485
+
2486
+ <Card data-callout="3">
2487
+ <CardHeader title="Kiln trend" />
2488
+ <CardBody>
2489
+ <trend.Chart height={240} aria-label="Kiln K1, zone 3, over the shift">
2490
+ <trend.XAxis value="t" domain={[at(0), at(SHIFT_MINUTES)]} time />
2491
+ <trend.YAxis domain={[1160, 1220]} label="°C" />
2492
+ <LimitLine value={1200} severity="warning" label="Target" />
2493
+ {chosen !== undefined && <LimitBand orientation="x" from={chosen.from} to={chosen.to} label={chosen.name} />}
2494
+ <trend.Line value="kiln" name="Zone 3" format={(v) => `${v.toFixed(1)} °C`} />
2495
+ <Tooltip mode="x" />
2496
+ </trend.Chart>
2497
+ </CardBody>
2498
+ </Card>
2499
+ </Stack>
2500
+ );
2501
+ }
2502
+ ```
2503
+
2374
2504
  ## Getting started
2375
2505
 
2376
2506
  What an application sets up once, before the first component.
@@ -2418,7 +2548,7 @@ From `ButtonProps` — the full table stands on [Button](#button).
2418
2548
  - No font is loaded or bundled.
2419
2549
  - Chrome 123, Firefox 120 and Safari 17.5 or newer; an older browser discards the tokens and shows the components unstyled.
2420
2550
 
2421
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
2551
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
2422
2552
 
2423
2553
  ### UmrissProvider
2424
2554
 
@@ -2629,7 +2759,7 @@ type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "
2629
2759
 
2630
2760
  - No theme and no default variants for components: a component is configured by its own props.
2631
2761
 
2632
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
2762
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
2633
2763
 
2634
2764
  ## Customising
2635
2765
 
@@ -2910,7 +3040,7 @@ One look for every component. A soft glow would read as a second, shadowy border
2910
3040
 
2911
3041
  ##### Toast
2912
3042
 
2913
- How far the toasts stand from the window's top and bottom edge and from its sides - set it to keep them clear of a fixed header, a toolbar at the bottom or a navigation rail at the side - and how wide a toast is. The region hangs in `body`, so set them on `:root`; a media query of your own may set another value per width. The center positions stand in the middle of the window whatever the side tokens are.
3043
+ How far the toasts stand from the window's top and bottom edge and from its sides - set it to keep them clear of a fixed header, a toolbar at the bottom or a navigation rail at the side - and how wide a toast is. The region hangs in `body`, so set them on `:root`; a media query of your own may set another value per width. The center positions stand in the middle of the window whatever the side tokens are. Each is the room from the visible edge: under `viewport-fit=cover` the hardware's safe area of that edge is added to it, so the token never reaches under a notch or a home indicator.
2914
3044
 
2915
3045
  | Token | Light | Dark | Description |
2916
3046
  |---|---|---|---|
@@ -3102,7 +3232,7 @@ From `BadgeProps` — the full table stands on [Badge](#badge).
3102
3232
  - 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.
3103
3233
  - 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`.
3104
3234
 
3105
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
3235
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
3106
3236
 
3107
3237
  ### Sizes
3108
3238
 
@@ -3231,7 +3361,7 @@ export default function ARowThatHoldsStill() {
3231
3361
  const [search, setSearch] = useState("");
3232
3362
  const [carriers, setCarriers] = useState<string[]>(["DHL", "UPS", "GLS"]);
3233
3363
  const [period, setPeriod] = useState<DateRange | null>(null);
3234
- const carriersRef = useRef<HTMLDivElement>(null);
3364
+ const carriersRef = useRef<HTMLButtonElement>(null);
3235
3365
  const statusRef = useRef<HTMLSelectElement>(null);
3236
3366
  const carriersWidth = useWidth(carriersRef);
3237
3367
  const statusWidth = useWidth(statusRef);
@@ -3520,7 +3650,7 @@ type ControlSize = "sm" | "md";
3520
3650
  - 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).
3521
3651
  - 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)`.
3522
3652
 
3523
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
3653
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
3524
3654
 
3525
3655
  ### Language
3526
3656
 
@@ -4187,7 +4317,7 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
4187
4317
 
4188
4318
  #### Formats
4189
4319
 
4190
- Every entry of `Formats`: `DEFAULT_FORMATS` beside `GERMAN_FORMATS`. Each set as it writes Tuesday, 17 March 2026 at 09:05:03 in Berlin (the time without seconds), the number 1204.5 to one decimal, the count 1204, the share 0.74, three minutes ago, and `Zebra`, `Émile` and `Apple` in order.
4320
+ Every entry of `Formats`: `DEFAULT_FORMATS` beside `GERMAN_FORMATS`. Each set as it writes Tuesday, 17 March 2026 at 09:05:03 in Berlin (the time without seconds), the number 1204.5 to one decimal, the same in euros, the count 1204, the share 0.74, three minutes ago, and `Zebra`, `Émile` and `Apple` in order.
4191
4321
 
4192
4322
  | Key | English | German | Description |
4193
4323
  |---|---|---|---|
@@ -4199,6 +4329,7 @@ Every entry of `Formats`: `DEFAULT_FORMATS` beside `GERMAN_FORMATS`. Each set as
4199
4329
  | `dateTime(d, withSeconds)` | 17/03/2026, 09:05 | 17.03.2026, 09:05 | Date and time together: 17/03/2026, 09:05 |
4200
4330
  | `offset(d)` | GMT+1 | GMT+1 | Short form of the UTC offset: GMT+2 |
4201
4331
  | `number(n, decimals)` | 1,204.5 | 1.204,5 | 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. |
4332
+ | `numberWith(n, options)` | €1,204.50 | 1.204,50 € | A number written with Intl's own options in the set's locale: a currency, a year without grouping, scientific notation. Pure Intl options - the `decimals` shorthand is expanded by `writeNumber` before it. Like the others it writes no negative zero unless the options set `signDisplay`. |
4202
4333
  | `count(n)` | 1,204 | 1.204 | A count. Kept apart from `number` because it makes a different promise: a count is whole, and Intl's own rounding (at most three decimal places) is right for it and wrong for a measurement. |
4203
4334
  | `percent(share)` | 74% | 74 % | A share from 0 to 1 as whole per cent: 74 % |
4204
4335
  | `compareText(a, b)` | Apple, Émile, Zebra | Apple, Émile, Zebra | The ordering of two texts by the set's collation. |
@@ -4237,6 +4368,7 @@ Everything the library knows about formatting.
4237
4368
  | `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 |
4238
4369
  | `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
4239
4370
  | `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) |
4371
+ | `numberWith` *required* | `(n: number, options: Intl.NumberFormatOptions) => string` | — | A number written with Intl's own options in the set's locale: a currency, a year without grouping, scientific notation. Pure Intl options - the `decimals` shorthand is expanded by `writeNumber` before it. Like the others it writes no negative zero unless the options set `signDisplay`. |
4240
4372
  | `count` *required* | `(n: number) => string` | — | A count. Kept apart from `number` because it makes a different promise: a count is whole, and Intl's own rounding (at most three decimal places) is right for it and wrong for a measurement.<br>Shown in: [Write numbers in your own notation](#language), [Use the language in your own components](#language) |
4241
4373
  | `percent` *required* | `(share: number) => string` | — | A share from 0 to 1 as whole per cent: 74 % |
4242
4374
  | `compareText` *required* | `(a: string, b: string) => number` | — | The ordering of two texts by the set's collation. |
@@ -4553,10 +4685,10 @@ Everything the library puts out as text.
4553
4685
 
4554
4686
  #### Known limits
4555
4687
 
4556
- - 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.42.0/docs/adr/0032-what-umriss-is-not.md)).
4688
+ - 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.43.0/docs/adr/0032-what-umriss-is-not.md)).
4557
4689
  - It holds only what the components say themselves; your labels, titles and data are yours to translate.
4558
4690
 
4559
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
4691
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
4560
4692
 
4561
4693
  ## Layout
4562
4694
 
@@ -4859,7 +4991,7 @@ The keys of [Button](#button) apply here.
4859
4991
  | Prop | Type | Default | Description |
4860
4992
  |---|---|---|---|
4861
4993
  | `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 69 more |
4862
- | `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 164 more |
4994
+ | `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 165 more |
4863
4995
  | `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 78 more |
4864
4996
  | `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 |
4865
4997
  | `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 32 more |
@@ -4903,7 +5035,7 @@ type GridColumnWidth = number | "fill";
4903
5035
  - No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
4904
5036
  - 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)).
4905
5037
 
4906
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
5038
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
4907
5039
 
4908
5040
  ### Divider
4909
5041
 
@@ -5283,7 +5415,7 @@ Also takes every attribute of the rendered element.
5283
5415
 
5284
5416
  | Prop | Type | Default | Description |
5285
5417
  |---|---|---|---|
5286
- | `title` *required* | `ReactNode` | — | The heading of the card. A node and not merely text, so that an identifier with markup can stand in it too.<br>Shown in: [Head and body](#card), [Eyebrow and actions](#card), [A flush body](#card) and 27 more |
5418
+ | `title` *required* | `ReactNode` | — | The heading of the card. A node and not merely text, so that an identifier with markup can stand in it too.<br>Shown in: [Head and body](#card), [Eyebrow and actions](#card), [A flush body](#card) and 28 more |
5287
5419
  | `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 |
5288
5420
  | `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 |
5289
5421
  | `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) |
@@ -5728,7 +5860,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
5728
5860
  - 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)).
5729
5861
  - It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
5730
5862
 
5731
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
5863
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
5732
5864
 
5733
5865
  ## Typography
5734
5866
 
@@ -6086,9 +6218,9 @@ export default function IncidentSummary() {
6086
6218
  | Prop | Type | Default | Description |
6087
6219
  |---|---|---|---|
6088
6220
  | `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 |
6089
- | `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 129 more |
6221
+ | `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 |
6090
6222
  | `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 |
6091
- | `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 94 more |
6223
+ | `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 |
6092
6224
  | `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 |
6093
6225
  | `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) |
6094
6226
  | `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) |
@@ -6164,10 +6296,10 @@ type TextLeading = "normal" | "tight";
6164
6296
  #### Known limits
6165
6297
 
6166
6298
  - No truncation and no line length: both depend on the column, which only the application knows.
6167
- - No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md)).
6299
+ - No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md)).
6168
6300
  - `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
6169
6301
 
6170
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
6302
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
6171
6303
 
6172
6304
  ### VisuallyHidden
6173
6305
 
@@ -6291,7 +6423,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
6291
6423
 
6292
6424
  - It hides from the eye only; to hide something from everyone, do not render it.
6293
6425
 
6294
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
6426
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
6295
6427
 
6296
6428
  ## Actions
6297
6429
 
@@ -6620,7 +6752,7 @@ type ControlSize = "sm" | "md";
6620
6752
  - The label stays on one line; keep it short rather than let it wrap.
6621
6753
  - No icon slot: an icon goes among the children, before the label, and the button sets its size.
6622
6754
 
6623
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
6755
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
6624
6756
 
6625
6757
  ### IconButton
6626
6758
 
@@ -6977,7 +7109,7 @@ type ControlSize = "sm" | "md";
6977
7109
  - The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
6978
7110
  - A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
6979
7111
 
6980
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
7112
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
6981
7113
 
6982
7114
  ### ButtonGroup
6983
7115
 
@@ -7337,7 +7469,7 @@ type ControlSize = "sm" | "md";
7337
7469
 
7338
7470
  - No toggle or segmented state; a choice that stays is a radio group.
7339
7471
 
7340
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
7472
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
7341
7473
 
7342
7474
  ## Forms
7343
7475
 
@@ -7621,7 +7753,7 @@ Also takes every attribute of `<input>` – without `size`.
7621
7753
  - No input masks or formatting while typing; check the value on leave or on submit.
7622
7754
  - No validation of its own: the error is the application's, handed to the `FormField`.
7623
7755
 
7624
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
7756
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
7625
7757
 
7626
7758
  ### FormField
7627
7759
 
@@ -7798,7 +7930,7 @@ The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox),
7798
7930
 
7799
7931
  | Prop | Type | Default | Description |
7800
7932
  |---|---|---|---|
7801
- | `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 77 more |
7933
+ | `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 |
7802
7934
  | `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 |
7803
7935
  | `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 |
7804
7936
  | `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 |
@@ -7812,7 +7944,7 @@ Also takes every attribute of `<div>`.
7812
7944
  - 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.
7813
7945
  - One field per `FormField`; a group of fields that share one label is a fieldset of your own.
7814
7946
 
7815
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
7947
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
7816
7948
 
7817
7949
  ### Textarea
7818
7950
 
@@ -8000,7 +8132,7 @@ Also takes every attribute of `<textarea>` – without `cols`.
8000
8132
 
8001
8133
  - Plain text only: no formatting, mentions or rich text.
8002
8134
 
8003
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
8135
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
8004
8136
 
8005
8137
  ### NumberInput
8006
8138
 
@@ -8199,6 +8331,25 @@ export default function PriceAnInvoiceLine() {
8199
8331
  }
8200
8332
  ```
8201
8333
 
8334
+ ##### A year without grouping
8335
+
8336
+ `grouping={false}` writes no group separators, so a year reads 2024 where the formats would write 2.024; the field still reads what it writes.
8337
+
8338
+ ```tsx
8339
+ import { useState } from "react";
8340
+ import { FormField, NumberInput } from "@umriss-ui/core";
8341
+
8342
+ export default function YearWithoutGrouping() {
8343
+ const [year, setYear] = useState<number | null>(2024);
8344
+
8345
+ return (
8346
+ <FormField label="Model year" style={{ maxWidth: 240 }}>
8347
+ <NumberInput value={year} onChange={setYear} min={1900} max={2100} decimals={0} grouping={false} />
8348
+ </FormField>
8349
+ );
8350
+ }
8351
+ ```
8352
+
8202
8353
  #### When to use something else
8203
8354
 
8204
8355
  - A value set roughly, where the position between two bounds matters more than the exact figure → Slider
@@ -8217,11 +8368,12 @@ export default function PriceAnInvoiceLine() {
8217
8368
 
8218
8369
  | Prop | Type | Default | Description |
8219
8370
  |---|---|---|---|
8220
- | `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 13 more |
8221
- | `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 11 more |
8222
- | `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 5 more |
8371
+ | `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 |
8372
+ | `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 |
8373
+ | `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 |
8223
8374
  | `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 |
8224
- | `decimals` | `number` | — | Fixed decimal places; 0 = whole numbers, undefined = free.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 11 more |
8375
+ | `decimals` | `number` | — | Fixed decimal places; 0 = whole numbers, undefined = free.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 12 more |
8376
+ | `grouping` | `boolean` | `true` | Group separators in the text: `false` writes none ("2024"), and the field still reads what it writes.<br>Shown in: [A year without grouping](#numberinput) |
8225
8377
  | `prefix` | `ReactNode` | — | Adornment before the number, e.g. "±".<br>Shown in: [Units and decimals](#numberinput) |
8226
8378
  | `suffix` | `ReactNode` | — | Adornment after the number, e.g. "€" or "%".<br>Shown in: [Number field](#numberinput), [Units and decimals](#numberinput), [States](#numberinput) and 9 more |
8227
8379
  | `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) |
@@ -8233,7 +8385,7 @@ export default function PriceAnInvoiceLine() {
8233
8385
 
8234
8386
  | Prop | Type | Default | Description |
8235
8387
  |---|---|---|---|
8236
- | `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 13 more |
8388
+ | `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 |
8237
8389
 
8238
8390
  Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`, `type`, `value`.
8239
8391
 
@@ -8242,7 +8394,7 @@ Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`
8242
8394
  - No expressions: “12*4” is not calculated.
8243
8395
  - No currency conversion; the unit is a label.
8244
8396
 
8245
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
8397
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
8246
8398
 
8247
8399
  ### Slider
8248
8400
 
@@ -8435,7 +8587,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
8435
8587
  - One thumb: no range with two ends.
8436
8588
  - Marks show values; they do not catch the thumb.
8437
8589
 
8438
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
8590
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
8439
8591
 
8440
8592
  ### Checkbox
8441
8593
 
@@ -8763,7 +8915,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
8763
8915
 
8764
8916
  - No pending or loading state; while your application applies the change, disable the switch or say so beside it.
8765
8917
 
8766
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
8918
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
8767
8919
 
8768
8920
  ### RadioGroup
8769
8921
 
@@ -9227,7 +9379,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
9227
9379
  - Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
9228
9380
  - No icons and no line of explanation in a segment; several chosen at once is not this control.
9229
9381
 
9230
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
9382
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
9231
9383
 
9232
9384
  ### FileInput
9233
9385
 
@@ -9476,7 +9628,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
9476
9628
 
9477
9629
  - No upload, no progress and no size limit of its own; those belong to the application sending the files.
9478
9630
 
9479
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
9631
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
9480
9632
 
9481
9633
  ## Choosing
9482
9634
 
@@ -9672,7 +9824,7 @@ Also takes every attribute of `<select>` – without `size`.
9672
9824
 
9673
9825
  - The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
9674
9826
 
9675
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
9827
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
9676
9828
 
9677
9829
  ### Combobox
9678
9830
 
@@ -9915,7 +10067,7 @@ export default function AssignAnIncident() {
9915
10067
  | `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) |
9916
10068
  | `emptyText` | `string` | — | Text shown for an empty search result.<br>Shown in: [States](#combobox) |
9917
10069
  | `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 |
9918
- | `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 |
10070
+ | `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 |
9919
10071
 
9920
10072
  ###### Events
9921
10073
 
@@ -9923,7 +10075,7 @@ export default function AssignAnIncident() {
9923
10075
  |---|---|---|---|
9924
10076
  | `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 |
9925
10077
 
9926
- Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
10078
+ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
9927
10079
 
9928
10080
  ##### `ComboboxOption<T extends string = string>`
9929
10081
 
@@ -9938,7 +10090,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
9938
10090
  - No free text as a value: only an option can be chosen.
9939
10091
  - No loading of options from a server; filter your own list and pass it in.
9940
10092
 
9941
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
10093
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
9942
10094
 
9943
10095
  ### MultiSelect
9944
10096
 
@@ -10194,7 +10346,7 @@ export default function FilterIncidentsByService() {
10194
10346
  | `disabled` | `boolean` | `false` | Locks field and panel.<br>Shown in: [Configurator](#multiselect), [States](#multiselect), [Dispatch a tour (Scenarios)](#dispatch-a-tour) |
10195
10347
  | `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) |
10196
10348
  | `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) |
10197
- | `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 |
10349
+ | `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 |
10198
10350
 
10199
10351
  ###### Events
10200
10352
 
@@ -10202,7 +10354,7 @@ export default function FilterIncidentsByService() {
10202
10354
  |---|---|---|---|
10203
10355
  | `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 |
10204
10356
 
10205
- Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
10357
+ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10206
10358
 
10207
10359
  ##### `MultiSelectOption<T extends string = string>`
10208
10360
 
@@ -10378,7 +10530,7 @@ export default function CheckADueDate() {
10378
10530
  | `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) |
10379
10531
  | `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) |
10380
10532
  | `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 |
10381
- | `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 |
10533
+ | `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 |
10382
10534
 
10383
10535
  ###### Events
10384
10536
 
@@ -10386,14 +10538,14 @@ export default function CheckADueDate() {
10386
10538
  |---|---|---|---|
10387
10539
  | `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 |
10388
10540
 
10389
- Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
10541
+ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10390
10542
 
10391
10543
  #### Known limits
10392
10544
 
10393
10545
  - No typing of a date into the field.
10394
10546
  - 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)).
10395
10547
 
10396
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
10548
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
10397
10549
 
10398
10550
  ### DateTimePicker
10399
10551
 
@@ -10548,7 +10700,7 @@ export default function WithAnError() {
10548
10700
  | `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) |
10549
10701
  | `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) |
10550
10702
  | `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) |
10551
- | `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 |
10703
+ | `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 |
10552
10704
 
10553
10705
  ###### Events
10554
10706
 
@@ -10556,13 +10708,13 @@ export default function WithAnError() {
10556
10708
  |---|---|---|---|
10557
10709
  | `onChange` *required* | `(date: Date \| null) => void` | — | Runs only on completion - "Apply", "Now" or "Clear" - and not already on the click on a day: a day without a time would be a half-set value here, and a half value is no value.<br>Shown in: [Configurator](#datetimepicker), [Set an instant](#datetimepicker), [With seconds](#datetimepicker) and 3 more |
10558
10710
 
10559
- Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
10711
+ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10560
10712
 
10561
10713
  #### Known limits
10562
10714
 
10563
10715
  - 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)).
10564
10716
 
10565
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
10717
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
10566
10718
 
10567
10719
  ### DateRangePicker
10568
10720
 
@@ -10743,7 +10895,7 @@ export default function WithAnError() {
10743
10895
  | `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) |
10744
10896
  | `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 |
10745
10897
  | `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) |
10746
- | `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 |
10898
+ | `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 |
10747
10899
 
10748
10900
  ###### Events
10749
10901
 
@@ -10751,7 +10903,7 @@ export default function WithAnError() {
10751
10903
  |---|---|---|---|
10752
10904
  | `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 |
10753
10905
 
10754
- Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
10906
+ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10755
10907
 
10756
10908
  ##### Types on this page
10757
10909
 
@@ -10780,7 +10932,7 @@ the moment of the click.
10780
10932
 
10781
10933
  - One span; no list of separate days.
10782
10934
 
10783
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
10935
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
10784
10936
 
10785
10937
  ### DateTimeRangePicker
10786
10938
 
@@ -10956,7 +11108,7 @@ export default function WithAnError() {
10956
11108
  | `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) |
10957
11109
  | `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) |
10958
11110
  | `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) |
10959
- | `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 |
11111
+ | `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 |
10960
11112
 
10961
11113
  ###### Events
10962
11114
 
@@ -10964,7 +11116,7 @@ export default function WithAnError() {
10964
11116
  |---|---|---|---|
10965
11117
  | `onChange` *required* | `(range: ``DateRange`` \| null) => void` | — | Runs only on "Apply" and on clearing (`null`), never between the two clicks. If the end lies before the start, both swap on applying - there is no error state.<br>Shown in: [Configurator](#datetimerangepicker), [A downtime window](#datetimerangepicker), [With seconds](#datetimerangepicker) and 3 more |
10966
11118
 
10967
- Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
11119
+ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10968
11120
 
10969
11121
  ##### Types on this page
10970
11122
 
@@ -10994,7 +11146,7 @@ the moment of the click.
10994
11146
  - 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)).
10995
11147
  - No recurring windows.
10996
11148
 
10997
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
11149
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
10998
11150
 
10999
11151
  ## Feedback
11000
11152
 
@@ -11144,7 +11296,7 @@ Also takes every attribute of `<svg>`.
11144
11296
 
11145
11297
  - One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
11146
11298
 
11147
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
11299
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
11148
11300
 
11149
11301
  ### ProgressBar
11150
11302
 
@@ -11327,7 +11479,7 @@ Also takes every attribute of `<div>`.
11327
11479
 
11328
11480
  - No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
11329
11481
 
11330
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
11482
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
11331
11483
 
11332
11484
  ### Skeleton
11333
11485
 
@@ -11484,7 +11636,7 @@ Also takes every attribute of `<span>`.
11484
11636
 
11485
11637
  - It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
11486
11638
 
11487
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
11639
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
11488
11640
 
11489
11641
  ### Alert
11490
11642
 
@@ -11702,7 +11854,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
11702
11854
  - No timer: an alert stays until you remove it. A message that goes by itself is a toast.
11703
11855
  - No stack or queue of messages; place each alert where its matter is.
11704
11856
 
11705
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
11857
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
11706
11858
 
11707
11859
  ### Toast
11708
11860
 
@@ -12260,7 +12412,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
12260
12412
  - 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.
12261
12413
  - 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.
12262
12414
 
12263
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
12415
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
12264
12416
 
12265
12417
  ### EmptyState
12266
12418
 
@@ -12568,7 +12720,7 @@ export default function ACalculation() {
12568
12720
  - No interactive content and no rich layout inside: it is read, never used.
12569
12721
  - No placement option: it stands above its element and flips below where there is no room.
12570
12722
 
12571
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
12723
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
12572
12724
 
12573
12725
  ### Popover
12574
12726
 
@@ -12603,7 +12755,7 @@ export default function AnchoredSurface() {
12603
12755
  <Button ref={anchor} onClick={() => setOpen((o) => !o)} aria-expanded={open}>
12604
12756
  Sprint 14
12605
12757
  </Button>
12606
- <Popover open={open} onOpenChange={setOpen} anchorRef={anchor} role="dialog" ariaLabel="Sprint 14" restoreFocus width={280}>
12758
+ <Popover open={open} onOpenChange={setOpen} anchorRef={anchor} role="dialog" aria-label="Sprint 14" restoreFocus width={280}>
12607
12759
  <Stack gap={2} style={{ padding: "var(--u-space-4)" }}>
12608
12760
  <Text size="sm" weight="medium">
12609
12761
  Member portal sign-in and profile
@@ -12640,7 +12792,7 @@ export default function WidthFromAnchor() {
12640
12792
  onOpenChange={setOpen}
12641
12793
  anchorRef={anchor}
12642
12794
  role="dialog"
12643
- ariaLabel="Vehicles at Riverside depot"
12795
+ aria-label="Vehicles at Riverside depot"
12644
12796
  width="anchor"
12645
12797
  minWidth={180}
12646
12798
  restoreFocus
@@ -12693,7 +12845,7 @@ export default function AFilterPanel() {
12693
12845
  >
12694
12846
  Depots: {applied.length === DEPOTS.length ? "all" : applied.length}
12695
12847
  </Button>
12696
- <Popover open={open} onOpenChange={setOpen} anchorRef={anchor} role="dialog" ariaLabel="Filter by depot" restoreFocus width={260}>
12848
+ <Popover open={open} onOpenChange={setOpen} anchorRef={anchor} role="dialog" aria-label="Filter by depot" restoreFocus width={260}>
12697
12849
  <Stack gap={3} style={{ padding: "var(--u-space-4)" }}>
12698
12850
  {DEPOTS.map((depot) => (
12699
12851
  <Checkbox key={depot} label={depot} checked={draft.includes(depot)} onChange={() => toggle(depot)} />
@@ -12745,7 +12897,7 @@ export default function ACardAtTheEdge() {
12745
12897
  <Button ref={anchor} size="sm" variant="ghost" onClick={() => setOpen((o) => !o)} aria-expanded={open}>
12746
12898
  Maya Lindgren
12747
12899
  </Button>
12748
- <Popover open={open} onOpenChange={setOpen} anchorRef={anchor} align="end" offset={8} hideOnScroll role="dialog" ariaLabel="Maya Lindgren" width={260}>
12900
+ <Popover open={open} onOpenChange={setOpen} anchorRef={anchor} align="end" offset={8} hideOnScroll role="dialog" aria-label="Maya Lindgren" width={260}>
12749
12901
  <Stack gap={1} style={{ padding: "var(--u-space-4)" }}>
12750
12902
  <Text size="sm" weight="medium">
12751
12903
  Maya Lindgren
@@ -12800,7 +12952,8 @@ export default function ACardAtTheEdge() {
12800
12952
  | Prop | Type | Default | Description |
12801
12953
  |---|---|---|---|
12802
12954
  | `role` | `"dialog" \| "listbox" \| "menu" \| "tooltip"` | — | Role of the surface. Omit where an inner element carries it.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 1 more |
12803
- | `ariaLabel` | `string` | — | Accessible name of the surface. Needed as soon as it carries a `role`: a named role without a name is a riddle for a screen reader.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 1 more |
12955
+ | `aria-label` | `string` | — | Accessible name of the surface. Needed as soon as it carries a `role`: a named role without a name is a riddle for a screen reader.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 1 more |
12956
+ | `ariaLabel` | `string` | — | *Deprecated* since 0.43 - use `aria-label`. The old spelling of `aria-label`; both work for one further minor. |
12804
12957
 
12805
12958
  ###### Styling
12806
12959
 
@@ -12823,7 +12976,7 @@ type Align = "start" | "end" | "center";
12823
12976
  - 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.
12824
12977
  - It does not trap focus; a surface the user must answer is a [Modal](#modal).
12825
12978
 
12826
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
12979
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
12827
12980
 
12828
12981
  ### Menu
12829
12982
 
@@ -13024,45 +13177,42 @@ Also takes every attribute of `<button>` – without `onSelect`.
13024
13177
 
13025
13178
  - No submenus, no checkable entries and no type-ahead.
13026
13179
 
13027
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
13180
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
13028
13181
 
13029
13182
  ### ContextMenu
13030
13183
 
13031
13184
  A menu that opens at a point, for a right-click on something that is not a button: a row, a canvas, a bar in a schedule (also called a right-click menu). The entries and the keyboard are those of the menu.
13032
13185
 
13033
13186
  ```ts
13034
- import { ContextMenu, MenuItem, MenuSeparator } from "@umriss-ui/core";
13187
+ import { ContextMenu, MenuItem, MenuSeparator, useContextMenuTrigger } from "@umriss-ui/core";
13035
13188
  ```
13036
13189
 
13037
- It is controlled: on `contextmenu` you keep the point and open it there, and `onOpenChange` reports the wish to close. Focus goes to the first entry and back to where it was on closing.
13190
+ It is controlled: spread [`useContextMenuTrigger`](#api-index-1) on the target and keep the point it hands you - a right-click, the menu key and a long press with a finger (the only way on iOS) all give one - and open it there. `onOpenChange` reports the wish to close. Focus goes to the first entry and back to where it was on closing.
13038
13191
 
13039
- A right-click is invisible to a keyboard. Open the same menu on Shift+F10 or the menu key at the focused element, and keep the actions reachable some other way too.
13192
+ A right-click and a long press are invisible to a keyboard; the hook also opens it on Shift+F10 or the menu key at the focused element. Keep the actions reachable some other way too.
13040
13193
 
13041
13194
  #### Examples
13042
13195
 
13043
13196
  ##### Open it at the pointer
13044
13197
 
13045
- On `contextmenu`, keep the event's point and pass it as `position`; `ariaLabel` names what the menu acts on.
13198
+ Spread [`useContextMenuTrigger`](#api-index-1) on the target and keep the point it gives you as `position`: it opens on a right-click, the context-menu key and a long press with a finger, which is the only way on iOS. `aria-label` names what the menu acts on.
13046
13199
 
13047
13200
  ```tsx
13048
13201
  import { useState } from "react";
13049
- import type { MouseEvent } from "react";
13050
- import { ContextMenu, MenuItem, MenuSeparator, Stack, Text } from "@umriss-ui/core";
13202
+ import { ContextMenu, MenuItem, MenuSeparator, Stack, Text, useContextMenuTrigger } from "@umriss-ui/core";
13051
13203
 
13052
13204
  export default function AtThePointer() {
13053
13205
  const [at, setAt] = useState<{ x: number; y: number } | null>(null);
13054
13206
  const [last, setLast] = useState("-");
13055
13207
 
13056
- const openHere = (event: MouseEvent) => {
13057
- event.preventDefault();
13058
- setAt({ x: event.clientX, y: event.clientY });
13059
- };
13208
+ const trigger = useContextMenuTrigger(setAt);
13060
13209
 
13061
13210
  return (
13062
13211
  <Stack gap={3} align="flex-start">
13063
13212
  <div
13064
- onContextMenu={openHere}
13213
+ {...trigger}
13065
13214
  style={{
13215
+ ...trigger.style,
13066
13216
  width: "100%",
13067
13217
  maxWidth: 320,
13068
13218
  height: 120,
@@ -13073,7 +13223,7 @@ export default function AtThePointer() {
13073
13223
  }}
13074
13224
  >
13075
13225
  <Text size="sm" tone="muted">
13076
- Right-click anywhere in here
13226
+ Right-click or hold anywhere in here
13077
13227
  </Text>
13078
13228
  </div>
13079
13229
  <ContextMenu
@@ -13082,7 +13232,7 @@ export default function AtThePointer() {
13082
13232
  onOpenChange={(open) => {
13083
13233
  if (!open) setAt(null);
13084
13234
  }}
13085
- ariaLabel="Actions for the surface"
13235
+ aria-label="Actions for the surface"
13086
13236
  >
13087
13237
  <MenuItem onSelect={() => setLast("Split")}>Split here</MenuItem>
13088
13238
  <MenuItem onSelect={() => setLast("Note added")}>Add a note</MenuItem>
@@ -13099,14 +13249,13 @@ export default function AtThePointer() {
13099
13249
  }
13100
13250
  ```
13101
13251
 
13102
- ##### Open it on a row, by pointer or keyboard
13252
+ ##### Open it on a row, by pointer, finger or keyboard
13103
13253
 
13104
- Right-click opens it at the pointer; Shift+F10 or the menu key opens it at the focused row, so no reader is left out.
13254
+ [`useContextMenuTrigger`](#api-index-1) per row: a right-click opens it at the pointer, a long press at the finger, Shift+F10 or the menu key at the focused row, so no reader is left out.
13105
13255
 
13106
13256
  ```tsx
13107
13257
  import { useState } from "react";
13108
- import type { KeyboardEvent, MouseEvent } from "react";
13109
- import { ContextMenu, MenuItem, MenuSeparator, Stack, Text } from "@umriss-ui/core";
13258
+ import { ContextMenu, MenuItem, MenuSeparator, Stack, Text, useContextMenuTrigger } from "@umriss-ui/core";
13110
13259
 
13111
13260
  const SHIPMENTS = [
13112
13261
  { id: "SH-1042", customer: "Harlow Bakery", window: "09:00–11:00" },
@@ -13122,22 +13271,40 @@ const STYLE = `
13122
13271
  }
13123
13272
  `;
13124
13273
 
13274
+ function Row({ shipment, active, onOpen }: { shipment: (typeof SHIPMENTS)[number]; active: boolean; onOpen: (at: { x: number; y: number }) => void }) {
13275
+ const trigger = useContextMenuTrigger(onOpen);
13276
+ return (
13277
+ <div
13278
+ role="listitem"
13279
+ tabIndex={0}
13280
+ className="shipment-row"
13281
+ {...trigger}
13282
+ style={{
13283
+ ...trigger.style,
13284
+ display: "flex",
13285
+ gap: "var(--u-space-3)",
13286
+ padding: "var(--u-space-2) var(--u-space-3)",
13287
+ borderBottom: "1px solid var(--u-edge-color)",
13288
+ background: active ? "var(--u-color-accent-subtle)" : undefined,
13289
+ }}
13290
+ >
13291
+ <Text as="span" size="sm" mono>
13292
+ {shipment.id}
13293
+ </Text>
13294
+ <Text as="span" size="sm" style={{ flex: 1 }}>
13295
+ {shipment.customer}
13296
+ </Text>
13297
+ <Text as="span" size="sm" tone="muted" mono>
13298
+ {shipment.window}
13299
+ </Text>
13300
+ </div>
13301
+ );
13302
+ }
13303
+
13125
13304
  export default function OnARow() {
13126
13305
  const [menu, setMenu] = useState<{ id: string; x: number; y: number } | null>(null);
13127
13306
  const [last, setLast] = useState("-");
13128
13307
 
13129
- const byPointer = (id: string) => (event: MouseEvent) => {
13130
- event.preventDefault();
13131
- setMenu({ id, x: event.clientX, y: event.clientY });
13132
- };
13133
-
13134
- const byKey = (id: string) => (event: KeyboardEvent<HTMLElement>) => {
13135
- if (event.key !== "ContextMenu" && !(event.shiftKey && event.key === "F10")) return;
13136
- event.preventDefault();
13137
- const box = event.currentTarget.getBoundingClientRect();
13138
- setMenu({ id, x: box.left + 16, y: box.bottom });
13139
- };
13140
-
13141
13308
  const run = (what: string) => () => setLast(`${what} ${menu?.id ?? ""}`);
13142
13309
 
13143
13310
  return (
@@ -13145,31 +13312,7 @@ export default function OnARow() {
13145
13312
  <style>{STYLE}</style>
13146
13313
  <div role="list" aria-label="Shipments">
13147
13314
  {SHIPMENTS.map((shipment) => (
13148
- <div
13149
- key={shipment.id}
13150
- role="listitem"
13151
- tabIndex={0}
13152
- className="shipment-row"
13153
- onContextMenu={byPointer(shipment.id)}
13154
- onKeyDown={byKey(shipment.id)}
13155
- style={{
13156
- display: "flex",
13157
- gap: "var(--u-space-3)",
13158
- padding: "var(--u-space-2) var(--u-space-3)",
13159
- borderBottom: "1px solid var(--u-edge-color)",
13160
- background: menu?.id === shipment.id ? "var(--u-color-accent-subtle)" : undefined,
13161
- }}
13162
- >
13163
- <Text as="span" size="sm" mono>
13164
- {shipment.id}
13165
- </Text>
13166
- <Text as="span" size="sm" style={{ flex: 1 }}>
13167
- {shipment.customer}
13168
- </Text>
13169
- <Text as="span" size="sm" tone="muted" mono>
13170
- {shipment.window}
13171
- </Text>
13172
- </div>
13315
+ <Row key={shipment.id} shipment={shipment} active={menu?.id === shipment.id} onOpen={(at) => setMenu({ id: shipment.id, ...at })} />
13173
13316
  ))}
13174
13317
  </div>
13175
13318
  <ContextMenu
@@ -13178,7 +13321,7 @@ export default function OnARow() {
13178
13321
  onOpenChange={(open) => {
13179
13322
  if (!open) setMenu(null);
13180
13323
  }}
13181
- ariaLabel={`Actions for shipment ${menu?.id ?? ""}`}
13324
+ aria-label={`Actions for shipment ${menu?.id ?? ""}`}
13182
13325
  >
13183
13326
  <MenuItem onSelect={run("Tracked")}>Track the shipment</MenuItem>
13184
13327
  <MenuItem onSelect={run("Rescheduled")}>Move to tomorrow</MenuItem>
@@ -13207,7 +13350,7 @@ export default function OnARow() {
13207
13350
  | `Home / End` | Moves to the first or last entry. |
13208
13351
  | `Escape` | Closes the menu and returns focus to where it was. |
13209
13352
  | `Enter or Space` | Runs the focused entry and closes the menu. |
13210
- | `Shift+F10 or the menu key` | Opens the menu where you listen for them, as the row example does. |
13353
+ | `Shift+F10 or the menu key` | Opens the menu at the focused element, which [`useContextMenuTrigger`](#api-index-1) listens for. |
13211
13354
 
13212
13355
  #### API
13213
13356
 
@@ -13215,23 +13358,44 @@ export default function OnARow() {
13215
13358
 
13216
13359
  | Prop | Type | Default | Description |
13217
13360
  |---|---|---|---|
13218
- | `open` *required* | `boolean` | — | Whether the menu stands. Controlled, like `Popover`: a right-click opens it only because the caller says so.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer or keyboard](#contextmenu) |
13219
- | `onOpenChange` *required* | `(open: boolean) => void` | — | Reports every wish to change the state – an entry chosen, Escape, an outside click.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer or keyboard](#contextmenu) |
13220
- | `position` *required* | `{ x: number; y: number }` | — | Where the menu opens, in client coordinates – typically `clientX` and `clientY` of the event that asked for it. At a window edge the panel flips and clamps as every popover does.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer or keyboard](#contextmenu) |
13221
- | `children` *required* | `ReactNode` | — | The entries – `MenuItem` and `MenuSeparator`, as in `Menu`.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer or keyboard](#contextmenu) |
13361
+ | `open` *required* | `boolean` | — | Whether the menu stands. Controlled, like `Popover`: a right-click opens it only because the caller says so.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13362
+ | `onOpenChange` *required* | `(open: boolean) => void` | — | Reports every wish to change the state – an entry chosen, Escape, an outside click.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13363
+ | `position` *required* | `{ x: number; y: number }` | — | Where the menu opens, in client coordinates – the point that `useContextMenuTrigger` hands to its callback (right-click, context-menu key or long press), or any `clientX` and `clientY` of your own. At a window edge the panel flips and clamps as every popover does.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13364
+ | `children` *required* | `ReactNode` | — | The entries – `MenuItem` and `MenuSeparator`, as in `Menu`.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13222
13365
 
13223
13366
  ###### Accessibility
13224
13367
 
13225
13368
  | Prop | Type | Default | Description |
13226
13369
  |---|---|---|---|
13227
- | `ariaLabel` *required* | `string` | — | Accessible name of the menu: what it acts on. A context menu has no trigger whose label could name it.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer or keyboard](#contextmenu) |
13370
+ | `aria-label` | `string` | — | Accessible name of the menu: what it acts on. A context menu has no trigger whose label could name it.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13371
+ | `ariaLabel` | `string` | — | *Deprecated* since 0.43 - use `aria-label`. The old spelling of `aria-label`; both work for one further minor. |
13372
+
13373
+ ##### `ContextMenuTriggerProps`
13374
+
13375
+ ###### Events
13376
+
13377
+ | Prop | Type | Default | Description |
13378
+ |---|---|---|---|
13379
+ | `onContextMenu` *required* | `(event: ReactMouseEvent<HTMLElement>) => void` | — | Opens at the pointer on a right-click; a finger's own `contextmenu` is held back.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13380
+ | `onKeyDown` *required* | `(event: ReactKeyboardEvent<HTMLElement>) => void` | — | Opens at the target's box on the context-menu key or Shift+F10.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13381
+ | `onPointerDown` *required* | `(event: ReactPointerEvent<HTMLElement>) => void` | — | From `LongPressHandlers`.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13382
+ | `onPointerMove` *required* | `(event: ReactPointerEvent<HTMLElement>) => void` | — | From `LongPressHandlers`.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13383
+ | `onPointerUp` *required* | `(event: ReactPointerEvent<HTMLElement>) => void` | — | From `LongPressHandlers`.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13384
+ | `onPointerCancel` *required* | `(event: ReactPointerEvent<HTMLElement>) => void` | — | From `LongPressHandlers`.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13385
+ | `onClickCapture` *required* | `(event: ReactMouseEvent<HTMLElement>) => void` | — | From `LongPressHandlers`.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13386
+
13387
+ ###### Styling
13388
+
13389
+ | Prop | Type | Default | Description |
13390
+ |---|---|---|---|
13391
+ | `style` *required* | `CSSProperties` | — | Keeps the system from selecting text or showing its callout under the held finger.<br>Shown in: [Open it at the pointer](#contextmenu), [Open it on a row, by pointer, finger or keyboard](#contextmenu) |
13228
13392
 
13229
13393
  #### Known limits
13230
13394
 
13231
- - It listens to no right-click itself: the element that is clicked is yours, and so is the point.
13395
+ - It listens to no right-click itself: the element and the point are yours, through the hook.
13232
13396
  - No submenus, no checkable entries and no type-ahead, as in the menu.
13233
13397
 
13234
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
13398
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
13235
13399
 
13236
13400
  ### Modal
13237
13401
 
@@ -13561,7 +13725,7 @@ type ModalSize = "sm" | "md" | "lg";
13561
13725
 
13562
13726
  - No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
13563
13727
 
13564
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
13728
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
13565
13729
 
13566
13730
  ### Drawer
13567
13731
 
@@ -13876,7 +14040,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
13876
14040
  - Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
13877
14041
  - Only the left and right edges; nothing slides in from the top or bottom.
13878
14042
 
13879
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
14043
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
13880
14044
 
13881
14045
  ### ConfirmDialog
13882
14046
 
@@ -14053,7 +14217,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
14053
14217
 
14054
14218
  - A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
14055
14219
 
14056
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
14220
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
14057
14221
 
14058
14222
  ### CommandPalette
14059
14223
 
@@ -14353,7 +14517,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
14353
14517
  - No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
14354
14518
  - No nested steps or arguments: a command that needs input opens your own form after it is chosen.
14355
14519
 
14356
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
14520
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
14357
14521
 
14358
14522
  ## Navigation
14359
14523
 
@@ -14673,7 +14837,7 @@ Also takes every attribute of the rendered element.
14673
14837
 
14674
14838
  - It neither routes nor reads the address: the trail is what you pass.
14675
14839
 
14676
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
14840
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
14677
14841
 
14678
14842
  ### Tabs
14679
14843
 
@@ -14959,6 +15123,37 @@ export default function AnInvoiceInTabs() {
14959
15123
  }
14960
15124
  ```
14961
15125
 
15126
+ ##### More tabs than room
15127
+
15128
+ A `TabList` wider than its place scrolls sideways within it and keeps the chosen tab in view.
15129
+
15130
+ ```tsx
15131
+ import { Tab, TabList, TabPanel, Tabs, Text } from "@umriss-ui/core";
15132
+
15133
+ const REGIONS = ["Nordics", "Benelux", "Iberia", "DACH", "Baltics", "Balkans", "Central Europe", "Mediterranean", "British Isles", "Eastern Europe"];
15134
+
15135
+ export default function MoreTabsThanRoom() {
15136
+ return (
15137
+ <Tabs defaultValue="Nordics">
15138
+ <TabList aria-label="Regions">
15139
+ {REGIONS.map((region) => (
15140
+ <Tab key={region} value={region}>
15141
+ {region}
15142
+ </Tab>
15143
+ ))}
15144
+ </TabList>
15145
+ {REGIONS.map((region) => (
15146
+ <TabPanel key={region} value={region}>
15147
+ <Text size="sm" tone="secondary">
15148
+ Open orders in {region}.
15149
+ </Text>
15150
+ </TabPanel>
15151
+ ))}
15152
+ </Tabs>
15153
+ );
15154
+ }
15155
+ ```
15156
+
14962
15157
  #### When to use something else
14963
15158
 
14964
15159
  - Sections a reader may open several of at once → Accordion
@@ -14978,7 +15173,7 @@ export default function AnInvoiceInTabs() {
14978
15173
 
14979
15174
  | Prop | Type | Default | Description |
14980
15175
  |---|---|---|---|
14981
- | `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 1 more |
15176
+ | `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 |
14982
15177
  | `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) |
14983
15178
  | `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 |
14984
15179
 
@@ -14994,7 +15189,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
14994
15189
 
14995
15190
  | Prop | Type | Default | Description |
14996
15191
  |---|---|---|---|
14997
- | `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 2 more |
15192
+ | `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 |
14998
15193
  | `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 |
14999
15194
 
15000
15195
  Also takes every attribute of `<button>`.
@@ -15003,16 +15198,16 @@ Also takes every attribute of `<button>`.
15003
15198
 
15004
15199
  | Prop | Type | Default | Description |
15005
15200
  |---|---|---|---|
15006
- | `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 2 more |
15201
+ | `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 |
15007
15202
  | `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 |
15008
15203
 
15009
15204
  Also takes every attribute of `<div>`.
15010
15205
 
15011
15206
  #### Known limits
15012
15207
 
15013
- - No scrolling or overflow menu for more tabs than fit, and no closing or reordering of tabs: keep the list short and fixed.
15208
+ - More tabs than fit scroll sideways within the list; there is no overflow menu, and no closing or reordering of tabs.
15014
15209
 
15015
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
15210
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
15016
15211
 
15017
15212
  ### Accordion
15018
15213
 
@@ -15261,7 +15456,7 @@ Also takes every attribute of `<div>` – without `title`.
15261
15456
 
15262
15457
  - A folded section's content stays rendered; for heavy content, render it only while its section is open.
15263
15458
 
15264
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
15459
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
15265
15460
 
15266
15461
  ### Stepper
15267
15462
 
@@ -15471,7 +15666,7 @@ Also takes every attribute of the rendered element.
15471
15666
  - 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.
15472
15667
  - No branching or optional steps; pass the steps that apply.
15473
15668
 
15474
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
15669
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
15475
15670
 
15476
15671
  ### TreeView
15477
15672
 
@@ -15533,7 +15728,7 @@ export default function ATree() {
15533
15728
  const tree = useTree(COMPANY, { reader: READER, defaultExpanded: ["commercial"], defaultActive: "CC-1200" });
15534
15729
 
15535
15730
  return (
15536
- <TreeView tree={tree} ariaLabel="Cost centres">
15731
+ <TreeView tree={tree} aria-label="Cost centres">
15537
15732
  {(entry) => entry.node.name}
15538
15733
  </TreeView>
15539
15734
  );
@@ -15583,7 +15778,7 @@ export default function TickASelection() {
15583
15778
 
15584
15779
  return (
15585
15780
  <Stack gap={2}>
15586
- <TreeView tree={tree} ariaLabel="People for sprint 15" checkable>
15781
+ <TreeView tree={tree} aria-label="People for sprint 15" checkable>
15587
15782
  {(entry) => entry.node.name}
15588
15783
  </TreeView>
15589
15784
  <Text size="xs" tone="muted">
@@ -15646,7 +15841,7 @@ export default function LoadBranchesOnDemand() {
15646
15841
  const tree = useTree(depots, { reader: READER, onLoadChildren: load });
15647
15842
 
15648
15843
  return (
15649
- <TreeView tree={tree} ariaLabel="Today's tours by depot">
15844
+ <TreeView tree={tree} aria-label="Today's tours by depot">
15650
15845
  {(entry) => entry.node.name}
15651
15846
  </TreeView>
15652
15847
  );
@@ -15707,7 +15902,7 @@ export default function SearchWithThePath() {
15707
15902
  return (
15708
15903
  <Stack gap={2} style={{ maxWidth: 320 }}>
15709
15904
  <TreeSearch tree={tree} aria-label="Search the services" size="sm" />
15710
- <TreeView tree={tree} ariaLabel="Services by team">
15905
+ <TreeView tree={tree} aria-label="Services by team">
15711
15906
  {(entry) => entry.node.name}
15712
15907
  </TreeView>
15713
15908
  </Stack>
@@ -15773,7 +15968,7 @@ export default function WithAnError() {
15773
15968
  </Text>
15774
15969
  )}
15775
15970
  </Stack>
15776
- <TreeView tree={tree} ariaLabel="Services by team" checkable>
15971
+ <TreeView tree={tree} aria-label="Services by team" checkable>
15777
15972
  {(entry) => entry.node.name}
15778
15973
  </TreeView>
15779
15974
  </Stack>
@@ -15939,7 +16134,7 @@ export default function SearchCheckAndReveal() {
15939
16134
  With checks and a search
15940
16135
  </Text>
15941
16136
  <TreeSearch tree={withChecks} aria-label="Search the filing" size="sm" />
15942
- <TreeView tree={withChecks} ariaLabel="Filing with a selection" checkable>
16137
+ <TreeView tree={withChecks} aria-label="Filing with a selection" checkable>
15943
16138
  {(e) => e.node.name}
15944
16139
  </TreeView>
15945
16140
  <Text size="xs" tone="muted">
@@ -15952,7 +16147,7 @@ export default function SearchCheckAndReveal() {
15952
16147
  A search with the path
15953
16148
  </Text>
15954
16149
  <TreeSearch tree={searched} aria-label="Search the filing" size="sm" />
15955
- <TreeView tree={searched} ariaLabel="Filing, searched">
16150
+ <TreeView tree={searched} aria-label="Filing, searched">
15956
16151
  {(e) => e.node.name}
15957
16152
  </TreeView>
15958
16153
  </Stack>
@@ -15977,7 +16172,7 @@ export default function SearchCheckAndReveal() {
15977
16172
  Reveal sheet 33.2
15978
16173
  </Button>
15979
16174
  </Stack>
15980
- <TreeView tree={large} ariaLabel="Large body" style={{ height: 240 }}>
16175
+ <TreeView tree={large} aria-label="Large body" style={{ height: 240 }}>
15981
16176
  {(e) => e.node.name}
15982
16177
  </TreeView>
15983
16178
  <Text size="xs" tone="muted">
@@ -15989,7 +16184,7 @@ export default function SearchCheckAndReveal() {
15989
16184
  <Text size="xs" tone="muted">
15990
16185
  Active node only
15991
16186
  </Text>
15992
- <TreeView tree={activeOnly} ariaLabel="Filing for navigation">
16187
+ <TreeView tree={activeOnly} aria-label="Filing for navigation">
15993
16188
  {(e) => e.node.name}
15994
16189
  </TreeView>
15995
16190
  <Text size="xs" tone="muted">
@@ -16037,7 +16232,7 @@ export default function SearchCheckAndReveal() {
16037
16232
 
16038
16233
  | Prop | Type | Default | Description |
16039
16234
  |---|---|---|---|
16040
- | `ariaLabel` *required* | `string` | — | Required: the tree is a structure of its own and needs a name.<br>Shown in: [A tree](#treeview), [Tick a selection](#treeview), [Load branches on demand](#treeview) and 5 more |
16235
+ | `ariaLabel` | `string` | — | *Deprecated* since 0.43 - use `aria-label`. The old spelling of `aria-label`; both work for one further minor. |
16041
16236
 
16042
16237
  Also takes every attribute of `<div>` – without `children`.
16043
16238
 
@@ -16149,7 +16344,7 @@ to render and the heights of the filler rows around it.
16149
16344
  - No dragging nodes to rearrange them.
16150
16345
  - 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)).
16151
16346
 
16152
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
16347
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
16153
16348
 
16154
16349
  ### Benchmark
16155
16350
 
@@ -16254,7 +16449,7 @@ function Body({ built, onShown }: { built: { roots: Unit[]; open: string[] }; on
16254
16449
  });
16255
16450
  useEffect(onShown, [onShown]);
16256
16451
  return (
16257
- <TreeView tree={tree} ariaLabel="Benchmark tree" style={{ height: 320 }}>
16452
+ <TreeView tree={tree} aria-label="Benchmark tree" style={{ height: 320 }}>
16258
16453
  {(entry) => entry.node.name}
16259
16454
  </TreeView>
16260
16455
  );
@@ -16428,12 +16623,6 @@ From `TreeViewProps` — the full table stands on [TreeView](#treeview).
16428
16623
  | [`tree`](#treeview) *required* | [`Tree`](#treeview)`<K, S>` | — | The tree from `useTree`. It is the whole state: flattening, active node, checks, anchor. The view holds nothing beside it. |
16429
16624
  | [`children`](#treeview) *required* | `(entry: `[`FlatteningEntry`](#treeview)`<K, S>) => ReactNode` | — | What the node says. |
16430
16625
 
16431
- ###### Accessibility
16432
-
16433
- | Prop | Type | Default | Description |
16434
- |---|---|---|---|
16435
- | [`ariaLabel`](#treeview) *required* | `string` | — | Required: the tree is a structure of its own and needs a name. |
16436
-
16437
16626
  ## Data display
16438
16627
 
16439
16628
  Single values and labels, read at a glance.
@@ -16626,7 +16815,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
16626
16815
  - It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
16627
16816
  - It counts nothing itself: capping at “99+” is yours.
16628
16817
 
16629
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
16818
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
16630
16819
 
16631
16820
  ### Tag
16632
16821
 
@@ -16893,7 +17082,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
16893
17082
  - No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
16894
17083
  - Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
16895
17084
 
16896
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
17085
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
16897
17086
 
16898
17087
  ### Stat
16899
17088
 
@@ -17729,7 +17918,7 @@ type Severity = "warning" | "alarm";
17729
17918
  - No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
17730
17919
  - It fetches and polls nothing: freshness is judged from the `asOf` you give it.
17731
17920
 
17732
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
17921
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
17733
17922
 
17734
17923
  ### Meter
17735
17924
 
@@ -17899,7 +18088,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
17899
18088
 
17900
18089
  - No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
17901
18090
 
17902
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
18091
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
17903
18092
 
17904
18093
  ### Sparkline
17905
18094
 
@@ -18157,7 +18346,7 @@ Also takes every attribute of `<span>`.
18157
18346
 
18158
18347
  - No axes, labels, tooltip or points to hover: the value stands beside it.
18159
18348
 
18160
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.42.0/docs/adr/0032-what-umriss-is-not.md).
18349
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.43.0/docs/adr/0032-what-umriss-is-not.md).
18161
18350
 
18162
18351
  ## API index
18163
18352
 
@@ -18285,12 +18474,6 @@ Used on [CommandPalette](#commandpalette).
18285
18474
 
18286
18475
  Used on [Scenarios](#scenarios), [Modal](#modal) and [ConfirmDialog](#confirmdialog).
18287
18476
 
18288
- ##### `ContextMenu`
18289
-
18290
- [ContextMenu](#contextmenu) – A menu that opens at a point, for a right-click on something that is not a button: a row, a canvas, a bar in a schedule (also called a right-click menu). The entries and the keyboard are those of the menu.
18291
-
18292
- Used on [ContextMenu](#contextmenu).
18293
-
18294
18477
  ##### `ControlSizeProvider`
18295
18478
 
18296
18479
  [Sizes](#sizes) – Sets the size of the controls inside it - every control with `size` takes
@@ -18459,7 +18642,7 @@ Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [IconButton]
18459
18642
 
18460
18643
  ##### `MenuItem`
18461
18644
 
18462
- [Menu](#menu) – An entry of a `Menu` or a `ContextMenu`. It runs `onSelect` and closes the
18645
+ [Menu](#menu) – An entry of a `Menu` or a [`ContextMenu`](#api-index-1). It runs `onSelect` and closes the
18463
18646
  menu.
18464
18647
 
18465
18648
  Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [IconButton](#iconbutton), [ButtonGroup](#buttongroup), [Menu](#menu) and [ContextMenu](#contextmenu).
@@ -18718,16 +18901,10 @@ Used on [Scenarios](#scenarios), [IconButton](#iconbutton), [Toast](#toast-1), [
18718
18901
  ##### `TreeSearch`
18719
18902
 
18720
18903
  [TreeView](#treeview) – The search field of a tree: an `Input` that writes into the tree's search
18721
- text, so that the `TreeView` filters on it.
18904
+ text, so that the [`TreeView`](#api-index-1) filters on it.
18722
18905
 
18723
18906
  Used on [TreeView](#treeview).
18724
18907
 
18725
- ##### `TreeView`
18726
-
18727
- [TreeView](#treeview) – A hierarchy the user expands, walks with the keys and optionally ticks (also called a tree or outline). Reach for it for folders, teams and cost-centre structures; large trees stay quick because only the visible rows are drawn.
18728
-
18729
- Used on [Scenarios](#scenarios), [TreeView](#treeview) and [Benchmark](#benchmark).
18730
-
18731
18908
  ##### `UmrissProvider`
18732
18909
 
18733
18910
  [UmrissProvider](#umrissprovider) – Sets once, at the root, what an application shares: the density of its tables, where overlays open, how long toasts stay and where they stand, and the language. It is optional; every component works the same without it.
@@ -18755,6 +18932,26 @@ function useCommandPaletteShortcut(onOpen: () => void): void;
18755
18932
 
18756
18933
  Used on [CommandPalette](#commandpalette).
18757
18934
 
18935
+ ##### `useContextMenuTrigger`
18936
+
18937
+ Opens a [`ContextMenu`](#api-index-1) the same way on every device: on a right-click (at the
18938
+ pointer), on the context-menu key or Shift+F10 (at the target's box) and on
18939
+ a long press with a finger (at the finger), which is the only way on iOS.
18940
+ `open` receives the point to pass on as the menu's `position`.
18941
+
18942
+ Spread the result on the target. It sets `style`, so a caller with a style
18943
+ of their own merges it: `style={{ ...trigger.style, ...mine }}`. The click
18944
+ and the `contextmenu` that end a long press do not reach the target.
18945
+
18946
+ ```ts
18947
+ function useContextMenuTrigger(open: (position: {
18948
+ x: number;
18949
+ y: number;
18950
+ }) => void): ContextMenuTriggerProps;
18951
+ ```
18952
+
18953
+ Used on [ContextMenu](#contextmenu).
18954
+
18758
18955
  ##### `useDensity`
18759
18956
 
18760
18957
  The configured density; without a provider, "comfortable".
@@ -18858,7 +19055,7 @@ restored from a link.
18858
19055
 
18859
19056
  - `roots` – The top-level nodes, in your own type.
18860
19057
  - `options` – How a node is read, and the initial or controlled state with its change handlers.
18861
- - Returns The tree to hand to `TreeView` and `TreeSearch`.
19058
+ - Returns The tree to hand to [`TreeView`](#api-index-1) and `TreeSearch`.
18862
19059
 
18863
19060
  ```ts
18864
19061
  function useTree<K, S extends Key = string>(roots: readonly K[], options: TreeOptions<K, S>): Tree<K, S>;
@@ -18985,6 +19182,35 @@ is then enough.
18985
19182
  function cadence(ages: FreshnessAges): number;
18986
19183
  ```
18987
19184
 
19185
+ ##### `ContextMenu`
19186
+
19187
+ A menu that opens at a point instead of under a trigger – for a right-click
19188
+ on something that is not a button: a canvas, a row, a subtask. Open it with
19189
+ [`useContextMenuTrigger`](#api-index-1), which also covers the context-menu key and a long
19190
+ press, the only way on iOS.
19191
+
19192
+ It hangs from an invisible anchor that stands at the point, so the one
19193
+ popover does the placing, the dismissal and the portal. The focus goes to
19194
+ the first entry and, on closing, back to where it was when the menu opened.
19195
+
19196
+ ```ts
19197
+ function ContextMenu({ open, onOpenChange, position, ariaLabel, "aria-label": name, children }: ContextMenuProps): import("react").JSX.Element;
19198
+ ```
19199
+
19200
+ Used on [ContextMenu](#contextmenu).
19201
+
19202
+ ##### `createLongPress`
19203
+
19204
+ The one long-press detector, a plain function over pointer events so that
19205
+ code outside React can use it. `onPress` fires once, with the finger's point
19206
+ in client coordinates, when a touch pointer has been held 500 ms within 10 px;
19207
+ `onEnd` fires when a press that has fired is lifted or cancelled. A move
19208
+ beyond 10 px, a lift and `pointercancel` before the hold cancel it silently.
19209
+
19210
+ ```ts
19211
+ function createLongPress(onPress: (at: PressPoint) => void, onEnd?: () => void): LongPress;
19212
+ ```
19213
+
18988
19214
  ##### `duplicateKey`
18989
19215
 
18990
19216
  The first key that occurs twice, otherwise null. Two nodes with the same
@@ -19078,6 +19304,18 @@ actually expanded.
19078
19304
  function treeModel<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>): readonly FlatteningEntry<K, S>[];
19079
19305
  ```
19080
19306
 
19307
+ ##### `TreeView`
19308
+
19309
+ The tree as a control: draws the nodes of a `Tree` from [`useTree`](#api-index-1) as a
19310
+ `tree` with keyboard navigation, typeahead and, with `checkable`, ticks.
19311
+ What a node says is yours - `children` renders it.
19312
+
19313
+ ```ts
19314
+ function TreeView<K, S extends Key = string>({ ref, tree, ariaLabel, "aria-label": name, checkable, children, className, onKeyDown, onFocus, onBlur, onScroll, ...rest }: TreeViewProps<K, S>): import("react").JSX.Element;
19315
+ ```
19316
+
19317
+ Used on [Scenarios](#scenarios), [TreeView](#treeview) and [Benchmark](#benchmark).
19318
+
19081
19319
  ##### `verdictWeight`
19082
19320
 
19083
19321
  How heavily a verdict weighs - for sorting and comparing, as when a matrix
@@ -19100,6 +19338,17 @@ because the rendered set changed.
19100
19338
  function visibleWindow({ count, rowHeight, scrollTop, viewportHeight, overscan, }: WindowInput): RowWindow;
19101
19339
  ```
19102
19340
 
19341
+ ##### `writeNumber`
19342
+
19343
+ A number as its format says, through the set's own functions - so an
19344
+ application's replaced `number`, `percent` or `count` is the one called.
19345
+ No format, or an object with only `decimals`, is `number`; every other
19346
+ object is `numberWith`.
19347
+
19348
+ ```ts
19349
+ function writeNumber(formats: Formats, n: number, format?: NumberFormat): string;
19350
+ ```
19351
+
19103
19352
  #### Constants
19104
19353
 
19105
19354
  ##### `DEFAULT_FORMATS`
@@ -19286,6 +19535,10 @@ Its table stands on [ConfirmDialog](#confirmdialog).
19286
19535
 
19287
19536
  Its table stands on [ContextMenu](#contextmenu).
19288
19537
 
19538
+ ##### `ContextMenuTriggerProps`
19539
+
19540
+ Its table stands on [ContextMenu](#contextmenu).
19541
+
19289
19542
  ##### `ControlSize`
19290
19543
 
19291
19544
  The two heights of a control: `sm` for a toolbar and dense forms, `md`
@@ -19402,6 +19655,7 @@ Everything the library knows about formatting.
19402
19655
  | `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 |
19403
19656
  | `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
19404
19657
  | `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) |
19658
+ | `numberWith` *required* | `(n: number, options: Intl.NumberFormatOptions) => string` | — | A number written with Intl's own options in the set's locale: a currency, a year without grouping, scientific notation. Pure Intl options - the `decimals` shorthand is expanded by `writeNumber` before it. Like the others it writes no negative zero unless the options set `signDisplay`. |
19405
19659
  | `count` *required* | `(n: number) => string` | — | A count. Kept apart from `number` because it makes a different promise: a count is whole, and Intl's own rounding (at most three decimal places) is right for it and wrong for a measurement.<br>Shown in: [Write numbers in your own notation (Language)](#language), [Use the language in your own components (Language)](#language) |
19406
19660
  | `percent` *required* | `(share: number) => string` | — | A share from 0 to 1 as whole per cent: 74 % |
19407
19661
  | `compareText` *required* | `(a: string, b: string) => number` | — | The ordering of two texts by the set's collation. |
@@ -19572,6 +19826,32 @@ Used on [Scenarios](#scenarios), [Language](#language), [Drawer](#drawer) and [S
19572
19826
 
19573
19827
  Its table stands on [Typography](#typography-2).
19574
19828
 
19829
+ ##### `LongPress`
19830
+
19831
+ A press detector over pointer events; see `createLongPress`.
19832
+
19833
+ ```ts
19834
+ interface LongPress {
19835
+ /** Arms the press when the pointer is a finger; a mouse and a pen never press. */
19836
+ pointerDown(event: PressPointer): void;
19837
+ /** Cancels a press that is not yet held once the finger has left its 10 px. */
19838
+ pointerMove(event: PressPointer): void;
19839
+ /** Ends a press: a held one calls `onEnd`, and its click is then swallowed. */
19840
+ pointerUp(): void;
19841
+ /** As `pointerUp`, for `pointercancel`. */
19842
+ pointerCancel(): void;
19843
+ /** Whether this click belongs to a press and must not reach the target: true
19844
+ once for the click that ends a held press. Call `preventDefault` and
19845
+ `stopPropagation` on the event when it is. */
19846
+ swallows(): boolean;
19847
+ /** Whether the last pointer was a finger - the `contextmenu` of such a
19848
+ pointer is the press's, not a right-click. */
19849
+ touching(): boolean;
19850
+ /** Drops the timer. Call it when the target goes away. */
19851
+ dispose(): void;
19852
+ }
19853
+ ```
19854
+
19575
19855
  ##### `MenuItemProps`
19576
19856
 
19577
19857
  Its table stands on [Menu](#menu).
@@ -19638,10 +19918,29 @@ thereby stays entirely the caller's.
19638
19918
 
19639
19919
  Used on [Scenarios](#scenarios), [TreeView](#treeview) and [Benchmark](#benchmark).
19640
19920
 
19921
+ ##### `NumberFormat`
19922
+
19923
+ How a number is written: a share, a count, or Intl's options.
19924
+
19925
+ ```ts
19926
+ type NumberFormat = "percent" | "count" | NumberOptions;
19927
+ ```
19928
+
19929
+ Used on [Scenarios](#scenarios) and [Language](#language).
19930
+
19641
19931
  ##### `NumberInputProps`
19642
19932
 
19643
19933
  Its table stands on [NumberInput](#numberinput).
19644
19934
 
19935
+ ##### `NumberOptions`
19936
+
19937
+ Intl's number options, plus `decimals`: the shorthand for the minimum and the
19938
+ maximum fraction digits. An Intl digit option given beside it wins.
19939
+
19940
+ ```ts
19941
+ type NumberOptions = Intl.NumberFormatOptions & { decimals?: number };
19942
+ ```
19943
+
19645
19944
  ##### `PopoverProps`
19646
19945
 
19647
19946
  Its table stands on [Popover](#popover).
@@ -19660,6 +19959,25 @@ type PortalTarget = HTMLElement | (() => HTMLElement | null) | null;
19660
19959
 
19661
19960
  Used on [UmrissProvider](#umrissprovider).
19662
19961
 
19962
+ ##### `PressPoint`
19963
+
19964
+ Where the finger stands, in client coordinates.
19965
+
19966
+ | Prop | Type | Default | Description |
19967
+ |---|---|---|---|
19968
+ | `x` *required* | `number` | — | |
19969
+ | `y` *required* | `number` | — | |
19970
+
19971
+ ##### `PressPointer`
19972
+
19973
+ What the detector reads of a pointer event - a DOM or a React one fits.
19974
+
19975
+ | Prop | Type | Default | Description |
19976
+ |---|---|---|---|
19977
+ | `pointerType` *required* | `string` | — | |
19978
+ | `clientX` *required* | `number` | — | |
19979
+ | `clientY` *required* | `number` | — | |
19980
+
19663
19981
  ##### `ProgressBarProps`
19664
19982
 
19665
19983
  Its table stands on [ProgressBar](#progressbar).