@umriss-ui/core 0.41.1 → 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.41.1
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.41.1/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.41.1/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
 
@@ -2639,7 +2769,7 @@ What every component shares and an application sets once: its colours, its size,
2639
2769
 
2640
2770
  Make the components look like your product (theme, colours, dark mode, CSS variables). Every colour, size, shadow and duration they draw with is a token, a `--u-…` custom property, and the tokens are the whole styling API: override one with ordinary CSS, for the application or for one region. The table lists each with its light and dark value.
2641
2771
 
2642
- The library writes its CSS in three cascade layers, `umriss.tokens`, `umriss.base` and `umriss.components`. CSS outside any layer wins over every layered rule, whatever its specificity and whatever order the stylesheets load in, so one unlayered `:root { --u-color-accent: … }` in your stylesheet is the whole override: no `!important`, no import order ([ADR-0021](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0021-the-styles-load-themselves-and-touch-nothing-else.md)). Inside a layer of your own it wins only if that layer was named after the library's.
2772
+ The library writes its CSS in three cascade layers, `umriss.tokens`, `umriss.base` and `umriss.components`. CSS outside any layer wins over every layered rule, whatever its specificity and whatever order the stylesheets load in, so one unlayered `:root { --u-color-accent: … }` in your stylesheet is the whole override: no `!important`, no import order ([ADR-0021](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0021-the-styles-load-themselves-and-touch-nothing-else.md)). Inside a layer of your own it wins only if that layer was named after the library's; the Styles section of core's README gives the declaration for Tailwind v4 and for a wrapper library.
2643
2773
 
2644
2774
  Every token with two values is written `light-dark(<light>, <dark>)` and resolves against the `color-scheme` the element inherits. The library sets `color-scheme` nowhere: your `html.dark { color-scheme: dark }`, or your theme library's, switches the components, nothing set means light, and an element with its own `color-scheme` is a region in the other mode. An override written `light-dark(…)` follows the mode; a single colour holds in both.
2645
2775
 
@@ -2649,22 +2779,14 @@ Style through tokens only. The tokens in the table are the styling API and chang
2649
2779
 
2650
2780
  ##### Accent for the application
2651
2781
 
2652
- One rule on `:root`, outside any cascade layer, gives the whole application its own accent: it wins over the library's tokens whatever order the stylesheets load in. Set the accent's seven tokens together, each with a light and a dark value.
2782
+ One rule on `:root`, outside any cascade layer, gives the whole application its own accent: it wins over the library's tokens whatever order the stylesheets load in. Set the accent's six tokens together, each with a light and a dark value.
2653
2783
 
2654
2784
  ```tsx
2655
2785
  import type { CSSProperties } from "react";
2656
2786
  import { Badge, Button, Card, CardBody, CardHeader, Checkbox, Link, Stack, Switch, Text } from "@umriss-ui/core";
2657
2787
 
2658
- /* In an application this is one rule in its own stylesheet:
2659
-
2660
- :root {
2661
- --u-color-accent: light-dark(#4338ca, #818cf8);
2662
- --u-color-accent-hover: light-dark(#3730a3, #a5b4fc);
2663
- --u-color-accent-subtle: light-dark(#eef0fb, #1e1f3d);
2664
- --u-color-accent-subtle-pressed: light-dark(#dfe2f7, #282a52);
2665
- --u-color-accent-text: light-dark(#4338ca, #a5b4fc);
2666
- --u-color-on-accent: light-dark(#ffffff, #1e1b4b);
2667
- }
2788
+ /* In an application these tokens stand in the brand file of core's README,
2789
+ in one rule in the application's own stylesheet.
2668
2790
 
2669
2791
  Here it is set on the example's root, so the rest of the page keeps the
2670
2792
  library's petrol. */
@@ -2872,6 +2994,7 @@ One look for every component. A soft glow would read as a second, shadowy border
2872
2994
  | `--u-text-xl` | `1.1875rem` | same | — |
2873
2995
  | `--u-text-2xl` | `1.5rem` | same | — |
2874
2996
  | `--u-text-mono` | `0.75rem` | same | Figures in Geist Mono inside a control or a cell, beside --u-text-sm set in Sans. The mono cut runs wider and taller, so one step down reads as the same size. It serves as a role: the date picker's value, days and time fields, the numeric field and input, the table's numeric cells. |
2997
+ | `--u-label-size` | `var(`--u-text-sm`)` | same | The size of a FormField's label. The controls keep their own text size (--u-text-sm), so a label can be set apart from the field's text. |
2875
2998
  | `--u-leading-none` | `1` | same | A box as tall as its type: a badge, a tag, a count, a glyph. The height comes from the control or the padding, and the line adds no leading. |
2876
2999
  | `--u-leading-tight` | `1.3` | same | — |
2877
3000
  | `--u-leading-normal` | `1.5` | same | — |
@@ -2879,6 +3002,7 @@ One look for every component. A soft glow would read as a second, shadowy border
2879
3002
  | `--u-weight-medium` | `500` | same | — |
2880
3003
  | `--u-weight-semibold` | `600` | same | — |
2881
3004
  | `--u-tracking-caps` | `0.07em` | same | — |
3005
+ | `--u-transform-caps` | `uppercase` | same | The case of eyebrows, table heads, divider labels, group headings and the dashboard's mode label - everything set in spaced capitals. `none` turns the capitals off across the library. |
2882
3006
  | `--u-tracking-display` | `-0.022em` | same | large titles: slightly compressed |
2883
3007
  | `--u-tracking-tight` | `-0.011em` | same | medium titles (cards, dialogs) |
2884
3008
  | `--u-tracking-figures` | `-0.01em` | same | figures set in the mono face |
@@ -2908,11 +3032,15 @@ One look for every component. A soft glow would read as a second, shadowy border
2908
3032
  | `--u-icon-size-sm` | `12px` | same | — |
2909
3033
  | `--u-button-padding` | `10px` | same | The room left and right of a button's label, one step per control height. What stands beside a quiet button and has to align with its word hangs out by exactly this much (the date pickers' foot, the MultiSelect's quick keys) - so they read it here instead of repeating the number. |
2910
3034
  | `--u-button-padding-sm` | `6px` | same | — |
3035
+ | `--u-button-press-scale` | `0.98` | same | How far a button gives way under the pointer or a finger. `1` turns the press off. |
2911
3036
  | `--u-drawer-width` | `400px` | same | The width of a drawer A token rather than a size prop: a detail beside a process picture wants one width across an application, and one drawer that needs another sets it in its `style`. |
3037
+ | `--u-modal-width-sm` | `400px` | same | The width of a modal's sheet, one per `size`; the sheet is never wider than the window. |
3038
+ | `--u-modal-width-md` | `520px` | same | — |
3039
+ | `--u-modal-width-lg` | `720px` | same | — |
2912
3040
 
2913
3041
  ##### Toast
2914
3042
 
2915
- 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.
2916
3044
 
2917
3045
  | Token | Light | Dark | Description |
2918
3046
  |---|---|---|---|
@@ -3104,7 +3232,7 @@ From `BadgeProps` — the full table stands on [Badge](#badge).
3104
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.
3105
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`.
3106
3234
 
