@umriss-ui/core 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +162 -0
- package/README.md +19 -6
- package/dist/core.css +1 -1
- package/dist/core.js +3628 -3505
- package/dist/de.d.ts +7 -5
- package/dist/index.d.ts +472 -108
- package/dist/wording/de.js +3 -2
- package/docs/llms-full.md +12842 -8114
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -29,6 +29,168 @@ package stood at `0.1.0` the whole time, because it had exactly one caller and t
|
|
|
29
29
|
caller lay in the same repository — and are grouped by unit of delivery, not by
|
|
30
30
|
commit.
|
|
31
31
|
|
|
32
|
+
## 0.26.0 – A row of fields on one line, and the segmented control (Oct. 2026)
|
|
33
|
+
|
|
34
|
+
Controls side by side in a row of fields share one line: their words stand on
|
|
35
|
+
the line a field's value stands on, at either size. A new control,
|
|
36
|
+
`SegmentedControl`, stands in such a row as a field itself. Three things
|
|
37
|
+
change height or name (see Changed).
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- **`SegmentedControl`**: one choice out of a few short possibilities, drawn
|
|
42
|
+
as one field with a segment for each - as tall, as edged and as rounded as a
|
|
43
|
+
select, the chosen segment filled with ink. To the keys and the screen
|
|
44
|
+
reader it is a radio group: one tab stop, the arrow keys move and choose,
|
|
45
|
+
skipping disabled possibilities. It takes `options` (`value`, `label`,
|
|
46
|
+
`disabled`), `value` (`null` for none yet) and `onChange` or `defaultValue`,
|
|
47
|
+
`size`, `disabled` and `name`; inside a `FormField` it takes the field's
|
|
48
|
+
label, message, required and invalid state, and shows an invalid field's
|
|
49
|
+
edge. It is as wide as its words, never wider than its place - a word that
|
|
50
|
+
does not fit ends in an ellipsis - and fills no place by itself. Under
|
|
51
|
+
forced colours the chosen segment takes the system's selection colours.
|
|
52
|
+
New types `SegmentedControlProps` and `SegmentedOption`.
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
|
|
56
|
+
- **A horizontal `RadioGroup` is as tall as a control** (32 px, 26 px at
|
|
57
|
+
`sm`) instead of one line of its labels: the line of its labels lies on the
|
|
58
|
+
line a field's value stands on. A layout that stacked a horizontal group
|
|
59
|
+
tightly under something else grows by 12.5 px (9.5 px at `sm`). A vertical
|
|
60
|
+
group is unchanged.
|
|
61
|
+
- **A `Checkbox` or a `Switch` inside a `FormField` is as tall as a control**,
|
|
62
|
+
its label on the field line, for the same reason. Outside a `FormField` both
|
|
63
|
+
are as compact as before. The checkbox takes that height from the size of
|
|
64
|
+
its place (`ControlSizeProvider`); it still has one look and no `size`.
|
|
65
|
+
- **A `RadioGroup` inside a `FormField` is named by the field's label**
|
|
66
|
+
(`aria-labelledby`). `label htmlFor` names no group, and such a group had no
|
|
67
|
+
accessible name before; a caller's own `aria-label` or `aria-labelledby`
|
|
68
|
+
still wins.
|
|
69
|
+
|
|
70
|
+
## 0.25.0 – Every export explained, 27 pages to configure, and a palette that keeps count (Oct. 2026)
|
|
71
|
+
|
|
72
|
+
The package explains itself where it is used: every export carries a comment,
|
|
73
|
+
every default a `@default` tag, every type a props table names can be imported,
|
|
74
|
+
and the demo lists all of it in an API index (ADR-0044). 27 of the demo's pages
|
|
75
|
+
open with a configurator, and every prop of a props table is shown by an
|
|
76
|
+
example or named as an exception. The command palette learns keywords and a
|
|
77
|
+
limit to its finds. Two things behave differently: a nested `UmrissProvider`
|
|
78
|
+
without `language` keeps the language around it, and the combobox family and
|
|
79
|
+
the pickers put a caller's `aria-label` and `aria-describedby` on the field
|
|
80
|
+
that has the focus (see Changed).
|
|
81
|
+
|
|
82
|
+
### Added
|
|
83
|
+
|
|
84
|
+
- **`keywords` on a `CommandPaletteItem`**: more words a candidate is found
|
|
85
|
+
by, such as synonyms, searched but never shown. They are searched only when
|
|
86
|
+
neither the label nor the group matched, and only for a query of three
|
|
87
|
+
characters or more, as a contiguous run and not as a subsequence. A find
|
|
88
|
+
through them stands behind every find in a label or a group and marks
|
|
89
|
+
nothing. A palette without keywords finds and orders as before.
|
|
90
|
+
- **`maxFinds` on `CommandPalette`**: the most finds that stand at once, the
|
|
91
|
+
best by rank, with a last line that says how many more there are (the new
|
|
92
|
+
wording entry `paletteMoreFinds`, "26 more finds", "26 weitere Funde"). The
|
|
93
|
+
screen reader still hears the count of every find. Without it, every find
|
|
94
|
+
stands, as before.
|
|
95
|
+
- **`searchedGroup` on a `CommandPaletteItem`**: the part of `group` that is
|
|
96
|
+
searched, where a prefix every candidate of a set shares would otherwise
|
|
97
|
+
let its few letters find the whole set. The heading shown is still `group`.
|
|
98
|
+
Without it, all of `group` is searched, as before.
|
|
99
|
+
- **Every type a props table names can be imported**: `TextTracking` and
|
|
100
|
+
`TextLeading` (the text's letter spacing and line height) and `Align` (where
|
|
101
|
+
a popover lines up with its anchor) are new public types. `DockPlace` is
|
|
102
|
+
declared as its four edges itself, no longer as another name for an
|
|
103
|
+
internal type; what it accepts is unchanged.
|
|
104
|
+
- **Every export carries a comment**, the German wording's included: what a
|
|
105
|
+
component, a hook, a function, a constant or a type is for, and for a hook
|
|
106
|
+
`@param` and `@returns` where its type alone does not say it. The editor shows
|
|
107
|
+
it on hover, from the package's `.d.ts`. The comment on `UmrissProvider`'s
|
|
108
|
+
`language` links the Language page instead of naming a source folder.
|
|
109
|
+
Nothing else changes.
|
|
110
|
+
- **A prop's default stands in a `@default` tag** where its comment used to say
|
|
111
|
+
it in words: the editor shows it on hover, and the props table in its Default
|
|
112
|
+
column. Nothing else changes.
|
|
113
|
+
- **The demo has an API index**: `/core/api/`, the last entry of the sidebar,
|
|
114
|
+
lists every export of `@umriss-ui/core` and of `@umriss-ui/core/wording/de`
|
|
115
|
+
under its import path, grouped as components, hooks, functions, constants
|
|
116
|
+
and types, alphabetical - each value with its comment and its declaration,
|
|
117
|
+
each type with a link to its table or its definition, and the pages that use
|
|
118
|
+
it. `DEFAULT_WORDING`, `DEFAULT_FORMATS` and their German twins link their
|
|
119
|
+
table on the Language page. A hook or a function a page names, in its text
|
|
120
|
+
or its import line, leads to its entry. `docs/llms-full.md` ends with the
|
|
121
|
+
same index, in place of the appendix "The rest of the API". The library is
|
|
122
|
+
unchanged.
|
|
123
|
+
- **`docs/llms-full.md` defines every type a props table names**: a type
|
|
124
|
+
without a table of its own (`ButtonSize`, `Wording`, `Limit`) stands under
|
|
125
|
+
"Types on this page" of each page that names it, with its comment and its
|
|
126
|
+
members or its declaration.
|
|
127
|
+
- **Every wording entry is listed**, in `docs/llms-full.md` and on the Language
|
|
128
|
+
page: each key of `Wording`, of the charts' `ChartsWording` and of `Formats`,
|
|
129
|
+
its English beside its German and the comment its type carries. A row has an
|
|
130
|
+
address of its own, `#wording-noMatches`, `#format-date`.
|
|
131
|
+
- **Every token listed**: the text the package carries (`docs/llms-full.md`)
|
|
132
|
+
and the demo's new page Theming list every `--u-…` token, grouped as the
|
|
133
|
+
stylesheet groups them, with its light and its dark value and what it is
|
|
134
|
+
for. Below them, under `#charts-tokens`, the 29 `--uc-…` tokens of
|
|
135
|
+
`@umriss-ui/charts`, with the core token each one takes, linked. The tokens
|
|
136
|
+
themselves are unchanged.
|
|
137
|
+
- **Tokens are the styling API; `data-*` attributes and class names are not**
|
|
138
|
+
(ADR-0045). The `--u-…` tokens change only with an entry here; the
|
|
139
|
+
attributes and class names in the components' markup are internal and may
|
|
140
|
+
change in any version. The page Theming says so and shows the accent for the
|
|
141
|
+
application, a token for one region and a dark region; the Installation page
|
|
142
|
+
links there instead of explaining the tokens itself.
|
|
143
|
+
- **Every page whose examples take the keyboard says its keys**: Button,
|
|
144
|
+
Input, Textarea, Card, Typography, Alert and Toast have a Keyboard table of
|
|
145
|
+
their own (Toast's names Alt+T and Escape on the deck); the other pages with
|
|
146
|
+
a control in their examples link the pages of those controls. Button,
|
|
147
|
+
Textarea, Spinner, ProgressBar, Skeleton, Alert, Toast, Stepper, Stat, Meter
|
|
148
|
+
and Dock have a section Accessibility after Keyboard: the role and name, what
|
|
149
|
+
is announced and when, the label to pass, and what forced colours and reduced
|
|
150
|
+
motion change. In the demo, the Markdown twins and `docs/llms-full.md`; the
|
|
151
|
+
components are unchanged.
|
|
152
|
+
- **`invalid` has an example on every control that takes it**: Input,
|
|
153
|
+
Textarea, NumberInput, Switch, FileInput, Select, Combobox, MultiSelect, the
|
|
154
|
+
four pickers and `TreeSearch` on the TreeView page each show "With an
|
|
155
|
+
error": a field without a `FormField`, marked by a live check and tied to
|
|
156
|
+
its message by `aria-describedby`. Inside a `FormField`, its `error` marks
|
|
157
|
+
the field invalid by itself; the lead of each example says so. In the demo
|
|
158
|
+
and `docs/llms-full.md`; the components are unchanged.
|
|
159
|
+
- **27 pages open with a configurator**: Alert, Badge, Button, Checkbox,
|
|
160
|
+
Combobox, the four pickers, Divider, FormField, IconButton, Input, Meter,
|
|
161
|
+
MultiSelect, NumberInput, ProgressBar, RadioGroup, Select, Skeleton,
|
|
162
|
+
Slider, Sparkline, Stat, Switch, Tag, Textarea and Typography. The
|
|
163
|
+
component stands beside a control for each prop that takes a value - a
|
|
164
|
+
choice, a list, a switch, a number or a text field, bounded where the prop
|
|
165
|
+
is - and under it the code of what stands there, every prop at its default
|
|
166
|
+
left out. The controls, the values and the defaults come from the props
|
|
167
|
+
table. In the demo; the components are unchanged.
|
|
168
|
+
- **Every prop of a props table is shown, or named as an exception**: new
|
|
169
|
+
examples for `toast.limit`, a popover card at the right edge (`align`,
|
|
170
|
+
`offset`, `hideOnScroll`), a modal that must be answered (`closeOnBackdrop`,
|
|
171
|
+
`hideClose`) and a command palette over two hundred candidates (`icon`,
|
|
172
|
+
`searchedGroup`, `maxFinds`); existing examples now show `step` on the
|
|
173
|
+
Splitter, `weight` on a Heading, `size` on a ButtonGroup, `align` on a
|
|
174
|
+
SplitButton, `emptyText` on a MultiSelect, an own `placeholder` on both
|
|
175
|
+
date-time pickers and `removeLabel` on a Tag. A row a page's configurator
|
|
176
|
+
sets names "Configurator" under "Shown in". The eight props left without an
|
|
177
|
+
example are pass-throughs and escape hatches; the demo's list says so for
|
|
178
|
+
each. The components are unchanged.
|
|
179
|
+
|
|
180
|
+
### Changed
|
|
181
|
+
|
|
182
|
+
- **An `UmrissProvider` without `language` keeps the surrounding language**
|
|
183
|
+
instead of resetting its subtree to English. A provider nested for a toast,
|
|
184
|
+
a portal target or a density no longer undoes the wording and the formats
|
|
185
|
+
of an outer `UmrissProvider` or `LanguageProvider`. At the root, without a
|
|
186
|
+
provider around it, English holds as before.
|
|
187
|
+
- **`Combobox`, `MultiSelect` and the four pickers take `aria-label`,
|
|
188
|
+
`aria-labelledby` and `aria-describedby` on the field** – the input or the
|
|
189
|
+
button that has the focus – instead of the wrapper around it, as `Input`
|
|
190
|
+
and `Select` do. A field without a `FormField` can now be named and tied to
|
|
191
|
+
its own message; inside one, a caller's `aria-describedby` replaces the
|
|
192
|
+
field's message, as on `Input`.
|
|
193
|
+
|
|
32
194
|
## 0.24.0 – The select's own list (Oct. 2026)
|
|
33
195
|
|
|
34
196
|
### Changed
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @umriss-ui/core
|
|
2
2
|
|
|
3
3
|
A React component library for data-dense dashboards, monitoring and tools:
|
|
4
4
|
forms, date pickers, overlays, a tree view and a command palette.
|
|
@@ -15,10 +15,14 @@ pnpm add @umriss-ui/core
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
The demo is the documentation: <https://romanhaendler.github.io/umriss-ui/core/>.
|
|
18
|
+
Every prop of a props table is linked to the examples that show it, 27 pages
|
|
19
|
+
open with a configurator, an API index lists every export, one search finds
|
|
20
|
+
across all five packages, and the header switches the examples to German.
|
|
18
21
|
For a coding agent the same material stands as one Markdown file inside the
|
|
19
22
|
installed package, `docs/llms-full.md`, pinned to that version — every page
|
|
20
23
|
with its examples' source, its props tables and why it is built as it is, and
|
|
21
|
-
|
|
24
|
+
an index of every export with its comment and its declaration; each page also
|
|
25
|
+
has a Markdown twin; online, for the latest version,
|
|
22
26
|
<https://romanhaendler.github.io/umriss-ui/core/llms.txt>.
|
|
23
27
|
In an application:
|
|
24
28
|
|
|
@@ -88,7 +92,9 @@ import { GERMAN_WORDING } from "@umriss-ui/core/wording/de";
|
|
|
88
92
|
```
|
|
89
93
|
|
|
90
94
|
Both objects are typed `Wording`, so a missing entry is a compile error rather
|
|
91
|
-
than a gap that shows up in the interface (ADR-0018, ADR-0019).
|
|
95
|
+
than a gap that shows up in the interface (ADR-0018, ADR-0019). An
|
|
96
|
+
`UmrissProvider` without `language`, nested for a toast or a density, keeps the
|
|
97
|
+
language around it.
|
|
92
98
|
|
|
93
99
|
The formats — dates, numbers, durations — are a seam of their own. The default
|
|
94
100
|
is English notation on a 24-hour clock (`17/03/2026`, `09:05`, `1,234.5`), and
|
|
@@ -116,6 +122,7 @@ The table and the alarm list are not part of this package. They live in
|
|
|
116
122
|
| `FormField` / `FormFieldBoundary` | label, help text, error; wires `id`/`aria-*` automatically through context. `FormFieldBoundary` resets the context inside panels so that their contents do not inherit the trigger's field id |
|
|
117
123
|
| `Textarea` | multi-line input; grows with its content on request (`autoGrow`, `maxRows`), character counter (`showCount`) |
|
|
118
124
|
| `RadioGroup` | one out of a few, each option with an optional explanatory line; one tab stop, arrow keys select |
|
|
125
|
+
| `SegmentedControl` | one out of a few short options, drawn as one field with a segment each; a radio group to the keys and the screen reader |
|
|
119
126
|
| `Alert` | a message that stays; five tones, actions, closable on request – the role follows the tone |
|
|
120
127
|
| `Tag` / `TagGroup` | a removable label; one tab stop and arrow-key navigation within the group |
|
|
121
128
|
| `Divider` | a dividing line beside Stack and Grid: horizontal/vertical, two weights, optionally with a label |
|
|
@@ -150,7 +157,7 @@ The table and the alarm list are not part of this package. They live in
|
|
|
150
157
|
| `Popover` | the one closable, anchored surface underneath Menu, Combobox and the pickers: portal (nearest `<dialog>`, then the portal target, then the body), position with flipping above and below and across its trigger's edges, a panel that fits nowhere cut to the larger side instead of laid over its trigger, clamping as the last resort, never larger than the window (it scrolls in itself beyond that), outside click, Escape with focus returned |
|
|
151
158
|
| `TreeView` / `TreeSearch` / `useTree` | a tree with exactly one active node and optional ticking (cascade, indeterminate, locked, unloaded); arrow keys, type to jump, range selection, virtualisation. The search keeps its term in the tree |
|
|
152
159
|
| `Stat` | a metric: one value, read against its limits – the verdict as a word and a colour, the deviation from the target value, history and freshness |
|
|
153
|
-
| `CommandPalette` / `useCommandPaletteShortcut` | a command palette: subsequence search with rank and highlighted finds, groups, a populated resting state; opens on Ctrl/⌘+K and `/` |
|
|
160
|
+
| `CommandPalette` / `useCommandPaletteShortcut` | a command palette: subsequence search with rank and highlighted finds, groups, keywords a candidate is found by, at most `maxFinds` finds with a line for the rest, a populated resting state; opens on Ctrl/⌘+K and `/` |
|
|
154
161
|
| `CrossGlyph` / `PlusGlyph` / `MinusGlyph` / `AngleGlyph` / `CalendarGlyph` / `ClockGlyph` / `GripGlyph` / `GridGlyph` / `MeasureGlyph` | the shared character set, one stroke width at one nominal size; specification in `docs/glyphs.md` |
|
|
155
162
|
| `Sparkline` | a miniature history line with an area gradient and an accent end point – for trends in cells |
|
|
156
163
|
| `Spinner` | a functional loading indicator |
|
|
@@ -177,7 +184,9 @@ The table and the alarm list are not part of this package. They live in
|
|
|
177
184
|
fields that wear a wrapper (`Checkbox`, `Switch`, `Slider`, `NumberInput`,
|
|
178
185
|
`Select`, `FileInput`, `Input`, `Textarea`) put the class and the style on
|
|
179
186
|
the wrapper - what a caller dresses and sizes - and ref and rest on the
|
|
180
|
-
control (ADR-0041). The
|
|
187
|
+
control (ADR-0041). The pickers and the combobox family take a caller's
|
|
188
|
+
`aria-label`, `aria-labelledby` and `aria-describedby` out of the rest and
|
|
189
|
+
put them on the field that has the focus. The component's own
|
|
181
190
|
`role`, the `aria-*` it computes and its handlers are not replaced by
|
|
182
191
|
`rest`: a caller's handler runs first and can `preventDefault`. Held by
|
|
183
192
|
`tests-unit/passthrough.test.tsx`, which renders every export.
|
|
@@ -202,7 +211,11 @@ The table and the alarm list are not part of this package. They live in
|
|
|
202
211
|
heights takes `size` and reads it through `useControlSize`, so a
|
|
203
212
|
`ControlSizeProvider` reaches it, and a surface of its own resets it.
|
|
204
213
|
Held by `tests-unit/controlSize.test.tsx` and
|
|
205
|
-
`tests-visual/features-sizes.spec.ts`.
|
|
214
|
+
`tests-visual/features-sizes.spec.ts`. Two exceptions, by design: the
|
|
215
|
+
`SegmentedControl` is a field to the eye but shows no value, so it is as
|
|
216
|
+
wide as its words (`fit-content`) and fills no place; and the `Checkbox`
|
|
217
|
+
has one look and no `size` - in a field it reads the place's size only
|
|
218
|
+
for the height of the row it stands in (field-row-alignment).
|
|
206
219
|
|
|
207
220
|
## Roadmap
|
|
208
221
|
|