@umriss-ui/core 0.24.0 → 0.25.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 CHANGED
@@ -29,6 +29,130 @@ 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.25.0 – Every export explained, 27 pages to configure, and a palette that keeps count (Oct. 2026)
33
+
34
+ The package explains itself where it is used: every export carries a comment,
35
+ every default a `@default` tag, every type a props table names can be imported,
36
+ and the demo lists all of it in an API index (ADR-0044). 27 of the demo's pages
37
+ open with a configurator, and every prop of a props table is shown by an
38
+ example or named as an exception. The command palette learns keywords and a
39
+ limit to its finds. Two things behave differently: a nested `UmrissProvider`
40
+ without `language` keeps the language around it, and the combobox family and
41
+ the pickers put a caller's `aria-label` and `aria-describedby` on the field
42
+ that has the focus (see Changed).
43
+
44
+ ### Added
45
+
46
+ - **`keywords` on a `CommandPaletteItem`**: more words a candidate is found
47
+ by, such as synonyms, searched but never shown. They are searched only when
48
+ neither the label nor the group matched, and only for a query of three
49
+ characters or more, as a contiguous run and not as a subsequence. A find
50
+ through them stands behind every find in a label or a group and marks
51
+ nothing. A palette without keywords finds and orders as before.
52
+ - **`maxFinds` on `CommandPalette`**: the most finds that stand at once, the
53
+ best by rank, with a last line that says how many more there are (the new
54
+ wording entry `paletteMoreFinds`, "26 more finds", "26 weitere Funde"). The
55
+ screen reader still hears the count of every find. Without it, every find
56
+ stands, as before.
57
+ - **`searchedGroup` on a `CommandPaletteItem`**: the part of `group` that is
58
+ searched, where a prefix every candidate of a set shares would otherwise
59
+ let its few letters find the whole set. The heading shown is still `group`.
60
+ Without it, all of `group` is searched, as before.
61
+ - **Every type a props table names can be imported**: `TextTracking` and
62
+ `TextLeading` (the text's letter spacing and line height) and `Align` (where
63
+ a popover lines up with its anchor) are new public types. `DockPlace` is
64
+ declared as its four edges itself, no longer as another name for an
65
+ internal type; what it accepts is unchanged.
66
+ - **Every export carries a comment**, the German wording's included: what a
67
+ component, a hook, a function, a constant or a type is for, and for a hook
68
+ `@param` and `@returns` where its type alone does not say it. The editor shows
69
+ it on hover, from the package's `.d.ts`. The comment on `UmrissProvider`'s
70
+ `language` links the Language page instead of naming a source folder.
71
+ Nothing else changes.
72
+ - **A prop's default stands in a `@default` tag** where its comment used to say
73
+ it in words: the editor shows it on hover, and the props table in its Default
74
+ column. Nothing else changes.
75
+ - **The demo has an API index**: `/core/api/`, the last entry of the sidebar,
76
+ lists every export of `@umriss-ui/core` and of `@umriss-ui/core/wording/de`
77
+ under its import path, grouped as components, hooks, functions, constants
78
+ and types, alphabetical - each value with its comment and its declaration,
79
+ each type with a link to its table or its definition, and the pages that use
80
+ it. `DEFAULT_WORDING`, `DEFAULT_FORMATS` and their German twins link their
81
+ table on the Language page. A hook or a function a page names, in its text
82
+ or its import line, leads to its entry. `docs/llms-full.md` ends with the
83
+ same index, in place of the appendix "The rest of the API". The library is
84
+ unchanged.
85
+ - **`docs/llms-full.md` defines every type a props table names**: a type
86
+ without a table of its own (`ButtonSize`, `Wording`, `Limit`) stands under
87
+ "Types on this page" of each page that names it, with its comment and its
88
+ members or its declaration.
89
+ - **Every wording entry is listed**, in `docs/llms-full.md` and on the Language
90
+ page: each key of `Wording`, of the charts' `ChartsWording` and of `Formats`,
91
+ its English beside its German and the comment its type carries. A row has an
92
+ address of its own, `#wording-noMatches`, `#format-date`.
93
+ - **Every token listed**: the text the package carries (`docs/llms-full.md`)
94
+ and the demo's new page Theming list every `--u-…` token, grouped as the
95
+ stylesheet groups them, with its light and its dark value and what it is
96
+ for. Below them, under `#charts-tokens`, the 29 `--uc-…` tokens of
97
+ `@umriss-ui/charts`, with the core token each one takes, linked. The tokens
98
+ themselves are unchanged.
99
+ - **Tokens are the styling API; `data-*` attributes and class names are not**
100
+ (ADR-0045). The `--u-…` tokens change only with an entry here; the
101
+ attributes and class names in the components' markup are internal and may
102
+ change in any version. The page Theming says so and shows the accent for the
103
+ application, a token for one region and a dark region; the Installation page
104
+ links there instead of explaining the tokens itself.
105
+ - **Every page whose examples take the keyboard says its keys**: Button,
106
+ Input, Textarea, Card, Typography, Alert and Toast have a Keyboard table of
107
+ their own (Toast's names Alt+T and Escape on the deck); the other pages with
108
+ a control in their examples link the pages of those controls. Button,
109
+ Textarea, Spinner, ProgressBar, Skeleton, Alert, Toast, Stepper, Stat, Meter
110
+ and Dock have a section Accessibility after Keyboard: the role and name, what
111
+ is announced and when, the label to pass, and what forced colours and reduced
112
+ motion change. In the demo, the Markdown twins and `docs/llms-full.md`; the
113
+ components are unchanged.
114
+ - **`invalid` has an example on every control that takes it**: Input,
115
+ Textarea, NumberInput, Switch, FileInput, Select, Combobox, MultiSelect, the
116
+ four pickers and `TreeSearch` on the TreeView page each show "With an
117
+ error": a field without a `FormField`, marked by a live check and tied to
118
+ its message by `aria-describedby`. Inside a `FormField`, its `error` marks
119
+ the field invalid by itself; the lead of each example says so. In the demo
120
+ and `docs/llms-full.md`; the components are unchanged.
121
+ - **27 pages open with a configurator**: Alert, Badge, Button, Checkbox,
122
+ Combobox, the four pickers, Divider, FormField, IconButton, Input, Meter,
123
+ MultiSelect, NumberInput, ProgressBar, RadioGroup, Select, Skeleton,
124
+ Slider, Sparkline, Stat, Switch, Tag, Textarea and Typography. The
125
+ component stands beside a control for each prop that takes a value - a
126
+ choice, a list, a switch, a number or a text field, bounded where the prop
127
+ is - and under it the code of what stands there, every prop at its default
128
+ left out. The controls, the values and the defaults come from the props
129
+ table. In the demo; the components are unchanged.
130
+ - **Every prop of a props table is shown, or named as an exception**: new
131
+ examples for `toast.limit`, a popover card at the right edge (`align`,
132
+ `offset`, `hideOnScroll`), a modal that must be answered (`closeOnBackdrop`,
133
+ `hideClose`) and a command palette over two hundred candidates (`icon`,
134
+ `searchedGroup`, `maxFinds`); existing examples now show `step` on the
135
+ Splitter, `weight` on a Heading, `size` on a ButtonGroup, `align` on a
136
+ SplitButton, `emptyText` on a MultiSelect, an own `placeholder` on both
137
+ date-time pickers and `removeLabel` on a Tag. A row a page's configurator
138
+ sets names "Configurator" under "Shown in". The eight props left without an
139
+ example are pass-throughs and escape hatches; the demo's list says so for
140
+ each. The components are unchanged.
141
+
142
+ ### Changed
143
+
144
+ - **An `UmrissProvider` without `language` keeps the surrounding language**
145
+ instead of resetting its subtree to English. A provider nested for a toast,
146
+ a portal target or a density no longer undoes the wording and the formats
147
+ of an outer `UmrissProvider` or `LanguageProvider`. At the root, without a
148
+ provider around it, English holds as before.
149
+ - **`Combobox`, `MultiSelect` and the four pickers take `aria-label`,
150
+ `aria-labelledby` and `aria-describedby` on the field** – the input or the
151
+ button that has the focus – instead of the wrapper around it, as `Input`
152
+ and `Select` do. A field without a `FormField` can now be named and tied to
153
+ its own message; inside one, a caller's `aria-describedby` replaces the
154
+ field's message, as on `Input`.
155
+
32
156
  ## 0.24.0 – The select's own list (Oct. 2026)
33
157
 
34
158
  ### Changed
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Umriss UI
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
- the declaration of every other export; online, for the latest version,
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
@@ -150,7 +156,7 @@ The table and the alarm list are not part of this package. They live in
150
156
  | `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
157
  | `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
158
  | `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 `/` |
159
+ | `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
160
  | `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
161
  | `Sparkline` | a miniature history line with an area gradient and an accent end point – for trends in cells |
156
162
  | `Spinner` | a functional loading indicator |
@@ -177,7 +183,9 @@ The table and the alarm list are not part of this package. They live in
177
183
  fields that wear a wrapper (`Checkbox`, `Switch`, `Slider`, `NumberInput`,
178
184
  `Select`, `FileInput`, `Input`, `Textarea`) put the class and the style on
179
185
  the wrapper - what a caller dresses and sizes - and ref and rest on the
180
- control (ADR-0041). The component's own
186
+ control (ADR-0041). The pickers and the combobox family take a caller's
187
+ `aria-label`, `aria-labelledby` and `aria-describedby` out of the rest and
188
+ put them on the field that has the focus. The component's own
181
189
  `role`, the `aria-*` it computes and its handlers are not replaced by
182
190
  `rest`: a caller's handler runs first and can `preventDefault`. Held by
183
191
  `tests-unit/passthrough.test.tsx`, which renders every export.