@umriss-ui/core 0.14.1 → 0.16.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,84 @@ 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.16.0 – A toast of its own, and room on a phone (Sep. 2026)
33
+
34
+ ### Added
35
+
36
+ - **A toast takes one `action`** (`{ label, onClick }`) - "Undo", "Show".
37
+ Pressing it runs `onClick` and closes the toast. More than one action is a
38
+ dialog.
39
+ - **`onClose(reason)`** on a toast, called once when it goes: `"timeout"`,
40
+ `"dismiss"` (closed, `dismiss(id)`, or pushed out by a newer toast) or
41
+ `"action"`. New types `ToastAction` and `ToastCloseReason`.
42
+ - **`update(id, options)`** from `useToast`, and the tone **`loading`**: a
43
+ spinner in the glyph's place, no close button, no timer. `update` turns it
44
+ into its outcome in place; a new tone or a new `duration` starts the time
45
+ afresh.
46
+ - **`toast.position`** in the `UmrissProvider` (`ToastPosition`: `top-start`,
47
+ `top-center`, `top-end`, `bottom-start`, `bottom-center`, `bottom-end`;
48
+ default `bottom-end`) and **`toast.limit`** (default 3).
49
+ - **Alt+T** moves the focus into the toasts, Escape gives it back. The
50
+ toasts' region carries the name of the new wording entry `toastRegion`
51
+ while a toast stands; the deck's count is named by `toastDeckCount`
52
+ (English and German).
53
+
54
+ ### Changed
55
+
56
+ - **The toast has a shape of its own.** A fixed width of 360px (on a phone the
57
+ window's width less 16px), a tone rail at its edge, and the glyph as the
58
+ first character of the title, 16px, with no disc behind it - a wrapped title
59
+ returns to the left edge. Danger, warning and neutral draw a ring, a
60
+ triangle and a ring around their marks.
61
+ - **Several toasts stand as a deck**: the newest in front with a count
62
+ ("1 / 3"), two edges behind it. The deck opens under the pointer, with the
63
+ keyboard focus inside it, on its count, or with Alt+T; while it is open,
64
+ every countdown stands still - before, only the toast under the pointer
65
+ held, and the keyboard focus held none.
66
+ - **At most three toasts stand at once.** The oldest gives way to a new one,
67
+ as if closed (`toast.limit` sets another number). Before, they stacked up
68
+ without an end.
69
+ - **A horizontal `Stepper` measures its room.** Too narrow for each label on
70
+ one line beside its marker, the labels stand beneath the markers; narrower
71
+ still - five steps on a phone - the steps take a column, as
72
+ `orientation="vertical"` does. The list says which as `data-fit` (`row`,
73
+ `stacked`, `column`). Before, the labels ran into each other and the lines
74
+ struck them through.
75
+ - **`CardHeader`'s actions wrap beneath the title** once the title would get
76
+ less than 8rem beside them. Without actions and without folding, the
77
+ header renders no empty actions area.
78
+ - **`Checkbox` and `Switch` stand at the label's first line**, not at the
79
+ middle of a label that wraps.
80
+
81
+ ### Fixed
82
+
83
+ - **The pickers' clearing cross no longer covers the value.** On a touch
84
+ screen it stands for good, and in a field as narrow as its value it lay on
85
+ the last digits ("18.03.2026").
86
+ - **`FileInput`'s file list stays inside the zone**: a long name ends in an
87
+ ellipsis, and its size and cross stay in sight.
88
+ - **A clearable `Input` of `type="search"` shows one cross**, not the
89
+ browser's beside its own; a text wider than any `Input` ends in an ellipsis.
90
+ - **`Textarea`'s count stands clear of the resize grip.**
91
+
92
+ ---
93
+
94
+ ## 0.15.0 – A step for dense surfaces (Sep. 2026)
95
+
96
+ ### Added
97
+
98
+ - **`--u-control-height-xs`** (18px), the small control on a dense surface.
99
+ `@umriss-ui/table` gives it to the fields and buttons inside a table at
100
+ `density="compact"`, under a fine pointer. Like every token it can be
101
+ overridden at `:root`.
102
+
103
+ ### Fixed
104
+
105
+ - **`NumberInput size="sm"`'s steppers are never taller than the field.**
106
+ At a field shorter than 21px they stood out above and below it.
107
+
108
+ ---
109
+
32
110
  ## 0.14.1 – Found by search (Sep. 2026)
33
111
 
34
112
  ### Fixed
package/README.md CHANGED
@@ -124,7 +124,7 @@ The table and the alarm list are not part of this package. They live in
124
124
  | `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
125
  | `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
126
  | `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` |
127
+ | `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
128
  | `Menu` / `MenuItem` / `MenuSeparator` | a dropdown menu with a portal panel, arrow-key navigation, `tone="danger"` |
129
129
  | `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
130
  | `Tooltip` | help text on hover and keyboard focus, inverted (ink surface), portal |