3107
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
3108
3236
 
3109
3237
  ### Sizes
3110
3238
 
@@ -3233,7 +3361,7 @@ export default function ARowThatHoldsStill() {
3233
3361
  const [search, setSearch] = useState("");
3234
3362
  const [carriers, setCarriers] = useState<string[]>(["DHL", "UPS", "GLS"]);
3235
3363
  const [period, setPeriod] = useState<DateRange | null>(null);
3236
- const carriersRef = useRef<HTMLDivElement>(null);
3364
+ const carriersRef = useRef<HTMLButtonElement>(null);
3237
3365
  const statusRef = useRef<HTMLSelectElement>(null);
3238
3366
  const carriersWidth = useWidth(carriersRef);
3239
3367
  const statusWidth = useWidth(statusRef);
@@ -3522,7 +3650,7 @@ type ControlSize = "sm" | "md";
3522
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).
3523
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)`.
3524
3652
 
3525
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
3526
3654
 
3527
3655
  ### Language
3528
3656
 
@@ -4189,7 +4317,7 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
4189
4317
 
4190
4318
  #### Formats
4191
4319
 
4192
- 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.
4193
4321
 
4194
4322
  | Key | English | German | Description |
4195
4323
  |---|---|---|---|
@@ -4201,6 +4329,7 @@ Every entry of `Formats`: `DEFAULT_FORMATS` beside `GERMAN_FORMATS`. Each set as
4201
4329
  | `dateTime(d, withSeconds)` | 17/03/2026, 09:05 | 17.03.2026, 09:05 | Date and time together: 17/03/2026, 09:05 |
4202
4330
  | `offset(d)` | GMT+1 | GMT+1 | Short form of the UTC offset: GMT+2 |
4203
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`. |
4204
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. |
4205
4334
  | `percent(share)` | 74% | 74 % | A share from 0 to 1 as whole per cent: 74 % |
4206
4335
  | `compareText(a, b)` | Apple, Émile, Zebra | Apple, Émile, Zebra | The ordering of two texts by the set's collation. |
@@ -4239,6 +4368,7 @@ Everything the library knows about formatting.
4239
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 |
4240
4369
  | `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
4241
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`. |
4242
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) |
4243
4373
  | `percent` *required* | `(share: number) => string` | — | A share from 0 to 1 as whole per cent: 74 % |
4244
4374
  | `compareText` *required* | `(a: string, b: string) => number` | — | The ordering of two texts by the set's collation. |
@@ -4555,10 +4685,10 @@ Everything the library puts out as text.
4555
4685
 
4556
4686
  #### Known limits
4557
4687
 
4558
- - 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.41.1/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)).
4559
4689
  - It holds only what the components say themselves; your labels, titles and data are yours to translate.
4560
4690
 
4561
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
4562
4692
 
4563
4693
  ## Layout
4564
4694
 
@@ -4861,7 +4991,7 @@ The keys of [Button](#button) apply here.
4861
4991
  | Prop | Type | Default | Description |
4862
4992
  |---|---|---|---|
4863
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 |
4864
- | `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 |
4865
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 |
4866
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 |
4867
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 |
@@ -4905,7 +5035,7 @@ type GridColumnWidth = number | "fill";
4905
5035
  - No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
4906
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)).
4907
5037
 
4908
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
4909
5039
 
4910
5040
  ### Divider
4911
5041
 
@@ -5285,7 +5415,7 @@ Also takes every attribute of the rendered element.
5285
5415
 
5286
5416
  | Prop | Type | Default | Description |
5287
5417
  |---|---|---|---|
5288
- | `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 |
5289
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 |
5290
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 |
5291
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) |
@@ -5730,7 +5860,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
5730
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)).
5731
5861
  - It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
5732
5862
 
5733
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
5734
5864
 
5735
5865
  ## Typography
5736
5866
 
@@ -6088,9 +6218,9 @@ export default function IncidentSummary() {
6088
6218
  | Prop | Type | Default | Description |
6089
6219
  |---|---|---|---|
6090
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 |
6091
- | `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 |
6092
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 |
6093
- | `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 |
6094
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 |
6095
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) |
6096
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) |
@@ -6166,10 +6296,10 @@ type TextLeading = "normal" | "tight";
6166
6296
  #### Known limits
6167
6297
 
6168
6298
  - No truncation and no line length: both depend on the column, which only the application knows.
6169
- - No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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)).
6170
6300
  - `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
6171
6301
 
6172
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
6173
6303
 
6174
6304
  ### VisuallyHidden
6175
6305
 
@@ -6293,7 +6423,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
6293
6423
 
6294
6424
  - It hides from the eye only; to hide something from everyone, do not render it.
6295
6425
 
6296
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
6297
6427
 
6298
6428
  ## Actions
6299
6429
 
@@ -6622,7 +6752,7 @@ type ControlSize = "sm" | "md";
6622
6752
  - The label stays on one line; keep it short rather than let it wrap.
6623
6753
  - No icon slot: an icon goes among the children, before the label, and the button sets its size.
6624
6754
 
6625
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
6626
6756
 
6627
6757
  ### IconButton
6628
6758
 
@@ -6979,7 +7109,7 @@ type ControlSize = "sm" | "md";
6979
7109
  - The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
6980
7110
  - A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
6981
7111
 
6982
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
6983
7113
 
6984
7114
  ### ButtonGroup
6985
7115
 
@@ -7339,7 +7469,7 @@ type ControlSize = "sm" | "md";
7339
7469
 
7340
7470
  - No toggle or segmented state; a choice that stays is a radio group.
7341
7471
 
7342
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
7343
7473
 
7344
7474
  ## Forms
7345
7475
 
@@ -7623,7 +7753,7 @@ Also takes every attribute of `<input>` – without `size`.
7623
7753
  - No input masks or formatting while typing; check the value on leave or on submit.
7624
7754
  - No validation of its own: the error is the application's, handed to the `FormField`.
7625
7755
 
7626
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
7627
7757
 
7628
7758
  ### FormField
7629
7759
 
@@ -7800,7 +7930,7 @@ The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox),
7800
7930
 
7801
7931
  | Prop | Type | Default | Description |
7802
7932
  |---|---|---|---|
7803
- | `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 |
7804
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 |
7805
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 |
7806
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 |
@@ -7814,7 +7944,7 @@ Also takes every attribute of `<div>`.
7814
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.
7815
7945
  - One field per `FormField`; a group of fields that share one label is a fieldset of your own.
