@umriss-ui/core 0.26.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,42 @@ 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
+
32
68
  ## 0.26.0 – A row of fields on one line, and the segmented control (Oct. 2026)
33
69
 
34
70
  Controls side by side in a row of fields share one line: their words stand on
package/README.md CHANGED
@@ -122,7 +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
+ | `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 |
126
126
  | `Alert` | a message that stays; five tones, actions, closable on request – the role follows the tone |
127
127
  | `Tag` / `TagGroup` | a removable label; one tab stop and arrow-key navigation within the group |
128
128
  | `Divider` | a dividing line beside Stack and Grid: horizontal/vertical, two weights, optionally with a label |
@@ -212,8 +212,9 @@ The table and the alarm list are not part of this package. They live in
212
212
  `ControlSizeProvider` reaches it, and a surface of its own resets it.
213
213
  Held by `tests-unit/controlSize.test.tsx` and
214
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`
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`
217
218
  has one look and no `size` - in a field it reads the place's size only
218
219
  for the height of the row it stands in (field-row-alignment).
219
220