@umriss-ui/core 0.53.0 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API.md +35 -11
- package/CHANGELOG.md +36 -0
- package/README.md +2 -1
- package/dist/core.css +1 -1
- package/dist/core.js +4338 -3989
- package/dist/de.d.ts +35 -0
- package/dist/index.d.ts +109 -24
- package/dist/wording/de.js +23 -0
- package/docs/llms-full.md +525 -132
- package/package.json +1 -1
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.55.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
|
|
|
@@ -53,7 +53,7 @@ From `ButtonProps` — the full table stands on [Button](#button).
|
|
|
53
53
|
- No font is loaded or bundled.
|
|
54
54
|
- Chrome 123, Firefox 120 and Safari 17.5 or newer; an older browser discards the tokens and shows the components unstyled.
|
|
55
55
|
|
|
56
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
56
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
57
57
|
|
|
58
58
|
### UmrissProvider
|
|
59
59
|
|
|
@@ -264,7 +264,7 @@ type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "
|
|
|
264
264
|
|
|
265
265
|
- No theme and no default variants for components: a component is configured by its own props.
|
|
266
266
|
|
|
267
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
267
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
268
268
|
|
|
269
269
|
## Customising
|
|
270
270
|
|
|
@@ -467,25 +467,28 @@ Every token the components draw with, grouped as the stylesheet groups them. A s
|
|
|
467
467
|
|
|
468
468
|
| Token | Light | Dark | Description |
|
|
469
469
|
|---|---|---|---|
|
|
470
|
-
| `--u-color-bg` | `#fafafa` | `#
|
|
471
|
-
| `--u-color-surface` | `#ffffff` | `#
|
|
472
|
-
| `--u-color-surface-sunken` | `#f4f4f5` | `#
|
|
473
|
-
| `--u-color-surface-pressed` | `#e9e9eb` | `#
|
|
470
|
+
| `--u-color-bg` | `#fafafa` | `#121213` | The dark grounds step by lightness, because a shadow on a near-black ground shows nothing: page to surface and surface to raised are each about 3.6 L* apart, hover and pressed about 2.6, measured with the 1 % viewing flare of IEC 61966-2-1 that compresses the dark end. |
|
|
471
|
+
| `--u-color-surface` | `#ffffff` | `#1e1e20` | — |
|
|
472
|
+
| `--u-color-surface-sunken` | `#f4f4f5` | `#252528` | — |
|
|
473
|
+
| `--u-color-surface-pressed` | `#e9e9eb` | `#2c2c30` | The pressed step of a quiet key: what sinks to the sunken surface under the pointer sinks once more while it is pressed (the interaction-state canon). The three `-pressed` surfaces exist because a hover for each ground needs something stronger. |
|
|
474
|
+
| `--u-color-surface-raised` | `#ffffff` | `#28282c` | An overlay's ground and its hover and pressed steps, one step above the surface it opens over; the overlays take them through `raised` in `#own-styles`. Light: the surface's own values, the shadow lifts it. |
|
|
475
|
+
| `--u-color-surface-raised-sunken` | `#f4f4f5` | `#2f2f33` | — |
|
|
476
|
+
| `--u-color-surface-raised-pressed` | `#e9e9eb` | `#36363a` | — |
|
|
474
477
|
| `--u-color-text` | `#171717` | `#ededed` | — |
|
|
475
|
-
| `--u-color-text-secondary` | `#565656` | `#
|
|
476
|
-
| `--u-color-text-muted` | `#666666` | `#
|
|
478
|
+
| `--u-color-text-secondary` | `#565656` | `#b0b0b6` | — |
|
|
479
|
+
| `--u-color-text-muted` | `#666666` | `#9e9ea4` | 4.5:1 on every ground it stands on in both themes, the pressed surface included (contrast.test.ts). |
|
|
477
480
|
|
|
478
481
|
##### Edges as shadows (instead of borders)
|
|
479
482
|
|
|
480
483
|
| Token | Light | Dark | Description |
|
|
481
484
|
|---|---|---|---|
|
|
482
|
-
| `--u-edge-color` | `rgba(23, 23, 23, 0.08)` | `rgba(255, 255, 255, 0.
|
|
483
|
-
| `--u-edge-color-strong` | `rgba(23, 23, 23, 0.17)` | `rgba(255, 255, 255, 0.
|
|
485
|
+
| `--u-edge-color` | `rgba(23, 23, 23, 0.08)` | `rgba(255, 255, 255, 0.14)` | — |
|
|
486
|
+
| `--u-edge-color-strong` | `rgba(23, 23, 23, 0.17)` | `rgba(255, 255, 255, 0.24)` | — |
|
|
484
487
|
| `--u-edge` | `0 0 0 1px var(`--u-edge-color`)` | same | — |
|
|
485
488
|
| `--u-edge-strong` | `0 0 0 1px var(`--u-edge-color-strong`)` | same | — |
|
|
486
|
-
| `--u-hairline` | `rgba(23, 23, 23, 0.06)` | `rgba(255, 255, 255, 0.
|
|
489
|
+
| `--u-hairline` | `rgba(23, 23, 23, 0.06)` | `rgba(255, 255, 255, 0.10)` | inner dividing lines |
|
|
487
490
|
| `--u-color-edge-hover` | `color-mix(in srgb, var(`--u-color-text`) 30%, transparent)` | same | The edge of a field under the pointer. |
|
|
488
|
-
| `--u-hairline-strong` | `rgba(23, 23, 23, 0.12)` | `rgba(255, 255, 255, 0.
|
|
491
|
+
| `--u-hairline-strong` | `rgba(23, 23, 23, 0.12)` | `rgba(255, 255, 255, 0.18)` | e.g. under table heads |
|
|
489
492
|
|
|
490
493
|
##### Ink as interaction (the primary button)
|
|
491
494
|
|
|
@@ -820,7 +823,7 @@ From `StatProps` — the full table stands on [Stat](#stat).
|
|
|
820
823
|
- A token that names another resolves where it is declared: set `--u-color-accent` on a region, and `--u-focus-ring`, which names it on `:root`, still draws the application's accent there. Set the naming token in the region too.
|
|
821
824
|
- A panel opened in a portal - a popover, a tooltip, a toast - takes the tokens and the `color-scheme` of the place it lands, not of the region it was opened from; inside a dialog the toasts take the tokens of the dialog's place. Give [UmrissProvider](#umrissprovider) a `portalTarget` inside the region, or override on `:root` - as for the toasts' distance from the window's edge and its sides, `--u-toast-inset-top`, `--u-toast-inset-bottom`, `--u-toast-inset-start` and `--u-toast-inset-end`.
|
|
822
825
|
|
|
823
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
826
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
824
827
|
|
|
825
828
|
### Sizes
|
|
826
829
|
|
|
@@ -1238,7 +1241,7 @@ type ControlSize = "sm" | "md";
|
|
|
1238
1241
|
- A field does not grow to fill a row: give it room with the row's own layout (`flex: 1` on its FormField, or a grid).
|
|
1239
1242
|
- A place that sizes itself by its content and has no width to stop at - an `auto` grid track, an inline block, a row that does not wrap - gives a field at least its natural width, as it gives a native input its own; on a narrow screen let such a row wrap, or size the track with `minmax(0, auto)`.
|
|
1240
1243
|
|
|
1241
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
1244
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
1242
1245
|
|
|
1243
1246
|
### Language
|
|
1244
1247
|
|
|
@@ -1614,6 +1617,34 @@ Every entry of `Wording`: the English of `DEFAULT_WORDING` beside the German of
|
|
|
1614
1617
|
| `dateRangeClear` | Clear range | Zeitraum leeren | — |
|
|
1615
1618
|
| `dateTimeRangePanel` | Select range with time | Zeitraum mit Uhrzeit wählen | Accessible name of the panel in the range with time of day. |
|
|
1616
1619
|
| `dateTimeRangeClear` | Clear range with time | Zeitraum mit Uhrzeit leeren | The clearing x of the range with time - kept apart from the range without, so that an application can call the two differently. |
|
|
1620
|
+
|
|
1621
|
+
##### Colour
|
|
1622
|
+
|
|
1623
|
+
| Key | English | German | Description |
|
|
1624
|
+
|---|---|---|---|
|
|
1625
|
+
| `colorPlaceholder` | Select colour | Farbe wählen | — |
|
|
1626
|
+
| `colorTrigger(hex)` | `` (hex ? `Colour ${hex}` : "Colour: none") `` | `` (hex ? `Farbe ${hex}` : "Farbe: keine") `` | The name of the ColorPicker trigger where nothing else names it: the colour as hex, or `null` for none. |
|
|
1627
|
+
| `colorPanel` | Choose colour | Farbe wählen | Accessible name of the ColorPicker panel, where its field names it no other way. |
|
|
1628
|
+
| `colorHex` | Hex | Hex | The name and the visible label of the hex field. |
|
|
1629
|
+
| `colorBefore` | Before | Vorher | — |
|
|
1630
|
+
| `colorAfter` | After | Nachher | — |
|
|
1631
|
+
| `colorNone` | None | Keine | Stands for no colour in the strip that compares the colour the panel opened with and the colour now. |
|
|
1632
|
+
| `colorBeforeAfter(before, after)` | `` `Before ${before}, after ${after}` `` | `` `Vorher ${before}, nachher ${after}` `` | The strip as one sentence, for a screen reader. |
|
|
1633
|
+
| `colorDone` | Done | Fertig | — |
|
|
1634
|
+
| `colorSwatches` | Swatches | Farbfelder | Name of the row of the application's own colours. |
|
|
1635
|
+
| `colorSurfaceLight` | Light | Hell | The name of core's light surface in the contrast readout. |
|
|
1636
|
+
| `colorSurfaceDark` | Dark | Dunkel | The name of core's dark surface in the contrast readout. |
|
|
1637
|
+
| `colorPass` | Pass | Bestanden | The verdict of the contrast readout at 3:1 and above, and below it; words, so that the colour is not the only sign. |
|
|
1638
|
+
| `colorFail` | Fail | Nicht bestanden | — |
|
|
1639
|
+
| `colorRed` | Red | Rot | Names of the red, green and blue fields of the ColorPicker panel. |
|
|
1640
|
+
| `colorGreen` | Green | Grün | — |
|
|
1641
|
+
| `colorBlue` | Blue | Blau | — |
|
|
1642
|
+
| `colorEyedropper` | Pick a colour from the screen | Farbe vom Bildschirm aufnehmen | The button that picks a colour from the screen. |
|
|
1643
|
+
| `colorSquare` | Saturation and brightness | Sättigung und Helligkeit | Names of the square and the hue strip, the square's role description, and what they say as value. |
|
|
1644
|
+
| `colorSquareRole` | two-axis colour area | zweiachsige Farbfläche | — |
|
|
1645
|
+
| `colorSquareValue(saturation, brightness)` | `` `Saturation ${saturation} %, brightness ${brightness} %` `` | `` `Sättigung ${saturation} %, Helligkeit ${brightness} %` `` | — |
|
|
1646
|
+
| `colorHue` | Hue | Farbton | — |
|
|
1647
|
+
| `colorHueValue(degrees)` | `` `${degrees} degrees` `` | `` `${degrees} Grad` `` | — |
|
|
1617
1648
|
| `previousMonth` | Previous month | Voriger Monat | — |
|
|
1618
1649
|
| `nextMonth` | Next month | Nächster Monat | — |
|
|
1619
1650
|
| `monthSelect` | Month | Monat | Name of the calendar head's month list. |
|
|
@@ -2205,6 +2236,29 @@ Everything the library puts out as text.
|
|
|
2205
2236
|
| `dateRangeClear` *required* | `string` | — | |
|
|
2206
2237
|
| `dateTimeRangePanel` *required* | `string` | — | Accessible name of the panel in the range with time of day. |
|
|
2207
2238
|
| `dateTimeRangeClear` *required* | `string` | — | The clearing x of the range with time - kept apart from the range without, so that an application can call the two differently. |
|
|
2239
|
+
| `colorPlaceholder` *required* | `string` | — | |
|
|
2240
|
+
| `colorTrigger` *required* | `(hex: string \| null) => string` | — | The name of the ColorPicker trigger where nothing else names it: the colour as hex, or `null` for none. |
|
|
2241
|
+
| `colorPanel` *required* | `string` | — | Accessible name of the ColorPicker panel, where its field names it no other way. |
|
|
2242
|
+
| `colorHex` *required* | `string` | — | The name and the visible label of the hex field. |
|
|
2243
|
+
| `colorBefore` *required* | `string` | — | |
|
|
2244
|
+
| `colorAfter` *required* | `string` | — | |
|
|
2245
|
+
| `colorNone` *required* | `string` | — | Stands for no colour in the strip that compares the colour the panel opened with and the colour now. |
|
|
2246
|
+
| `colorBeforeAfter` *required* | `(before: string, after: string) => string` | — | The strip as one sentence, for a screen reader. |
|
|
2247
|
+
| `colorDone` *required* | `string` | — | |
|
|
2248
|
+
| `colorSwatches` *required* | `string` | — | Name of the row of the application's own colours. |
|
|
2249
|
+
| `colorSurfaceLight` *required* | `string` | — | The name of core's light surface in the contrast readout. |
|
|
2250
|
+
| `colorSurfaceDark` *required* | `string` | — | The name of core's dark surface in the contrast readout. |
|
|
2251
|
+
| `colorPass` *required* | `string` | — | The verdict of the contrast readout at 3:1 and above, and below it; words, so that the colour is not the only sign. |
|
|
2252
|
+
| `colorFail` *required* | `string` | — | |
|
|
2253
|
+
| `colorRed` *required* | `string` | — | Names of the red, green and blue fields of the ColorPicker panel. |
|
|
2254
|
+
| `colorGreen` *required* | `string` | — | |
|
|
2255
|
+
| `colorBlue` *required* | `string` | — | |
|
|
2256
|
+
| `colorEyedropper` *required* | `string` | — | The button that picks a colour from the screen. |
|
|
2257
|
+
| `colorSquare` *required* | `string` | — | Names of the square and the hue strip, the square's role description, and what they say as value. |
|
|
2258
|
+
| `colorSquareRole` *required* | `string` | — | |
|
|
2259
|
+
| `colorSquareValue` *required* | `(saturation: number, brightness: number) => string` | — | |
|
|
2260
|
+
| `colorHue` *required* | `string` | — | |
|
|
2261
|
+
| `colorHueValue` *required* | `(degrees: number) => string` | — | |
|
|
2208
2262
|
| `previousMonth` *required* | `string` | — | |
|
|
2209
2263
|
| `nextMonth` *required* | `string` | — | |
|
|
2210
2264
|
| `monthSelect` *required* | `string` | — | Name of the calendar head's month list. |
|
|
@@ -2577,10 +2631,10 @@ Everything the library puts out as text.
|
|
|
2577
2631
|
|
|
2578
2632
|
#### Known limits
|
|
2579
2633
|
|
|
2580
|
-
- Two languages ship; a third is a `Wording` object of your own. No right-to-left ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2634
|
+
- Two languages ship; a third is a `Wording` object of your own. No right-to-left ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
2581
2635
|
- It holds only what the components say themselves; your labels, titles and data are yours to translate.
|
|
2582
2636
|
|
|
2583
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2637
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2584
2638
|
|
|
2585
2639
|
## Layout
|
|
2586
2640
|
|
|
@@ -2882,9 +2936,9 @@ The keys of [Button](#button) apply here.
|
|
|
2882
2936
|
|
|
2883
2937
|
| Prop | Type | Default | Description |
|
|
2884
2938
|
|---|---|---|---|
|
|
2885
|
-
| `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
|
|
2886
|
-
| `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
|
|
2887
|
-
| `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
|
|
2939
|
+
| `direction` | `"row" \| "column"` | `"column"` | Below one another or beside one another. Below is the direction content stands in anyway, without being asked.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [Wrapping](#stack-and-grid) and 77 more |
|
|
2940
|
+
| `gap` | `SpaceStep`<br>`1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7 \| 8` | `3` | Spacing as a step of the 4 px spacing steps (1–8).<br>Shown in: [A column](#stack-and-grid), [A row](#stack-and-grid), [Gaps](#stack-and-grid) and 191 more |
|
|
2941
|
+
| `align` | `CSSProperties["alignItems"]` | — | Alignment across the direction – `alignItems` unchanged.<br>Shown in: [A row](#stack-and-grid), [Gaps](#stack-and-grid), [A tour summary](#stack-and-grid) and 87 more |
|
|
2888
2942
|
| `justify` | `CSSProperties["justifyContent"]` | — | Distribution along the direction – `justifyContent` unchanged.<br>Shown in: [A row](#stack-and-grid), [A tour summary](#stack-and-grid), [Name the same action in every row (VisuallyHidden)](#visuallyhidden) and 9 more |
|
|
2889
2943
|
| `wrap` | `boolean` | `false` | Lets the children wrap when the line does not suffice.<br>Shown in: [Gaps](#stack-and-grid), [Wrapping](#stack-and-grid), [Sized to the value (Sizes)](#sizes) and 33 more |
|
|
2890
2944
|
| `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 |
|
|
@@ -2896,8 +2950,8 @@ Also takes every attribute of `<div>`.
|
|
|
2896
2950
|
| Prop | Type | Default | Description |
|
|
2897
2951
|
|---|---|---|---|
|
|
2898
2952
|
| `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 |
|
|
2899
|
-
| `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
|
|
2900
|
-
| `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
|
|
2953
|
+
| `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 61 more |
|
|
2954
|
+
| `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 68 more |
|
|
2901
2955
|
| `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 |
|
|
2902
2956
|
|
|
2903
2957
|
Also takes every attribute of `<div>`.
|
|
@@ -2927,7 +2981,7 @@ type GridColumnWidth = number | "fill";
|
|
|
2927
2981
|
- No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
|
|
2928
2982
|
- Tiles are not arranged by the user: for a dashboard the reader arranges, see `@umriss-ui/dashboard` ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
|
|
2929
2983
|
|
|
2930
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
2984
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
2931
2985
|
|
|
2932
2986
|
### Divider
|
|
2933
2987
|
|
|
@@ -3740,12 +3794,6 @@ export default function ThreePanes() {
|
|
|
3740
3794
|
| `children` *required* | `[ReactNode, ReactNode]` | — | The first pane and the second, in this order.<br>Shown in: [Two panes](#splitter), [One above the other](#splitter), [Keep the share](#splitter) and 1 more |
|
|
3741
3795
|
| `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 |
|
|
3742
3796
|
|
|
3743
|
-
###### Events
|
|
3744
|
-
|
|
3745
|
-
| Prop | Type | Default | Description |
|
|
3746
|
-
|---|---|---|---|
|
|
3747
|
-
| `onChange` | `(value: number) => void` | — | *Deprecated* since 0.53 - use `onValueChange`; it goes in the next minor release. The former name of `onValueChange`. |
|
|
3748
|
-
|
|
3749
3797
|
Also takes every attribute of `<div>` – without `children`, `defaultValue`, `onChange`.
|
|
3750
3798
|
|
|
3751
3799
|
#### Known limits
|
|
@@ -3753,7 +3801,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
|
|
|
3753
3801
|
- Two panes per splitter, no more. Tiles are not arranged by the user: for a dashboard the reader arranges, see `@umriss-ui/dashboard` ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
|
|
3754
3802
|
- It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
|
|
3755
3803
|
|
|
3756
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
3804
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
3757
3805
|
|
|
3758
3806
|
## Typography
|
|
3759
3807
|
|
|
@@ -4110,11 +4158,11 @@ export default function IncidentSummary() {
|
|
|
4110
4158
|
|
|
4111
4159
|
| Prop | Type | Default | Description |
|
|
4112
4160
|
|---|---|---|---|
|
|
4113
|
-
| `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
|
|
4114
|
-
| `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
|
|
4161
|
+
| `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 23 more |
|
|
4162
|
+
| `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 150 more |
|
|
4115
4163
|
| `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 |
|
|
4116
|
-
| `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
|
|
4117
|
-
| `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
|
|
4164
|
+
| `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 105 more |
|
|
4165
|
+
| `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 37 more |
|
|
4118
4166
|
| `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) |
|
|
4119
4167
|
| `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) |
|
|
4120
4168
|
| `ref` | `Ref<HTMLElement> \| 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 |
|
|
@@ -4189,10 +4237,10 @@ type TextLeading = "normal" | "tight";
|
|
|
4189
4237
|
#### Known limits
|
|
4190
4238
|
|
|
4191
4239
|
- No truncation and no line length: both depend on the column, which only the application knows.
|
|
4192
|
-
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
4240
|
+
- No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md)).
|
|
4193
4241
|
- `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
|
|
4194
4242
|
|
|
4195
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
4243
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
4196
4244
|
|
|
4197
4245
|
### VisuallyHidden
|
|
4198
4246
|
|
|
@@ -4316,7 +4364,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
|
|
|
4316
4364
|
|
|
4317
4365
|
- It hides from the eye only; to hide something from everyone, do not render it.
|
|
4318
4366
|
|
|
4319
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
4367
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
4320
4368
|
|
|
4321
4369
|
## Actions
|
|
4322
4370
|
|
|
@@ -4602,8 +4650,8 @@ Under forced colours every variant keeps an outline where its edge would lie, an
|
|
|
4602
4650
|
|
|
4603
4651
|
| Prop | Type | Default | Description |
|
|
4604
4652
|
|---|---|---|---|
|
|
4605
|
-
| `variant` | `ButtonVariant`<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"secondary"` | How loud the button is. `primary` exactly once per surface - two main actions side by side are no longer a main action. `ghost` is quiet in the accent, `plain` quiet and neutral.<br>Shown in: [Configurator](#button), [Variants](#button), [Sizes](#button) and
|
|
4606
|
-
| `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise.<br>Shown in: [Configurator](#button), [Sizes](#button), [Add an icon](#button) and
|
|
4653
|
+
| `variant` | `ButtonVariant`<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"secondary"` | How loud the button is. `primary` exactly once per surface - two main actions side by side are no longer a main action. `ghost` is quiet in the accent, `plain` quiet and neutral.<br>Shown in: [Configurator](#button), [Variants](#button), [Sizes](#button) and 61 more |
|
|
4654
|
+
| `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise.<br>Shown in: [Configurator](#button), [Sizes](#button), [Add an icon](#button) and 65 more |
|
|
4607
4655
|
| `loading` | `boolean` | `false` | Shows a loading indicator and locks the button.<br>Shown in: [Configurator](#button), [Loading and disabled](#button), [Submit a form](#button) and 4 more |
|
|
4608
4656
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
4609
4657
|
|
|
@@ -4645,7 +4693,7 @@ type ControlSize = "sm" | "md";
|
|
|
4645
4693
|
- The label stays on one line; keep it short rather than let it wrap.
|
|
4646
4694
|
- No icon slot: an icon goes among the children, before the label, and the button sets its size.
|
|
4647
4695
|
|
|
4648
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
4696
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
4649
4697
|
|
|
4650
4698
|
### IconButton
|
|
4651
4699
|
|
|
@@ -4954,7 +5002,7 @@ export default function Toolbar() {
|
|
|
4954
5002
|
|---|---|---|---|
|
|
4955
5003
|
| `children` *required* | `ReactNode` | — | The icon: an SVG, a glyph of the set or an icon font's element. The button sets its size - `--u-icon-size`, `--u-icon-size-sm` at `sm`.<br>Shown in: [Configurator](#iconbutton), [Name the icon](#iconbutton), [Variants](#iconbutton) and 6 more |
|
|
4956
5004
|
| `variant` | `ButtonVariant`<br>`"primary" \| "secondary" \| "ghost" \| "plain" \| "danger"` | `"plain"` | How loud the button is; `plain` is quiet and neutral, and the rest mean what they mean on a `Button`.<br>Shown in: [Configurator](#iconbutton), [Variants](#iconbutton), [Sizes](#iconbutton) and 3 more |
|
|
4957
|
-
| `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. From `ButtonProps`.<br>Shown in: [Configurator](#iconbutton), [Sizes](#iconbutton), [Build a toolbar](#iconbutton) and
|
|
5005
|
+
| `size` | `ButtonSize`<br>`"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for buttons in header bars and table rows, `md` otherwise. From `ButtonProps`.<br>Shown in: [Configurator](#iconbutton), [Sizes](#iconbutton), [Build a toolbar](#iconbutton) and 65 more |
|
|
4958
5006
|
| `loading` | `boolean` | `false` | Shows a loading indicator and locks the button. From `ButtonProps`.<br>Shown in: [Configurator](#iconbutton), [Loading and disabled](#iconbutton), [Configurator (Button)](#button) and 4 more |
|
|
4959
5007
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
4960
5008
|
|
|
@@ -5002,7 +5050,7 @@ type ControlSize = "sm" | "md";
|
|
|
5002
5050
|
- The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
|
|
5003
5051
|
- A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
|
|
5004
5052
|
|
|
5005
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5053
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5006
5054
|
|
|
5007
5055
|
### ButtonGroup
|
|
5008
5056
|
|
|
@@ -5362,7 +5410,7 @@ type ControlSize = "sm" | "md";
|
|
|
5362
5410
|
|
|
5363
5411
|
- No toggle or segmented state; a choice that stays is a radio group.
|
|
5364
5412
|
|
|
5365
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5413
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5366
5414
|
|
|
5367
5415
|
## Forms
|
|
5368
5416
|
|
|
@@ -5719,7 +5767,7 @@ Also takes every attribute of `<input>` – without `size`, `value`.
|
|
|
5719
5767
|
- No input masks or formatting while typing; check the value on leave or on submit.
|
|
5720
5768
|
- No validation of its own: the error is the application's, handed to the `FormField`.
|
|
5721
5769
|
|
|
5722
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
5770
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
5723
5771
|
|
|
5724
5772
|
### FormField
|
|
5725
5773
|
|
|
@@ -5735,7 +5783,7 @@ Every field of Forms, Choosing and Dates and times reads its id, description, in
|
|
|
5735
5783
|
|
|
5736
5784
|
A FormField keeps no space around itself: the fields of a form stand in a [Stack](#stack-and-grid) or another container with a gap, which spaces them, so an error never touches the next label.
|
|
5737
5785
|
|
|
5738
|
-
Give a field a `name` and a `<form>` (or a React 19 `<form action>`) receives its value in `FormData`: the Combobox the value, not the label; the MultiSelect one entry per value; DatePicker `YYYY-MM-DD`; DateTimePicker ISO with the offset; a range picker `<name>Start` and `<name>End` (`startName`, `endName` rename them); NumberInput the plain number; empty `""`. `formValue` writes a value another way.
|
|
5786
|
+
Give a field a `name` and a `<form>` (or a React 19 `<form action>`) receives its value in `FormData`: the Combobox the value, not the label; the MultiSelect one entry per value; ColorPicker the lowercase `#rrggbb`; DatePicker `YYYY-MM-DD`; DateTimePicker ISO with the offset; a range picker `<name>Start` and `<name>End` (`startName`, `endName` rename them); NumberInput the plain number; empty `""`. `formValue` writes a value another way.
|
|
5739
5787
|
|
|
5740
5788
|
#### Examples
|
|
5741
5789
|
|
|
@@ -6030,9 +6078,9 @@ The keys of [Input](#input), [NumberInput](#numberinput), [Checkbox](#checkbox),
|
|
|
6030
6078
|
|
|
6031
6079
|
| Prop | Type | Default | Description |
|
|
6032
6080
|
|---|---|---|---|
|
|
6033
|
-
| `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
|
|
6034
|
-
| `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and
|
|
6035
|
-
| `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
|
|
6081
|
+
| `label` *required* | `ReactNode` | — | The label of the field. It is mandatory: a field without a name is a field without a question for a screen reader.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 106 more |
|
|
6082
|
+
| `hint` | `ReactNode` | — | Help text below the field. Replaced by `error`.<br>Shown in: [Configurator](#formfield), [Label and hint](#formfield), [Show an error](#formfield) and 44 more |
|
|
6083
|
+
| `error` | `ReactNode` | — | Error message; it marks the field as invalid at the same time.<br>Shown in: [Configurator](#formfield), [Show an error](#formfield), [Check an invoice on submit](#formfield) and 25 more |
|
|
6036
6084
|
| `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 |
|
|
6037
6085
|
| `fieldId` | `string` | — | Optional: a fixed id for the input element (instead of a generated one).<br>Shown in: [Sum up a form's errors (Alert)](#alert) |
|
|
6038
6086
|
| `labelPlacement` | `"top" \| "start"` | `"top"` | Where the label stands: `"top"` above the field (the default) or `"start"` beside it, in a column as wide as `--u-label-width`, level on the first baseline. `"start"` is for a column of fields and fills its place; where the row cannot hold the label and 12rem of field, the field wraps under the label. A `Grid` of fields keeps `"top"`.<br>Shown in: [Put the labels in a column](#formfield) |
|
|
@@ -6045,7 +6093,7 @@ Also takes every attribute of `<div>`.
|
|
|
6045
6093
|
- 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.
|
|
6046
6094
|
- One field per `FormField`; a group of fields that share one label is a fieldset of your own.
|
|
6047
6095
|
|
|
6048
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6096
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6049
6097
|
|
|
6050
6098
|
### Textarea
|
|
6051
6099
|
|
|
@@ -6235,7 +6283,7 @@ Also takes every attribute of `<textarea>` – without `cols`, `value`.
|
|
|
6235
6283
|
|
|
6236
6284
|
- Plain text only: no formatting, mentions or rich text.
|
|
6237
6285
|
|
|
6238
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6286
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6239
6287
|
|
|
6240
6288
|
### NumberInput
|
|
6241
6289
|
|
|
@@ -6485,8 +6533,8 @@ export default function YearWithoutGrouping() {
|
|
|
6485
6533
|
| `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) |
|
|
6486
6534
|
| `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) |
|
|
6487
6535
|
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
6488
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [States and a form (TimeInput)](#timeinput) |
|
|
6489
|
-
| `formValue` | `(value: number) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
6536
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [States and a form (TimeInput)](#timeinput) |
|
|
6537
|
+
| `formValue` | `(value: number) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
6490
6538
|
|
|
6491
6539
|
Also takes every attribute of `<input>` – without `defaultValue`, `name`, `onChange`, `prefix`, `size`, `type`, `value`.
|
|
6492
6540
|
|
|
@@ -6495,7 +6543,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `name`, `onC
|
|
|
6495
6543
|
- No expressions: “12*4” is not calculated.
|
|
6496
6544
|
- No currency conversion; the unit is a label.
|
|
6497
6545
|
|
|
6498
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6546
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6499
6547
|
|
|
6500
6548
|
### Slider
|
|
6501
6549
|
|
|
@@ -6684,7 +6732,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
|
|
|
6684
6732
|
- One thumb: a range with two ends is the RangeSlider.
|
|
6685
6733
|
- Marks show values; they do not catch the thumb.
|
|
6686
6734
|
|
|
6687
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6735
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6688
6736
|
|
|
6689
6737
|
### RangeSlider
|
|
6690
6738
|
|
|
@@ -6825,7 +6873,7 @@ type RangeSliderValue = readonly [from: number, to: number];
|
|
|
6825
6873
|
- No marks on the track; use the Slider's where marks are needed.
|
|
6826
6874
|
- The ends may meet; no minimum gap between them is kept.
|
|
6827
6875
|
|
|
6828
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
6876
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
6829
6877
|
|
|
6830
6878
|
### Checkbox
|
|
6831
6879
|
|
|
@@ -7198,7 +7246,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
|
|
|
7198
7246
|
|
|
7199
7247
|
- No pending or loading state; while your application applies the change, disable the switch or say so beside it.
|
|
7200
7248
|
|
|
7201
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7249
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7202
7250
|
|
|
7203
7251
|
### RadioGroup
|
|
7204
7252
|
|
|
@@ -7652,7 +7700,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
|
7652
7700
|
- Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
|
|
7653
7701
|
- No icons and no line of explanation in a segment; several chosen at once is not this control.
|
|
7654
7702
|
|
|
7655
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
7703
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7656
7704
|
|
|
7657
7705
|
### FileInput
|
|
7658
7706
|
|
|
@@ -7993,7 +8041,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
|
|
|
7993
8041
|
|
|
7994
8042
|
- No upload, no progress and no size limit of its own; those belong to the application sending the files.
|
|
7995
8043
|
|
|
7996
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8044
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
7997
8045
|
|
|
7998
8046
|
## Choosing
|
|
7999
8047
|
|
|
@@ -8192,7 +8240,7 @@ Also takes every attribute of `<select>` – without `defaultValue`, `size`, `va
|
|
|
8192
8240
|
|
|
8193
8241
|
- The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
|
|
8194
8242
|
|
|
8195
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8243
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8196
8244
|
|
|
8197
8245
|
### Combobox
|
|
8198
8246
|
|
|
@@ -8589,8 +8637,8 @@ export default function ANewValue() {
|
|
|
8589
8637
|
| `loading` | `boolean` | `false` | Results are on their way: the list shows the wording's "Loading" line where it would show the empty text, below any `options` given, and is `aria-busy`.<br>Shown in: [Search with the server](#combobox) |
|
|
8590
8638
|
| `creatable` | `boolean` | `false` | For string values: typed text that fits no option's label is offered as a last row, `Add "text"`, and Enter or a click makes it the value - reported through `onValueChange` like a choice. The field then shows the text itself, and the form posts it.<br>Shown in: [A value that is new](#combobox) |
|
|
8591
8639
|
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
8592
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [States and a form (TimeInput)](#timeinput) |
|
|
8593
|
-
| `formValue` | `(value: T) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
8640
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [States and a form (TimeInput)](#timeinput) |
|
|
8641
|
+
| `formValue` | `(value: T) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
8594
8642
|
|
|
8595
8643
|
###### Events
|
|
8596
8644
|
|
|
@@ -8614,7 +8662,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
|
|
|
8614
8662
|
- Only an option can be chosen, unless `creatable` takes typed text as the value (string values only).
|
|
8615
8663
|
- No request of its own: `onSearch` reports the typed text and you fetch, debounce and cancel; `filter={false}` shows what you return.
|
|
8616
8664
|
|
|
8617
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
8665
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
8618
8666
|
|
|
8619
8667
|
### MultiSelect
|
|
8620
8668
|
|
|
@@ -8903,8 +8951,8 @@ export default function ThousandsOfAssets() {
|
|
|
8903
8951
|
| `invalid` | `boolean` | — | Marks the field as invalid. `FormField` sets it itself as soon as it carries an `error` – by hand only necessary without `FormField`.<br>Shown in: [Configurator](#multiselect), [With an error](#multiselect) |
|
|
8904
8952
|
| `clearable` | `boolean` | `false` | Shows a cross beside the chips that empties the selection, as "Select none" does: a chosen value whose option is disabled stays. The field keeps room for it, chosen values or none, so that it never moves.<br>Shown in: [Configurator](#multiselect), [Filter incidents by service](#multiselect), [Thousands of assets](#multiselect) and 1 more |
|
|
8905
8953
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
8906
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [States and a form (TimeInput)](#timeinput) |
|
|
8907
|
-
| `formValue` | `(value: T) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
8954
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [States and a form (TimeInput)](#timeinput) |
|
|
8955
|
+
| `formValue` | `(value: T) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
8908
8956
|
|
|
8909
8957
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
8910
8958
|
|
|
@@ -8916,6 +8964,290 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
8916
8964
|
| `label` *required* | `string` | — | What is shown – in the panel and as a chip in the field.<br>Shown in: [States](#multiselect), [Filter incidents by service](#multiselect), [Dispatch a tour (Scenarios)](#dispatch-a-tour) |
|
|
8917
8965
|
| `disabled` | `boolean` | — | Shows the row but does not let it be ticked. A value already chosen stays chosen: disabled means "do not change", not "gone".<br>Shown in: [States](#multiselect) |
|
|
8918
8966
|
|
|
8967
|
+
### ColorPicker
|
|
8968
|
+
|
|
8969
|
+
One colour, chosen on a square and a hue strip, typed as hex or as red, green and blue, or picked from the screen, from the application's own swatches (colour field): the line of a series, a tag, a state. The panel reads the colour against light and dark surfaces and compares it with the colour it opened with.
|
|
8970
|
+
|
|
8971
|
+
```ts
|
|
8972
|
+
import { ColorPicker } from "@umriss-ui/core";
|
|
8973
|
+
```
|
|
8974
|
+
|
|
8975
|
+
The value is a lowercase `#rrggbb` string or `null`; a given value in any hex spelling (`#ABC`, `2563EB`) is read, and anything else warns in development and reads as `null`. It reports on every settled step, so what the colour is for can follow at once.
|
|
8976
|
+
|
|
8977
|
+
Escape and Cancel put the opening colour back, with one more `onValueChange`; Done, a click outside, a Tab out and a scroll keep the colour. The focus returns to the field in every case.
|
|
8978
|
+
|
|
8979
|
+
#### Examples
|
|
8980
|
+
|
|
8981
|
+
##### A colour
|
|
8982
|
+
|
|
8983
|
+
The value is a lowercase `#rrggbb` string or `null`. Type or paste a hex colour in the panel (`#2563eb`, `2563EB`, `#26e`); `onValueChange` runs as soon as the text is a whole colour. Done or a click outside keeps the colour, Cancel or Escape puts the old one back.
|
|
8984
|
+
|
|
8985
|
+
```tsx
|
|
8986
|
+
import { useState } from "react";
|
|
8987
|
+
import { ColorPicker, FormField, Stack, Text } from "@umriss-ui/core";
|
|
8988
|
+
|
|
8989
|
+
export default function AColour() {
|
|
8990
|
+
const [colour, setColour] = useState<string | null>("#2563eb");
|
|
8991
|
+
|
|
8992
|
+
return (
|
|
8993
|
+
<Stack gap={3} style={{ maxWidth: 320 }}>
|
|
8994
|
+
<FormField label="Line colour">
|
|
8995
|
+
<ColorPicker value={colour} onValueChange={setColour} />
|
|
8996
|
+
</FormField>
|
|
8997
|
+
<Text size="xs" tone="muted" mono>
|
|
8998
|
+
value: {colour === null ? "null" : colour}
|
|
8999
|
+
</Text>
|
|
9000
|
+
</Stack>
|
|
9001
|
+
);
|
|
9002
|
+
}
|
|
9003
|
+
```
|
|
9004
|
+
|
|
9005
|
+
##### States
|
|
9006
|
+
|
|
9007
|
+
`size="sm"` suits dense forms, `defaultValue` starts an uncontrolled field, `chars` fixes the width, errors come from the `FormField` (or `invalid` by hand), and `disabled` locks field and panel.
|
|
9008
|
+
|
|
9009
|
+
```tsx
|
|
9010
|
+
import { ColorPicker, FormField, Grid } from "@umriss-ui/core";
|
|
9011
|
+
|
|
9012
|
+
export default function States() {
|
|
9013
|
+
return (
|
|
9014
|
+
<Grid minItemWidth="220px" gap={4}>
|
|
9015
|
+
<FormField label="Tag" hint="Small size, uncontrolled.">
|
|
9016
|
+
<ColorPicker size="sm" defaultValue="#7c3aed" />
|
|
9017
|
+
</FormField>
|
|
9018
|
+
<FormField label="Line" error="This colour cannot be read on the dark theme.">
|
|
9019
|
+
<ColorPicker defaultValue="#161618" />
|
|
9020
|
+
</FormField>
|
|
9021
|
+
<FormField label="Set by the theme" hint="Locked.">
|
|
9022
|
+
<ColorPicker value="#059669" onValueChange={() => {}} disabled />
|
|
9023
|
+
</FormField>
|
|
9024
|
+
<FormField label="Accent" hint="Empty, with its own placeholder, ten characters wide.">
|
|
9025
|
+
<ColorPicker placeholder="Theme colour" chars={10} />
|
|
9026
|
+
</FormField>
|
|
9027
|
+
<FormField label="Border">
|
|
9028
|
+
<ColorPicker aria-label="Border colour" invalid />
|
|
9029
|
+
</FormField>
|
|
9030
|
+
</Grid>
|
|
9031
|
+
);
|
|
9032
|
+
}
|
|
9033
|
+
```
|
|
9034
|
+
|
|
9035
|
+
##### The series colours of a trend
|
|
9036
|
+
|
|
9037
|
+
A property panel beside the chart it sets. `onValueChange` runs on every move of the square or the strip and on every arrow key, so the lines follow while the reader drags; Escape and Cancel put the colour back. The square takes the arrows (Shift for ten steps), the strip the arrows and Page Up and Page Down.
|
|
9038
|
+
|
|
9039
|
+
```tsx
|
|
9040
|
+
import { useState } from "react";
|
|
9041
|
+
import { Card, CardBody, ColorPicker, FormField, Grid, Stack, Text } from "@umriss-ui/core";
|
|
9042
|
+
|
|
9043
|
+
const ZONES = [
|
|
9044
|
+
{ id: "z1", name: "Zone 1", color: "#2563eb", points: "0,60 20,52 40,56 60,40 80,44 100,30 120,34" },
|
|
9045
|
+
{ id: "z2", name: "Zone 2", color: "#059669", points: "0,70 20,66 40,60 60,62 80,50 100,52 120,46" },
|
|
9046
|
+
{ id: "z3", name: "Zone 3", color: "#d97706", points: "0,40 20,44 40,30 60,34 80,22 100,26 120,18" },
|
|
9047
|
+
] as const;
|
|
9048
|
+
|
|
9049
|
+
export default function SeriesOfATrend() {
|
|
9050
|
+
const [colours, setColours] = useState<Record<string, string | null>>(Object.fromEntries(ZONES.map((zone) => [zone.id, zone.color])));
|
|
9051
|
+
|
|
9052
|
+
return (
|
|
9053
|
+
<Grid minItemWidth="260px" gap={4}>
|
|
9054
|
+
<Card>
|
|
9055
|
+
<CardBody>
|
|
9056
|
+
<Stack gap={3}>
|
|
9057
|
+
{ZONES.map((zone) => (
|
|
9058
|
+
<FormField key={zone.id} label={zone.name}>
|
|
9059
|
+
<ColorPicker value={colours[zone.id]} onValueChange={(next) => setColours((all) => ({ ...all, [zone.id]: next }))} />
|
|
9060
|
+
</FormField>
|
|
9061
|
+
))}
|
|
9062
|
+
</Stack>
|
|
9063
|
+
</CardBody>
|
|
9064
|
+
</Card>
|
|
9065
|
+
<Card>
|
|
9066
|
+
<CardBody>
|
|
9067
|
+
<Stack gap={2}>
|
|
9068
|
+
<Text size="sm" tone="muted">
|
|
9069
|
+
Furnace temperature, last 6 h
|
|
9070
|
+
</Text>
|
|
9071
|
+
<svg viewBox="0 0 120 80" role="img" aria-label="Three lines, one per zone" style={{ display: "block", width: "100%" }}>
|
|
9072
|
+
{ZONES.map((zone) => (
|
|
9073
|
+
<polyline key={zone.id} points={zone.points} fill="none" stroke={colours[zone.id] ?? "currentColor"} strokeWidth="2" strokeLinejoin="round" strokeLinecap="round" />
|
|
9074
|
+
))}
|
|
9075
|
+
</svg>
|
|
9076
|
+
</Stack>
|
|
9077
|
+
</CardBody>
|
|
9078
|
+
</Card>
|
|
9079
|
+
</Grid>
|
|
9080
|
+
);
|
|
9081
|
+
}
|
|
9082
|
+
```
|
|
9083
|
+
|
|
9084
|
+
##### Choose from a palette
|
|
9085
|
+
|
|
9086
|
+
`swatches` hands in the colours your organisation agreed on, each with a `name` for the hover and the screen reader. The swatch that matches the colour is pressed; a click applies it like any other step. Free choice stays: the square and the hex field are still there.
|
|
9087
|
+
|
|
9088
|
+
```tsx
|
|
9089
|
+
import { useState } from "react";
|
|
9090
|
+
import { ColorPicker, FormField, Stack, Text } from "@umriss-ui/core";
|
|
9091
|
+
|
|
9092
|
+
const PALETTE = [
|
|
9093
|
+
{ name: "Ocean", value: "#2563eb" },
|
|
9094
|
+
{ name: "Forest", value: "#059669" },
|
|
9095
|
+
{ name: "Amber", value: "#d97706" },
|
|
9096
|
+
{ name: "Coral", value: "#f97316" },
|
|
9097
|
+
{ name: "Berry", value: "#be123c" },
|
|
9098
|
+
{ name: "Violet", value: "#7c3aed" },
|
|
9099
|
+
{ name: "Slate", value: "#475569" },
|
|
9100
|
+
{ name: "Ink", value: "#161618" },
|
|
9101
|
+
];
|
|
9102
|
+
|
|
9103
|
+
export default function FromAPalette() {
|
|
9104
|
+
const [colour, setColour] = useState<string | null>("#059669");
|
|
9105
|
+
|
|
9106
|
+
return (
|
|
9107
|
+
<Stack gap={3} style={{ maxWidth: 320 }}>
|
|
9108
|
+
<FormField label="Task category">
|
|
9109
|
+
<ColorPicker value={colour} onValueChange={setColour} swatches={PALETTE} />
|
|
9110
|
+
</FormField>
|
|
9111
|
+
<Text size="xs" tone="muted" mono>
|
|
9112
|
+
value: {colour === null ? "null" : colour}
|
|
9113
|
+
</Text>
|
|
9114
|
+
</Stack>
|
|
9115
|
+
);
|
|
9116
|
+
}
|
|
9117
|
+
```
|
|
9118
|
+
|
|
9119
|
+
##### Contrast against your surfaces
|
|
9120
|
+
|
|
9121
|
+
The panel reads the colour against core's light and dark surface and says Pass or Fail at 3:1 - the bound for a line or a mark, not for text. `contrastAgainst` names your own surfaces instead; an empty list hides the readout.
|
|
9122
|
+
|
|
9123
|
+
```tsx
|
|
9124
|
+
import { ColorPicker, FormField, Grid } from "@umriss-ui/core";
|
|
9125
|
+
|
|
9126
|
+
/* The two values of core's `--u-color-surface` token (light, dark). */
|
|
9127
|
+
const LIGHT = "#ffffff";
|
|
9128
|
+
const DARK = "#161618";
|
|
9129
|
+
|
|
9130
|
+
const SURFACES = [
|
|
9131
|
+
{ name: "Plan", value: "#f4f1ea" },
|
|
9132
|
+
{ name: "Night plan", value: "#1c2430" },
|
|
9133
|
+
{ name: "Map", value: "#cfe3d4" },
|
|
9134
|
+
];
|
|
9135
|
+
|
|
9136
|
+
export default function ContrastAgainstYourSurfaces() {
|
|
9137
|
+
return (
|
|
9138
|
+
<Grid minItemWidth="260px" gap={4}>
|
|
9139
|
+
<FormField label="Core's surfaces" hint="The default: light and dark.">
|
|
9140
|
+
<ColorPicker defaultValue="#7c9cff" contrastAgainst={[{ name: "Light", value: LIGHT }, { name: "Dark", value: DARK }]} />
|
|
9141
|
+
</FormField>
|
|
9142
|
+
<FormField label="Your surfaces" hint="Three backgrounds the line must stay visible on.">
|
|
9143
|
+
<ColorPicker defaultValue="#d97706" contrastAgainst={SURFACES} />
|
|
9144
|
+
</FormField>
|
|
9145
|
+
<FormField label="No readout" hint="An empty list.">
|
|
9146
|
+
<ColorPicker defaultValue="#475569" contrastAgainst={[]} />
|
|
9147
|
+
</FormField>
|
|
9148
|
+
</Grid>
|
|
9149
|
+
);
|
|
9150
|
+
}
|
|
9151
|
+
```
|
|
9152
|
+
|
|
9153
|
+
##### In a form
|
|
9154
|
+
|
|
9155
|
+
Give the field a `name` and a plain `<form>` - or a React 19 `<form action>` - receives the colour as lowercase `#rrggbb`, or an empty text when none is set; a disabled field posts nothing. `formValue` writes it another way, `clearable` adds a cross and a Clear button, and a reset puts the default colour back.
|
|
9156
|
+
|
|
9157
|
+
```tsx
|
|
9158
|
+
import { useState } from "react";
|
|
9159
|
+
import { Button, ColorPicker, FormField, Grid, Stack, Text } from "@umriss-ui/core";
|
|
9160
|
+
|
|
9161
|
+
export default function InAForm() {
|
|
9162
|
+
const [posted, setPosted] = useState<string[]>([]);
|
|
9163
|
+
|
|
9164
|
+
return (
|
|
9165
|
+
<form
|
|
9166
|
+
action={(data) => setPosted([...data.entries()].map(([name, value]) => `${name} = ${String(value)}`))}
|
|
9167
|
+
style={{ maxWidth: 560 }}
|
|
9168
|
+
>
|
|
9169
|
+
<Stack gap={4}>
|
|
9170
|
+
<Grid minItemWidth="220px" gap={4}>
|
|
9171
|
+
<FormField label="Brand colour">
|
|
9172
|
+
<ColorPicker name="accent" defaultValue="#2563eb" clearable />
|
|
9173
|
+
</FormField>
|
|
9174
|
+
<FormField label="Line, without the hash">
|
|
9175
|
+
<ColorPicker name="line" defaultValue="#161618" formValue={(hex) => hex.slice(1)} />
|
|
9176
|
+
</FormField>
|
|
9177
|
+
<FormField label="Highlight" hint="Empty, so it posts an empty text.">
|
|
9178
|
+
<ColorPicker name="highlight" clearable />
|
|
9179
|
+
</FormField>
|
|
9180
|
+
<FormField label="Set by the theme" hint="Locked, so it posts nothing.">
|
|
9181
|
+
<ColorPicker name="locked" defaultValue="#059669" disabled />
|
|
9182
|
+
</FormField>
|
|
9183
|
+
</Grid>
|
|
9184
|
+
<Stack direction="row" gap={3} align="center">
|
|
9185
|
+
<Button type="submit" variant="primary" size="sm">
|
|
9186
|
+
Send
|
|
9187
|
+
</Button>
|
|
9188
|
+
<Button type="reset" variant="ghost" size="sm">
|
|
9189
|
+
Reset
|
|
9190
|
+
</Button>
|
|
9191
|
+
</Stack>
|
|
9192
|
+
{posted.length > 0 && (
|
|
9193
|
+
<Text as="pre" size="sm" data-testid="posted" style={{ margin: 0 }}>
|
|
9194
|
+
{posted.join("\n")}
|
|
9195
|
+
</Text>
|
|
9196
|
+
)}
|
|
9197
|
+
</Stack>
|
|
9198
|
+
</form>
|
|
9199
|
+
);
|
|
9200
|
+
}
|
|
9201
|
+
```
|
|
9202
|
+
|
|
9203
|
+
#### When to use something else
|
|
9204
|
+
|
|
9205
|
+
- One of a few named options → RadioGroup
|
|
9206
|
+
- A day or a moment → DatePicker
|
|
9207
|
+
|
|
9208
|
+
#### Keyboard
|
|
9209
|
+
|
|
9210
|
+
| Key | Action |
|
|
9211
|
+
|---|---|
|
|
9212
|
+
| `Enter, Space or Arrow Down` | On the field, opens the panel. |
|
|
9213
|
+
| `Escape` | Puts back the colour the panel opened with and closes it. |
|
|
9214
|
+
|
|
9215
|
+
#### API
|
|
9216
|
+
|
|
9217
|
+
##### `ColorPickerProps`
|
|
9218
|
+
|
|
9219
|
+
| Prop | Type | Default | Description |
|
|
9220
|
+
|---|---|---|---|
|
|
9221
|
+
| `defaultValue` | `string \| null` | `null` | Uncontrolled: the colour to start at.<br>Shown in: [States](#colorpicker), [Contrast against your surfaces](#colorpicker), [In a form](#colorpicker) |
|
|
9222
|
+
| `value` | `string \| null` | — | The colour as a hex string - `#2563eb`, `2563EB` and `#26e` are read; `null` means none. Anything else warns in development and reads as `null`. It leaves as lowercase `#rrggbb`.<br>Shown in: [A colour](#colorpicker), [States](#colorpicker), [The series colours of a trend](#colorpicker) and 1 more |
|
|
9223
|
+
| `onValueChange` | `(value: string \| null) => void` | — | Runs on every settled step - a hex value as soon as it is a whole colour - and once more with the colour the panel opened with when Cancel or Escape put it back.<br>Shown in: [A colour](#colorpicker), [States](#colorpicker), [The series colours of a trend](#colorpicker) and 1 more |
|
|
9224
|
+
| `placeholder` | `string` | — | What stands in the empty field.<br>Shown in: [States](#colorpicker) |
|
|
9225
|
+
| `clearable` | `boolean` | `false` | A cross on the trigger and Clear in the panel set `null`.<br>Shown in: [In a form](#colorpicker) |
|
|
9226
|
+
| `disabled` | `boolean` | `false` | Locks the field and the panel.<br>Shown in: [States](#colorpicker), [In a form](#colorpicker) |
|
|
9227
|
+
| `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: [States](#colorpicker) |
|
|
9228
|
+
| `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | `sm` for a toolbar and dense forms, `md` otherwise.<br>Shown in: [States](#colorpicker) |
|
|
9229
|
+
| `chars` | `number` | — | The width in characters - room for the value; the field adds its own padding, swatch and chevron. Given, the field is that wide wherever it stands, and never wider than its place. Without it the field fills its place, and where the place asks - in a toolbar or a row - it is as wide as a hex value.<br>Shown in: [States](#colorpicker) |
|
|
9230
|
+
| `swatches` | `readonly ``ColorSwatch``[]` | no default | The application's own colours as one-click choices in the panel, named for a screen reader and on hover; the one matching the colour is pressed.<br>Shown in: [Choose from a palette](#colorpicker) |
|
|
9231
|
+
| `contrastAgainst` | `readonly ``ColorSwatch``[]` | core's light and dark surface | The surfaces the panel measures the colour against, each with its contrast ratio and Pass or Fail at 3:1 (WCAG 1.4.11 - for marks and lines, not text). An empty list hides the readout.<br>Shown in: [Contrast against your surfaces](#colorpicker) |
|
|
9232
|
+
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9233
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [In a form](#colorpicker), [Post to a form (FormField)](#formfield), [States and a form (TimeInput)](#timeinput) |
|
|
9234
|
+
| `formValue` | `(value: string) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [In a form](#colorpicker), [Post to a form (FormField)](#formfield) |
|
|
9235
|
+
|
|
9236
|
+
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
9237
|
+
|
|
9238
|
+
##### `ColorSwatch`
|
|
9239
|
+
|
|
9240
|
+
| Prop | Type | Default | Description |
|
|
9241
|
+
|---|---|---|---|
|
|
9242
|
+
| `name` *required* | `string` | — | What the colour is called: said by a screen reader and shown on hover (swatch), or the surface's name in the readout.<br>Shown in: [Contrast against your surfaces](#colorpicker) |
|
|
9243
|
+
| `value` *required* | `string` | — | A hex colour, `#2563eb` or `2563EB`.<br>Shown in: [Contrast against your surfaces](#colorpicker) |
|
|
9244
|
+
|
|
9245
|
+
#### Known limits
|
|
9246
|
+
|
|
9247
|
+
- Hex only: no alpha, no `rgb()`, `hsl()` or `oklch()`.
|
|
9248
|
+
|
|
9249
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9250
|
+
|
|
8919
9251
|
## Dates and times
|
|
8920
9252
|
|
|
8921
9253
|
Where a user picks a day, a moment or a span of them from a calendar that opens.
|
|
@@ -9108,8 +9440,8 @@ export default function FromTheFirstReadingToToday() {
|
|
|
9108
9440
|
| `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given.<br>Shown in: [From the first reading to today](#datepicker) |
|
|
9109
9441
|
| `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is.<br>Shown in: [From the first reading to today](#datepicker) |
|
|
9110
9442
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9111
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [States and a form (TimeInput)](#timeinput) |
|
|
9112
|
-
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
9443
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [States and a form (TimeInput)](#timeinput) |
|
|
9444
|
+
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
9113
9445
|
|
|
9114
9446
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
9115
9447
|
|
|
@@ -9118,7 +9450,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
9118
9450
|
- No typing of a date into the field.
|
|
9119
9451
|
- 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)).
|
|
9120
9452
|
|
|
9121
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9453
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9122
9454
|
|
|
9123
9455
|
### DateTimePicker
|
|
9124
9456
|
|
|
@@ -9279,8 +9611,8 @@ export default function WithAnError() {
|
|
|
9279
9611
|
| `min` | `Date` | — | The earliest day the picker offers, inclusive. Only its calendar day counts - in the formats' zone, when one is named - not its time of day. A value given outside is shown as given. |
|
|
9280
9612
|
| `max` | `Date` | — | The latest day the picker offers, inclusive; read as `min` is. |
|
|
9281
9613
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9282
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [States and a form (TimeInput)](#timeinput) |
|
|
9283
|
-
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
9614
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [States and a form (TimeInput)](#timeinput) |
|
|
9615
|
+
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
9284
9616
|
|
|
9285
9617
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
9286
9618
|
|
|
@@ -9288,7 +9620,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
|
9288
9620
|
|
|
9289
9621
|
- 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)).
|
|
9290
9622
|
|
|
9291
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9623
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9292
9624
|
|
|
9293
9625
|
### TimeInput
|
|
9294
9626
|
|
|
@@ -9397,8 +9729,8 @@ export default function StatesAndAForm() {
|
|
|
9397
9729
|
| `invalid` | `boolean` | — | Marks the field as invalid. Inside a `FormField` with an `error`, it is set already.<br>Shown in: [Configurator](#timeinput) |
|
|
9398
9730
|
| `size` | `"sm" \| "md"` | the size of a `ControlSizeProvider` around it, else `"md"` | The size of the fields.<br>Shown in: [Configurator](#timeinput) |
|
|
9399
9731
|
| `ref` | `Ref<HTMLInputElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9400
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [States and a form](#timeinput), [Post to a form (FormField)](#formfield) |
|
|
9401
|
-
| `formValue` | `(value: string) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
9732
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [States and a form](#timeinput), [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
9733
|
+
| `formValue` | `(value: string) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
9402
9734
|
|
|
9403
9735
|
Also takes every attribute of `<input>` – without `defaultValue`, `max`, `min`, `name`, `onChange`, `size`, `step`, `type`, `value`.
|
|
9404
9736
|
|
|
@@ -9406,7 +9738,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `max`, `min`
|
|
|
9406
9738
|
|
|
9407
9739
|
- No 12-hour clock and no time zone: a time of day is the text it is written as.
|
|
9408
9740
|
|
|
9409
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9741
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9410
9742
|
|
|
9411
9743
|
### DateRangePicker
|
|
9412
9744
|
|
|
@@ -9617,8 +9949,8 @@ export default function PresetsCutToABound() {
|
|
|
9617
9949
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9618
9950
|
| `startName` | `string` | `${name}Start` | The name the start is posted under. From `FormPostRangeProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
9619
9951
|
| `endName` | `string` | `${name}End` | The name the end is posted under. From `FormPostRangeProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
9620
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [States and a form (TimeInput)](#timeinput) |
|
|
9621
|
-
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
9952
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [States and a form (TimeInput)](#timeinput) |
|
|
9953
|
+
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
9622
9954
|
|
|
9623
9955
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
9624
9956
|
|
|
@@ -9649,7 +9981,7 @@ the moment of the click.
|
|
|
9649
9981
|
|
|
9650
9982
|
- One span; no list of separate days.
|
|
9651
9983
|
|
|
9652
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
9984
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9653
9985
|
|
|
9654
9986
|
### DateTimeRangePicker
|
|
9655
9987
|
|
|
@@ -9832,8 +10164,8 @@ export default function WithAnError() {
|
|
|
9832
10164
|
| `ref` | `Ref<HTMLButtonElement> \| undefined` | — | Receives the component's root element. From `RefProp`.<br>Shown in: [A row that holds still (Sizes)](#sizes), [Check an invoice on submit (FormField)](#formfield), [An anchored surface (Popover)](#popover) and 5 more |
|
|
9833
10165
|
| `startName` | `string` | `${name}Start` | The name the start is posted under. From `FormPostRangeProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
9834
10166
|
| `endName` | `string` | `${name}End` | The name the end is posted under. From `FormPostRangeProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
9835
|
-
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [States and a form (TimeInput)](#timeinput) |
|
|
9836
|
-
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield) |
|
|
10167
|
+
| `name` | `string` | — | Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker), [States and a form (TimeInput)](#timeinput) |
|
|
10168
|
+
| `formValue` | `(value: Date) => string` | — | Replaces the default text a value is posted as. It is called with each value that is set - for a `MultiSelect` once per entry, for a range picker once per end - never for an empty field. From `FormPostProps`.<br>Shown in: [Post to a form (FormField)](#formfield), [In a form (ColorPicker)](#colorpicker) |
|
|
9837
10169
|
|
|
9838
10170
|
Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
|
|
9839
10171
|
|
|
@@ -9865,7 +10197,7 @@ the moment of the click.
|
|
|
9865
10197
|
- 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)).
|
|
9866
10198
|
- No recurring windows.
|
|
9867
10199
|
|
|
9868
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10200
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
9869
10201
|
|
|
9870
10202
|
## Feedback
|
|
9871
10203
|
|
|
@@ -10015,7 +10347,7 @@ Also takes every attribute of `<svg>`.
|
|
|
10015
10347
|
|
|
10016
10348
|
- One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
|
|
10017
10349
|
|
|
10018
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10350
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10019
10351
|
|
|
10020
10352
|
### ProgressBar
|
|
10021
10353
|
|
|
@@ -10198,7 +10530,7 @@ Also takes every attribute of `<div>`.
|
|
|
10198
10530
|
|
|
10199
10531
|
- No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
|
|
10200
10532
|
|
|
10201
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10533
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10202
10534
|
|
|
10203
10535
|
### Skeleton
|
|
10204
10536
|
|
|
@@ -10355,7 +10687,7 @@ Also takes every attribute of `<span>`.
|
|
|
10355
10687
|
|
|
10356
10688
|
- It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
|
|
10357
10689
|
|
|
10358
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10690
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10359
10691
|
|
|
10360
10692
|
### Alert
|
|
10361
10693
|
|
|
@@ -10573,7 +10905,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
10573
10905
|
- No timer: an alert stays until you remove it. A message that goes by itself is a toast.
|
|
10574
10906
|
- No stack or queue of messages; place each alert where its matter is.
|
|
10575
10907
|
|
|
10576
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
10908
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
10577
10909
|
|
|
10578
10910
|
### Toast
|
|
10579
10911
|
|
|
@@ -11131,7 +11463,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
|
|
|
11131
11463
|
- 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.
|
|
11132
11464
|
- 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.
|
|
11133
11465
|
|
|
11134
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11466
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11135
11467
|
|
|
11136
11468
|
### EmptyState
|
|
11137
11469
|
|
|
@@ -11439,7 +11771,7 @@ export default function ACalculation() {
|
|
|
11439
11771
|
- No interactive content and no rich layout inside: it is read, never used.
|
|
11440
11772
|
- No placement option: it stands above its element and flips below where there is no room.
|
|
11441
11773
|
|
|
11442
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
11774
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11443
11775
|
|
|
11444
11776
|
### Popover
|
|
11445
11777
|
|
|
@@ -11693,7 +12025,7 @@ export default function ASettingInAPanel() {
|
|
|
11693
12025
|
| Prop | Type | Default | Description |
|
|
11694
12026
|
|---|---|---|---|
|
|
11695
12027
|
| `open` *required* | `boolean` | — | Whether the surface stands. Controlled: the popover never opens itself.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 2 more |
|
|
11696
|
-
| `onOpenChange` *required* | `(open: boolean) => void` | — | Reports every wish to change the state – outside click, Escape, scrolling. Whether it closes as a result is the caller's decision
|
|
12028
|
+
| `onOpenChange` *required* | `(open: boolean, reason?: ``PopoverCloseReason``) => void` | — | Reports every wish to change the state – outside click, Escape, scrolling. Whether it closes as a result is the caller's decision. A wish to close carries its `PopoverCloseReason`.<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 2 more |
|
|
11697
12029
|
| `anchorRef` *required* | `RefObject<HTMLElement \| null>` | — | Trigger the panel hangs from (the reference for the position).<br>Shown in: [An anchored surface](#popover), [Take the width of the trigger](#popover), [Filter a list from a panel](#popover) and 2 more |
|
|
11698
12030
|
| `focusRef` | `RefObject<HTMLElement \| null>` | `anchorRef` | Element that receives the focus on closing. Needed where the anchor is a non-focusable shell and the actual trigger sits inside it. |
|
|
11699
12031
|
| `insideRefs` | `ReadonlyArray<RefObject<HTMLElement \| null>>` | — | Further elements whose click does not count as an outside click (e.g. the clear ×). |
|
|
@@ -11728,6 +12060,16 @@ export default function ASettingInAPanel() {
|
|
|
11728
12060
|
|
|
11729
12061
|
##### Types on this page
|
|
11730
12062
|
|
|
12063
|
+
###### `PopoverCloseReason`
|
|
12064
|
+
|
|
12065
|
+
Why a popover asks to close: Escape, a click outside, a scroll
|
|
12066
|
+
(`hideOnScroll`), the anchor clipped away by a scrolling container, a Tab
|
|
12067
|
+
out of the panel (`closeOnTabOut`).
|
|
12068
|
+
|
|
12069
|
+
```ts
|
|
12070
|
+
type PopoverCloseReason = "escape" | "outside" | "scroll" | "clipped" | "tab";
|
|
12071
|
+
```
|
|
12072
|
+
|
|
11731
12073
|
###### `Align`
|
|
11732
12074
|
|
|
11733
12075
|
Where the panel lines up with its anchor along the side it stands on.
|
|
@@ -11741,7 +12083,7 @@ type Align = "start" | "end" | "center";
|
|
|
11741
12083
|
- 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.
|
|
11742
12084
|
- It does not trap focus; a surface the user must answer is a [Modal](#modal).
|
|
11743
12085
|
|
|
11744
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12086
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11745
12087
|
|
|
11746
12088
|
### Menu
|
|
11747
12089
|
|
|
@@ -11978,7 +12320,7 @@ Also takes every attribute of `<button>` – without `onSelect`.
|
|
|
11978
12320
|
|
|
11979
12321
|
- No submenus, no checkable entries and no type-ahead.
|
|
11980
12322
|
|
|
11981
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12323
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
11982
12324
|
|
|
11983
12325
|
### ContextMenu
|
|
11984
12326
|
|
|
@@ -12195,7 +12537,7 @@ export default function OnARow() {
|
|
|
12195
12537
|
- It listens to no right-click itself: the element and the point are yours, through the hook.
|
|
12196
12538
|
- No submenus, no checkable entries and no type-ahead, as in the menu.
|
|
12197
12539
|
|
|
12198
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12540
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12199
12541
|
|
|
12200
12542
|
### Modal
|
|
12201
12543
|
|
|
@@ -12652,7 +12994,7 @@ type ModalSize = "sm" | "md" | "lg";
|
|
|
12652
12994
|
|
|
12653
12995
|
- No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
|
|
12654
12996
|
|
|
12655
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
12997
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
12656
12998
|
|
|
12657
12999
|
### Drawer
|
|
12658
13000
|
|
|
@@ -13085,7 +13427,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
|
|
|
13085
13427
|
- Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
|
|
13086
13428
|
- Only the left and right edges; nothing slides in from the top or bottom.
|
|
13087
13429
|
|
|
13088
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13430
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13089
13431
|
|
|
13090
13432
|
### ConfirmDialog
|
|
13091
13433
|
|
|
@@ -13262,7 +13604,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
13262
13604
|
|
|
13263
13605
|
- A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
|
|
13264
13606
|
|
|
13265
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13607
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13266
13608
|
|
|
13267
13609
|
### CommandPalette
|
|
13268
13610
|
|
|
@@ -13564,7 +13906,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
|
|
|
13564
13906
|
- No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
|
|
13565
13907
|
- No nested steps or arguments: a command that needs input opens your own form after it is chosen.
|
|
13566
13908
|
|
|
13567
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
13909
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13568
13910
|
|
|
13569
13911
|
## Navigation
|
|
13570
13912
|
|
|
@@ -13884,7 +14226,7 @@ Also takes every attribute of the rendered element.
|
|
|
13884
14226
|
|
|
13885
14227
|
- It neither routes nor reads the address: the trail is what you pass.
|
|
13886
14228
|
|
|
13887
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14229
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
13888
14230
|
|
|
13889
14231
|
### Tabs
|
|
13890
14232
|
|
|
@@ -14225,12 +14567,6 @@ export default function MoreTabsThanRoom() {
|
|
|
14225
14567
|
| `onValueChange` | `(value: string) => void` | — | Receives the value of the chosen tab. Controlled, the tab switches only once `value` follows; uncontrolled it is merely a message.<br>Shown in: [Keep the tab in the address](#tabs) |
|
|
14226
14568
|
| `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 |
|
|
14227
14569
|
|
|
14228
|
-
###### Events
|
|
14229
|
-
|
|
14230
|
-
| Prop | Type | Default | Description |
|
|
14231
|
-
|---|---|---|---|
|
|
14232
|
-
| `onChange` | `(value: string) => void` | — | *Deprecated* since 0.53 - use `onValueChange`; it goes in the next minor release. The former name of `onValueChange`. |
|
|
14233
|
-
|
|
14234
14570
|
Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
14235
14571
|
|
|
14236
14572
|
##### `TabProps`
|
|
@@ -14255,7 +14591,7 @@ Also takes every attribute of `<div>`.
|
|
|
14255
14591
|
|
|
14256
14592
|
- More tabs than fit scroll sideways within the list; there is no overflow menu, and no closing or reordering of tabs.
|
|
14257
14593
|
|
|
14258
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14594
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14259
14595
|
|
|
14260
14596
|
### Accordion
|
|
14261
14597
|
|
|
@@ -14482,12 +14818,6 @@ export default function LongSettingsInSections() {
|
|
|
14482
14818
|
| `headingLevel` | `2 \| 3 \| 4 \| 5 \| 6` | `3` | The level of the heading each header stands in - the one that fits the page's outline.<br>Shown in: [Several open, one locked](#accordion), [Long settings in sections](#accordion) |
|
|
14483
14819
|
| `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 |
|
|
14484
14820
|
|
|
14485
|
-
###### Events
|
|
14486
|
-
|
|
14487
|
-
| Prop | Type | Default | Description |
|
|
14488
|
-
|---|---|---|---|
|
|
14489
|
-
| `onChange` | `(value: string[]) => void` | — | *Deprecated* since 0.53 - use `onValueChange`; it goes in the next minor release. The former name of `onValueChange`. |
|
|
14490
|
-
|
|
14491
14821
|
Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
|
|
14492
14822
|
|
|
14493
14823
|
##### `AccordionItemProps`
|
|
@@ -14505,7 +14835,7 @@ Also takes every attribute of `<div>` – without `title`.
|
|
|
14505
14835
|
|
|
14506
14836
|
- A folded section's content stays rendered; for heavy content, render it only while its section is open.
|
|
14507
14837
|
|
|
14508
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
14838
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14509
14839
|
|
|
14510
14840
|
### Stepper
|
|
14511
14841
|
|
|
@@ -14738,7 +15068,7 @@ Also takes every attribute of the rendered element.
|
|
|
14738
15068
|
- 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.
|
|
14739
15069
|
- No branching or optional steps; pass the steps that apply.
|
|
14740
15070
|
|
|
14741
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15071
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
14742
15072
|
|
|
14743
15073
|
### TreeView
|
|
14744
15074
|
|
|
@@ -15419,7 +15749,7 @@ to render and the heights of the filler rows around it.
|
|
|
15419
15749
|
- No dragging nodes to rearrange them.
|
|
15420
15750
|
- 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)).
|
|
15421
15751
|
|
|
15422
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
15752
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15423
15753
|
|
|
15424
15754
|
### Benchmark
|
|
15425
15755
|
|
|
@@ -15829,7 +16159,7 @@ type AvatarSize = "sm" | "md";
|
|
|
15829
16159
|
|
|
15830
16160
|
- No stack of avatars and no presence dot.
|
|
15831
16161
|
|
|
15832
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16162
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
15833
16163
|
|
|
15834
16164
|
### Badge
|
|
15835
16165
|
|
|
@@ -16019,7 +16349,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
16019
16349
|
- It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
|
|
16020
16350
|
- It counts nothing itself: capping at “99+” is yours.
|
|
16021
16351
|
|
|
16022
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16352
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16023
16353
|
|
|
16024
16354
|
### Tag
|
|
16025
16355
|
|
|
@@ -16286,7 +16616,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
16286
16616
|
- No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
|
|
16287
16617
|
- Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
|
|
16288
16618
|
|
|
16289
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
16619
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
16290
16620
|
|
|
16291
16621
|
### Stat
|
|
16292
16622
|
|
|
@@ -17175,7 +17505,7 @@ type Severity = "warning" | "alarm";
|
|
|
17175
17505
|
- No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
|
|
17176
17506
|
- It fetches and polls nothing: freshness is judged from the `asOf` you give it.
|
|
17177
17507
|
|
|
17178
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17508
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17179
17509
|
|
|
17180
17510
|
### Meter
|
|
17181
17511
|
|
|
@@ -17345,7 +17675,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
|
17345
17675
|
|
|
17346
17676
|
- No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
|
|
17347
17677
|
|
|
17348
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17678
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17349
17679
|
|
|
17350
17680
|
### Sparkline
|
|
17351
17681
|
|
|
@@ -17603,7 +17933,7 @@ Also takes every attribute of `<span>`.
|
|
|
17603
17933
|
|
|
17604
17934
|
- No axes, labels, tooltip or points to hover: the value stands beside it.
|
|
17605
17935
|
|
|
17606
|
-
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.
|
|
17936
|
+
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.55.0/docs/adr/0032-what-umriss-is-not.md).
|
|
17607
17937
|
|
|
17608
17938
|
## API index
|
|
17609
17939
|
|
|
@@ -17666,7 +17996,7 @@ Used on [Breadcrumb](#breadcrumb) and [Scenarios](#scenarios).
|
|
|
17666
17996
|
|
|
17667
17997
|
[Button](#button) – Starts one action when pressed: save, send, deploy, delete. Its variant says how much weight the action carries beside its neighbours, and while the action runs it shows that it is busy and cannot be pressed twice.
|
|
17668
17998
|
|
|
17669
|
-
Used on [Installation](#installation), [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Language](#language), [Stack and Grid](#stack-and-grid), [Divider](#divider), [Card](#card), [Splitter](#splitter), [VisuallyHidden](#visuallyhidden), [Button](#button), [IconButton](#iconbutton), [ButtonGroup](#buttongroup), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [RangeSlider](#rangeslider), [FileInput](#fileinput), [Combobox](#combobox), [TimeInput](#timeinput), [Spinner](#spinner), [ProgressBar](#progressbar), [Skeleton](#skeleton), [Alert](#alert), [Toast](#toast-1), [EmptyState](#emptystate), [Tooltip](#tooltip), [Popover](#popover), [Menu](#menu), [Modal](#modal), [Drawer](#drawer), [ConfirmDialog](#confirmdialog), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Accordion](#accordion), [Stepper](#stepper), [TreeView](#treeview), [Benchmark](#benchmark), [Badge](#badge), [Tag](#tag) and [Scenarios](#scenarios).
|
|
17999
|
+
Used on [Installation](#installation), [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Language](#language), [Stack and Grid](#stack-and-grid), [Divider](#divider), [Card](#card), [Splitter](#splitter), [VisuallyHidden](#visuallyhidden), [Button](#button), [IconButton](#iconbutton), [ButtonGroup](#buttongroup), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [RangeSlider](#rangeslider), [FileInput](#fileinput), [Combobox](#combobox), [ColorPicker](#colorpicker), [TimeInput](#timeinput), [Spinner](#spinner), [ProgressBar](#progressbar), [Skeleton](#skeleton), [Alert](#alert), [Toast](#toast-1), [EmptyState](#emptystate), [Tooltip](#tooltip), [Popover](#popover), [Menu](#menu), [Modal](#modal), [Drawer](#drawer), [ConfirmDialog](#confirmdialog), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Accordion](#accordion), [Stepper](#stepper), [TreeView](#treeview), [Benchmark](#benchmark), [Badge](#badge), [Tag](#tag) and [Scenarios](#scenarios).
|
|
17670
18000
|
|
|
17671
18001
|
##### `ButtonGroup`
|
|
17672
18002
|
|
|
@@ -17689,14 +18019,14 @@ function CalendarGlyph({ ref, size, range, ...rest }: GlyphProps & {
|
|
|
17689
18019
|
|
|
17690
18020
|
[Card](#card) – A surface that holds one block of a screen together: a head with its title and actions, and a body (also called a panel or tile). Reach for it for each block of a dashboard or a detail view.
|
|
17691
18021
|
|
|
17692
|
-
Used on [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Stack and Grid](#stack-and-grid), [Card](#card), [Splitter](#splitter), [Typography](#typography-2), [Button](#button), [NumberInput](#numberinput), [Slider](#slider), [Switch](#switch), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Combobox](#combobox), [Spinner](#spinner), [ProgressBar](#progressbar), [EmptyState](#emptystate), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [Accordion](#accordion), [Stepper](#stepper), [Stat](#stat) and [Scenarios](#scenarios).
|
|
18022
|
+
Used on [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Stack and Grid](#stack-and-grid), [Card](#card), [Splitter](#splitter), [Typography](#typography-2), [Button](#button), [NumberInput](#numberinput), [Slider](#slider), [Switch](#switch), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Combobox](#combobox), [ColorPicker](#colorpicker), [Spinner](#spinner), [ProgressBar](#progressbar), [EmptyState](#emptystate), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [Accordion](#accordion), [Stepper](#stepper), [Stat](#stat) and [Scenarios](#scenarios).
|
|
17693
18023
|
|
|
17694
18024
|
##### `CardBody`
|
|
17695
18025
|
|
|
17696
18026
|
[Card](#card) – The content of a `Card`; the part that folds away in a collapsible card.
|
|
17697
18027
|
`flush` removes the padding for a table or a log.
|
|
17698
18028
|
|
|
17699
|
-
Used on [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Stack and Grid](#stack-and-grid), [Card](#card), [Typography](#typography-2), [Button](#button), [NumberInput](#numberinput), [Slider](#slider), [Switch](#switch), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Combobox](#combobox), [Spinner](#spinner), [ProgressBar](#progressbar), [EmptyState](#emptystate), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [Accordion](#accordion), [Stepper](#stepper), [Stat](#stat) and [Scenarios](#scenarios).
|
|
18029
|
+
Used on [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Stack and Grid](#stack-and-grid), [Card](#card), [Typography](#typography-2), [Button](#button), [NumberInput](#numberinput), [Slider](#slider), [Switch](#switch), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Combobox](#combobox), [ColorPicker](#colorpicker), [Spinner](#spinner), [ProgressBar](#progressbar), [EmptyState](#emptystate), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [Accordion](#accordion), [Stepper](#stepper), [Stat](#stat) and [Scenarios](#scenarios).
|
|
17700
18030
|
|
|
17701
18031
|
##### `CardHeader`
|
|
17702
18032
|
|
|
@@ -17719,6 +18049,12 @@ A clock face at a quarter past - the time pickers' character.
|
|
|
17719
18049
|
function ClockGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
|
|
17720
18050
|
```
|
|
17721
18051
|
|
|
18052
|
+
##### `ColorPicker`
|
|
18053
|
+
|
|
18054
|
+
[ColorPicker](#colorpicker) – One colour, chosen on a square and a hue strip, typed as hex or as red, green and blue, or picked from the screen, from the application's own swatches (colour field): the line of a series, a tag, a state. The panel reads the colour against light and dark surfaces and compares it with the colour it opened with.
|
|
18055
|
+
|
|
18056
|
+
Used on [ColorPicker](#colorpicker).
|
|
18057
|
+
|
|
17722
18058
|
##### `Combobox`
|
|
17723
18059
|
|
|
17724
18060
|
[Combobox](#combobox) – One choice from a long list, found by typing (autocomplete, typeahead, searchable select): a driver, a service, an account. The list filters along while the value stays exactly one.
|
|
@@ -17798,6 +18134,14 @@ Used on [Stack and Grid](#stack-and-grid), [Divider](#divider), [Switch](#switch
|
|
|
17798
18134
|
|
|
17799
18135
|
Used on [Modal](#modal), [Drawer](#drawer), [CommandPalette](#commandpalette) and [Scenarios](#scenarios).
|
|
17800
18136
|
|
|
18137
|
+
##### `DropperGlyph`
|
|
18138
|
+
|
|
18139
|
+
An eyedropper: a pipette with its bulb at the top and its tip at the bottom left.
|
|
18140
|
+
|
|
18141
|
+
```ts
|
|
18142
|
+
function DropperGlyph({ ref, size, ...rest }: GlyphProps): import("react").JSX.Element;
|
|
18143
|
+
```
|
|
18144
|
+
|
|
17801
18145
|
##### `EmptyState`
|
|
17802
18146
|
|
|
17803
18147
|
[EmptyState](#emptystate) – What stands where a list or panel has nothing to show: what is missing, why, and the way forward (also called a blank slate). Reach for it for a first use, a filter that found nothing, or a queue that is clear.
|
|
@@ -17823,7 +18167,7 @@ Used on [Sizes](#sizes) and [FileInput](#fileinput).
|
|
|
17823
18167
|
|
|
17824
18168
|
[FormField](#formfield) – The frame around a field: its label, a hint below it and the error that replaces the hint (validation messages). Wrap every field in one, so the question, the help and the problem are read out together.
|
|
17825
18169
|
|
|
17826
|
-
Used on [UmrissProvider](#umrissprovider), [Sizes](#sizes), [Language](#language), [Button](#button), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [RangeSlider](#rangeslider), [Checkbox](#checkbox), [Switch](#switch), [RadioGroup](#radiogroup), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [TimeInput](#timeinput), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Alert](#alert), [Toast](#toast-1), [Popover](#popover), [Modal](#modal), [Drawer](#drawer), [Breadcrumb](#breadcrumb), [Accordion](#accordion), [TreeView](#treeview) and [Scenarios](#scenarios).
|
|
18170
|
+
Used on [UmrissProvider](#umrissprovider), [Sizes](#sizes), [Language](#language), [Button](#button), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [RangeSlider](#rangeslider), [Checkbox](#checkbox), [Switch](#switch), [RadioGroup](#radiogroup), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [ColorPicker](#colorpicker), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [TimeInput](#timeinput), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Alert](#alert), [Toast](#toast-1), [Popover](#popover), [Modal](#modal), [Drawer](#drawer), [Breadcrumb](#breadcrumb), [Accordion](#accordion), [TreeView](#treeview) and [Scenarios](#scenarios).
|
|
17827
18171
|
|
|
17828
18172
|
##### `FormFieldBoundary`
|
|
17829
18173
|
|
|
@@ -17844,7 +18188,7 @@ function FormFieldBoundary({ children }: {
|
|
|
17844
18188
|
[Stack and Grid](#stack-and-grid) – Children in a grid: a fixed number of columns, a list of column widths,
|
|
17845
18189
|
or as many columns as fit at `minItemWidth`.
|
|
17846
18190
|
|
|
17847
|
-
Used on [Theming](#theming), [Sizes](#sizes), [Language](#language), [Stack and Grid](#stack-and-grid), [Card](#card), [Splitter](#splitter), [Typography](#typography-2), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [Checkbox](#checkbox), [Switch](#switch), [RadioGroup](#radiogroup), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [TimeInput](#timeinput), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Modal](#modal), [Drawer](#drawer), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [TreeView](#treeview), [Stat](#stat), [Meter](#meter) and [Scenarios](#scenarios).
|
|
18191
|
+
Used on [Theming](#theming), [Sizes](#sizes), [Language](#language), [Stack and Grid](#stack-and-grid), [Card](#card), [Splitter](#splitter), [Typography](#typography-2), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [Checkbox](#checkbox), [Switch](#switch), [RadioGroup](#radiogroup), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [ColorPicker](#colorpicker), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [TimeInput](#timeinput), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Modal](#modal), [Drawer](#drawer), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [TreeView](#treeview), [Stat](#stat), [Meter](#meter) and [Scenarios](#scenarios).
|
|
17848
18192
|
|
|
17849
18193
|
##### `GridGlyph`
|
|
17850
18194
|
|
|
@@ -18097,7 +18441,7 @@ Used on [Splitter](#splitter) and [CommandPalette](#commandpalette).
|
|
|
18097
18441
|
[Stack and Grid](#stack-and-grid) – Children below or beside one another, spaced by a step of the spacing
|
|
18098
18442
|
scale.
|
|
18099
18443
|
|
|
18100
|
-
Used on [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Language](#language), [Stack and Grid](#stack-and-grid), [Divider](#divider), [Card](#card), [Splitter](#splitter), [Typography](#typography-2), [VisuallyHidden](#visuallyhidden), [Button](#button), [IconButton](#iconbutton), [ButtonGroup](#buttongroup), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [RangeSlider](#rangeslider), [Checkbox](#checkbox), [Switch](#switch), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [TimeInput](#timeinput), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Spinner](#spinner), [ProgressBar](#progressbar), [Skeleton](#skeleton), [Alert](#alert), [Toast](#toast-1), [EmptyState](#emptystate), [Tooltip](#tooltip), [Popover](#popover), [Menu](#menu), [ContextMenu](#contextmenu), [Modal](#modal), [Drawer](#drawer), [ConfirmDialog](#confirmdialog), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [Accordion](#accordion), [Stepper](#stepper), [TreeView](#treeview), [Avatar](#avatar), [Badge](#badge), [Tag](#tag), [Stat](#stat), [Meter](#meter), [Sparkline](#sparkline) and [Scenarios](#scenarios).
|
|
18444
|
+
Used on [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Language](#language), [Stack and Grid](#stack-and-grid), [Divider](#divider), [Card](#card), [Splitter](#splitter), [Typography](#typography-2), [VisuallyHidden](#visuallyhidden), [Button](#button), [IconButton](#iconbutton), [ButtonGroup](#buttongroup), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [RangeSlider](#rangeslider), [Checkbox](#checkbox), [Switch](#switch), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [ColorPicker](#colorpicker), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [TimeInput](#timeinput), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Spinner](#spinner), [ProgressBar](#progressbar), [Skeleton](#skeleton), [Alert](#alert), [Toast](#toast-1), [EmptyState](#emptystate), [Tooltip](#tooltip), [Popover](#popover), [Menu](#menu), [ContextMenu](#contextmenu), [Modal](#modal), [Drawer](#drawer), [ConfirmDialog](#confirmdialog), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [Accordion](#accordion), [Stepper](#stepper), [TreeView](#treeview), [Avatar](#avatar), [Badge](#badge), [Tag](#tag), [Stat](#stat), [Meter](#meter), [Sparkline](#sparkline) and [Scenarios](#scenarios).
|
|
18101
18445
|
|
|
18102
18446
|
##### `Stat`
|
|
18103
18447
|
|
|
@@ -18152,7 +18496,7 @@ Used on [CommandPalette](#commandpalette), [Tabs](#tabs) and [Scenarios](#scenar
|
|
|
18152
18496
|
|
|
18153
18497
|
[Tag](#tag) – A short label on content that the user can remove where you allow it (also called a chip). Reach for it for active filters, chosen values and assignments.
|
|
18154
18498
|
|
|
18155
|
-
Used on [Stack and Grid](#stack-and-grid), [EmptyState](#emptystate), [Tag](#tag) and [Scenarios](#scenarios).
|
|
18499
|
+
Used on [Stack and Grid](#stack-and-grid), [ColorPicker](#colorpicker), [EmptyState](#emptystate), [Tag](#tag) and [Scenarios](#scenarios).
|
|
18156
18500
|
|
|
18157
18501
|
##### `TagGroup`
|
|
18158
18502
|
|
|
@@ -18166,7 +18510,7 @@ Used on [EmptyState](#emptystate), [Tag](#tag) and [Scenarios](#scenarios).
|
|
|
18166
18510
|
[Typography](#typography-2) – Body text from the token set; `as` chooses the element, independent of the
|
|
18167
18511
|
size.
|
|
18168
18512
|
|
|
18169
|
-
Used on [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Language](#language), [Stack and Grid](#stack-and-grid), [Divider](#divider), [Card](#card), [Splitter](#splitter), [Typography](#typography-2), [VisuallyHidden](#visuallyhidden), [Button](#button), [IconButton](#iconbutton), [ButtonGroup](#buttongroup), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [RangeSlider](#rangeslider), [Checkbox](#checkbox), [Switch](#switch), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [TimeInput](#timeinput), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Spinner](#spinner), [ProgressBar](#progressbar), [Skeleton](#skeleton), [Toast](#toast-1), [EmptyState](#emptystate), [Tooltip](#tooltip), [Popover](#popover), [Menu](#menu), [ContextMenu](#contextmenu), [Modal](#modal), [Drawer](#drawer), [ConfirmDialog](#confirmdialog), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [Accordion](#accordion), [Stepper](#stepper), [TreeView](#treeview), [Benchmark](#benchmark), [Avatar](#avatar), [Badge](#badge), [Tag](#tag), [Stat](#stat), [Meter](#meter), [Sparkline](#sparkline) and [Scenarios](#scenarios).
|
|
18513
|
+
Used on [UmrissProvider](#umrissprovider), [Theming](#theming), [Sizes](#sizes), [Language](#language), [Stack and Grid](#stack-and-grid), [Divider](#divider), [Card](#card), [Splitter](#splitter), [Typography](#typography-2), [VisuallyHidden](#visuallyhidden), [Button](#button), [IconButton](#iconbutton), [ButtonGroup](#buttongroup), [Input](#input), [FormField](#formfield), [Textarea](#textarea), [NumberInput](#numberinput), [Slider](#slider), [RangeSlider](#rangeslider), [Checkbox](#checkbox), [Switch](#switch), [SegmentedControl](#segmentedcontrol), [FileInput](#fileinput), [Select](#select), [Combobox](#combobox), [MultiSelect](#multiselect), [ColorPicker](#colorpicker), [DatePicker](#datepicker), [DateTimePicker](#datetimepicker), [TimeInput](#timeinput), [DateRangePicker](#daterangepicker), [DateTimeRangePicker](#datetimerangepicker), [Spinner](#spinner), [ProgressBar](#progressbar), [Skeleton](#skeleton), [Toast](#toast-1), [EmptyState](#emptystate), [Tooltip](#tooltip), [Popover](#popover), [Menu](#menu), [ContextMenu](#contextmenu), [Modal](#modal), [Drawer](#drawer), [ConfirmDialog](#confirmdialog), [CommandPalette](#commandpalette), [Breadcrumb](#breadcrumb), [Tabs](#tabs), [Accordion](#accordion), [Stepper](#stepper), [TreeView](#treeview), [Benchmark](#benchmark), [Avatar](#avatar), [Badge](#badge), [Tag](#tag), [Stat](#stat), [Meter](#meter), [Sparkline](#sparkline) and [Scenarios](#scenarios).
|
|
18170
18514
|
|
|
18171
18515
|
##### `Textarea`
|
|
18172
18516
|
|
|
@@ -18539,6 +18883,19 @@ that during development.
|
|
|
18539
18883
|
function duplicateKey<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S | null;
|
|
18540
18884
|
```
|
|
18541
18885
|
|
|
18886
|
+
##### `formatDuration`
|
|
18887
|
+
|
|
18888
|
+
A span as hours and minutes from the wording's short units ("1 hr 30 min").
|
|
18889
|
+
The span is rounded to the whole minute, so 1 h 29 min 40 s reads as
|
|
18890
|
+
1 hr 30 min everywhere; a span of no minutes reads "0 min", a negative one
|
|
18891
|
+
as its size. With `days` the whole days lead and the hours stay below 24.
|
|
18892
|
+
|
|
18893
|
+
```ts
|
|
18894
|
+
function formatDuration(ms: number, wording: Wording, options?: {
|
|
18895
|
+
days?: boolean;
|
|
18896
|
+
}): string;
|
|
18897
|
+
```
|
|
18898
|
+
|
|
18542
18899
|
##### `formatsFor`
|
|
18543
18900
|
|
|
18544
18901
|
Every format of one locale, built once.
|
|
@@ -18619,8 +18976,8 @@ The scroll position at which a row is visible - or null where it already is.
|
|
|
18619
18976
|
This is the arithmetic the keyboard handling hangs on: without it the focus
|
|
18620
18977
|
moves into a row that is not rendered.
|
|
18621
18978
|
|
|
18622
|
-
The sticky header
|
|
18623
|
-
|
|
18979
|
+
The sticky header stands above row 0, so it pushes every row down by its
|
|
18980
|
+
height, and once scrolled it covers the upper edge of the viewport.
|
|
18624
18981
|
|
|
18625
18982
|
```ts
|
|
18626
18983
|
function scrollForRow(index: number, { rowHeight, scrollTop, viewportHeight, headerHeight }: RowPlacement): number | null;
|
|
@@ -18899,6 +19256,14 @@ Its table stands on [Card](#card).
|
|
|
18899
19256
|
|
|
18900
19257
|
Its table stands on [Checkbox](#checkbox).
|
|
18901
19258
|
|
|
19259
|
+
##### `ColorPickerProps`
|
|
19260
|
+
|
|
19261
|
+
Its table stands on [ColorPicker](#colorpicker).
|
|
19262
|
+
|
|
19263
|
+
##### `ColorSwatch`
|
|
19264
|
+
|
|
19265
|
+
Its table stands on [ColorPicker](#colorpicker).
|
|
19266
|
+
|
|
18902
19267
|
##### `ComboboxOption`
|
|
18903
19268
|
|
|
18904
19269
|
Its table stands on [Combobox](#combobox).
|
|
@@ -19349,6 +19714,16 @@ maximum fraction digits. An Intl digit option given beside it wins.
|
|
|
19349
19714
|
type NumberOptions = Intl.NumberFormatOptions & { decimals?: number };
|
|
19350
19715
|
```
|
|
19351
19716
|
|
|
19717
|
+
##### `PopoverCloseReason`
|
|
19718
|
+
|
|
19719
|
+
Why a popover asks to close: Escape, a click outside, a scroll
|
|
19720
|
+
(`hideOnScroll`), the anchor clipped away by a scrolling container, a Tab
|
|
19721
|
+
out of the panel (`closeOnTabOut`).
|
|
19722
|
+
|
|
19723
|
+
```ts
|
|
19724
|
+
type PopoverCloseReason = "escape" | "outside" | "scroll" | "clipped" | "tab";
|
|
19725
|
+
```
|
|
19726
|
+
|
|
19352
19727
|
##### `PopoverProps`
|
|
19353
19728
|
|
|
19354
19729
|
Its table stands on [Popover](#popover).
|
|
@@ -19449,7 +19824,7 @@ What `scrollForRow` needs to know about a scroll area.
|
|
|
19449
19824
|
| `rowHeight` *required* | `number` | — | |
|
|
19450
19825
|
| `scrollTop` *required* | `number` | — | |
|
|
19451
19826
|
| `viewportHeight` *required* | `number` | — | |
|
|
19452
|
-
| `headerHeight` | `number` | — | Height of the sticky header; it covers the upper edge. |
|
|
19827
|
+
| `headerHeight` | `number` | — | Height of the sticky header; it stands above row 0 and covers the upper edge. |
|
|
19453
19828
|
|
|
19454
19829
|
##### `RowWindow`
|
|
19455
19830
|
|
|
@@ -19767,11 +20142,6 @@ either uncontrolled (`default…`) or controlled with its `on…` handler.
|
|
|
19767
20142
|
|---|---|---|---|
|
|
19768
20143
|
| `onActivate` | `(node: K) => void` | — | Enter on a node, or a click on its label. |
|
|
19769
20144
|
| `onLoadChildren` | `(node: K) => void` | — | An unloaded branch has been expanded: now would be the moment to fetch its children. The tree fetches nothing – it is driven by nested data, and whoever adds to them sees it render anew. Concurrency, errors and cancellation thereby stay outside ([ADR-0005](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0005-what-cannot-be-checked.md)).<br>Shown in: [Load branches on demand (TreeView)](#treeview), [Search, check and reveal in a large tree (TreeView)](#treeview) |
|
|
19770
|
-
| `onExpanded` | `(next: ReadonlySet<S>) => void` | — | *Deprecated* since 0.53 - use `onExpandedChange`; it goes in the next minor release. The former name of `onExpandedChange`. |
|
|
19771
|
-
| `onChecked` | `(next: ReadonlySet<S>) => void` | — | *Deprecated* since 0.53 - use `onCheckedChange`; it goes in the next minor release. The former name of `onCheckedChange`. |
|
|
19772
|
-
| `onActive` | `(next: S \| null) => void` | — | *Deprecated* since 0.53 - use `onActiveChange`; it goes in the next minor release. The former name of `onActiveChange`. |
|
|
19773
|
-
| `onAnchor` | `(next: S \| null) => void` | — | *Deprecated* since 0.53 - use `onAnchorChange`; it goes in the next minor release. The former name of `onAnchorChange`. |
|
|
19774
|
-
| `onSearch` | `(text: string) => void` | — | *Deprecated* since 0.53 - use `onSearchChange`; it goes in the next minor release. The former name of `onSearchChange`. |
|
|
19775
20145
|
|
|
19776
20146
|
##### `TreeSearchProps`
|
|
19777
20147
|
|
|
@@ -19927,6 +20297,29 @@ Everything the library puts out as text.
|
|
|
19927
20297
|
| `dateRangeClear` *required* | `string` | — | |
|
|
19928
20298
|
| `dateTimeRangePanel` *required* | `string` | — | Accessible name of the panel in the range with time of day. |
|
|
19929
20299
|
| `dateTimeRangeClear` *required* | `string` | — | The clearing x of the range with time - kept apart from the range without, so that an application can call the two differently. |
|
|
20300
|
+
| `colorPlaceholder` *required* | `string` | — | |
|
|
20301
|
+
| `colorTrigger` *required* | `(hex: string \| null) => string` | — | The name of the ColorPicker trigger where nothing else names it: the colour as hex, or `null` for none. |
|
|
20302
|
+
| `colorPanel` *required* | `string` | — | Accessible name of the ColorPicker panel, where its field names it no other way. |
|
|
20303
|
+
| `colorHex` *required* | `string` | — | The name and the visible label of the hex field. |
|
|
20304
|
+
| `colorBefore` *required* | `string` | — | |
|
|
20305
|
+
| `colorAfter` *required* | `string` | — | |
|
|
20306
|
+
| `colorNone` *required* | `string` | — | Stands for no colour in the strip that compares the colour the panel opened with and the colour now. |
|
|
20307
|
+
| `colorBeforeAfter` *required* | `(before: string, after: string) => string` | — | The strip as one sentence, for a screen reader. |
|
|
20308
|
+
| `colorDone` *required* | `string` | — | |
|
|
20309
|
+
| `colorSwatches` *required* | `string` | — | Name of the row of the application's own colours. |
|
|
20310
|
+
| `colorSurfaceLight` *required* | `string` | — | The name of core's light surface in the contrast readout. |
|
|
20311
|
+
| `colorSurfaceDark` *required* | `string` | — | The name of core's dark surface in the contrast readout. |
|
|
20312
|
+
| `colorPass` *required* | `string` | — | The verdict of the contrast readout at 3:1 and above, and below it; words, so that the colour is not the only sign. |
|
|
20313
|
+
| `colorFail` *required* | `string` | — | |
|
|
20314
|
+
| `colorRed` *required* | `string` | — | Names of the red, green and blue fields of the ColorPicker panel. |
|
|
20315
|
+
| `colorGreen` *required* | `string` | — | |
|
|
20316
|
+
| `colorBlue` *required* | `string` | — | |
|
|
20317
|
+
| `colorEyedropper` *required* | `string` | — | The button that picks a colour from the screen. |
|
|
20318
|
+
| `colorSquare` *required* | `string` | — | Names of the square and the hue strip, the square's role description, and what they say as value. |
|
|
20319
|
+
| `colorSquareRole` *required* | `string` | — | |
|
|
20320
|
+
| `colorSquareValue` *required* | `(saturation: number, brightness: number) => string` | — | |
|
|
20321
|
+
| `colorHue` *required* | `string` | — | |
|
|
20322
|
+
| `colorHueValue` *required* | `(degrees: number) => string` | — | |
|
|
19930
20323
|
| `previousMonth` *required* | `string` | — | |
|
|
19931
20324
|
| `nextMonth` *required* | `string` | — | |
|
|
19932
20325
|
| `monthSelect` *required* | `string` | — | Name of the calendar head's month list. |
|