7816
7946
 
7817
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
7818
7948
 
7819
7949
  ### Textarea
7820
7950
 
@@ -8002,7 +8132,7 @@ Also takes every attribute of `<textarea>` – without `cols`.
8002
8132
 
8003
8133
  - Plain text only: no formatting, mentions or rich text.
8004
8134
 
8005
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
8006
8136
 
8007
8137
  ### NumberInput
8008
8138
 
@@ -8201,6 +8331,25 @@ export default function PriceAnInvoiceLine() {
8201
8331
  }
8202
8332
  ```
8203
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
+
8204
8353
  #### When to use something else
8205
8354
 
8206
8355
  - A value set roughly, where the position between two bounds matters more than the exact figure → Slider
@@ -8219,11 +8368,12 @@ export default function PriceAnInvoiceLine() {
8219
8368
 
8220
8369
  | Prop | Type | Default | Description |
8221
8370
  |---|---|---|---|
8222
- | `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 |
8223
- | `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 |
8224
- | `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 |
8225
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 |
8226
- | `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) |
8227
8377
  | `prefix` | `ReactNode` | — | Adornment before the number, e.g. "±".<br>Shown in: [Units and decimals](#numberinput) |
8228
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 |
8229
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) |
@@ -8235,7 +8385,7 @@ export default function PriceAnInvoiceLine() {
8235
8385
 
8236
8386
  | Prop | Type | Default | Description |
8237
8387
  |---|---|---|---|
8238
- | `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 |
8239
8389
 
8240
8390
  Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`, `type`, `value`.
8241
8391
 
@@ -8244,7 +8394,7 @@ Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`
8244
8394
  - No expressions: “12*4” is not calculated.
8245
8395
  - No currency conversion; the unit is a label.
8246
8396
 
8247
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
8248
8398
 
8249
8399
  ### Slider
8250
8400
 
@@ -8437,7 +8587,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
8437
8587
  - One thumb: no range with two ends.
8438
8588
  - Marks show values; they do not catch the thumb.
8439
8589
 
8440
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
8441
8591
 
8442
8592
  ### Checkbox
8443
8593
 
@@ -8765,7 +8915,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
8765
8915
 
8766
8916
  - No pending or loading state; while your application applies the change, disable the switch or say so beside it.
8767
8917
 
8768
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
8769
8919
 
8770
8920
  ### RadioGroup
8771
8921
 
@@ -9229,7 +9379,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
9229
9379
  - Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
9230
9380
  - No icons and no line of explanation in a segment; several chosen at once is not this control.
9231
9381
 
9232
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
9233
9383
 
9234
9384
  ### FileInput
9235
9385
 
@@ -9478,7 +9628,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
9478
9628
 
9479
9629
  - No upload, no progress and no size limit of its own; those belong to the application sending the files.
9480
9630
 
9481
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
9482
9632
 
9483
9633
  ## Choosing
9484
9634
 
@@ -9674,7 +9824,7 @@ Also takes every attribute of `<select>` – without `size`.
9674
9824
 
9675
9825
  - The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
9676
9826
 
9677
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
9678
9828
 
9679
9829
  ### Combobox
9680
9830
 
@@ -9917,7 +10067,7 @@ export default function AssignAnIncident() {
9917
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) |
9918
10068
  | `emptyText` | `string` | — | Text shown for an empty search result.<br>Shown in: [States](#combobox) |
9919
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 |
9920
- | `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 |
9921
10071
 
9922
10072
  ###### Events
9923
10073
 
@@ -9925,7 +10075,7 @@ export default function AssignAnIncident() {
9925
10075
  |---|---|---|---|
9926
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 |
9927
10077
 
9928
- Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
10078
+ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
9929
10079
 
9930
10080
  ##### `ComboboxOption<T extends string = string>`
9931
10081
 
@@ -9940,7 +10090,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
9940
10090
  - No free text as a value: only an option can be chosen.
9941
10091
  - No loading of options from a server; filter your own list and pass it in.
9942
10092
 
9943
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
9944
10094
 
9945
10095
  ### MultiSelect
9946
10096
 
@@ -10196,7 +10346,7 @@ export default function FilterIncidentsByService() {
10196
10346
  | `disabled` | `boolean` | `false` | Locks field and panel.<br>Shown in: [Configurator](#multiselect), [States](#multiselect), [Dispatch a tour (Scenarios)](#dispatch-a-tour) |
10197
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) |
10198
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) |
10199
- | `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 |
10200
10350
 
10201
10351
  ###### Events
10202
10352
 
@@ -10204,7 +10354,7 @@ export default function FilterIncidentsByService() {
10204
10354
  |---|---|---|---|
10205
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 |
10206
10356
 
10207
- Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
10357
+ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10208
10358
 
10209
10359
  ##### `MultiSelectOption<T extends string = string>`
10210
10360
 
@@ -10380,7 +10530,7 @@ export default function CheckADueDate() {
10380
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) |
10381
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) |
10382
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 |
10383
- | `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 |
10384
10534
 
10385
10535
  ###### Events
10386
10536
 
@@ -10388,14 +10538,14 @@ export default function CheckADueDate() {
10388
10538
  |---|---|---|---|
10389
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 |
10390
10540
 
10391
- Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
10541
+ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10392
10542
 
10393
10543
  #### Known limits
10394
10544
 
10395
10545
  - No typing of a date into the field.
10396
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)).
10397
10547
 
10398
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
10399
10549
 
10400
10550
  ### DateTimePicker
10401
10551
 
@@ -10550,7 +10700,7 @@ export default function WithAnError() {
10550
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) |
10551
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) |
10552
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) |
10553
- | `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 |
10554
10704
 
10555
10705
  ###### Events
10556
10706
 
@@ -10558,13 +10708,13 @@ export default function WithAnError() {
10558
10708
  |---|---|---|---|
10559
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 |
10560
10710
 
10561
- Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
10711
+ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10562
10712
 
10563
10713
  #### Known limits
10564
10714
 
10565
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)).
10566
10716
 
