@umriss-ui/core 0.54.0 → 0.55.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/API.md +33 -2
- package/CHANGELOG.md +15 -0
- package/README.md +2 -1
- package/dist/core.css +1 -1
- package/dist/core.js +4176 -3819
- package/dist/de.d.ts +35 -0
- package/dist/index.d.ts +93 -2
- package/dist/wording/de.js +23 -0
- package/docs/llms-full.md +509 -106
- package/package.json +1 -1
package/API.md
CHANGED
|
@@ -19,6 +19,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
19
19
|
- CardHeader — The head of a `Card`: title, an optional eyebrow and actions on the right.
|
|
20
20
|
- Checkbox — A native checkbox with its label beside it; `indeterminate` shows the mixed state.
|
|
21
21
|
- ClockGlyph — A clock face at a quarter past - the time pickers' character.
|
|
22
|
+
- ColorPicker — A colour field: a trigger with the colour's swatch and hex value, and a panel with the saturation and brightness square, the hue strip, the hex field, the red, green and blue fields, the eyedropper where the browser has one, the application's own swatches, the contrast against light and dark surfaces, the colour as it was when the panel opened beside the colour now, Cancel and Done.
|
|
22
23
|
- Combobox — A searchable select field (the combobox pattern with a listbox panel).
|
|
23
24
|
- CommandPalette — A window above the application in which one types and finds: it searches `items` by subsequence, ranks and marks the matches, and reports the chosen candidate's `id` to `onChoose`.
|
|
24
25
|
- ConfirmDialog — Compact confirmation dialog on the basis of Modal.
|
|
@@ -31,6 +32,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
31
32
|
- DateTimeRangePicker — A time span with times at both ends - the same interaction logic as the DateRangePicker, extended by times, without sacrificing the lightness: - Two clicks set the days (backwards allowed, the ends swap silently), after which the focus jumps straight into the first time field: type 0800, slide on, type 1700, Enter - done.
|
|
32
33
|
- Divider — A line between rows or columns; with `label` a named separator.
|
|
33
34
|
- Drawer — A `Modal` that stands at an edge of the window and enters from it - the same dialog with the same head, body and foot.
|
|
35
|
+
- DropperGlyph — An eyedropper: a pipette with its bulb at the top and its tip at the bottom left.
|
|
34
36
|
- EmptyState — An empty surface as an invitation to act - not as a dead end.
|
|
35
37
|
- EndGlyph — The chevron against a bar: the last step of a sequence.
|
|
36
38
|
- FileInput — A file field with a drop zone: choose or drop files, and remove them from the list again.
|
|
@@ -167,6 +169,8 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
167
169
|
- CardHeaderProps — The props of `CardHeader`: a div's attributes, with `title` taking a node instead of the HTML attribute.
|
|
168
170
|
- CardProps — The props of `Card`.
|
|
169
171
|
- CheckboxProps — The props of `Checkbox`: a native checkbox's attributes and its label.
|
|
172
|
+
- ColorPickerProps — The props of `ColorPicker`: the field's value contract (ADR-0081) with a hex colour for the value.
|
|
173
|
+
- ColorSwatch — A named colour: an entry of `swatches`, or a surface in `contrastAgainst`. [name, value]
|
|
170
174
|
- ComboboxOption — One possibility of a `Combobox`: the value it stands for and the label it is found by. [value, label, disabled]
|
|
171
175
|
- ComboboxProps — The props of `Combobox`.
|
|
172
176
|
- CommandPaletteItem — A candidate the palette can find - the outside of the term CONTEXT.md lists under "Finding" as a Candidate. [id, label, group, searchedGroup, icon, weight, keywords]
|
|
@@ -223,6 +227,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
223
227
|
- NumberFormat — How a number is written: a share, a count, or Intl's options.
|
|
224
228
|
- NumberInputProps — The props of `NumberInput`: a native input's attributes, with the value a number or `null`.
|
|
225
229
|
- NumberOptions — Intl's number options, plus `decimals`: the shorthand for the minimum and the maximum fraction digits.
|
|
230
|
+
- PopoverCloseReason — Why a popover asks to close: Escape, a click outside, a scroll (`hideOnScroll`), the anchor clipped away by a scrolling container, a Tab out of the panel (`closeOnTabOut`).
|
|
226
231
|
- PopoverProps — The props of `Popover`.
|
|
227
232
|
- PortalTarget — Where overlays portal to.
|
|
228
233
|
- PressPoint — Where the finger stands, in client coordinates. [x, y]
|
|
@@ -433,6 +438,25 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
433
438
|
- size?: number — Edge length in pixels. (default: 12)
|
|
434
439
|
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
435
440
|
|
|
441
|
+
### ColorPicker
|
|
442
|
+
|
|
443
|
+
#### props (ColorPickerProps)
|
|
444
|
+
|
|
445
|
+
- value?: string | null — The colour as a hex string - `#2563eb`, `2563EB` and `#26e` are read; `null` means none.
|
|
446
|
+
- defaultValue?: string | null — Uncontrolled: the colour to start at. (default: null)
|
|
447
|
+
- onValueChange?: (value: string | null) => void — Runs on every settled step - a hex value as soon as it is a whole colour - and once more with the colour the panel opened with when Cancel or Escape put it back.
|
|
448
|
+
- placeholder?: string — What stands in the empty field.
|
|
449
|
+
- clearable?: boolean — A cross on the trigger and Clear in the panel set `null`. (default: false)
|
|
450
|
+
- disabled?: boolean — Locks the field and the panel. (default: false)
|
|
451
|
+
- invalid?: boolean — Marks the field as invalid.
|
|
452
|
+
- size?: "sm" | "md" — `sm` for a toolbar and dense forms, `md` otherwise. (default: the size of a `ControlSizeProvider` around it, else `"md"`)
|
|
453
|
+
- chars?: number — The width in characters - room for the value; the field adds its own padding, swatch and chevron.
|
|
454
|
+
- swatches?: readonly ColorSwatch[] — The application's own colours as one-click choices in the panel, named for a screen reader and on hover; the one matching the colour is pressed. (default: no default)
|
|
455
|
+
- contrastAgainst?: readonly ColorSwatch[] — The surfaces the panel measures the colour against, each with its contrast ratio and Pass or Fail at 3:1 (WCAG 1.4.11 - for marks and lines, not text). (default: core's light and dark surface)
|
|
456
|
+
- ref?: Ref<HTMLButtonElement> | undefined — Receives the component's root element.
|
|
457
|
+
- name?: string — Posts the value under this name in a `<form>` (a hidden input), as a native control would; empty posts `""`.
|
|
458
|
+
- formValue?: (value: string) => string — Replaces the default text a value is posted as.
|
|
459
|
+
|
|
436
460
|
### Combobox
|
|
437
461
|
|
|
438
462
|
#### props (ComboboxProps)
|
|
@@ -611,6 +635,13 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
611
635
|
- closeOnBackdrop?: boolean — Closes on a click on the backdrop. (default: true)
|
|
612
636
|
- ref?: Ref<HTMLDialogElement> | undefined — Receives the component's root element.
|
|
613
637
|
|
|
638
|
+
### DropperGlyph
|
|
639
|
+
|
|
640
|
+
#### props (GlyphProps)
|
|
641
|
+
|
|
642
|
+
- size?: number — Edge length in pixels. (default: 12)
|
|
643
|
+
- ref?: Ref<SVGSVGElement> | undefined — Receives the component's root element.
|
|
644
|
+
|
|
614
645
|
### EmptyState
|
|
615
646
|
|
|
616
647
|
#### props (EmptyStateProps)
|
|
@@ -864,7 +895,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
864
895
|
#### props (PopoverProps)
|
|
865
896
|
|
|
866
897
|
- open: boolean — Whether the surface stands.
|
|
867
|
-
- onOpenChange: (open: boolean) => void — Reports every wish to change the state – outside click, Escape, scrolling.
|
|
898
|
+
- onOpenChange: (open: boolean, reason?: PopoverCloseReason) => void — Reports every wish to change the state – outside click, Escape, scrolling.
|
|
868
899
|
- anchorRef: RefObject<HTMLElement | null> — Trigger the panel hangs from (the reference for the position).
|
|
869
900
|
- focusRef?: RefObject<HTMLElement | null> — Element that receives the focus on closing. (default: anchorRef)
|
|
870
901
|
- insideRefs?: ReadonlyArray<RefObject<HTMLElement | null>> — Further elements whose click does not count as an outside click (e.g. the clear ×).
|
|
@@ -1403,4 +1434,4 @@ Generated by the props step (`pnpm --filter @umriss-ui/core props`); do not edit
|
|
|
1403
1434
|
|
|
1404
1435
|
#### returns (Wording)
|
|
1405
1436
|
|
|
1406
|
-
|
|
1437
|
+
443 members; see `docs/llms-full.md`.
|
package/CHANGELOG.md
CHANGED
|
@@ -27,6 +27,21 @@ package stood at `0.1.0` the whole time, because it had exactly one caller and t
|
|
|
27
27
|
caller lay in the same repository — and are grouped by unit of delivery, not by
|
|
28
28
|
commit.
|
|
29
29
|
|
|
30
|
+
## 0.55.0 – A colour field, popovers that stay on their field, a clearer dark theme (Nov. 2026)
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **`ColorPicker`**, a colour field in the family of DatePicker: the trigger shows a swatch and the hex value; the panel has a saturation and brightness square, a hue strip (dragged, or moved with the arrow keys; the hue survives black and grey), a hex field, R, G and B number fields, an eyedropper where the browser has `EyeDropper`, and the new colour beside the one the panel opened with. The value is a lowercase `#rrggbb` or `null`. Done or a click outside keeps the colour; Cancel or Escape puts the old one back. `clearable` adds a cross on the trigger and Clear in the panel, both setting `null`. `swatches` lists the application's own colours as one-click choices; `contrastAgainst` names the surfaces the colour is measured against (ratio, Pass or Fail at 3:1; core's light and dark surface by default). Types `ColorSwatch`; glyph `DropperGlyph`; wording `colorTrigger` and the panel's labels, in English and German.
|
|
35
|
+
- **Popover's `onOpenChange(false, reason)`** says why it closes: `"escape"`, `"outside"`, `"scroll"`, `"clipped"` or `"tab"`, typed `PopoverCloseReason`. A caller that reads one argument sees no change.
|
|
36
|
+
- **Tokens `--u-color-surface-raised`, `--u-color-surface-raised-sunken` and `--u-color-surface-raised-pressed`**: the grounds of an overlay. Popovers, dialogs, the command palette and toasts use them.
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- **An open popover stays glued to its trigger while the page scrolls** instead of trailing it, and it stays on the side it opened on until that side runs out of room. It no longer flips back merely because its first side has room again. Its position is rounded to whole pixels.
|
|
41
|
+
- Migration: nothing to change. Look at tests that measured a panel's position after scrolling, or expected it to flip back.
|
|
42
|
+
- **The dark theme is lighter and has more contrast between its grounds.** The page (`#121213`), surface (`#1e1e20`), sunken and pressed grounds are a step lighter. Overlays stand one lightness step above the surface they open over (`#28282c`). Edges and dividers are stronger. The secondary and muted text is a little lighter, to keep 4.5:1 on every ground. The light theme is unchanged.
|
|
43
|
+
- Migration: nothing to change. A dark screenshot of your application will differ; a colour you hard-coded to match core's old dark grounds should take the token instead.
|
|
44
|
+
|
|
30
45
|
## 0.54.0 – The old callback names go; a duration formatter, a calmer MultiSelect and search, a TreeView that types like Select (Nov. 2026)
|
|
31
46
|
|
|
32
47
|
### Added
|
package/README.md
CHANGED
|
@@ -484,6 +484,7 @@ The table is not part of this package. It lives in
|
|
|
484
484
|
| `Skeleton` | a loading placeholder (bar or circle) with a discreet pulse |
|
|
485
485
|
| `EmptyState` | an empty state with title, description, action and an optional symbol |
|
|
486
486
|
| `Stack` / `Grid` | layout primitives with token spacing (a 4 px step), `Grid` with a fixed count, a width per column (`columns={[140, "fill"]}`) or responsive via `minItemWidth` |
|
|
487
|
+
| `ColorPicker` | colour field: a swatch and the hex value; a panel with a saturation and brightness square, a hue strip, hex and R, G, B fields, an eyedropper, the application's own swatches, the contrast against light and dark surfaces, the colour beside the one it opened with, Cancel and Done |
|
|
487
488
|
| `DatePicker` | calendar selection: weeks from Monday, arrow keys across the month, today/clear, the date in Geist Mono |
|
|
488
489
|
| `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 |
|
|
489
490
|
| `TimeInput` | a time of day without a day: the date-time picker's hour, minute and (`withSeconds`) second fields standing alone - they type themselves onwards, arrows count round the clock, a pasted `14:30` is split; the value is the text `HH:mm` (`HH:mm:ss`), `null` while empty, and the same text is posted |
|
|
@@ -503,7 +504,7 @@ The table is not part of this package. It lives in
|
|
|
503
504
|
| `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 |
|
|
504
505
|
| `Stat` | a metric: one value, read against its limits – the verdict as a word and a colour, the deviation from the target value, history, freshness and the source's quality |
|
|
505
506
|
| `CommandPalette` / `useCommandPaletteShortcut` | a command palette: subsequence search with rank and highlighted finds, groups, keywords a candidate is found by, at most `maxFinds` finds with a line for the rest, a populated resting state; opens on Ctrl/⌘+K and `/` (`slash: false` switches the single key off, WCAG 2.1.4; neither opens inside a modal dialog) |
|
|
506
|
-
| `CrossGlyph` / `PlusGlyph` / `MinusGlyph` / `AngleGlyph` / `EndGlyph` / `CalendarGlyph` / `ClockGlyph` / `GripGlyph` / `GridGlyph` / `MeasureGlyph` / `MoreGlyph` / `ToneGlyph` | the shared character set, one stroke width at one nominal size; specification in `docs/glyphs.md` |
|
|
507
|
+
| `CrossGlyph` / `PlusGlyph` / `MinusGlyph` / `AngleGlyph` / `EndGlyph` / `CalendarGlyph` / `ClockGlyph` / `DropperGlyph` / `GripGlyph` / `GridGlyph` / `MeasureGlyph` / `MoreGlyph` / `ToneGlyph` | the shared character set, one stroke width at one nominal size; specification in `docs/glyphs.md` |
|
|
507
508
|
| `Sparkline` | a miniature history line with an area gradient and an accent end point – for trends in cells |
|
|
508
509
|
| `Spinner` | a functional loading indicator |
|
|
509
510
|
| `Switch` | on or off, taking effect at once: a native checkbox under `role="switch"`, the label beside it, two sizes, invalid through `FormField`; the thumb travels on the path transition |
|