@umriss-ui/core 0.19.0 → 0.21.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 +64 -0
- package/README.md +17 -7
- package/dist/core.css +1 -1
- package/dist/core.js +3712 -3640
- package/dist/index.d.ts +114 -19
- package/docs/llms-full.md +8445 -7511
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -29,6 +29,70 @@ 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.21.0 – Fields that hold still (Oct. 2026)
|
|
33
|
+
|
|
34
|
+
A field's width no longer follows what it shows, and one size reaches every
|
|
35
|
+
control in a place (ADR-0041). The new demo page **Sizes** shows both.
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
|
|
39
|
+
- **`chars`** on `Input`, `Textarea`, `Select`, `Combobox`, `MultiSelect`,
|
|
40
|
+
`NumberInput` and the four date pickers: the width in characters of the
|
|
41
|
+
field's own type - the room for its value, with its padding, glyph, cross and
|
|
42
|
+
steppers added. A postcode is `chars={5}`, an IBAN `chars={27}`. Given, the
|
|
43
|
+
field is that wide in every place, and never wider than its place.
|
|
44
|
+
- **`ControlSizeProvider`** (with the type **`ControlSize`**): every control
|
|
45
|
+
with two heights inside it takes its `size` - `Input`, `Textarea`,
|
|
46
|
+
`NumberInput`, `Select`, `Combobox`, `MultiSelect`, the date pickers,
|
|
47
|
+
`Button`, `IconButton`, `ButtonGroup`, `SplitButton`, `Switch`, `RadioGroup`.
|
|
48
|
+
A control's own `size` wins; a popover, dialog, drawer or tooltip opened from
|
|
49
|
+
inside starts without it.
|
|
50
|
+
- **`size` on `ButtonGroup`**, for the buttons in it that say none.
|
|
51
|
+
- **Demo:** the page **Sizes** after FormField - a field that fills its place,
|
|
52
|
+
sized to its value, a row that holds still while values are chosen (its
|
|
53
|
+
widths measured live), one size for a place, narrow places.
|
|
54
|
+
|
|
55
|
+
### Changed
|
|
56
|
+
|
|
57
|
+
- **A field's width never follows what it shows.** Its root is a block: in a
|
|
58
|
+
form's column, a grid's cell or a dialog it fills its place, as before. Where
|
|
59
|
+
the place asks it instead - a row, a toolbar, a column lined up at the start,
|
|
60
|
+
a cell sized by its content - it is its natural width: 16 characters for a
|
|
61
|
+
text field, select and combobox, 20 for a multiselect, 10 for a number, 40
|
|
62
|
+
for a textarea, the longest value of its formats for a date picker. Its
|
|
63
|
+
value, its options, its chips and its files no longer move it: a multiselect
|
|
64
|
+
stood 83, 96 and 133 px wide for none, one and two values in a toolbar, and
|
|
65
|
+
a select as wide as its longest option. In a row, a field used to take the
|
|
66
|
+
whole row's width; give it room with the row's own layout (`flex: 1`, a
|
|
67
|
+
grid).
|
|
68
|
+
- **A field is never wider than its place**, and what does not fit ends in an
|
|
69
|
+
ellipsis - a range of instants scrolled a 320 px page sideways. A
|
|
70
|
+
`FormField` is never wider than its place either, and its hint or error
|
|
71
|
+
wraps inside its field's width instead of widening it.
|
|
72
|
+
- **`Select`'s `selectSize` is now `size`**, as on every other field, with no
|
|
73
|
+
alias. The native `size` of the `<select>` is left out.
|
|
74
|
+
- **`Input` and `Textarea` always render their wrapper**, and on every wrapped
|
|
75
|
+
field - `Input`, `Textarea`, `Select`, `NumberInput`, `Checkbox`, `Switch`,
|
|
76
|
+
`Slider`, `FileInput` - **`className` and `style` land on the wrapper**, ref
|
|
77
|
+
and every other attribute on the control. `<Input style={{ width: 120 }} />`
|
|
78
|
+
sizes the field. A `style` meant for the native control itself now dresses
|
|
79
|
+
the wrapper.
|
|
80
|
+
- **`Textarea` no longer takes `cols`**; it never reached the screen.
|
|
81
|
+
- **Every control with `size` follows a `ControlSizeProvider`** around it.
|
|
82
|
+
- **The combobox's panel is never narrower than 200 px**, as the
|
|
83
|
+
multiselect's is never narrower than 260.
|
|
84
|
+
- **Under a finger** a text field's root writes at the field's 16 px, so a
|
|
85
|
+
width in characters holds there too.
|
|
86
|
+
|
|
87
|
+
## 0.20.0 – A small multiselect and combobox (Oct. 2026)
|
|
88
|
+
|
|
89
|
+
### Added
|
|
90
|
+
|
|
91
|
+
- **`size` on `MultiSelect` and `Combobox`**, `"sm"` or `"md"` (the default) -
|
|
92
|
+
`Input`'s two sizes, so that a field of one's own stands level with the
|
|
93
|
+
search in a table toolbar. The chips keep their size. `Select` has the same
|
|
94
|
+
under `selectSize`, since `size` is the native element's own.
|
|
95
|
+
|
|
32
96
|
## 0.19.0 – A tree model that takes a match (Oct. 2026)
|
|
33
97
|
|
|
34
98
|
### Added
|
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ The table and the alarm list are not part of this package. They live in
|
|
|
122
122
|
| `VisuallyHidden` | text for the screen reader only; `focusable` turns it into a skip link |
|
|
123
123
|
| `ButtonGroup` / `SplitButton` | connected buttons; a main action plus variants through the existing menu |
|
|
124
124
|
| `Text` / `Heading` / `Link` | typography on the token scale; for `Heading`, level and size are independent |
|
|
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
|
+
| `Input` / `Select` / `Checkbox` | form elements; `Input numeric` in Geist Mono, `Input clearable` with a softly fading-in × button (clears without losing focus); `Checkbox indeterminate`; every field fills its place or is its natural width, never what it shows, and takes `chars` for a width in characters (ADR-0041) |
|
|
126
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 |
|
|
127
127
|
| `ConfirmDialog` | a compact confirmation dialog, `tone="danger"` for destructive actions, loading state |
|
|
128
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` |
|
|
@@ -135,12 +135,13 @@ The table and the alarm list are not part of this package. They live in
|
|
|
135
135
|
| `Stack` / `Grid` | layout primitives with token spacing (a 4 px step), `Grid` fixed or responsive via `minItemWidth` |
|
|
136
136
|
| `DatePicker` | calendar selection: weeks from Monday, arrow keys across the month, today/clear, the date in Geist Mono |
|
|
137
137
|
| `DateTimePicker` | date plus time: two-digit fields that advance automatically, visible up/down steppers and arrow-key counting; after the day is chosen the focus jumps into the time, `withSeconds`, "now"; the clock change is handled honestly – a missing hour (the start of summer time) is detected and corrected forwards with a note, a duplicated hour (the start of winter time) offers the choice between both occurrences including the UTC offset |
|
|
138
|
-
| `Combobox` | a searchable select field (listbox panel, arrow keys, `aria-activedescendant`), optionally `clearable` |
|
|
139
|
-
| `MultiSelect` | multiple selection: the field always stays on one line and measures the space (as many chips as fit, the rest as "+N"); chips are remove buttons (hover shows ×, a click deletes, backspace deletes the last, roving tabindex with arrow keys), and the "+N" counter opens the selected view directly; a panel with a search field (autofocus, Enter toggles the first hit), a view switch "all \| selected (N)" (the list always in natural order, deselected rows stay visible in the selected view until the view changes), and all/none/invert acting on the filtered set of the active view |
|
|
138
|
+
| `Combobox` | a searchable select field (listbox panel, arrow keys, `aria-activedescendant`), optionally `clearable`; `Input`'s two sizes |
|
|
139
|
+
| `MultiSelect` | multiple selection: the field always stays on one line and measures the space (as many chips as fit, the rest as "+N"); chips are remove buttons (hover shows ×, a click deletes, backspace deletes the last, roving tabindex with arrow keys), and the "+N" counter opens the selected view directly; a panel with a search field (autofocus, Enter toggles the first hit), a view switch "all \| selected (N)" (the list always in natural order, deselected rows stay visible in the selected view until the view changes), and all/none/invert acting on the filtered set of the active view; `Input`'s two sizes |
|
|
140
140
|
| `Card` / `CardHeader` / `CardBody` | panels with an eyebrow, actions, optionally collapsible; `flush` for borderless tables; a dividing line under the head only through `divider` (for borderless data) – otherwise white space carries the hierarchy |
|
|
141
141
|
| `Badge` | a status label with a dot, five tones; slightly rounded by default, `pill` for counters |
|
|
142
142
|
| `NumberInput` | numeric input in the notation the formats seam provides (group separators on leaving the field; it reads back what it writes, whatever the notation), `decimals` (0 = whole numbers), `min`/`max`, arrow keys with Shift ×10, an integrated spinner column at the right inner edge, `prefix`/`suffix` adornments (€, %) |
|
|
143
143
|
| `Meter` | a narrow fill bar (0–1) with a mono percentage label, five tones – for utilisation in cells; `label` names what is being measured |
|
|
144
|
+
| `ControlSizeProvider` | one size for the controls in a place - a toolbar, a dense form: every control with `size` inside takes it unless it says its own. A popover, dialog or tooltip opened from there starts without it |
|
|
144
145
|
| `UmrissProvider` | one place to set things: density, portal target, toasts, language. **Optional** – without it everything behaves as it does unconfigured. It holds no theme (light and dark are the application's `color-scheme`) and writes nothing onto the document |
|
|
145
146
|
| `LanguageProvider` / `useFormats` / `useWording` | formatting and wording as an overridable seam; the wording is a directory of entries, not a translation call. English is the default, German ships as `@umriss-ui/core/wording/de` |
|
|
146
147
|
| `Dock` | a tool strip over *one* surface: four named resting places at the edges of the host, moved by the grip (dragging snaps, the four arrow keys are the four places), orientation follows the edge; translucent material like the palette; a place without room refuses visibly; `mode` marks at most one tool and belongs to the caller |
|
|
@@ -174,8 +175,9 @@ The table and the alarm list are not part of this package. They live in
|
|
|
174
175
|
`ConfirmDialog` and `CommandPalette`, the field's wrapper of the pickers
|
|
175
176
|
and the combobox family, the `role="tree"` list of `TreeView`. The native
|
|
176
177
|
fields that wear a wrapper (`Checkbox`, `Switch`, `Slider`, `NumberInput`,
|
|
177
|
-
`Select`, `FileInput`,
|
|
178
|
-
ref and rest on the
|
|
178
|
+
`Select`, `FileInput`, `Input`, `Textarea`) put the class and the style on
|
|
179
|
+
the wrapper - what a caller dresses and sizes - and ref and rest on the
|
|
180
|
+
control (ADR-0041). The component's own
|
|
179
181
|
`role`, the `aria-*` it computes and its handlers are not replaced by
|
|
180
182
|
`rest`: a caller's handler runs first and can `preventDefault`. Held by
|
|
181
183
|
`tests-unit/passthrough.test.tsx`, which renders every export.
|
|
@@ -193,13 +195,21 @@ The table and the alarm list are not part of this package. They live in
|
|
|
193
195
|
reversed ADR-0015). What still stands from ADR-0015 is the spelling of the
|
|
194
196
|
accessible name: it is `aria-label` where it names the root element, and
|
|
195
197
|
`ariaLabel` only where it does not.
|
|
198
|
+
7. A field's root composes `extent` from `#own-styles`: it fills the place
|
|
199
|
+
that gives it a width, is its natural width where the place asks, and is
|
|
200
|
+
never wider than its place; what it shows never moves it (ADR-0041). A field
|
|
201
|
+
that shows text takes `chars` and sets its chrome; every control with two
|
|
202
|
+
heights takes `size` and reads it through `useControlSize`, so a
|
|
203
|
+
`ControlSizeProvider` reaches it, and a surface of its own resets it.
|
|
204
|
+
Held by `tests-unit/controlSize.test.tsx` and
|
|
205
|
+
`tests-visual/features-sizes.spec.ts`.
|
|
196
206
|
|
|
197
207
|
## Roadmap
|
|
198
208
|
|
|
199
209
|
The core scope is complete, and so are the command palette, `Dock`, the
|
|
200
210
|
danger text tone, the pass-through of rules 1 and 2 above, the six basic
|
|
201
|
-
components and the layout extras, forced colours
|
|
202
|
-
announcements. What is still open is one check a person makes: the listbox
|
|
211
|
+
components and the layout extras, forced colours, the listbox
|
|
212
|
+
announcements, and the fields' widths and sizes (ADR-0041). What is still open is one check a person makes: the listbox
|
|
203
213
|
announcements heard through VoiceOver (`.scratch/listbox-announcements/`,
|
|
204
214
|
ticket 02).
|
|
205
215
|
|