@umriss-ui/core 0.7.0 → 0.8.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 +105 -0
- package/README.md +1 -1
- package/dist/core.css +1 -1
- package/dist/core.js +2054 -2038
- package/dist/index.d.ts +13 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -50,6 +50,111 @@ module on the caller's side that carries `"use client"` and imports from there.
|
|
|
50
50
|
|
|
51
51
|
---
|
|
52
52
|
|
|
53
|
+
## 0.8.0 – Motion, one stroke, one canon of states (Sep. 2026)
|
|
54
|
+
|
|
55
|
+
### Added
|
|
56
|
+
|
|
57
|
+
- **`--u-text-mono`** (`0.75rem`), the size of figures set in Geist Mono inside
|
|
58
|
+
a control or a cell, and **`--u-leading-none`** (`1`), the line height of a
|
|
59
|
+
box as tall as its type. Both carry exactly the value that stood written out
|
|
60
|
+
in eight and six places before; nothing moves.
|
|
61
|
+
|
|
62
|
+
- **A motion vocabulary** in `tokens.css`, naming the distinctions the
|
|
63
|
+
library makes: `--u-ease-exit` (an exit that starts at once),
|
|
64
|
+
`--u-duration-press` with `--u-transition-press` (the press point),
|
|
65
|
+
`--u-transition-path` (something turns or slides), `--u-duration-draw` and
|
|
66
|
+
`--u-delay-draw` (the checkbox's tick), `--u-duration-exit-fast` (a panel or
|
|
67
|
+
tooltip leaves), and for continuous processes `--u-duration-spin`,
|
|
68
|
+
`--u-duration-shimmer`, `--u-ease-steady` and `--u-ease-swell`. Every
|
|
69
|
+
motion in the library's stylesheets now reads one of them.
|
|
70
|
+
|
|
71
|
+
- **`CalendarGlyph`** (with `range`) and **`ClockGlyph`**, the date and time
|
|
72
|
+
pickers' characters, in the shared set beside `CrossGlyph` and the others.
|
|
73
|
+
|
|
74
|
+
- **Three pressed surfaces**: `--u-color-surface-pressed`,
|
|
75
|
+
`--u-color-accent-subtle-pressed` and `--u-color-danger-subtle-pressed`, the
|
|
76
|
+
step below the sunken, subtle-accent and subtle-danger hovers. Each holds
|
|
77
|
+
4.5:1 under the type that stands on it, in both themes.
|
|
78
|
+
|
|
79
|
+
### Changed
|
|
80
|
+
|
|
81
|
+
- **`--u-transition` runs on `--u-ease-out`.** The collective token for hover
|
|
82
|
+
and colour carried the CSS keyword `ease-out`; it now carries the library's
|
|
83
|
+
own curve (`cubic-bezier(0.22, 1, 0.36, 1)`), which until now reached only
|
|
84
|
+
the few transitions that named it. Every hover, focus-edge and colour change
|
|
85
|
+
in core, table, schedule and calculation starts more decisively and lands
|
|
86
|
+
more softly; its duration (120 ms) is unchanged. An application that
|
|
87
|
+
overrides `--u-transition` is not affected.
|
|
88
|
+
|
|
89
|
+
- **Exits leave instead of retracing.** `Modal` enters by scale and opacity
|
|
90
|
+
from its centre (the 8 px rise is gone) and leaves by fading where it
|
|
91
|
+
stands, on `--u-ease-exit` instead of `ease-in`; its backdrop follows the
|
|
92
|
+
same curves. The leaving `Toast` glides out on `--u-ease-exit` as well.
|
|
93
|
+
- **Press points take 80 ms.** The pressed glyphs of `Alert`, `Tag`,
|
|
94
|
+
`NumberInput` and the date picker's time stepper ran on the 120 ms of a
|
|
95
|
+
hover; they now take the button's press duration.
|
|
96
|
+
|
|
97
|
+
- **Overlays unfold from their trigger.** Every panel on `Popover` - `Menu`,
|
|
98
|
+
`ContextMenu`, the lists of `Combobox` and `MultiSelect`, the panels of the
|
|
99
|
+
four date pickers - enters by scale and opacity from its motion origin, the
|
|
100
|
+
corner facing its trigger (a panel below a start-aligned trigger grows from
|
|
101
|
+
its top left; a flipped one from its bottom). It used to slide 6 px. On
|
|
102
|
+
closing it stays for `--u-duration-exit-fast` (100 ms), inert, and fades
|
|
103
|
+
where it stands; it no longer disappears in the same frame. `Tooltip`
|
|
104
|
+
follows the same pattern from the edge facing its trigger, and each `Toast`
|
|
105
|
+
grows out of the bottom right corner it stands in. Under reduced motion all
|
|
106
|
+
of them appear and go at once. `Select` keeps the browser's own list.
|
|
107
|
+
|
|
108
|
+
- **Every glyph draws one stroke width at one nominal size** – 1.4 per 10
|
|
109
|
+
units, so the rendered stroke follows the size a glyph is set at. The
|
|
110
|
+
`Alert`, `Modal` and `Toast` close crosses, the `Tag` and `MultiSelect`
|
|
111
|
+
remove crosses are now `CrossGlyph`: the Modal's cross is slightly heavier,
|
|
112
|
+
the Tag's and the chip's slightly lighter. The calendar's paging arrows, the
|
|
113
|
+
`ButtonGroup` arrow and the `Combobox` tick go from 1.5 and 1.8 to 1.4.
|
|
114
|
+
The date pickers' calendar leaf and clock are drawn anew at nominal size 10
|
|
115
|
+
and set at 12 pixels instead of 13; the range picker's leaf shows a bar
|
|
116
|
+
instead of an arrow. The `Toast` tone symbols keep their look, drawn in the
|
|
117
|
+
nominal box, their dots as strokes. Held by a check (`docs/glyphs.md`).
|
|
118
|
+
|
|
119
|
+
- **One canon of interaction states.** Hover changes the surface, a press
|
|
120
|
+
changes it more strongly, focus is `--u-focus-ring` and nothing else, and
|
|
121
|
+
disabled dims to half and reacts to nothing. What that changes:
|
|
122
|
+
- *Pressed*: every quiet key now sinks while it is pressed - `Button`
|
|
123
|
+
`secondary` and `ghost`, the close keys of `Modal`, `Toast` and `Alert`, the
|
|
124
|
+
remove key of `Tag`, the clear keys of the fields, the steppers, the date
|
|
125
|
+
picker's pages, days and presets, the items of `Menu`, the options of
|
|
126
|
+
`Combobox` and `MultiSelect`, the rows of `TreeView` and `CommandPalette`,
|
|
127
|
+
the tools of `Dock`, the chips and the counter of `MultiSelect`, the
|
|
128
|
+
collapse key of `Card`, and the empty boxes of `Checkbox` and `RadioGroup`.
|
|
129
|
+
Before, only the primary and danger buttons darkened.
|
|
130
|
+
- *Focus*: a `Menu` item reached by the keyboard carries the ring instead of
|
|
131
|
+
the hover surface, and so does a `MultiSelect` chip, which showed its focus
|
|
132
|
+
in the danger surface.
|
|
133
|
+
- *Disabled*: the fields (`Input`, `Textarea`, `Select`, `Combobox`,
|
|
134
|
+
`NumberInput`, `MultiSelect`, the date pickers' trigger and time fields),
|
|
135
|
+
`Checkbox`, a `Tabs` tab, a `Menu` item, a `Combobox` option and a `Dock`
|
|
136
|
+
tool dim to half opacity, as `Button` and `RadioGroup` always did, instead
|
|
137
|
+
of being repainted in a sunken ground and muted type. A disabled `Dock`
|
|
138
|
+
tool shows the not-allowed cursor.
|
|
139
|
+
- `Checkbox` has a hover edge on its empty box, as `RadioGroup` has.
|
|
140
|
+
- `NumberInput`'s steppers settle on the glyph (0.8) like the date picker's,
|
|
141
|
+
instead of scaling the whole key to 0.9.
|
|
142
|
+
|
|
143
|
+
### Fixed
|
|
144
|
+
|
|
145
|
+
- **Disabled elements reacted underneath.** A disabled `Tabs` tab darkened
|
|
146
|
+
under the pointer; a disabled time stepper of the date pickers came back to
|
|
147
|
+
full presence and its hover surface when the pointer entered its group; the
|
|
148
|
+
× of a disabled `MultiSelect` chip appeared under the pointer; and the
|
|
149
|
+
pointer moved `Combobox`'s cursor onto a disabled option (the arrow keys
|
|
150
|
+
still reach it).
|
|
151
|
+
- **A hover took the focus ring away.** On a focused `Button` `secondary`,
|
|
152
|
+
`Checkbox` or `RadioGroup` the hover edge replaced the ring while the pointer
|
|
153
|
+
rested on it; on the date pickers the chosen day, the ends of a range and the
|
|
154
|
+
preview's end dropped the ring the same way.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
53
158
|
## 0.7.0 – A text token for danger (Sep. 2026)
|
|
54
159
|
|
|
55
160
|
### Added
|
package/README.md
CHANGED
|
@@ -143,7 +143,7 @@ The table and the alarm list are not part of this package. They live in
|
|
|
143
143
|
| `TreeView` / `TreeSearch` / `useTree` | a tree with exactly one active node and optional ticking (cascade, indeterminate, locked, unloaded); arrow keys, type to jump, range selection, virtualisation. The search keeps its term in the tree |
|
|
144
144
|
| `Stat` | a metric: one value, read against its limits – the verdict as a word and a colour, the deviation from the target value, history and freshness |
|
|
145
145
|
| `CommandPalette` / `useCommandPaletteShortcut` | a command palette: subsequence search with rank and highlighted finds, groups, a populated resting state; opens on Ctrl/⌘+K and `/` |
|
|
146
|
-
| `CrossGlyph` / `PlusGlyph` / `MinusGlyph` / `
|
|
146
|
+
| `CrossGlyph` / `PlusGlyph` / `MinusGlyph` / `AngleGlyph` / `CalendarGlyph` / `ClockGlyph` / `GripGlyph` / `GridGlyph` / `MeasureGlyph` | the shared character set, one stroke width at one nominal size; specification in `docs/glyphs.md` |
|
|
147
147
|
| `Sparkline` | a miniature history line with an area gradient and an accent end point – for trends in cells |
|
|
148
148
|
| `Spinner` | a functional loading indicator |
|
|
149
149
|
|