@umriss-ui/core 0.53.0 → 0.54.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/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/core 0.53.0
1
+ # @umriss-ui/core 0.54.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.53.0/docs/adr/0032-what-umriss-is-not.md).
56
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.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.53.0/docs/adr/0032-what-umriss-is-not.md).
267
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
268
268
 
269
269
  ## Customising
270
270
 
@@ -820,7 +820,7 @@ From `StatProps` — the full table stands on [Stat](#stat).
820
820
  - 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
821
  - 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
822
 
823
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
823
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
824
824
 
825
825
  ### Sizes
826
826
 
@@ -1238,7 +1238,7 @@ type ControlSize = "sm" | "md";
1238
1238
  - 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
1239
  - 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
1240
 
1241
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
1241
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
1242
1242
 
1243
1243
  ### Language
1244
1244
 
@@ -2577,10 +2577,10 @@ Everything the library puts out as text.
2577
2577
 
2578
2578
  #### Known limits
2579
2579
 
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.53.0/docs/adr/0032-what-umriss-is-not.md)).
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.54.0/docs/adr/0032-what-umriss-is-not.md)).
2581
2581
  - It holds only what the components say themselves; your labels, titles and data are yours to translate.
2582
2582
 
2583
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
2583
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
2584
2584
 
2585
2585
  ## Layout
2586
2586
 
@@ -2927,7 +2927,7 @@ type GridColumnWidth = number | "fill";
2927
2927
  - No breakpoints and no responsive props: a grid follows the width through `minItemWidth`, anything else is your stylesheet's.
2928
2928
  - 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
2929
 
2930
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
2930
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
2931
2931
 
2932
2932
  ### Divider
2933
2933
 
