@umriss-ui/core 0.48.0 → 0.50.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 +45 -0
- package/README.md +12 -8
- package/dist/core.css +1 -1
- package/dist/core.js +3970 -3865
- package/dist/de.d.ts +26 -0
- package/dist/formats-dd9LbvXt.js +102 -0
- package/dist/index.d.ts +48 -7
- package/dist/touch-scale.css +9 -4
- package/dist/wording/de.js +26 -11
- package/docs/llms-full.md +283 -78
- package/package.json +3 -3
- package/dist/formats-Bo0qM01D.js +0 -97
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.50.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
|
|
|
@@ -2694,6 +2694,8 @@ The command installs the package alone: React 19 or newer is its only peer and s
|
|
|
2694
2694
|
|
|
2695
2695
|
Colours, sizes, fonts and light and dark are tokens, `--u-…` custom properties you override with ordinary CSS: [Theming](#theming) lists them. The fonts are the application's: the tokens name Geist first and fall back to the system fonts, and nothing is loaded. For Geist, install `@fontsource/geist-sans` (400, 500, 600) and `@fontsource/geist-mono` (400).
|
|
2696
2696
|
|
|
2697
|
+
**Touch.** Under a finger (a coarse primary pointer) hit areas are at least 24 × 24 px, a field's text is 16 px and behaviours follow the gesture; a `md` control stays 32 px and a `sm` one 26 px. To grow them to 44 px, the height WCAG 2.5.5 names, import `@umriss-ui/core/touch-scale.css` once, anywhere in the entry file: before or after core's own styles makes no difference. Every `md` and `sm` control grows with it - buttons, fields, selects, Tabs, and the table's toolbar, pagination and row actions and the alarms' Acknowledge and Shelve buttons. What does not grow: `xs`, menu rows, calendar days, checkboxes, switches and radios; they keep their size and their 24 × 24 px hit areas ([ADR-0079](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0079-the-size-is-the-applications-the-hit-area-the-librarys.md)).
|
|
2698
|
+
|
|
2697
2699
|
#### Examples
|
|
2698
2700
|
|
|
2699
2701
|
##### First component
|
|
@@ -2725,7 +2727,7 @@ From `ButtonProps` — the full table stands on [Button](#button).
|
|
|
2725
2727
|
- No font is loaded or bundled.
|
|
2726
2728
|
- Chrome 123, Firefox 120 and Safari 17.5 or newer; an older browser discards the tokens and shows the components unstyled.
|
|
2727
2729
|
|
|
2728
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2730
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2729
2731
|
|
|
2730
2732
|
### UmrissProvider
|
|
2731
2733
|
|
|
@@ -2936,7 +2938,7 @@ type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "
|
|
|
2936
2938
|
|
|
2937
2939
|
- No theme and no default variants for components: a component is configured by its own props.
|
|
2938
2940
|
|
|
2939
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2941
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2940
2942
|
|
|
2941
2943
|
## Customising
|
|
2942
2944
|
|
|
@@ -2950,6 +2952,8 @@ The library writes its CSS in three cascade layers, `umriss.tokens`, `umriss.bas
|
|
|
2950
2952
|
|
|
2951
2953
|
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.
|
|
2952
2954
|
|
|
2955
|
+
**A lowered build keeps a JavaScript dark mode light.** A mode set in CSS works in every build. Where a build lowers `light-dark()` (Vite 8 and Next 16 by default), a mode set only from JavaScript or through a variable - next-themes, MUI, Mantine, an inline `style` - stays light. Then write one rule such as `[data-theme="dark"] { color-scheme: dark; }`, or raise the CSS target to the browser floor: Vite `build: { cssTarget: ["chrome123", "firefox120", "safari17.5"] }`, Next a `browserslist` in `package.json` (`"chrome >= 123", "firefox >= 120", "safari >= 17.5"`). In development core warns once when it sees this.
|
|
2956
|
+
|
|
2953
2957
|
Style through tokens only. The tokens in the table are the styling API and change only with an entry in the changelog; the `data-*` attributes and class names in the components' markup are internal and may change in any version ([ADR-0045](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0045-tokens-are-the-styling-api-data-attributes-are-not.md)). Where no token reaches what you want to change, ask for one: a selector on the markup breaks without warning.
|
|
2954
2958
|
|
|
2955
2959
|
#### Examples
|
|
@@ -3215,9 +3219,9 @@ One look for every component. A soft glow would read as a second, shadowy border
|
|
|
3215
3219
|
| `--u-radius-lg` | `12px` | same | — |
|
|
3216
3220
|
| `--u-radius-xl` | `18px` | same | One step above the card, for the command palette. It is meant to be a system window and not a form panel, and the radius plays its part in that. Both themes share it - shape is not a question of theme. The sequence 4-6-8-12-18 continues the factor of 1.5 of the steps above. |
|
|
3217
3221
|
| `--u-radius-full` | `999px` | same | — |
|
|
3218
|
-
| `--u-control-height` | `
|
|
3219
|
-
| `--u-control-height-sm` | `
|
|
3220
|
-
| `--u-control-height-xs` | `
|
|
3222
|
+
| `--u-control-height` | `2rem` | same | — |
|
|
3223
|
+
| `--u-control-height-sm` | `1.625rem` | same | — |
|
|
3224
|
+
| `--u-control-height-xs` | `1.125rem` | same | The small control on a dense surface - a compact table's row draft and actions (`dense` in the shared own styles). |
|
|
3221
3225
|
| `--u-icon-size` | `14px` | same | The icon in a button, beside a label or alone (CONTEXT.md, "Icon"): the button decides its size, one step per control height. |
|
|
3222
3226
|
| `--u-icon-size-sm` | `12px` | same | — |
|
|
3223
3227
|
| `--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. |
|
|
@@ -3423,7 +3427,7 @@ From `BadgeProps` — the full table stands on [Badge](#badge).
|
|
|
3423
3427
|
- 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.
|
|
3424
3428
|
- 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`.
|
|
3425
3429
|
|
|
3426
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3430
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3427
3431
|
|
|
3428
3432
|
### Sizes
|
|
3429
3433
|
|
|
@@ -3841,7 +3845,7 @@ type ControlSize = "sm" | "md";
|
|
|
3841
3845
|
- 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).
|
|
3842
3846
|
- 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)`.
|
|
3843
3847
|
|
|
3844
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3848
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3845
3849
|
|
|
3846
3850
|
### Language
|
|
3847
3851
|
|
|
@@ -4094,6 +4098,55 @@ export default function OwnComponents() {
|
|
|
4094
4098
|
}
|
|
4095
4099
|
```
|
|
4096
4100
|
|
|
4101
|
+
##### A third language, notation first
|
|
4102
|
+
|
|
4103
|
+
[`formatsFor`](#api-index-1) builds the notation of any locale the runtime knows: Swiss French dates and numbers, and a week that starts on Sunday where your users' calendars do. The words stay English until you hand over a `Wording` of your own.
|
|
4104
|
+
|
|
4105
|
+
```tsx
|
|
4106
|
+
import { useState } from "react";
|
|
4107
|
+
import { DatePicker, FormField, Grid, LanguageProvider, NumberInput, Stack, Text, formatsFor } from "@umriss-ui/core";
|
|
4108
|
+
|
|
4109
|
+
/* Outside the component, so the provider does not rebuild on every render.
|
|
4110
|
+
`weekStart` is ISO-numbered: 7 is Sunday. */
|
|
4111
|
+
const SWISS_FRENCH = { ...formatsFor("fr-CH"), weekStart: 7 };
|
|
4112
|
+
|
|
4113
|
+
function Surface() {
|
|
4114
|
+
const [date, setDate] = useState<Date | null>(new Date(2026, 2, 18));
|
|
4115
|
+
const [weight, setWeight] = useState<number | null>(1284.5);
|
|
4116
|
+
return (
|
|
4117
|
+
<Stack gap={3}>
|
|
4118
|
+
<FormField label="Delivery date">
|
|
4119
|
+
<DatePicker value={date} onChange={setDate} />
|
|
4120
|
+
</FormField>
|
|
4121
|
+
<FormField label="Weight">
|
|
4122
|
+
<NumberInput value={weight} onChange={setWeight} decimals={1} suffix="kg" />
|
|
4123
|
+
</FormField>
|
|
4124
|
+
</Stack>
|
|
4125
|
+
);
|
|
4126
|
+
}
|
|
4127
|
+
|
|
4128
|
+
export default function ThirdLanguage() {
|
|
4129
|
+
return (
|
|
4130
|
+
<Grid minItemWidth="240px" gap={5}>
|
|
4131
|
+
<Stack gap={2}>
|
|
4132
|
+
<Text size="xs" tone="muted">
|
|
4133
|
+
Without a provider
|
|
4134
|
+
</Text>
|
|
4135
|
+
<Surface />
|
|
4136
|
+
</Stack>
|
|
4137
|
+
<Stack gap={2}>
|
|
4138
|
+
<Text size="xs" tone="muted">
|
|
4139
|
+
formatsFor("fr-CH"), weekStart 7
|
|
4140
|
+
</Text>
|
|
4141
|
+
<LanguageProvider formats={SWISS_FRENCH}>
|
|
4142
|
+
<Surface />
|
|
4143
|
+
</LanguageProvider>
|
|
4144
|
+
</Stack>
|
|
4145
|
+
</Grid>
|
|
4146
|
+
);
|
|
4147
|
+
}
|
|
4148
|
+
```
|
|
4149
|
+
|
|
4097
4150
|
#### Wording
|
|
4098
4151
|
|
|
4099
4152
|
Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of `GERMAN_WORDING`. A function entry receives the parameters its key names and returns the sentence beside it. Override any entry by its key; a `presets` entry inside `presets`.
|
|
@@ -4234,6 +4287,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4234
4287
|
|---|---|---|---|
|
|
4235
4288
|
| `columns` | Columns | Spalten | The column menu's button. |
|
|
4236
4289
|
| `arrangeColumns` | Show, hide and arrange columns | Spalten ein- und ausblenden, anordnen | Accessible name of the list in the column menu. |
|
|
4290
|
+
| `fitAllColumns` | Fit all columns | Alle Spalten anpassen | The column menu's button that sets every column to the width of its content. |
|
|
4237
4291
|
| `columnForward(column)` | `` `Move ${column} forward` `` | `` `${column} nach vorn` `` | The two buttons that move a column in the column menu. |
|
|
4238
4292
|
| `columnBackward(column)` | `` `Move ${column} backward` `` | `` `${column} nach hinten` `` | — |
|
|
4239
4293
|
| `pinColumnToStart(column)` | `` `Pin ${column} to start` `` | `` `${column} am Anfang fixieren` `` | The column menu's pin keys: to a side, and back when it is pinned there. |
|
|
@@ -4323,6 +4377,18 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4323
4377
|
| `rangeFrom(from)` | `` `from ${from}` `` | `` `ab ${from}` `` | — |
|
|
4324
4378
|
| `rangeTo(to)` | `` `to ${to}` `` | `` `bis ${to}` `` | — |
|
|
4325
4379
|
| `rangeInvalid` | “From” lies after “To”. | „Von“ liegt hinter „Bis“. | When "From" lies behind "To". The condition stays the last valid one. |
|
|
4380
|
+
| `textContains` | contains | enthält | The text filter: its operators, as the choice and in the condition. |
|
|
4381
|
+
| `textNotContains` | does not contain | enthält nicht | — |
|
|
4382
|
+
| `textStartsWith` | starts with | beginnt mit | — |
|
|
4383
|
+
| `textEndsWith` | ends with | endet mit | — |
|
|
4384
|
+
| `textEquals` | equals | ist gleich | — |
|
|
4385
|
+
| `textIsEmpty` | is empty | ist leer | — |
|
|
4386
|
+
| `textAnd` | and | und | What joins the two terms of a text condition: the choice and the word between them. |
|
|
4387
|
+
| `textOr` | or | oder | — |
|
|
4388
|
+
| `filterOperator` | Operator | Operator | The labels of the operator and the value fields of a term. |
|
|
4389
|
+
| `filterValue` | Value | Wert | — |
|
|
4390
|
+
| `filterJoin` | Join | Verknüpfung | The name of the choice between AND and OR. |
|
|
4391
|
+
| `textTerm(operator, value)` | `` `${operator} “${value}”` `` | `` `${operator} „${value}“` `` | A term with a value in the toolbar: `starts with “foo”`. |
|
|
4326
4392
|
| `resetAll` | Reset | Zurücksetzen | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
4327
4393
|
| `tryAgain` | Try again | Erneut versuchen | The button under a server-mode table's error that sends the request once more. |
|
|
4328
4394
|
| `filteredOfTotal(matches, total)` | `` `${matches} of ${total}` `` | `` `${matches} von ${total}` `` | "43 of 1.204" - the numbers come from the formats. |
|
|
@@ -4373,6 +4439,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4373
4439
|
| `dropFiles` | or drop them here | oder hier ablegen | — |
|
|
4374
4440
|
| `removeFile(name)` | `` `Remove ${name}` `` | `` `${name} entfernen` `` | The cross beside a chosen file. |
|
|
4375
4441
|
| `fileNotAccepted(name)` | `` `${name} is not an accepted type` `` | `` `${name} ist kein zugelassener Dateityp` `` | A dropped file the input's `accept` does not take. |
|
|
4442
|
+
| `numberRefused` | Only digits and the decimal separator | Nur Ziffern und das Dezimaltrennzeichen | A NumberInput refusing a character it cannot read. |
|
|
4376
4443
|
| `show` | Show | Einblenden | — |
|
|
4377
4444
|
| `hide` | Hide | Ausblenden | — |
|
|
4378
4445
|
| `moreActions` | More actions | Weitere Aktionen | — |
|
|
@@ -4400,6 +4467,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4400
4467
|
| `scheduleUnfoldGroup` | Unfold group | Gruppe ausklappen | — |
|
|
4401
4468
|
| `scheduleLaneCount(count)` | `` (count === 1 ? "1 lane" : `${count} lanes`) `` | `` (count === 1 ? "1 Bahn" : `${count} Bahnen`) `` | How many lanes a group holds, beside its name in the header. |
|
|
4402
4469
|
| `scheduleRoleDescription` | schedule | Belegungsplan | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
|
|
4470
|
+
| `schedulePlotName(label)` | `` `${label}, plot` `` | `` `${label}, Diagramm` `` | The plot's own name, beside the figure that carries the caller's `aria-label`, so the caller's name is not heard twice. |
|
|
4403
4471
|
| `scheduleSummary(summary)` | `` `${lanes === 1 ? "1 lane" : `${lanes} lanes`}, ${subtasks === 1 ? "1 subtask" : `${subtasks} subtasks`} in view from ${from} to ${to}. ` + `${overlaps === 1 ? "1 overlap" : `${overlaps} overlaps`}, ${violated === 1 ? "1 violated dependency" : `${violated} violated dependencies`}` + (blocked === 0 ? "." : `, ${blocked === 1 ? "1 subtask" : `${blocked} subtasks`} in blocked time.`) + (milestones === 0 ? "" : ` ${milestones === 1 ? "1 milestone" : `${milestones} milestones`}.`) `` | `` `${lanes === 1 ? "1 Bahn" : `${lanes} Bahnen`}, ${subtasks === 1 ? "1 Teilaufgabe" : `${subtasks} Teilaufgaben`} im Blick von ${from} bis ${to}. ` + `${overlaps === 1 ? "1 Überschneidung" : `${overlaps} Überschneidungen`}, ${violated === 1 ? "1 verletzte Abhängigkeit" : `${violated} verletzte Abhängigkeiten`}` + (blocked === 0 ? "." : `, ${blocked === 1 ? "1 Teilaufgabe in einer Sperrzeit" : `${blocked} Teilaufgaben in Sperrzeiten`}.`) + (milestones === 0 ? "" : ` ${milestones === 1 ? "1 Meilenstein" : `${milestones} Meilensteine`}.`) `` | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
|
|
4404
4472
|
| `scheduleVisibleRange(from, to)` | `` `From ${from} to ${to}.` `` | `` `Von ${from} bis ${to}.` `` | The span in view, said after a zoom key. |
|
|
4405
4473
|
| `scheduleKeyHelp` | Left and right arrows move along the lane, up and down change the lane, Home and End go to its first and last, Page Up and Page Down jump a tenth of the view. Plus zooms in, minus zooms out, zero fits all the work. Right bracket or T follows a dependency out, left bracket or Shift and T goes back. Space or Enter selects. Alt with left or right proposes a move, Alt and Shift a new end. Escape clears. | Pfeil links und rechts gehen die Bahn entlang, Pfeil hoch und runter wechseln die Bahn, Pos1 und Ende springen zur ersten und letzten Teilaufgabe, Bild auf und Bild ab springen ein Zehntel der Ansicht. Plus zoomt hinein, Minus zoomt heraus, Null zeigt die gesamte Arbeit. Schließende eckige Klammer oder T folgt einer Abhängigkeit hinaus, öffnende eckige Klammer oder Umschalt und T geht zurück. Leertaste oder Eingabe wählt aus. Alt mit Pfeil links oder rechts schlägt eine Verschiebung vor, Alt und Umschalt ein neues Ende. Escape lässt die aktive Teilaufgabe los. | The keys that walk the plot, select and edit - read after the summary. |
|
|
@@ -4556,7 +4624,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4556
4624
|
|
|
4557
4625
|
#### Charts wording
|
|
4558
4626
|
|
|
4559
|
-
Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes through its `wording` prop: the English of `DEFAULT_CHARTS_WORDING` beside the German of `GERMAN_CHARTS_WORDING`, imported from `@umriss-ui/charts/wording/de`.
|
|
4627
|
+
Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes through its `wording` prop: the English of `DEFAULT_CHARTS_WORDING` beside the German of `GERMAN_CHARTS_WORDING`, imported from `@umriss-ui/charts/wording/de`. One `ChartsWordingProvider` from `@umriss-ui/charts` at the root sets it for every chart below, also one inside a dashboard widget; a chart's own `wording` wins. An app with both packages sets both providers, `LanguageProvider` for core and `ChartsWordingProvider` for the charts.
|
|
4560
4628
|
|
|
4561
4629
|
| Key | English | German | Description |
|
|
4562
4630
|
|---|---|---|---|
|
|
@@ -4611,6 +4679,7 @@ Every entry of `Formats`: `DEFAULT_FORMATS` beside `GERMAN_FORMATS`. Each set as
|
|
|
4611
4679
|
| `month(d)` | March 2026 | März 2026 | The calendar's month header: March 2026 |
|
|
4612
4680
|
| `monthName(d)` | March | März | The month alone, in the calendar head's month list: March |
|
|
4613
4681
|
| `dateLong(d)` | Tuesday, 17 March 2026 | Dienstag, 17. März 2026 | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
|
|
4682
|
+
| `weekStart` | Monday | Monday | The first day of the calendars' week, ISO-numbered: 1 = Monday ... 7 = Sunday. |
|
|
4614
4683
|
| `time(d, withSeconds)` | 09:05 | 09:05 | Time of day, optionally with seconds: 09:05 or 09:05:03 |
|
|
4615
4684
|
| `dateTime(d, withSeconds)` | 17/03/2026, 09:05 | 17.03.2026, 09:05 | Date and time together: 17/03/2026, 09:05 |
|
|
4616
4685
|
| `offset(d)` | GMT+1 | GMT+1 | Short form of the UTC offset: GMT+2 |
|
|
@@ -4635,7 +4704,7 @@ The keys of [Button](#button), [NumberInput](#numberinput), [Combobox](#combobox
|
|
|
4635
4704
|
|
|
4636
4705
|
| Prop | Type | Default | Description |
|
|
4637
4706
|
|---|---|---|---|
|
|
4638
|
-
| `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)).<br>Shown in: [German](#language), [English and German side by side](#language), [Write numbers in your own notation](#language) and
|
|
4707
|
+
| `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)).<br>Shown in: [German](#language), [English and German side by side](#language), [Write numbers in your own notation](#language) and 4 more |
|
|
4639
4708
|
| `wording` | `Partial<Omit<``Wording``, "presets">> & { presets?: Partial<``Wording``["presets"]> }` | — | The presets are a register of their own and are likewise overridden entry by entry.<br>Shown in: [German](#language), [English and German side by side](#language), [Replace single entries](#language) and 2 more |
|
|
4640
4709
|
|
|
4641
4710
|
##### Types on this page
|
|
@@ -4654,6 +4723,7 @@ Everything the library knows about formatting.
|
|
|
4654
4723
|
| `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
|
|
4655
4724
|
| `monthName` *required* | `(d: Date) => string` | — | The month alone, in the calendar head's month list: March |
|
|
4656
4725
|
| `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
|
|
4726
|
+
| `weekStart` *required* | `number` | — | The first day of the calendars' week, ISO-numbered: 1 = Monday ... 7 = Sunday. |
|
|
4657
4727
|
| `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
|
|
4658
4728
|
| `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 |
|
|
4659
4729
|
| `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
|
|
@@ -4770,6 +4840,7 @@ Everything the library puts out as text.
|
|
|
4770
4840
|
| `filterDone` *required* | `string` | — | |
|
|
4771
4841
|
| `columns` *required* | `string` | — | The column menu's button. |
|
|
4772
4842
|
| `arrangeColumns` *required* | `string` | — | Accessible name of the list in the column menu. |
|
|
4843
|
+
| `fitAllColumns` *required* | `string` | — | The column menu's button that sets every column to the width of its content. |
|
|
4773
4844
|
| `columnForward` *required* | `(column: string) => string` | — | The two buttons that move a column in the column menu. |
|
|
4774
4845
|
| `columnBackward` *required* | `(column: string) => string` | — | |
|
|
4775
4846
|
| `pinColumnToStart` *required* | `(column: string) => string` | — | The column menu's pin keys: to a side, and back when it is pinned there. |
|
|
@@ -4859,6 +4930,18 @@ Everything the library puts out as text.
|
|
|
4859
4930
|
| `rangeFrom` *required* | `(from: string) => string` | — | |
|
|
4860
4931
|
| `rangeTo` *required* | `(to: string) => string` | — | |
|
|
4861
4932
|
| `rangeInvalid` *required* | `string` | — | When "From" lies behind "To". The condition stays the last valid one. |
|
|
4933
|
+
| `textContains` *required* | `string` | — | The text filter: its operators, as the choice and in the condition. |
|
|
4934
|
+
| `textNotContains` *required* | `string` | — | |
|
|
4935
|
+
| `textStartsWith` *required* | `string` | — | |
|
|
4936
|
+
| `textEndsWith` *required* | `string` | — | |
|
|
4937
|
+
| `textEquals` *required* | `string` | — | |
|
|
4938
|
+
| `textIsEmpty` *required* | `string` | — | |
|
|
4939
|
+
| `textAnd` *required* | `string` | — | What joins the two terms of a text condition: the choice and the word between them. |
|
|
4940
|
+
| `textOr` *required* | `string` | — | |
|
|
4941
|
+
| `filterOperator` *required* | `string` | — | The labels of the operator and the value fields of a term. |
|
|
4942
|
+
| `filterValue` *required* | `string` | — | |
|
|
4943
|
+
| `filterJoin` *required* | `string` | — | The name of the choice between AND and OR. |
|
|
4944
|
+
| `textTerm` *required* | `(operator: string, value: string) => string` | — | A term with a value in the toolbar: `starts with “foo”`. |
|
|
4862
4945
|
| `resetAll` *required* | `string` | — | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
4863
4946
|
| `tryAgain` *required* | `string` | — | The button under a server-mode table's error that sends the request once more. |
|
|
4864
4947
|
| `filteredOfTotal` *required* | `(matches: string, total: string) => string` | — | "43 of 1.204" - the numbers come from the formats. |
|
|
@@ -4899,6 +4982,7 @@ Everything the library puts out as text.
|
|
|
4899
4982
|
| `dropFiles` *required* | `string` | — | |
|
|
4900
4983
|
| `removeFile` *required* | `(name: string) => string` | — | The cross beside a chosen file. |
|
|
4901
4984
|
| `fileNotAccepted` *required* | `(name: string) => string` | — | A dropped file the input's `accept` does not take. |
|
|
4985
|
+
| `numberRefused` *required* | `string` | — | A NumberInput refusing a character it cannot read. |
|
|
4902
4986
|
| `show` *required* | `string` | — | |
|
|
4903
4987
|
| `hide` *required* | `string` | — | |
|
|
4904
4988
|
| `moreActions` *required* | `string` | — | |
|
|
@@ -4921,6 +5005,7 @@ Everything the library puts out as text.
|
|
|
4921
5005
|
| `scheduleUnfoldGroup` *required* | `string` | — | |
|
|
4922
5006
|
| `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
|
|
4923
5007
|
| `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
|
|
5008
|
+
| `schedulePlotName` *required* | `(label: string) => string` | — | The plot's own name, beside the figure that carries the caller's `aria-label`, so the caller's name is not heard twice. |
|
|
4924
5009
|
| `scheduleSummary` *required* | `(summary: { lanes: number; subtasks: number; from: string; to: string; overlaps: number; violated: number; /** Subtasks in blocked time; said only where there are any. */ blocked: number; /** Milestones of the plan; said only where there are any. */ milestones: number; }) => string` | — | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
|
|
4925
5010
|
| `scheduleVisibleRange` *required* | `(from: string, to: string) => string` | — | The span in view, said after a zoom key. |
|
|
4926
5011
|
| `scheduleKeyHelp` *required* | `string` | — | The keys that walk the plot, select and edit - read after the summary. |
|
|
@@ -5057,10 +5142,10 @@ Everything the library puts out as text.
|
|
|
5057
5142
|
|
|
5058
5143
|
#### Known limits
|
|
5059
5144
|
|
|
5060
|
-
- 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.
|
|
5145
|
+
- 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.50.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
5061
5146
|
- It holds only what the components say themselves; your labels, titles and data are yours to translate.
|
|
5062
5147
|
|
|
5063
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5148
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5064
5149
|
|
|
5065
5150
|
## Layout
|
|
5066
5151
|
|
|
@@ -5363,7 +5448,7 @@ The keys of [Button](#button) apply here.
|
|
|
5363
5448
|
| Prop | Type | Default | Description |
|
|
5364
5449
|
|---|---|---|---|
|
|
5365
5450
|
| `direction` | `"row" \| "column"` | `"column"` | Below one another or beside one another. Below is the direction content stands in anyway, without being asked.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [Wrapping](#stack-and-grid) and 71 more |
|
|
5366
|
-
| `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
|
|
5451
|
+
| `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 176 more |
|
|
5367
5452
|
| `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 81 more |
|
|
5368
5453
|
| `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 |
|
|
5369
5454
|
| `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 |
|
|
@@ -5376,8 +5461,8 @@ Also takes every attribute of `<div>`.
|
|
|
5376
5461
|
| Prop | Type | Default | Description |
|
|
5377
5462
|
|---|---|---|---|
|
|
5378
5463
|
| `columns` | `number \| readonly ``GridColumnWidth``[]` | `2` | How many columns, all of one width - or a list with one width per column: a number in pixels, or `"fill"` for a share of what is left. Overridden by minItemWidth.<br>Shown in: [Fixed columns](#stack-and-grid), [Columns of their own widths](#stack-and-grid), [A token for one region (Theming)](#theming) and 5 more |
|
|
5379
|
-
| `minItemWidth` | `string` | — | Responsive: as many columns as fit at this minimum width; wins over `columns`, a list included.<br>Shown in: [Columns by width](#stack-and-grid), [A tour summary](#stack-and-grid), [A dark region (Theming)](#theming) and
|
|
5380
|
-
| `gap` | `SpaceStep`<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions.<br>Shown in: [Fixed columns](#stack-and-grid), [Columns by width](#stack-and-grid), [Columns of their own widths](#stack-and-grid) and
|
|
5464
|
+
| `minItemWidth` | `string` | — | Responsive: as many columns as fit at this minimum width; wins over `columns`, a list included.<br>Shown in: [Columns by width](#stack-and-grid), [A tour summary](#stack-and-grid), [A dark region (Theming)](#theming) and 53 more |
|
|
5465
|
+
| `gap` | `SpaceStep`<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions.<br>Shown in: [Fixed columns](#stack-and-grid), [Columns by width](#stack-and-grid), [Columns of their own widths](#stack-and-grid) and 60 more |
|
|
5381
5466
|
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
5382
5467
|
|
|
5383
5468
|
Also takes every attribute of `<div>`.
|
|
@@ -5407,7 +5492,7 @@ type GridColumnWidth = number | "fill";
|
|
|
5407
5492
|
- No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
|
|
5408
5493
|
- 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)).
|
|
5409
5494
|
|
|
5410
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5495
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5411
5496
|
|
|
5412
5497
|
### Divider
|
|
5413
5498
|
|
|
@@ -6232,7 +6317,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
|
|
|
6232
6317
|
- 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)).
|
|
6233
6318
|
- It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
|
|
6234
6319
|
|
|
6235
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6320
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6236
6321
|
|
|
6237
6322
|
## Typography
|
|
6238
6323
|
|
|
@@ -6590,9 +6675,9 @@ export default function IncidentSummary() {
|
|
|
6590
6675
|
| Prop | Type | Default | Description |
|
|
6591
6676
|
|---|---|---|---|
|
|
6592
6677
|
| `as` | `ElementType` | `"p"` | Element to render as.<br>Shown in: [Tones and weights](#typography-2), [Set an incident summary](#typography-2), [Use the language in your own components (Language)](#language) and 20 more |
|
|
6593
|
-
| `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
|
|
6678
|
+
| `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 138 more |
|
|
6594
6679
|
| `weight` | `TextWeight`<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#typography-2), [Tones and weights](#typography-2), [Tracking and leading](#typography-2) and 18 more |
|
|
6595
|
-
| `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
|
|
6680
|
+
| `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 100 more |
|
|
6596
6681
|
| `mono` | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers.<br>Shown in: [Configurator](#typography-2), [Numbers and identifiers](#typography-2), [Handle long values](#typography-2) and 34 more |
|
|
6597
6682
|
| `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) |
|
|
6598
6683
|
| `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) |
|
|
@@ -6668,10 +6753,10 @@ type TextLeading = "normal" | "tight";
|
|
|
6668
6753
|
#### Known limits
|
|
6669
6754
|
|
|
6670
6755
|
- No truncation and no line length: both depend on the column, which only the application knows.
|
|
6671
|
-
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6756
|
+
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
6672
6757
|
- `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
|
|
6673
6758
|
|
|
6674
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6759
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6675
6760
|
|
|
6676
6761
|
### VisuallyHidden
|
|
6677
6762
|
|
|
@@ -6795,7 +6880,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
|
|
|
6795
6880
|
|
|
6796
6881
|
- It hides from the eye only; to hide something from everyone, do not render it.
|
|
6797
6882
|
|
|
6798
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6883
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6799
6884
|
|
|
6800
6885
|
## Actions
|
|
6801
6886
|
|
|
@@ -7124,7 +7209,7 @@ type ControlSize = "sm" | "md";
|
|
|
7124
7209
|
- The label stays on one line; keep it short rather than let it wrap.
|
|
7125
7210
|
- No icon slot: an icon goes among the children, before the label, and the button sets its size.
|
|
7126
7211
|
|
|
7127
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7212
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7128
7213
|
|
|
7129
7214
|
### IconButton
|
|
7130
7215
|
|
|
@@ -7481,7 +7566,7 @@ type ControlSize = "sm" | "md";
|
|
|
7481
7566
|
- The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
|
|
7482
7567
|
- A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
|
|
7483
7568
|
|
|
7484
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7569
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7485
7570
|
|
|
7486
7571
|
### ButtonGroup
|
|
7487
7572
|
|
|
@@ -7841,7 +7926,7 @@ type ControlSize = "sm" | "md";
|
|
|
7841
7926
|
|
|
7842
7927
|
- No toggle or segmented state; a choice that stays is a radio group.
|
|
7843
7928
|
|
|
7844
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7929
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7845
7930
|
|
|
7846
7931
|
## Forms
|
|
7847
7932
|
|
|
@@ -8161,7 +8246,7 @@ Also takes every attribute of `<input>` – without `size`.
|
|
|
8161
8246
|
- No input masks or formatting while typing; check the value on leave or on submit.
|
|
8162
8247
|
- No validation of its own: the error is the application's, handed to the `FormField`.
|
|
8163
8248
|
|
|
8164
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8249
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8165
8250
|
|
|
8166
8251
|
### FormField
|
|
8167
8252
|
|
|
@@ -8412,7 +8497,7 @@ The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox),
|
|
|
8412
8497
|
|
|
8413
8498
|
| Prop | Type | Default | Description |
|
|
8414
8499
|
|---|---|---|---|
|
|
8415
|
-
| `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
|
|
8500
|
+
| `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 91 more |
|
|
8416
8501
|
| `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 37 more |
|
|
8417
8502
|
| `error` | `ReactNode` | — | Error message; it marks the field as invalid at the same time.<br>Shown in: [Configurator](#formfield), [Show an error](#formfield), [Check an invoice on submit](#formfield) and 23 more |
|
|
8418
8503
|
| `required` | `boolean` | `false` | Sets the required mark on the label and `aria-required` on the field - on Input, Select, Textarea, NumberInput, Combobox, RadioGroup and Checkbox. The triggers of the pickers and of the MultiSelect are buttons, on which `aria-required` is not a permitted attribute; there the mark carries it alone. It validates nothing - validation belongs to the caller ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).<br>Shown in: [Configurator](#formfield), [Mark a field as required](#formfield), [Check an invoice on submit](#formfield) and 10 more |
|
|
@@ -8427,7 +8512,7 @@ Also takes every attribute of `<div>`.
|
|
|
8427
8512
|
- 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.
|
|
8428
8513
|
- One field per `FormField`; a group of fields that share one label is a fieldset of your own.
|
|
8429
8514
|
|
|
8430
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8515
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8431
8516
|
|
|
8432
8517
|
### Textarea
|
|
8433
8518
|
|
|
@@ -8615,7 +8700,7 @@ Also takes every attribute of `<textarea>` – without `cols`.
|
|
|
8615
8700
|
|
|
8616
8701
|
- Plain text only: no formatting, mentions or rich text.
|
|
8617
8702
|
|
|
8618
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8703
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8619
8704
|
|
|
8620
8705
|
### NumberInput
|
|
8621
8706
|
|
|
@@ -8851,14 +8936,14 @@ export default function YearWithoutGrouping() {
|
|
|
8851
8936
|
|
|
8852
8937
|
| Prop | Type | Default | Description |
|
|
8853
8938
|
|---|---|---|---|
|
|
8854
|
-
| `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
|
|
8939
|
+
| `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 16 more |
|
|
8855
8940
|
| `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 |
|
|
8856
8941
|
| `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 |
|
|
8857
8942
|
| `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 |
|
|
8858
|
-
| `decimals` | `number` | — | Fixed decimal places; 0 = whole numbers, undefined = free.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and
|
|
8943
|
+
| `decimals` | `number` | — | Fixed decimal places; 0 = whole numbers, undefined = free.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 13 more |
|
|
8859
8944
|
| `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) |
|
|
8860
8945
|
| `prefix` | `ReactNode` | — | Adornment before the number, e.g. "±".<br>Shown in: [Units and decimals](#numberinput) |
|
|
8861
|
-
| `suffix` | `ReactNode` | — | Adornment after the number, e.g. "€" or "%".<br>Shown in: [Number field](#numberinput), [Units and decimals](#numberinput), [States](#numberinput) and
|
|
8946
|
+
| `suffix` | `ReactNode` | — | Adornment after the number, e.g. "€" or "%".<br>Shown in: [Number field](#numberinput), [Units and decimals](#numberinput), [States](#numberinput) and 10 more |
|
|
8862
8947
|
| `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) |
|
|
8863
8948
|
| `chars` | `number` | — | The width in characters - room for the number; the field adds its own padding and steppers, and the room for a `prefix` and `suffix` given as text. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and is 10 characters wide where the place asks - in a toolbar or a row.<br>Shown in: [Configurator](#numberinput), [Sized to the value (Sizes)](#sizes) |
|
|
8864
8949
|
| `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` – by hand only needed without `FormField`.<br>Shown in: [Configurator](#numberinput), [With an error](#numberinput) |
|
|
@@ -8868,7 +8953,7 @@ export default function YearWithoutGrouping() {
|
|
|
8868
8953
|
|
|
8869
8954
|
| Prop | Type | Default | Description |
|
|
8870
8955
|
|---|---|---|---|
|
|
8871
|
-
| `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
|
|
8956
|
+
| `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 16 more |
|
|
8872
8957
|
|
|
8873
8958
|
Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`, `type`, `value`.
|
|
8874
8959
|
|
|
@@ -8877,7 +8962,7 @@ Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`
|
|
|
8877
8962
|
- No expressions: “12*4” is not calculated.
|
|
8878
8963
|
- No currency conversion; the unit is a label.
|
|
8879
8964
|
|
|
8880
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8965
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8881
8966
|
|
|
8882
8967
|
### Slider
|
|
8883
8968
|
|
|
@@ -9070,7 +9155,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
|
|
|
9070
9155
|
- One thumb: no range with two ends.
|
|
9071
9156
|
- Marks show values; they do not catch the thumb.
|
|
9072
9157
|
|
|
9073
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9158
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9074
9159
|
|
|
9075
9160
|
### Checkbox
|
|
9076
9161
|
|
|
@@ -9398,7 +9483,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
|
|
|
9398
9483
|
|
|
9399
9484
|
- No pending or loading state; while your application applies the change, disable the switch or say so beside it.
|
|
9400
9485
|
|
|
9401
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9486
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9402
9487
|
|
|
9403
9488
|
### RadioGroup
|
|
9404
9489
|
|
|
@@ -9862,7 +9947,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
9862
9947
|
- Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
|
|
9863
9948
|
- No icons and no line of explanation in a segment; several chosen at once is not this control.
|
|
9864
9949
|
|
|
9865
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9950
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9866
9951
|
|
|
9867
9952
|
### FileInput
|
|
9868
9953
|
|
|
@@ -10207,7 +10292,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
|
|
|
10207
10292
|
|
|
10208
10293
|
- No upload, no progress and no size limit of its own; those belong to the application sending the files.
|
|
10209
10294
|
|
|
10210
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10295
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10211
10296
|
|
|
10212
10297
|
## Choosing
|
|
10213
10298
|
|
|
@@ -10403,7 +10488,7 @@ Also takes every attribute of `<select>` – without `size`.
|
|
|
10403
10488
|
|
|
10404
10489
|
- The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
|
|
10405
10490
|
|
|
10406
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10491
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10407
10492
|
|
|
10408
10493
|
### Combobox
|
|
10409
10494
|
|
|
@@ -10787,7 +10872,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
|
|
|
10787
10872
|
- No free text as a value: only an option can be chosen.
|
|
10788
10873
|
- No request of its own: `onSearch` reports the typed text and you fetch, debounce and cancel; `filter={false}` shows what you return.
|
|
10789
10874
|
|
|
10790
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10875
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10791
10876
|
|
|
10792
10877
|
### MultiSelect
|
|
10793
10878
|
|
|
@@ -11271,7 +11356,7 @@ export default function FromTheFirstReadingToToday() {
|
|
|
11271
11356
|
|
|
11272
11357
|
| Prop | Type | Default | Description |
|
|
11273
11358
|
|---|---|---|---|
|
|
11274
|
-
| `value` *required* | `Date \| null` | — | The day, as a `Date` on midnight in the formats' zone (the reader's, unless the application names one); `null` means none.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and
|
|
11359
|
+
| `value` *required* | `Date \| null` | — | The day, as a `Date` on midnight in the formats' zone (the reader's, unless the application names one); `null` means none.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and 11 more |
|
|
11275
11360
|
| `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [States](#datepicker) |
|
|
11276
11361
|
| `disabled` | `boolean` | `false` | Locks the field and the panel.<br>Shown in: [Configurator](#datepicker), [States](#datepicker) |
|
|
11277
11362
|
| `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#datepicker), [With an error](#datepicker) |
|
|
@@ -11286,7 +11371,7 @@ export default function FromTheFirstReadingToToday() {
|
|
|
11286
11371
|
|
|
11287
11372
|
| Prop | Type | Default | Description |
|
|
11288
11373
|
|---|---|---|---|
|
|
11289
|
-
| `onChange` *required* | `(date: Date \| null) => void` | — | Runs as soon as a day is settled - on a click in the grid, on "Today" and on clearing (`null`). Every one of these ways hands out midnight in the formats' zone; there is none that delivers a time along with it.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and
|
|
11374
|
+
| `onChange` *required* | `(date: Date \| null) => void` | — | Runs as soon as a day is settled - on a click in the grid, on "Today" and on clearing (`null`). Every one of these ways hands out midnight in the formats' zone; there is none that delivers a time along with it.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and 11 more |
|
|
11290
11375
|
|
|
11291
11376
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
11292
11377
|
|
|
@@ -11295,7 +11380,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
11295
11380
|
- No typing of a date into the field.
|
|
11296
11381
|
- 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)).
|
|
11297
11382
|
|
|
11298
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11383
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11299
11384
|
|
|
11300
11385
|
### DateTimePicker
|
|
11301
11386
|
|
|
@@ -11466,7 +11551,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
11466
11551
|
|
|
11467
11552
|
- 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)).
|
|
11468
11553
|
|
|
11469
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11554
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11470
11555
|
|
|
11471
11556
|
### DateRangePicker
|
|
11472
11557
|
|
|
@@ -11709,7 +11794,7 @@ the moment of the click.
|
|
|
11709
11794
|
|
|
11710
11795
|
- One span; no list of separate days.
|
|
11711
11796
|
|
|
11712
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11797
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11713
11798
|
|
|
11714
11799
|
### DateTimeRangePicker
|
|
11715
11800
|
|
|
@@ -11925,7 +12010,7 @@ the moment of the click.
|
|
|
11925
12010
|
- 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)).
|
|
11926
12011
|
- No recurring windows.
|
|
11927
12012
|
|
|
11928
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12013
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11929
12014
|
|
|
11930
12015
|
## Feedback
|
|
11931
12016
|
|
|
@@ -12075,7 +12160,7 @@ Also takes every attribute of `<svg>`.
|
|
|
12075
12160
|
|
|
12076
12161
|
- One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
|
|
12077
12162
|
|
|
12078
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12163
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12079
12164
|
|
|
12080
12165
|
### ProgressBar
|
|
12081
12166
|
|
|
@@ -12258,7 +12343,7 @@ Also takes every attribute of `<div>`.
|
|
|
12258
12343
|
|
|
12259
12344
|
- No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
|
|
12260
12345
|
|
|
12261
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12346
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12262
12347
|
|
|
12263
12348
|
### Skeleton
|
|
12264
12349
|
|
|
@@ -12415,7 +12500,7 @@ Also takes every attribute of `<span>`.
|
|
|
12415
12500
|
|
|
12416
12501
|
- It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
|
|
12417
12502
|
|
|
12418
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12503
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12419
12504
|
|
|
12420
12505
|
### Alert
|
|
12421
12506
|
|
|
@@ -12633,7 +12718,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
12633
12718
|
- No timer: an alert stays until you remove it. A message that goes by itself is a toast.
|
|
12634
12719
|
- No stack or queue of messages; place each alert where its matter is.
|
|
12635
12720
|
|
|
12636
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12721
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12637
12722
|
|
|
12638
12723
|
### Toast
|
|
12639
12724
|
|
|
@@ -13191,7 +13276,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
|
|
|
13191
13276
|
- 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.
|
|
13192
13277
|
- 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.
|
|
13193
13278
|
|
|
13194
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13279
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13195
13280
|
|
|
13196
13281
|
### EmptyState
|
|
13197
13282
|
|
|
@@ -13499,7 +13584,7 @@ export default function ACalculation() {
|
|
|
13499
13584
|
- No interactive content and no rich layout inside: it is read, never used.
|
|
13500
13585
|
- No placement option: it stands above its element and flips below where there is no room.
|
|
13501
13586
|
|
|
13502
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13587
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13503
13588
|
|
|
13504
13589
|
### Popover
|
|
13505
13590
|
|
|
@@ -13794,7 +13879,7 @@ type Align = "start" | "end" | "center";
|
|
|
13794
13879
|
- 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.
|
|
13795
13880
|
- It does not trap focus; a surface the user must answer is a [Modal](#modal).
|
|
13796
13881
|
|
|
13797
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13882
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13798
13883
|
|
|
13799
13884
|
### Menu
|
|
13800
13885
|
|
|
@@ -13995,7 +14080,7 @@ Also takes every attribute of `<button>` – without `onSelect`.
|
|
|
13995
14080
|
|
|
13996
14081
|
- No submenus, no checkable entries and no type-ahead.
|
|
13997
14082
|
|
|
13998
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14083
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13999
14084
|
|
|
14000
14085
|
### ContextMenu
|
|
14001
14086
|
|
|
@@ -14212,7 +14297,7 @@ export default function OnARow() {
|
|
|
14212
14297
|
- It listens to no right-click itself: the element and the point are yours, through the hook.
|
|
14213
14298
|
- No submenus, no checkable entries and no type-ahead, as in the menu.
|
|
14214
14299
|
|
|
14215
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14300
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14216
14301
|
|
|
14217
14302
|
### Modal
|
|
14218
14303
|
|
|
@@ -14228,6 +14313,8 @@ The title in `ModalHeader` names the dialog for a screen reader. The height foll
|
|
|
14228
14313
|
|
|
14229
14314
|
It is the browser's modal dialog: focus stays inside, the page behind cannot be scrolled, and focus returns to the opener on closing.
|
|
14230
14315
|
|
|
14316
|
+
Focus lands on the first control, the cross. A field with `autoFocus` inside takes it instead.
|
|
14317
|
+
|
|
14231
14318
|
#### Examples
|
|
14232
14319
|
|
|
14233
14320
|
##### A window that holds focus
|
|
@@ -14518,6 +14605,41 @@ export default function ADateInAWindow() {
|
|
|
14518
14605
|
}
|
|
14519
14606
|
```
|
|
14520
14607
|
|
|
14608
|
+
##### The cursor in the field
|
|
14609
|
+
|
|
14610
|
+
An `autoFocus` on a field inside the window is honoured: the window opens with the cursor there, not on the cross.
|
|
14611
|
+
|
|
14612
|
+
```tsx
|
|
14613
|
+
import { useState } from "react";
|
|
14614
|
+
import { Button, FormField, Input, Modal, ModalBody, ModalFooter, ModalHeader, Stack } from "@umriss-ui/core";
|
|
14615
|
+
|
|
14616
|
+
export default function TheCursorInTheField() {
|
|
14617
|
+
const [open, setOpen] = useState(false);
|
|
14618
|
+
|
|
14619
|
+
return (
|
|
14620
|
+
<>
|
|
14621
|
+
<Button onClick={() => setOpen(true)}>Edit the contact</Button>
|
|
14622
|
+
<Modal open={open} onClose={() => setOpen(false)}>
|
|
14623
|
+
<ModalHeader title="Edit the contact" />
|
|
14624
|
+
<ModalBody>
|
|
14625
|
+
<Stack gap={4}>
|
|
14626
|
+
<FormField label="Name">
|
|
14627
|
+
<Input defaultValue="Maya Lindgren" />
|
|
14628
|
+
</FormField>
|
|
14629
|
+
<FormField label="Phone">
|
|
14630
|
+
<Input autoFocus defaultValue="+49 40 555 0142" />
|
|
14631
|
+
</FormField>
|
|
14632
|
+
</Stack>
|
|
14633
|
+
</ModalBody>
|
|
14634
|
+
<ModalFooter>
|
|
14635
|
+
<Button onClick={() => setOpen(false)}>Done</Button>
|
|
14636
|
+
</ModalFooter>
|
|
14637
|
+
</Modal>
|
|
14638
|
+
</>
|
|
14639
|
+
);
|
|
14640
|
+
}
|
|
14641
|
+
```
|
|
14642
|
+
|
|
14521
14643
|
#### When to use something else
|
|
14522
14644
|
|
|
14523
14645
|
- A detail beside the list the user came from → Drawer
|
|
@@ -14537,7 +14659,7 @@ export default function ADateInAWindow() {
|
|
|
14537
14659
|
|
|
14538
14660
|
| Prop | Type | Default | Description |
|
|
14539
14661
|
|---|---|---|---|
|
|
14540
|
-
| `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and
|
|
14662
|
+
| `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 14 more |
|
|
14541
14663
|
| `size` | `ModalSize`<br>`"sm" \| "md" \| "lg"` | `"md"` | The width of the window. The height comes from the content; only the body scrolls, header and footer stand fast.<br>Shown in: [Sizes](#modal), [Scroll long content](#modal), [Guard unsaved changes](#modal) and 3 more |
|
|
14542
14664
|
| `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop.<br>Shown in: [A window that must be answered](#modal) |
|
|
14543
14665
|
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
@@ -14546,7 +14668,7 @@ export default function ADateInAWindow() {
|
|
|
14546
14668
|
|
|
14547
14669
|
| Prop | Type | Default | Description |
|
|
14548
14670
|
|---|---|---|---|
|
|
14549
|
-
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and
|
|
14671
|
+
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 14 more |
|
|
14550
14672
|
|
|
14551
14673
|
Also takes every attribute of `<dialog>` – without `onClose`.
|
|
14552
14674
|
|
|
@@ -14554,7 +14676,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
14554
14676
|
|
|
14555
14677
|
| Prop | Type | Default | Description |
|
|
14556
14678
|
|---|---|---|---|
|
|
14557
|
-
| `title` *required* | `ReactNode` | — | The heading of the window. It names it for the screen reader at the same time – a dialog without a name says only "dialog".<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and
|
|
14679
|
+
| `title` *required* | `ReactNode` | — | The heading of the window. It names it for the screen reader at the same time – a dialog without a name says only "dialog".<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 14 more |
|
|
14558
14680
|
| `description` | `ReactNode` | — | One sentence below the heading: what is to be decided here.<br>Shown in: [A window that holds focus](#modal), [Scroll long content](#modal), [Guard unsaved changes](#modal) and 8 more |
|
|
14559
14681
|
| `hideClose` | `boolean` | `false` | Hides the close button.<br>Shown in: [A window that must be answered](#modal) |
|
|
14560
14682
|
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
@@ -14575,7 +14697,7 @@ type ModalSize = "sm" | "md" | "lg";
|
|
|
14575
14697
|
|
|
14576
14698
|
- No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
|
|
14577
14699
|
|
|
14578
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14700
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14579
14701
|
|
|
14580
14702
|
### Drawer
|
|
14581
14703
|
|
|
@@ -14937,6 +15059,41 @@ export default function AnAppShell() {
|
|
|
14937
15059
|
}
|
|
14938
15060
|
```
|
|
14939
15061
|
|
|
15062
|
+
##### The cursor in the field
|
|
15063
|
+
|
|
15064
|
+
An `autoFocus` on a field inside the drawer is honoured, as in a `Modal`.
|
|
15065
|
+
|
|
15066
|
+
```tsx
|
|
15067
|
+
import { useState } from "react";
|
|
15068
|
+
import { Button, Drawer, FormField, Input, ModalBody, ModalFooter, ModalHeader, Stack } from "@umriss-ui/core";
|
|
15069
|
+
|
|
15070
|
+
export default function TheCursorInTheField() {
|
|
15071
|
+
const [open, setOpen] = useState(false);
|
|
15072
|
+
|
|
15073
|
+
return (
|
|
15074
|
+
<>
|
|
15075
|
+
<Button onClick={() => setOpen(true)}>Edit the shipment</Button>
|
|
15076
|
+
<Drawer open={open} onClose={() => setOpen(false)}>
|
|
15077
|
+
<ModalHeader title="Edit the shipment" />
|
|
15078
|
+
<ModalBody>
|
|
15079
|
+
<Stack gap={4}>
|
|
15080
|
+
<FormField label="Consignee">
|
|
15081
|
+
<Input defaultValue="Harlow Bakery" />
|
|
15082
|
+
</FormField>
|
|
15083
|
+
<FormField label="Note">
|
|
15084
|
+
<Input autoFocus defaultValue="Ring twice" />
|
|
15085
|
+
</FormField>
|
|
15086
|
+
</Stack>
|
|
15087
|
+
</ModalBody>
|
|
15088
|
+
<ModalFooter>
|
|
15089
|
+
<Button onClick={() => setOpen(false)}>Done</Button>
|
|
15090
|
+
</ModalFooter>
|
|
15091
|
+
</Drawer>
|
|
15092
|
+
</>
|
|
15093
|
+
);
|
|
15094
|
+
}
|
|
15095
|
+
```
|
|
15096
|
+
|
|
14940
15097
|
#### When to use something else
|
|
14941
15098
|
|
|
14942
15099
|
- A task that has nothing to do with what lies behind it → Modal
|
|
@@ -14956,7 +15113,7 @@ export default function AnAppShell() {
|
|
|
14956
15113
|
| Prop | Type | Default | Description |
|
|
14957
15114
|
|---|---|---|---|
|
|
14958
15115
|
| `side` | `"right" \| "left"` | `"right"` | The edge the drawer stands at and enters from.<br>Shown in: [From the left, and wider](#drawer), [An app shell](#drawer) |
|
|
14959
|
-
| `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and
|
|
15116
|
+
| `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and 14 more |
|
|
14960
15117
|
| `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop. From `ModalProps`.<br>Shown in: [A window that must be answered (Modal)](#modal) |
|
|
14961
15118
|
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
14962
15119
|
|
|
@@ -14964,7 +15121,7 @@ export default function AnAppShell() {
|
|
|
14964
15121
|
|
|
14965
15122
|
| Prop | Type | Default | Description |
|
|
14966
15123
|
|---|---|---|---|
|
|
14967
|
-
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and
|
|
15124
|
+
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and 14 more |
|
|
14968
15125
|
|
|
14969
15126
|
Also takes every attribute of `<dialog>` – without `onClose`.
|
|
14970
15127
|
|
|
@@ -14973,7 +15130,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
14973
15130
|
- Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
|
|
14974
15131
|
- Only the left and right edges; nothing slides in from the top or bottom.
|
|
14975
15132
|
|
|
14976
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15133
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14977
15134
|
|
|
14978
15135
|
### ConfirmDialog
|
|
14979
15136
|
|
|
@@ -15150,7 +15307,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
15150
15307
|
|
|
15151
15308
|
- A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
|
|
15152
15309
|
|
|
15153
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15310
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15154
15311
|
|
|
15155
15312
|
### CommandPalette
|
|
15156
15313
|
|
|
@@ -15452,7 +15609,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
15452
15609
|
- No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
|
|
15453
15610
|
- No nested steps or arguments: a command that needs input opens your own form after it is chosen.
|
|
15454
15611
|
|
|
15455
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15612
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15456
15613
|
|
|
15457
15614
|
## Navigation
|
|
15458
15615
|
|
|
@@ -15772,7 +15929,7 @@ Also takes every attribute of the rendered element.
|
|
|
15772
15929
|
|
|
15773
15930
|
- It neither routes nor reads the address: the trail is what you pass.
|
|
15774
15931
|
|
|
15775
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15932
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15776
15933
|
|
|
15777
15934
|
### Tabs
|
|
15778
15935
|
|
|
@@ -16142,7 +16299,7 @@ Also takes every attribute of `<div>`.
|
|
|
16142
16299
|
|
|
16143
16300
|
- More tabs than fit scroll sideways within the list; there is no overflow menu, and no closing or reordering of tabs.
|
|
16144
16301
|
|
|
16145
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16302
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16146
16303
|
|
|
16147
16304
|
### Accordion
|
|
16148
16305
|
|
|
@@ -16391,7 +16548,7 @@ Also takes every attribute of `<div>` – without `title`.
|
|
|
16391
16548
|
|
|
16392
16549
|
- A folded section's content stays rendered; for heavy content, render it only while its section is open.
|
|
16393
16550
|
|
|
16394
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16551
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16395
16552
|
|
|
16396
16553
|
### Stepper
|
|
16397
16554
|
|
|
@@ -16624,7 +16781,7 @@ Also takes every attribute of the rendered element.
|
|
|
16624
16781
|
- The steps are read, not navigated: no keys, no clicks, and no next or back of its own. Moving on is your application's decision, by a done step's label as a button or by buttons of its own.
|
|
16625
16782
|
- No branching or optional steps; pass the steps that apply.
|
|
16626
16783
|
|
|
16627
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16784
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16628
16785
|
|
|
16629
16786
|
### TreeView
|
|
16630
16787
|
|
|
@@ -17302,7 +17459,7 @@ to render and the heights of the filler rows around it.
|
|
|
17302
17459
|
- No dragging nodes to rearrange them.
|
|
17303
17460
|
- 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)).
|
|
17304
17461
|
|
|
17305
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17462
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17306
17463
|
|
|
17307
17464
|
### Benchmark
|
|
17308
17465
|
|
|
@@ -17779,7 +17936,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
17779
17936
|
- It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
|
|
17780
17937
|
- It counts nothing itself: capping at “99+” is yours.
|
|
17781
17938
|
|
|
17782
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17939
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17783
17940
|
|
|
17784
17941
|
### Tag
|
|
17785
17942
|
|
|
@@ -18046,7 +18203,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
18046
18203
|
- No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
|
|
18047
18204
|
- Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
|
|
18048
18205
|
|
|
18049
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
18206
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
18050
18207
|
|
|
18051
18208
|
### Stat
|
|
18052
18209
|
|
|
@@ -18935,7 +19092,7 @@ type Severity = "warning" | "alarm";
|
|
|
18935
19092
|
- No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
|
|
18936
19093
|
- It fetches and polls nothing: freshness is judged from the `asOf` you give it.
|
|
18937
19094
|
|
|
18938
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19095
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
18939
19096
|
|
|
18940
19097
|
### Meter
|
|
18941
19098
|
|
|
@@ -19105,7 +19262,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
19105
19262
|
|
|
19106
19263
|
- No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
|
|
19107
19264
|
|
|
19108
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19265
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
19109
19266
|
|
|
19110
19267
|
### Sparkline
|
|
19111
19268
|
|
|
@@ -19363,7 +19520,7 @@ Also takes every attribute of `<span>`.
|
|
|
19363
19520
|
|
|
19364
19521
|
- No axes, labels, tooltip or points to hover: the value stands beside it.
|
|
19365
19522
|
|
|
19366
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19523
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.50.0/docs/adr/0032-what-umriss-is-not.md).
|
|
19367
19524
|
|
|
19368
19525
|
## API index
|
|
19369
19526
|
|
|
@@ -19568,7 +19725,7 @@ Used on [Sizes](#sizes) and [FileInput](#fileinput).
|
|
|
19568
19725
|
|
|
19569
19726
|
[FormField](#formfield) – The frame around a field: its label, a hint below it and the error that replaces the hint. Wrap every field in one, so the question, the help and the problem are read out together.
|
|
19570
19727
|
|
|
19571
|
-
Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [Sizes](#sizes), [Language](#language), [Button](#button), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [Checkbox](#checkbox), [Switch](#switch), [RadioGroup](#radiogroup), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Alert](#alert), [Toast](#toast-1), [Popover](#popover), [Modal](#modal), [Breadcrumb](#breadcrumb), [Accordion](#accordion) and [TreeView](#treeview).
|
|
19728
|
+
Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [Sizes](#sizes), [Language](#language), [Button](#button), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [Checkbox](#checkbox), [Switch](#switch), [RadioGroup](#radiogroup), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Alert](#alert), [Toast](#toast-1), [Popover](#popover), [Modal](#modal), [Drawer](#drawer), [Breadcrumb](#breadcrumb), [Accordion](#accordion) and [TreeView](#treeview).
|
|
19572
19729
|
|
|
19573
19730
|
##### `FormFieldBoundary`
|
|
19574
19731
|
|
|
@@ -19628,7 +19785,7 @@ Used on [Button](#button), [IconButton](#iconbutton), [Input](#input) and [Menu]
|
|
|
19628
19785
|
|
|
19629
19786
|
[Input](#input) – A single line of text (text field, text box): names, references, addresses, search terms. Reach for it whenever the answer is short free text; for numbers take a [NumberInput](#numberinput).
|
|
19630
19787
|
|
|
19631
|
-
Used on [Sizes](#sizes), [Button](#button), [Input](#input), [FormField](#formfield), [Alert](#alert), [Toast](#toast-1), [Modal](#modal), [CommandPalette](#commandpalette) and [Accordion](#accordion).
|
|
19788
|
+
Used on [Sizes](#sizes), [Button](#button), [Input](#input), [FormField](#formfield), [Alert](#alert), [Toast](#toast-1), [Modal](#modal), [Drawer](#drawer), [CommandPalette](#commandpalette) and [Accordion](#accordion).
|
|
19632
19789
|
|
|
19633
19790
|
##### `LanguageProvider`
|
|
19634
19791
|
|
|
@@ -20259,6 +20416,22 @@ that during development.
|
|
|
20259
20416
|
function duplicateKey<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S | null;
|
|
20260
20417
|
```
|
|
20261
20418
|
|
|
20419
|
+
##### `formatsFor`
|
|
20420
|
+
|
|
20421
|
+
Every format of one locale, built once.
|
|
20422
|
+
|
|
20423
|
+
The options are the product's, not the locale's: two-digit day and month,
|
|
20424
|
+
the month written out with its year, a 24-hour clock, per cent without
|
|
20425
|
+
decimals. What the locale decides is the order of the parts and the
|
|
20426
|
+
separators - 17/03/2026 against 17.03.2026 - and the words of the month,
|
|
20427
|
+
the weekday and "3 minutes ago".
|
|
20428
|
+
|
|
20429
|
+
```ts
|
|
20430
|
+
function formatsFor(locale: string, timeZone?: string): Formats;
|
|
20431
|
+
```
|
|
20432
|
+
|
|
20433
|
+
Used on [Language](#language).
|
|
20434
|
+
|
|
20262
20435
|
##### `freshness`
|
|
20263
20436
|
|
|
20264
20437
|
The freshness of a value: its as-of time, measured against a reference time,
|
|
@@ -20279,6 +20452,14 @@ function freshness(asOf: FreshnessInstant, now: FreshnessInstant, ages: Freshnes
|
|
|
20279
20452
|
|
|
20280
20453
|
Used on [Scenarios](#scenarios) and [Stat](#stat).
|
|
20281
20454
|
|
|
20455
|
+
##### `hasWarned`
|
|
20456
|
+
|
|
20457
|
+
Whether [`warnOnce`](#api-index-1) has already spoken for this package and reason.
|
|
20458
|
+
|
|
20459
|
+
```ts
|
|
20460
|
+
function hasWarned(pkg: string, reason: string): boolean;
|
|
20461
|
+
```
|
|
20462
|
+
|
|
20282
20463
|
##### `mergeLanguage`
|
|
20283
20464
|
|
|
20284
20465
|
Builds a complete instance from the default and a partial value.
|
|
@@ -20364,6 +20545,14 @@ because the rendered set changed.
|
|
|
20364
20545
|
function visibleWindow({ count, rowHeight, scrollTop, viewportHeight, overscan, }: WindowInput): RowWindow;
|
|
20365
20546
|
```
|
|
20366
20547
|
|
|
20548
|
+
##### `warnOnce`
|
|
20549
|
+
|
|
20550
|
+
One development console warning per package and reason; silent in production. The prefix names the package.
|
|
20551
|
+
|
|
20552
|
+
```ts
|
|
20553
|
+
function warnOnce(pkg: string, reason: string, message: string): void;
|
|
20554
|
+
```
|
|
20555
|
+
|
|
20367
20556
|
##### `writeNumber`
|
|
20368
20557
|
|
|
20369
20558
|
A number as its format says, through the set's own functions - so an
|
|
@@ -20722,6 +20911,7 @@ Everything the library knows about formatting.
|
|
|
20722
20911
|
| `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
|
|
20723
20912
|
| `monthName` *required* | `(d: Date) => string` | — | The month alone, in the calendar head's month list: March |
|
|
20724
20913
|
| `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
|
|
20914
|
+
| `weekStart` *required* | `number` | — | The first day of the calendars' week, ISO-numbered: 1 = Monday ... 7 = Sunday. |
|
|
20725
20915
|
| `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
|
|
20726
20916
|
| `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 |
|
|
20727
20917
|
| `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
|
|
@@ -20861,8 +21051,8 @@ that differ from the default.
|
|
|
20861
21051
|
|
|
20862
21052
|
| Prop | Type | Default | Description |
|
|
20863
21053
|
|---|---|---|---|
|
|
20864
|
-
| `children` *required* | `ReactNode` | — | <br>Shown in: [German (Language)](#language), [English and German side by side (Language)](#language), [Replace single entries (Language)](#language) and
|
|
20865
|
-
| `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)). From `LanguageOptions`.<br>Shown in: [Set up an application (UmrissProvider)](#umrissprovider), [German (Language)](#language), [English and German side by side (Language)](#language) and
|
|
21054
|
+
| `children` *required* | `ReactNode` | — | <br>Shown in: [German (Language)](#language), [English and German side by side (Language)](#language), [Replace single entries (Language)](#language) and 4 more |
|
|
21055
|
+
| `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)). From `LanguageOptions`.<br>Shown in: [Set up an application (UmrissProvider)](#umrissprovider), [German (Language)](#language), [English and German side by side (Language)](#language) and 4 more |
|
|
20866
21056
|
| `wording` | `Partial<Omit<``Wording``, "presets">> & { presets?: Partial<``Wording``["presets"]> }` | — | The presets are a register of their own and are likewise overridden entry by entry. From `LanguageOptions`.<br>Shown in: [Set up an application (UmrissProvider)](#umrissprovider), [German (Language)](#language), [English and German side by side (Language)](#language) and 2 more |
|
|
20867
21057
|
|
|
20868
21058
|
##### `Limit`
|
|
@@ -21617,6 +21807,7 @@ Everything the library puts out as text.
|
|
|
21617
21807
|
| `filterDone` *required* | `string` | — | |
|
|
21618
21808
|
| `columns` *required* | `string` | — | The column menu's button. |
|
|
21619
21809
|
| `arrangeColumns` *required* | `string` | — | Accessible name of the list in the column menu. |
|
|
21810
|
+
| `fitAllColumns` *required* | `string` | — | The column menu's button that sets every column to the width of its content. |
|
|
21620
21811
|
| `columnForward` *required* | `(column: string) => string` | — | The two buttons that move a column in the column menu. |
|
|
21621
21812
|
| `columnBackward` *required* | `(column: string) => string` | — | |
|
|
21622
21813
|
| `pinColumnToStart` *required* | `(column: string) => string` | — | The column menu's pin keys: to a side, and back when it is pinned there. |
|
|
@@ -21706,6 +21897,18 @@ Everything the library puts out as text.
|
|
|
21706
21897
|
| `rangeFrom` *required* | `(from: string) => string` | — | |
|
|
21707
21898
|
| `rangeTo` *required* | `(to: string) => string` | — | |
|
|
21708
21899
|
| `rangeInvalid` *required* | `string` | — | When "From" lies behind "To". The condition stays the last valid one. |
|
|
21900
|
+
| `textContains` *required* | `string` | — | The text filter: its operators, as the choice and in the condition. |
|
|
21901
|
+
| `textNotContains` *required* | `string` | — | |
|
|
21902
|
+
| `textStartsWith` *required* | `string` | — | |
|
|
21903
|
+
| `textEndsWith` *required* | `string` | — | |
|
|
21904
|
+
| `textEquals` *required* | `string` | — | |
|
|
21905
|
+
| `textIsEmpty` *required* | `string` | — | |
|
|
21906
|
+
| `textAnd` *required* | `string` | — | What joins the two terms of a text condition: the choice and the word between them. |
|
|
21907
|
+
| `textOr` *required* | `string` | — | |
|
|
21908
|
+
| `filterOperator` *required* | `string` | — | The labels of the operator and the value fields of a term. |
|
|
21909
|
+
| `filterValue` *required* | `string` | — | |
|
|
21910
|
+
| `filterJoin` *required* | `string` | — | The name of the choice between AND and OR. |
|
|
21911
|
+
| `textTerm` *required* | `(operator: string, value: string) => string` | — | A term with a value in the toolbar: `starts with “foo”`. |
|
|
21709
21912
|
| `resetAll` *required* | `string` | — | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
21710
21913
|
| `tryAgain` *required* | `string` | — | The button under a server-mode table's error that sends the request once more. |
|
|
21711
21914
|
| `filteredOfTotal` *required* | `(matches: string, total: string) => string` | — | "43 of 1.204" - the numbers come from the formats. |
|
|
@@ -21746,6 +21949,7 @@ Everything the library puts out as text.
|
|
|
21746
21949
|
| `dropFiles` *required* | `string` | — | |
|
|
21747
21950
|
| `removeFile` *required* | `(name: string) => string` | — | The cross beside a chosen file. |
|
|
21748
21951
|
| `fileNotAccepted` *required* | `(name: string) => string` | — | A dropped file the input's `accept` does not take. |
|
|
21952
|
+
| `numberRefused` *required* | `string` | — | A NumberInput refusing a character it cannot read. |
|
|
21749
21953
|
| `show` *required* | `string` | — | |
|
|
21750
21954
|
| `hide` *required* | `string` | — | |
|
|
21751
21955
|
| `moreActions` *required* | `string` | — | |
|
|
@@ -21768,6 +21972,7 @@ Everything the library puts out as text.
|
|
|
21768
21972
|
| `scheduleUnfoldGroup` *required* | `string` | — | |
|
|
21769
21973
|
| `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
|
|
21770
21974
|
| `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
|
|
21975
|
+
| `schedulePlotName` *required* | `(label: string) => string` | — | The plot's own name, beside the figure that carries the caller's `aria-label`, so the caller's name is not heard twice. |
|
|
21771
21976
|
| `scheduleSummary` *required* | `(summary: { lanes: number; subtasks: number; from: string; to: string; overlaps: number; violated: number; /** Subtasks in blocked time; said only where there are any. */ blocked: number; /** Milestones of the plan; said only where there are any. */ milestones: number; }) => string` | — | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
|
|
21772
21977
|
| `scheduleVisibleRange` *required* | `(from: string, to: string) => string` | — | The span in view, said after a zoom key. |
|
|
21773
21978
|
| `scheduleKeyHelp` *required* | `string` | — | The keys that walk the plot, select and edit - read after the summary. |
|