@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/API.md CHANGED
@@ -119,6 +119,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
119
119
  - cadence — The cadence at which a display has to re-judge itself, in milliseconds - derived from the ages, not from a fixed second.
120
120
  - createLongPress — The one long-press detector, a plain function over pointer events so that code outside React can use it.
121
121
  - duplicateKey — The first key that occurs twice, otherwise null.
122
+ - formatDuration — A span as hours and minutes from the wording's short units ("1 hr 30 min").
122
123
  - formatsFor — Every format of one locale, built once.
123
124
  - freshness — The freshness of a value: its as-of time, measured against a reference time, placed against the two ages.
124
125
  - hasWarned — Whether `warnOnce` has already spoken for this package and reason.
@@ -279,7 +280,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
279
280
  - ToastTone — How the message turns out; `loading` is a toast still at work.
280
281
  - TooltipProps — The props of `Tooltip`.
281
282
  - Tree — What `useTree` returns: the visible nodes and the gestures on them. [flattening, active, search, toggleExpanded, toggleCheck, activate, move, setSearch, revealNode, revealPath, expandAll, collapseAll, typeahead, checkTo, moveAndCheck, toggleAll, revealCount, virtual]
282
- - TreeOptions — The options of `useTree`: how a node is read, and each of its values either uncontrolled (`default…`) or controlled with its `on…` handler. [reader, defaultExpanded, defaultChecked, defaultActive, defaultSearch, expanded, checked, active, anchor, search, onExpandedChange, onCheckedChange, onActiveChange, onAnchorChange, onSearchChange, onExpanded, onChecked, onActive, onAnchor, onSearch, onActivate, onLoadChildren, virtual]
283
+ - TreeOptions — The options of `useTree`: how a node is read, and each of its values either uncontrolled (`default…`) or controlled with its `on…` handler. [reader, defaultExpanded, defaultChecked, defaultActive, defaultSearch, expanded, checked, active, anchor, search, onExpandedChange, onCheckedChange, onActiveChange, onAnchorChange, onSearchChange, onActivate, onLoadChildren, virtual]
283
284
  - TreeSearchProps — The props of `TreeSearch`: an `Input`'s, with the tree in place of `value` and `onChange`.
284
285
  - TreeSnapshot — The whole state of a tree, as plain values: the open branches, the checked nodes, the active node, the anchor and the search text. [expanded, checked, active, anchor, search]
285
286
  - TreeViewProps — The props of `TreeView`.
@@ -309,7 +310,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
309
310
  - value?: readonly string[] — Controlled: the values of the open sections.
310
311
  - defaultValue?: readonly string[] — Uncontrolled: the sections open at the start. (default: [])
311
312
  - onValueChange?: (value: string[]) => void — Reports the open sections after a header's click.
312
- - onChange?: (value: string[]) => void — The former name of `onValueChange`. (deprecated)
313
313
  - headingLevel?: 2 | 3 | 4 | 5 | 6 — The level of the heading each header stands in - the one that fits the page's outline. (default: 3)
314
314
  - ref?: Ref<HTMLDivElement> | undefined — Receives the component's root element.
315
315
 
@@ -1015,7 +1015,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
1015
1015
  - value?: number — Controlled: the first pane's share of the room, in per cent.
1016
1016
  - defaultValue?: number — Uncontrolled: the share to start at. (default: 50)
1017
1017
  - onValueChange?: (value: number) => void — Reports every move, by pointer or key, as the first pane's share.
1018
- - onChange?: (value: number) => void — The former name of `onValueChange`. (deprecated)
1019
1018
  - min?: number — The smallest share of the first pane, and where Enter collapses it to. (default: 0)
1020
1019
  - max?: number — The largest share of the first pane. (default: 100)
1021
1020
  - step?: number — How far an arrow key moves the separator, in per cent. (default: 5)
@@ -1095,7 +1094,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
1095
1094
  - value?: string — The value of the visible tab.
1096
1095
  - defaultValue?: string — Uncontrolled: the tab that stands first.
