@umriss-ui/core 0.43.0 → 0.44.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/CHANGELOG.md +14 -0
- package/README.md +3 -3
- package/dist/core.js +2440 -2442
- package/dist/de.d.ts +16 -0
- package/dist/index.d.ts +27 -23
- package/dist/wording/de.js +8 -0
- package/docs/llms-full.md +245 -96
- package/package.json +1 -1
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.44.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
|
|
|
@@ -2501,6 +2501,141 @@ export default function TraceABatch() {
|
|
|
2501
2501
|
}
|
|
2502
2502
|
```
|
|
2503
2503
|
|
|
2504
|
+
### Mark a stretch of the shift
|
|
2505
|
+
|
|
2506
|
+
A line lead looks at the kiln's trend over the shift, marks the stretch where it ran hot, and the table below shows the alarms of that stretch.
|
|
2507
|
+
|
|
2508
|
+
1. A drag over the trend marks a stretch, and so do Space, a walk with the arrow keys and Space again once the trend has focus. The chart reports the stretch once, when the reader lets go.
|
|
2509
|
+
2. The table shows only the alarms raised inside the stretch, both ends included.
|
|
2510
|
+
3. The count says how many of the shift's alarms the stretch holds and from when to when.
|
|
2511
|
+
4. Clear the stretch brings every alarm back. The chart and the table know nothing of each other: the stretch is one value in this scenario's state, and the band in the trend is drawn from it.
|
|
2512
|
+
|
|
2513
|
+
Built from: Line, LimitBand, Table.
|
|
2514
|
+
|
|
2515
|
+
```tsx
|
|
2516
|
+
import { useState } from "react";
|
|
2517
|
+
import { Badge, Button, Card, CardBody, CardHeader, Stack, Text } from "@umriss-ui/core";
|
|
2518
|
+
import { LimitBand, LimitLine, Tooltip, useChart } from "@umriss-ui/charts";
|
|
2519
|
+
import type { ChartRange } from "@umriss-ui/charts";
|
|
2520
|
+
import { rowFilter, useTable } from "@umriss-ui/table";
|
|
2521
|
+
|
|
2522
|
+
/* Data from the plant world, written out here so the example runs on its own. */
|
|
2523
|
+
|
|
2524
|
+
/** The early shift begins at 06:00 on a day of its own, so the page is the same on every run. */
|
|
2525
|
+
const START = new Date(2026, 2, 17, 6, 0).getTime();
|
|
2526
|
+
const MIN = 60_000;
|
|
2527
|
+
const at = (minute: number) => START + minute * MIN;
|
|
2528
|
+
const SHIFT_MINUTES = 480;
|
|
2529
|
+
|
|
2530
|
+
/** One alarm of the shift. */
|
|
2531
|
+
export interface Alarm {
|
|
2532
|
+
id: string;
|
|
2533
|
+
/** The instant it was raised, in milliseconds. */
|
|
2534
|
+
raised: number;
|
|
2535
|
+
priority: "high" | "medium" | "low";
|
|
2536
|
+
message: string;
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2539
|
+
const ALARMS: readonly Alarm[] = [
|
|
2540
|
+
{ id: "a-1", raised: at(12), priority: "low", message: "Dryer D1 · fan vibration high" },
|
|
2541
|
+
{ id: "a-2", raised: at(48), priority: "medium", message: "Kiln K1 · belt empty" },
|
|
2542
|
+
{ id: "a-3", raised: at(95), priority: "medium", message: "Kiln K1 · exit pyrometer sends nothing" },
|
|
2543
|
+
{ id: "a-4", raised: at(150), priority: "high", message: "Kiln K1 · zone 3 above alarm limit" },
|
|
2544
|
+
{ id: "a-5", raised: at(172), priority: "medium", message: "Kiln K1 · belt empty" },
|
|
2545
|
+
{ id: "a-6", raised: at(205), priority: "low", message: "Dryer D1 · fan vibration high" },
|
|
2546
|
+
{ id: "a-7", raised: at(250), priority: "high", message: "Kiln K1 · zone 3 above alarm limit" },
|
|
2547
|
+
{ id: "a-8", raised: at(288), priority: "medium", message: "Kiln K1 · exit pyrometer sends nothing" },
|
|
2548
|
+
{ id: "a-9", raised: at(340), priority: "low", message: "Dryer D1 · fan vibration high" },
|
|
2549
|
+
{ id: "a-10", raised: at(401), priority: "medium", message: "Kiln K1 · belt empty" },
|
|
2550
|
+
{ id: "a-11", raised: at(455), priority: "high", message: "Kiln K1 · zone 3 above alarm limit" },
|
|
2551
|
+
];
|
|
2552
|
+
|
|
2553
|
+
/** Zone 3 of the kiln every five minutes, in °C; it runs hot around the high alarms of the shift. */
|
|
2554
|
+
const TREND = Array.from({ length: SHIFT_MINUTES / 5 + 1 }, (_, i) => {
|
|
2555
|
+
const near = ALARMS.some((alarm) => alarm.priority === "high" && Math.abs(alarm.raised - at(i * 5)) <= 15 * MIN);
|
|
2556
|
+
return { t: at(i * 5), kiln: Math.round((1200 + 6 * Math.sin(i / 3) + (near ? 24 : 0)) * 10) / 10 };
|
|
2557
|
+
});
|
|
2558
|
+
|
|
2559
|
+
/** A stretch of the shift, in milliseconds. */
|
|
2560
|
+
export type Stretch = Pick<ChartRange<number>, "from" | "to">;
|
|
2561
|
+
|
|
2562
|
+
/** Whether the instant lies in the stretch; both ends belong to it. */
|
|
2563
|
+
export function within(instant: number, stretch: Stretch): boolean {
|
|
2564
|
+
return stretch.from <= instant && instant <= stretch.to;
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
/** The alarms the stretch holds; no stretch holds them all. */
|
|
2568
|
+
export function alarmsIn(alarms: readonly Alarm[], stretch: Stretch | null): readonly Alarm[] {
|
|
2569
|
+
return stretch === null ? alarms : alarms.filter((alarm) => within(alarm.raised, stretch));
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
/* A condition from outside the table: the table keeps the stretch like a
|
|
2573
|
+
filter of its own and shows only the rows it admits. */
|
|
2574
|
+
const IN_STRETCH = rowFilter<Alarm, Stretch>({
|
|
2575
|
+
id: "stretch",
|
|
2576
|
+
label: "Stretch",
|
|
2577
|
+
matches: (alarm, stretch) => within(alarm.raised, stretch),
|
|
2578
|
+
});
|
|
2579
|
+
|
|
2580
|
+
const clock = (instant: number) => new Date(instant).toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" });
|
|
2581
|
+
|
|
2582
|
+
export default function MarkAStretch() {
|
|
2583
|
+
const [stretch, setStretch] = useState<Stretch | null>(null);
|
|
2584
|
+
const t = useTable(ALARMS, { rowKey: (a) => a.id, rowFilters: [IN_STRETCH] });
|
|
2585
|
+
const { Table, Column } = t;
|
|
2586
|
+
|
|
2587
|
+
const mark = (next: Stretch | null) => {
|
|
2588
|
+
setStretch(next);
|
|
2589
|
+
t.setFilter(IN_STRETCH, next);
|
|
2590
|
+
};
|
|
2591
|
+
const trend = useChart(TREND, { onRange: ({ from, to }) => mark({ from, to }) });
|
|
2592
|
+
|
|
2593
|
+
return (
|
|
2594
|
+
<Stack gap={4}>
|
|
2595
|
+
<Stack direction="row" gap={4} align="center" wrap>
|
|
2596
|
+
<Text data-callout="3">
|
|
2597
|
+
{stretch === null
|
|
2598
|
+
? `All ${ALARMS.length} alarms of the shift`
|
|
2599
|
+
: `${alarmsIn(ALARMS, stretch).length} of ${ALARMS.length} alarms between ${clock(stretch.from)} and ${clock(stretch.to)}`}
|
|
2600
|
+
</Text>
|
|
2601
|
+
<Button size="sm" data-callout="4" disabled={stretch === null} onClick={() => mark(null)}>
|
|
2602
|
+
Clear the stretch
|
|
2603
|
+
</Button>
|
|
2604
|
+
</Stack>
|
|
2605
|
+
|
|
2606
|
+
<Card data-callout="1">
|
|
2607
|
+
<CardHeader title="Kiln trend" />
|
|
2608
|
+
<CardBody>
|
|
2609
|
+
<trend.Chart height={240} aria-label="Kiln K1, zone 3, over the shift">
|
|
2610
|
+
<trend.XAxis value="t" domain={[at(0), at(SHIFT_MINUTES)]} time />
|
|
2611
|
+
<trend.YAxis domain={[1180, 1250]} label="°C" />
|
|
2612
|
+
<LimitLine value={1215} severity="warning" label="Warning limit" />
|
|
2613
|
+
{stretch !== null && <LimitBand orientation="x" from={stretch.from} to={stretch.to} label="Stretch" />}
|
|
2614
|
+
<trend.Line value="kiln" name="Zone 3" format={(v) => `${v.toFixed(1)} °C`} />
|
|
2615
|
+
<Tooltip mode="x" />
|
|
2616
|
+
</trend.Chart>
|
|
2617
|
+
</CardBody>
|
|
2618
|
+
</Card>
|
|
2619
|
+
|
|
2620
|
+
<Card data-callout="2">
|
|
2621
|
+
<CardHeader title="Alarms" />
|
|
2622
|
+
<CardBody>
|
|
2623
|
+
<Table aria-label="Alarms of the early shift">
|
|
2624
|
+
<Column value="raised" label="Raised" numeric>
|
|
2625
|
+
{(raised) => clock(raised)}
|
|
2626
|
+
</Column>
|
|
2627
|
+
<Column value="priority" label="Priority">
|
|
2628
|
+
{(priority) => <Badge tone={priority === "high" ? "danger" : priority === "medium" ? "warning" : "neutral"}>{priority}</Badge>}
|
|
2629
|
+
</Column>
|
|
2630
|
+
<Column value="message" label="Alarm" rowHeader />
|
|
2631
|
+
</Table>
|
|
2632
|
+
</CardBody>
|
|
2633
|
+
</Card>
|
|
2634
|
+
</Stack>
|
|
2635
|
+
);
|
|
2636
|
+
}
|
|
2637
|
+
```
|
|
2638
|
+
|
|
2504
2639
|
## Getting started
|
|
2505
2640
|
|
|
2506
2641
|
What an application sets up once, before the first component.
|
|
@@ -2548,7 +2683,7 @@ From `ButtonProps` — the full table stands on [Button](#button).
|
|
|
2548
2683
|
- No font is loaded or bundled.
|
|
2549
2684
|
- Chrome 123, Firefox 120 and Safari 17.5 or newer; an older browser discards the tokens and shows the components unstyled.
|
|
2550
2685
|
|
|
2551
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2686
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2552
2687
|
|
|
2553
2688
|
### UmrissProvider
|
|
2554
2689
|
|
|
@@ -2759,7 +2894,7 @@ type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "
|
|
|
2759
2894
|
|
|
2760
2895
|
- No theme and no default variants for components: a component is configured by its own props.
|
|
2761
2896
|
|
|
2762
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2897
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2763
2898
|
|
|
2764
2899
|
## Customising
|
|
2765
2900
|
|
|
@@ -3232,7 +3367,7 @@ From `BadgeProps` — the full table stands on [Badge](#badge).
|
|
|
3232
3367
|
- 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.
|
|
3233
3368
|
- 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`.
|
|
3234
3369
|
|
|
3235
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3370
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3236
3371
|
|
|
3237
3372
|
### Sizes
|
|
3238
3373
|
|
|
@@ -3650,7 +3785,7 @@ type ControlSize = "sm" | "md";
|
|
|
3650
3785
|
- 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).
|
|
3651
3786
|
- 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)`.
|
|
3652
3787
|
|
|
3653
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3788
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3654
3789
|
|
|
3655
3790
|
### Language
|
|
3656
3791
|
|
|
@@ -4050,7 +4185,10 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4050
4185
|
| `unpinHint` | Unpin | Fixierung lösen | — |
|
|
4051
4186
|
| `exportLabel` | Export | Exportieren | The export button. |
|
|
4052
4187
|
| `exportPageLabel` | Export page | Seite exportieren | The export button of a table in server mode, which holds and writes one page. |
|
|
4188
|
+
| `exporting` | Preparing the export | Export wird vorbereitet | The status while the application prepares an export of every match. |
|
|
4189
|
+
| `exportFailed` | The export failed | Der Export ist fehlgeschlagen | The alert beside the export button when preparing the export failed without a message. |
|
|
4053
4190
|
| `exportFileName` | table.csv | tabelle.csv | The export's file name, where the application names none. |
|
|
4191
|
+
| `exportSheetName` | Table | Tabelle | The name of the sheet an XLSX export holds. |
|
|
4054
4192
|
| `tableSearchPlaceholder` | Search … | Suchen … | Placeholder and accessible name of the search field. |
|
|
4055
4193
|
| `tableSearchLabel` | Search table | Tabelle durchsuchen | — |
|
|
4056
4194
|
| `filterColumn(column)` | `` `Filter ${column}` `` | `` `${column} filtern` `` | The filter button of a column: "Filter Region". |
|
|
@@ -4098,10 +4236,14 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4098
4236
|
| `levelColumn` | Level | Ebene | The first column of a tree's export. |
|
|
4099
4237
|
| `pathRow` | on the path to a match | auf dem Weg zu einem Treffer | A row shown only because a descendant matches the search or a filter. |
|
|
4100
4238
|
| `footerTopLevel` | Top level only | Nur oberste Ebene | The footer of a tree: it sums the top level, since a parent holds its children. |
|
|
4239
|
+
| `footerOfMatches` | All matches | Alle Treffer | The footer of a server-mode table: its sums come from the server and cover every match, not the page. Read out only. |
|
|
4101
4240
|
| `selectGroup(name)` | `` `Select ${name}` `` | `` `${name} auswählen` `` | The box that selects every row of a group. |
|
|
4102
4241
|
| `calendarWeek(week, year)` | `` `Week ${week}, ${year}` `` | `` `KW ${week}/${year}` `` | A group of the week key: "Week 42, 2026". |
|
|
4103
4242
|
| `entries(count, formatted)` | `` (count === 1 ? "1 entry" : `${formatted} entries`) `` | `` (count === 1 ? "1 Eintrag" : `${formatted} Einträge`) `` | "128 entries" in the pagination bar; the plural belongs to the language. |
|
|
4104
4243
|
| `selectedCount(count, formatted)` | `` `${formatted} selected` `` | `` `${formatted} ausgewählt` `` | "3 selected" in the pagination bar and the table toolbar. |
|
|
4244
|
+
| `selectedOnPage(count, formatted)` | `` `All ${formatted} on this page are selected.` `` | `` (count === 1 ? "Die 1 Zeile dieser Seite ist ausgewählt." : `Alle ${formatted} Zeilen dieser Seite sind ausgewählt.`) `` | The first sentence of the offer in a server-mode table, once the page is ticked: "All 50 on this page are selected." |
|
|
4245
|
+
| `selectAllMatching(count, formatted)` | `` `Select all ${formatted} that match` `` | `` `Alle ${formatted} Treffer auswählen` `` | The button after it, for the rows the server holds: "Select all 12,400 that match". |
|
|
4246
|
+
| `allMatchingSelected(count, formatted)` | `` `All ${formatted} that match are selected.` `` | `` `Alle ${formatted} Treffer sind ausgewählt.` `` | The line once they are selected: "All 12,400 that match are selected." |
|
|
4105
4247
|
| `copiedRows(count, formatted)` | `` (count === 1 ? "1 row copied" : `${formatted} rows copied`) `` | `` (count === 1 ? "1 Zeile kopiert" : `${formatted} Zeilen kopiert`) `` | Said to a screen reader after Ctrl+C copied rows: "3 rows copied". |
|
|
4106
4248
|
| `copiedCell` | Cell copied | Zelle kopiert | Said after Ctrl+C copied the active cell of a grid. |
|
|
4107
4249
|
| `copyFailed` | Could not copy | Kopieren nicht möglich | Said when the clipboard refused or is not there. |
|
|
@@ -4120,6 +4262,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4120
4262
|
| `rangeTo(to)` | `` `to ${to}` `` | `` `bis ${to}` `` | — |
|
|
4121
4263
|
| `rangeInvalid` | “From” lies after “To”. | „Von“ liegt hinter „Bis“. | When "From" lies behind "To". The condition stays the last valid one. |
|
|
4122
4264
|
| `resetAll` | Reset | Zurücksetzen | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
4265
|
+
| `tryAgain` | Try again | Erneut versuchen | The button under a server-mode table's error that sends the request once more. |
|
|
4123
4266
|
| `filteredOfTotal(matches, total)` | `` `${matches} of ${total}` `` | `` `${matches} von ${total}` `` | "43 of 1.204" - the numbers come from the formats. |
|
|
4124
4267
|
|
|
4125
4268
|
##### Stat, verdict, freshness
|
|
@@ -4294,6 +4437,9 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
|
|
|
4294
4437
|
| `percent(value)` | `` `${value}%` `` | `` `${value} %` `` | A share in a normalised stack, its number already formatted. |
|
|
4295
4438
|
| `walkHelp` | Left and right arrows move through the values, up and down change the series, Home and End go to the first and the last, Escape clears. | Pfeil links und rechts gehen durch die Werte, Pfeil hoch und runter wechseln die Serie, Pos1 und Ende springen zum ersten und letzten Wert, Escape hebt die Markierung auf. | The keys that walk the chart. |
|
|
4296
4439
|
| `selectHelp` | Enter chooses the point. | Enter wählt den Punkt. | The key that reports the Active point - only where `onSelect` is given. |
|
|
4440
|
+
| `rangeStarted(from)` | `` `Range from ${from} started.` `` | `` `Bereich ab ${from} begonnen.` `` | Said when the keyboard sets the start of a range; the x value is written in the axis' format. |
|
|
4441
|
+
| `rangeMade(from, to)` | `` `Range from ${from} to ${to}.` `` | `` `Bereich von ${from} bis ${to}.` `` | Said when the keyboard sets the end of a range. |
|
|
4442
|
+
| `rangeHelp` | Space sets the start and the end of a range, Escape cancels it. | Leertaste setzt Anfang und Ende eines Bereichs, Escape bricht ab. | The key that marks a range - only where `onRange` is given and a tooltip stands. |
|
|
4297
4443
|
| `zoomHelp` | Plus and minus zoom, Shift with left or right pans, 0 goes back to the axis' own span. | Plus und Minus zoomen, Umschalt mit Pfeil links oder rechts verschiebt, 0 kehrt zum eigenen Bereich der Achse zurück. | The keys that zoom and pan it - only where the chart can be zoomed. |
|
|
4298
4444
|
| `legendHelp` | In the legend, Enter hides or shows a series, Shift+Enter shows only it. | In der Legende blendet Enter eine Serie aus oder ein, Umschalt+Enter zeigt nur sie. | The keys of the legend's entries - only where it has one to press. |
|
|
4299
4445
|
| `allShown` | Nothing would be left to see, so every series is shown. | Sonst wäre nichts mehr zu sehen, darum werden alle Serien gezeigt. | Read out where hiding would leave nothing to see, and every series is shown instead. |
|
|
@@ -4487,7 +4633,10 @@ Everything the library puts out as text.
|
|
|
4487
4633
|
| `unpinHint` *required* | `string` | — | |
|
|
4488
4634
|
| `exportLabel` *required* | `string` | — | The export button. |
|
|
4489
4635
|
| `exportPageLabel` *required* | `string` | — | The export button of a table in server mode, which holds and writes one page. |
|
|
4636
|
+
| `exporting` *required* | `string` | — | The status while the application prepares an export of every match. |
|
|
4637
|
+
| `exportFailed` *required* | `string` | — | The alert beside the export button when preparing the export failed without a message. |
|
|
4490
4638
|
| `exportFileName` *required* | `string` | — | The export's file name, where the application names none. |
|
|
4639
|
+
| `exportSheetName` *required* | `string` | — | The name of the sheet an XLSX export holds. |
|
|
4491
4640
|
| `tableSearchPlaceholder` *required* | `string` | — | Placeholder and accessible name of the search field. |
|
|
4492
4641
|
| `tableSearchLabel` *required* | `string` | — | |
|
|
4493
4642
|
| `filterColumn` *required* | `(column: string) => string` | — | The filter button of a column: "Filter Region". |
|
|
@@ -4535,10 +4684,14 @@ Everything the library puts out as text.
|
|
|
4535
4684
|
| `levelColumn` *required* | `string` | — | The first column of a tree's export. |
|
|
4536
4685
|
| `pathRow` *required* | `string` | — | A row shown only because a descendant matches the search or a filter. |
|
|
4537
4686
|
| `footerTopLevel` *required* | `string` | — | The footer of a tree: it sums the top level, since a parent holds its children. |
|
|
4687
|
+
| `footerOfMatches` *required* | `string` | — | The footer of a server-mode table: its sums come from the server and cover every match, not the page. Read out only. |
|
|
4538
4688
|
| `selectGroup` *required* | `(name: string) => string` | — | The box that selects every row of a group. |
|
|
4539
4689
|
| `calendarWeek` *required* | `(week: number, year: number) => string` | — | A group of the week key: "Week 42, 2026". |
|
|
4540
4690
|
| `entries` *required* | `(count: number, formatted: string) => string` | — | "128 entries" in the pagination bar; the plural belongs to the language. |
|
|
4541
4691
|
| `selectedCount` *required* | `(count: number, formatted: string) => string` | — | "3 selected" in the pagination bar and the table toolbar. |
|
|
4692
|
+
| `selectedOnPage` *required* | `(count: number, formatted: string) => string` | — | The first sentence of the offer in a server-mode table, once the page is ticked: "All 50 on this page are selected." |
|
|
4693
|
+
| `selectAllMatching` *required* | `(count: number, formatted: string) => string` | — | The button after it, for the rows the server holds: "Select all 12,400 that match". |
|
|
4694
|
+
| `allMatchingSelected` *required* | `(count: number, formatted: string) => string` | — | The line once they are selected: "All 12,400 that match are selected." |
|
|
4542
4695
|
| `copiedRows` *required* | `(count: number, formatted: string) => string` | — | Said to a screen reader after Ctrl+C copied rows: "3 rows copied". |
|
|
4543
4696
|
| `copiedCell` *required* | `string` | — | Said after Ctrl+C copied the active cell of a grid. |
|
|
4544
4697
|
| `copyFailed` *required* | `string` | — | Said when the clipboard refused or is not there. |
|
|
@@ -4557,6 +4710,7 @@ Everything the library puts out as text.
|
|
|
4557
4710
|
| `rangeTo` *required* | `(to: string) => string` | — | |
|
|
4558
4711
|
| `rangeInvalid` *required* | `string` | — | When "From" lies behind "To". The condition stays the last valid one. |
|
|
4559
4712
|
| `resetAll` *required* | `string` | — | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
4713
|
+
| `tryAgain` *required* | `string` | — | The button under a server-mode table's error that sends the request once more. |
|
|
4560
4714
|
| `filteredOfTotal` *required* | `(matches: string, total: string) => string` | — | "43 of 1.204" - the numbers come from the formats. |
|
|
4561
4715
|
| `verdictOk` *required* | `string` | — | The four outcomes of an assessment, as a word beside the value. Colour alone carries no meaning - the word stands here for that reason.<br>Shown in: [Replace single entries](#language) |
|
|
4562
4716
|
| `verdictWarning` *required* | `string` | — | <br>Shown in: [Replace single entries](#language) |
|
|
@@ -4685,10 +4839,10 @@ Everything the library puts out as text.
|
|
|
4685
4839
|
|
|
4686
4840
|
#### Known limits
|
|
4687
4841
|
|
|
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.
|
|
4842
|
+
- Two languages ship; a third is a `Wording` object of your own. No right-to-left ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
4689
4843
|
- It holds only what the components say themselves; your labels, titles and data are yours to translate.
|
|
4690
4844
|
|
|
4691
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
4845
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
4692
4846
|
|
|
4693
4847
|
## Layout
|
|
4694
4848
|
|
|
@@ -4990,11 +5144,11 @@ The keys of [Button](#button) apply here.
|
|
|
4990
5144
|
|
|
4991
5145
|
| Prop | Type | Default | Description |
|
|
4992
5146
|
|---|---|---|---|
|
|
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
|
|
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
|
|
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
|
|
5147
|
+
| `direction` | `"row" \| "column"` | `"column"` | Below one another or beside one another. Below is the direction content stands in anyway, without being asked.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [Wrapping](#stack-and-grid) and 70 more |
|
|
5148
|
+
| `gap` | `SpaceStep`<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `3` | Spacing as a step of the 4 px spacing steps (1–8).<br>Shown in: [A column](#stack-and-grid), [A row](#stack-and-grid), [Gaps](#stack-and-grid) and 166 more |
|
|
5149
|
+
| `align` | `CSSProperties["alignItems"]` | — | Alignment across the direction – `alignItems` unchanged.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [A tour summary](#stack-and-grid) and 79 more |
|
|
4996
5150
|
| `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 |
|
|
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
|
|
5151
|
+
| `wrap` | `boolean` | `false` | Lets the children wrap when the line does not suffice.<br>Shown in: [Gaps](#stack-and-grid), [Wrapping](#stack-and-grid), [Sized to the value (Sizes)](#sizes) and 33 more |
|
|
4998
5152
|
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
|
|
4999
5153
|
|
|
5000
5154
|
Also takes every attribute of `<div>`.
|
|
@@ -5035,7 +5189,7 @@ type GridColumnWidth = number | "fill";
|
|
|
5035
5189
|
- No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
|
|
5036
5190
|
- 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)).
|
|
5037
5191
|
|
|
5038
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5192
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5039
5193
|
|
|
5040
5194
|
### Divider
|
|
5041
5195
|
|
|
@@ -5415,7 +5569,7 @@ Also takes every attribute of the rendered element.
|
|
|
5415
5569
|
|
|
5416
5570
|
| Prop | Type | Default | Description |
|
|
5417
5571
|
|---|---|---|---|
|
|
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
|
|
5572
|
+
| `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 29 more |
|
|
5419
5573
|
| `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 |
|
|
5420
5574
|
| `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 |
|
|
5421
5575
|
| `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) |
|
|
@@ -5860,7 +6014,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
|
|
|
5860
6014
|
- 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)).
|
|
5861
6015
|
- It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
|
|
5862
6016
|
|
|
5863
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6017
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5864
6018
|
|
|
5865
6019
|
## Typography
|
|
5866
6020
|
|
|
@@ -6296,10 +6450,10 @@ type TextLeading = "normal" | "tight";
|
|
|
6296
6450
|
#### Known limits
|
|
6297
6451
|
|
|
6298
6452
|
- No truncation and no line length: both depend on the column, which only the application knows.
|
|
6299
|
-
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6453
|
+
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
6300
6454
|
- `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
|
|
6301
6455
|
|
|
6302
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6456
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6303
6457
|
|
|
6304
6458
|
### VisuallyHidden
|
|
6305
6459
|
|
|
@@ -6423,7 +6577,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
|
|
|
6423
6577
|
|
|
6424
6578
|
- It hides from the eye only; to hide something from everyone, do not render it.
|
|
6425
6579
|
|
|
6426
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6580
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6427
6581
|
|
|
6428
6582
|
## Actions
|
|
6429
6583
|
|
|
@@ -6710,7 +6864,7 @@ Under forced colours every variant keeps an outline where its edge would lie, an
|
|
|
6710
6864
|
| Prop | Type | Default | Description |
|
|
6711
6865
|
|---|---|---|---|
|
|
6712
6866
|
| `variant` | `ButtonVariant`<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"secondary"` | How loud the button is. `primary` exactly once per surface - two main actions side by side are no longer a main action. `ghost` is quiet in the accent, `plain` quiet and neutral.<br>Shown in: [Configurator](#button), [Variants](#button), [Sizes](#button) and 52 more |
|
|
6713
|
-
| `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise.<br>Shown in: [Configurator](#button), [Sizes](#button), [Add an icon](#button) and
|
|
6867
|
+
| `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise.<br>Shown in: [Configurator](#button), [Sizes](#button), [Add an icon](#button) and 58 more |
|
|
6714
6868
|
| `loading` | `boolean` | `false` | Shows a loading indicator and locks the button.<br>Shown in: [Configurator](#button), [Loading and disabled](#button), [Submit a form](#button) and 4 more |
|
|
6715
6869
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
|
|
6716
6870
|
|
|
@@ -6752,7 +6906,7 @@ type ControlSize = "sm" | "md";
|
|
|
6752
6906
|
- The label stays on one line; keep it short rather than let it wrap.
|
|
6753
6907
|
- No icon slot: an icon goes among the children, before the label, and the button sets its size.
|
|
6754
6908
|
|
|
6755
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6909
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6756
6910
|
|
|
6757
6911
|
### IconButton
|
|
6758
6912
|
|
|
@@ -7061,7 +7215,7 @@ export default function Toolbar() {
|
|
|
7061
7215
|
|---|---|---|---|
|
|
7062
7216
|
| `children` *required* | `ReactNode` | — | The icon: an SVG, a glyph of the set or an icon font's element. The button sets its size - `--u-icon-size`, `--u-icon-size-sm` at `sm`.<br>Shown in: [Configurator](#iconbutton), [Name the icon](#iconbutton), [Variants](#iconbutton) and 5 more |
|
|
7063
7217
|
| `variant` | `ButtonVariant`<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"plain"` | How loud the button is; `plain` is quiet and neutral, and the rest mean what they mean on a `Button`.<br>Shown in: [Configurator](#iconbutton), [Variants](#iconbutton), [Sizes](#iconbutton) and 3 more |
|
|
7064
|
-
| `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. From `ButtonProps`.<br>Shown in: [Configurator](#iconbutton), [Sizes](#iconbutton), [Build a toolbar](#iconbutton) and
|
|
7218
|
+
| `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. From `ButtonProps`.<br>Shown in: [Configurator](#iconbutton), [Sizes](#iconbutton), [Build a toolbar](#iconbutton) and 58 more |
|
|
7065
7219
|
| `loading` | `boolean` | `false` | Shows a loading indicator and locks the button. From `ButtonProps`.<br>Shown in: [Configurator](#iconbutton), [Loading and disabled](#iconbutton), [Configurator (Button)](#button) and 4 more |
|
|
7066
7220
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
|
|
7067
7221
|
|
|
@@ -7109,7 +7263,7 @@ type ControlSize = "sm" | "md";
|
|
|
7109
7263
|
- The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
|
|
7110
7264
|
- A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
|
|
7111
7265
|
|
|
7112
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7266
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7113
7267
|
|
|
7114
7268
|
### ButtonGroup
|
|
7115
7269
|
|
|
@@ -7469,7 +7623,7 @@ type ControlSize = "sm" | "md";
|
|
|
7469
7623
|
|
|
7470
7624
|
- No toggle or segmented state; a choice that stays is a radio group.
|
|
7471
7625
|
|
|
7472
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7626
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7473
7627
|
|
|
7474
7628
|
## Forms
|
|
7475
7629
|
|
|
@@ -7753,7 +7907,7 @@ Also takes every attribute of `<input>` – without `size`.
|
|
|
7753
7907
|
- No input masks or formatting while typing; check the value on leave or on submit.
|
|
7754
7908
|
- No validation of its own: the error is the application's, handed to the `FormField`.
|
|
7755
7909
|
|
|
7756
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7910
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7757
7911
|
|
|
7758
7912
|
### FormField
|
|
7759
7913
|
|
|
@@ -7944,7 +8098,7 @@ Also takes every attribute of `<div>`.
|
|
|
7944
8098
|
- 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.
|
|
7945
8099
|
- One field per `FormField`; a group of fields that share one label is a fieldset of your own.
|
|
7946
8100
|
|
|
7947
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8101
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7948
8102
|
|
|
7949
8103
|
### Textarea
|
|
7950
8104
|
|
|
@@ -8132,7 +8286,7 @@ Also takes every attribute of `<textarea>` – without `cols`.
|
|
|
8132
8286
|
|
|
8133
8287
|
- Plain text only: no formatting, mentions or rich text.
|
|
8134
8288
|
|
|
8135
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8289
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8136
8290
|
|
|
8137
8291
|
### NumberInput
|
|
8138
8292
|
|
|
@@ -8394,7 +8548,7 @@ Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`
|
|
|
8394
8548
|
- No expressions: “12*4” is not calculated.
|
|
8395
8549
|
- No currency conversion; the unit is a label.
|
|
8396
8550
|
|
|
8397
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8551
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8398
8552
|
|
|
8399
8553
|
### Slider
|
|
8400
8554
|
|
|
@@ -8587,7 +8741,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
|
|
|
8587
8741
|
- One thumb: no range with two ends.
|
|
8588
8742
|
- Marks show values; they do not catch the thumb.
|
|
8589
8743
|
|
|
8590
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8744
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8591
8745
|
|
|
8592
8746
|
### Checkbox
|
|
8593
8747
|
|
|
@@ -8915,7 +9069,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
|
|
|
8915
9069
|
|
|
8916
9070
|
- No pending or loading state; while your application applies the change, disable the switch or say so beside it.
|
|
8917
9071
|
|
|
8918
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9072
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8919
9073
|
|
|
8920
9074
|
### RadioGroup
|
|
8921
9075
|
|
|
@@ -9379,7 +9533,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
9379
9533
|
- Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
|
|
9380
9534
|
- No icons and no line of explanation in a segment; several chosen at once is not this control.
|
|
9381
9535
|
|
|
9382
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9536
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9383
9537
|
|
|
9384
9538
|
### FileInput
|
|
9385
9539
|
|
|
@@ -9628,7 +9782,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
|
|
|
9628
9782
|
|
|
9629
9783
|
- No upload, no progress and no size limit of its own; those belong to the application sending the files.
|
|
9630
9784
|
|
|
9631
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9785
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9632
9786
|
|
|
9633
9787
|
## Choosing
|
|
9634
9788
|
|
|
@@ -9824,7 +9978,7 @@ Also takes every attribute of `<select>` – without `size`.
|
|
|
9824
9978
|
|
|
9825
9979
|
- The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
|
|
9826
9980
|
|
|
9827
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9981
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9828
9982
|
|
|
9829
9983
|
### Combobox
|
|
9830
9984
|
|
|
@@ -10090,7 +10244,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
|
|
|
10090
10244
|
- No free text as a value: only an option can be chosen.
|
|
10091
10245
|
- No loading of options from a server; filter your own list and pass it in.
|
|
10092
10246
|
|
|
10093
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10247
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10094
10248
|
|
|
10095
10249
|
### MultiSelect
|
|
10096
10250
|
|
|
@@ -10545,7 +10699,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
10545
10699
|
- No typing of a date into the field.
|
|
10546
10700
|
- 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)).
|
|
10547
10701
|
|
|
10548
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10702
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10549
10703
|
|
|
10550
10704
|
### DateTimePicker
|
|
10551
10705
|
|
|
@@ -10714,7 +10868,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
10714
10868
|
|
|
10715
10869
|
- 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)).
|
|
10716
10870
|
|
|
10717
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10871
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10718
10872
|
|
|
10719
10873
|
### DateRangePicker
|
|
10720
10874
|
|
|
@@ -10932,7 +11086,7 @@ the moment of the click.
|
|
|
10932
11086
|
|
|
10933
11087
|
- One span; no list of separate days.
|
|
10934
11088
|
|
|
10935
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11089
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10936
11090
|
|
|
10937
11091
|
### DateTimeRangePicker
|
|
10938
11092
|
|
|
@@ -11146,7 +11300,7 @@ the moment of the click.
|
|
|
11146
11300
|
- 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)).
|
|
11147
11301
|
- No recurring windows.
|
|
11148
11302
|
|
|
11149
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11303
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11150
11304
|
|
|
11151
11305
|
## Feedback
|
|
11152
11306
|
|
|
@@ -11296,7 +11450,7 @@ Also takes every attribute of `<svg>`.
|
|
|
11296
11450
|
|
|
11297
11451
|
- One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
|
|
11298
11452
|
|
|
11299
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11453
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11300
11454
|
|
|
11301
11455
|
### ProgressBar
|
|
11302
11456
|
|
|
@@ -11479,7 +11633,7 @@ Also takes every attribute of `<div>`.
|
|
|
11479
11633
|
|
|
11480
11634
|
- No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
|
|
11481
11635
|
|
|
11482
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11636
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11483
11637
|
|
|
11484
11638
|
### Skeleton
|
|
11485
11639
|
|
|
@@ -11636,7 +11790,7 @@ Also takes every attribute of `<span>`.
|
|
|
11636
11790
|
|
|
11637
11791
|
- It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
|
|
11638
11792
|
|
|
11639
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11793
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11640
11794
|
|
|
11641
11795
|
### Alert
|
|
11642
11796
|
|
|
@@ -11854,7 +12008,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
11854
12008
|
- No timer: an alert stays until you remove it. A message that goes by itself is a toast.
|
|
11855
12009
|
- No stack or queue of messages; place each alert where its matter is.
|
|
11856
12010
|
|
|
11857
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12011
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11858
12012
|
|
|
11859
12013
|
### Toast
|
|
11860
12014
|
|
|
@@ -12412,7 +12566,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
|
|
|
12412
12566
|
- 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.
|
|
12413
12567
|
- 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.
|
|
12414
12568
|
|
|
12415
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12569
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12416
12570
|
|
|
12417
12571
|
### EmptyState
|
|
12418
12572
|
|
|
@@ -12720,7 +12874,7 @@ export default function ACalculation() {
|
|
|
12720
12874
|
- No interactive content and no rich layout inside: it is read, never used.
|
|
12721
12875
|
- No placement option: it stands above its element and flips below where there is no room.
|
|
12722
12876
|
|
|
12723
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12877
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12724
12878
|
|
|
12725
12879
|
### Popover
|
|
12726
12880
|
|
|
@@ -12953,7 +13107,6 @@ export default function ACardAtTheEdge() {
|
|
|
12953
13107
|
|---|---|---|---|
|
|
12954
13108
|
| `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 |
|
|
12955
13109
|
| `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. |
|
|
12957
13110
|
|
|
12958
13111
|
###### Styling
|
|
12959
13112
|
|
|
@@ -12976,7 +13129,7 @@ type Align = "start" | "end" | "center";
|
|
|
12976
13129
|
- 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.
|
|
12977
13130
|
- It does not trap focus; a surface the user must answer is a [Modal](#modal).
|
|
12978
13131
|
|
|
12979
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13132
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12980
13133
|
|
|
12981
13134
|
### Menu
|
|
12982
13135
|
|
|
@@ -13177,7 +13330,7 @@ Also takes every attribute of `<button>` – without `onSelect`.
|
|
|
13177
13330
|
|
|
13178
13331
|
- No submenus, no checkable entries and no type-ahead.
|
|
13179
13332
|
|
|
13180
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13333
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13181
13334
|
|
|
13182
13335
|
### ContextMenu
|
|
13183
13336
|
|
|
@@ -13368,7 +13521,6 @@ export default function OnARow() {
|
|
|
13368
13521
|
| Prop | Type | Default | Description |
|
|
13369
13522
|
|---|---|---|---|
|
|
13370
13523
|
| `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
13524
|
|
|
13373
13525
|
##### `ContextMenuTriggerProps`
|
|
13374
13526
|
|
|
@@ -13395,7 +13547,7 @@ export default function OnARow() {
|
|
|
13395
13547
|
- It listens to no right-click itself: the element and the point are yours, through the hook.
|
|
13396
13548
|
- No submenus, no checkable entries and no type-ahead, as in the menu.
|
|
13397
13549
|
|
|
13398
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13550
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13399
13551
|
|
|
13400
13552
|
### Modal
|
|
13401
13553
|
|
|
@@ -13725,7 +13877,7 @@ type ModalSize = "sm" | "md" | "lg";
|
|
|
13725
13877
|
|
|
13726
13878
|
- No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
|
|
13727
13879
|
|
|
13728
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13880
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13729
13881
|
|
|
13730
13882
|
### Drawer
|
|
13731
13883
|
|
|
@@ -14040,7 +14192,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
14040
14192
|
- Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
|
|
14041
14193
|
- Only the left and right edges; nothing slides in from the top or bottom.
|
|
14042
14194
|
|
|
14043
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14195
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14044
14196
|
|
|
14045
14197
|
### ConfirmDialog
|
|
14046
14198
|
|
|
@@ -14217,7 +14369,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
14217
14369
|
|
|
14218
14370
|
- A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
|
|
14219
14371
|
|
|
14220
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14372
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14221
14373
|
|
|
14222
14374
|
### CommandPalette
|
|
14223
14375
|
|
|
@@ -14517,7 +14669,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
14517
14669
|
- No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
|
|
14518
14670
|
- No nested steps or arguments: a command that needs input opens your own form after it is chosen.
|
|
14519
14671
|
|
|
14520
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14672
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14521
14673
|
|
|
14522
14674
|
## Navigation
|
|
14523
14675
|
|
|
@@ -14837,7 +14989,7 @@ Also takes every attribute of the rendered element.
|
|
|
14837
14989
|
|
|
14838
14990
|
- It neither routes nor reads the address: the trail is what you pass.
|
|
14839
14991
|
|
|
14840
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14992
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14841
14993
|
|
|
14842
14994
|
### Tabs
|
|
14843
14995
|
|
|
@@ -15207,7 +15359,7 @@ Also takes every attribute of `<div>`.
|
|
|
15207
15359
|
|
|
15208
15360
|
- More tabs than fit scroll sideways within the list; there is no overflow menu, and no closing or reordering of tabs.
|
|
15209
15361
|
|
|
15210
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15362
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15211
15363
|
|
|
15212
15364
|
### Accordion
|
|
15213
15365
|
|
|
@@ -15456,7 +15608,7 @@ Also takes every attribute of `<div>` – without `title`.
|
|
|
15456
15608
|
|
|
15457
15609
|
- A folded section's content stays rendered; for heavy content, render it only while its section is open.
|
|
15458
15610
|
|
|
15459
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15611
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15460
15612
|
|
|
15461
15613
|
### Stepper
|
|
15462
15614
|
|
|
@@ -15666,7 +15818,7 @@ Also takes every attribute of the rendered element.
|
|
|
15666
15818
|
- The steps are read, not navigated: no keys, no clicks, and no next or back of its own. Moving on is your application's decision.
|
|
15667
15819
|
- No branching or optional steps; pass the steps that apply.
|
|
15668
15820
|
|
|
15669
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15821
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15670
15822
|
|
|
15671
15823
|
### TreeView
|
|
15672
15824
|
|
|
@@ -16232,7 +16384,7 @@ export default function SearchCheckAndReveal() {
|
|
|
16232
16384
|
|
|
16233
16385
|
| Prop | Type | Default | Description |
|
|
16234
16386
|
|---|---|---|---|
|
|
16235
|
-
| `
|
|
16387
|
+
| `aria-label` *required* | `string` | — | Accessible name of the tree.<br>Shown in: [A tree](#treeview), [Tick a selection](#treeview), [Load branches on demand](#treeview) and 5 more |
|
|
16236
16388
|
|
|
16237
16389
|
Also takes every attribute of `<div>` – without `children`.
|
|
16238
16390
|
|
|
@@ -16344,7 +16496,7 @@ to render and the heights of the filler rows around it.
|
|
|
16344
16496
|
- No dragging nodes to rearrange them.
|
|
16345
16497
|
- 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)).
|
|
16346
16498
|
|
|
16347
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16499
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16348
16500
|
|
|
16349
16501
|
### Benchmark
|
|
16350
16502
|
|
|
@@ -16623,6 +16775,12 @@ From `TreeViewProps` — the full table stands on [TreeView](#treeview).
|
|
|
16623
16775
|
| [`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. |
|
|
16624
16776
|
| [`children`](#treeview) *required* | `(entry: `[`FlatteningEntry`](#treeview)`<K, S>) => ReactNode` | — | What the node says. |
|
|
16625
16777
|
|
|
16778
|
+
###### Accessibility
|
|
16779
|
+
|
|
16780
|
+
| Prop | Type | Default | Description |
|
|
16781
|
+
|---|---|---|---|
|
|
16782
|
+
| [`aria-label`](#treeview) *required* | `string` | — | Accessible name of the tree. |
|
|
16783
|
+
|
|
16626
16784
|
## Data display
|
|
16627
16785
|
|
|
16628
16786
|
Single values and labels, read at a glance.
|
|
@@ -16793,7 +16951,7 @@ The keys of [Button](#button) apply here.
|
|
|
16793
16951
|
|
|
16794
16952
|
| Prop | Type | Default | Description |
|
|
16795
16953
|
|---|---|---|---|
|
|
16796
|
-
| `tone` | `BadgeTone`<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | `"neutral"` | What the badge stands for. There is always a word beside it: a colour on its own is not a statement.<br>Shown in: [Configurator](#badge), [Tones](#badge), [Counters](#badge) and
|
|
16954
|
+
| `tone` | `BadgeTone`<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | `"neutral"` | What the badge stands for. There is always a word beside it: a colour on its own is not a statement.<br>Shown in: [Configurator](#badge), [Tones](#badge), [Counters](#badge) and 20 more |
|
|
16797
16955
|
| `pill` | `boolean` | `false` | Fully rounded pill shape - for counters and key figures. The default is the slightly rounded badge shape for status labels.<br>Shown in: [Configurator](#badge), [Counters](#badge), [Fold the body (Card)](#card) and 1 more |
|
|
16798
16956
|
| `ref` | `Ref<HTMLSpanElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [An anchored surface (Popover)](#popover), [Take the width of the trigger (Popover)](#popover) and 2 more |
|
|
16799
16957
|
|
|
@@ -16815,7 +16973,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
16815
16973
|
- It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
|
|
16816
16974
|
- It counts nothing itself: capping at “99+” is yours.
|
|
16817
16975
|
|
|
16818
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16976
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16819
16977
|
|
|
16820
16978
|
### Tag
|
|
16821
16979
|
|
|
@@ -17082,7 +17240,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
17082
17240
|
- No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
|
|
17083
17241
|
- Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
|
|
17084
17242
|
|
|
17085
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17243
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17086
17244
|
|
|
17087
17245
|
### Stat
|
|
17088
17246
|
|
|
@@ -17918,7 +18076,7 @@ type Severity = "warning" | "alarm";
|
|
|
17918
18076
|
- No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
|
|
17919
18077
|
- It fetches and polls nothing: freshness is judged from the `asOf` you give it.
|
|
17920
18078
|
|
|
17921
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
18079
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17922
18080
|
|
|
17923
18081
|
### Meter
|
|
17924
18082
|
|
|
@@ -18088,7 +18246,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
18088
18246
|
|
|
18089
18247
|
- No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
|
|
18090
18248
|
|
|
18091
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
18249
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
18092
18250
|
|
|
18093
18251
|
### Sparkline
|
|
18094
18252
|
|
|
@@ -18346,7 +18504,7 @@ Also takes every attribute of `<span>`.
|
|
|
18346
18504
|
|
|
18347
18505
|
- No axes, labels, tooltip or points to hover: the value stands beside it.
|
|
18348
18506
|
|
|
18349
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
18507
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.44.0/docs/adr/0032-what-umriss-is-not.md).
|
|
18350
18508
|
|
|
18351
18509
|
## API index
|
|
18352
18510
|
|
|
@@ -18474,6 +18632,12 @@ Used on [CommandPalette](#commandpalette).
|
|
|
18474
18632
|
|
|
18475
18633
|
Used on [Scenarios](#scenarios), [Modal](#modal) and [ConfirmDialog](#confirmdialog).
|
|
18476
18634
|
|
|
18635
|
+
##### `ContextMenu`
|
|
18636
|
+
|
|
18637
|
+
[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.
|
|
18638
|
+
|
|
18639
|
+
Used on [ContextMenu](#contextmenu).
|
|
18640
|
+
|
|
18477
18641
|
##### `ControlSizeProvider`
|
|
18478
18642
|
|
|
18479
18643
|
[Sizes](#sizes) – Sets the size of the controls inside it - every control with `size` takes
|
|
@@ -18642,7 +18806,7 @@ Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [IconButton]
|
|
|
18642
18806
|
|
|
18643
18807
|
##### `MenuItem`
|
|
18644
18808
|
|
|
18645
|
-
[Menu](#menu) – An entry of a `Menu` or a
|
|
18809
|
+
[Menu](#menu) – An entry of a `Menu` or a `ContextMenu`. It runs `onSelect` and closes the
|
|
18646
18810
|
menu.
|
|
18647
18811
|
|
|
18648
18812
|
Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [IconButton](#iconbutton), [ButtonGroup](#buttongroup), [Menu](#menu) and [ContextMenu](#contextmenu).
|
|
@@ -18901,10 +19065,16 @@ Used on [Scenarios](#scenarios), [IconButton](#iconbutton), [Toast](#toast-1), [
|
|
|
18901
19065
|
##### `TreeSearch`
|
|
18902
19066
|
|
|
18903
19067
|
[TreeView](#treeview) – The search field of a tree: an `Input` that writes into the tree's search
|
|
18904
|
-
text, so that the
|
|
19068
|
+
text, so that the `TreeView` filters on it.
|
|
18905
19069
|
|
|
18906
19070
|
Used on [TreeView](#treeview).
|
|
18907
19071
|
|
|
19072
|
+
##### `TreeView`
|
|
19073
|
+
|
|
19074
|
+
[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.
|
|
19075
|
+
|
|
19076
|
+
Used on [Scenarios](#scenarios), [TreeView](#treeview) and [Benchmark](#benchmark).
|
|
19077
|
+
|
|
18908
19078
|
##### `UmrissProvider`
|
|
18909
19079
|
|
|
18910
19080
|
[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.
|
|
@@ -18934,7 +19104,7 @@ Used on [CommandPalette](#commandpalette).
|
|
|
18934
19104
|
|
|
18935
19105
|
##### `useContextMenuTrigger`
|
|
18936
19106
|
|
|
18937
|
-
Opens a
|
|
19107
|
+
Opens a `ContextMenu` the same way on every device: on a right-click (at the
|
|
18938
19108
|
pointer), on the context-menu key or Shift+F10 (at the target's box) and on
|
|
18939
19109
|
a long press with a finger (at the finger), which is the only way on iOS.
|
|
18940
19110
|
`open` receives the point to pass on as the menu's `position`.
|
|
@@ -19055,7 +19225,7 @@ restored from a link.
|
|
|
19055
19225
|
|
|
19056
19226
|
- `roots` – The top-level nodes, in your own type.
|
|
19057
19227
|
- `options` – How a node is read, and the initial or controlled state with its change handlers.
|
|
19058
|
-
- Returns The tree to hand to
|
|
19228
|
+
- Returns The tree to hand to `TreeView` and `TreeSearch`.
|
|
19059
19229
|
|
|
19060
19230
|
```ts
|
|
19061
19231
|
function useTree<K, S extends Key = string>(roots: readonly K[], options: TreeOptions<K, S>): Tree<K, S>;
|
|
@@ -19182,23 +19352,6 @@ is then enough.
|
|
|
19182
19352
|
function cadence(ages: FreshnessAges): number;
|
|
19183
19353
|
```
|
|
19184
19354
|
|
|
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
19355
|
##### `createLongPress`
|
|
19203
19356
|
|
|
19204
19357
|
The one long-press detector, a plain function over pointer events so that
|
|
@@ -19304,18 +19457,6 @@ actually expanded.
|
|
|
19304
19457
|
function treeModel<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>): readonly FlatteningEntry<K, S>[];
|
|
19305
19458
|
```
|
|
19306
19459
|
|
|
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
|
-
|
|
19319
19460
|
##### `verdictWeight`
|
|
19320
19461
|
|
|
19321
19462
|
How heavily a verdict weighs - for sorting and comparing, as when a matrix
|
|
@@ -20542,7 +20683,10 @@ Everything the library puts out as text.
|
|
|
20542
20683
|
| `unpinHint` *required* | `string` | — | |
|
|
20543
20684
|
| `exportLabel` *required* | `string` | — | The export button. |
|
|
20544
20685
|
| `exportPageLabel` *required* | `string` | — | The export button of a table in server mode, which holds and writes one page. |
|
|
20686
|
+
| `exporting` *required* | `string` | — | The status while the application prepares an export of every match. |
|
|
20687
|
+
| `exportFailed` *required* | `string` | — | The alert beside the export button when preparing the export failed without a message. |
|
|
20545
20688
|
| `exportFileName` *required* | `string` | — | The export's file name, where the application names none. |
|
|
20689
|
+
| `exportSheetName` *required* | `string` | — | The name of the sheet an XLSX export holds. |
|
|
20546
20690
|
| `tableSearchPlaceholder` *required* | `string` | — | Placeholder and accessible name of the search field. |
|
|
20547
20691
|
| `tableSearchLabel` *required* | `string` | — | |
|
|
20548
20692
|
| `filterColumn` *required* | `(column: string) => string` | — | The filter button of a column: "Filter Region". |
|
|
@@ -20590,10 +20734,14 @@ Everything the library puts out as text.
|
|
|
20590
20734
|
| `levelColumn` *required* | `string` | — | The first column of a tree's export. |
|
|
20591
20735
|
| `pathRow` *required* | `string` | — | A row shown only because a descendant matches the search or a filter. |
|
|
20592
20736
|
| `footerTopLevel` *required* | `string` | — | The footer of a tree: it sums the top level, since a parent holds its children. |
|
|
20737
|
+
| `footerOfMatches` *required* | `string` | — | The footer of a server-mode table: its sums come from the server and cover every match, not the page. Read out only. |
|
|
20593
20738
|
| `selectGroup` *required* | `(name: string) => string` | — | The box that selects every row of a group. |
|
|
20594
20739
|
| `calendarWeek` *required* | `(week: number, year: number) => string` | — | A group of the week key: "Week 42, 2026". |
|
|
20595
20740
|
| `entries` *required* | `(count: number, formatted: string) => string` | — | "128 entries" in the pagination bar; the plural belongs to the language. |
|
|
20596
20741
|
| `selectedCount` *required* | `(count: number, formatted: string) => string` | — | "3 selected" in the pagination bar and the table toolbar. |
|
|
20742
|
+
| `selectedOnPage` *required* | `(count: number, formatted: string) => string` | — | The first sentence of the offer in a server-mode table, once the page is ticked: "All 50 on this page are selected." |
|
|
20743
|
+
| `selectAllMatching` *required* | `(count: number, formatted: string) => string` | — | The button after it, for the rows the server holds: "Select all 12,400 that match". |
|
|
20744
|
+
| `allMatchingSelected` *required* | `(count: number, formatted: string) => string` | — | The line once they are selected: "All 12,400 that match are selected." |
|
|
20597
20745
|
| `copiedRows` *required* | `(count: number, formatted: string) => string` | — | Said to a screen reader after Ctrl+C copied rows: "3 rows copied". |
|
|
20598
20746
|
| `copiedCell` *required* | `string` | — | Said after Ctrl+C copied the active cell of a grid. |
|
|
20599
20747
|
| `copyFailed` *required* | `string` | — | Said when the clipboard refused or is not there. |
|
|
@@ -20612,6 +20760,7 @@ Everything the library puts out as text.
|
|
|
20612
20760
|
| `rangeTo` *required* | `(to: string) => string` | — | |
|
|
20613
20761
|
| `rangeInvalid` *required* | `string` | — | When "From" lies behind "To". The condition stays the last valid one. |
|
|
20614
20762
|
| `resetAll` *required* | `string` | — | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
20763
|
+
| `tryAgain` *required* | `string` | — | The button under a server-mode table's error that sends the request once more. |
|
|
20615
20764
|
| `filteredOfTotal` *required* | `(matches: string, total: string) => string` | — | "43 of 1.204" - the numbers come from the formats. |
|
|
20616
20765
|
| `verdictOk` *required* | `string` | — | The four outcomes of an assessment, as a word beside the value. Colour alone carries no meaning - the word stands here for that reason.<br>Shown in: [Replace single entries (Language)](#language) |
|
|
20617
20766
|
| `verdictWarning` *required* | `string` | — | <br>Shown in: [Replace single entries (Language)](#language) |
|