@umriss-ui/core 0.26.0 → 0.28.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,58 @@ 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.28.0 – Grid columns of their own widths (Oct. 2026)
33
+
34
+ A grid of labels beside their values needed a `gridTemplateColumns` of its
35
+ own - the one place a screen had to be laid out in CSS. `columns` now takes a
36
+ width per column.
37
+
38
+ ### Added
39
+
40
+ - **`Grid` takes a list for `columns`**, one width per column: a number in
41
+ pixels, or `"fill"` for a share of what the other columns leave -
42
+ `columns={[140, "fill"]}` for labels beside their values, without a
43
+ `gridTemplateColumns` of your own. A `"fill"` column is never widened by a
44
+ long line, as the equal columns of a count are not. The list's length is the
45
+ column count; `minItemWidth` wins over a list as over a count. The width's
46
+ type is exported as `GridColumnWidth`. A count behaves as before.
47
+
48
+ ## 0.27.0 – The toasts below a header, and the segmented control on its own (Oct. 2026)
49
+
50
+ Two requests from an application shell. The toasts' distance from the
51
+ window's edge is a token per edge, so they can stand below a fixed header
52
+ without a selector on the toast's markup. The segmented control can stand on
53
+ its own - drawn inset, filling its place, with an icon before each word, as a
54
+ theme switch in a menu needs - and the inset drawing is now its default (see
55
+ Changed).
56
+
57
+ ### Changed
58
+
59
+ - **`SegmentedControl` is drawn inset by default**: a sunken track without an
60
+ edge, the choice a surface lifted out of it with the card shadow, the other
61
+ words in the secondary ink and medium weight. It is still a control's
62
+ height, with its words on a select's line in a row of fields; focus,
63
+ invalid, disabled, forced colours and the keys are as before.
64
+ `variant="field"` gives the 0.26 drawing - a field's edge, the choice filled
65
+ with ink - for a row whose fields it should match box for box.
66
+
67
+ ### Added
68
+
69
+ - **`--u-toast-inset-top` and `--u-toast-inset-bottom`**, the toasts' distance
70
+ from the window's top and bottom edge. The default is the distance they had:
71
+ `--u-space-5`, `--u-space-4` up to 600 px wide. Set on `:root`, the top one
72
+ moves the three `top-*` positions at every width - below a fixed header - and
73
+ the bottom one the three `bottom-*` positions. A rule on the region's
74
+ `data-edge` is no longer needed, and was never safe (ADR-0045).
75
+ - **`SegmentedControl` takes `fill`**: it takes the whole width its place
76
+ gives it, as a field in a column does, and shares it equally between its
77
+ segments, their words centred. A word too long for its share still ends in
78
+ an ellipsis. Without `fill` it is as wide as its words, as before.
79
+ - **`SegmentedOption` takes `icon`**, drawn before the word with a button's
80
+ gap, at `--u-icon-size` (`--u-icon-size-sm` at `sm`) and hidden from
81
+ assistive technology - the word names the possibility. Where the word ends
82
+ in an ellipsis, the icon stays whole.
83
+
32
84
  ## 0.26.0 – A row of fields on one line, and the segmented control (Oct. 2026)
33
85
 
34
86
  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 |
@@ -139,7 +139,7 @@ The table and the alarm list are not part of this package. They live in
139
139
  | `Tabs` / `TabList` / `Tab` / `TabPanel` | controlled tabs with an ink underline and arrow-key control |
140
140
  | `Skeleton` | a loading placeholder (bar or circle) with a discreet pulse |
141
141
  | `EmptyState` | an empty state with title, description, action and an optional symbol |
142
- | `Stack` / `Grid` | layout primitives with token spacing (a 4 px step), `Grid` fixed or responsive via `minItemWidth` |
142
+ | `Stack` / `Grid` | layout primitives with token spacing (a 4 px step), `Grid` with a fixed count, a width per column (`columns={[140, "fill"]}`) or responsive via `minItemWidth` |
143
143
  | `DatePicker` | calendar selection: weeks from Monday, arrow keys across the month, today/clear, the date in Geist Mono |
144
144
  | `DateTimePicker` | date plus time: two-digit fields that advance automatically, visible up/down steppers and arrow-key counting; after the day is chosen the focus jumps into the time, `withSeconds`, "now"; the clock change is handled honestly – a missing hour (the start of summer time) is detected and corrected forwards with a note, a duplicated hour (the start of winter time) offers the choice between both occurrences including the UTC offset |
145
145
  | `Combobox` | a searchable select field (listbox panel, arrow keys, `aria-activedescendant`), optionally `clearable`; `Input`'s two sizes |
@@ -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