1097
1096
  - onValueChange?: (value: string) => void — Receives the value of the chosen tab.
1098
- - onChange?: (value: string) => void — The former name of `onValueChange`. (deprecated)
1099
1097
  - ref?: Ref<HTMLDivElement> | undefined — Receives the component's root element.
1100
1098
 
1101
1099
  ### Tag
@@ -1350,11 +1348,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
1350
1348
  - onActiveChange?: (next: S | null) => void
1351
1349
  - onAnchorChange?: (next: S | null) => void
1352
1350
  - onSearchChange?: (text: string) => void
1353
- - onExpanded?: (next: ReadonlySet<S>) => void — The former name of `onExpandedChange`. (deprecated)
1354
- - onChecked?: (next: ReadonlySet<S>) => void — The former name of `onCheckedChange`. (deprecated)
1355
- - onActive?: (next: S | null) => void — The former name of `onActiveChange`. (deprecated)
1356
- - onAnchor?: (next: S | null) => void — The former name of `onAnchorChange`. (deprecated)
1357
- - onSearch?: (text: string) => void — The former name of `onSearchChange`. (deprecated)
1358
1351
  - onActivate?: (node: K) => void — Enter on a node, or a click on its label.
1359
1352
  - onLoadChildren?: (node: K) => void — An unloaded branch has been expanded: now would be the moment to fetch its children.
1360
1353
  - virtual?: VirtualOptions — Render only what stands in the scroll area.
package/CHANGELOG.md CHANGED
@@ -27,6 +27,27 @@ package stood at `0.1.0` the whole time, because it had exactly one caller and t
27
27
  caller lay in the same repository — and are grouped by unit of delivery, not by
28
28
  commit.
29
29
 
30
+ ## 0.54.0 – The old callback names go; a duration formatter, a calmer MultiSelect and search, a TreeView that types like Select (Nov. 2026)
31
+
32
+ ### Added
33
+
34
+ - **`formatDuration(ms, wording, { days? })`** renders a span as hours and minutes from the wording's short units, rounded to the whole minute; the alarm list, the schedule tooltip and the date-time range picker share it.
35
+
36
+ ### Changed
37
+
38
+ - **The old callback names are removed**, as 0.53.0 announced: `onChange` of Tabs, Accordion and Splitter, and `onExpanded`, `onChecked`, `onActive`, `onAnchor` and `onSearch` of useTree, with their development warnings (ADR-0081).
39
+ - Migration: Tabs, Accordion, Splitter: `onChange` -> `onValueChange`; useTree: `onExpanded` -> `onExpandedChange`, `onChecked` -> `onCheckedChange`, `onActive` -> `onActiveChange`, `onAnchor` -> `onAnchorChange`, `onSearch` -> `onSearchChange`.
40
+ - **TreeView typeahead follows Select and Menu:** typing the same letter again moves on to the next node that begins with it; different letters narrow the prefix from the active node.
41
+ - Migration: typing "p" twice used to search the prefix "pp" and stay put; it now moves to the next node beginning with "p". Nothing to change unless you relied on the old stay-put behaviour.
42
+
43
+ ### Fixed
44
+
45
+ - **A MultiSelect with thousands of chosen values** no longer stalls when toggling, selecting all or searching, and one whose selection exactly fills the field shows every chip instead of one and a counter.
46
+ - **Typing into a Combobox or MultiSelect with thousands of options** answers each key without lag; a TreeView search ignores accents and case, so "kuhlung" finds "Kühlung".
47
+ - **Link and Breadcrumb rendered on a server** (Next.js, prerendering) keep their `href` and no longer warn about an unsafe scheme.
48
+ - **A toast with `duration: Infinity`** stays until dismissed, as `0` does, instead of vanishing at once.
49
+ - **Ctrl/Cmd+K opens the CommandPalette** on Russian, Greek and Hebrew layouts.
50
+
30
51
  ## 0.53.0 – The old names go: a field reports only through `onValueChange`; Tabs, Accordion, Splitter and the tree name their callback too (Nov. 2026)
31
52
 
32
53
  ### Added