@umriss-ui/core 0.56.0 → 0.57.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/API.md +63 -51
- package/CHANGELOG.md +20 -0
- package/README.md +14 -8
- package/dist/core.css +1 -1
- package/dist/core.js +194 -199
- package/dist/de.d.ts +12 -12
- package/dist/index.d.ts +45 -26
- package/docs/llms-full.md +336 -180
- package/package.json +6 -3
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.57.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
|
|
|
@@ -51,9 +51,9 @@ From `ButtonProps` — the full table stands on [Button](#button).
|
|
|
51
51
|
#### Known limits
|
|
52
52
|
|
|
53
53
|
- No font is loaded or bundled.
|
|
54
|
-
- Chrome
|
|
54
|
+
- Chrome 125, Firefox 121 and Safari 17.5 or newer; an older browser discards the tokens and shows the components unstyled.
|
|
55
55
|
|
|
56
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
56
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
57
57
|
|
|
58
58
|
### UmrissProvider
|
|
59
59
|
|
|
@@ -264,7 +264,7 @@ type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "
|
|
|
264
264
|
|
|
265
265
|
- No theme and no default variants for components: a component is configured by its own props.
|
|
266
266
|
|
|
267
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
267
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
268
268
|
|
|
269
269
|
## Customising
|
|
270
270
|
|
|
@@ -278,7 +278,7 @@ The library writes its CSS in three cascade layers, `umriss.tokens`, `umriss.bas
|
|
|
278
278
|
|
|
279
279
|
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.
|
|
280
280
|
|
|
281
|
-
**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: ["
|
|
281
|
+
**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: ["chrome125", "firefox121", "safari17.5"] }`, Next a `browserslist` in `package.json` (`"chrome >= 125", "firefox >= 121", "safari >= 17.5"`). In development core warns once when it sees this.
|
|
282
282
|
|
|
283
283
|
**Print.** Under `@media print` the components print for a reader, and nothing is set: overlays, toasts and the skip link are left off the sheet; cards and overlays keep a hard grey edge instead of a shadow; a dark application prints in the light theme (every surface that carries the library's text context takes `color-scheme: light`); and a verdict keeps its word or glyph beside its colour. Text you set yourself outside the components keeps your own colours. The paper size and the page breaks of your own layout are your `@page` and `break-*` rules.
|
|
284
284
|
|
|
@@ -725,7 +725,7 @@ The charts' own tokens, set on a chart's root. A token whose value names a core
|
|
|
725
725
|
| `--uc-transition-state` | `var(`--u-transition`, 120ms cubic-bezier(0.22, 1, 0.36, 1))` | same | — |
|
|
726
726
|
| `--uc-transition` | `80ms var(`--u-ease-out`, cubic-bezier(0.22, 1, 0.36, 1))` | same | The tooltip's fade: its own short duration - it follows the pointer and must not lag behind it - on core's curve where core is loaded. |
|
|
727
727
|
| `--uc-delay-stale` | `var(`--u-delay-stale`, 200ms)` | same | A course being reloaded dims as the table's rows do ([ADR-0042](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0042-a-rows-height-never-follows-what-it-shows.md)): only after this delay, so that a quick answer never flickers. |
|
|
728
|
-
| `--uc-silhouette` | `color-mix(in srgb, var(`--u-color-text`, #18181b) 10%, transparent)` | same | The shapes of the silhouette a chart shows while it waits for its rows
|
|
728
|
+
| `--uc-silhouette` | `color-mix(in srgb, var(`--u-color-text`, #18181b) 10%, transparent)` | same | The shapes of the silhouette a chart shows while it waits for its rows: faint in the text colour, as the table's placeholders. |
|
|
729
729
|
| `--uc-ease-swell` | `var(`--u-ease-swell`, ease-in-out)` | same | The easing of the band that sweeps the silhouette: it swells as the table's shimmer does. |
|
|
730
730
|
| `--uc-fade` | `var(`--u-duration-medium`, 240ms) var(`--u-ease-out`, cubic-bezier(0.22, 1, 0.36, 1))` | same | The silhouette fading out and the course in, once the rows are there: core's motion for a layout change. |
|
|
731
731
|
|
|
@@ -823,7 +823,7 @@ From `StatProps` — the full table stands on [Stat](#stat).
|
|
|
823
823
|
- 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.
|
|
824
824
|
- 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`.
|
|
825
825
|
|
|
826
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
826
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
827
827
|
|
|
828
828
|
### Sizes
|
|
829
829
|
|
|
@@ -1241,7 +1241,7 @@ type ControlSize = "sm" | "md";
|
|
|
1241
1241
|
- 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).
|
|
1242
1242
|
- 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)`.
|
|
1243
1243
|
|
|
1244
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
1244
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
1245
1245
|
|
|
1246
1246
|
### Language
|
|
1247
1247
|
|
|
@@ -1573,9 +1573,9 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
1573
1573
|
| `selectNone` | None | Keine | — |
|
|
1574
1574
|
| `invertSelection` | Invert | Umkehren | — |
|
|
1575
1575
|
| `nothingSelected` | Nothing selected | Nichts ausgewählt | — |
|
|
1576
|
-
| `removeSelectedValue(
|
|
1576
|
+
| `removeSelectedValue(label)` | `` `Remove ${label}` `` | `` `${label} entfernen` `` | The cross on a selected value in the trigger. |
|
|
1577
1577
|
| `manageMoreSelected(count)` | `` `Manage all ${count} selected` `` | `` `Alle ${count} Gewählten verwalten` `` | The "+N" counter in the trigger. |
|
|
1578
|
-
| `multiSelectSummary(
|
|
1578
|
+
| `multiSelectSummary(selected, total)` | `` `${selected} / ${total}` `` | `` `${selected} / ${total}` `` | The summary in the panel: "3 / 12". The sentence structure belongs to the language, even where it is only a slash here. |
|
|
1579
1579
|
| `optionCount(count)` | `` (count === 1 ? "1 option" : `${count} options`) `` | `` (count === 1 ? "1 Option" : `${count} Optionen`) `` | How many options stand, when a list opens or its filter changes; never zero - an empty list says its own empty text. Named, like the three below, after the moment it is spoken in: an announcement labels no element. |
|
|
1580
1580
|
| `optionActive(label, state)` | `[label, group, selected && "selected", disabled && "unavailable"].filter(Boolean).join(", ")` | `[label, group, selected && "ausgewählt", disabled && "nicht verfügbar"].filter(Boolean).join(", ")` | The option the keys moved onto, with what VoiceOver leaves out. |
|
|
1581
1581
|
| `optionAdded(label)` | `` `${label} added` `` | `` `${label} hinzugefügt` `` | A value the multi-select took or gave away where no checkbox had the focus to say it - Enter in the search, a chip, Backspace. |
|
|
@@ -1669,8 +1669,8 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
1669
1669
|
| `endHour` | End hour | Endstunde | — |
|
|
1670
1670
|
| `endMinute` | End minute | Endminute | — |
|
|
1671
1671
|
| `endSecond` | End second | Endsekunde | — |
|
|
1672
|
-
| `timeFieldIncrease(
|
|
1673
|
-
| `timeFieldDecrease(
|
|
1672
|
+
| `timeFieldIncrease(field)` | `` `Increase ${field}` `` | `` `${field} erhöhen` `` | Stepper buttons of a time field; the label comes from above. |
|
|
1673
|
+
| `timeFieldDecrease(field)` | `` `Decrease ${field}` `` | `` `${field} verringern` `` | — |
|
|
1674
1674
|
| `pickerPicked(value)` | `` `Selected ${value}` `` | `` `Gewählt: ${value}` `` | Said when a picker takes a new value; the text is the value as the field shows it. |
|
|
1675
1675
|
| `chooseStartDate` | Select start date | Startdatum wählen | Footer of the range panels. |
|
|
1676
1676
|
| `chooseEndDate` | Select end date – backwards is allowed | Enddatum wählen – rückwärts ist erlaubt | — |
|
|
@@ -1678,15 +1678,15 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
1678
1678
|
| `daysSelected(count)` | `` `${count} ${count === 1 ? "day" : "days"} selected` `` | `` `${count} ${count === 1 ? "Tag" : "Tage"} gewählt` `` | "3 days selected" |
|
|
1679
1679
|
| `rangePreview(from, to, count)` | `` `${from} – ${to} · ${count} ${count === 1 ? "day" : "days"}` `` | `` `${from} – ${to}\u2009·\u2009${count} ${count === 1 ? "Tag" : "Tage"}` `` | "17.03. – 19.03. · 3 days" while dragging; the dates come from the formats. |
|
|
1680
1680
|
| `daysAllDay(count)` | `` `${count} ${count === 1 ? "day" : "days"} (all day)` `` | `` `${count} ${count === 1 ? "Tag" : "Tage"} (ganztägig)` `` | "3 days (all day)" |
|
|
1681
|
-
| `duration(
|
|
1681
|
+
| `duration(parts)` | `` `Duration: ${parts.join(" ")}` `` | `` `Dauer: ${parts.join(" ")}` `` | "Duration: 1 day 2 hrs 30 min" |
|
|
1682
1682
|
| `hoursShort(count)` | `` `${count} ${count === 1 ? "hr" : "hrs"}` `` | `` `${count} Std` `` | — |
|
|
1683
1683
|
| `minutesShort(count)` | `` `${count} min` `` | `` `${count} Min` `` | — |
|
|
1684
1684
|
| `timeMissingHint(timeOfDay)` | `` `This time does not exist on this day (start of daylight saving time). ${timeOfDay} is used instead.` `` | `` `Diese Uhrzeit existiert an diesem Tag nicht (Beginn der Sommerzeit). Es wird ${timeOfDay} Uhr verwendet.` `` | Daylight-saving change: the hour that does not exist. |
|
|
1685
1685
|
| `timeMissingHintSide(side, timeOfDay)` | `` `${side}: This time does not exist on this day (start of daylight saving time). ${timeOfDay} is used instead.` `` | `` `${side}: Diese Uhrzeit existiert an diesem Tag nicht (Beginn der Sommerzeit). Es wird ${timeOfDay} Uhr verwendet.` `` | The same, with the side put in front ("From"/"To"). |
|
|
1686
1686
|
| `timeAmbiguousHint` | This time occurs twice on this day (end of daylight saving time): | Diese Uhrzeit kommt an diesem Tag zweimal vor (Ende der Sommerzeit): | Daylight-saving change: the hour that occurs twice. |
|
|
1687
1687
|
| `timeAmbiguousHintSide(side)` | `` `${side}: This time occurs twice on this day (end of daylight saving time):` `` | `` `${side}: Diese Uhrzeit kommt an diesem Tag zweimal vor (Ende der Sommerzeit):` `` | — |
|
|
1688
|
-
| `timeEarlier(
|
|
1689
|
-
| `timeLater(
|
|
1688
|
+
| `timeEarlier(offset)` | `` `Earlier (${offset})` `` | `` `Frühere (${offset})` `` | — |
|
|
1689
|
+
| `timeLater(offset)` | `` `Later (${offset})` `` | `` `Spätere (${offset})` `` | — |
|
|
1690
1690
|
| `weekdays` | `["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]` | `["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"]` | The calendar's weekday headers, starting at Monday. |
|
|
1691
1691
|
| `presets.today` | Today | Heute | The quick-select ranges, in the order of PRESET_LABELS. |
|
|
1692
1692
|
| `presets.yesterday` | Yesterday | Gestern | The quick-select ranges, in the order of PRESET_LABELS. |
|
|
@@ -1755,7 +1755,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
1755
1755
|
| `expandRowNamed(row)` | `` `Expand ${row}` `` | `` `${row} aufklappen` `` | The expand button, named after the row header. |
|
|
1756
1756
|
| `collapseRowNamed(row)` | `` `Collapse ${row}` `` | `` `${row} zuklappen` `` | — |
|
|
1757
1757
|
| `rowActions` | Actions | Aktionen | Header of the actions column - for the screen reader, not visible. |
|
|
1758
|
-
| `rowAction(
|
|
1758
|
+
| `rowAction(action, row)` | `` `${action}: ${row}` `` | `` `${action}: ${row}` `` | One action on a row: "Open: A-2041". |
|
|
1759
1759
|
| `rowActionsMenu(row)` | `` `Actions: ${row}` `` | `` `Aktionen: ${row}` `` | The menu holding a row's actions. |
|
|
1760
1760
|
| `editCell(column, row)` | `` `Edit ${column}: ${row}` `` | `` `${column} bearbeiten: ${row}` `` | The editor of a cell in a table's grid mode, named after its column and its row: "Edit Budget: Marketing". |
|
|
1761
1761
|
| `newRow` | New row | Neue Zeile | The button above a grid that opens an empty row to fill in, and the name of that row while it has none ([ADR-0036](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0036-a-grid-edits-on-the-first-click-and-saves-rows-on-purpose.md)). |
|
|
@@ -1845,8 +1845,8 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
1845
1845
|
| `verdictUnknown` | No value | Kein Wert | — |
|
|
1846
1846
|
| `statAbsentValue` | — | — | What stands in the value field when there is no value. No dash, no zero: either could be a value. |
|
|
1847
1847
|
| `target` | Target | Ziel | — |
|
|
1848
|
-
| `deviationAbove(
|
|
1849
|
-
| `deviationBelow(
|
|
1848
|
+
| `deviationAbove(amount)` | `` `${amount} above target` `` | `` `${amount} über Ziel` `` | "3,2 above target" or "1,5 below target" - the amount comes from the formats, which is where the comma is from. |
|
|
1849
|
+
| `deviationBelow(amount)` | `` `${amount} below target` `` | `` `${amount} unter Ziel` `` | — |
|
|
1850
1850
|
| `deviationOnTarget` | on target | auf Ziel | — |
|
|
1851
1851
|
| `freshnessFresh` | Fresh | Aktuell | The three freshness states. They are a DIFFERENT axis from the verdict: a stale value keeps its verdict ([ADR-0010](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0010-a-stale-value-keeps-its-verdict.md)). |
|
|
1852
1852
|
| `freshnessStale` | Stale | Veraltet | — |
|
|
@@ -1887,7 +1887,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
1887
1887
|
| `hide` | Hide | Ausblenden | — |
|
|
1888
1888
|
| `moreActions` | More actions | Weitere Aktionen | — |
|
|
1889
1889
|
| `remove` | Remove | Entfernen | The cross on a tag without text content. |
|
|
1890
|
-
| `removeTag(
|
|
1890
|
+
| `removeTag(label)` | `` `Remove ${label}` `` | `` `${label} entfernen` `` | The cross on a tag with text content. |
|
|
1891
1891
|
|
|
1892
1892
|
##### @umriss-ui/schedule
|
|
1893
1893
|
|
|
@@ -1909,7 +1909,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
1909
1909
|
| `scheduleFoldGroup` | Fold group | Gruppe einklappen | The chevron of a lane group's header, which folds it into one row and unfolds it again. The group's own label stands beside the button, so the name is what the ACTION is, not which group it acts on. |
|
|
1910
1910
|
| `scheduleUnfoldGroup` | Unfold group | Gruppe ausklappen | — |
|
|
1911
1911
|
| `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. |
|
|
1912
|
-
| `scheduleRoleDescription` | schedule | Belegungsplan | What a screen reader calls the plot that takes the keys (`aria-roledescription
|
|
1912
|
+
| `scheduleRoleDescription` | schedule | Belegungsplan | What a screen reader calls the plot that takes the keys (`aria-roledescription`). |
|
|
1913
1913
|
| `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. |
|
|
1914
1914
|
| `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. |
|
|
1915
1915
|
| `scheduleVisibleRange(from, to)` | `` `From ${from} to ${to}.` `` | `` `Von ${from} bis ${to}.` `` | The span in view, said after a zoom key. |
|
|
@@ -2091,18 +2091,18 @@ Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes thr
|
|
|
2091
2091
|
| `zoomHelp` | Plus and minus zoom, Shift with left or right pans, 0 goes back to the axis' own span. | Plus und Minus zoomen, Umschalt mit Pfeil links oder rechts verschiebt, 0 kehrt zum eigenen Bereich der Achse zurück. | The keys that zoom and pan it - only where the chart can be zoomed. |
|
|
2092
2092
|
| `legendHelp` | In the legend, Enter hides or shows a series, Shift+Enter shows only it. | In der Legende blendet Enter eine Serie aus oder ein, Umschalt+Enter zeigt nur sie. | The keys of the legend's entries - only where it has one to press. |
|
|
2093
2093
|
| `allShown` | Nothing would be left to see, so every series is shown. | Sonst wäre nichts mehr zu sehen, darum werden alle Serien gezeigt. | Read out where hiding would leave nothing to see, and every series is shown instead. |
|
|
2094
|
-
| `showAll` | Show all | Alles zeigen | The control over a zoomed plot that brings every zoomed axis back to its own domain
|
|
2094
|
+
| `showAll` | Show all | Alles zeigen | The control over a zoomed plot that brings every zoomed axis back to its own domain. |
|
|
2095
2095
|
| `showData` | Show data | Daten zeigen | The data table's disclosure key, closed and open. |
|
|
2096
2096
|
| `hideData` | Hide data | Daten verbergen | — |
|
|
2097
2097
|
| `positionColumn` | Position | Position | The heading of the table's x column where its axis has no `label`, and of a matrix' row column where its y axis has none. |
|
|
2098
2098
|
| `rowColumn` | Row | Zeile | — |
|
|
2099
2099
|
| `tableCaption(from, to)` | `` `Values from ${from} to ${to}.` `` | `` `Werte von ${from} bis ${to}.` `` | The table's caption: the visible stretch it lists, both ends formatted. |
|
|
2100
|
-
| `upperWhisker` | Upper whisker | Oberer Whisker | A box's numbers, top to bottom as drawn: the tooltip's rows, the readout's parts and the data table's columns
|
|
2100
|
+
| `upperWhisker` | Upper whisker | Oberer Whisker | A box's numbers, top to bottom as drawn: the tooltip's rows, the readout's parts and the data table's columns. |
|
|
2101
2101
|
| `upperQuartile` | Upper quartile | Oberes Quartil | — |
|
|
2102
2102
|
| `median` | Median | Median | — |
|
|
2103
2103
|
| `lowerQuartile` | Lower quartile | Unteres Quartil | — |
|
|
2104
2104
|
| `lowerWhisker` | Lower whisker | Unterer Whisker | — |
|
|
2105
|
-
| `outliers` | Outliers | Ausreißer | A box's outliers: the row's name, and the row's value - their count and the first few values, the rest counted
|
|
2105
|
+
| `outliers` | Outliers | Ausreißer | A box's outliers: the row's name, and the row's value - their count and the first few values, the rest counted. |
|
|
2106
2106
|
| `mean` | Mean | Mittelwert | A box's optional readings: its mean, its notch's two bounds as one row, and how many values stand behind it. |
|
|
2107
2107
|
| `notch` | Notch | Notch | — |
|
|
2108
2108
|
| `count` | n | n | — |
|
|
@@ -2202,9 +2202,9 @@ Everything the library puts out as text.
|
|
|
2202
2202
|
| `selectNone` *required* | `string` | — | |
|
|
2203
2203
|
| `invertSelection` *required* | `string` | — | |
|
|
2204
2204
|
| `nothingSelected` *required* | `string` | — | |
|
|
2205
|
-
| `removeSelectedValue` *required* | `(
|
|
2205
|
+
| `removeSelectedValue` *required* | `(label: string) => string` | — | The cross on a selected value in the trigger. |
|
|
2206
2206
|
| `manageMoreSelected` *required* | `(count: number) => string` | — | The "+N" counter in the trigger. |
|
|
2207
|
-
| `multiSelectSummary` *required* | `(
|
|
2207
|
+
| `multiSelectSummary` *required* | `(selected: number, total: number) => string` | — | The summary in the panel: "3 / 12". The sentence structure belongs to the language, even where it is only a slash here. |
|
|
2208
2208
|
| `optionCount` *required* | `(count: number) => string` | — | How many options stand, when a list opens or its filter changes; never zero - an empty list says its own empty text. Named, like the three below, after the moment it is spoken in: an announcement labels no element. |
|
|
2209
2209
|
| `optionActive` *required* | `( label: string, state: { selected?: boolean; disabled?: boolean; group?: string }, ) => string` | — | The option the keys moved onto, with what VoiceOver leaves out. |
|
|
2210
2210
|
| `optionAdded` *required* | `(label: string) => string` | — | A value the multi-select took or gave away where no checkbox had the focus to say it - Enter in the search, a chip, Backspace. |
|
|
@@ -2283,8 +2283,8 @@ Everything the library puts out as text.
|
|
|
2283
2283
|
| `endHour` *required* | `string` | — | |
|
|
2284
2284
|
| `endMinute` *required* | `string` | — | |
|
|
2285
2285
|
| `endSecond` *required* | `string` | — | |
|
|
2286
|
-
| `timeFieldIncrease` *required* | `(
|
|
2287
|
-
| `timeFieldDecrease` *required* | `(
|
|
2286
|
+
| `timeFieldIncrease` *required* | `(field: string) => string` | — | Stepper buttons of a time field; the label comes from above. |
|
|
2287
|
+
| `timeFieldDecrease` *required* | `(field: string) => string` | — | |
|
|
2288
2288
|
| `pickerPicked` *required* | `(value: string) => string` | — | Said when a picker takes a new value; the text is the value as the field shows it. |
|
|
2289
2289
|
| `chooseStartDate` *required* | `string` | — | Footer of the range panels. |
|
|
2290
2290
|
| `chooseEndDate` *required* | `string` | — | |
|
|
@@ -2292,15 +2292,15 @@ Everything the library puts out as text.
|
|
|
2292
2292
|
| `daysSelected` *required* | `(count: number) => string` | — | "3 days selected" |
|
|
2293
2293
|
| `rangePreview` *required* | `(from: string, to: string, count: number) => string` | — | "17.03. – 19.03. · 3 days" while dragging; the dates come from the formats. |
|
|
2294
2294
|
| `daysAllDay` *required* | `(count: number) => string` | — | "3 days (all day)" |
|
|
2295
|
-
| `duration` *required* | `(
|
|
2295
|
+
| `duration` *required* | `(parts: readonly string[]) => string` | — | "Duration: 1 day 2 hrs 30 min" |
|
|
2296
2296
|
| `hoursShort` *required* | `(count: number) => string` | — | |
|
|
2297
2297
|
| `minutesShort` *required* | `(count: number) => string` | — | |
|
|
2298
2298
|
| `timeMissingHint` *required* | `(timeOfDay: string) => string` | — | Daylight-saving change: the hour that does not exist. |
|
|
2299
2299
|
| `timeMissingHintSide` *required* | `(side: string, timeOfDay: string) => string` | — | The same, with the side put in front ("From"/"To"). |
|
|
2300
2300
|
| `timeAmbiguousHint` *required* | `string` | — | Daylight-saving change: the hour that occurs twice. |
|
|
2301
2301
|
| `timeAmbiguousHintSide` *required* | `(side: string) => string` | — | |
|
|
2302
|
-
| `timeEarlier` *required* | `(
|
|
2303
|
-
| `timeLater` *required* | `(
|
|
2302
|
+
| `timeEarlier` *required* | `(offset: string) => string` | — | |
|
|
2303
|
+
| `timeLater` *required* | `(offset: string) => string` | — | |
|
|
2304
2304
|
| `weekdays` *required* | `readonly string[]` | — | The calendar's weekday headers, starting at Monday. |
|
|
2305
2305
|
| `presets` *required* | `{ today: string; yesterday: string; last7Days: string; last30Days: string; thisMonth: string; previousMonth: string; thisQuarter: string; thisYear: string; }` | — | The quick-select ranges, in the order of PRESET_LABELS. |
|
|
2306
2306
|
| `pagination` *required* | `string` | — | |
|
|
@@ -2352,7 +2352,7 @@ Everything the library puts out as text.
|
|
|
2352
2352
|
| `expandRowNamed` *required* | `(row: string) => string` | — | The expand button, named after the row header. |
|
|
2353
2353
|
| `collapseRowNamed` *required* | `(row: string) => string` | — | |
|
|
2354
2354
|
| `rowActions` *required* | `string` | — | Header of the actions column - for the screen reader, not visible. |
|
|
2355
|
-
| `rowAction` *required* | `(
|
|
2355
|
+
| `rowAction` *required* | `(action: string, row: string) => string` | — | One action on a row: "Open: A-2041". |
|
|
2356
2356
|
| `rowActionsMenu` *required* | `(row: string) => string` | — | The menu holding a row's actions. |
|
|
2357
2357
|
| `editCell` *required* | `(column: string, row: string) => string` | — | The editor of a cell in a table's grid mode, named after its column and its row: "Edit Budget: Marketing". |
|
|
2358
2358
|
| `newRow` *required* | `string` | — | The button above a grid that opens an empty row to fill in, and the name of that row while it has none ([ADR-0036](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0036-a-grid-edits-on-the-first-click-and-saves-rows-on-purpose.md)). |
|
|
@@ -2437,8 +2437,8 @@ Everything the library puts out as text.
|
|
|
2437
2437
|
| `verdictUnknown` *required* | `string` | — | |
|
|
2438
2438
|
| `statAbsentValue` *required* | `string` | — | What stands in the value field when there is no value. No dash, no zero: either could be a value. |
|
|
2439
2439
|
| `target` *required* | `string` | — | |
|
|
2440
|
-
| `deviationAbove` *required* | `(
|
|
2441
|
-
| `deviationBelow` *required* | `(
|
|
2440
|
+
| `deviationAbove` *required* | `(amount: string) => string` | — | "3,2 above target" or "1,5 below target" - the amount comes from the formats, which is where the comma is from. |
|
|
2441
|
+
| `deviationBelow` *required* | `(amount: string) => string` | — | |
|
|
2442
2442
|
| `deviationOnTarget` *required* | `string` | — | |
|
|
2443
2443
|
| `freshnessFresh` *required* | `string` | — | The three freshness states. They are a DIFFERENT axis from the verdict: a stale value keeps its verdict ([ADR-0010](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0010-a-stale-value-keeps-its-verdict.md)). |
|
|
2444
2444
|
| `freshnessStale` *required* | `string` | — | |
|
|
@@ -2474,7 +2474,7 @@ Everything the library puts out as text.
|
|
|
2474
2474
|
| `hide` *required* | `string` | — | |
|
|
2475
2475
|
| `moreActions` *required* | `string` | — | |
|
|
2476
2476
|
| `remove` *required* | `string` | — | The cross on a tag without text content. |
|
|
2477
|
-
| `removeTag` *required* | `(
|
|
2477
|
+
| `removeTag` *required* | `(label: string) => string` | — | The cross on a tag with text content. |
|
|
2478
2478
|
| `scheduleOverlap` *required* | `string` | — | The two findings, named on the ghost of a drag. |
|
|
2479
2479
|
| `scheduleViolatedDependency` *required* | `string` | — | |
|
|
2480
2480
|
| `scheduleGhostTimes` *required* | `(from: string, to: string) => string` | — | The new times on the ghost: "08:15–10:00" - the times come from the formats. |
|
|
@@ -2491,7 +2491,7 @@ Everything the library puts out as text.
|
|
|
2491
2491
|
| `scheduleFoldGroup` *required* | `string` | — | The chevron of a lane group's header, which folds it into one row and unfolds it again. The group's own label stands beside the button, so the name is what the ACTION is, not which group it acts on. |
|
|
2492
2492
|
| `scheduleUnfoldGroup` *required* | `string` | — | |
|
|
2493
2493
|
| `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
|
|
2494
|
-
| `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription
|
|
2494
|
+
| `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`). |
|
|
2495
2495
|
| `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. |
|
|
2496
2496
|
| `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. |
|
|
2497
2497
|
| `scheduleVisibleRange` *required* | `(from: string, to: string) => string` | — | The span in view, said after a zoom key. |
|
|
@@ -2631,10 +2631,10 @@ Everything the library puts out as text.
|
|
|
2631
2631
|
|
|
2632
2632
|
#### Known limits
|
|
2633
2633
|
|
|
2634
|
-
- 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.
|
|
2634
|
+
- 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.57.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
2635
2635
|
- It holds only what the components say themselves; your labels, titles and data are yours to translate.
|
|
2636
2636
|
|
|
2637
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2637
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2638
2638
|
|
|
2639
2639
|
## Layout
|
|
2640
2640
|
|
|
@@ -2937,7 +2937,7 @@ The keys of [Button](#button) apply here.
|
|
|
2937
2937
|
| Prop | Type | Default | Description |
|
|
2938
2938
|
|---|---|---|---|
|
|
2939
2939
|
| `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 77 more |
|
|
2940
|
-
| `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
|
|
2940
|
+
| `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 194 more |
|
|
2941
2941
|
| `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 87 more |
|
|
2942
2942
|
| `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 |
|
|
2943
2943
|
| `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 |
|
|
@@ -2981,7 +2981,7 @@ type GridColumnWidth = number | "fill";
|
|
|
2981
2981
|
- No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
|
|
2982
2982
|
- 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)).
|
|
2983
2983
|
|
|
2984
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2984
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2985
2985
|
|
|
2986
2986
|
### Divider
|
|
2987
2987
|
|
|
@@ -3801,7 +3801,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
|
|
|
3801
3801
|
- 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)).
|
|
3802
3802
|
- It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
|
|
3803
3803
|
|
|
3804
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3804
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3805
3805
|
|
|
3806
3806
|
## Typography
|
|
3807
3807
|
|
|
@@ -4237,10 +4237,10 @@ type TextLeading = "normal" | "tight";
|
|
|
4237
4237
|
#### Known limits
|
|
4238
4238
|
|
|
4239
4239
|
- No truncation and no line length: both depend on the column, which only the application knows.
|
|
4240
|
-
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
4240
|
+
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
4241
4241
|
- `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
|
|
4242
4242
|
|
|
4243
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
4243
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
4244
4244
|
|
|
4245
4245
|
### VisuallyHidden
|
|
4246
4246
|
|
|
@@ -4364,7 +4364,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
|
|
|
4364
4364
|
|
|
4365
4365
|
- It hides from the eye only; to hide something from everyone, do not render it.
|
|
4366
4366
|
|
|
4367
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
4367
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
4368
4368
|
|
|
4369
4369
|
## Actions
|
|
4370
4370
|
|
|
@@ -4693,7 +4693,7 @@ type ControlSize = "sm" | "md";
|
|
|
4693
4693
|
- The label stays on one line; keep it short rather than let it wrap.
|
|
4694
4694
|
- No icon slot: an icon goes among the children, before the label, and the button sets its size.
|
|
4695
4695
|
|
|
4696
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
4696
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
4697
4697
|
|
|
4698
4698
|
### IconButton
|
|
4699
4699
|
|
|
@@ -5050,7 +5050,7 @@ type ControlSize = "sm" | "md";
|
|
|
5050
5050
|
- The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
|
|
5051
5051
|
- A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
|
|
5052
5052
|
|
|
5053
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5053
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5054
5054
|
|
|
5055
5055
|
### ButtonGroup
|
|
5056
5056
|
|
|
@@ -5410,7 +5410,7 @@ type ControlSize = "sm" | "md";
|
|
|
5410
5410
|
|
|
5411
5411
|
- No toggle or segmented state; a choice that stays is a radio group.
|
|
5412
5412
|
|
|
5413
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5413
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5414
5414
|
|
|
5415
5415
|
## Forms
|
|
5416
5416
|
|
|
@@ -5767,17 +5767,17 @@ Also takes every attribute of `<input>` – without `size`, `value`.
|
|
|
5767
5767
|
- No input masks or formatting while typing; check the value on leave or on submit.
|
|
5768
5768
|
- No validation of its own: the error is the application's, handed to the `FormField`.
|
|
5769
5769
|
|
|
5770
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5770
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5771
5771
|
|
|
5772
5772
|
### FormField
|
|
5773
5773
|
|
|
5774
5774
|
The frame around a field: its label, a hint below it and the error that replaces the hint (validation messages). Wrap every field in one, so the question, the help and the problem are read out together.
|
|
5775
5775
|
|
|
5776
5776
|
```ts
|
|
5777
|
-
import { FormField, useFormField } from "@umriss-ui/core";
|
|
5777
|
+
import { FormField, useFormField, FormFieldBoundary } from "@umriss-ui/core";
|
|
5778
5778
|
```
|
|
5779
5779
|
|
|
5780
|
-
Every field of Forms, Choosing and Dates and times reads its id, description, invalid and required state from the surrounding `FormField`; an `error` marks the field invalid by itself. A control of your own gets the same through [`useFormField`](#api-index-1).
|
|
5780
|
+
Every field of Forms, Choosing and Dates and times reads its id, description, invalid and required state from the surrounding `FormField`; an `error` marks the field invalid by itself. A control of your own gets the same through [`useFormField`](#api-index-1). A panel that opens from a field and holds fields of its own (a search box, option checkboxes) stands inside a `FormFieldBoundary`, so they do not take the outer field's id.
|
|
5781
5781
|
|
|
5782
5782
|
`required` sets the mark and `aria-required`; it checks nothing. When and how a value is checked stays with the application.
|
|
5783
5783
|
|
|
@@ -6068,6 +6068,27 @@ export default function PostToAForm() {
|
|
|
6068
6068
|
}
|
|
6069
6069
|
```
|
|
6070
6070
|
|
|
6071
|
+
##### A panel with its own fields
|
|
6072
|
+
|
|
6073
|
+
Fields inside a `FormFieldBoundary` do not take the surrounding field's id: a click on their label stays with them.
|
|
6074
|
+
|
|
6075
|
+
```tsx
|
|
6076
|
+
import { Checkbox, FormField, FormFieldBoundary, Stack } from "@umriss-ui/core";
|
|
6077
|
+
|
|
6078
|
+
export default function APanelWithItsOwnFields() {
|
|
6079
|
+
return (
|
|
6080
|
+
<FormField label="Notify teams" style={{ maxWidth: 360 }}>
|
|
6081
|
+
<FormFieldBoundary>
|
|
6082
|
+
<Stack gap={1}>
|
|
6083
|
+
<Checkbox label="Payments" defaultChecked />
|
|
6084
|
+
<Checkbox label="Identity" />
|
|
6085
|
+
</Stack>
|
|
6086
|
+
</FormFieldBoundary>
|
|
6087
|
+
</FormField>
|
|
6088
|
+
);
|
|
6089
|
+
}
|
|
6090
|
+
```
|
|
6091
|
+
|
|
6071
6092
|
#### Keyboard
|
|
6072
6093
|
|
|
6073
6094
|
The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox), [Select](#select), [DatePicker](#datepicker) and [Button](#button) apply here.
|
|
@@ -6078,8 +6099,8 @@ The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox),
|
|
|
6078
6099
|
|
|
6079
6100
|
| Prop | Type | Default | Description |
|
|
6080
6101
|
|---|---|---|---|
|
|
6081
|
-
| `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
|
|
6082
|
-
| `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and
|
|
6102
|
+
| `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 110 more |
|
|
6103
|
+
| `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 45 more |
|
|
6083
6104
|
| `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 25 more |
|
|
6084
6105
|
| `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 |
|
|
6085
6106
|
| `fieldId` | `string` | — | Optional: a fixed id for the input element (instead of a generated one).<br>Shown in: [Sum up a form's errors (Alert)](#alert) |
|
|
@@ -6088,12 +6109,18 @@ The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox),
|
|
|
6088
6109
|
|
|
6089
6110
|
Also takes every attribute of `<div>`.
|
|
6090
6111
|
|
|
6112
|
+
##### `FormFieldBoundaryProps`
|
|
6113
|
+
|
|
6114
|
+
| Prop | Type | Default | Description |
|
|
6115
|
+
|---|---|---|---|
|
|
6116
|
+
| `children` *required* | `ReactNode` | — | What stands outside the field's wiring.<br>Shown in: [A panel with its own fields](#formfield) |
|
|
6117
|
+
|
|
6091
6118
|
#### Known limits
|
|
6092
6119
|
|
|
6093
6120
|
- 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.
|
|
6094
6121
|
- One field per `FormField`; a group of fields that share one label is a fieldset of your own.
|
|
6095
6122
|
|
|
6096
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6123
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6097
6124
|
|
|
6098
6125
|
### Textarea
|
|
6099
6126
|
|
|
@@ -6283,7 +6310,7 @@ Also takes every attribute of `<textarea>` – without `cols`, `value`.
|
|
|
6283
6310
|
|
|
6284
6311
|
- Plain text only: no formatting, mentions or rich text.
|
|
6285
6312
|
|
|
6286
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6313
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6287
6314
|
|
|
6288
6315
|
### NumberInput
|
|
6289
6316
|
|
|
@@ -6533,7 +6560,7 @@ export default function YearWithoutGrouping() {
|
|
|
6533
6560
|
| `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) |
|
|
6534
6561
|
| `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) |
|
|
6535
6562
|
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
6536
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [
|
|
6563
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [Start with an instant (DateTimePicker)](#datetimepicker) and 1 more |
|
|
6537
6564
|
| `formValue` | `(value: number) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
6538
6565
|
|
|
6539
6566
|
Also takes every attribute of `<input>` – without `defaultValue`, `name`, `onChange`, `prefix`, `size`, `type`, `value`.
|
|
@@ -6543,7 +6570,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `name`, `onC
|
|
|
6543
6570
|
- No expressions: “12*4” is not calculated.
|
|
6544
6571
|
- No currency conversion; the unit is a label.
|
|
6545
6572
|
|
|
6546
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6573
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6547
6574
|
|
|
6548
6575
|
### Slider
|
|
6549
6576
|
|
|
@@ -6732,7 +6759,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
|
|
|
6732
6759
|
- One thumb: a range with two ends is the RangeSlider.
|
|
6733
6760
|
- Marks show values; they do not catch the thumb.
|
|
6734
6761
|
|
|
6735
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6762
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6736
6763
|
|
|
6737
6764
|
### RangeSlider
|
|
6738
6765
|
|
|
@@ -6873,7 +6900,7 @@ type RangeSliderValue = readonly [from: number, to: number];
|
|
|
6873
6900
|
- No marks on the track; use the Slider's where marks are needed.
|
|
6874
6901
|
- The ends may meet; no minimum gap between them is kept.
|
|
6875
6902
|
|
|
6876
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6903
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6877
6904
|
|
|
6878
6905
|
### Checkbox
|
|
6879
6906
|
|
|
@@ -7019,7 +7046,7 @@ export default function WithAnError() {
|
|
|
7019
7046
|
|
|
7020
7047
|
| Prop | Type | Default | Description |
|
|
7021
7048
|
|---|---|---|---|
|
|
7022
|
-
| `label` | `ReactNode` | — | Label to the right of the checkbox.<br>Shown in: [Configurator](#checkbox), [Checkbox](#checkbox), [States](#checkbox) and
|
|
7049
|
+
| `label` | `ReactNode` | — | Label to the right of the checkbox.<br>Shown in: [Configurator](#checkbox), [Checkbox](#checkbox), [States](#checkbox) and 13 more |
|
|
7023
7050
|
| `indeterminate` | `boolean` | `false` | Partially checked (e.g. "select all" with a mixed selection).<br>Shown in: [Configurator](#checkbox), [States](#checkbox), [Select all with a mixed state](#checkbox) |
|
|
7024
7051
|
| `invalid` | `boolean` | — | Marks the checkbox as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [With an error](#checkbox) |
|
|
7025
7052
|
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
@@ -7246,7 +7273,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
|
|
|
7246
7273
|
|
|
7247
7274
|
- No pending or loading state; while your application applies the change, disable the switch or say so beside it.
|
|
7248
7275
|
|
|
7249
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7276
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7250
7277
|
|
|
7251
7278
|
### RadioGroup
|
|
7252
7279
|
|
|
@@ -7700,7 +7727,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
7700
7727
|
- Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
|
|
7701
7728
|
- No icons and no line of explanation in a segment; several chosen at once is not this control.
|
|
7702
7729
|
|
|
7703
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7730
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7704
7731
|
|
|
7705
7732
|
### FileInput
|
|
7706
7733
|
|
|
@@ -8017,6 +8044,24 @@ export default function ProgressAndThumbnails() {
|
|
|
8017
8044
|
}
|
|
8018
8045
|
```
|
|
8019
8046
|
|
|
8047
|
+
##### Start with files
|
|
8048
|
+
|
|
8049
|
+
`defaultValue` lists the files an uncontrolled field starts with; a form reset returns to them.
|
|
8050
|
+
|
|
8051
|
+
```tsx
|
|
8052
|
+
import { FileInput, FormField } from "@umriss-ui/core";
|
|
8053
|
+
|
|
8054
|
+
const ATTACHED = [new File([new Uint8Array(96_000)], "invoice-2026-0412.pdf", { type: "application/pdf" })];
|
|
8055
|
+
|
|
8056
|
+
export default function StartWithFiles() {
|
|
8057
|
+
return (
|
|
8058
|
+
<FormField label="Invoice" hint="Replace it by choosing another file." style={{ maxWidth: 420 }}>
|
|
8059
|
+
<FileInput accept=".pdf" defaultValue={ATTACHED} />
|
|
8060
|
+
</FormField>
|
|
8061
|
+
);
|
|
8062
|
+
}
|
|
8063
|
+
```
|
|
8064
|
+
|
|
8020
8065
|
#### Keyboard
|
|
8021
8066
|
|
|
8022
8067
|
| Key | Action |
|
|
@@ -8029,7 +8074,7 @@ export default function ProgressAndThumbnails() {
|
|
|
8029
8074
|
|
|
8030
8075
|
| Prop | Type | Default | Description |
|
|
8031
8076
|
|---|---|---|---|
|
|
8032
|
-
| `defaultValue` | `readonly File[]` | `[]` | Uncontrolled: the files to start with
|
|
8077
|
+
| `defaultValue` | `readonly File[]` | `[]` | Uncontrolled: the files to start with.<br>Shown in: [Start with files](#fileinput) |
|
|
8033
8078
|
| `value` | `readonly File[]` | — | Controlled: the chosen files; `undefined` reads as none. Uncontrolled, the input keeps its own, from `defaultValue`.<br>Shown in: [Several files](#fileinput), [With an error](#fileinput), [Require a file before sending](#fileinput) and 2 more |
|
|
8034
8079
|
| `onValueChange` | `(files: File[]) => void` | — | Reports the files after a choice, a drop or a removal - only those `accept` takes, and one where the input takes one.<br>Shown in: [Several files](#fileinput), [With an error](#fileinput), [Require a file before sending](#fileinput) and 2 more |
|
|
8035
8080
|
| `invalid` | `boolean` | — | Marks the input as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [With an error](#fileinput) |
|
|
@@ -8041,7 +8086,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
|
|
|
8041
8086
|
|
|
8042
8087
|
- No upload, no progress and no size limit of its own; those belong to the application sending the files.
|
|
8043
8088
|
|
|
8044
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8089
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8045
8090
|
|
|
8046
8091
|
## Choosing
|
|
8047
8092
|
|
|
@@ -8240,7 +8285,7 @@ Also takes every attribute of `<select>` – without `defaultValue`, `size`, `va
|
|
|
8240
8285
|
|
|
8241
8286
|
- The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
|
|
8242
8287
|
|
|
8243
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8288
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8244
8289
|
|
|
8245
8290
|
### Combobox
|
|
8246
8291
|
|
|
@@ -8637,7 +8682,7 @@ export default function ANewValue() {
|
|
|
8637
8682
|
| `loading` | `boolean` | `false` | Results are on their way: the list shows the wording's "Loading" line where it would show the empty text, below any `options` given, and is `aria-busy`.<br>Shown in: [Search with the server](#combobox) |
|
|
8638
8683
|
| `creatable` | `boolean` | `false` | For string values: typed text that fits no option's label is offered as a last row, `Add "text"`, and Enter or a click makes it the value - reported through `onValueChange` like a choice. The field then shows the text itself, and the form posts it.<br>Shown in: [A value that is new](#combobox) |
|
|
8639
8684
|
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
8640
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [
|
|
8685
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [Start with an instant (DateTimePicker)](#datetimepicker) and 1 more |
|
|
8641
8686
|
| `formValue` | `(value: T) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
8642
8687
|
|
|
8643
8688
|
###### Events
|
|
@@ -8662,7 +8707,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
|
|
|
8662
8707
|
- Only an option can be chosen, unless `creatable` takes typed text as the value (string values only).
|
|
8663
8708
|
- No request of its own: `onSearch` reports the typed text and you fetch, debounce and cancel; `filter={false}` shows what you return.
|
|
8664
8709
|
|
|
8665
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8710
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8666
8711
|
|
|
8667
8712
|
### MultiSelect
|
|
8668
8713
|
|
|
@@ -8951,7 +8996,7 @@ export default function ThousandsOfAssets() {
|
|
|
8951
8996
|
| `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` – by hand only necessary without `FormField`.<br>Shown in: [Configurator](#multiselect), [With an error](#multiselect) |
|
|
8952
8997
|
| `clearable` | `boolean` | `false` | Shows a cross beside the chips that empties the selection, as "Select none" does: a chosen value whose option is disabled stays. The field keeps room for it, chosen values or none, so that it never moves.<br>Shown in: [Configurator](#multiselect), [Filter incidents by service](#multiselect), [Thousands of assets](#multiselect) and 1 more |
|
|
8953
8998
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
8954
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [
|
|
8999
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [Start with an instant (DateTimePicker)](#datetimepicker) and 1 more |
|
|
8955
9000
|
| `formValue` | `(value: T) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
8956
9001
|
|
|
8957
9002
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
@@ -9230,7 +9275,7 @@ export default function InAForm() {
|
|
|
9230
9275
|
| `swatches` | `readonly ``ColorSwatch``[]` | no default | The application's own colours as one-click choices in the panel, named for a screen reader and on hover; the one matching the colour is pressed.<br>Shown in: [Choose from a palette](#colorpicker) |
|
|
9231
9276
|
| `contrastAgainst` | `readonly ``ColorSwatch``[]` | core's light and dark surface | The surfaces the panel measures the colour against, each with its contrast ratio and Pass or Fail at 3:1 (WCAG 1.4.11 - for marks and lines, not text). An empty list hides the readout.<br>Shown in: [Contrast against your surfaces](#colorpicker) |
|
|
9232
9277
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9233
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [In a form](#colorpicker), [Post to a form (FormField)](#formfield), [
|
|
9278
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [In a form](#colorpicker), [Post to a form (FormField)](#formfield), [Start with an instant (DateTimePicker)](#datetimepicker) and 1 more |
|
|
9234
9279
|
| `formValue` | `(value: string) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [In a form](#colorpicker), [Post to a form (FormField)](#formfield) |
|
|
9235
9280
|
|
|
9236
9281
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
@@ -9246,7 +9291,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
9246
9291
|
|
|
9247
9292
|
- Hex only: no alpha, no `rgb()`, `hsl()` or `oklch()`.
|
|
9248
9293
|
|
|
9249
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9294
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9250
9295
|
|
|
9251
9296
|
## Dates and times
|
|
9252
9297
|
|
|
@@ -9257,10 +9302,10 @@ Where a user picks a day, a moment or a span of them from a calendar that opens.
|
|
|
9257
9302
|
One day, picked in a calendar (date field): a delivery date, a due date. Weeks begin on Monday.
|
|
9258
9303
|
|
|
9259
9304
|
```ts
|
|
9260
|
-
import { DatePicker } from "@umriss-ui/core";
|
|
9305
|
+
import { DatePicker, CalendarGlyph } from "@umriss-ui/core";
|
|
9261
9306
|
```
|
|
9262
9307
|
|
|
9263
|
-
The value contract of the four pickers stands here. `DatePicker` hands out a `Date` at local midnight on every path and reports as soon as the day is chosen. [DateTimePicker](#datetimepicker) hands out an instant and reports only on Apply, Now or Clear. [DateRangePicker](#daterangepicker) gives both ends at local midnight, both inclusive. [DateTimeRangePicker](#datetimerangepicker) sets an all-day end to the end of the day, not to its midnight.
|
|
9308
|
+
The calendar leaf on the pickers' triggers is `CalendarGlyph`; with `range` it carries the bar of the range pickers. The value contract of the four pickers stands here. `DatePicker` hands out a `Date` at local midnight on every path and reports as soon as the day is chosen. [DateTimePicker](#datetimepicker) hands out an instant and reports only on Apply, Now or Clear. [DateRangePicker](#daterangepicker) gives both ends at local midnight, both inclusive. [DateTimeRangePicker](#datetimerangepicker) sets an all-day end to the end of the day, not to its midnight.
|
|
9264
9309
|
|
|
9265
9310
|
`null` means no date, never 1 January 1970. A range never comes out backwards: ends picked in reverse are swapped, so there is no error state to handle. A time that falls into a clock change is named in the panel, never guessed: a skipped hour moves forward, and a doubled hour asks which of the two.
|
|
9266
9311
|
|
|
@@ -9408,6 +9453,27 @@ export default function FromTheFirstReadingToToday() {
|
|
|
9408
9453
|
}
|
|
9409
9454
|
```
|
|
9410
9455
|
|
|
9456
|
+
##### The calendar glyph
|
|
9457
|
+
|
|
9458
|
+
`CalendarGlyph` is the leaf on the pickers' triggers; `range` adds the bar of the range pickers, `size` is in pixels.
|
|
9459
|
+
|
|
9460
|
+
```tsx
|
|
9461
|
+
import { CalendarGlyph, Stack, Text } from "@umriss-ui/core";
|
|
9462
|
+
|
|
9463
|
+
export default function TheCalendarGlyph() {
|
|
9464
|
+
return (
|
|
9465
|
+
<Stack gap={2}>
|
|
9466
|
+
<Text>
|
|
9467
|
+
<CalendarGlyph size={14} /> Delivery date
|
|
9468
|
+
</Text>
|
|
9469
|
+
<Text>
|
|
9470
|
+
<CalendarGlyph range size={14} /> Reporting period
|
|
9471
|
+
</Text>
|
|
9472
|
+
</Stack>
|
|
9473
|
+
);
|
|
9474
|
+
}
|
|
9475
|
+
```
|
|
9476
|
+
|
|
9411
9477
|
#### When to use something else
|
|
9412
9478
|
|
|
9413
9479
|
- A day and a time of day → DateTimePicker
|
|
@@ -9440,17 +9506,27 @@ export default function FromTheFirstReadingToToday() {
|
|
|
9440
9506
|
| `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given.<br>Shown in: [From the first reading to today](#datepicker) |
|
|
9441
9507
|
| `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is.<br>Shown in: [From the first reading to today](#datepicker) |
|
|
9442
9508
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9443
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [
|
|
9509
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [Start with an instant (DateTimePicker)](#datetimepicker) and 1 more |
|
|
9444
9510
|
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
9445
9511
|
|
|
9446
9512
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
9447
9513
|
|
|
9514
|
+
##### `CalendarGlyphProps`
|
|
9515
|
+
|
|
9516
|
+
| Prop | Type | Default | Description |
|
|
9517
|
+
|---|---|---|---|
|
|
9518
|
+
| `range` | `boolean` | `false` | Draws a bar across the sheet for the span a range picker chooses.<br>Shown in: [The calendar glyph](#datepicker) |
|
|
9519
|
+
| `size` | `number` | `12` | Edge length in pixels. Each glyph has the size it is drawn at in the components. From `GlyphProps`.<br>Shown in: [The calendar glyph](#datepicker), [The tone glyph (Alert)](#alert) |
|
|
9520
|
+
| `ref` | `Ref<SVGSVGElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9521
|
+
|
|
9522
|
+
Also takes every attribute of `<svg>` – without `children`, `viewBox`.
|
|
9523
|
+
|
|
9448
9524
|
#### Known limits
|
|
9449
9525
|
|
|
9450
9526
|
- No typing of a date into the field.
|
|
9451
9527
|
- 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)).
|
|
9452
9528
|
|
|
9453
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9529
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9454
9530
|
|
|
9455
9531
|
### DateTimePicker
|
|
9456
9532
|
|
|
@@ -9576,6 +9652,22 @@ export default function WithAnError() {
|
|
|
9576
9652
|
}
|
|
9577
9653
|
```
|
|
9578
9654
|
|
|
9655
|
+
##### Start with an instant
|
|
9656
|
+
|
|
9657
|
+
`defaultValue` is the instant an uncontrolled picker starts with; add `name` to post it with a form.
|
|
9658
|
+
|
|
9659
|
+
```tsx
|
|
9660
|
+
import { DateTimePicker, FormField } from "@umriss-ui/core";
|
|
9661
|
+
|
|
9662
|
+
export default function StartWithAnInstant() {
|
|
9663
|
+
return (
|
|
9664
|
+
<FormField label="Maintenance starts" style={{ maxWidth: 320 }}>
|
|
9665
|
+
<DateTimePicker name="starts" defaultValue={new Date(2026, 2, 17, 22, 0)} clearable />
|
|
9666
|
+
</FormField>
|
|
9667
|
+
);
|
|
9668
|
+
}
|
|
9669
|
+
```
|
|
9670
|
+
|
|
9579
9671
|
#### When to use something else
|
|
9580
9672
|
|
|
9581
9673
|
- A day without a time → DatePicker
|
|
@@ -9598,7 +9690,7 @@ export default function WithAnError() {
|
|
|
9598
9690
|
|
|
9599
9691
|
| Prop | Type | Default | Description |
|
|
9600
9692
|
|---|---|---|---|
|
|
9601
|
-
| `defaultValue` | `Date \| null` | `null` | Uncontrolled: the value to start at
|
|
9693
|
+
| `defaultValue` | `Date \| null` | `null` | Uncontrolled: the value to start at.<br>Shown in: [Start with an instant](#datetimepicker) |
|
|
9602
9694
|
| `value` | `Date \| null` | — | The instant; `null` means none. The panel reads and sets its day and wall clock in the formats' zone (the reader's, unless the application names one).<br>Shown in: [Configurator](#datetimepicker), [Set an instant](#datetimepicker), [With seconds](#datetimepicker) and 3 more |
|
|
9603
9695
|
| `onValueChange` | `(date: Date \| null) => void` | — | Runs only on completion - "Apply", "Now" or "Clear" - and not already on the click on a day: a day without a time would be a half-set value here, and a half value is no value.<br>Shown in: [Configurator](#datetimepicker), [Set an instant](#datetimepicker), [With seconds](#datetimepicker) and 3 more |
|
|
9604
9696
|
| `withSeconds` | `boolean` | `false` | Show the seconds field.<br>Shown in: [Configurator](#datetimepicker), [With seconds](#datetimepicker) |
|
|
@@ -9607,11 +9699,11 @@ export default function WithAnError() {
|
|
|
9607
9699
|
| `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#datetimepicker), [States](#datetimepicker) |
|
|
9608
9700
|
| `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, glyph and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as its longest value in the formats in use, so a date never truncates.<br>Shown in: [Configurator](#datetimepicker) |
|
|
9609
9701
|
| `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#datetimepicker), [With an error](#datetimepicker) |
|
|
9610
|
-
| `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. Without it no way to empty the value is offered.<br>Shown in: [Configurator](#datetimepicker), [Set an instant](#datetimepicker), [States](#datetimepicker) |
|
|
9702
|
+
| `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. Without it no way to empty the value is offered.<br>Shown in: [Configurator](#datetimepicker), [Set an instant](#datetimepicker), [States](#datetimepicker) and 1 more |
|
|
9611
9703
|
| `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given. |
|
|
9612
9704
|
| `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is. |
|
|
9613
9705
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9614
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker)
|
|
9706
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Start with an instant](#datetimepicker), [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) and 1 more |
|
|
9615
9707
|
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
9616
9708
|
|
|
9617
9709
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
@@ -9620,7 +9712,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
9620
9712
|
|
|
9621
9713
|
- 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)).
|
|
9622
9714
|
|
|
9623
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9715
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9624
9716
|
|
|
9625
9717
|
### TimeInput
|
|
9626
9718
|
|
|
@@ -9729,7 +9821,7 @@ export default function StatesAndAForm() {
|
|
|
9729
9821
|
| `invalid` | `boolean` | — | Marks the field as invalid. Inside a `FormField` with an `error`, it is set already.<br>Shown in: [Configurator](#timeinput) |
|
|
9730
9822
|
| `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | The size of the fields.<br>Shown in: [Configurator](#timeinput) |
|
|
9731
9823
|
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9732
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [States and a form](#timeinput), [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
9824
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [States and a form](#timeinput), [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) and 1 more |
|
|
9733
9825
|
| `formValue` | `(value: string) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
9734
9826
|
|
|
9735
9827
|
Also takes every attribute of `<input>` – without `defaultValue`, `max`, `min`, `name`, `onChange`, `size`, `step`, `type`, `value`.
|
|
@@ -9738,7 +9830,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `max`, `min`
|
|
|
9738
9830
|
|
|
9739
9831
|
- No 12-hour clock and no time zone: a time of day is the text it is written as.
|
|
9740
9832
|
|
|
9741
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9833
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9742
9834
|
|
|
9743
9835
|
### DateRangePicker
|
|
9744
9836
|
|
|
@@ -9943,13 +10035,13 @@ export default function PresetsCutToABound() {
|
|
|
9943
10035
|
| `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#daterangepicker), [States](#daterangepicker) |
|
|
9944
10036
|
| `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, glyph and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as its longest value in the formats in use, so a date never truncates.<br>Shown in: [Configurator](#daterangepicker) |
|
|
9945
10037
|
| `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. Without it no way to empty the value is offered.<br>Shown in: [Configurator](#daterangepicker), [A span of days](#daterangepicker), [Presets](#daterangepicker) and 3 more |
|
|
9946
|
-
| `presets` | `RangePreset``[]` | `DEFAULT_PRESETS`, in the wording's labels | The quick-select column in the panel. An empty array hides the column.<br>Shown in: [Presets](#daterangepicker) |
|
|
10038
|
+
| `presets` | `readonly ``RangePreset``[]` | `DEFAULT_PRESETS`, in the wording's labels | The quick-select column in the panel. An empty array hides the column.<br>Shown in: [Presets](#daterangepicker) |
|
|
9947
10039
|
| `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given.<br>Shown in: [Presets cut to a bound](#daterangepicker) |
|
|
9948
10040
|
| `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is.<br>Shown in: [Presets cut to a bound](#daterangepicker) |
|
|
9949
10041
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9950
|
-
| `startName` | `string` | `${name}Start` | The name the start is posted under. From `FormPostRangeProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
9951
|
-
| `endName` | `string` | `${name}End` | The name the end is posted under. From `FormPostRangeProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
9952
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [
|
|
10042
|
+
| `startName` | `string` | `${name}Start` | The name the start is posted under. From `FormPostRangeProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [Start with a window (DateTimeRangePicker)](#datetimerangepicker) |
|
|
10043
|
+
| `endName` | `string` | `${name}End` | The name the end is posted under. From `FormPostRangeProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [Start with a window (DateTimeRangePicker)](#datetimerangepicker) |
|
|
10044
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [Start with an instant (DateTimePicker)](#datetimepicker) and 1 more |
|
|
9953
10045
|
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
9954
10046
|
|
|
9955
10047
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
@@ -9963,8 +10055,8 @@ A span between two dates, both ends included - the value of
|
|
|
9963
10055
|
|
|
9964
10056
|
| Prop | Type | Default | Description |
|
|
9965
10057
|
|---|---|---|---|
|
|
9966
|
-
| `from` *required* | `Date` | — | <br>Shown in: [A span of days](#daterangepicker), [Presets](#daterangepicker), [States](#daterangepicker) and
|
|
9967
|
-
| `to` *required* | `Date` | — | <br>Shown in: [A span of days](#daterangepicker), [Presets](#daterangepicker), [States](#daterangepicker) and
|
|
10058
|
+
| `from` *required* | `Date` | — | <br>Shown in: [A span of days](#daterangepicker), [Presets](#daterangepicker), [States](#daterangepicker) and 8 more |
|
|
10059
|
+
| `to` *required* | `Date` | — | <br>Shown in: [A span of days](#daterangepicker), [Presets](#daterangepicker), [States](#daterangepicker) and 8 more |
|
|
9968
10060
|
|
|
9969
10061
|
###### `RangePreset`
|
|
9970
10062
|
|
|
@@ -9981,7 +10073,7 @@ the moment of the click.
|
|
|
9981
10073
|
|
|
9982
10074
|
- One span; no list of separate days.
|
|
9983
10075
|
|
|
9984
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10076
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9985
10077
|
|
|
9986
10078
|
### DateTimeRangePicker
|
|
9987
10079
|
|
|
@@ -10127,6 +10219,27 @@ export default function WithAnError() {
|
|
|
10127
10219
|
}
|
|
10128
10220
|
```
|
|
10129
10221
|
|
|
10222
|
+
##### Start with a window
|
|
10223
|
+
|
|
10224
|
+
`defaultValue` is the window an uncontrolled picker starts with; `startName` and `endName` post both ends with a form.
|
|
10225
|
+
|
|
10226
|
+
```tsx
|
|
10227
|
+
import { DateTimeRangePicker, FormField } from "@umriss-ui/core";
|
|
10228
|
+
|
|
10229
|
+
export default function StartWithAWindow() {
|
|
10230
|
+
return (
|
|
10231
|
+
<FormField label="Planned downtime" style={{ maxWidth: 360 }}>
|
|
10232
|
+
<DateTimeRangePicker
|
|
10233
|
+
startName="downtimeFrom"
|
|
10234
|
+
endName="downtimeTo"
|
|
10235
|
+
defaultValue={{ from: new Date(2026, 2, 17, 22, 0), to: new Date(2026, 2, 18, 2, 0) }}
|
|
10236
|
+
clearable
|
|
10237
|
+
/>
|
|
10238
|
+
</FormField>
|
|
10239
|
+
);
|
|
10240
|
+
}
|
|
10241
|
+
```
|
|
10242
|
+
|
|
10130
10243
|
#### When to use something else
|
|
10131
10244
|
|
|
10132
10245
|
- Whole days only → DateRangePicker
|
|
@@ -10148,7 +10261,7 @@ export default function WithAnError() {
|
|
|
10148
10261
|
|
|
10149
10262
|
| Prop | Type | Default | Description |
|
|
10150
10263
|
|---|---|---|---|
|
|
10151
|
-
| `defaultValue` | `DateRange`` \| null` | `null` | Uncontrolled: the value to start at
|
|
10264
|
+
| `defaultValue` | `DateRange`` \| null` | `null` | Uncontrolled: the value to start at.<br>Shown in: [Start with a window](#datetimerangepicker) |
|
|
10152
10265
|
| `value` | `DateRange`` \| null` | — | The time span with times at both ends; `null` means none. The panel reads and sets days and wall clocks in the formats' zone (the reader's, unless the application names one).<br>Shown in: [Configurator](#datetimerangepicker), [A downtime window](#datetimerangepicker), [With seconds](#datetimerangepicker) and 3 more |
|
|
10153
10266
|
| `onValueChange` | `(range: ``DateRange`` \| null) => void` | — | Runs only on "Apply" and on clearing (`null`), never between the two clicks. If the end lies before the start, both swap on applying - there is no error state.<br>Shown in: [Configurator](#datetimerangepicker), [A downtime window](#datetimerangepicker), [With seconds](#datetimerangepicker) and 3 more |
|
|
10154
10267
|
| `withSeconds` | `boolean` | `false` | Show the seconds fields.<br>Shown in: [Configurator](#datetimerangepicker), [With seconds](#datetimerangepicker) |
|
|
@@ -10157,14 +10270,14 @@ export default function WithAnError() {
|
|
|
10157
10270
|
| `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#datetimerangepicker), [With an error](#datetimerangepicker) |
|
|
10158
10271
|
| `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#datetimerangepicker), [States](#datetimerangepicker) |
|
|
10159
10272
|
| `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, glyph and cross. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as its longest value in the formats in use, so a date never truncates.<br>Shown in: [Configurator](#datetimerangepicker) |
|
|
10160
|
-
| `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. Without it no way to empty the value is offered.<br>Shown in: [Configurator](#datetimerangepicker), [A downtime window](#datetimerangepicker), [States](#datetimerangepicker) |
|
|
10161
|
-
| `presets` | `RangePreset``[]` | `DEFAULT_PRESETS`, in the wording's labels | The quick-select column in the panel; presets apply for the whole day and close immediately. An empty array hides the column.<br>Shown in: [With seconds](#datetimerangepicker) |
|
|
10273
|
+
| `clearable` | `boolean` | `false` | Shows a cross where a value is set, which fades in on hover/focus and clears the value, and the open panel offers Clear. Without it no way to empty the value is offered.<br>Shown in: [Configurator](#datetimerangepicker), [A downtime window](#datetimerangepicker), [States](#datetimerangepicker) and 1 more |
|
|
10274
|
+
| `presets` | `readonly ``RangePreset``[]` | `DEFAULT_PRESETS`, in the wording's labels | The quick-select column in the panel; presets apply for the whole day and close immediately. An empty array hides the column.<br>Shown in: [With seconds](#datetimerangepicker) |
|
|
10162
10275
|
| `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given. |
|
|
10163
10276
|
| `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is. |
|
|
10164
10277
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
10165
|
-
| `startName` | `string` | `${name}Start` | The name the start is posted under. From `FormPostRangeProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
10166
|
-
| `endName` | `string` | `${name}End` | The name the end is posted under. From `FormPostRangeProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
10167
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [
|
|
10278
|
+
| `startName` | `string` | `${name}Start` | The name the start is posted under. From `FormPostRangeProps`.<br>Shown in: [Start with a window](#datetimerangepicker), [Post to a form (FormField)](#formfield) |
|
|
10279
|
+
| `endName` | `string` | `${name}End` | The name the end is posted under. From `FormPostRangeProps`.<br>Shown in: [Start with a window](#datetimerangepicker), [Post to a form (FormField)](#formfield) |
|
|
10280
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [Start with an instant (DateTimePicker)](#datetimepicker) and 1 more |
|
|
10168
10281
|
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
10169
10282
|
|
|
10170
10283
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
@@ -10178,8 +10291,8 @@ A span between two dates, both ends included - the value of
|
|
|
10178
10291
|
|
|
10179
10292
|
| Prop | Type | Default | Description |
|
|
10180
10293
|
|---|---|---|---|
|
|
10181
|
-
| `from` *required* | `Date` | — | <br>Shown in: [A downtime window](#datetimerangepicker), [With seconds](#datetimerangepicker), [States](#datetimerangepicker) and
|
|
10182
|
-
| `to` *required* | `Date` | — | <br>Shown in: [A downtime window](#datetimerangepicker), [With seconds](#datetimerangepicker), [States](#datetimerangepicker) and
|
|
10294
|
+
| `from` *required* | `Date` | — | <br>Shown in: [A downtime window](#datetimerangepicker), [With seconds](#datetimerangepicker), [States](#datetimerangepicker) and 8 more |
|
|
10295
|
+
| `to` *required* | `Date` | — | <br>Shown in: [A downtime window](#datetimerangepicker), [With seconds](#datetimerangepicker), [States](#datetimerangepicker) and 8 more |
|
|
10183
10296
|
|
|
10184
10297
|
###### `RangePreset`
|
|
10185
10298
|
|
|
@@ -10197,7 +10310,7 @@ the moment of the click.
|
|
|
10197
10310
|
- 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)).
|
|
10198
10311
|
- No recurring windows.
|
|
10199
10312
|
|
|
10200
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10313
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10201
10314
|
|
|
10202
10315
|
## Feedback
|
|
10203
10316
|
|
|
@@ -10347,7 +10460,7 @@ Also takes every attribute of `<svg>`.
|
|
|
10347
10460
|
|
|
10348
10461
|
- One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
|
|
10349
10462
|
|
|
10350
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10463
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10351
10464
|
|
|
10352
10465
|
### ProgressBar
|
|
10353
10466
|
|
|
@@ -10530,7 +10643,7 @@ Also takes every attribute of `<div>`.
|
|
|
10530
10643
|
|
|
10531
10644
|
- No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
|
|
10532
10645
|
|
|
10533
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10646
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10534
10647
|
|
|
10535
10648
|
### Skeleton
|
|
10536
10649
|
|
|
@@ -10687,20 +10800,22 @@ Also takes every attribute of `<span>`.
|
|
|
10687
10800
|
|
|
10688
10801
|
- It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
|
|
10689
10802
|
|
|
10690
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10803
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10691
10804
|
|
|
10692
10805
|
### Alert
|
|
10693
10806
|
|
|
10694
10807
|
A message that stays in the page until its matter is settled (also called a banner or callout). Reach for it when the reader must notice something here: a failed import, an approval waiting, a form that did not save.
|
|
10695
10808
|
|
|
10696
10809
|
```ts
|
|
10697
|
-
import { Alert } from "@umriss-ui/core";
|
|
10810
|
+
import { Alert, ToneGlyph } from "@umriss-ui/core";
|
|
10698
10811
|
```
|
|
10699
10812
|
|
|
10700
10813
|
`warning` and `danger` interrupt a screen reader at once; `neutral`, `accent` and `success` are read out politely when the reader is free. Choose the tone by what the reader has to do, not by the colour you want.
|
|
10701
10814
|
|
|
10702
10815
|
Dismissing is reported through `onDismiss` and nothing more: whether and when the message comes back is your state.
|
|
10703
10816
|
|
|
10817
|
+
The icon beside the text is `ToneGlyph`, which a message of your own can use to say its tone by shape as well as by colour.
|
|
10818
|
+
|
|
10704
10819
|
#### Examples
|
|
10705
10820
|
|
|
10706
10821
|
##### A message
|
|
@@ -10848,6 +10963,30 @@ export default function AboveAForm() {
|
|
|
10848
10963
|
}
|
|
10849
10964
|
```
|
|
10850
10965
|
|
|
10966
|
+
##### The tone glyph
|
|
10967
|
+
|
|
10968
|
+
`ToneGlyph` is the icon the tones use: a message of your own can say its tone by shape as well as by colour; `size` is in pixels.
|
|
10969
|
+
|
|
10970
|
+
```tsx
|
|
10971
|
+
import { Stack, Text, ToneGlyph } from "@umriss-ui/core";
|
|
10972
|
+
|
|
10973
|
+
export default function TheToneGlyph() {
|
|
10974
|
+
return (
|
|
10975
|
+
<Stack gap={2}>
|
|
10976
|
+
<Text>
|
|
10977
|
+
<ToneGlyph tone="success" size={16} /> Import finished
|
|
10978
|
+
</Text>
|
|
10979
|
+
<Text>
|
|
10980
|
+
<ToneGlyph tone="warning" size={16} /> 3 rows were skipped
|
|
10981
|
+
</Text>
|
|
10982
|
+
<Text>
|
|
10983
|
+
<ToneGlyph tone="danger" size={20} /> The export failed
|
|
10984
|
+
</Text>
|
|
10985
|
+
</Stack>
|
|
10986
|
+
);
|
|
10987
|
+
}
|
|
10988
|
+
```
|
|
10989
|
+
|
|
10851
10990
|
#### When to use something else
|
|
10852
10991
|
|
|
10853
10992
|
- Confirming something that has already happened, which may pass unnoticed → Toast
|
|
@@ -10889,6 +11028,16 @@ The title is a paragraph, not a heading, so an alert does not enter the page's o
|
|
|
10889
11028
|
|
|
10890
11029
|
Also takes every attribute of `<div>` – without `title`.
|
|
10891
11030
|
|
|
11031
|
+
##### `ToneGlyphProps`
|
|
11032
|
+
|
|
11033
|
+
| Prop | Type | Default | Description |
|
|
11034
|
+
|---|---|---|---|
|
|
11035
|
+
| `tone` *required* | `Tone`<br>`"neutral" \| "accent" \| "success" \| "warning" \| "danger"` | — | Which tone the glyph stands for.<br>Shown in: [The tone glyph](#alert) |
|
|
11036
|
+
| `size` | `number` | `16` | Edge length in pixels. Each glyph has the size it is drawn at in the components. From `GlyphProps`.<br>Shown in: [The tone glyph](#alert), [The calendar glyph (DatePicker)](#datepicker) |
|
|
11037
|
+
| `ref` | `Ref<SVGSVGElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
11038
|
+
|
|
11039
|
+
Also takes every attribute of `<svg>` – without `children`, `viewBox`.
|
|
11040
|
+
|
|
10892
11041
|
##### Types on this page
|
|
10893
11042
|
|
|
10894
11043
|
###### `AlertTone`
|
|
@@ -10900,12 +11049,20 @@ interrupted.
|
|
|
10900
11049
|
type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
10901
11050
|
```
|
|
10902
11051
|
|
|
11052
|
+
###### `Tone`
|
|
11053
|
+
|
|
11054
|
+
The five tones a component can take, as the tone components name them.
|
|
11055
|
+
|
|
11056
|
+
```ts
|
|
11057
|
+
type Tone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
11058
|
+
```
|
|
11059
|
+
|
|
10903
11060
|
#### Known limits
|
|
10904
11061
|
|
|
10905
11062
|
- No timer: an alert stays until you remove it. A message that goes by itself is a toast.
|
|
10906
11063
|
- No stack or queue of messages; place each alert where its matter is.
|
|
10907
11064
|
|
|
10908
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11065
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10909
11066
|
|
|
10910
11067
|
### Toast
|
|
10911
11068
|
|
|
@@ -11463,7 +11620,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
|
|
|
11463
11620
|
- 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.
|
|
11464
11621
|
- 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.
|
|
11465
11622
|
|
|
11466
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11623
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11467
11624
|
|
|
11468
11625
|
### EmptyState
|
|
11469
11626
|
|
|
@@ -11771,7 +11928,7 @@ export default function ACalculation() {
|
|
|
11771
11928
|
- No interactive content and no rich layout inside: it is read, never used.
|
|
11772
11929
|
- No placement option: it stands above its element and flips below where there is no room.
|
|
11773
11930
|
|
|
11774
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11931
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11775
11932
|
|
|
11776
11933
|
### Popover
|
|
11777
11934
|
|
|
@@ -12083,7 +12240,7 @@ type Align = "start" | "end" | "center";
|
|
|
12083
12240
|
- 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.
|
|
12084
12241
|
- It does not trap focus; a surface the user must answer is a [Modal](#modal).
|
|
12085
12242
|
|
|
12086
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12243
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12087
12244
|
|
|
12088
12245
|
### Menu
|
|
12089
12246
|
|
|
@@ -12320,7 +12477,7 @@ Also takes every attribute of `<button>` – without `onSelect`.
|
|
|
12320
12477
|
|
|
12321
12478
|
- No submenus, no checkable entries and no type-ahead.
|
|
12322
12479
|
|
|
12323
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12480
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12324
12481
|
|
|
12325
12482
|
### ContextMenu
|
|
12326
12483
|
|
|
@@ -12537,7 +12694,7 @@ export default function OnARow() {
|
|
|
12537
12694
|
- It listens to no right-click itself: the element and the point are yours, through the hook.
|
|
12538
12695
|
- No submenus, no checkable entries and no type-ahead, as in the menu.
|
|
12539
12696
|
|
|
12540
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12697
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12541
12698
|
|
|
12542
12699
|
### Modal
|
|
12543
12700
|
|
|
@@ -12994,7 +13151,7 @@ type ModalSize = "sm" | "md" | "lg";
|
|
|
12994
13151
|
|
|
12995
13152
|
- No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
|
|
12996
13153
|
|
|
12997
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13154
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12998
13155
|
|
|
12999
13156
|
### Drawer
|
|
13000
13157
|
|
|
@@ -13427,7 +13584,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
13427
13584
|
- Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
|
|
13428
13585
|
- Only the left and right edges; nothing slides in from the top or bottom.
|
|
13429
13586
|
|
|
13430
|
-
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.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13431
13588
|
|
|
13432
13589
|
### ConfirmDialog
|
|
13433
13590
|
|
|
@@ -13604,7 +13761,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
13604
13761
|
|
|
13605
13762
|
- A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
|
|
13606
13763
|
|
|
13607
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13764
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13608
13765
|
|
|
13609
13766
|
### CommandPalette
|
|
13610
13767
|
|
|
@@ -13906,7 +14063,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
13906
14063
|
- No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
|
|
13907
14064
|
- No nested steps or arguments: a command that needs input opens your own form after it is chosen.
|
|
13908
14065
|
|
|
13909
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14066
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13910
14067
|
|
|
13911
14068
|
## Navigation
|
|
13912
14069
|
|
|
@@ -14226,7 +14383,7 @@ Also takes every attribute of the rendered element.
|
|
|
14226
14383
|
|
|
14227
14384
|
- It neither routes nor reads the address: the trail is what you pass.
|
|
14228
14385
|
|
|
14229
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14386
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14230
14387
|
|
|
14231
14388
|
### Tabs
|
|
14232
14389
|
|
|
@@ -14591,7 +14748,7 @@ Also takes every attribute of `<div>`.
|
|
|
14591
14748
|
|
|
14592
14749
|
- More tabs than fit scroll sideways within the list; there is no overflow menu, and no closing or reordering of tabs.
|
|
14593
14750
|
|
|
14594
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14751
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14595
14752
|
|
|
14596
14753
|
### Accordion
|
|
14597
14754
|
|
|
@@ -14835,7 +14992,7 @@ Also takes every attribute of `<div>` – without `title`.
|
|
|
14835
14992
|
|
|
14836
14993
|
- A folded section's content stays rendered; for heavy content, render it only while its section is open.
|
|
14837
14994
|
|
|
14838
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14995
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14839
14996
|
|
|
14840
14997
|
### Stepper
|
|
14841
14998
|
|
|
@@ -15068,7 +15225,7 @@ Also takes every attribute of the rendered element.
|
|
|
15068
15225
|
- 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.
|
|
15069
15226
|
- No branching or optional steps; pass the steps that apply.
|
|
15070
15227
|
|
|
15071
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15228
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15072
15229
|
|
|
15073
15230
|
### TreeView
|
|
15074
15231
|
|
|
@@ -15749,7 +15906,7 @@ to render and the heights of the filler rows around it.
|
|
|
15749
15906
|
- No dragging nodes to rearrange them.
|
|
15750
15907
|
- 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)).
|
|
15751
15908
|
|
|
15752
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15909
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15753
15910
|
|
|
15754
15911
|
### Benchmark
|
|
15755
15912
|
|
|
@@ -16159,7 +16316,7 @@ type AvatarSize = "sm" | "md";
|
|
|
16159
16316
|
|
|
16160
16317
|
- No stack of avatars and no presence dot.
|
|
16161
16318
|
|
|
16162
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16319
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16163
16320
|
|
|
16164
16321
|
### Badge
|
|
16165
16322
|
|
|
@@ -16349,7 +16506,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
16349
16506
|
- It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
|
|
16350
16507
|
- It counts nothing itself: capping at “99+” is yours.
|
|
16351
16508
|
|
|
16352
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16509
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16353
16510
|
|
|
16354
16511
|
### Tag
|
|
16355
16512
|
|
|
@@ -16616,7 +16773,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
16616
16773
|
- No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
|
|
16617
16774
|
- Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
|
|
16618
16775
|
|
|
16619
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16776
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16620
16777
|
|
|
16621
16778
|
### Stat
|
|
16622
16779
|
|
|
@@ -17505,7 +17662,7 @@ type Severity = "warning" | "alarm";
|
|
|
17505
17662
|
- No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
|
|
17506
17663
|
- It fetches and polls nothing: freshness is judged from the `asOf` you give it.
|
|
17507
17664
|
|
|
17508
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17665
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17509
17666
|
|
|
17510
17667
|
### Meter
|
|
17511
17668
|
|
|
@@ -17675,7 +17832,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
17675
17832
|
|
|
17676
17833
|
- No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
|
|
17677
17834
|
|
|
17678
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17835
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17679
17836
|
|
|
17680
17837
|
### Sparkline
|
|
17681
17838
|
|
|
@@ -17933,7 +18090,7 @@ Also takes every attribute of `<span>`.
|
|
|
17933
18090
|
|
|
17934
18091
|
- No axes, labels, tooltip or points to hover: the value stands beside it.
|
|
17935
18092
|
|
|
17936
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
18093
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17937
18094
|
|
|
17938
18095
|
## API index
|
|
17939
18096
|
|
|
@@ -18006,14 +18163,10 @@ Used on [Sizes](#sizes), [IconButton](#iconbutton) and [ButtonGroup](#buttongrou
|
|
|
18006
18163
|
|
|
18007
18164
|
##### `CalendarGlyph`
|
|
18008
18165
|
|
|
18009
|
-
A calendar leaf: a sheet with its header and two rings. With `range`, a
|
|
18166
|
+
[DatePicker](#datepicker) – A calendar leaf: a sheet with its header and two rings. With `range`, a
|
|
18010
18167
|
bar across the sheet stands for the span a range picker chooses.
|
|
18011
18168
|
|
|
18012
|
-
|
|
18013
|
-
function CalendarGlyph({ ref, size, range, ...rest }: GlyphProps & {
|
|
18014
|
-
range?: boolean;
|
|
18015
|
-
}): import("react").JSX.Element;
|
|
18016
|
-
```
|
|
18169
|
+
Used on [DatePicker](#datepicker).
|
|
18017
18170
|
|
|
18018
18171
|
##### `Card`
|
|
18019
18172
|
|
|
@@ -18171,17 +18324,13 @@ Used on [UmrissProvider](#umrissprovider), [Sizes](#sizes), [Language](#language
|
|
|
18171
18324
|
|
|
18172
18325
|
##### `FormFieldBoundary`
|
|
18173
18326
|
|
|
18174
|
-
Resets the FormField context. For the innards of panels (search field,
|
|
18327
|
+
[FormField](#formfield) – Resets the FormField context. For the innards of panels (search field,
|
|
18175
18328
|
option checkboxes) that are rendered through a portal inside a FormField:
|
|
18176
18329
|
without a boundary they inherit its field id - a click on an option label
|
|
18177
18330
|
then activates the field's trigger through htmlFor and closes the panel
|
|
18178
18331
|
again immediately.
|
|
18179
18332
|
|
|
18180
|
-
|
|
18181
|
-
function FormFieldBoundary({ children }: {
|
|
18182
|
-
children: ReactNode;
|
|
18183
|
-
}): import("react").JSX.Element;
|
|
18184
|
-
```
|
|
18333
|
+
Used on [FormField](#formfield).
|
|
18185
18334
|
|
|
18186
18335
|
##### `Grid`
|
|
18187
18336
|
|
|
@@ -18510,7 +18659,7 @@ Used on [EmptyState](#emptystate), [Tag](#tag) and [Scenarios](#scenarios).
|
|
|
18510
18659
|
[Typography](#typography-2) – Body text from the token set; `as` chooses the element, independent of the
|
|
18511
18660
|
size.
|
|
18512
18661
|
|
|
18513
|
-
Used on [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Language](#language), [Stack and Grid](#stack-and-grid), [Divider](#divider), [Card](#card), [Splitter](#splitter), [Typography](#typography-2), [VisuallyHidden](#visuallyhidden), [Button](#button), [IconButton](#iconbutton), [ButtonGroup](#buttongroup), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [RangeSlider](#rangeslider), [Checkbox](#checkbox), [Switch](#switch), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [ColorPicker](#colorpicker), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [TimeInput](#timeinput), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Spinner](#spinner), [ProgressBar](#progressbar), [Skeleton](#skeleton), [Toast](#toast-1), [EmptyState](#emptystate), [Tooltip](#tooltip), [Popover](#popover), [Menu](#menu), [ContextMenu](#contextmenu), [Modal](#modal), [Drawer](#drawer), [ConfirmDialog](#confirmdialog), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [Accordion](#accordion), [Stepper](#stepper), [TreeView](#treeview), [Benchmark](#benchmark), [Avatar](#avatar), [Badge](#badge), [Tag](#tag), [Stat](#stat), [Meter](#meter), [Sparkline](#sparkline) and [Scenarios](#scenarios).
|
|
18662
|
+
Used on [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Language](#language), [Stack and Grid](#stack-and-grid), [Divider](#divider), [Card](#card), [Splitter](#splitter), [Typography](#typography-2), [VisuallyHidden](#visuallyhidden), [Button](#button), [IconButton](#iconbutton), [ButtonGroup](#buttongroup), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [RangeSlider](#rangeslider), [Checkbox](#checkbox), [Switch](#switch), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [ColorPicker](#colorpicker), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [TimeInput](#timeinput), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Spinner](#spinner), [ProgressBar](#progressbar), [Skeleton](#skeleton), [Alert](#alert), [Toast](#toast-1), [EmptyState](#emptystate), [Tooltip](#tooltip), [Popover](#popover), [Menu](#menu), [ContextMenu](#contextmenu), [Modal](#modal), [Drawer](#drawer), [ConfirmDialog](#confirmdialog), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [Accordion](#accordion), [Stepper](#stepper), [TreeView](#treeview), [Benchmark](#benchmark), [Avatar](#avatar), [Badge](#badge), [Tag](#tag), [Stat](#stat), [Meter](#meter), [Sparkline](#sparkline) and [Scenarios](#scenarios).
|
|
18514
18663
|
|
|
18515
18664
|
##### `Textarea`
|
|
18516
18665
|
|
|
@@ -18539,16 +18688,12 @@ Used on [UmrissProvider](#umrissprovider), [Toast](#toast-1) and [Scenarios](#sc
|
|
|
18539
18688
|
|
|
18540
18689
|
##### `ToneGlyph`
|
|
18541
18690
|
|
|
18542
|
-
What a tone looks like beside its colour: a tick for success, an
|
|
18691
|
+
[Alert](#alert) – What a tone looks like beside its colour: a tick for success, an
|
|
18543
18692
|
exclamation in a circle for danger, in a triangle for warning, and an "i" in
|
|
18544
18693
|
a circle for the neutral and accent tones. The dots of ! and i are strokes of
|
|
18545
18694
|
no length: a round cap alone is a dot as wide as the stem.
|
|
18546
18695
|
|
|
18547
|
-
|
|
18548
|
-
function ToneGlyph({ ref, tone, size, ...rest }: GlyphProps & {
|
|
18549
|
-
tone: "neutral" | "accent" | "success" | "warning" | "danger";
|
|
18550
|
-
}): import("react").JSX.Element;
|
|
18551
|
-
```
|
|
18696
|
+
Used on [Alert](#alert).
|
|
18552
18697
|
|
|
18553
18698
|
##### `Tooltip`
|
|
18554
18699
|
|
|
@@ -18649,7 +18794,9 @@ Used on [Language](#language), [NumberInput](#numberinput), [Slider](#slider), [
|
|
|
18649
18794
|
|
|
18650
18795
|
##### `useFormField`
|
|
18651
18796
|
|
|
18652
|
-
|
|
18797
|
+
Reads the wiring of the surrounding FormField (id, label, description,
|
|
18798
|
+
invalid, required) so a field sets its id and aria attributes itself.
|
|
18799
|
+
Returns `null` outside a FormField and inside a `FormFieldBoundary`.
|
|
18653
18800
|
|
|
18654
18801
|
```ts
|
|
18655
18802
|
function useFormField(): FormFieldContextValue | null;
|
|
@@ -19240,6 +19387,10 @@ for a destructive action.
|
|
|
19240
19387
|
type ButtonVariant = "primary" | "secondary" | "ghost" | "plain" | "danger";
|
|
19241
19388
|
```
|
|
19242
19389
|
|
|
19390
|
+
##### `CalendarGlyphProps`
|
|
19391
|
+
|
|
19392
|
+
Its table stands on [DatePicker](#datepicker).
|
|
19393
|
+
|
|
19243
19394
|
##### `CardBodyProps`
|
|
19244
19395
|
|
|
19245
19396
|
Its table stands on [Card](#card).
|
|
@@ -19331,8 +19482,8 @@ A span between two dates, both ends included - the value of
|
|
|
19331
19482
|
|
|
19332
19483
|
| Prop | Type | Default | Description |
|
|
19333
19484
|
|---|---|---|---|
|
|
19334
|
-
| `from` *required* | `Date` | — | <br>Shown in: [Narrow places (Sizes)](#sizes), [Post to a form (FormField)](#formfield), [A span of days (DateRangePicker)](#daterangepicker) and
|
|
19335
|
-
| `to` *required* | `Date` | — | <br>Shown in: [Narrow places (Sizes)](#sizes), [Post to a form (FormField)](#formfield), [A span of days (DateRangePicker)](#daterangepicker) and
|
|
19485
|
+
| `from` *required* | `Date` | — | <br>Shown in: [Narrow places (Sizes)](#sizes), [Post to a form (FormField)](#formfield), [A span of days (DateRangePicker)](#daterangepicker) and 8 more |
|
|
19486
|
+
| `to` *required* | `Date` | — | <br>Shown in: [Narrow places (Sizes)](#sizes), [Post to a form (FormField)](#formfield), [A span of days (DateRangePicker)](#daterangepicker) and 8 more |
|
|
19336
19487
|
|
|
19337
19488
|
Used on [Sizes](#sizes), [DateRangePicker](#daterangepicker) and [DateTimeRangePicker](#datetimerangepicker).
|
|
19338
19489
|
|
|
@@ -19434,6 +19585,10 @@ Everything the library knows about formatting.
|
|
|
19434
19585
|
| `compareText` *required* | `(a: string, b: string) => number` | — | The ordering of two texts by the set's collation. |
|
|
19435
19586
|
| `relative` *required* | `(ms: number) => string` | — | An elapsed duration as a phrase: "3 minutes ago". The amount comes in milliseconds, counted back from now. |
|
|
19436
19587
|
|
|
19588
|
+
##### `FormFieldBoundaryProps`
|
|
19589
|
+
|
|
19590
|
+
Its table stands on [FormField](#formfield).
|
|
19591
|
+
|
|
19437
19592
|
##### `FormFieldContextValue`
|
|
19438
19593
|
|
|
19439
19594
|
What `useFormField` returns: the wiring a field inside a FormField reads.
|
|
@@ -19501,7 +19656,7 @@ The props of a glyph: an SVG's attributes and its edge length.
|
|
|
19501
19656
|
|
|
19502
19657
|
| Prop | Type | Default | Description |
|
|
19503
19658
|
|---|---|---|---|
|
|
19504
|
-
| `size` | `number` |
|
|
19659
|
+
| `size` | `number` | — | Edge length in pixels. Each glyph has the size it is drawn at in the components.<br>Shown in: [The calendar glyph (DatePicker)](#datepicker), [The tone glyph (Alert)](#alert) |
|
|
19505
19660
|
| `ref` | `Ref<SVGSVGElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
19506
19661
|
|
|
19507
19662
|
Also takes every attribute of `<svg>` – without `children`, `viewBox`.
|
|
@@ -19603,27 +19758,15 @@ Its table stands on [Typography](#typography-2).
|
|
|
19603
19758
|
|
|
19604
19759
|
A press detector over pointer events; see `createLongPress`.
|
|
19605
19760
|
|
|
19606
|
-
|
|
19607
|
-
|
|
19608
|
-
|
|
19609
|
-
|
|
19610
|
-
|
|
19611
|
-
|
|
19612
|
-
|
|
19613
|
-
|
|
19614
|
-
|
|
19615
|
-
pointerCancel(): void;
|
|
19616
|
-
/** Whether this click belongs to a press and must not reach the target: true
|
|
19617
|
-
once for the click that ends a held press. Call `preventDefault` and
|
|
19618
|
-
`stopPropagation` on the event when it is. */
|
|
19619
|
-
swallows(): boolean;
|
|
19620
|
-
/** Whether the last pointer was a finger - the `contextmenu` of such a
|
|
19621
|
-
pointer is the press's, not a right-click. */
|
|
19622
|
-
touching(): boolean;
|
|
19623
|
-
/** Drops the timer. Call it when the target goes away. */
|
|
19624
|
-
dispose(): void;
|
|
19625
|
-
}
|
|
19626
|
-
```
|
|
19761
|
+
| Prop | Type | Default | Description |
|
|
19762
|
+
|---|---|---|---|
|
|
19763
|
+
| `pointerDown` *required* | `(event: ``PressPointer``) => void` | — | Arms the press when the pointer is a finger; a mouse and a pen never press. |
|
|
19764
|
+
| `pointerMove` *required* | `(event: ``PressPointer``) => void` | — | Cancels a press that is not yet held once the finger has left its 10 px. |
|
|
19765
|
+
| `pointerUp` *required* | `() => void` | — | Ends a press: a held one calls `onEnd`, and its click is then swallowed. |
|
|
19766
|
+
| `pointerCancel` *required* | `() => void` | — | As `pointerUp`, for `pointercancel`. |
|
|
19767
|
+
| `swallows` *required* | `() => boolean` | — | Whether this click belongs to a press and must not reach the target: true once for the click that ends a held press. Call `preventDefault` and `stopPropagation` on the event when it is. |
|
|
19768
|
+
| `touching` *required* | `() => boolean` | — | Whether the last pointer was a finger - the `contextmenu` of such a pointer is the press's, not a right-click. |
|
|
19769
|
+
| `dispose` *required* | `() => void` | — | Drops the timer. Call it when the target goes away. |
|
|
19627
19770
|
|
|
19628
19771
|
##### `MenuItemProps`
|
|
19629
19772
|
|
|
@@ -19710,9 +19853,9 @@ Its table stands on [NumberInput](#numberinput).
|
|
|
19710
19853
|
Intl's number options, plus `decimals`: the shorthand for the minimum and the
|
|
19711
19854
|
maximum fraction digits. An Intl digit option given beside it wins.
|
|
19712
19855
|
|
|
19713
|
-
|
|
19714
|
-
|
|
19715
|
-
|
|
19856
|
+
| Prop | Type | Default | Description |
|
|
19857
|
+
|---|---|---|---|
|
|
19858
|
+
| `decimals` | `number` | — | |
|
|
19716
19859
|
|
|
19717
19860
|
##### `PopoverCloseReason`
|
|
19718
19861
|
|
|
@@ -20082,6 +20225,18 @@ How the message turns out; `loading` is a toast still at work.
|
|
|
20082
20225
|
type ToastTone = "neutral" | "success" | "warning" | "danger" | "loading";
|
|
20083
20226
|
```
|
|
20084
20227
|
|
|
20228
|
+
##### `Tone`
|
|
20229
|
+
|
|
20230
|
+
The five tones a component can take, as the tone components name them.
|
|
20231
|
+
|
|
20232
|
+
```ts
|
|
20233
|
+
type Tone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
20234
|
+
```
|
|
20235
|
+
|
|
20236
|
+
##### `ToneGlyphProps`
|
|
20237
|
+
|
|
20238
|
+
Its table stands on [Alert](#alert).
|
|
20239
|
+
|
|
20085
20240
|
##### `TooltipProps`
|
|
20086
20241
|
|
|
20087
20242
|
Its table stands on [Tooltip](#tooltip).
|
|
@@ -20167,8 +20322,9 @@ Its table stands on [TreeView](#treeview).
|
|
|
20167
20322
|
|
|
20168
20323
|
##### `UmrissConfig`
|
|
20169
20324
|
|
|
20170
|
-
The settings of `UmrissProvider` as the components read them
|
|
20171
|
-
|
|
20325
|
+
The settings of `UmrissProvider` as the components read them. `density`
|
|
20326
|
+
and `portalTarget` are always set; `toast` holds only what the provider was
|
|
20327
|
+
given - the toasts apply their own defaults to the rest.
|
|
20172
20328
|
|
|
20173
20329
|
| Prop | Type | Default | Description |
|
|
20174
20330
|
|---|---|---|---|
|
|
@@ -20263,9 +20419,9 @@ Everything the library puts out as text.
|
|
|
20263
20419
|
| `selectNone` *required* | `string` | — | |
|
|
20264
20420
|
| `invertSelection` *required* | `string` | — | |
|
|
20265
20421
|
| `nothingSelected` *required* | `string` | — | |
|
|
20266
|
-
| `removeSelectedValue` *required* | `(
|
|
20422
|
+
| `removeSelectedValue` *required* | `(label: string) => string` | — | The cross on a selected value in the trigger. |
|
|
20267
20423
|
| `manageMoreSelected` *required* | `(count: number) => string` | — | The "+N" counter in the trigger. |
|
|
20268
|
-
| `multiSelectSummary` *required* | `(
|
|
20424
|
+
| `multiSelectSummary` *required* | `(selected: number, total: number) => string` | — | The summary in the panel: "3 / 12". The sentence structure belongs to the language, even where it is only a slash here. |
|
|
20269
20425
|
| `optionCount` *required* | `(count: number) => string` | — | How many options stand, when a list opens or its filter changes; never zero - an empty list says its own empty text. Named, like the three below, after the moment it is spoken in: an announcement labels no element. |
|
|
20270
20426
|
| `optionActive` *required* | `( label: string, state: { selected?: boolean; disabled?: boolean; group?: string }, ) => string` | — | The option the keys moved onto, with what VoiceOver leaves out. |
|
|
20271
20427
|
| `optionAdded` *required* | `(label: string) => string` | — | A value the multi-select took or gave away where no checkbox had the focus to say it - Enter in the search, a chip, Backspace. |
|
|
@@ -20344,8 +20500,8 @@ Everything the library puts out as text.
|
|
|
20344
20500
|
| `endHour` *required* | `string` | — | |
|
|
20345
20501
|
| `endMinute` *required* | `string` | — | |
|
|
20346
20502
|
| `endSecond` *required* | `string` | — | |
|
|
20347
|
-
| `timeFieldIncrease` *required* | `(
|
|
20348
|
-
| `timeFieldDecrease` *required* | `(
|
|
20503
|
+
| `timeFieldIncrease` *required* | `(field: string) => string` | — | Stepper buttons of a time field; the label comes from above. |
|
|
20504
|
+
| `timeFieldDecrease` *required* | `(field: string) => string` | — | |
|
|
20349
20505
|
| `pickerPicked` *required* | `(value: string) => string` | — | Said when a picker takes a new value; the text is the value as the field shows it. |
|
|
20350
20506
|
| `chooseStartDate` *required* | `string` | — | Footer of the range panels. |
|
|
20351
20507
|
| `chooseEndDate` *required* | `string` | — | |
|
|
@@ -20353,15 +20509,15 @@ Everything the library puts out as text.
|
|
|
20353
20509
|
| `daysSelected` *required* | `(count: number) => string` | — | "3 days selected" |
|
|
20354
20510
|
| `rangePreview` *required* | `(from: string, to: string, count: number) => string` | — | "17.03. – 19.03. · 3 days" while dragging; the dates come from the formats. |
|
|
20355
20511
|
| `daysAllDay` *required* | `(count: number) => string` | — | "3 days (all day)" |
|
|
20356
|
-
| `duration` *required* | `(
|
|
20512
|
+
| `duration` *required* | `(parts: readonly string[]) => string` | — | "Duration: 1 day 2 hrs 30 min" |
|
|
20357
20513
|
| `hoursShort` *required* | `(count: number) => string` | — | |
|
|
20358
20514
|
| `minutesShort` *required* | `(count: number) => string` | — | |
|
|
20359
20515
|
| `timeMissingHint` *required* | `(timeOfDay: string) => string` | — | Daylight-saving change: the hour that does not exist. |
|
|
20360
20516
|
| `timeMissingHintSide` *required* | `(side: string, timeOfDay: string) => string` | — | The same, with the side put in front ("From"/"To"). |
|
|
20361
20517
|
| `timeAmbiguousHint` *required* | `string` | — | Daylight-saving change: the hour that occurs twice. |
|
|
20362
20518
|
| `timeAmbiguousHintSide` *required* | `(side: string) => string` | — | |
|
|
20363
|
-
| `timeEarlier` *required* | `(
|
|
20364
|
-
| `timeLater` *required* | `(
|
|
20519
|
+
| `timeEarlier` *required* | `(offset: string) => string` | — | |
|
|
20520
|
+
| `timeLater` *required* | `(offset: string) => string` | — | |
|
|
20365
20521
|
| `weekdays` *required* | `readonly string[]` | — | The calendar's weekday headers, starting at Monday. |
|
|
20366
20522
|
| `presets` *required* | `{ today: string; yesterday: string; last7Days: string; last30Days: string; thisMonth: string; previousMonth: string; thisQuarter: string; thisYear: string; }` | — | The quick-select ranges, in the order of PRESET_LABELS. |
|
|
20367
20523
|
| `pagination` *required* | `string` | — | |
|
|
@@ -20413,7 +20569,7 @@ Everything the library puts out as text.
|
|
|
20413
20569
|
| `expandRowNamed` *required* | `(row: string) => string` | — | The expand button, named after the row header. |
|
|
20414
20570
|
| `collapseRowNamed` *required* | `(row: string) => string` | — | |
|
|
20415
20571
|
| `rowActions` *required* | `string` | — | Header of the actions column - for the screen reader, not visible. |
|
|
20416
|
-
| `rowAction` *required* | `(
|
|
20572
|
+
| `rowAction` *required* | `(action: string, row: string) => string` | — | One action on a row: "Open: A-2041". |
|
|
20417
20573
|
| `rowActionsMenu` *required* | `(row: string) => string` | — | The menu holding a row's actions. |
|
|
20418
20574
|
| `editCell` *required* | `(column: string, row: string) => string` | — | The editor of a cell in a table's grid mode, named after its column and its row: "Edit Budget: Marketing". |
|
|
20419
20575
|
| `newRow` *required* | `string` | — | The button above a grid that opens an empty row to fill in, and the name of that row while it has none ([ADR-0036](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0036-a-grid-edits-on-the-first-click-and-saves-rows-on-purpose.md)). |
|
|
@@ -20498,8 +20654,8 @@ Everything the library puts out as text.
|
|
|
20498
20654
|
| `verdictUnknown` *required* | `string` | — | |
|
|
20499
20655
|
| `statAbsentValue` *required* | `string` | — | What stands in the value field when there is no value. No dash, no zero: either could be a value. |
|
|
20500
20656
|
| `target` *required* | `string` | — | |
|
|
20501
|
-
| `deviationAbove` *required* | `(
|
|
20502
|
-
| `deviationBelow` *required* | `(
|
|
20657
|
+
| `deviationAbove` *required* | `(amount: string) => string` | — | "3,2 above target" or "1,5 below target" - the amount comes from the formats, which is where the comma is from. |
|
|
20658
|
+
| `deviationBelow` *required* | `(amount: string) => string` | — | |
|
|
20503
20659
|
| `deviationOnTarget` *required* | `string` | — | |
|
|
20504
20660
|
| `freshnessFresh` *required* | `string` | — | The three freshness states. They are a DIFFERENT axis from the verdict: a stale value keeps its verdict ([ADR-0010](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0010-a-stale-value-keeps-its-verdict.md)). |
|
|
20505
20661
|
| `freshnessStale` *required* | `string` | — | |
|
|
@@ -20535,7 +20691,7 @@ Everything the library puts out as text.
|
|
|
20535
20691
|
| `hide` *required* | `string` | — | |
|
|
20536
20692
|
| `moreActions` *required* | `string` | — | |
|
|
20537
20693
|
| `remove` *required* | `string` | — | The cross on a tag without text content. |
|
|
20538
|
-
| `removeTag` *required* | `(
|
|
20694
|
+
| `removeTag` *required* | `(label: string) => string` | — | The cross on a tag with text content. |
|
|
20539
20695
|
| `scheduleOverlap` *required* | `string` | — | The two findings, named on the ghost of a drag. |
|
|
20540
20696
|
| `scheduleViolatedDependency` *required* | `string` | — | |
|
|
20541
20697
|
| `scheduleGhostTimes` *required* | `(from: string, to: string) => string` | — | The new times on the ghost: "08:15–10:00" - the times come from the formats. |
|
|
@@ -20552,7 +20708,7 @@ Everything the library puts out as text.
|
|
|
20552
20708
|
| `scheduleFoldGroup` *required* | `string` | — | The chevron of a lane group's header, which folds it into one row and unfolds it again. The group's own label stands beside the button, so the name is what the ACTION is, not which group it acts on. |
|
|
20553
20709
|
| `scheduleUnfoldGroup` *required* | `string` | — | |
|
|
20554
20710
|
| `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
|
|
20555
|
-
| `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription
|
|
20711
|
+
| `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`). |
|
|
20556
20712
|
| `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. |
|
|
20557
20713
|
| `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. |
|
|
20558
20714
|
| `scheduleVisibleRange` *required* | `(from: string, to: string) => string` | — | The span in view, said after a zoom key. |
|