10567
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
10568
10718
 
10569
10719
  ### DateRangePicker
10570
10720
 
@@ -10745,7 +10895,7 @@ export default function WithAnError() {
10745
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) |
10746
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 |
10747
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) |
10748
- | `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 |
10749
10899
 
10750
10900
  ###### Events
10751
10901
 
@@ -10753,7 +10903,7 @@ export default function WithAnError() {
10753
10903
  |---|---|---|---|
10754
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 |
10755
10905
 
10756
- Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
10906
+ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10757
10907
 
10758
10908
  ##### Types on this page
10759
10909
 
@@ -10782,7 +10932,7 @@ the moment of the click.
10782
10932
 
10783
10933
  - One span; no list of separate days.
10784
10934
 
10785
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
10786
10936
 
10787
10937
  ### DateTimeRangePicker
10788
10938
 
@@ -10958,7 +11108,7 @@ export default function WithAnError() {
10958
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) |
10959
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) |
10960
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) |
10961
- | `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 |
10962
11112
 
10963
11113
  ###### Events
10964
11114
 
@@ -10966,7 +11116,7 @@ export default function WithAnError() {
10966
11116
  |---|---|---|---|
10967
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 |
10968
11118
 
10969
- Also takes every attribute of `<span>` – without `defaultValue`, `onChange`.
11119
+ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
10970
11120
 
10971
11121
  ##### Types on this page
10972
11122
 
@@ -10996,7 +11146,7 @@ the moment of the click.
10996
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)).
10997
11147
  - No recurring windows.
10998
11148
 
10999
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
11000
11150
 
11001
11151
  ## Feedback
11002
11152
 
@@ -11146,7 +11296,7 @@ Also takes every attribute of `<svg>`.
11146
11296
 
11147
11297
  - One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
11148
11298
 
11149
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
11150
11300
 
11151
11301
  ### ProgressBar
11152
11302
 
@@ -11329,7 +11479,7 @@ Also takes every attribute of `<div>`.
11329
11479
 
11330
11480
  - No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
11331
11481
 
11332
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
11333
11483
 
11334
11484
  ### Skeleton
11335
11485
 
@@ -11486,7 +11636,7 @@ Also takes every attribute of `<span>`.
11486
11636
 
11487
11637
  - It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
11488
11638
 
11489
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
11490
11640
 
11491
11641
  ### Alert
11492
11642
 
@@ -11704,7 +11854,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
11704
11854
  - No timer: an alert stays until you remove it. A message that goes by itself is a toast.
11705
11855
  - No stack or queue of messages; place each alert where its matter is.
11706
11856
 
11707
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
11708
11858
 
11709
11859
  ### Toast
11710
11860
 
@@ -12262,7 +12412,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
12262
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.
12263
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.
12264
12414
 
12265
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
12266
12416
 
12267
12417
  ### EmptyState
12268
12418
 
