@umriss-ui/core 0.49.0 → 0.51.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 +29 -0
- package/README.md +1 -1
- package/dist/core.js +3571 -3509
- package/dist/de.d.ts +14 -0
- package/dist/index.d.ts +24 -0
- package/dist/wording/de.js +7 -2
- package/docs/llms-full.md +178 -83
- package/package.json +2 -2
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.51.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
|
|
|
@@ -2727,7 +2727,7 @@ From `ButtonProps` — the full table stands on [Button](#button).
|
|
|
2727
2727
|
- No font is loaded or bundled.
|
|
2728
2728
|
- Chrome 123, Firefox 120 and Safari 17.5 or newer; an older browser discards the tokens and shows the components unstyled.
|
|
2729
2729
|
|
|
2730
|
-
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.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2731
2731
|
|
|
2732
2732
|
### UmrissProvider
|
|
2733
2733
|
|
|
@@ -2938,7 +2938,7 @@ type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "
|
|
|
2938
2938
|
|
|
2939
2939
|
- No theme and no default variants for components: a component is configured by its own props.
|
|
2940
2940
|
|
|
2941
|
-
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.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2942
2942
|
|
|
2943
2943
|
## Customising
|
|
2944
2944
|
|
|
@@ -3427,7 +3427,7 @@ From `BadgeProps` — the full table stands on [Badge](#badge).
|
|
|
3427
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.
|
|
3428
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`.
|
|
3429
3429
|
|
|
3430
|
-
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.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3431
3431
|
|
|
3432
3432
|
### Sizes
|
|
3433
3433
|
|
|
@@ -3845,7 +3845,7 @@ type ControlSize = "sm" | "md";
|
|
|
3845
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).
|
|
3846
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)`.
|
|
3847
3847
|
|
|
3848
|
-
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.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3849
3849
|
|
|
3850
3850
|
### Language
|
|
3851
3851
|
|
|
@@ -4098,6 +4098,55 @@ export default function OwnComponents() {
|
|
|
4098
4098
|
}
|
|
4099
4099
|
```
|
|
4100
4100
|
|
|
4101
|
+
##### A third language, notation first
|
|
4102
|
+
|
|
4103
|
+
[`formatsFor`](#api-index-1) builds the notation of any locale the runtime knows: Swiss French dates and numbers, and a week that starts on Sunday where your users' calendars do. The words stay English until you hand over a `Wording` of your own.
|
|
4104
|
+
|
|
4105
|
+
```tsx
|
|
4106
|
+
import { useState } from "react";
|
|
4107
|
+
import { DatePicker, FormField, Grid, LanguageProvider, NumberInput, Stack, Text, formatsFor } from "@umriss-ui/core";
|
|
4108
|
+
|
|
4109
|
+
/* Outside the component, so the provider does not rebuild on every render.
|
|
4110
|
+
`weekStart` is ISO-numbered: 7 is Sunday. */
|
|
4111
|
+
const SWISS_FRENCH = { ...formatsFor("fr-CH"), weekStart: 7 };
|
|
4112
|
+
|
|
4113
|
+
function Surface() {
|
|
4114
|
+
const [date, setDate] = useState<Date | null>(new Date(2026, 2, 18));
|
|
4115
|
+
const [weight, setWeight] = useState<number | null>(1284.5);
|
|
4116
|
+
return (
|
|
4117
|
+
<Stack gap={3}>
|
|
4118
|
+
<FormField label="Delivery date">
|
|
4119
|
+
<DatePicker value={date} onChange={setDate} />
|
|
4120
|
+
</FormField>
|
|
4121
|
+
<FormField label="Weight">
|
|
4122
|
+
<NumberInput value={weight} onChange={setWeight} decimals={1} suffix="kg" />
|
|
4123
|
+
</FormField>
|
|
4124
|
+
</Stack>
|
|
4125
|
+
);
|
|
4126
|
+
}
|
|
4127
|
+
|
|
4128
|
+
export default function ThirdLanguage() {
|
|
4129
|
+
return (
|
|
4130
|
+
<Grid minItemWidth="240px" gap={5}>
|
|
4131
|
+
<Stack gap={2}>
|
|
4132
|
+
<Text size="xs" tone="muted">
|
|
4133
|
+
Without a provider
|
|
4134
|
+
</Text>
|
|
4135
|
+
<Surface />
|
|
4136
|
+
</Stack>
|
|
4137
|
+
<Stack gap={2}>
|
|
4138
|
+
<Text size="xs" tone="muted">
|
|
4139
|
+
formatsFor("fr-CH"), weekStart 7
|
|
4140
|
+
</Text>
|
|
4141
|
+
<LanguageProvider formats={SWISS_FRENCH}>
|
|
4142
|
+
<Surface />
|
|
4143
|
+
</LanguageProvider>
|
|
4144
|
+
</Stack>
|
|
4145
|
+
</Grid>
|
|
4146
|
+
);
|
|
4147
|
+
}
|
|
4148
|
+
```
|
|
4149
|
+
|
|
4101
4150
|
#### Wording
|
|
4102
4151
|
|
|
4103
4152
|
Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of `GERMAN_WORDING`. A function entry receives the parameters its key names and returns the sentence beside it. Override any entry by its key; a `presets` entry inside `presets`.
|
|
@@ -4226,9 +4275,13 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4226
4275
|
| `pagination` | Pagination | Seitennavigation | — |
|
|
4227
4276
|
| `rows` | Rows | Zeilen | — |
|
|
4228
4277
|
| `rowsPerPage` | Rows per page | Zeilen pro Seite | — |
|
|
4278
|
+
| `fit` | Fit | Passend | The page-size choice that leaves the page to the frame. |
|
|
4229
4279
|
| `pageOfPages(page, total, formatted)` | `` `Page ${formatted?.page ?? page} of ${formatted?.total ?? total}` `` | `` `Seite ${formatted?.page ?? page} von ${formatted?.total ?? total}` `` | "Page 2 of 7". `formatted` carries both numbers in the provider's formats, where the caller has them - a table over a server has "Page 1 of 100,000". |
|
|
4230
|
-
| `
|
|
4231
|
-
| `
|
|
4280
|
+
| `pageRange(from, to, total, formatted)` | `` `${formatted?.from ?? from}–${formatted?.to ?? to} of ${formatted?.total ?? total}` `` | `` `${formatted?.from ?? from}–${formatted?.to ?? to} von ${formatted?.total ?? total}` `` | "13–24 of 120" in the pagination bar. `formatted` carries the three numbers in the provider's formats, where the caller has them. |
|
|
4281
|
+
| `firstPage` | First page | Erste Seite | The names of the four steps of the pagination bar. |
|
|
4282
|
+
| `previousPage` | Previous page | Vorherige Seite | — |
|
|
4283
|
+
| `nextPage` | Next page | Nächste Seite | — |
|
|
4284
|
+
| `lastPage` | Last page | Letzte Seite | — |
|
|
4232
4285
|
| `filterReset` | Reset | Zurücksetzen | The two buttons in the column filter's footer. |
|
|
4233
4286
|
| `filterDone` | Done | Fertig | — |
|
|
4234
4287
|
|
|
@@ -4390,6 +4443,7 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
4390
4443
|
| `dropFiles` | or drop them here | oder hier ablegen | — |
|
|
4391
4444
|
| `removeFile(name)` | `` `Remove ${name}` `` | `` `${name} entfernen` `` | The cross beside a chosen file. |
|
|
4392
4445
|
| `fileNotAccepted(name)` | `` `${name} is not an accepted type` `` | `` `${name} ist kein zugelassener Dateityp` `` | A dropped file the input's `accept` does not take. |
|
|
4446
|
+
| `numberRefused` | Only digits and the decimal separator | Nur Ziffern und das Dezimaltrennzeichen | A NumberInput refusing a character it cannot read. |
|
|
4393
4447
|
| `show` | Show | Einblenden | — |
|
|
4394
4448
|
| `hide` | Hide | Ausblenden | — |
|
|
4395
4449
|
| `moreActions` | More actions | Weitere Aktionen | — |
|
|
@@ -4654,7 +4708,7 @@ The keys of [Button](#button), [NumberInput](#numberinput), [Combobox](#combobox
|
|
|
4654
4708
|
|
|
4655
4709
|
| Prop | Type | Default | Description |
|
|
4656
4710
|
|---|---|---|---|
|
|
4657
|
-
| `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)).<br>Shown in: [German](#language), [English and German side by side](#language), [Write numbers in your own notation](#language) and
|
|
4711
|
+
| `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)).<br>Shown in: [German](#language), [English and German side by side](#language), [Write numbers in your own notation](#language) and 4 more |
|
|
4658
4712
|
| `wording` | `Partial<Omit<``Wording``, "presets">> & { presets?: Partial<``Wording``["presets"]> }` | — | The presets are a register of their own and are likewise overridden entry by entry.<br>Shown in: [German](#language), [English and German side by side](#language), [Replace single entries](#language) and 2 more |
|
|
4659
4713
|
|
|
4660
4714
|
##### Types on this page
|
|
@@ -4783,9 +4837,13 @@ Everything the library puts out as text.
|
|
|
4783
4837
|
| `pagination` *required* | `string` | — | |
|
|
4784
4838
|
| `rows` *required* | `string` | — | |
|
|
4785
4839
|
| `rowsPerPage` *required* | `string` | — | |
|
|
4840
|
+
| `fit` *required* | `string` | — | The page-size choice that leaves the page to the frame. |
|
|
4786
4841
|
| `pageOfPages` *required* | `(page: number, total: number, formatted?: { page: string; total: string }) => string` | — | "Page 2 of 7". `formatted` carries both numbers in the provider's formats, where the caller has them - a table over a server has "Page 1 of 100,000". |
|
|
4842
|
+
| `pageRange` *required* | `(from: number, to: number, total: number, formatted?: { from: string; to: string; total: string }) => string` | — | "13–24 of 120" in the pagination bar. `formatted` carries the three numbers in the provider's formats, where the caller has them. |
|
|
4843
|
+
| `firstPage` *required* | `string` | — | The names of the four steps of the pagination bar. |
|
|
4787
4844
|
| `previousPage` *required* | `string` | — | |
|
|
4788
4845
|
| `nextPage` *required* | `string` | — | |
|
|
4846
|
+
| `lastPage` *required* | `string` | — | |
|
|
4789
4847
|
| `filterReset` *required* | `string` | — | The two buttons in the column filter's footer. |
|
|
4790
4848
|
| `filterDone` *required* | `string` | — | |
|
|
4791
4849
|
| `columns` *required* | `string` | — | The column menu's button. |
|
|
@@ -4932,6 +4990,7 @@ Everything the library puts out as text.
|
|
|
4932
4990
|
| `dropFiles` *required* | `string` | — | |
|
|
4933
4991
|
| `removeFile` *required* | `(name: string) => string` | — | The cross beside a chosen file. |
|
|
4934
4992
|
| `fileNotAccepted` *required* | `(name: string) => string` | — | A dropped file the input's `accept` does not take. |
|
|
4993
|
+
| `numberRefused` *required* | `string` | — | A NumberInput refusing a character it cannot read. |
|
|
4935
4994
|
| `show` *required* | `string` | — | |
|
|
4936
4995
|
| `hide` *required* | `string` | — | |
|
|
4937
4996
|
| `moreActions` *required* | `string` | — | |
|
|
@@ -5091,10 +5150,10 @@ Everything the library puts out as text.
|
|
|
5091
5150
|
|
|
5092
5151
|
#### Known limits
|
|
5093
5152
|
|
|
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.
|
|
5153
|
+
- 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.51.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
5095
5154
|
- It holds only what the components say themselves; your labels, titles and data are yours to translate.
|
|
5096
5155
|
|
|
5097
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5156
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5098
5157
|
|
|
5099
5158
|
## Layout
|
|
5100
5159
|
|
|
@@ -5397,7 +5456,7 @@ The keys of [Button](#button) apply here.
|
|
|
5397
5456
|
| Prop | Type | Default | Description |
|
|
5398
5457
|
|---|---|---|---|
|
|
5399
5458
|
| `direction` | `"row" \| "column"` | `"column"` | Below one another or beside one another. Below is the direction content stands in anyway, without being asked.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [Wrapping](#stack-and-grid) and 71 more |
|
|
5400
|
-
| `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
|
|
5459
|
+
| `gap` | `SpaceStep`<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `3` | Spacing as a step of the 4 px spacing steps (1–8).<br>Shown in: [A column](#stack-and-grid), [A row](#stack-and-grid), [Gaps](#stack-and-grid) and 176 more |
|
|
5401
5460
|
| `align` | `CSSProperties["alignItems"]` | — | Alignment across the direction – `alignItems` unchanged.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [A tour summary](#stack-and-grid) and 81 more |
|
|
5402
5461
|
| `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 |
|
|
5403
5462
|
| `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 |
|
|
@@ -5410,8 +5469,8 @@ Also takes every attribute of `<div>`.
|
|
|
5410
5469
|
| Prop | Type | Default | Description |
|
|
5411
5470
|
|---|---|---|---|
|
|
5412
5471
|
| `columns` | `number \| readonly ``GridColumnWidth``[]` | `2` | How many columns, all of one width - or a list with one width per column: a number in pixels, or `"fill"` for a share of what is left. Overridden by minItemWidth.<br>Shown in: [Fixed columns](#stack-and-grid), [Columns of their own widths](#stack-and-grid), [A token for one region (Theming)](#theming) and 5 more |
|
|
5413
|
-
| `minItemWidth` | `string` | — | Responsive: as many columns as fit at this minimum width; wins over `columns`, a list included.<br>Shown in: [Columns by width](#stack-and-grid), [A tour summary](#stack-and-grid), [A dark region (Theming)](#theming) and
|
|
5414
|
-
| `gap` | `SpaceStep`<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions.<br>Shown in: [Fixed columns](#stack-and-grid), [Columns by width](#stack-and-grid), [Columns of their own widths](#stack-and-grid) and
|
|
5472
|
+
| `minItemWidth` | `string` | — | Responsive: as many columns as fit at this minimum width; wins over `columns`, a list included.<br>Shown in: [Columns by width](#stack-and-grid), [A tour summary](#stack-and-grid), [A dark region (Theming)](#theming) and 53 more |
|
|
5473
|
+
| `gap` | `SpaceStep`<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `4` | Spacing as a step of the 4 px spacing steps (1–8); applies in both directions.<br>Shown in: [Fixed columns](#stack-and-grid), [Columns by width](#stack-and-grid), [Columns of their own widths](#stack-and-grid) and 60 more |
|
|
5415
5474
|
| `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 |
|
|
5416
5475
|
|
|
5417
5476
|
Also takes every attribute of `<div>`.
|
|
@@ -5441,7 +5500,7 @@ type GridColumnWidth = number | "fill";
|
|
|
5441
5500
|
- No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
|
|
5442
5501
|
- 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)).
|
|
5443
5502
|
|
|
5444
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5503
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5445
5504
|
|
|
5446
5505
|
### Divider
|
|
5447
5506
|
|
|
@@ -6266,7 +6325,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
|
|
|
6266
6325
|
- 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)).
|
|
6267
6326
|
- It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
|
|
6268
6327
|
|
|
6269
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6328
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6270
6329
|
|
|
6271
6330
|
## Typography
|
|
6272
6331
|
|
|
@@ -6624,9 +6683,9 @@ export default function IncidentSummary() {
|
|
|
6624
6683
|
| Prop | Type | Default | Description |
|
|
6625
6684
|
|---|---|---|---|
|
|
6626
6685
|
| `as` | `ElementType` | `"p"` | Element to render as.<br>Shown in: [Tones and weights](#typography-2), [Set an incident summary](#typography-2), [Use the language in your own components (Language)](#language) and 20 more |
|
|
6627
|
-
| `size` | `TextSize`<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#typography-2), [Sizes](#typography-2), [Tones and weights](#typography-2) and
|
|
6686
|
+
| `size` | `TextSize`<br>`"xs" \| "sm" \| "md" \| "lg" \| "xl" \| "2xl"` | `"md"` | Type size from the token set. It is independent of the element: a `p` may be small without becoming a different element.<br>Shown in: [Configurator](#typography-2), [Sizes](#typography-2), [Tones and weights](#typography-2) and 138 more |
|
|
6628
6687
|
| `weight` | `TextWeight`<br>`"regular" \| "medium" \| "semibold"` | `"regular"` | Font weight from the token set.<br>Shown in: [Configurator](#typography-2), [Tones and weights](#typography-2), [Tracking and leading](#typography-2) and 18 more |
|
|
6629
|
-
| `tone` | `TextTone`<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#typography-2), [Tones and weights](#typography-2), [Tracking and leading](#typography-2) and
|
|
6688
|
+
| `tone` | `TextTone`<br>`"default" \| "secondary" \| "muted"` | `"default"` | How loud the text is. `secondary` and `muted` step back without falling below the contrast threshold.<br>Shown in: [Configurator](#typography-2), [Tones and weights](#typography-2), [Tracking and leading](#typography-2) and 100 more |
|
|
6630
6689
|
| `mono` | `boolean` | `false` | Geist Mono with tabular figures – for numbers and identifiers.<br>Shown in: [Configurator](#typography-2), [Numbers and identifiers](#typography-2), [Handle long values](#typography-2) and 34 more |
|
|
6631
6690
|
| `tracking` | `TextTracking`<br>`"normal" \| "tight" \| "display" \| "caps"` | `"normal"` | Letter spacing from the token set. `caps` belongs with letterspaced capitals.<br>Shown in: [Configurator](#typography-2), [Tracking and leading](#typography-2), [Set an incident summary](#typography-2) |
|
|
6632
6691
|
| `leading` | `TextLeading`<br>`"normal" \| "tight"` | `"normal"` | Line spacing. `tight` for multi-line headings and key figures, where the normal spacing lets the lines fall apart.<br>Shown in: [Configurator](#typography-2), [Tracking and leading](#typography-2) |
|
|
@@ -6702,10 +6761,10 @@ type TextLeading = "normal" | "tight";
|
|
|
6702
6761
|
#### Known limits
|
|
6703
6762
|
|
|
6704
6763
|
- No truncation and no line length: both depend on the column, which only the application knows.
|
|
6705
|
-
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6764
|
+
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
6706
6765
|
- `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
|
|
6707
6766
|
|
|
6708
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6767
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6709
6768
|
|
|
6710
6769
|
### VisuallyHidden
|
|
6711
6770
|
|
|
@@ -6829,7 +6888,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
|
|
|
6829
6888
|
|
|
6830
6889
|
- It hides from the eye only; to hide something from everyone, do not render it.
|
|
6831
6890
|
|
|
6832
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6891
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6833
6892
|
|
|
6834
6893
|
## Actions
|
|
6835
6894
|
|
|
@@ -7158,7 +7217,7 @@ type ControlSize = "sm" | "md";
|
|
|
7158
7217
|
- The label stays on one line; keep it short rather than let it wrap.
|
|
7159
7218
|
- No icon slot: an icon goes among the children, before the label, and the button sets its size.
|
|
7160
7219
|
|
|
7161
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7220
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7162
7221
|
|
|
7163
7222
|
### IconButton
|
|
7164
7223
|
|
|
@@ -7515,7 +7574,7 @@ type ControlSize = "sm" | "md";
|
|
|
7515
7574
|
- The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
|
|
7516
7575
|
- A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
|
|
7517
7576
|
|
|
7518
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7577
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7519
7578
|
|
|
7520
7579
|
### ButtonGroup
|
|
7521
7580
|
|
|
@@ -7875,7 +7934,7 @@ type ControlSize = "sm" | "md";
|
|
|
7875
7934
|
|
|
7876
7935
|
- No toggle or segmented state; a choice that stays is a radio group.
|
|
7877
7936
|
|
|
7878
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7937
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7879
7938
|
|
|
7880
7939
|
## Forms
|
|
7881
7940
|
|
|
@@ -8195,7 +8254,7 @@ Also takes every attribute of `<input>` – without `size`.
|
|
|
8195
8254
|
- No input masks or formatting while typing; check the value on leave or on submit.
|
|
8196
8255
|
- No validation of its own: the error is the application's, handed to the `FormField`.
|
|
8197
8256
|
|
|
8198
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8257
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8199
8258
|
|
|
8200
8259
|
### FormField
|
|
8201
8260
|
|
|
@@ -8446,7 +8505,7 @@ The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox),
|
|
|
8446
8505
|
|
|
8447
8506
|
| Prop | Type | Default | Description |
|
|
8448
8507
|
|---|---|---|---|
|
|
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
|
|
8508
|
+
| `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 91 more |
|
|
8450
8509
|
| `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 |
|
|
8451
8510
|
| `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 |
|
|
8452
8511
|
| `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 |
|
|
@@ -8461,7 +8520,7 @@ Also takes every attribute of `<div>`.
|
|
|
8461
8520
|
- 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.
|
|
8462
8521
|
- One field per `FormField`; a group of fields that share one label is a fieldset of your own.
|
|
8463
8522
|
|
|
8464
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8523
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8465
8524
|
|
|
8466
8525
|
### Textarea
|
|
8467
8526
|
|
|
@@ -8649,7 +8708,7 @@ Also takes every attribute of `<textarea>` – without `cols`.
|
|
|
8649
8708
|
|
|
8650
8709
|
- Plain text only: no formatting, mentions or rich text.
|
|
8651
8710
|
|
|
8652
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8711
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8653
8712
|
|
|
8654
8713
|
### NumberInput
|
|
8655
8714
|
|
|
@@ -8885,14 +8944,14 @@ export default function YearWithoutGrouping() {
|
|
|
8885
8944
|
|
|
8886
8945
|
| Prop | Type | Default | Description |
|
|
8887
8946
|
|---|---|---|---|
|
|
8888
|
-
| `value` *required* | `number \| null` | — | The number, or `null` for "not stated". An empty field is not zero: a quantity that was not measured is not a quantity of zero.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and
|
|
8947
|
+
| `value` *required* | `number \| null` | — | The number, or `null` for "not stated". An empty field is not zero: a quantity that was not measured is not a quantity of zero.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 16 more |
|
|
8889
8948
|
| `min` | `number` | — | Lower bound. Every reported value is clamped; the text in the field follows on leaving.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 12 more |
|
|
8890
8949
|
| `max` | `number` | — | Upper bound. Every reported value is clamped; the text in the field follows on leaving.<br>Shown in: [Configurator](#numberinput), [Units and decimals](#numberinput), [Keep a value in range](#numberinput) and 6 more |
|
|
8891
8950
|
| `step` | `number` | `1` | Step size for the arrow keys; Shift multiplies it by ten.<br>Shown in: [Configurator](#numberinput), [Units and decimals](#numberinput), [Keep a value in range](#numberinput) and 3 more |
|
|
8892
|
-
| `decimals` | `number` | — | Fixed decimal places; 0 = whole numbers, undefined = free.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and
|
|
8951
|
+
| `decimals` | `number` | — | Fixed decimal places; 0 = whole numbers, undefined = free.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 13 more |
|
|
8893
8952
|
| `grouping` | `boolean` | `true` | Group separators in the text: `false` writes none ("2024"), and the field still reads what it writes.<br>Shown in: [A year without grouping](#numberinput) |
|
|
8894
8953
|
| `prefix` | `ReactNode` | — | Adornment before the number, e.g. "±".<br>Shown in: [Units and decimals](#numberinput) |
|
|
8895
|
-
| `suffix` | `ReactNode` | — | Adornment after the number, e.g. "€" or "%".<br>Shown in: [Number field](#numberinput), [Units and decimals](#numberinput), [States](#numberinput) and
|
|
8954
|
+
| `suffix` | `ReactNode` | — | Adornment after the number, e.g. "€" or "%".<br>Shown in: [Number field](#numberinput), [Units and decimals](#numberinput), [States](#numberinput) and 10 more |
|
|
8896
8955
|
| `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [Configurator](#numberinput), [States](#numberinput), [Set up a team (Scenarios)](#set-up-a-team) |
|
|
8897
8956
|
| `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) |
|
|
8898
8957
|
| `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) |
|
|
@@ -8902,7 +8961,7 @@ export default function YearWithoutGrouping() {
|
|
|
8902
8961
|
|
|
8903
8962
|
| Prop | Type | Default | Description |
|
|
8904
8963
|
|---|---|---|---|
|
|
8905
|
-
| `onChange` *required* | `(value: number \| null) => void` | — | Runs on every valid input, with `null` for the emptied field – and always clamped: what goes out lies between `min` and `max`, by every route, while typing included. Only the text in the field may still stand outside while typing; on leaving it is set to the clamped value.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and
|
|
8964
|
+
| `onChange` *required* | `(value: number \| null) => void` | — | Runs on every valid input, with `null` for the emptied field – and always clamped: what goes out lies between `min` and `max`, by every route, while typing included. Only the text in the field may still stand outside while typing; on leaving it is set to the clamped value.<br>Shown in: [Configurator](#numberinput), [Number field](#numberinput), [Units and decimals](#numberinput) and 16 more |
|
|
8906
8965
|
|
|
8907
8966
|
Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`, `type`, `value`.
|
|
8908
8967
|
|
|
@@ -8911,7 +8970,7 @@ Also takes every attribute of `<input>` – without `onChange`, `prefix`, `size`
|
|
|
8911
8970
|
- No expressions: “12*4” is not calculated.
|
|
8912
8971
|
- No currency conversion; the unit is a label.
|
|
8913
8972
|
|
|
8914
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8973
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8915
8974
|
|
|
8916
8975
|
### Slider
|
|
8917
8976
|
|
|
@@ -9104,7 +9163,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
|
|
|
9104
9163
|
- One thumb: no range with two ends.
|
|
9105
9164
|
- Marks show values; they do not catch the thumb.
|
|
9106
9165
|
|
|
9107
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9166
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9108
9167
|
|
|
9109
9168
|
### Checkbox
|
|
9110
9169
|
|
|
@@ -9432,7 +9491,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
|
|
|
9432
9491
|
|
|
9433
9492
|
- No pending or loading state; while your application applies the change, disable the switch or say so beside it.
|
|
9434
9493
|
|
|
9435
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9494
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9436
9495
|
|
|
9437
9496
|
### RadioGroup
|
|
9438
9497
|
|
|
@@ -9896,7 +9955,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
9896
9955
|
- Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
|
|
9897
9956
|
- No icons and no line of explanation in a segment; several chosen at once is not this control.
|
|
9898
9957
|
|
|
9899
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9958
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9900
9959
|
|
|
9901
9960
|
### FileInput
|
|
9902
9961
|
|
|
@@ -10241,7 +10300,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
|
|
|
10241
10300
|
|
|
10242
10301
|
- No upload, no progress and no size limit of its own; those belong to the application sending the files.
|
|
10243
10302
|
|
|
10244
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10303
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10245
10304
|
|
|
10246
10305
|
## Choosing
|
|
10247
10306
|
|
|
@@ -10437,7 +10496,7 @@ Also takes every attribute of `<select>` – without `size`.
|
|
|
10437
10496
|
|
|
10438
10497
|
- The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
|
|
10439
10498
|
|
|
10440
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10499
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10441
10500
|
|
|
10442
10501
|
### Combobox
|
|
10443
10502
|
|
|
@@ -10821,7 +10880,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
|
|
|
10821
10880
|
- No free text as a value: only an option can be chosen.
|
|
10822
10881
|
- No request of its own: `onSearch` reports the typed text and you fetch, debounce and cancel; `filter={false}` shows what you return.
|
|
10823
10882
|
|
|
10824
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10883
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10825
10884
|
|
|
10826
10885
|
### MultiSelect
|
|
10827
10886
|
|
|
@@ -11305,7 +11364,7 @@ export default function FromTheFirstReadingToToday() {
|
|
|
11305
11364
|
|
|
11306
11365
|
| Prop | Type | Default | Description |
|
|
11307
11366
|
|---|---|---|---|
|
|
11308
|
-
| `value` *required* | `Date \| null` | — | The day, as a `Date` on midnight in the formats' zone (the reader's, unless the application names one); `null` means none.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and
|
|
11367
|
+
| `value` *required* | `Date \| null` | — | The day, as a `Date` on midnight in the formats' zone (the reader's, unless the application names one); `null` means none.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and 11 more |
|
|
11309
11368
|
| `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [States](#datepicker) |
|
|
11310
11369
|
| `disabled` | `boolean` | `false` | Locks the field and the panel.<br>Shown in: [Configurator](#datepicker), [States](#datepicker) |
|
|
11311
11370
|
| `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` - by hand only necessary without `FormField`.<br>Shown in: [Configurator](#datepicker), [With an error](#datepicker) |
|
|
@@ -11320,7 +11379,7 @@ export default function FromTheFirstReadingToToday() {
|
|
|
11320
11379
|
|
|
11321
11380
|
| Prop | Type | Default | Description |
|
|
11322
11381
|
|---|---|---|---|
|
|
11323
|
-
| `onChange` *required* | `(date: Date \| null) => void` | — | Runs as soon as a day is settled - on a click in the grid, on "Today" and on clearing (`null`). Every one of these ways hands out midnight in the formats' zone; there is none that delivers a time along with it.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and
|
|
11382
|
+
| `onChange` *required* | `(date: Date \| null) => void` | — | Runs as soon as a day is settled - on a click in the grid, on "Today" and on clearing (`null`). Every one of these ways hands out midnight in the formats' zone; there is none that delivers a time along with it.<br>Shown in: [Configurator](#datepicker), [Pick a day](#datepicker), [States](#datepicker) and 11 more |
|
|
11324
11383
|
|
|
11325
11384
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
11326
11385
|
|
|
@@ -11329,7 +11388,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
11329
11388
|
- No typing of a date into the field.
|
|
11330
11389
|
- 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)).
|
|
11331
11390
|
|
|
11332
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11391
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11333
11392
|
|
|
11334
11393
|
### DateTimePicker
|
|
11335
11394
|
|
|
@@ -11500,7 +11559,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
11500
11559
|
|
|
11501
11560
|
- 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)).
|
|
11502
11561
|
|
|
11503
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11562
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11504
11563
|
|
|
11505
11564
|
### DateRangePicker
|
|
11506
11565
|
|
|
@@ -11743,7 +11802,7 @@ the moment of the click.
|
|
|
11743
11802
|
|
|
11744
11803
|
- One span; no list of separate days.
|
|
11745
11804
|
|
|
11746
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11805
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11747
11806
|
|
|
11748
11807
|
### DateTimeRangePicker
|
|
11749
11808
|
|
|
@@ -11959,7 +12018,7 @@ the moment of the click.
|
|
|
11959
12018
|
- 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)).
|
|
11960
12019
|
- No recurring windows.
|
|
11961
12020
|
|
|
11962
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12021
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11963
12022
|
|
|
11964
12023
|
## Feedback
|
|
11965
12024
|
|
|
@@ -12109,7 +12168,7 @@ Also takes every attribute of `<svg>`.
|
|
|
12109
12168
|
|
|
12110
12169
|
- One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
|
|
12111
12170
|
|
|
12112
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12171
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12113
12172
|
|
|
12114
12173
|
### ProgressBar
|
|
12115
12174
|
|
|
@@ -12292,7 +12351,7 @@ Also takes every attribute of `<div>`.
|
|
|
12292
12351
|
|
|
12293
12352
|
- No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
|
|
12294
12353
|
|
|
12295
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12354
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12296
12355
|
|
|
12297
12356
|
### Skeleton
|
|
12298
12357
|
|
|
@@ -12449,7 +12508,7 @@ Also takes every attribute of `<span>`.
|
|
|
12449
12508
|
|
|
12450
12509
|
- It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
|
|
12451
12510
|
|
|
12452
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12511
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12453
12512
|
|
|
12454
12513
|
### Alert
|
|
12455
12514
|
|
|
@@ -12667,7 +12726,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
12667
12726
|
- No timer: an alert stays until you remove it. A message that goes by itself is a toast.
|
|
12668
12727
|
- No stack or queue of messages; place each alert where its matter is.
|
|
12669
12728
|
|
|
12670
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12729
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12671
12730
|
|
|
12672
12731
|
### Toast
|
|
12673
12732
|
|
|
@@ -13225,7 +13284,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
|
|
|
13225
13284
|
- 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.
|
|
13226
13285
|
- 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.
|
|
13227
13286
|
|
|
13228
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13287
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13229
13288
|
|
|
13230
13289
|
### EmptyState
|
|
13231
13290
|
|
|
@@ -13533,7 +13592,7 @@ export default function ACalculation() {
|
|
|
13533
13592
|
- No interactive content and no rich layout inside: it is read, never used.
|
|
13534
13593
|
- No placement option: it stands above its element and flips below where there is no room.
|
|
13535
13594
|
|
|
13536
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13595
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13537
13596
|
|
|
13538
13597
|
### Popover
|
|
13539
13598
|
|
|
@@ -13828,7 +13887,7 @@ type Align = "start" | "end" | "center";
|
|
|
13828
13887
|
- 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.
|
|
13829
13888
|
- It does not trap focus; a surface the user must answer is a [Modal](#modal).
|
|
13830
13889
|
|
|
13831
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13890
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13832
13891
|
|
|
13833
13892
|
### Menu
|
|
13834
13893
|
|
|
@@ -14029,7 +14088,7 @@ Also takes every attribute of `<button>` – without `onSelect`.
|
|
|
14029
14088
|
|
|
14030
14089
|
- No submenus, no checkable entries and no type-ahead.
|
|
14031
14090
|
|
|
14032
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14091
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14033
14092
|
|
|
14034
14093
|
### ContextMenu
|
|
14035
14094
|
|
|
@@ -14246,7 +14305,7 @@ export default function OnARow() {
|
|
|
14246
14305
|
- It listens to no right-click itself: the element and the point are yours, through the hook.
|
|
14247
14306
|
- No submenus, no checkable entries and no type-ahead, as in the menu.
|
|
14248
14307
|
|
|
14249
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14308
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14250
14309
|
|
|
14251
14310
|
### Modal
|
|
14252
14311
|
|
|
@@ -14560,7 +14619,7 @@ An `autoFocus` on a field inside the window is honoured: the window opens with t
|
|
|
14560
14619
|
|
|
14561
14620
|
```tsx
|
|
14562
14621
|
import { useState } from "react";
|
|
14563
|
-
import { Button, FormField, Input, Modal, ModalBody, ModalFooter, ModalHeader } from "@umriss-ui/core";
|
|
14622
|
+
import { Button, FormField, Input, Modal, ModalBody, ModalFooter, ModalHeader, Stack } from "@umriss-ui/core";
|
|
14564
14623
|
|
|
14565
14624
|
export default function TheCursorInTheField() {
|
|
14566
14625
|
const [open, setOpen] = useState(false);
|
|
@@ -14571,12 +14630,14 @@ export default function TheCursorInTheField() {
|
|
|
14571
14630
|
<Modal open={open} onClose={() => setOpen(false)}>
|
|
14572
14631
|
<ModalHeader title="Edit the contact" />
|
|
14573
14632
|
<ModalBody>
|
|
14574
|
-
<
|
|
14575
|
-
<
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
<
|
|
14579
|
-
|
|
14633
|
+
<Stack gap={4}>
|
|
14634
|
+
<FormField label="Name">
|
|
14635
|
+
<Input defaultValue="Maya Lindgren" />
|
|
14636
|
+
</FormField>
|
|
14637
|
+
<FormField label="Phone">
|
|
14638
|
+
<Input autoFocus defaultValue="+49 40 555 0142" />
|
|
14639
|
+
</FormField>
|
|
14640
|
+
</Stack>
|
|
14580
14641
|
</ModalBody>
|
|
14581
14642
|
<ModalFooter>
|
|
14582
14643
|
<Button onClick={() => setOpen(false)}>Done</Button>
|
|
@@ -14644,7 +14705,7 @@ type ModalSize = "sm" | "md" | "lg";
|
|
|
14644
14705
|
|
|
14645
14706
|
- No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
|
|
14646
14707
|
|
|
14647
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14708
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14648
14709
|
|
|
14649
14710
|
### Drawer
|
|
14650
14711
|
|
|
@@ -15012,7 +15073,7 @@ An `autoFocus` on a field inside the drawer is honoured, as in a `Modal`.
|
|
|
15012
15073
|
|
|
15013
15074
|
```tsx
|
|
15014
15075
|
import { useState } from "react";
|
|
15015
|
-
import { Button, Drawer, FormField, Input, ModalBody, ModalFooter, ModalHeader } from "@umriss-ui/core";
|
|
15076
|
+
import { Button, Drawer, FormField, Input, ModalBody, ModalFooter, ModalHeader, Stack } from "@umriss-ui/core";
|
|
15016
15077
|
|
|
15017
15078
|
export default function TheCursorInTheField() {
|
|
15018
15079
|
const [open, setOpen] = useState(false);
|
|
@@ -15023,12 +15084,14 @@ export default function TheCursorInTheField() {
|
|
|
15023
15084
|
<Drawer open={open} onClose={() => setOpen(false)}>
|
|
15024
15085
|
<ModalHeader title="Edit the shipment" />
|
|
15025
15086
|
<ModalBody>
|
|
15026
|
-
<
|
|
15027
|
-
<
|
|
15028
|
-
|
|
15029
|
-
|
|
15030
|
-
<
|
|
15031
|
-
|
|
15087
|
+
<Stack gap={4}>
|
|
15088
|
+
<FormField label="Consignee">
|
|
15089
|
+
<Input defaultValue="Harlow Bakery" />
|
|
15090
|
+
</FormField>
|
|
15091
|
+
<FormField label="Note">
|
|
15092
|
+
<Input autoFocus defaultValue="Ring twice" />
|
|
15093
|
+
</FormField>
|
|
15094
|
+
</Stack>
|
|
15032
15095
|
</ModalBody>
|
|
15033
15096
|
<ModalFooter>
|
|
15034
15097
|
<Button onClick={() => setOpen(false)}>Done</Button>
|
|
@@ -15075,7 +15138,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
15075
15138
|
- Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
|
|
15076
15139
|
- Only the left and right edges; nothing slides in from the top or bottom.
|
|
15077
15140
|
|
|
15078
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15141
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15079
15142
|
|
|
15080
15143
|
### ConfirmDialog
|
|
15081
15144
|
|
|
@@ -15252,7 +15315,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
15252
15315
|
|
|
15253
15316
|
- A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
|
|
15254
15317
|
|
|
15255
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15318
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15256
15319
|
|
|
15257
15320
|
### CommandPalette
|
|
15258
15321
|
|
|
@@ -15554,7 +15617,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
15554
15617
|
- No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
|
|
15555
15618
|
- No nested steps or arguments: a command that needs input opens your own form after it is chosen.
|
|
15556
15619
|
|
|
15557
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15620
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15558
15621
|
|
|
15559
15622
|
## Navigation
|
|
15560
15623
|
|
|
@@ -15874,7 +15937,7 @@ Also takes every attribute of the rendered element.
|
|
|
15874
15937
|
|
|
15875
15938
|
- It neither routes nor reads the address: the trail is what you pass.
|
|
15876
15939
|
|
|
15877
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15940
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15878
15941
|
|
|
15879
15942
|
### Tabs
|
|
15880
15943
|
|
|
@@ -16244,7 +16307,7 @@ Also takes every attribute of `<div>`.
|
|
|
16244
16307
|
|
|
16245
16308
|
- More tabs than fit scroll sideways within the list; there is no overflow menu, and no closing or reordering of tabs.
|
|
16246
16309
|
|
|
16247
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16310
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16248
16311
|
|
|
16249
16312
|
### Accordion
|
|
16250
16313
|
|
|
@@ -16493,7 +16556,7 @@ Also takes every attribute of `<div>` – without `title`.
|
|
|
16493
16556
|
|
|
16494
16557
|
- A folded section's content stays rendered; for heavy content, render it only while its section is open.
|
|
16495
16558
|
|
|
16496
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16559
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16497
16560
|
|
|
16498
16561
|
### Stepper
|
|
16499
16562
|
|
|
@@ -16726,7 +16789,7 @@ Also takes every attribute of the rendered element.
|
|
|
16726
16789
|
- 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.
|
|
16727
16790
|
- No branching or optional steps; pass the steps that apply.
|
|
16728
16791
|
|
|
16729
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16792
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16730
16793
|
|
|
16731
16794
|
### TreeView
|
|
16732
16795
|
|
|
@@ -17404,7 +17467,7 @@ to render and the heights of the filler rows around it.
|
|
|
17404
17467
|
- No dragging nodes to rearrange them.
|
|
17405
17468
|
- 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)).
|
|
17406
17469
|
|
|
17407
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17470
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17408
17471
|
|
|
17409
17472
|
### Benchmark
|
|
17410
17473
|
|
|
@@ -17881,7 +17944,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
17881
17944
|
- It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
|
|
17882
17945
|
- It counts nothing itself: capping at “99+” is yours.
|
|
17883
17946
|
|
|
17884
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17947
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17885
17948
|
|
|
17886
17949
|
### Tag
|
|
17887
17950
|
|
|
@@ -18148,7 +18211,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
18148
18211
|
- No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
|
|
18149
18212
|
- Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
|
|
18150
18213
|
|
|
18151
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
18214
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
18152
18215
|
|
|
18153
18216
|
### Stat
|
|
18154
18217
|
|
|
@@ -19037,7 +19100,7 @@ type Severity = "warning" | "alarm";
|
|
|
19037
19100
|
- No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
|
|
19038
19101
|
- It fetches and polls nothing: freshness is judged from the `asOf` you give it.
|
|
19039
19102
|
|
|
19040
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19103
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
19041
19104
|
|
|
19042
19105
|
### Meter
|
|
19043
19106
|
|
|
@@ -19207,7 +19270,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
19207
19270
|
|
|
19208
19271
|
- No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
|
|
19209
19272
|
|
|
19210
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19273
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
19211
19274
|
|
|
19212
19275
|
### Sparkline
|
|
19213
19276
|
|
|
@@ -19465,7 +19528,7 @@ Also takes every attribute of `<span>`.
|
|
|
19465
19528
|
|
|
19466
19529
|
- No axes, labels, tooltip or points to hover: the value stands beside it.
|
|
19467
19530
|
|
|
19468
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
19531
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.51.0/docs/adr/0032-what-umriss-is-not.md).
|
|
19469
19532
|
|
|
19470
19533
|
## API index
|
|
19471
19534
|
|
|
@@ -19660,6 +19723,15 @@ Used on [Scenarios](#scenarios), [Modal](#modal), [Drawer](#drawer) and [Command
|
|
|
19660
19723
|
|
|
19661
19724
|
Used on [Card](#card), [EmptyState](#emptystate), [Tabs](#tabs) and [Tag](#tag).
|
|
19662
19725
|
|
|
19726
|
+
##### `EndGlyph`
|
|
19727
|
+
|
|
19728
|
+
The chevron against a bar: the last step of a sequence. Drawn pointing
|
|
19729
|
+
right; turn it by 180 degrees for the first.
|
|
19730
|
+
|
|
19731
|
+
```ts
|
|
19732
|
+
function EndGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
|
|
19733
|
+
```
|
|
19734
|
+
|
|
19663
19735
|
##### `FileInput`
|
|
19664
19736
|
|
|
19665
19737
|
[FileInput](#fileinput) – Choose files from the system's dialog or drop them on the zone (file picker, upload field). The chosen files are listed with their size and can be removed one by one.
|
|
@@ -20375,6 +20447,8 @@ the weekday and "3 minutes ago".
|
|
|
20375
20447
|
function formatsFor(locale: string, timeZone?: string): Formats;
|
|
20376
20448
|
```
|
|
20377
20449
|
|
|
20450
|
+
Used on [Language](#language).
|
|
20451
|
+
|
|
20378
20452
|
##### `freshness`
|
|
20379
20453
|
|
|
20380
20454
|
The freshness of a value: its as-of time, measured against a reference time,
|
|
@@ -20395,6 +20469,14 @@ function freshness(asOf: FreshnessInstant, now: FreshnessInstant, ages: Freshnes
|
|
|
20395
20469
|
|
|
20396
20470
|
Used on [Scenarios](#scenarios) and [Stat](#stat).
|
|
20397
20471
|
|
|
20472
|
+
##### `hasWarned`
|
|
20473
|
+
|
|
20474
|
+
Whether [`warnOnce`](#api-index-1) has already spoken for this package and reason.
|
|
20475
|
+
|
|
20476
|
+
```ts
|
|
20477
|
+
function hasWarned(pkg: string, reason: string): boolean;
|
|
20478
|
+
```
|
|
20479
|
+
|
|
20398
20480
|
##### `mergeLanguage`
|
|
20399
20481
|
|
|
20400
20482
|
Builds a complete instance from the default and a partial value.
|
|
@@ -20480,6 +20562,14 @@ because the rendered set changed.
|
|
|
20480
20562
|
function visibleWindow({ count, rowHeight, scrollTop, viewportHeight, overscan, }: WindowInput): RowWindow;
|
|
20481
20563
|
```
|
|
20482
20564
|
|
|
20565
|
+
##### `warnOnce`
|
|
20566
|
+
|
|
20567
|
+
One development console warning per package and reason; silent in production. The prefix names the package.
|
|
20568
|
+
|
|
20569
|
+
```ts
|
|
20570
|
+
function warnOnce(pkg: string, reason: string, message: string): void;
|
|
20571
|
+
```
|
|
20572
|
+
|
|
20483
20573
|
##### `writeNumber`
|
|
20484
20574
|
|
|
20485
20575
|
A number as its format says, through the set's own functions - so an
|
|
@@ -20978,8 +21068,8 @@ that differ from the default.
|
|
|
20978
21068
|
|
|
20979
21069
|
| Prop | Type | Default | Description |
|
|
20980
21070
|
|---|---|---|---|
|
|
20981
|
-
| `children` *required* | `ReactNode` | — | <br>Shown in: [German (Language)](#language), [English and German side by side (Language)](#language), [Replace single entries (Language)](#language) and
|
|
20982
|
-
| `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)). From `LanguageOptions`.<br>Shown in: [Set up an application (UmrissProvider)](#umrissprovider), [German (Language)](#language), [English and German side by side (Language)](#language) and
|
|
21071
|
+
| `children` *required* | `ReactNode` | — | <br>Shown in: [German (Language)](#language), [English and German side by side (Language)](#language), [Replace single entries (Language)](#language) and 4 more |
|
|
21072
|
+
| `formats` | `Partial<``Formats``>` | — | How numbers, dates and durations are written. Overridden entry by entry; what is left out keeps writing as `DEFAULT_FORMATS` does - in English notation, whatever the wording says ([ADR-0024](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0024-the-formats-are-english-german-is-freight.md)). From `LanguageOptions`.<br>Shown in: [Set up an application (UmrissProvider)](#umrissprovider), [German (Language)](#language), [English and German side by side (Language)](#language) and 4 more |
|
|
20983
21073
|
| `wording` | `Partial<Omit<``Wording``, "presets">> & { presets?: Partial<``Wording``["presets"]> }` | — | The presets are a register of their own and are likewise overridden entry by entry. From `LanguageOptions`.<br>Shown in: [Set up an application (UmrissProvider)](#umrissprovider), [German (Language)](#language), [English and German side by side (Language)](#language) and 2 more |
|
|
20984
21074
|
|
|
20985
21075
|
##### `Limit`
|
|
@@ -21727,9 +21817,13 @@ Everything the library puts out as text.
|
|
|
21727
21817
|
| `pagination` *required* | `string` | — | |
|
|
21728
21818
|
| `rows` *required* | `string` | — | |
|
|
21729
21819
|
| `rowsPerPage` *required* | `string` | — | |
|
|
21820
|
+
| `fit` *required* | `string` | — | The page-size choice that leaves the page to the frame. |
|
|
21730
21821
|
| `pageOfPages` *required* | `(page: number, total: number, formatted?: { page: string; total: string }) => string` | — | "Page 2 of 7". `formatted` carries both numbers in the provider's formats, where the caller has them - a table over a server has "Page 1 of 100,000". |
|
|
21822
|
+
| `pageRange` *required* | `(from: number, to: number, total: number, formatted?: { from: string; to: string; total: string }) => string` | — | "13–24 of 120" in the pagination bar. `formatted` carries the three numbers in the provider's formats, where the caller has them. |
|
|
21823
|
+
| `firstPage` *required* | `string` | — | The names of the four steps of the pagination bar. |
|
|
21731
21824
|
| `previousPage` *required* | `string` | — | |
|
|
21732
21825
|
| `nextPage` *required* | `string` | — | |
|
|
21826
|
+
| `lastPage` *required* | `string` | — | |
|
|
21733
21827
|
| `filterReset` *required* | `string` | — | The two buttons in the column filter's footer. |
|
|
21734
21828
|
| `filterDone` *required* | `string` | — | |
|
|
21735
21829
|
| `columns` *required* | `string` | — | The column menu's button. |
|
|
@@ -21876,6 +21970,7 @@ Everything the library puts out as text.
|
|
|
21876
21970
|
| `dropFiles` *required* | `string` | — | |
|
|
21877
21971
|
| `removeFile` *required* | `(name: string) => string` | — | The cross beside a chosen file. |
|
|
21878
21972
|
| `fileNotAccepted` *required* | `(name: string) => string` | — | A dropped file the input's `accept` does not take. |
|
|
21973
|
+
| `numberRefused` *required* | `string` | — | A NumberInput refusing a character it cannot read. |
|
|
21879
21974
|
| `show` *required* | `string` | — | |
|
|
21880
21975
|
| `hide` *required* | `string` | — | |
|
|
21881
21976
|
| `moreActions` *required* | `string` | — | |
|