@umriss-ui/core 0.52.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 +12 -21
- package/CHANGELOG.md +34 -0
- package/dist/core.js +3361 -3356
- package/dist/index.d.ts +38 -33
- package/docs/llms-full.md +94 -156
- package/package.json +1 -1
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, expanded, checked, active, anchor, search,
|
|
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`.
|
|
@@ -308,7 +309,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
308
309
|
- type?: "single" | "multiple" — `single` keeps at most one section open, `multiple` any number. (default: "single")
|
|
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
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)
|
|
313
314
|
- ref?: Ref<HTMLDivElement> | undefined — Receives the component's root element.
|
|
314
315
|
|
|
@@ -455,7 +456,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
455
456
|
- ref?: Ref<HTMLInputElement> | undefined — Receives the component's root element.
|
|
456
457
|
- name?: string — Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`.
|
|
457
458
|
- formValue?: (value: T) => string — Replaces the default text a value is posted as.
|
|
458
|
-
- onChange?: (value: T | null) => void — The former name of `onValueChange`. (deprecated)
|
|
459
459
|
|
|
460
460
|
### CommandPalette
|
|
461
461
|
|
|
@@ -526,7 +526,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
526
526
|
- ref?: Ref<HTMLButtonElement> | undefined — Receives the component's root element.
|
|
527
527
|
- name?: string — Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`.
|
|
528
528
|
- formValue?: (value: Date) => string — Replaces the default text a value is posted as.
|
|
529
|
-
- onChange?: (date: Date | null) => void — The former name of `onValueChange`. (deprecated)
|
|
530
529
|
|
|
531
530
|
### DateRangePicker
|
|
532
531
|
|
|
@@ -549,7 +548,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
549
548
|
- endName?: string — The name the end is posted under. (default: `${name}End`)
|
|
550
549
|
- name?: string — Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`.
|
|
551
550
|
- formValue?: (value: Date) => string — Replaces the default text a value is posted as.
|
|
552
|
-
- onChange?: (range: DateRange | null) => void — The former name of `onValueChange`. (deprecated)
|
|
553
551
|
|
|
554
552
|
### DateTimePicker
|
|
555
553
|
|
|
@@ -570,7 +568,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
570
568
|
- ref?: Ref<HTMLButtonElement> | undefined — Receives the component's root element.
|
|
571
569
|
- name?: string — Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`.
|
|
572
570
|
- formValue?: (value: Date) => string — Replaces the default text a value is posted as.
|
|
573
|
-
- onChange?: (date: Date | null) => void — The former name of `onValueChange`. (deprecated)
|
|
574
571
|
|
|
575
572
|
### DateTimeRangePicker
|
|
576
573
|
|
|
@@ -594,7 +591,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
594
591
|
- endName?: string — The name the end is posted under. (default: `${name}End`)
|
|
595
592
|
- name?: string — Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`.
|
|
596
593
|
- formValue?: (value: Date) => string — Replaces the default text a value is posted as.
|
|
597
|
-
- onChange?: (range: DateRange | null) => void — The former name of `onValueChange`. (deprecated)
|
|
598
594
|
|
|
599
595
|
### Divider
|
|
600
596
|
|
|
@@ -641,7 +637,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
641
637
|
- onValueChange?: (files: File[]) => void — Reports the files after a choice, a drop or a removal - only those `accept` takes, and one where the input takes one.
|
|
642
638
|
- invalid?: boolean — Marks the input as invalid.
|
|
643
639
|
- ref?: Ref<HTMLInputElement> | undefined — Receives the component's root element.
|
|
644
|
-
- onChange?: (files: File[]) => void — The former name of `onValueChange`. (deprecated)
|
|
645
640
|
|
|
646
641
|
### FormField
|
|
647
642
|
|
|
@@ -835,7 +830,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
835
830
|
- ref?: Ref<HTMLButtonElement> | undefined — Receives the component's root element.
|
|
836
831
|
- name?: string — Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`.
|
|
837
832
|
- formValue?: (value: T) => string — Replaces the default text a value is posted as.
|
|
838
|
-
- onChange?: (value: T[]) => void — The former name of `onValueChange`. (deprecated)
|
|
839
833
|
|
|
840
834
|
### NumberInput
|
|
841
835
|
|
|
@@ -857,7 +851,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
857
851
|
- ref?: Ref<HTMLInputElement> | undefined — Receives the component's root element.
|
|
858
852
|
- name?: string — Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`.
|
|
859
853
|
- formValue?: (value: number) => string — Replaces the default text a value is posted as.
|
|
860
|
-
- onChange?: (value: number | null) => void — The former name of `onValueChange`. (deprecated)
|
|
861
854
|
|
|
862
855
|
### PlusGlyph
|
|
863
856
|
|
|
@@ -912,7 +905,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
912
905
|
- disabled?: boolean — Disables the whole group. (default: false)
|
|
913
906
|
- name?: string — Name of the radio group within the form. (default: a generated one)
|
|
914
907
|
- ref?: Ref<HTMLDivElement> | undefined — Receives the component's root element.
|
|
915
|
-
- onChange?: (value: T) => void — The former name of `onValueChange`. (deprecated)
|
|
916
908
|
|
|
917
909
|
### RangeSlider
|
|
918
910
|
|
|
@@ -945,7 +937,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
945
937
|
- disabled?: boolean — Disables the whole control. (default: false)
|
|
946
938
|
- name?: string — Name of the radio group within the form. (default: a generated one)
|
|
947
939
|
- ref?: Ref<HTMLDivElement> | undefined — Receives the component's root element.
|
|
948
|
-
- onChange?: (value: T) => void — The former name of `onValueChange`. (deprecated)
|
|
949
940
|
|
|
950
941
|
### Select
|
|
951
942
|
|
|
@@ -976,7 +967,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
976
967
|
|
|
977
968
|
- value?: number — Controlled: the value; `undefined` reads as `min`.
|
|
978
969
|
- defaultValue?: number — Uncontrolled: the value to start at. (default: min)
|
|
979
|
-
- onValueChange?: (value: number) => void — Reports every change, by pointer or key, as a number on the step.
|
|
970
|
+
- onValueChange?: (value: number) => void — Reports every change, by pointer or key, as a number on the step; `onChange` is the input's native event.
|
|
980
971
|
- min?: number — The smallest value. (default: 0)
|
|
981
972
|
- max?: number — The largest value. (default: 100)
|
|
982
973
|
- step?: number — The step the value moves by, by pointer or key. (default: 1)
|
|
@@ -984,7 +975,6 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
984
975
|
- format?: (value: number) => string — The value as text: for the readout and for the screen reader (`aria-valuetext`). (default: the number in the formats' notation, with as many decimals as the step has)
|
|
985
976
|
- showValue?: boolean — The value in mono beside the track. (default: true)
|
|
986
977
|
- ref?: Ref<HTMLInputElement> | undefined — Receives the component's root element.
|
|
987
|
-
- onChange?: (value: number) => void — The former name of `onValueChange`. (deprecated)
|
|
988
978
|
|
|
989
979
|
### Sparkline
|
|
990
980
|
|
|
@@ -1024,7 +1014,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
1024
1014
|
- orientation?: "horizontal" | "vertical" — How the two panes stand: `horizontal` side by side, `vertical` one above the other - a trend above, its alarms below. (default: "horizontal")
|
|
1025
1015
|
- value?: number — Controlled: the first pane's share of the room, in per cent.
|
|
1026
1016
|
- defaultValue?: number — Uncontrolled: the share to start at. (default: 50)
|
|
1027
|
-
-
|
|
1017
|
+
- onValueChange?: (value: number) => void — Reports every move, by pointer or key, as the first pane's share.
|
|
1028
1018
|
- min?: number — The smallest share of the first pane, and where Enter collapses it to. (default: 0)
|
|
1029
1019
|
- max?: number — The largest share of the first pane. (default: 100)
|
|
1030
1020
|
- step?: number — How far an arrow key moves the separator, in per cent. (default: 5)
|
|
@@ -1103,7 +1093,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
1103
1093
|
|
|
1104
1094
|
- value?: string — The value of the visible tab.
|
|
1105
1095
|
- defaultValue?: string — Uncontrolled: the tab that stands first.
|
|
1106
|
-
-
|
|
1096
|
+
- onValueChange?: (value: string) => void — Receives the value of the chosen tab.
|
|
1107
1097
|
- ref?: Ref<HTMLDivElement> | undefined — Receives the component's root element.
|
|
1108
1098
|
|
|
1109
1099
|
### Tag
|
|
@@ -1347,16 +1337,17 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
1347
1337
|
- defaultExpanded?: Iterable<S> — Initial values, where the tree holds its own state.
|
|
1348
1338
|
- defaultChecked?: Iterable<S>
|
|
1349
1339
|
- defaultActive?: S | null
|
|
1340
|
+
- defaultSearch?: string
|
|
1350
1341
|
- expanded?: ReadonlySet<S> — Controlled from outside; where set, it wins over the tree's own state.
|
|
1351
1342
|
- checked?: ReadonlySet<S>
|
|
1352
1343
|
- active?: S | null
|
|
1353
1344
|
- anchor?: S | null — Where a range gesture spans from.
|
|
1354
1345
|
- search?: string
|
|
1355
|
-
-
|
|
1356
|
-
-
|
|
1357
|
-
-
|
|
1358
|
-
-
|
|
1359
|
-
-
|
|
1346
|
+
- onExpandedChange?: (next: ReadonlySet<S>) => void
|
|
1347
|
+
- onCheckedChange?: (next: ReadonlySet<S>) => void
|
|
1348
|
+
- onActiveChange?: (next: S | null) => void
|
|
1349
|
+
- onAnchorChange?: (next: S | null) => void
|
|
1350
|
+
- onSearchChange?: (text: string) => void
|
|
1360
1351
|
- onActivate?: (node: K) => void — Enter on a node, or a click on its label.
|
|
1361
1352
|
- onLoadChildren?: (node: K) => void — An unloaded branch has been expanded: now would be the moment to fetch its children.
|
|
1362
1353
|
- virtual?: VirtualOptions — Render only what stands in the scroll area.
|
package/CHANGELOG.md
CHANGED
|
@@ -27,6 +27,40 @@ 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
|
+
|
|
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)
|
|
52
|
+
|
|
53
|
+
### Added
|
|
54
|
+
|
|
55
|
+
- **`onValueChange`** on Tabs, Accordion and Splitter; **`onExpandedChange`, `onCheckedChange`, `onActiveChange`, `onAnchorChange` and `onSearchChange`** on `useTree`, with `defaultSearch` for an uncontrolled search (ADR-0081).
|
|
56
|
+
|
|
57
|
+
### Changed
|
|
58
|
+
|
|
59
|
+
- **The deprecated `onChange(value)` is removed** from NumberInput, Combobox, MultiSelect, SegmentedControl, RadioGroup, Slider, the four date pickers and FileInput, with its development warning; on Slider `onChange` is now the native input event.
|
|
60
|
+
- Migration: replace `onChange={(value) => ...}` with `onValueChange={(value) => ...}` (`onCheckedChange` on Checkbox and Switch); a Slider handler that took a number takes the event now, or moves to `onValueChange`.
|
|
61
|
+
- **`onChange` on Tabs, Accordion and Splitter, and `onExpanded`, `onChecked`, `onActive`, `onAnchor` and `onSearch` on `useTree` are deprecated** and warn once in development.
|
|
62
|
+
- Migration: Tabs, Accordion, Splitter: `onChange` -> `onValueChange`; useTree: `onExpanded` -> `onExpandedChange`, `onChecked` -> `onCheckedChange`, `onActive` -> `onActiveChange`, `onAnchor` -> `onAnchorChange`, `onSearch` -> `onSearchChange`. The old names work in 0.53.0 and are removed in 0.54.0.
|
|
63
|
+
|
|
30
64
|
## 0.52.0 – A form field says what it did: `onValueChange` everywhere, printing, a server table with groups (Oct. 2026)
|
|
31
65
|
|
|
32
66
|
### Added
|