@@ -12570,7 +12720,7 @@ export default function ACalculation() {
12570
12720
  - No interactive content and no rich layout inside: it is read, never used.
12571
12721
  - No placement option: it stands above its element and flips below where there is no room.
12572
12722
 
12573
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
12574
12724
 
12575
12725
  ### Popover
12576
12726
 
@@ -12605,7 +12755,7 @@ export default function AnchoredSurface() {
12605
12755
  <Button ref={anchor} onClick={() => setOpen((o) => !o)} aria-expanded={open}>
12606
12756
  Sprint 14
12607
12757
  </Button>
12608
- <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}>
12609
12759
  <Stack gap={2} style={{ padding: "var(--u-space-4)" }}>
12610
12760
  <Text size="sm" weight="medium">
12611
12761
  Member portal sign-in and profile
@@ -12642,7 +12792,7 @@ export default function WidthFromAnchor() {
12642
12792
  onOpenChange={setOpen}
12643
12793
  anchorRef={anchor}
12644
12794
  role="dialog"
12645
- ariaLabel="Vehicles at Riverside depot"
12795
+ aria-label="Vehicles at Riverside depot"
12646
12796
  width="anchor"
12647
12797
  minWidth={180}
12648
12798
  restoreFocus
@@ -12695,7 +12845,7 @@ export default function AFilterPanel() {
12695
12845
  >
12696
12846
  Depots: {applied.length === DEPOTS.length ? "all" : applied.length}
12697
12847
  </Button>
12698
- <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}>
12699
12849
  <Stack gap={3} style={{ padding: "var(--u-space-4)" }}>
12700
12850
  {DEPOTS.map((depot) => (
12701
12851
  <Checkbox key={depot} label={depot} checked={draft.includes(depot)} onChange={() => toggle(depot)} />
@@ -12747,7 +12897,7 @@ export default function ACardAtTheEdge() {
12747
12897
  <Button ref={anchor} size="sm" variant="ghost" onClick={() => setOpen((o) => !o)} aria-expanded={open}>
12748
12898
  Maya Lindgren
12749
12899
  </Button>
12750
- <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}>
12751
12901
  <Stack gap={1} style={{ padding: "var(--u-space-4)" }}>
12752
12902
  <Text size="sm" weight="medium">
12753
12903
  Maya Lindgren
@@ -12802,7 +12952,8 @@ export default function ACardAtTheEdge() {
12802
12952
  | Prop | Type | Default | Description |
12803
12953
  |---|---|---|---|
12804
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 |
12805
- | `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. |
12806
12957
 
12807
12958
  ###### Styling
12808
12959
 
@@ -12825,7 +12976,7 @@ type Align = "start" | "end" | "center";
12825
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.
12826
12977
  - It does not trap focus; a surface the user must answer is a [Modal](#modal).
12827
12978
 
12828
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
12829
12980
 
12830
12981
  ### Menu
12831
12982
 
@@ -13026,45 +13177,42 @@ Also takes every attribute of `<button>` – without `onSelect`.
13026
13177
 
13027
13178
  - No submenus, no checkable entries and no type-ahead.
13028
13179
 
13029
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
13030
13181
 
13031
13182
  ### ContextMenu
13032
13183
 
13033
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.
13034
13185
 
13035
13186
  ```ts
13036
- import { ContextMenu, MenuItem, MenuSeparator } from "@umriss-ui/core";
13187
+ import { ContextMenu, MenuItem, MenuSeparator, useContextMenuTrigger } from "@umriss-ui/core";
13037
13188
  ```
13038
13189
 
13039
- 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.
13040
13191
 
13041
- 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.
13042
13193
 
13043
13194
  #### Examples
13044
13195
 
13045
13196
  ##### Open it at the pointer
13046
13197
 
13047
- 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.
13048
13199
 
13049
13200
  ```tsx
13050
13201
  import { useState } from "react";
13051
- import type { MouseEvent } from "react";
13052
- import { ContextMenu, MenuItem, MenuSeparator, Stack, Text } from "@umriss-ui/core";
13202
+ import { ContextMenu, MenuItem, MenuSeparator, Stack, Text, useContextMenuTrigger } from "@umriss-ui/core";
13053
13203
 
13054
13204
  export default function AtThePointer() {
13055
13205
  const [at, setAt] = useState<{ x: number; y: number } | null>(null);
13056
13206
  const [last, setLast] = useState("-");
13057
13207
 
13058
- const openHere = (event: MouseEvent) => {
13059
- event.preventDefault();
13060
- setAt({ x: event.clientX, y: event.clientY });
13061
- };
13208
+ const trigger = useContextMenuTrigger(setAt);
13062
13209
 
13063
13210
  return (
13064
13211
  <Stack gap={3} align="flex-start">
13065
13212
  <div
13066
- onContextMenu={openHere}
13213
+ {...trigger}
13067
13214
  style={{
13215
+ ...trigger.style,
13068
13216
  width: "100%",
13069
13217
  maxWidth: 320,
13070
13218
  height: 120,
@@ -13075,7 +13223,7 @@ export default function AtThePointer() {
13075
13223
  }}
13076
13224
  >
13077
13225
  <Text size="sm" tone="muted">
13078
- Right-click anywhere in here
13226
+ Right-click or hold anywhere in here
13079
13227
  </Text>
13080
13228
  </div>
13081
13229
  <ContextMenu
@@ -13084,7 +13232,7 @@ export default function AtThePointer() {
13084
13232
  onOpenChange={(open) => {
13085
13233
  if (!open) setAt(null);
13086
13234
  }}
13087
- ariaLabel="Actions for the surface"
13235
+ aria-label="Actions for the surface"
13088
13236
  >
13089
13237
  <MenuItem onSelect={() => setLast("Split")}>Split here</MenuItem>
13090
13238
  <MenuItem onSelect={() => setLast("Note added")}>Add a note</MenuItem>
@@ -13101,14 +13249,13 @@ export default function AtThePointer() {
13101
13249
  }
13102
13250
  ```
13103
13251
 
13104
- ##### Open it on a row, by pointer or keyboard
13252
+ ##### Open it on a row, by pointer, finger or keyboard
13105
13253
 
13106
- 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.
13107
13255
 
13108
13256
  ```tsx
13109
13257
  import { useState } from "react";
13110
- import type { KeyboardEvent, MouseEvent } from "react";
13111
- import { ContextMenu, MenuItem, MenuSeparator, Stack, Text } from "@umriss-ui/core";
13258
+ import { ContextMenu, MenuItem, MenuSeparator, Stack, Text, useContextMenuTrigger } from "@umriss-ui/core";
13112
13259
 
13113
13260
  const SHIPMENTS = [
13114
13261
  { id: "SH-1042", customer: "Harlow Bakery", window: "09:00–11:00" },
@@ -13124,22 +13271,40 @@ const STYLE = `
13124
13271
  }
13125
13272
  `;
13126
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
+
13127
13304
  export default function OnARow() {
13128
13305
  const [menu, setMenu] = useState<{ id: string; x: number; y: number } | null>(null);
13129
13306
  const [last, setLast] = useState("-");
13130
13307
 
13131
- const byPointer = (id: string) => (event: MouseEvent) => {
13132
- event.preventDefault();
13133
- setMenu({ id, x: event.clientX, y: event.clientY });
13134
- };
13135
-
13136
- const byKey = (id: string) => (event: KeyboardEvent<HTMLElement>) => {
13137
- if (event.key !== "ContextMenu" && !(event.shiftKey && event.key === "F10")) return;
13138
- event.preventDefault();
13139
- const box = event.currentTarget.getBoundingClientRect();
13140
- setMenu({ id, x: box.left + 16, y: box.bottom });
13141
- };
13142
-
13143
13308
  const run = (what: string) => () => setLast(`${what} ${menu?.id ?? ""}`);
13144
13309
 
13145
13310
  return (
@@ -13147,31 +13312,7 @@ export default function OnARow() {
13147
13312
  <style>{STYLE}</style>
13148
13313
  <div role="list" aria-label="Shipments">
13149
13314
  {SHIPMENTS.map((shipment) => (
13150
- <div
13151
- key={shipment.id}
13152
- role="listitem"
13153
- tabIndex={0}
13154
- className="shipment-row"
13155
- onContextMenu={byPointer(shipment.id)}
13156
- onKeyDown={byKey(shipment.id)}
13157
- style={{
13158
- display: "flex",
13159
- gap: "var(--u-space-3)",
13160
- padding: "var(--u-space-2) var(--u-space-3)",
13161
- borderBottom: "1px solid var(--u-edge-color)",
13162
- background: menu?.id === shipment.id ? "var(--u-color-accent-subtle)" : undefined,
13163
- }}
13164
- >
13165
- <Text as="span" size="sm" mono>
13166
- {shipment.id}
13167
- </Text>
13168
- <Text as="span" size="sm" style={{ flex: 1 }}>
13169
- {shipment.customer}
13170
- </Text>
13171
- <Text as="span" size="sm" tone="muted" mono>
13172
- {shipment.window}
13173
- </Text>
13174
- </div>
13315
+ <Row key={shipment.id} shipment={shipment} active={menu?.id === shipment.id} onOpen={(at) => setMenu({ id: shipment.id, ...at })} />
13175
13316
  ))}
13176
13317
  </div>
13177
13318
  <ContextMenu
@@ -13180,7 +13321,7 @@ export default function OnARow() {
13180
13321
  onOpenChange={(open) => {
13181
13322
  if (!open) setMenu(null);
13182
13323
  }}
13183
- ariaLabel={`Actions for shipment ${menu?.id ?? ""}`}
13324
+ aria-label={`Actions for shipment ${menu?.id ?? ""}`}
13184
13325
  >
13185
13326
  <MenuItem onSelect={run("Tracked")}>Track the shipment</MenuItem>
13186
13327
  <MenuItem onSelect={run("Rescheduled")}>Move to tomorrow</MenuItem>
@@ -13209,7 +13350,7 @@ export default function OnARow() {
13209
13350
  | `Home / End` | Moves to the first or last entry. |
13210
13351
  | `Escape` | Closes the menu and returns focus to where it was. |
13211
13352
  | `Enter or Space` | Runs the focused entry and closes the menu. |
13212
- | `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. |
13213
13354
 
13214
13355
  #### API
13215
13356
 
@@ -13217,23 +13358,44 @@ export default function OnARow() {
13217
13358
 
13218
13359
  | Prop | Type | Default | Description |
13219
13360
  |---|---|---|---|
13220
- | `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) |
13221
- | `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) |
13222
- | `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) |
13223
- | `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) |
13224
13365
 
13225
13366
  ###### Accessibility
13226
13367
 
13227
13368
  | Prop | Type | Default | Description |
13228
13369
  |---|---|---|---|
13229
- | `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) |
13230
13392
 
13231
13393
  #### Known limits
13232
13394
 
13233
- - 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.
13234
13396
  - No submenus, no checkable entries and no type-ahead, as in the menu.
13235
13397
 
13236
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
13237
13399
 
13238
13400
  ### Modal
13239
13401
 
@@ -13563,7 +13725,7 @@ type ModalSize = "sm" | "md" | "lg";
13563
13725
 
13564
13726
  - No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
13565
13727
 
13566
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
13567
13729
 
13568
13730
  ### Drawer
13569
13731
 
@@ -13878,7 +14040,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
13878
14040
  - Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
13879
14041
  - Only the left and right edges; nothing slides in from the top or bottom.
13880
14042
 
13881
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
13882
14044
 
13883
14045
  ### ConfirmDialog
13884
14046
 
@@ -14055,7 +14217,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
14055
14217
 
14056
14218
  - A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
14057
14219
 
14058
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
14059
14221
 
14060
14222
  ### CommandPalette
14061
14223
 
@@ -14355,7 +14517,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
14355
14517
  - No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
14356
14518
  - No nested steps or arguments: a command that needs input opens your own form after it is chosen.
14357
14519
 
14358
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
14359
14521
 
14360
14522
  ## Navigation
14361
14523
 
@@ -14675,7 +14837,7 @@ Also takes every attribute of the rendered element.
14675
14837
 
14676
14838
  - It neither routes nor reads the address: the trail is what you pass.
14677
14839
 
14678
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
14679
14841
 
14680
14842
  ### Tabs
14681
14843
 
@@ -14961,6 +15123,37 @@ export default function AnInvoiceInTabs() {
14961
15123
  }
14962
15124
  ```
14963
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
+
14964
15157
  #### When to use something else
14965
15158
 
14966
15159
  - Sections a reader may open several of at once → Accordion
@@ -14980,7 +15173,7 @@ export default function AnInvoiceInTabs() {
14980
15173
 
14981
15174
  | Prop | Type | Default | Description |
14982
15175
  |---|---|---|---|
14983
- | `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 |
14984
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) |
14985
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 |
14986
15179
 
@@ -14996,7 +15189,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
14996
15189
 
14997
15190
  | Prop | Type | Default | Description |
14998
15191
  |---|---|---|---|
14999
- | `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 |
15000
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 |
15001
15194
 
15002
15195
  Also takes every attribute of `<button>`.
@@ -15005,16 +15198,16 @@ Also takes every attribute of `<button>`.
15005
15198
 
15006
15199
  | Prop | Type | Default | Description |
15007
15200
  |---|---|---|---|
15008
- | `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 |
15009
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 |
15010
15203
 
15011
15204
  Also takes every attribute of `<div>`.
15012
15205
 
15013
15206
  #### Known limits
15014
15207
 
15015
- - 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.
15016
15209
 
15017
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
15018
15211
 
15019
15212
  ### Accordion
15020
15213
 
@@ -15263,7 +15456,7 @@ Also takes every attribute of `<div>` – without `title`.
15263
15456
 
15264
15457
  - A folded section's content stays rendered; for heavy content, render it only while its section is open.
15265
15458
 
15266
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
15267
15460
 
15268
15461
  ### Stepper
15269
15462
 
@@ -15473,7 +15666,7 @@ Also takes every attribute of the rendered element.
15473
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.
15474
15667
  - No branching or optional steps; pass the steps that apply.
15475
15668
 
15476
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
15477
15670
 
15478
15671
  ### TreeView
15479
15672
 
@@ -15535,7 +15728,7 @@ export default function ATree() {
15535
15728
  const tree = useTree(COMPANY, { reader: READER, defaultExpanded: ["commercial"], defaultActive: "CC-1200" });
15536
15729
 
15537
15730
  return (
15538
- <TreeView tree={tree} ariaLabel="Cost centres">
15731
+ <TreeView tree={tree} aria-label="Cost centres">
15539
15732
  {(entry) => entry.node.name}
15540
15733
  </TreeView>
15541
15734
  );
@@ -15585,7 +15778,7 @@ export default function TickASelection() {
15585
15778
 
15586
15779
  return (
15587
15780
  <Stack gap={2}>
15588
- <TreeView tree={tree} ariaLabel="People for sprint 15" checkable>
15781
+ <TreeView tree={tree} aria-label="People for sprint 15" checkable>
15589
15782
  {(entry) => entry.node.name}
15590
15783
  </TreeView>
15591
15784
  <Text size="xs" tone="muted">
@@ -15648,7 +15841,7 @@ export default function LoadBranchesOnDemand() {
15648
15841
  const tree = useTree(depots, { reader: READER, onLoadChildren: load });
15649
15842
 
15650
15843
  return (
15651
- <TreeView tree={tree} ariaLabel="Today's tours by depot">
15844
+ <TreeView tree={tree} aria-label="Today's tours by depot">
15652
15845
  {(entry) => entry.node.name}
15653
15846
  </TreeView>
15654
15847
  );
@@ -15709,7 +15902,7 @@ export default function SearchWithThePath() {
15709
15902
  return (
15710
15903
  <Stack gap={2} style={{ maxWidth: 320 }}>
15711
15904
  <TreeSearch tree={tree} aria-label="Search the services" size="sm" />
15712
- <TreeView tree={tree} ariaLabel="Services by team">
15905
+ <TreeView tree={tree} aria-label="Services by team">
15713
15906
  {(entry) => entry.node.name}
15714
15907
  </TreeView>
15715
15908
  </Stack>
@@ -15775,7 +15968,7 @@ export default function WithAnError() {
15775
15968
  </Text>
15776
15969
  )}
15777
15970
  </Stack>
15778
- <TreeView tree={tree} ariaLabel="Services by team" checkable>
15971
+ <TreeView tree={tree} aria-label="Services by team" checkable>
15779
15972
  {(entry) => entry.node.name}
15780
15973
  </TreeView>
15781
15974
  </Stack>
@@ -15941,7 +16134,7 @@ export default function SearchCheckAndReveal() {
15941
16134
  With checks and a search
15942
16135
  </Text>
15943
16136
  <TreeSearch tree={withChecks} aria-label="Search the filing" size="sm" />
15944
- <TreeView tree={withChecks} ariaLabel="Filing with a selection" checkable>
16137
+ <TreeView tree={withChecks} aria-label="Filing with a selection" checkable>
15945
16138
  {(e) => e.node.name}
15946
16139
  </TreeView>
15947
16140
  <Text size="xs" tone="muted">
@@ -15954,7 +16147,7 @@ export default function SearchCheckAndReveal() {
15954
16147
  A search with the path
15955
16148
  </Text>
15956
16149
  <TreeSearch tree={searched} aria-label="Search the filing" size="sm" />
15957
- <TreeView tree={searched} ariaLabel="Filing, searched">
16150
+ <TreeView tree={searched} aria-label="Filing, searched">
15958
16151
  {(e) => e.node.name}
15959
16152
  </TreeView>
15960
16153
  </Stack>
@@ -15979,7 +16172,7 @@ export default function SearchCheckAndReveal() {
15979
16172
  Reveal sheet 33.2
15980
16173
  </Button>
15981
16174
  </Stack>
15982
- <TreeView tree={large} ariaLabel="Large body" style={{ height: 240 }}>
16175
+ <TreeView tree={large} aria-label="Large body" style={{ height: 240 }}>
15983
16176
  {(e) => e.node.name}
15984
16177
  </TreeView>
15985
16178
  <Text size="xs" tone="muted">
@@ -15991,7 +16184,7 @@ export default function SearchCheckAndReveal() {
15991
16184
  <Text size="xs" tone="muted">
15992
16185
  Active node only
15993
16186
  </Text>
15994
- <TreeView tree={activeOnly} ariaLabel="Filing for navigation">
16187
+ <TreeView tree={activeOnly} aria-label="Filing for navigation">
15995
16188
  {(e) => e.node.name}
15996
16189
  </TreeView>
15997
16190
  <Text size="xs" tone="muted">
@@ -16039,7 +16232,7 @@ export default function SearchCheckAndReveal() {
16039
16232
 
16040
16233
  | Prop | Type | Default | Description |
16041
16234
  |---|---|---|---|
16042
- | `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. |
16043
16236
 
16044
16237
  Also takes every attribute of `<div>` – without `children`.
16045
16238
 
@@ -16151,7 +16344,7 @@ to render and the heights of the filler rows around it.
16151
16344
  - No dragging nodes to rearrange them.
16152
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)).
16153
16346
 
16154
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
16155
16348
 
16156
16349
  ### Benchmark
16157
16350
 
@@ -16256,7 +16449,7 @@ function Body({ built, onShown }: { built: { roots: Unit[]; open: string[] }; on
16256
16449
  });
16257
16450
  useEffect(onShown, [onShown]);
16258
16451
  return (
16259
- <TreeView tree={tree} ariaLabel="Benchmark tree" style={{ height: 320 }}>
16452
+ <TreeView tree={tree} aria-label="Benchmark tree" style={{ height: 320 }}>
16260
16453
  {(entry) => entry.node.name}
16261
16454
  </TreeView>
16262
16455
  );
@@ -16430,12 +16623,6 @@ From `TreeViewProps` — the full table stands on [TreeView](#treeview).
16430
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. |
16431
16624
  | [`children`](#treeview) *required* | `(entry: `[`FlatteningEntry`](#treeview)`<K, S>) => ReactNode` | — | What the node says. |
16432
16625
 
16433
- ###### Accessibility
16434
-
16435
- | Prop | Type | Default | Description |
16436
- |---|---|---|---|
16437
- | [`ariaLabel`](#treeview) *required* | `string` | — | Required: the tree is a structure of its own and needs a name. |
16438
-
16439
16626
  ## Data display
16440
16627
 
16441
16628
  Single values and labels, read at a glance.
@@ -16628,7 +16815,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
16628
16815
  - It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
16629
16816
  - It counts nothing itself: capping at “99+” is yours.
16630
16817
 
16631
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
16632
16819
 
16633
16820
  ### Tag
16634
16821
 
@@ -16895,7 +17082,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
16895
17082
  - No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
16896
17083
  - Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
16897
17084
 
16898
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
16899
17086
 
16900
17087
  ### Stat
16901
17088
 
@@ -17731,7 +17918,7 @@ type Severity = "warning" | "alarm";
17731
17918
  - No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
17732
17919
  - It fetches and polls nothing: freshness is judged from the `asOf` you give it.
17733
17920
 
17734
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
17735
17922
 
17736
17923
  ### Meter
17737
17924
 
@@ -17901,7 +18088,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
17901
18088
 
17902
18089
  - No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
17903
18090
 
17904
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
17905
18092
 
17906
18093
  ### Sparkline
17907
18094
 
@@ -18159,7 +18346,7 @@ Also takes every attribute of `<span>`.
18159
18346
 
18160
18347
  - No axes, labels, tooltip or points to hover: the value stands beside it.
18161
18348
 
18162
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.41.1/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).
18163
18350
 
18164
18351
  ## API index
18165
18352
 
@@ -18287,12 +18474,6 @@ Used on [CommandPalette](#commandpalette).
18287
18474
 
18288
18475
  Used on [Scenarios](#scenarios), [Modal](#modal) and [ConfirmDialog](#confirmdialog).
18289
18476
 
18290
- ##### `ContextMenu`
18291
-
18292
- [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.
18293
-
18294
- Used on [ContextMenu](#contextmenu).
18295
-
18296
18477
  ##### `ControlSizeProvider`
18297
18478
 
18298
18479
  [Sizes](#sizes) – Sets the size of the controls inside it - every control with `size` takes
@@ -18461,7 +18642,7 @@ Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [IconButton]
18461
18642
 
18462
18643
  ##### `MenuItem`
18463
18644
 
18464
- [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
18465
18646
  menu.
18466
18647
 
18467
18648
  Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [IconButton](#iconbutton), [ButtonGroup](#buttongroup), [Menu](#menu) and [ContextMenu](#contextmenu).
@@ -18720,16 +18901,10 @@ Used on [Scenarios](#scenarios), [IconButton](#iconbutton), [Toast](#toast-1), [
18720
18901
  ##### `TreeSearch`
18721
18902
 
18722
18903
  [TreeView](#treeview) – The search field of a tree: an `Input` that writes into the tree's search
18723
- text, so that the `TreeView` filters on it.
18904
+ text, so that the [`TreeView`](#api-index-1) filters on it.
18724
18905
 
18725
18906
  Used on [TreeView](#treeview).
18726
18907
 
18727
- ##### `TreeView`
18728
-
18729
- [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.
18730
-
18731
- Used on [Scenarios](#scenarios), [TreeView](#treeview) and [Benchmark](#benchmark).
18732
-
18733
18908
  ##### `UmrissProvider`
18734
18909
 
18735
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.
@@ -18757,6 +18932,26 @@ function useCommandPaletteShortcut(onOpen: () => void): void;
18757
18932
 
18758
18933
  Used on [CommandPalette](#commandpalette).
18759
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
+
18760
18955
  ##### `useDensity`
18761
18956
 
18762
18957
  The configured density; without a provider, "comfortable".
@@ -18778,10 +18973,10 @@ function useDensityFor(own: "regular" | "compact" | undefined, fallback: "regula
18778
18973
 
18779
18974
  ##### `useFormats`
18780
18975
 
18781
- Only the formatting.
18976
+ Only the formatting. Dates and times are empty until the page has hydrated.
18782
18977
 
18783
18978
  ```ts
18784
- const useFormats: () => Formats;
18979
+ function useFormats(): Formats;
18785
18980
  ```
18786
18981
 
18787
18982
  Used on [Language](#language), [NumberInput](#numberinput), [Slider](#slider), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [DateRangePicker](#daterangepicker) and [DateTimeRangePicker](#datetimerangepicker).
@@ -18860,7 +19055,7 @@ restored from a link.
18860
19055
 
18861
19056
  - `roots` – The top-level nodes, in your own type.
18862
19057
  - `options` – How a node is read, and the initial or controlled state with its change handlers.
18863
- - Returns The tree to hand to `TreeView` and `TreeSearch`.
19058
+ - Returns The tree to hand to [`TreeView`](#api-index-1) and `TreeSearch`.
18864
19059
 
18865
19060
  ```ts
18866
19061
  function useTree<K, S extends Key = string>(roots: readonly K[], options: TreeOptions<K, S>): Tree<K, S>;
@@ -18987,6 +19182,35 @@ is then enough.
18987
19182
  function cadence(ages: FreshnessAges): number;
18988
19183
  ```
18989
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
+
18990
19214
  ##### `duplicateKey`
18991
19215
 
18992
19216
  The first key that occurs twice, otherwise null. Two nodes with the same
@@ -19080,6 +19304,18 @@ actually expanded.
19080
19304
  function treeModel<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>): readonly FlatteningEntry<K, S>[];
19081
19305
  ```
19082
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
+
19083
19319
  ##### `verdictWeight`
19084
19320
 
19085
19321
  How heavily a verdict weighs - for sorting and comparing, as when a matrix
@@ -19102,6 +19338,17 @@ because the rendered set changed.
19102
19338
  function visibleWindow({ count, rowHeight, scrollTop, viewportHeight, overscan, }: WindowInput): RowWindow;
19103
19339
  ```
19104
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
+
19105
19352
  #### Constants
19106
19353
 
19107
19354
  ##### `DEFAULT_FORMATS`
@@ -19288,6 +19535,10 @@ Its table stands on [ConfirmDialog](#confirmdialog).
19288
19535
 
19289
19536
  Its table stands on [ContextMenu](#contextmenu).
19290
19537
 
19538
+ ##### `ContextMenuTriggerProps`
19539
+
19540
+ Its table stands on [ContextMenu](#contextmenu).
19541
+
19291
19542
  ##### `ControlSize`
19292
19543
 
19293
19544
  The two heights of a control: `sm` for a toolbar and dense forms, `md`
@@ -19404,6 +19655,7 @@ Everything the library knows about formatting.
19404
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 |
19405
19656
  | `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
19406
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`. |
19407
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) |
19408
19660
  | `percent` *required* | `(share: number) => string` | — | A share from 0 to 1 as whole per cent: 74 % |
19409
19661
  | `compareText` *required* | `(a: string, b: string) => number` | — | The ordering of two texts by the set's collation. |
@@ -19574,6 +19826,32 @@ Used on [Scenarios](#scenarios), [Language](#language), [Drawer](#drawer) and [S
19574
19826
 
19575
19827
  Its table stands on [Typography](#typography-2).
19576
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
+
19577
19855
  ##### `MenuItemProps`
19578
19856
 
19579
19857
  Its table stands on [Menu](#menu).
@@ -19640,10 +19918,29 @@ thereby stays entirely the caller's.
19640
19918
 
19641
19919
  Used on [Scenarios](#scenarios), [TreeView](#treeview) and [Benchmark](#benchmark).
19642
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
+
19643
19931
  ##### `NumberInputProps`
19644
19932
 
19645
19933
  Its table stands on [NumberInput](#numberinput).
19646
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
+
19647
19944
  ##### `PopoverProps`
19648
19945
 
19649
19946
  Its table stands on [Popover](#popover).
@@ -19662,6 +19959,25 @@ type PortalTarget = HTMLElement | (() => HTMLElement | null) | null;
19662
19959
 
19663
19960
  Used on [UmrissProvider](#umrissprovider).
19664
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
+
19665
19981
  ##### `ProgressBarProps`
19666
19982
 
19667
19983
  Its table stands on [ProgressBar](#progressbar).