@@ -3740,12 +3740,6 @@ export default function ThreePanes() {
3740
3740
  | `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
3741
  | `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
3742
 
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
3743
  Also takes every attribute of `<div>` – without `children`, `defaultValue`, `onChange`.
3750
3744
 
3751
3745
  #### Known limits
@@ -3753,7 +3747,7 @@ Also takes every attribute of `<div>` – without `children`, `defaultValue`, `o
3753
3747
  - 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
3748
  - It does not remember the share beyond its own life; keep it in the user's settings through `value` and `onChange`.
3755
3749
 
3756
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
3750
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
3757
3751
 
3758
3752
  ## Typography
3759
3753
 
@@ -4189,10 +4183,10 @@ type TextLeading = "normal" | "tight";
4189
4183
  #### Known limits
4190
4184
 
4191
4185
  - 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.53.0/docs/adr/0032-what-umriss-is-not.md)).
4186
+ - No prose styles for lists, quotes or rich text ([ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md)).
4193
4187
  - `Link` renders a plain `a` and knows no router; pass it the address your router resolves.
4194
4188
 
4195
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
4189
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
4196
4190
 
4197
4191
  ### VisuallyHidden
4198
4192
 
@@ -4316,7 +4310,7 @@ Also takes every attribute of the chosen element – without `as`, `ref`.
4316
4310
 
4317
4311
  - It hides from the eye only; to hide something from everyone, do not render it.
4318
4312
 
4319
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
4313
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
4320
4314
 
4321
4315
  ## Actions
4322
4316
 
@@ -4645,7 +4639,7 @@ type ControlSize = "sm" | "md";
4645
4639
  - The label stays on one line; keep it short rather than let it wrap.
4646
4640
  - No icon slot: an icon goes among the children, before the label, and the button sets its size.
4647
4641
 
4648
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
4642
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
4649
4643
 
4650
4644
  ### IconButton
4651
4645
 
@@ -5002,7 +4996,7 @@ type ControlSize = "sm" | "md";
5002
4996
  - The tooltip always shows the name; a hint that says more than the name is a `Tooltip` around a `Button`.
5003
4997
  - A touch screen shows no tooltip: choose icons whose meaning is common, or a `Button` with a label.
5004
4998
 
5005
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
4999
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
5006
5000
 
5007
5001
  ### ButtonGroup
5008
5002
 
@@ -5362,7 +5356,7 @@ type ControlSize = "sm" | "md";
5362
5356
 
5363
5357
  - No toggle or segmented state; a choice that stays is a radio group.
5364
5358
 
5365
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
5359
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
5366
5360
 
5367
5361
  ## Forms
5368
5362
 
@@ -5719,7 +5713,7 @@ Also takes every attribute of `<input>` – without `size`, `value`.
5719
5713
  - No input masks or formatting while typing; check the value on leave or on submit.
5720
5714
  - No validation of its own: the error is the application's, handed to the `FormField`.
5721
5715
 
5722
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
5716
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
5723
5717
 
5724
5718
  ### FormField
5725
5719
 
@@ -6045,7 +6039,7 @@ Also takes every attribute of `<div>`.
6045
6039
  - 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
6040
  - One field per `FormField`; a group of fields that share one label is a fieldset of your own.
6047
6041
 
6048
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
6042
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
6049
6043
 
6050
6044
  ### Textarea
6051
6045
 
@@ -6235,7 +6229,7 @@ Also takes every attribute of `<textarea>` – without `cols`, `value`.
6235
6229
 
6236
6230
  - Plain text only: no formatting, mentions or rich text.
6237
6231
 
6238
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
6232
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
6239
6233
 
6240
6234
  ### NumberInput
6241
6235
 
@@ -6495,7 +6489,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `name`, `onC
6495
6489
  - No expressions: “12*4” is not calculated.
6496
6490
  - No currency conversion; the unit is a label.
6497
6491
 
6498
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
6492
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
6499
6493
 
6500
6494
  ### Slider
6501
6495
 
@@ -6684,7 +6678,7 @@ type SliderMark = number | { value: number; label?: ReactNode };
6684
6678
  - One thumb: a range with two ends is the RangeSlider.
6685
6679
  - Marks show values; they do not catch the thumb.
6686
6680
 
6687
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
6681
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
6688
6682
 
6689
6683
  ### RangeSlider
6690
6684
 
@@ -6825,7 +6819,7 @@ type RangeSliderValue = readonly [from: number, to: number];
6825
6819
  - No marks on the track; use the Slider's where marks are needed.
6826
6820
  - The ends may meet; no minimum gap between them is kept.
6827
6821
 
6828
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
6822
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
6829
6823
 
6830
6824
  ### Checkbox
6831
6825
 
@@ -7198,7 +7192,7 @@ Also takes every attribute of `<input>` – without `role`, `size`, `type`.
7198
7192
 
7199
7193
  - No pending or loading state; while your application applies the change, disable the switch or say so beside it.
7200
7194
 
7201
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
7195
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
7202
7196
 
7203
7197
  ### RadioGroup
7204
7198
 
@@ -7652,7 +7646,7 @@ Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
7652
7646
  - Two to four short possibilities: a word that does not fit its place ends in an ellipsis.
7653
7647
  - No icons and no line of explanation in a segment; several chosen at once is not this control.
7654
7648
 
7655
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
7649
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
7656
7650
 
7657
7651
  ### FileInput
7658
7652
 
@@ -7993,7 +7987,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`,
7993
7987
 
7994
7988
  - No upload, no progress and no size limit of its own; those belong to the application sending the files.
7995
7989
 
7996
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
7990
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
7997
7991
 
7998
7992
  ## Choosing
7999
7993
 
@@ -8192,7 +8186,7 @@ Also takes every attribute of `<select>` – without `defaultValue`, `size`, `va
8192
8186
 
8193
8187
  - The list shows the options' text: no icons, descriptions or search inside it - the Combobox searches.
8194
8188
 
8195
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
8189
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
8196
8190
 
8197
8191
  ### Combobox
8198
8192
 
@@ -8614,7 +8608,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `onChange`.
8614
8608
  - Only an option can be chosen, unless `creatable` takes typed text as the value (string values only).
8615
8609
  - No request of its own: `onSearch` reports the typed text and you fetch, debounce and cancel; `filter={false}` shows what you return.
8616
8610
 
8617
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
8611
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
8618
8612
 
8619
8613
  ### MultiSelect
8620
8614
 
@@ -9118,7 +9112,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
9118
9112
  - No typing of a date into the field.
9119
9113
  - 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
9114
 
9121
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
9115
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
9122
9116
 
9123
9117
  ### DateTimePicker
9124
9118
 
@@ -9288,7 +9282,7 @@ Also takes every attribute of `<button>` – without `defaultValue`, `onChange`.
9288
9282
 
9289
9283
  - 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
9284
 
9291
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
9285
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
9292
9286
 
9293
9287
  ### TimeInput
9294
9288
 
@@ -9406,7 +9400,7 @@ Also takes every attribute of `<input>` – without `defaultValue`, `max`, `min`
9406
9400
 
9407
9401
  - No 12-hour clock and no time zone: a time of day is the text it is written as.
9408
9402
 
9409
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
9403
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
9410
9404
 
9411
9405
  ### DateRangePicker
9412
9406
 
@@ -9649,7 +9643,7 @@ the moment of the click.
9649
9643
 
9650
9644
  - One span; no list of separate days.
9651
9645
 
9652
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
9646
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
9653
9647
 
9654
9648
  ### DateTimeRangePicker
9655
9649
 
@@ -9865,7 +9859,7 @@ the moment of the click.
9865
9859
  - 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
9860
  - No recurring windows.
9867
9861
 
9868
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
9862
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
9869
9863
 
9870
9864
  ## Feedback
9871
9865
 
@@ -10015,7 +10009,7 @@ Also takes every attribute of `<svg>`.
10015
10009
 
10016
10010
  - One shape and no figure: for how far a job has come, use a [ProgressBar](#progressbar).
10017
10011
 
10018
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
10012
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
10019
10013
 
10020
10014
  ### ProgressBar
10021
10015
 
@@ -10198,7 +10192,7 @@ Also takes every attribute of `<div>`.
10198
10192
 
10199
10193
  - No colour of verdict and no steps of its own; for a job in steps, stack one bar per step.
10200
10194
 
10201
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
10195
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
10202
10196
 
10203
10197
  ### Skeleton
10204
10198
 
@@ -10355,7 +10349,7 @@ Also takes every attribute of `<span>`.
10355
10349
 
10356
10350
  - It draws a shape and nothing else; the rows, cards and layout it stands in for are yours.
10357
10351
 
10358
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
10352
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
10359
10353
 
10360
10354
  ### Alert
10361
10355
 
@@ -10573,7 +10567,7 @@ type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
10573
10567
  - No timer: an alert stays until you remove it. A message that goes by itself is a toast.
10574
10568
  - No stack or queue of messages; place each alert where its matter is.
10575
10569
 
10576
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
10570
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
10577
10571
 
10578
10572
  ### Toast
10579
10573
 
@@ -11131,7 +11125,7 @@ type ToastCloseReason = "timeout" | "dismiss" | "action";
11131
11125
  - 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
11126
  - 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
11127
 
11134
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
11128
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
11135
11129
 
11136
11130
  ### EmptyState
11137
11131
 
@@ -11439,7 +11433,7 @@ export default function ACalculation() {
11439
11433
  - No interactive content and no rich layout inside: it is read, never used.
11440
11434
  - No placement option: it stands above its element and flips below where there is no room.
11441
11435
 
11442
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
11436
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
11443
11437
 
11444
11438
  ### Popover
11445
11439
 
@@ -11741,7 +11735,7 @@ type Align = "start" | "end" | "center";
11741
11735
  - 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
11736
  - It does not trap focus; a surface the user must answer is a [Modal](#modal).
11743
11737
 
11744
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
11738
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
11745
11739
 
11746
11740
  ### Menu
11747
11741
 
@@ -11978,7 +11972,7 @@ Also takes every attribute of `<button>` – without `onSelect`.
11978
11972
 
11979
11973
  - No submenus, no checkable entries and no type-ahead.
11980
11974
 
11981
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
11975
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
11982
11976
 
11983
11977
  ### ContextMenu
11984
11978
 
@@ -12195,7 +12189,7 @@ export default function OnARow() {
12195
12189
  - It listens to no right-click itself: the element and the point are yours, through the hook.
12196
12190
  - No submenus, no checkable entries and no type-ahead, as in the menu.
12197
12191
 
12198
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
12192
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
12199
12193
 
12200
12194
  ### Modal
12201
12195
 
@@ -12652,7 +12646,7 @@ type ModalSize = "sm" | "md" | "lg";
12652
12646
 
12653
12647
  - No non-modal window and no dragging or resizing: a panel that leaves the page usable is layout – a [Splitter](#splitter).
12654
12648
 
12655
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
12649
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
12656
12650
 
12657
12651
  ### Drawer
12658
12652
 
@@ -13085,7 +13079,7 @@ Also takes every attribute of `<dialog>` – without `onClose`.
13085
13079
  - Modal on purpose, with no non-modal mode: a panel beside a page the user keeps working in is layout, not an overlay.
13086
13080
  - Only the left and right edges; nothing slides in from the top or bottom.
13087
13081
 
13088
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
13082
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
13089
13083
 
13090
13084
  ### ConfirmDialog
13091
13085
 
@@ -13262,7 +13256,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
13262
13256
 
13263
13257
  - A title, a description and two buttons, nothing more: fields belong in a [Modal](#modal).
13264
13258
 
13265
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
13259
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
13266
13260
 
13267
13261
  ### CommandPalette
13268
13262
 
@@ -13564,7 +13558,7 @@ Also takes every attribute of `<dialog>` – without `children`, `onClose`, `ope
13564
13558
  - No memory of past choices and no ranking of its own beyond the match: recency and frequency are weights you keep.
13565
13559
  - No nested steps or arguments: a command that needs input opens your own form after it is chosen.
13566
13560
 
13567
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
13561
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
13568
13562
 
13569
13563
  ## Navigation
13570
13564
 
@@ -13884,7 +13878,7 @@ Also takes every attribute of the rendered element.
13884
13878
 
13885
13879
  - It neither routes nor reads the address: the trail is what you pass.
13886
13880
 
13887
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
13881
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
13888
13882
 
13889
13883
  ### Tabs
13890
13884
 
@@ -14225,12 +14219,6 @@ export default function MoreTabsThanRoom() {
14225
14219
  | `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
14220
  | `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
14221
 
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
14222
  Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
14235
14223
 
14236
14224
  ##### `TabProps`
@@ -14255,7 +14243,7 @@ Also takes every attribute of `<div>`.
14255
14243
 
14256
14244
  - More tabs than fit scroll sideways within the list; there is no overflow menu, and no closing or reordering of tabs.
14257
14245
 
14258
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
14246
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
14259
14247
 
14260
14248
  ### Accordion
14261
14249
 
@@ -14482,12 +14470,6 @@ export default function LongSettingsInSections() {
14482
14470
  | `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
14471
  | `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
14472
 
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
14473
  Also takes every attribute of `<div>` – without `defaultValue`, `onChange`.
14492
14474
 
14493
14475
  ##### `AccordionItemProps`
@@ -14505,7 +14487,7 @@ Also takes every attribute of `<div>` – without `title`.
14505
14487
 
14506
14488
  - A folded section's content stays rendered; for heavy content, render it only while its section is open.
14507
14489
 
14508
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
14490
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
14509
14491
 
14510
14492
  ### Stepper
14511
14493
 
@@ -14738,7 +14720,7 @@ Also takes every attribute of the rendered element.
14738
14720
  - 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
14721
  - No branching or optional steps; pass the steps that apply.
14740
14722
 
14741
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
14723
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
14742
14724
 
14743
14725
  ### TreeView
14744
14726
 
@@ -15419,7 +15401,7 @@ to render and the heights of the filler rows around it.
15419
15401
  - No dragging nodes to rearrange them.
15420
15402
  - 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
15403
 
15422
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
15404
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
15423
15405
 
15424
15406
  ### Benchmark
15425
15407
 
@@ -15829,7 +15811,7 @@ type AvatarSize = "sm" | "md";
15829
15811
 
15830
15812
  - No stack of avatars and no presence dot.
15831
15813
 
15832
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
15814
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
15833
15815
 
15834
15816
  ### Badge
15835
15817
 
@@ -16019,7 +16001,7 @@ type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
16019
16001
  - It cannot be clicked or removed; a label the user acts on is a [Tag](#tag).
16020
16002
  - It counts nothing itself: capping at “99+” is yours.
16021
16003
 
16022
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
16004
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
16023
16005
 
16024
16006
  ### Tag
16025
16007
 
@@ -16286,7 +16268,7 @@ type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
16286
16268
  - No field for typing new tags: a tag input is a [MultiSelect](#multiselect).
16287
16269
  - Tags are not toggles: a set of choices to switch on and off is a group of [Checkbox](#checkbox) or a [ButtonGroup](#buttongroup).
16288
16270
 
16289
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
16271
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
16290
16272
 
16291
16273
  ### Stat
16292
16274
 
@@ -17175,7 +17157,7 @@ type Severity = "warning" | "alarm";
17175
17157
  - No trend arrow: a direction from two noisy points is read as information it does not carry; the history line shows the shape.
17176
17158
  - It fetches and polls nothing: freshness is judged from the `asOf` you give it.
17177
17159
 
17178
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
17160
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
17179
17161
 
17180
17162
  ### Meter
17181
17163
 
@@ -17345,7 +17327,7 @@ type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
17345
17327
 
17346
17328
  - No limit marks, target tick or scale on the bar; for a value against limits use a [Stat](#stat).
17347
17329
 
17348
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
17330
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
17349
17331
 
17350
17332
  ### Sparkline
17351
17333
 
@@ -17603,7 +17585,7 @@ Also takes every attribute of `<span>`.
17603
17585
 
17604
17586
  - No axes, labels, tooltip or points to hover: the value stands beside it.
17605
17587
 
17606
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.53.0/docs/adr/0032-what-umriss-is-not.md).
17588
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/core-v0.54.0/docs/adr/0032-what-umriss-is-not.md).
17607
17589
 
17608
17590
  ## API index
17609
17591
 
@@ -18539,6 +18521,19 @@ that during development.
18539
18521
  function duplicateKey<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S | null;
18540
18522
  ```
18541
18523
 
18524
+ ##### `formatDuration`
18525
+
18526
+ A span as hours and minutes from the wording's short units ("1 hr 30 min").
18527
+ The span is rounded to the whole minute, so 1 h 29 min 40 s reads as
18528
+ 1 hr 30 min everywhere; a span of no minutes reads "0 min", a negative one
18529
+ as its size. With `days` the whole days lead and the hours stay below 24.
18530
+
18531
+ ```ts
18532
+ function formatDuration(ms: number, wording: Wording, options?: {
18533
+ days?: boolean;
18534
+ }): string;
18535
+ ```
18536
+
18542
18537
  ##### `formatsFor`
18543
18538
 
18544
18539
  Every format of one locale, built once.
@@ -18619,8 +18614,8 @@ The scroll position at which a row is visible - or null where it already is.
18619
18614
  This is the arithmetic the keyboard handling hangs on: without it the focus
18620
18615
  moves into a row that is not rendered.
18621
18616
 
18622
- The sticky header counts against the upper edge: a row standing exactly at
18623
- `scrollTop` lies behind it.
18617
+ The sticky header stands above row 0, so it pushes every row down by its
18618
+ height, and once scrolled it covers the upper edge of the viewport.
18624
18619
 
18625
18620
  ```ts
18626
18621
  function scrollForRow(index: number, { rowHeight, scrollTop, viewportHeight, headerHeight }: RowPlacement): number | null;
@@ -19449,7 +19444,7 @@ What `scrollForRow` needs to know about a scroll area.
19449
19444
  | `rowHeight` *required* | `number` | — | |
19450
19445
  | `scrollTop` *required* | `number` | — | |
19451
19446
  | `viewportHeight` *required* | `number` | — | |
19452
- | `headerHeight` | `number` | — | Height of the sticky header; it covers the upper edge. |
19447
+ | `headerHeight` | `number` | — | Height of the sticky header; it stands above row 0 and covers the upper edge. |
19453
19448
 
19454
19449
  ##### `RowWindow`
19455
19450
 
@@ -19767,11 +19762,6 @@ either uncontrolled (`default…`) or controlled with its `on…` handler.
19767
19762
  |---|---|---|---|
19768
19763
  | `onActivate` | `(node: K) => void` | — | Enter on a node, or a click on its label. |
19769
19764
  | `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
19765
 
19776
19766
  ##### `TreeSearchProps`
19777
19767
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/core",
3
- "version": "0.53.0",
3
+ "version": "0.54.0",
4
4
  "description": "React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.",
5
5
  "license": "MIT",
6
6
  "author": "Roman Händler",