@umriss-ui/core 0.48.0 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +12 -8
- package/dist/core.css +1 -1
- package/dist/core.js +3883 -3822
- package/dist/de.d.ts +24 -0
- package/dist/formats-dd9LbvXt.js +102 -0
- package/dist/index.d.ts +40 -7
- package/dist/touch-scale.css +9 -4
- package/dist/wording/de.js +25 -11
- package/docs/llms-full.md +195 -64
- package/package.json +2 -2
- package/dist/formats-Bo0qM01D.js +0 -97
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.49.0
|
|
2
2
|
|
|
3
3
|
> React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.
|
|
4
4
|
|
|
@@ -2694,6 +2694,8 @@ The command installs the package alone: React 19 or newer is its only peer and s
|
|
|
2694
2694
|
|
|
2695
2695
|
Colours, sizes, fonts and light and dark are tokens, `--u-…` custom properties you override with ordinary CSS: [Theming](#theming) lists them. The fonts are the application's: the tokens name Geist first and fall back to the system fonts, and nothing is loaded. For Geist, install `@fontsource/geist-sans` (400, 500, 600) and `@fontsource/geist-mono` (400).
|
|
2696
2696
|
|
|
2697
|
+
**Touch.** Under a finger (a coarse primary pointer) hit areas are at least 24 × 24 px, a field's text is 16 px and behaviours follow the gesture; a `md` control stays 32 px and a `sm` one 26 px. To grow them to 44 px, the height WCAG 2.5.5 names, import `@umriss-ui/core/touch-scale.css` once, anywhere in the entry file: before or after core's own styles makes no difference. Every `md` and `sm` control grows with it - buttons, fields, selects, Tabs, and the table's toolbar, pagination and row actions and the alarms' Acknowledge and Shelve buttons. What does not grow: `xs`, menu rows, calendar days, checkboxes, switches and radios; they keep their size and their 24 × 24 px hit areas ([ADR-0079](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0079-the-size-is-the-applications-the-hit-area-the-librarys.md)).
|
|
2698
|
+
|
|
2697
2699
|
#### Examples
|
|
2698
2700
|
|
|
2699
2701
|
##### First component
|
|
@@ -2725,7 +2727,7 @@ From `ButtonProps` — the full table stands on [Button](#button).
|
|
|
2725
2727
|
- No font is loaded or bundled.
|
|
2726
2728
|
- Chrome 123, Firefox 120 and Safari 17.5 or newer; an older browser discards the tokens and shows the components unstyled.
|
|
2727
2729
|
|
|
2728
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2730
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2729
2731
|
|
|
2730
2732
|
### UmrissProvider
|
|
2731
2733
|
|
|
@@ -2936,7 +2938,7 @@ type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "
|
|
|
2936
2938
|
|
|
2937
2939
|
- No theme and no default variants for components: a component is configured by its own props.
|
|
2938
2940
|
|
|
2939
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2941
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2940
2942
|
|
|
2941
2943
|
## Customising
|
|
2942
2944
|
|
|
@@ -2950,6 +2952,8 @@ The library writes its CSS in three cascade layers, `umriss.tokens`, `umriss.bas
|
|
|
2950
2952
|
|
|
2951
2953
|
Every token with two values is written `light-dark(<light>, <dark>)` and resolves against the `color-scheme` the element inherits. The library sets `color-scheme` nowhere: your `html.dark { color-scheme: dark }`, or your theme library's, switches the components, nothing set means light, and an element with its own `color-scheme` is a region in the other mode. An override written `light-dark(…)` follows the mode; a single colour holds in both.
|
|
2952
2954
|
|
|
2955
|
+
**A lowered build keeps a JavaScript dark mode light.** A mode set in CSS works in every build. Where a build lowers `light-dark()` (Vite 8 and Next 16 by default), a mode set only from JavaScript or through a variable - next-themes, MUI, Mantine, an inline `style` - stays light. Then write one rule such as `[data-theme="dark"] { color-scheme: dark; }`, or raise the CSS target to the browser floor: Vite `build: { cssTarget: ["chrome123", "firefox120", "safari17.5"] }`, Next a `browserslist` in `package.json` (`"chrome >= 123", "firefox >= 120", "safari >= 17.5"`). In development core warns once when it sees this.
|
|
2956
|
+
|
|
2953
2957
|
Style through tokens only. The tokens in the table are the styling API and change only with an entry in the changelog; the `data-*` attributes and class names in the components' markup are internal and may change in any version ([ADR-0045](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0045-tokens-are-the-styling-api-data-attributes-are-not.md)). Where no token reaches what you want to change, ask for one: a selector on the markup breaks without warning.
|
|
2954
2958
|
|
|
2955
2959
|
#### Examples
|
|
@@ -3215,9 +3219,9 @@ One look for every component. A soft glow would read as a second, shadowy border
|
|
|
3215
3219
|
| `--u-radius-lg` | `12px` | same | — |
|
|
3216
3220
|
| `--u-radius-xl` | `18px` | same | One step above the card, for the command palette. It is meant to be a system window and not a form panel, and the radius plays its part in that. Both themes share it - shape is not a question of theme. The sequence 4-6-8-12-18 continues the factor of 1.5 of the steps above. |
|
|
3217
3221
|
| `--u-radius-full` | `999px` | same | — |
|
|
3218
|
-
| `--u-control-height` | `
|
|
3219
|
-
| `--u-control-height-sm` | `
|
|
3220
|
-
| `--u-control-height-xs` | `
|
|
3222
|
+
| `--u-control-height` | `2rem` | same | — |
|
|
3223
|
+
| `--u-control-height-sm` | `1.625rem` | same | — |
|
|
3224
|
+
| `--u-control-height-xs` | `1.125rem` | same | The small control on a dense surface - a compact table's row draft and actions (`dense` in the shared own styles). |
|
|
3221
3225
|
| `--u-icon-size` | `14px` | same | The icon in a button, beside a label or alone (CONTEXT.md, "Icon"): the button decides its size, one step per control height. |
|
|
3222
3226
|
| `--u-icon-size-sm` | `12px` | same | — |
|
|
3223
3227
|
| `--u-button-padding` | `10px` | same | The room left and right of a button's label, one step per control height. What stands beside a quiet button and has to align with its word hangs out by exactly this much (the date pickers' foot, the MultiSelect's quick keys) - so they read it here instead of repeating the number. |
|
|
@@ -3423,7 +3427,7 @@ From `BadgeProps` — the full table stands on [Badge](#badge).
|
|
|
3423
3427
|
- A token that names another resolves where it is declared: set `--u-color-accent` on a region, and `--u-focus-ring`, which names it on `:root`, still draws the application's accent there. Set the naming token in the region too.
|
|
3424
3428
|
- A panel opened in a portal - a popover, a tooltip, a toast - takes the tokens and the `color-scheme` of the place it lands, not of the region it was opened from; inside a dialog the toasts take the tokens of the dialog's place. Give [UmrissProvider](#umrissprovider) a `portalTarget` inside the region, or override on `:root` - as for the toasts' distance from the window's edge and its sides, `--u-toast-inset-top`, `--u-toast-inset-bottom`, `--u-toast-inset-start` and `--u-toast-inset-end`.
|
|
3425
3429
|
|
|
3426
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3430
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3427
3431
|
|
|
3428
3432
|
### Sizes
|
|
3429
3433
|
|
|
@@ -3841,7 +3845,7 @@ type ControlSize = "sm" | "md";
|
|
|
3841
3845
|
- A field does not grow to fill a row: give it room with the row's own layout (`flex: 1` on its FormField, or a grid).
|
|
3842
3846
|
- A place that sizes itself by its content and has no width to stop at - an `auto` grid track, an inline block, a row that does not wrap - gives a field at least its natural width, as it gives a native input its own; on a narrow screen let such a row wrap, or size the track with `minmax(0, auto)`.
|
|
3843
3847
|
|
|
3844
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3848
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3845
3849
|
|
|
3846
3850
|
### Language
|
|
3847
3851
|
|
|
@@ -4234,6 +4238,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4234
4238
|
|---|---|---|---|
|
|
4235
4239
|
| `columns` | Columns | Spalten | The column menu's button. |
|
|
4236
4240
|
| `arrangeColumns` | Show, hide and arrange columns | Spalten ein- und ausblenden, anordnen | Accessible name of the list in the column menu. |
|
|
4241
|
+
| `fitAllColumns` | Fit all columns | Alle Spalten anpassen | The column menu's button that sets every column to the width of its content. |
|
|
4237
4242
|
| `columnForward(column)` | `` `Move ${column} forward` `` | `` `${column} nach vorn` `` | The two buttons that move a column in the column menu. |
|
|
4238
4243
|
| `columnBackward(column)` | `` `Move ${column} backward` `` | `` `${column} nach hinten` `` | — |
|
|
4239
4244
|
| `pinColumnToStart(column)` | `` `Pin ${column} to start` `` | `` `${column} am Anfang fixieren` `` | The column menu's pin keys: to a side, and back when it is pinned there. |
|
|
@@ -4323,6 +4328,18 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4323
4328
|
| `rangeFrom(from)` | `` `from ${from}` `` | `` `ab ${from}` `` | — |
|
|
4324
4329
|
| `rangeTo(to)` | `` `to ${to}` `` | `` `bis ${to}` `` | — |
|
|
4325
4330
|
| `rangeInvalid` | “From” lies after “To”. | „Von“ liegt hinter „Bis“. | When "From" lies behind "To". The condition stays the last valid one. |
|
|
4331
|
+
| `textContains` | contains | enthält | The text filter: its operators, as the choice and in the condition. |
|
|
4332
|
+
| `textNotContains` | does not contain | enthält nicht | — |
|
|
4333
|
+
| `textStartsWith` | starts with | beginnt mit | — |
|
|
4334
|
+
| `textEndsWith` | ends with | endet mit | — |
|
|
4335
|
+
| `textEquals` | equals | ist gleich | — |
|
|
4336
|
+
| `textIsEmpty` | is empty | ist leer | — |
|
|
4337
|
+
| `textAnd` | and | und | What joins the two terms of a text condition: the choice and the word between them. |
|
|
4338
|
+
| `textOr` | or | oder | — |
|
|
4339
|
+
| `filterOperator` | Operator | Operator | The labels of the operator and the value fields of a term. |
|
|
4340
|
+
| `filterValue` | Value | Wert | — |
|
|
4341
|
+
| `filterJoin` | Join | Verknüpfung | The name of the choice between AND and OR. |
|
|
4342
|
+
| `textTerm(operator, value)` | `` `${operator} “${value}”` `` | `` `${operator} „${value}“` `` | A term with a value in the toolbar: `starts with “foo”`. |
|
|
4326
4343
|
| `resetAll` | Reset | Zurücksetzen | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
4327
4344
|
| `tryAgain` | Try again | Erneut versuchen | The button under a server-mode table's error that sends the request once more. |
|
|
4328
4345
|
| `filteredOfTotal(matches, total)` | `` `${matches} of ${total}` `` | `` `${matches} von ${total}` `` | "43 of 1.204" - the numbers come from the formats. |
|
|
@@ -4400,6 +4417,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4400
4417
|
| `scheduleUnfoldGroup` | Unfold group | Gruppe ausklappen | — |
|
|
4401
4418
|
| `scheduleLaneCount(count)` | `` (count === 1 ? "1 lane" : `${count} lanes`) `` | `` (count === 1 ? "1 Bahn" : `${count} Bahnen`) `` | How many lanes a group holds, beside its name in the header. |
|
|
4402
4419
|
| `scheduleRoleDescription` | schedule | Belegungsplan | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
|
|
4420
|
+
| `schedulePlotName(label)` | `` `${label}, plot` `` | `` `${label}, Diagramm` `` | The plot's own name, beside the figure that carries the caller's `aria-label`, so the caller's name is not heard twice. |
|
|
4403
4421
|
| `scheduleSummary(summary)` | `` `${lanes === 1 ? "1 lane" : `${lanes} lanes`}, ${subtasks === 1 ? "1 subtask" : `${subtasks} subtasks`} in view from ${from} to ${to}. ` + `${overlaps === 1 ? "1 overlap" : `${overlaps} overlaps`}, ${violated === 1 ? "1 violated dependency" : `${violated} violated dependencies`}` + (blocked === 0 ? "." : `, ${blocked === 1 ? "1 subtask" : `${blocked} subtasks`} in blocked time.`) + (milestones === 0 ? "" : ` ${milestones === 1 ? "1 milestone" : `${milestones} milestones`}.`) `` | `` `${lanes === 1 ? "1 Bahn" : `${lanes} Bahnen`}, ${subtasks === 1 ? "1 Teilaufgabe" : `${subtasks} Teilaufgaben`} im Blick von ${from} bis ${to}. ` + `${overlaps === 1 ? "1 Überschneidung" : `${overlaps} Überschneidungen`}, ${violated === 1 ? "1 verletzte Abhängigkeit" : `${violated} verletzte Abhängigkeiten`}` + (blocked === 0 ? "." : `, ${blocked === 1 ? "1 Teilaufgabe in einer Sperrzeit" : `${blocked} Teilaufgaben in Sperrzeiten`}.`) + (milestones === 0 ? "" : ` ${milestones === 1 ? "1 Meilenstein" : `${milestones} Meilensteine`}.`) `` | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
|
|
4404
4422
|
| `scheduleVisibleRange(from, to)` | `` `From ${from} to ${to}.` `` | `` `Von ${from} bis ${to}.` `` | The span in view, said after a zoom key. |
|
|
4405
4423
|
| `scheduleKeyHelp` | Left and right arrows move along the lane, up and down change the lane, Home and End go to its first and last, Page Up and Page Down jump a tenth of the view. Plus zooms in, minus zooms out, zero fits all the work. Right bracket or T follows a dependency out, left bracket or Shift and T goes back. Space or Enter selects. Alt with left or right proposes a move, Alt and Shift a new end. Escape clears. | Pfeil links und rechts gehen die Bahn entlang, Pfeil hoch und runter wechseln die Bahn, Pos1 und Ende springen zur ersten und letzten Teilaufgabe, Bild auf und Bild ab springen ein Zehntel der Ansicht. Plus zoomt hinein, Minus zoomt heraus, Null zeigt die gesamte Arbeit. Schließende eckige Klammer oder T folgt einer Abhängigkeit hinaus, öffnende eckige Klammer oder Umschalt und T geht zurück. Leertaste oder Eingabe wählt aus. Alt mit Pfeil links oder rechts schlägt eine Verschiebung vor, Alt und Umschalt ein neues Ende. Escape lässt die aktive Teilaufgabe los. | The keys that walk the plot, select and edit - read after the summary. |
|
|
@@ -4556,7 +4574,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4556
4574
|
|
|
4557
4575
|
#### Charts wording
|
|
4558
4576
|
|
|
4559
|
-
Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes through its `wording` prop: the English of `DEFAULT_CHARTS_WORDING` beside the German of `GERMAN_CHARTS_WORDING`, imported from `@umriss-ui/charts/wording/de`.
|
|
4577
|
+
Every entry of `ChartsWording` from `@umriss-ui/charts`, which a chart takes through its `wording` prop: the English of `DEFAULT_CHARTS_WORDING` beside the German of `GERMAN_CHARTS_WORDING`, imported from `@umriss-ui/charts/wording/de`. One `ChartsWordingProvider` from `@umriss-ui/charts` at the root sets it for every chart below, also one inside a dashboard widget; a chart's own `wording` wins. An app with both packages sets both providers, `LanguageProvider` for core and `ChartsWordingProvider` for the charts.
|
|
4560
4578
|
|
|
4561
4579
|
| Key | English | German | Description |
|
|
4562
4580
|
|---|---|---|---|
|
|
@@ -4611,6 +4629,7 @@ Every entry of `Formats`: `DEFAULT_FORMATS` beside `GERMAN_FORMATS`. Each set as
|
|
|
4611
4629
|
| `month(d)` | March 2026 | März 2026 | The calendar's month header: March 2026 |
|
|
4612
4630
|
| `monthName(d)` | March | März | The month alone, in the calendar head's month list: March |
|
|
4613
4631
|
| `dateLong(d)` | Tuesday, 17 March 2026 | Dienstag, 17. März 2026 | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
|
|
4632
|
+
| `weekStart` | Monday | Monday | The first day of the calendars' week, ISO-numbered: 1 = Monday ... 7 = Sunday. |
|
|
4614
4633
|
| `time(d, withSeconds)` | 09:05 | 09:05 | Time of day, optionally with seconds: 09:05 or 09:05:03 |
|
|
4615
4634
|
| `dateTime(d, withSeconds)` | 17/03/2026, 09:05 | 17.03.2026, 09:05 | Date and time together: 17/03/2026, 09:05 |
|
|
4616
4635
|
| `offset(d)` | GMT+1 | GMT+1 | Short form of the UTC offset: GMT+2 |
|
|
@@ -4654,6 +4673,7 @@ Everything the library knows about formatting.
|
|
|
4654
4673
|
| `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
|
|
4655
4674
|
| `monthName` *required* | `(d: Date) => string` | — | The month alone, in the calendar head's month list: March |
|
|
4656
4675
|
| `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
|
|
4676
|
+
| `weekStart` *required* | `number` | — | The first day of the calendars' week, ISO-numbered: 1 = Monday ... 7 = Sunday. |
|
|
4657
4677
|
| `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
|
|
4658
4678
|
| `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05<br>Shown in: [Use the language in your own components](#language), [Pick a day (DatePicker)](#datepicker), [Set an instant (DateTimePicker)](#datetimepicker) and 1 more |
|
|
4659
4679
|
| `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
|
|
@@ -4770,6 +4790,7 @@ Everything the library puts out as text.
|
|
|
4770
4790
|
| `filterDone` *required* | `string` | — | |
|
|
4771
4791
|
| `columns` *required* | `string` | — | The column menu's button. |
|
|
4772
4792
|
| `arrangeColumns` *required* | `string` | — | Accessible name of the list in the column menu. |
|
|
4793
|
+
| `fitAllColumns` *required* | `string` | — | The column menu's button that sets every column to the width of its content. |
|
|
4773
4794
|
| `columnForward` *required* | `(column: string) => string` | — | The two buttons that move a column in the column menu. |
|
|
4774
4795
|
| `columnBackward` *required* | `(column: string) => string` | — | |
|
|
4775
4796
|
| `pinColumnToStart` *required* | `(column: string) => string` | — | The column menu's pin keys: to a side, and back when it is pinned there. |
|
|
@@ -4859,6 +4880,18 @@ Everything the library puts out as text.
|
|
|
4859
4880
|
| `rangeFrom` *required* | `(from: string) => string` | — | |
|
|
4860
4881
|
| `rangeTo` *required* | `(to: string) => string` | — | |
|
|
4861
4882
|
| `rangeInvalid` *required* | `string` | — | When "From" lies behind "To". The condition stays the last valid one. |
|
|
4883
|
+
| `textContains` *required* | `string` | — | The text filter: its operators, as the choice and in the condition. |
|
|
4884
|
+
| `textNotContains` *required* | `string` | — | |
|
|
4885
|
+
| `textStartsWith` *required* | `string` | — | |
|
|
4886
|
+
| `textEndsWith` *required* | `string` | — | |
|
|
4887
|
+
| `textEquals` *required* | `string` | — | |
|
|
4888
|
+
| `textIsEmpty` *required* | `string` | — | |
|
|
4889
|
+
| `textAnd` *required* | `string` | — | What joins the two terms of a text condition: the choice and the word between them. |
|
|
4890
|
+
| `textOr` *required* | `string` | — | |
|
|
4891
|
+
| `filterOperator` *required* | `string` | — | The labels of the operator and the value fields of a term. |
|
|
4892
|
+
| `filterValue` *required* | `string` | — | |
|
|
4893
|
+
| `filterJoin` *required* | `string` | — | The name of the choice between AND and OR. |
|
|
4894
|
+
| `textTerm` *required* | `(operator: string, value: string) => string` | — | A term with a value in the toolbar: `starts with “foo”`. |
|
|
4862
4895
|
| `resetAll` *required* | `string` | — | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
4863
4896
|
| `tryAgain` *required* | `string` | — | The button under a server-mode table's error that sends the request once more. |
|
|
4864
4897
|
| `filteredOfTotal` *required* | `(matches: string, total: string) => string` | — | "43 of 1.204" - the numbers come from the formats. |
|
|
@@ -4921,6 +4954,7 @@ Everything the library puts out as text.
|
|
|
4921
4954
|
| `scheduleUnfoldGroup` *required* | `string` | — | |
|
|
4922
4955
|
| `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
|
|
4923
4956
|
| `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
|
|
4957
|
+
| `schedulePlotName` *required* | `(label: string) => string` | — | The plot's own name, beside the figure that carries the caller's `aria-label`, so the caller's name is not heard twice. |
|
|
4924
4958
|
| `scheduleSummary` *required* | `(summary: { lanes: number; subtasks: number; from: string; to: string; overlaps: number; violated: number; /** Subtasks in blocked time; said only where there are any. */ blocked: number; /** Milestones of the plan; said only where there are any. */ milestones: number; }) => string` | — | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
|
|
4925
4959
|
| `scheduleVisibleRange` *required* | `(from: string, to: string) => string` | — | The span in view, said after a zoom key. |
|
|
4926
4960
|
| `scheduleKeyHelp` *required* | `string` | — | The keys that walk the plot, select and edit - read after the summary. |
|
|
@@ -5057,10 +5091,10 @@ Everything the library puts out as text.
|
|
|
5057
5091
|
|
|
5058
5092
|
#### Known limits
|
|
5059
5093
|
|
|
5060
|
-
- Two languages ship; a third is a `Wording` object of your own. No right-to-left ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5094
|
+
- 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.49.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
5061
5095
|
- It holds only what the components say themselves; your labels, titles and data are yours to translate.
|
|
5062
5096
|
|
|
5063
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5097
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5064
5098
|
|
|
5065
5099
|
## Layout
|
|
5066
5100
|
|
|
@@ -5407,7 +5441,7 @@ type GridColumnWidth = number | "fill";
|
|
|
5407
5441
|
- No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
|
|
5408
5442
|
- Tiles are not arranged by the user: for a dashboard the reader arranges, see `@umriss-ui/dashboard` ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
|
|
5409
5443
|
|
|
5410
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5444
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5411
5445
|
|
|
5412
5446
|
### Divider
|
|
5413
5447
|
|
|
@@ -6232,7 +6266,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
|
|
|
6232
6266
|
- Two panes per splitter, no more. Tiles are not arranged by the user: for a dashboard the reader arranges, see `@umriss-ui/dashboard` ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
|
|
6233
6267
|
- It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
|
|
6234
6268
|
|
|
6235
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6269
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6236
6270
|
|
|
6237
6271
|
## Typography
|
|
6238
6272
|
|
|
@@ -6668,10 +6702,10 @@ type TextLeading = "normal" | "tight";
|
|
|
6668
6702
|
#### Known limits
|
|
6669
6703
|
|
|
6670
6704
|
- No truncation and no line length: both depend on the column, which only the application knows.
|
|
6671
|
-
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6705
|
+
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
6672
6706
|
- `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
|
|
6673
6707
|
|
|
6674
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6708
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6675
6709
|
|
|
6676
6710
|
### VisuallyHidden
|
|
6677
6711
|
|
|
@@ -6795,7 +6829,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
|
|
|
6795
6829
|
|
|
6796
6830
|
- It hides from the eye only; to hide something from everyone, do not render it.
|
|
6797
6831
|
|
|
6798
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6832
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6799
6833
|
|
|
6800
6834
|
## Actions
|
|
6801
6835
|
|
|
@@ -7124,7 +7158,7 @@ type ControlSize = "sm" | "md";
|
|
|
7124
7158
|
- The label stays on one line; keep it short rather than let it wrap.
|
|
7125
7159
|
- No icon slot: an icon goes among the children, before the label, and the button sets its size.
|
|
7126
7160
|
|
|
7127
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7161
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7128
7162
|
|
|
7129
7163
|
### IconButton
|
|
7130
7164
|
|
|
@@ -7481,7 +7515,7 @@ type ControlSize = "sm" | "md";
|
|
|
7481
7515
|
- The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
|
|
7482
7516
|
- A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
|
|
7483
7517
|
|
|
7484
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7518
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7485
7519
|
|
|
7486
7520
|
### ButtonGroup
|
|
7487
7521
|
|
|
@@ -7841,7 +7875,7 @@ type ControlSize = "sm" | "md";
|
|
|
7841
7875
|
|
|
7842
7876
|
- No toggle or segmented state; a choice that stays is a radio group.
|
|
7843
7877
|
|
|
7844
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7878
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7845
7879
|
|
|
7846
7880
|
## Forms
|
|
7847
7881
|
|
|
@@ -8161,7 +8195,7 @@ Also takes every attribute of `<input>` – without `size`.
|
|
|
8161
8195
|
- No input masks or formatting while typing; check the value on leave or on submit.
|
|
8162
8196
|
- No validation of its own: the error is the application's, handed to the `FormField`.
|
|
8163
8197
|
|
|
8164
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8198
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8165
8199
|
|
|
8166
8200
|
### FormField
|
|
8167
8201
|
|
|
@@ -8412,7 +8446,7 @@ The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox),
|
|
|
8412
8446
|
|
|
8413
8447
|
| Prop | Type | Default | Description |
|
|
8414
8448
|
|---|---|---|---|
|
|
8415
|
-
| `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and
|
|
8449
|
+
| `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 90 more |
|
|
8416
8450
|
| `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 37 more |
|
|
8417
8451
|
| `error` | `ReactNode` | — | Error message; it marks the field as invalid at the same time.<br>Shown in: [Configurator](#formfield), [Show an error](#formfield), [Check an invoice on submit](#formfield) and 23 more |
|
|
8418
8452
|
| `required` | `boolean` | `false` | Sets the required mark on the label and `aria-required` on the field - on Input, Select, Textarea, NumberInput, Combobox, RadioGroup and Checkbox. The triggers of the pickers and of the MultiSelect are buttons, on which `aria-required` is not a permitted attribute; there the mark carries it alone. It validates nothing - validation belongs to the caller ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).<br>Shown in: [Configurator](#formfield), [Mark a field as required](#formfield), [Check an invoice on submit](#formfield) and 10 more |
|
|
@@ -8427,7 +8461,7 @@ Also takes every attribute of `<div>`.
|
|
|
8427
8461
|
- No validation: the caller's form library decides; pass `error` ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)). No form state and no submit handling either.
|
|
8428
8462
|
- One field per `FormField`; a group of fields that share one label is a fieldset of your own.
|
|
8429
8463
|
|
|
8430
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8464
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8431
8465
|
|
|
8432
8466
|
### Textarea
|
|
8433
8467
|
|
|
@@ -8615,7 +8649,7 @@ Also takes every attribute of `<textarea>` – without `cols`.
|
|
|
8615
8649
|
|
|
8616
8650
|
- Plain text only: no formatting, mentions or rich text.
|
|
8617
8651
|
|
|
8618
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8652
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8619
8653
|
|
|
8620
8654
|
### NumberInput
|
|
8621
8655
|
|
|
@@ -8877,7 +8911,7 @@ Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`
|
|
|
8877
8911
|
- No expressions: “12*4” is not calculated.
|
|
8878
8912
|
- No currency conversion; the unit is a label.
|
|
8879
8913
|
|
|
8880
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8914
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8881
8915
|
|
|
8882
8916
|
### Slider
|
|
8883
8917
|
|
|
@@ -9070,7 +9104,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
|
|
|
9070
9104
|
- One thumb: no range with two ends.
|
|
9071
9105
|
- Marks show values; they do not catch the thumb.
|
|
9072
9106
|
|
|
9073
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9107
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9074
9108
|
|
|
9075
9109
|
### Checkbox
|
|
9076
9110
|
|
|
@@ -9398,7 +9432,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
|
|
|
9398
9432
|
|
|
9399
9433
|
- No pending or loading state; while your application applies the change, disable the switch or say so beside it.
|
|
9400
9434
|
|
|
9401
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9435
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9402
9436
|
|
|
9403
9437
|
### RadioGroup
|
|
9404
9438
|
|
|
@@ -9862,7 +9896,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
9862
9896
|
- Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
|
|
9863
9897
|
- No icons and no line of explanation in a segment; several chosen at once is not this control.
|
|
9864
9898
|
|
|
9865
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9899
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9866
9900
|
|
|
9867
9901
|
### FileInput
|
|
9868
9902
|
|
|
@@ -10207,7 +10241,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
|
|
|
10207
10241
|
|
|
10208
10242
|
- No upload, no progress and no size limit of its own; those belong to the application sending the files.
|
|
10209
10243
|
|
|
10210
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10244
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10211
10245
|
|
|
10212
10246
|
## Choosing
|
|
10213
10247
|
|
|
@@ -10403,7 +10437,7 @@ Also takes every attribute of `<select>` – without `size`.
|
|
|
10403
10437
|
|
|
10404
10438
|
- The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
|
|
10405
10439
|
|
|
10406
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10440
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10407
10441
|
|
|
10408
10442
|
### Combobox
|
|
10409
10443
|
|
|
@@ -10787,7 +10821,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
|
|
|
10787
10821
|
- No free text as a value: only an option can be chosen.
|
|
10788
10822
|
- No request of its own: `onSearch` reports the typed text and you fetch, debounce and cancel; `filter={false}` shows what you return.
|
|
10789
10823
|
|
|
10790
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10824
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10791
10825
|
|
|
10792
10826
|
### MultiSelect
|
|
10793
10827
|
|
|
@@ -11295,7 +11329,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
11295
11329
|
- No typing of a date into the field.
|
|
11296
11330
|
- umriss shows the reader's time ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
|
|
11297
11331
|
|
|
11298
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11332
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11299
11333
|
|
|
11300
11334
|
### DateTimePicker
|
|
11301
11335
|
|
|
@@ -11466,7 +11500,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
11466
11500
|
|
|
11467
11501
|
- umriss shows the reader's time ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
|
|
11468
11502
|
|
|
11469
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11503
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11470
11504
|
|
|
11471
11505
|
### DateRangePicker
|
|
11472
11506
|
|
|
@@ -11709,7 +11743,7 @@ the moment of the click.
|
|
|
11709
11743
|
|
|
11710
11744
|
- One span; no list of separate days.
|
|
11711
11745
|
|
|
11712
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11746
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11713
11747
|
|
|
11714
11748
|
### DateTimeRangePicker
|
|
11715
11749
|
|
|
@@ -11925,7 +11959,7 @@ the moment of the click.
|
|
|
11925
11959
|
- umriss shows the reader's time ([ADR-0060](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
|
|
11926
11960
|
- No recurring windows.
|
|
11927
11961
|
|
|
11928
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11962
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11929
11963
|
|
|
11930
11964
|
## Feedback
|
|
11931
11965
|
|
|
@@ -12075,7 +12109,7 @@ Also takes every attribute of `<svg>`.
|
|
|
12075
12109
|
|
|
12076
12110
|
- One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
|
|
12077
12111
|
|
|
12078
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12112
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12079
12113
|
|
|
12080
12114
|
### ProgressBar
|
|
12081
12115
|
|
|
@@ -12258,7 +12292,7 @@ Also takes every attribute of `<div>`.
|
|
|
12258
12292
|
|
|
12259
12293
|
- No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
|
|
12260
12294
|
|
|
12261
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12295
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12262
12296
|
|
|
12263
12297
|
### Skeleton
|
|
12264
12298
|
|
|
@@ -12415,7 +12449,7 @@ Also takes every attribute of `<span>`.
|
|
|
12415
12449
|
|
|
12416
12450
|
- It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
|
|
12417
12451
|
|
|
12418
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12452
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12419
12453
|
|
|
12420
12454
|
### Alert
|
|
12421
12455
|
|
|
@@ -12633,7 +12667,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
12633
12667
|
- No timer: an alert stays until you remove it. A message that goes by itself is a toast.
|
|
12634
12668
|
- No stack or queue of messages; place each alert where its matter is.
|
|
12635
12669
|
|
|
12636
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12670
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12637
12671
|
|
|
12638
12672
|
### Toast
|
|
12639
12673
|
|
|
@@ -13191,7 +13225,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
|
|
|
13191
13225
|
- No queue: a toast over the limit pushes the oldest timed one out rather than waiting. Lasting and `loading` toasts are not capped: the deck holds every one of them beside the timed ones.
|
|
13192
13226
|
- Without the Popover API the deck moves with a dialog that transforms itself: inside a dialog the toasts stand in the top layer only where the browser has it, and elsewhere they are a fixed box in the dialog.
|
|
13193
13227
|
|
|
13194
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13228
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13195
13229
|
|
|
13196
13230
|
### EmptyState
|
|
13197
13231
|
|
|
@@ -13499,7 +13533,7 @@ export default function ACalculation() {
|
|
|
13499
13533
|
- No interactive content and no rich layout inside: it is read, never used.
|
|
13500
13534
|
- No placement option: it stands above its element and flips below where there is no room.
|
|
13501
13535
|
|
|
13502
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13536
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13503
13537
|
|
|
13504
13538
|
### Popover
|
|
13505
13539
|
|
|
@@ -13794,7 +13828,7 @@ type Align = "start" | "end" | "center";
|
|
|
13794
13828
|
- No padding and no inner layout: it brings the overlay's surface - ground, corners, shadow - and the rest is yours. A `className` restates the surface where one needs another.
|
|
13795
13829
|
- It does not trap focus; a surface the user must answer is a [Modal](#modal).
|
|
13796
13830
|
|
|
13797
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13831
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13798
13832
|
|
|
13799
13833
|
### Menu
|
|
13800
13834
|
|
|
@@ -13995,7 +14029,7 @@ Also takes every attribute of `<button>` – without `onSelect`.
|
|
|
13995
14029
|
|
|
13996
14030
|
- No submenus, no checkable entries and no type-ahead.
|
|
13997
14031
|
|
|
13998
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14032
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13999
14033
|
|
|
14000
14034
|
### ContextMenu
|
|
14001
14035
|
|
|
@@ -14212,7 +14246,7 @@ export default function OnARow() {
|
|
|
14212
14246
|
- It listens to no right-click itself: the element and the point are yours, through the hook.
|
|
14213
14247
|
- No submenus, no checkable entries and no type-ahead, as in the menu.
|
|
14214
14248
|
|
|
14215
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14249
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14216
14250
|
|
|
14217
14251
|
### Modal
|
|
14218
14252
|
|
|
@@ -14228,6 +14262,8 @@ The title in `ModalHeader` names the dialog for a screen reader. The height foll
|
|
|
14228
14262
|
|
|
14229
14263
|
It is the browser's modal dialog: focus stays inside, the page behind cannot be scrolled, and focus returns to the opener on closing.
|
|
14230
14264
|
|
|
14265
|
+
Focus lands on the first control, the cross. A field with `autoFocus` inside takes it instead.
|
|
14266
|
+
|
|
14231
14267
|
#### Examples
|
|
14232
14268
|
|
|
14233
14269
|
##### A window that holds focus
|
|
@@ -14518,6 +14554,39 @@ export default function ADateInAWindow() {
|
|
|
14518
14554
|
}
|
|
14519
14555
|
```
|
|
14520
14556
|
|
|
14557
|
+
##### The cursor in the field
|
|
14558
|
+
|
|
14559
|
+
An `autoFocus` on a field inside the window is honoured: the window opens with the cursor there, not on the cross.
|
|
14560
|
+
|
|
14561
|
+
```tsx
|
|
14562
|
+
import { useState } from "react";
|
|
14563
|
+
import { Button, FormField, Input, Modal, ModalBody, ModalFooter, ModalHeader } from "@umriss-ui/core";
|
|
14564
|
+
|
|
14565
|
+
export default function TheCursorInTheField() {
|
|
14566
|
+
const [open, setOpen] = useState(false);
|
|
14567
|
+
|
|
14568
|
+
return (
|
|
14569
|
+
<>
|
|
14570
|
+
<Button onClick={() => setOpen(true)}>Edit the contact</Button>
|
|
14571
|
+
<Modal open={open} onClose={() => setOpen(false)}>
|
|
14572
|
+
<ModalHeader title="Edit the contact" />
|
|
14573
|
+
<ModalBody>
|
|
14574
|
+
<FormField label="Name">
|
|
14575
|
+
<Input defaultValue="Maya Lindgren" />
|
|
14576
|
+
</FormField>
|
|
14577
|
+
<FormField label="Phone">
|
|
14578
|
+
<Input autoFocus defaultValue="+49 40 555 0142" />
|
|
14579
|
+
</FormField>
|
|
14580
|
+
</ModalBody>
|
|
14581
|
+
<ModalFooter>
|
|
14582
|
+
<Button onClick={() => setOpen(false)}>Done</Button>
|
|
14583
|
+
</ModalFooter>
|
|
14584
|
+
</Modal>
|
|
14585
|
+
</>
|
|
14586
|
+
);
|
|
14587
|
+
}
|
|
14588
|
+
```
|
|
14589
|
+
|
|
14521
14590
|
#### When to use something else
|
|
14522
14591
|
|
|
14523
14592
|
- A detail beside the list the user came from → Drawer
|
|
@@ -14537,7 +14606,7 @@ export default function ADateInAWindow() {
|
|
|
14537
14606
|
|
|
14538
14607
|
| Prop | Type | Default | Description |
|
|
14539
14608
|
|---|---|---|---|
|
|
14540
|
-
| `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and
|
|
14609
|
+
| `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 14 more |
|
|
14541
14610
|
| `size` | `ModalSize`<br>`"sm" \| "md" \| "lg"` | `"md"` | The width of the window. The height comes from the content; only the body scrolls, header and footer stand fast.<br>Shown in: [Sizes](#modal), [Scroll long content](#modal), [Guard unsaved changes](#modal) and 3 more |
|
|
14542
14611
|
| `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop.<br>Shown in: [A window that must be answered](#modal) |
|
|
14543
14612
|
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
@@ -14546,7 +14615,7 @@ export default function ADateInAWindow() {
|
|
|
14546
14615
|
|
|
14547
14616
|
| Prop | Type | Default | Description |
|
|
14548
14617
|
|---|---|---|---|
|
|
14549
|
-
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and
|
|
14618
|
+
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click.<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 14 more |
|
|
14550
14619
|
|
|
14551
14620
|
Also takes every attribute of `<dialog>` – without `onClose`.
|
|
14552
14621
|
|
|
@@ -14554,7 +14623,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
14554
14623
|
|
|
14555
14624
|
| Prop | Type | Default | Description |
|
|
14556
14625
|
|---|---|---|---|
|
|
14557
|
-
| `title` *required* | `ReactNode` | — | The heading of the window. It names it for the screen reader at the same time – a dialog without a name says only "dialog".<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and
|
|
14626
|
+
| `title` *required* | `ReactNode` | — | The heading of the window. It names it for the screen reader at the same time – a dialog without a name says only "dialog".<br>Shown in: [A window that holds focus](#modal), [Sizes](#modal), [Scroll long content](#modal) and 14 more |
|
|
14558
14627
|
| `description` | `ReactNode` | — | One sentence below the heading: what is to be decided here.<br>Shown in: [A window that holds focus](#modal), [Scroll long content](#modal), [Guard unsaved changes](#modal) and 8 more |
|
|
14559
14628
|
| `hideClose` | `boolean` | `false` | Hides the close button.<br>Shown in: [A window that must be answered](#modal) |
|
|
14560
14629
|
| `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
@@ -14575,7 +14644,7 @@ type ModalSize = "sm" | "md" | "lg";
|
|
|
14575
14644
|
|
|
14576
14645
|
- No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
|
|
14577
14646
|
|
|
14578
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14647
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14579
14648
|
|
|
14580
14649
|
### Drawer
|
|
14581
14650
|
|
|
@@ -14937,6 +15006,39 @@ export default function AnAppShell() {
|
|
|
14937
15006
|
}
|
|
14938
15007
|
```
|
|
14939
15008
|
|
|
15009
|
+
##### The cursor in the field
|
|
15010
|
+
|
|
15011
|
+
An `autoFocus` on a field inside the drawer is honoured, as in a `Modal`.
|
|
15012
|
+
|
|
15013
|
+
```tsx
|
|
15014
|
+
import { useState } from "react";
|
|
15015
|
+
import { Button, Drawer, FormField, Input, ModalBody, ModalFooter, ModalHeader } from "@umriss-ui/core";
|
|
15016
|
+
|
|
15017
|
+
export default function TheCursorInTheField() {
|
|
15018
|
+
const [open, setOpen] = useState(false);
|
|
15019
|
+
|
|
15020
|
+
return (
|
|
15021
|
+
<>
|
|
15022
|
+
<Button onClick={() => setOpen(true)}>Edit the shipment</Button>
|
|
15023
|
+
<Drawer open={open} onClose={() => setOpen(false)}>
|
|
15024
|
+
<ModalHeader title="Edit the shipment" />
|
|
15025
|
+
<ModalBody>
|
|
15026
|
+
<FormField label="Consignee">
|
|
15027
|
+
<Input defaultValue="Harlow Bakery" />
|
|
15028
|
+
</FormField>
|
|
15029
|
+
<FormField label="Note">
|
|
15030
|
+
<Input autoFocus defaultValue="Ring twice" />
|
|
15031
|
+
</FormField>
|
|
15032
|
+
</ModalBody>
|
|
15033
|
+
<ModalFooter>
|
|
15034
|
+
<Button onClick={() => setOpen(false)}>Done</Button>
|
|
15035
|
+
</ModalFooter>
|
|
15036
|
+
</Drawer>
|
|
15037
|
+
</>
|
|
15038
|
+
);
|
|
15039
|
+
}
|
|
15040
|
+
```
|
|
15041
|
+
|
|
14940
15042
|
#### When to use something else
|
|
14941
15043
|
|
|
14942
15044
|
- A task that has nothing to do with what lies behind it → Modal
|
|
@@ -14956,7 +15058,7 @@ export default function AnAppShell() {
|
|
|
14956
15058
|
| Prop | Type | Default | Description |
|
|
14957
15059
|
|---|---|---|---|
|
|
14958
15060
|
| `side` | `"right" \| "left"` | `"right"` | The edge the drawer stands at and enters from.<br>Shown in: [From the left, and wider](#drawer), [An app shell](#drawer) |
|
|
14959
|
-
| `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and
|
|
15061
|
+
| `open` *required* | `boolean` | — | Whether the window stands. Controlled: the opening is the caller's decision, and only the caller knows whether something may be open. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and 14 more |
|
|
14960
15062
|
| `closeOnBackdrop` | `boolean` | `true` | Closes on a click on the backdrop. From `ModalProps`.<br>Shown in: [A window that must be answered (Modal)](#modal) |
|
|
14961
15063
|
| `ref` | `Ref<HTMLDialogElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
14962
15064
|
|
|
@@ -14964,7 +15066,7 @@ export default function AnAppShell() {
|
|
|
14964
15066
|
|
|
14965
15067
|
| Prop | Type | Default | Description |
|
|
14966
15068
|
|---|---|---|---|
|
|
14967
|
-
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and
|
|
15069
|
+
| `onClose` *required* | `() => void` | — | Reports every wish to close – Escape, cross, backdrop click. From `ModalProps`.<br>Shown in: [A detail from the edge](#drawer), [From the left, and wider](#drawer), [Open a service's detail from its list](#drawer) and 14 more |
|
|
14968
15070
|
|
|
14969
15071
|
Also takes every attribute of `<dialog>` – without `onClose`.
|
|
14970
15072
|
|
|
@@ -14973,7 +15075,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
14973
15075
|
- Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
|
|
14974
15076
|
- Only the left and right edges; nothing slides in from the top or bottom.
|
|
14975
15077
|
|
|
14976
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15078
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14977
15079
|
|
|
14978
15080
|
### ConfirmDialog
|
|
14979
15081
|
|
|
@@ -15150,7 +15252,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
15150
15252
|
|
|
15151
15253
|
- A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
|
|
15152
15254
|
|
|
15153
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15255
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15154
15256
|
|
|
15155
15257
|
### CommandPalette
|
|
15156
15258
|
|
|
@@ -15452,7 +15554,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
15452
15554
|
- No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
|
|
15453
15555
|
- No nested steps or arguments: a command that needs input opens your own form after it is chosen.
|
|
15454
15556
|
|
|
15455
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15557
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15456
15558
|
|
|
15457
15559
|
## Navigation
|
|
15458
15560
|
|
|
@@ -15772,7 +15874,7 @@ Also takes every attribute of the rendered element.
|
|
|
15772
15874
|
|
|
15773
15875
|
- It neither routes nor reads the address: the trail is what you pass.
|
|
15774
15876
|
|
|
15775
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15877
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15776
15878
|
|
|
15777
15879
|
### Tabs
|
|
15778
15880
|
|
|
@@ -16142,7 +16244,7 @@ Also takes every attribute of `<div>`.
|
|
|
16142
16244
|
|
|
16143
16245
|
- More tabs than fit scroll sideways within the list; there is no overflow menu, and no closing or reordering of tabs.
|
|
16144
16246
|
|
|
16145
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16247
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16146
16248
|
|
|
16147
16249
|
### Accordion
|
|
16148
16250
|
|
|
@@ -16391,7 +16493,7 @@ Also takes every attribute of `<div>` – without `title`.
|
|
|
16391
16493
|
|
|
16392
16494
|
- A folded section's content stays rendered; for heavy content, render it only while its section is open.
|
|
16393
16495
|
|
|
16394
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16496
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16395
16497
|
|
|
16396
16498
|
### Stepper
|
|
16397
16499
|
|
|
@@ -16624,7 +16726,7 @@ Also takes every attribute of the rendered element.
|
|
|
16624
16726
|
- The steps are read, not navigated: no keys, no clicks, and no next or back of its own. Moving on is your application's decision, by a done step's label as a button or by buttons of its own.
|
|
16625
16727
|
- No branching or optional steps; pass the steps that apply.
|
|
16626
16728
|
|
|
16627
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16729
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16628
16730
|
|
|
16629
16731
|
### TreeView
|
|
16630
16732
|
|
|
@@ -17302,7 +17404,7 @@ to render and the heights of the filler rows around it.
|
|
|
17302
17404
|
- No dragging nodes to rearrange them.
|
|
17303
17405
|
- It fetches nothing and handles no loading errors: retries and messages stay in your application ([ADR-0005](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0005-what-cannot-be-checked.md)).
|
|
17304
17406
|
|
|
17305
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17407
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17306
17408
|
|
|
17307
17409
|
### Benchmark
|
|
17308
17410
|
|
|
@@ -17779,7 +17881,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
17779
17881
|
- It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
|
|
17780
17882
|
- It counts nothing itself: capping at “99+” is yours.
|
|
17781
17883
|
|
|
17782
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17884
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17783
17885
|
|
|
17784
17886
|
### Tag
|
|
17785
17887
|
|
|
@@ -18046,7 +18148,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
18046
18148
|
- No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
|
|
18047
18149
|
- Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
|
|
18048
18150
|
|
|
18049
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
18151
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
18050
18152
|
|
|
18051
18153
|
### Stat
|
|
18052
18154
|
|
|
@@ -18935,7 +19037,7 @@ type Severity = "warning" | "alarm";
|
|
|
18935
19037
|
- No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
|
|
18936
19038
|
- It fetches and polls nothing: freshness is judged from the `asOf` you give it.
|
|
18937
19039
|
|
|
18938
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19040
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
18939
19041
|
|
|
18940
19042
|
### Meter
|
|
18941
19043
|
|
|
@@ -19105,7 +19207,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
19105
19207
|
|
|
19106
19208
|
- No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
|
|
19107
19209
|
|
|
19108
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19210
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
19109
19211
|
|
|
19110
19212
|
### Sparkline
|
|
19111
19213
|
|
|
@@ -19363,7 +19465,7 @@ Also takes every attribute of `<span>`.
|
|
|
19363
19465
|
|
|
19364
19466
|
- No axes, labels, tooltip or points to hover: the value stands beside it.
|
|
19365
19467
|
|
|
19366
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19468
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.49.0/docs/adr/0032-what-umriss-is-not.md).
|
|
19367
19469
|
|
|
19368
19470
|
## API index
|
|
19369
19471
|
|
|
@@ -19568,7 +19670,7 @@ Used on [Sizes](#sizes) and [FileInput](#fileinput).
|
|
|
19568
19670
|
|
|
19569
19671
|
[FormField](#formfield) – The frame around a field: its label, a hint below it and the error that replaces the hint. Wrap every field in one, so the question, the help and the problem are read out together.
|
|
19570
19672
|
|
|
19571
|
-
Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [Sizes](#sizes), [Language](#language), [Button](#button), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [Checkbox](#checkbox), [Switch](#switch), [RadioGroup](#radiogroup), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Alert](#alert), [Toast](#toast-1), [Popover](#popover), [Modal](#modal), [Breadcrumb](#breadcrumb), [Accordion](#accordion) and [TreeView](#treeview).
|
|
19673
|
+
Used on [Scenarios](#scenarios), [UmrissProvider](#umrissprovider), [Sizes](#sizes), [Language](#language), [Button](#button), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [Checkbox](#checkbox), [Switch](#switch), [RadioGroup](#radiogroup), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Alert](#alert), [Toast](#toast-1), [Popover](#popover), [Modal](#modal), [Drawer](#drawer), [Breadcrumb](#breadcrumb), [Accordion](#accordion) and [TreeView](#treeview).
|
|
19572
19674
|
|
|
19573
19675
|
##### `FormFieldBoundary`
|
|
19574
19676
|
|
|
@@ -19628,7 +19730,7 @@ Used on [Button](#button), [IconButton](#iconbutton), [Input](#input) and [Menu]
|
|
|
19628
19730
|
|
|
19629
19731
|
[Input](#input) – A single line of text (text field, text box): names, references, addresses, search terms. Reach for it whenever the answer is short free text; for numbers take a [NumberInput](#numberinput).
|
|
19630
19732
|
|
|
19631
|
-
Used on [Sizes](#sizes), [Button](#button), [Input](#input), [FormField](#formfield), [Alert](#alert), [Toast](#toast-1), [Modal](#modal), [CommandPalette](#commandpalette) and [Accordion](#accordion).
|
|
19733
|
+
Used on [Sizes](#sizes), [Button](#button), [Input](#input), [FormField](#formfield), [Alert](#alert), [Toast](#toast-1), [Modal](#modal), [Drawer](#drawer), [CommandPalette](#commandpalette) and [Accordion](#accordion).
|
|
19632
19734
|
|
|
19633
19735
|
##### `LanguageProvider`
|
|
19634
19736
|
|
|
@@ -20259,6 +20361,20 @@ that during development.
|
|
|
20259
20361
|
function duplicateKey<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S | null;
|
|
20260
20362
|
```
|
|
20261
20363
|
|
|
20364
|
+
##### `formatsFor`
|
|
20365
|
+
|
|
20366
|
+
Every format of one locale, built once.
|
|
20367
|
+
|
|
20368
|
+
The options are the product's, not the locale's: two-digit day and month,
|
|
20369
|
+
the month written out with its year, a 24-hour clock, per cent without
|
|
20370
|
+
decimals. What the locale decides is the order of the parts and the
|
|
20371
|
+
separators - 17/03/2026 against 17.03.2026 - and the words of the month,
|
|
20372
|
+
the weekday and "3 minutes ago".
|
|
20373
|
+
|
|
20374
|
+
```ts
|
|
20375
|
+
function formatsFor(locale: string, timeZone?: string): Formats;
|
|
20376
|
+
```
|
|
20377
|
+
|
|
20262
20378
|
##### `freshness`
|
|
20263
20379
|
|
|
20264
20380
|
The freshness of a value: its as-of time, measured against a reference time,
|
|
@@ -20722,6 +20838,7 @@ Everything the library knows about formatting.
|
|
|
20722
20838
|
| `month` *required* | `(d: Date) => string` | — | The calendar's month header: March 2026 |
|
|
20723
20839
|
| `monthName` *required* | `(d: Date) => string` | — | The month alone, in the calendar head's month list: March |
|
|
20724
20840
|
| `dateLong` *required* | `(d: Date) => string` | — | Accessible name of a calendar cell: Tuesday, 17 March 2026 |
|
|
20841
|
+
| `weekStart` *required* | `number` | — | The first day of the calendars' week, ISO-numbered: 1 = Monday ... 7 = Sunday. |
|
|
20725
20842
|
| `time` *required* | `(d: Date, withSeconds: boolean) => string` | — | Time of day, optionally with seconds: 09:05 or 09:05:03<br>Shown in: [Watch a kiln line over a shift (Scenarios)](#watch-a-kiln-line-over-a-shift) |
|
|
20726
20843
|
| `dateTime` *required* | `(d: Date, withSeconds: boolean) => string` | — | Date and time together: 17/03/2026, 09:05<br>Shown in: [Use the language in your own components (Language)](#language), [Pick a day (DatePicker)](#datepicker), [Set an instant (DateTimePicker)](#datetimepicker) and 1 more |
|
|
20727
20844
|
| `offset` *required* | `(d: Date) => string` | — | Short form of the UTC offset: GMT+2<br>Shown in: [Set an instant (DateTimePicker)](#datetimepicker) |
|
|
@@ -21617,6 +21734,7 @@ Everything the library puts out as text.
|
|
|
21617
21734
|
| `filterDone` *required* | `string` | — | |
|
|
21618
21735
|
| `columns` *required* | `string` | — | The column menu's button. |
|
|
21619
21736
|
| `arrangeColumns` *required* | `string` | — | Accessible name of the list in the column menu. |
|
|
21737
|
+
| `fitAllColumns` *required* | `string` | — | The column menu's button that sets every column to the width of its content. |
|
|
21620
21738
|
| `columnForward` *required* | `(column: string) => string` | — | The two buttons that move a column in the column menu. |
|
|
21621
21739
|
| `columnBackward` *required* | `(column: string) => string` | — | |
|
|
21622
21740
|
| `pinColumnToStart` *required* | `(column: string) => string` | — | The column menu's pin keys: to a side, and back when it is pinned there. |
|
|
@@ -21706,6 +21824,18 @@ Everything the library puts out as text.
|
|
|
21706
21824
|
| `rangeFrom` *required* | `(from: string) => string` | — | |
|
|
21707
21825
|
| `rangeTo` *required* | `(to: string) => string` | — | |
|
|
21708
21826
|
| `rangeInvalid` *required* | `string` | — | When "From" lies behind "To". The condition stays the last valid one. |
|
|
21827
|
+
| `textContains` *required* | `string` | — | The text filter: its operators, as the choice and in the condition. |
|
|
21828
|
+
| `textNotContains` *required* | `string` | — | |
|
|
21829
|
+
| `textStartsWith` *required* | `string` | — | |
|
|
21830
|
+
| `textEndsWith` *required* | `string` | — | |
|
|
21831
|
+
| `textEquals` *required* | `string` | — | |
|
|
21832
|
+
| `textIsEmpty` *required* | `string` | — | |
|
|
21833
|
+
| `textAnd` *required* | `string` | — | What joins the two terms of a text condition: the choice and the word between them. |
|
|
21834
|
+
| `textOr` *required* | `string` | — | |
|
|
21835
|
+
| `filterOperator` *required* | `string` | — | The labels of the operator and the value fields of a term. |
|
|
21836
|
+
| `filterValue` *required* | `string` | — | |
|
|
21837
|
+
| `filterJoin` *required* | `string` | — | The name of the choice between AND and OR. |
|
|
21838
|
+
| `textTerm` *required* | `(operator: string, value: string) => string` | — | A term with a value in the toolbar: `starts with “foo”`. |
|
|
21709
21839
|
| `resetAll` *required* | `string` | — | Clears search and conditions - in the table toolbar and in the empty body. |
|
|
21710
21840
|
| `tryAgain` *required* | `string` | — | The button under a server-mode table's error that sends the request once more. |
|
|
21711
21841
|
| `filteredOfTotal` *required* | `(matches: string, total: string) => string` | — | "43 of 1.204" - the numbers come from the formats. |
|
|
@@ -21768,6 +21898,7 @@ Everything the library puts out as text.
|
|
|
21768
21898
|
| `scheduleUnfoldGroup` *required* | `string` | — | |
|
|
21769
21899
|
| `scheduleLaneCount` *required* | `(count: number) => string` | — | How many lanes a group holds, beside its name in the header. |
|
|
21770
21900
|
| `scheduleRoleDescription` *required* | `string` | — | What a screen reader calls the plot that takes the keys (`aria-roledescription`, schedule-a11y S1). |
|
|
21901
|
+
| `schedulePlotName` *required* | `(label: string) => string` | — | The plot's own name, beside the figure that carries the caller's `aria-label`, so the caller's name is not heard twice. |
|
|
21771
21902
|
| `scheduleSummary` *required* | `(summary: { lanes: number; subtasks: number; from: string; to: string; overlaps: number; violated: number; /** Subtasks in blocked time; said only where there are any. */ blocked: number; /** Milestones of the plan; said only where there are any. */ milestones: number; }) => string` | — | The plot's description (S6): the lanes, the subtasks in view, the visible span with both ends formatted, and the findings of the plan by kind. |
|
|
21772
21903
|
| `scheduleVisibleRange` *required* | `(from: string, to: string) => string` | — | The span in view, said after a zoom key. |
|
|
21773
21904
|
| `scheduleKeyHelp` *required* | `string` | — | The keys that walk the plot, select and edit - read after the summary. |
|