@umriss-ui/core 0.15.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,109 @@ 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
+
73
+ ## 0.16.0 – A toast of its own, and room on a phone (Sep. 2026)
74
+
75
+ ### Added
76
+
77
+ - **A toast takes one `action`** (`{ label, onClick }`) - "Undo", "Show".
78
+ Pressing it runs `onClick` and closes the toast. More than one action is a
79
+ dialog.
80
+ - **`onClose(reason)`** on a toast, called once when it goes: `"timeout"`,
81
+ `"dismiss"` (closed, `dismiss(id)`, or pushed out by a newer toast) or
82
+ `"action"`. New types `ToastAction` and `ToastCloseReason`.
83
+ - **`update(id, options)`** from `useToast`, and the tone **`loading`**: a
84
+ spinner in the glyph's place, no close button, no timer. `update` turns it
85
+ into its outcome in place; a new tone or a new `duration` starts the time
86
+ afresh.
87
+ - **`toast.position`** in the `UmrissProvider` (`ToastPosition`: `top-start`,
88
+ `top-center`, `top-end`, `bottom-start`, `bottom-center`, `bottom-end`;
89
+ default `bottom-end`) and **`toast.limit`** (default 3).
90
+ - **Alt+T** moves the focus into the toasts, Escape gives it back. The
91
+ toasts' region carries the name of the new wording entry `toastRegion`
92
+ while a toast stands; the deck's count is named by `toastDeckCount`
93
+ (English and German).
94
+
95
+ ### Changed
96
+
97
+ - **The toast has a shape of its own.** A fixed width of 360px (on a phone the
98
+ window's width less 16px), a tone rail at its edge, and the glyph as the
99
+ first character of the title, 16px, with no disc behind it - a wrapped title
100
+ returns to the left edge. Danger, warning and neutral draw a ring, a
101
+ triangle and a ring around their marks.
102
+ - **Several toasts stand as a deck**: the newest in front with a count
103
+ ("1 / 3"), two edges behind it. The deck opens under the pointer, with the
104
+ keyboard focus inside it, on its count, or with Alt+T; while it is open,
105
+ every countdown stands still - before, only the toast under the pointer
106
+ held, and the keyboard focus held none.
107
+ - **At most three toasts stand at once.** The oldest gives way to a new one,
108
+ as if closed (`toast.limit` sets another number). Before, they stacked up
109
+ without an end.
110
+ - **A horizontal `Stepper` measures its room.** Too narrow for each label on
111
+ one line beside its marker, the labels stand beneath the markers; narrower
112
+ still - five steps on a phone - the steps take a column, as
113
+ `orientation="vertical"` does. The list says which as `data-fit` (`row`,
114
+ `stacked`, `column`). Before, the labels ran into each other and the lines
115
+ struck them through.
116
+ - **`CardHeader`'s actions wrap beneath the title** once the title would get
117
+ less than 8rem beside them. Without actions and without folding, the
118
+ header renders no empty actions area.
119
+ - **`Checkbox` and `Switch` stand at the label's first line**, not at the
120
+ middle of a label that wraps.
121
+
122
+ ### Fixed
123
+
124
+ - **The pickers' clearing cross no longer covers the value.** On a touch
125
+ screen it stands for good, and in a field as narrow as its value it lay on
126
+ the last digits ("18.03.2026").
127
+ - **`FileInput`'s file list stays inside the zone**: a long name ends in an
128
+ ellipsis, and its size and cross stay in sight.
129
+ - **A clearable `Input` of `type="search"` shows one cross**, not the
130
+ browser's beside its own; a text wider than any `Input` ends in an ellipsis.
131
+ - **`Textarea`'s count stands clear of the resize grip.**
132
+
133
+ ---
134
+
32
135
  ## 0.15.0 – A step for dense surfaces (Sep. 2026)
33
136
 
34
137
  ### 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 |
@@ -124,7 +125,7 @@ The table and the alarm list are not part of this package. They live in
124
125
  | `Input` / `Select` / `Checkbox` | form elements; `Input numeric` in Geist Mono, `Input clearable` with a softly fading-in × button (clears without losing focus); `Checkbox indeterminate` |
125
126
  | `Modal` / `ModalHeader` / `ModalBody` / `ModalFooter` | dialogs built on `<dialog>`; free space is distributed in the golden ratio (38 : 62) above and below the surface – small modals sit in the upper third, long ones use the full height, and only the body scrolls while head and foot stay put |
126
127
  | `ConfirmDialog` | a compact confirmation dialog, `tone="danger"` for destructive actions, loading state |
127
- | `ToastProvider` / `useToast` | stacked status messages at the bottom right, four tones, auto-dismiss, `aria-live` |
128
+ | `ToastProvider` / `useToast` | passing messages as a deck at one of six places: four tones and `loading`, one action, `update` in place, a close reason, a limit, Alt+T, `aria-live` |
128
129
  | `Menu` / `MenuItem` / `MenuSeparator` | a dropdown menu with a portal panel, arrow-key navigation, `tone="danger"` |
129
130
  | `ContextMenu` | the same menu opened at a point in the viewport - for a right-click on a surface that is not a button; controlled, focus returns to where it was |
130
131
  | `Tooltip` | help text on hover and keyboard focus, inverted (ink surface), portal |