@umriss-ui/core 0.25.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 +38 -0
- package/README.md +6 -1
- package/dist/core.css +1 -1
- package/dist/core.js +2844 -2740
- package/dist/de.d.ts +2 -2
- package/dist/index.d.ts +46 -2
- package/docs/llms-full.md +343 -70
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -29,6 +29,44 @@ 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
|
+
|
|
32
70
|
## 0.25.0 – Every export explained, 27 pages to configure, and a palette that keeps count (Oct. 2026)
|
|
33
71
|
|
|
34
72
|
The package explains itself where it is used: every export carries a comment,
|
package/README.md
CHANGED
|
@@ -122,6 +122,7 @@ The table and the alarm list are not part of this package. They live in
|
|
|
122
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 |
|
|
123
123
|
| `Textarea` | multi-line input; grows with its content on request (`autoGrow`, `maxRows`), character counter (`showCount`) |
|
|
124
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 |
|
|
125
126
|
| `Alert` | a message that stays; five tones, actions, closable on request – the role follows the tone |
|
|
126
127
|
| `Tag` / `TagGroup` | a removable label; one tab stop and arrow-key navigation within the group |
|
|
127
128
|
| `Divider` | a dividing line beside Stack and Grid: horizontal/vertical, two weights, optionally with a label |
|
|
@@ -210,7 +211,11 @@ The table and the alarm list are not part of this package. They live in
|
|
|
210
211
|
heights takes `size` and reads it through `useControlSize`, so a
|
|
211
212
|
`ControlSizeProvider` reaches it, and a surface of its own resets it.
|
|
212
213
|
Held by `tests-unit/controlSize.test.tsx` and
|
|
213
|
-
`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).
|
|
214
219
|
|
|
215
220
|
## Roadmap
|
|
216
221
|
|