@umriss-ui/core 0.16.0 → 0.17.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,47 @@ 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.17.0 – Tighter buttons, and a button for an icon (Sep. 2026)
33
+
34
+ ### Added
35
+
36
+ - **`IconButton`**, a button that shows only an icon: square at the control
37
+ heights (32px, 26px at `sm`), with a required `aria-label` that is its
38
+ accessible name and always shows as its tooltip. The icon is the children -
39
+ an SVG, a glyph of the set or an icon font's element - and the button sets
40
+ its size. Everything else is a `Button`'s: the sizes, `loading` (the spinner
41
+ takes the icon's place), `disabled`, and the variants, with `plain` as the
42
+ default. It anchors a `Menu` as its trigger. It takes no `aria-labelledby`
43
+ and no `title`, which would part the name from the tooltip. New type
44
+ `IconButtonProps`.
45
+ - **`plain`**, a fifth variant of `Button` and `IconButton`: no ground, the
46
+ secondary text colour, the sunken surface and the full text colour under the
47
+ pointer. `ghost` stays quiet in the accent.
48
+ - **`--u-icon-size`** (14px) and **`--u-icon-size-sm`** (12px), the size of
49
+ the icon in a button at `md` and `sm`.
50
+
51
+ ### Changed
52
+
53
+ - **Buttons are tighter**: 12px of room a side at `md` (was 16px), 8px at `sm`
54
+ (was 12px). The heights stay.
55
+ - **A `Button` sizes the SVG among its children**: a direct `svg` child of its
56
+ label stands at `--u-icon-size`, `--u-icon-size-sm` at `sm` - the size an
57
+ `IconButton` gives its icon. A `width` and `height` on that SVG no longer
58
+ apply. The loading spinner takes the same size.
59
+ - **A `Tooltip` opens for keyboard focus only**, not for the focus a click
60
+ leaves behind: after a click the tip came back over what the click had
61
+ started, and a dialog opened by the pointer showed its close button's tip.
62
+ - **A `Tooltip` no longer describes its trigger with the words that name it**:
63
+ a tip whose content equals the trigger's `aria-label` sets no
64
+ `aria-describedby`, so the dock's tools, among others, are announced once.
65
+ - **`Tooltip` and `Menu` keep their trigger's ref** beside their own, instead
66
+ of replacing it.
67
+ - **The Modal's close button and the calendar's month paging are
68
+ `IconButton`s**: 26px squares (they were 28px and 24px) with their name as a
69
+ tooltip.
70
+
71
+ ---
72
+
32
73
  ## 0.16.0 – A toast of its own, and room on a phone (Sep. 2026)
33
74
 
34
75
  ### Added
package/README.md CHANGED
@@ -111,7 +111,8 @@ The table and the alarm list are not part of this package. They live in
111
111
 
112
112
  | Component | Purpose |
113
113
  | --- | --- |
114
- | `Button` | variants primary/secondary/ghost/danger, sizes, loading state |
114
+ | `Button` | variants primary/secondary/ghost/plain/danger, sizes, loading state |
115
+ | `IconButton` | a square button that shows only an icon; its required `aria-label` is the name and the tooltip |
115
116
  | `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 |
116
117
  | `Textarea` | multi-line input; grows with its content on request (`autoGrow`, `maxRows`), character counter (`showCount`) |
117
118
  | `RadioGroup` | one out of a few, each option with an optional explanatory line; one tab stop, arrow keys select |