@umriss-ui/core 0.25.0 → 0.27.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,80 @@ 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.27.0 – The toasts below a header, and the segmented control on its own (Oct. 2026)
33
+
34
+ Two requests from an application shell. The toasts' distance from the
35
+ window's edge is a token per edge, so they can stand below a fixed header
36
+ without a selector on the toast's markup. The segmented control can stand on
37
+ its own - drawn inset, filling its place, with an icon before each word, as a
38
+ theme switch in a menu needs - and the inset drawing is now its default (see
39
+ Changed).
40
+
41
+ ### Changed
42
+
43
+ - **`SegmentedControl` is drawn inset by default**: a sunken track without an
44
+ edge, the choice a surface lifted out of it with the card shadow, the other
45
+ words in the secondary ink and medium weight. It is still a control's
46
+ height, with its words on a select's line in a row of fields; focus,
47
+ invalid, disabled, forced colours and the keys are as before.
48
+ `variant="field"` gives the 0.26 drawing - a field's edge, the choice filled
49
+ with ink - for a row whose fields it should match box for box.
50
+
51
+ ### Added
52
+
53
+ - **`--u-toast-inset-top` and `--u-toast-inset-bottom`**, the toasts' distance
54
+ from the window's top and bottom edge. The default is the distance they had:
55
+ `--u-space-5`, `--u-space-4` up to 600 px wide. Set on `:root`, the top one
56
+ moves the three `top-*` positions at every width - below a fixed header - and
57
+ the bottom one the three `bottom-*` positions. A rule on the region's
58
+ `data-edge` is no longer needed, and was never safe (ADR-0045).
59
+ - **`SegmentedControl` takes `fill`**: it takes the whole width its place
60
+ gives it, as a field in a column does, and shares it equally between its
61
+ segments, their words centred. A word too long for its share still ends in
62
+ an ellipsis. Without `fill` it is as wide as its words, as before.
63
+ - **`SegmentedOption` takes `icon`**, drawn before the word with a button's
64
+ gap, at `--u-icon-size` (`--u-icon-size-sm` at `sm`) and hidden from
65
+ assistive technology - the word names the possibility. Where the word ends
66
+ in an ellipsis, the icon stays whole.
67
+
68
+ ## 0.26.0 – A row of fields on one line, and the segmented control (Oct. 2026)
69
+
70
+ Controls side by side in a row of fields share one line: their words stand on
71
+ the line a field's value stands on, at either size. A new control,
72
+ `SegmentedControl`, stands in such a row as a field itself. Three things
73
+ change height or name (see Changed).
74
+
75
+ ### Added
76
+
77
+ - **`SegmentedControl`**: one choice out of a few short possibilities, drawn
78
+ as one field with a segment for each - as tall, as edged and as rounded as a
79
+ select, the chosen segment filled with ink. To the keys and the screen
80
+ reader it is a radio group: one tab stop, the arrow keys move and choose,
81
+ skipping disabled possibilities. It takes `options` (`value`, `label`,
82
+ `disabled`), `value` (`null` for none yet) and `onChange` or `defaultValue`,
83
+ `size`, `disabled` and `name`; inside a `FormField` it takes the field's
84
+ label, message, required and invalid state, and shows an invalid field's
85
+ edge. It is as wide as its words, never wider than its place - a word that
86
+ does not fit ends in an ellipsis - and fills no place by itself. Under
87
+ forced colours the chosen segment takes the system's selection colours.
88
+ New types `SegmentedControlProps` and `SegmentedOption`.
89
+
90
+ ### Changed
91
+
92
+ - **A horizontal `RadioGroup` is as tall as a control** (32 px, 26 px at
93
+ `sm`) instead of one line of its labels: the line of its labels lies on the
94
+ line a field's value stands on. A layout that stacked a horizontal group
95
+ tightly under something else grows by 12.5 px (9.5 px at `sm`). A vertical
96
+ group is unchanged.
97
+ - **A `Checkbox` or a `Switch` inside a `FormField` is as tall as a control**,
98
+ its label on the field line, for the same reason. Outside a `FormField` both
99
+ are as compact as before. The checkbox takes that height from the size of
100
+ its place (`ControlSizeProvider`); it still has one look and no `size`.
101
+ - **A `RadioGroup` inside a `FormField` is named by the field's label**
102
+ (`aria-labelledby`). `label htmlFor` names no group, and such a group had no
103
+ accessible name before; a caller's own `aria-label` or `aria-labelledby`
104
+ still wins.
105
+
32
106
  ## 0.25.0 – Every export explained, 27 pages to configure, and a palette that keeps count (Oct. 2026)
33
107
 
34
108
  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 inset - a sunken track, the choice lifted out of it - or as a `field`; `fill` shares its place equally, an option takes an `icon`; 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,12 @@ 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` stands among fields but shows no value, so it is as
216
+ wide as its words (`fit-content`) and fills a place only when told to
217
+ (`fill`); and the `Checkbox`
218
+ has one look and no `size` - in a field it reads the place's size only
219
+ for the height of the row it stands in (field-row-alignment).
214
220
 
215
221
  ## Roadmap
216
222