@umriss-ui/core 0.16.0 → 0.18.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,67 @@ 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.18.0 – Buttons a step tighter (Sep. 2026)
33
+
34
+ ### Added
35
+
36
+ - **`--u-button-padding`** (10px) and **`--u-button-padding-sm`** (6px), the
37
+ room left and right of a button's label at `md` and `sm`.
38
+
39
+ ### Changed
40
+
41
+ - **Buttons are tighter still**: 10px of room a side at `md` (12px in 0.17.0),
42
+ 6px at `sm` (8px), chosen on a rendered comparison of three steps. The
43
+ heights, the type and the icon size stay; an `IconButton` stays square, and
44
+ a `SplitButton`'s menu trigger keeps 8px a side, so that it stays a 24px
45
+ target.
46
+ - **The date pickers' "Today" and "Clear" and the MultiSelect's "All", "None"
47
+ and "Invert"** hang out by the new padding, so that their words still stand
48
+ on the edge they align with.
49
+
50
+ ---
51
+
52
+ ## 0.17.0 – Tighter buttons, and a button for an icon (Sep. 2026)
53
+
54
+ ### Added
55
+
56
+ - **`IconButton`**, a button that shows only an icon: square at the control
57
+ heights (32px, 26px at `sm`), with a required `aria-label` that is its
58
+ accessible name and always shows as its tooltip. The icon is the children -
59
+ an SVG, a glyph of the set or an icon font's element - and the button sets
60
+ its size. Everything else is a `Button`'s: the sizes, `loading` (the spinner
61
+ takes the icon's place), `disabled`, and the variants, with `plain` as the
62
+ default. It anchors a `Menu` as its trigger. It takes no `aria-labelledby`
63
+ and no `title`, which would part the name from the tooltip. New type
64
+ `IconButtonProps`.
65
+ - **`plain`**, a fifth variant of `Button` and `IconButton`: no ground, the
66
+ secondary text colour, the sunken surface and the full text colour under the
67
+ pointer. `ghost` stays quiet in the accent.
68
+ - **`--u-icon-size`** (14px) and **`--u-icon-size-sm`** (12px), the size of
69
+ the icon in a button at `md` and `sm`.
70
+
71
+ ### Changed
72
+
73
+ - **Buttons are tighter**: 12px of room a side at `md` (was 16px), 8px at `sm`
74
+ (was 12px). The heights stay.
75
+ - **A `Button` sizes the SVG among its children**: a direct `svg` child of its
76
+ label stands at `--u-icon-size`, `--u-icon-size-sm` at `sm` - the size an
77
+ `IconButton` gives its icon. A `width` and `height` on that SVG no longer
78
+ apply. The loading spinner takes the same size.
79
+ - **A `Tooltip` opens for keyboard focus only**, not for the focus a click
80
+ leaves behind: after a click the tip came back over what the click had
81
+ started, and a dialog opened by the pointer showed its close button's tip.
82
+ - **A `Tooltip` no longer describes its trigger with the words that name it**:
83
+ a tip whose content equals the trigger's `aria-label` sets no
84
+ `aria-describedby`, so the dock's tools, among others, are announced once.
85
+ - **`Tooltip` and `Menu` keep their trigger's ref** beside their own, instead
86
+ of replacing it.
87
+ - **The Modal's close button and the calendar's month paging are
88
+ `IconButton`s**: 26px squares (they were 28px and 24px) with their name as a
89
+ tooltip.
90
+
91
+ ---
92
+
32
93
  ## 0.16.0 – A toast of its own, and room on a phone (Sep. 2026)
33
94
 
34
95
  ### 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 |