@umriss-ui/core 0.48.0 → 0.49.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 +28 -0
- package/README.md +12 -8
- package/dist/core.css +1 -1
- package/dist/core.js +3883 -3822
- package/dist/de.d.ts +24 -0
- package/dist/formats-dd9LbvXt.js +102 -0
- package/dist/index.d.ts +40 -7
- package/dist/touch-scale.css +9 -4
- package/dist/wording/de.js +25 -11
- package/docs/llms-full.md +195 -64
- package/package.json +2 -2
- package/dist/formats-Bo0qM01D.js +0 -97
package/CHANGELOG.md
CHANGED
|
@@ -27,6 +27,34 @@ 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.49.0 – The second shakedown: lists that shrink, a flood that scrolls, five things the table lacked (Oct. 2026)
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- **`touch-scale.css` works in any import order and grows `sm` with `md`** (both 44 px under a finger; ADR-0079 amended); Tabs read `--u-control-height` like every `md` control. `xs`, menu rows, calendar days, checkboxes, switches and radios keep their size and 24 px hit areas.
|
|
35
|
+
- Migration: under the opt-in, `sm` buttons (toolbars, pagination, row actions, alarm buttons) are 44 px; to keep 26 px, set `--u-control-height-sm` after the import with `:root:root`, or leave the import out.
|
|
36
|
+
- **Control heights are written in `rem`** (2rem, 1.625rem, 1.125rem; the opt-in 2.75rem): controls and table rows grow with the root font size. Nothing moves at a 16 px root.
|
|
37
|
+
- Migration: a host that raised its root font size (or whose user did) sees larger controls; set `--u-control-height`, `--u-control-height-sm` and `--u-control-height-xs` in px to keep the old size.
|
|
38
|
+
- **`Formats.weekStart`** (ISO: 1 = Monday … 7 = Sunday): DatePicker, DateRangePicker and DateTimePicker start the month grid, Home/End and the weekday heads there; the `weekdays` wording stays Monday-first (ADR-0019, ADR-0024 amended).
|
|
39
|
+
- Migration: a hand-written complete `Formats` object needs `weekStart: 1` for the previous behaviour; a set from `formatsFor` or spread over a built-in one has it.
|
|
40
|
+
|
|
41
|
+
### Added
|
|
42
|
+
|
|
43
|
+
- **`formatsFor(locale, timeZone?)`** is exported: a third language derives all its formats from a locale in one line, zoned when given a time zone; it takes `weekStart` from the locale's week info where the runtime offers it, else Monday.
|
|
44
|
+
- **DEV warnings for wrong shapes** (once per instance, silent in production): a non-`Date` value on the date pickers, a non-array value on MultiSelect, strings in `options` of Combobox and MultiSelect, a string `value` on NumberInput and Stat - the control renders empty instead of throwing; a Modal or Drawer without `onClose`.
|
|
45
|
+
- **A DEV warning when a lowered build keeps a JavaScript dark mode light**, naming both fixes (a `color-scheme` rule, or the CSS target at the browser floor); the Theming page and `llms-full.md` state the rule (ADR-0021 note).
|
|
46
|
+
- Wording, English and German: the text filter's operators, join and description, `fitAllColumns`, `schedulePlotName`.
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- **A virtual list scrolled deep no longer goes blank when its count shrinks** (search, filter, live feed): TreeView, MultiSelect, listboxes and the table show the last rows, and the scroll height follows the shorter list.
|
|
51
|
+
- **NumberInput reads a typed "." by the language**: the decimal wherever "." is not the group separator (fr-CH 1234.5 stays 1234.5; German 1.234 stays a thousand); a character the field cannot read leaves text and value as they were instead of being dropped.
|
|
52
|
+
- **`autoFocus` inside a Modal or Drawer** keeps the focus when the dialog opens; before, it went to the close button.
|
|
53
|
+
- **A Modal or Drawer without `onClose`** (a JavaScript host) no longer throws on Escape, the cross or the backdrop.
|
|
54
|
+
- **Playwright's `check()` and `uncheck()`** work without `force` on Checkbox, Switch, RadioGroup radios, the table's selection boxes and MultiSelect options; a click on the label still toggles once.
|
|
55
|
+
- **The date pickers' placeholder** reaches 4.5:1 (it was 3.4:1).
|
|
56
|
+
- **README links resolve on npm**: links to files the package does not ship point to the repository on GitHub.
|
|
57
|
+
|
|
30
58
|
## 0.48.0 – One size on every device, and a dialog's focus where Tab would put it (Oct. 2026)
|
|
31
59
|
|
|
32
60
|
### Changed
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Guiding idea: **precise and quiet, with palpable quality** – depth comes from
|
|
|
6
6
|
soft shadows and fine light edges, not from hard outlines or effects.
|
|
7
7
|
|
|
8
8
|
The design language — "Ink & Paper", the dark theme, motion — is written down
|
|
9
|
-
once for all five packages in [`../../docs/design-language.md`](
|
|
9
|
+
once for all five packages in [`../../docs/design-language.md`](https://github.com/romanhaendler/umriss-ui/blob/main/docs/design-language.md).
|
|
10
10
|
|
|
11
11
|
## Use
|
|
12
12
|
|
|
@@ -79,7 +79,7 @@ knows the reader's zone - unless the application names a time zone in its format
|
|
|
79
79
|
|
|
80
80
|
The calculation is the one view a Server Component writes itself: its tree is read where it is
|
|
81
81
|
written (see `@umriss-ui/calculation`). The reasons are in
|
|
82
|
-
[ADR-0067](
|
|
82
|
+
[ADR-0067](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0067-a-server-component-hands-umriss-its-data-and-writes-only-a-calculation.md).
|
|
83
83
|
|
|
84
84
|
### What an import costs
|
|
85
85
|
|
|
@@ -107,8 +107,12 @@ and a home indicator, each edge's inset added to its room. Without
|
|
|
107
107
|
|
|
108
108
|
**Touch.** Under a finger (a coarse primary pointer) hit areas are at least
|
|
109
109
|
24 × 24 px, a field's text is 16 px and behaviours follow the gesture; a `md`
|
|
110
|
-
control stays 32 px. To make
|
|
111
|
-
names, opt in with
|
|
110
|
+
control stays 32 px and a `sm` one 26 px. To make both 44 px under a finger,
|
|
111
|
+
the height WCAG 2.5.5 names, opt in with
|
|
112
|
+
`import "@umriss-ui/core/touch-scale.css"` (ADR-0079), anywhere in the entry
|
|
113
|
+
file: before or after core makes no difference. Buttons, fields, selects, Tabs,
|
|
114
|
+
and the table's and alarms' `sm` buttons grow; `xs`, menu rows, calendar days,
|
|
115
|
+
checkboxes, switches and radios keep their size and their 24 × 24 px hit areas.
|
|
112
116
|
|
|
113
117
|
**They touch nothing else** (ADR-0021). No rule selects `html`, `body`, `*` or a
|
|
114
118
|
native element of the page, and the only rules on `:root` declare the tokens.
|
|
@@ -350,7 +354,7 @@ plant in Berlin, read from Chicago - names that zone in the formats, an IANA nam
|
|
|
350
354
|
```
|
|
351
355
|
|
|
352
356
|
A switch between the plant's time and the reader's is a provider whose formats name the zone or not;
|
|
353
|
-
[the control room scenario](demo/scenarios/05-watch-a-kiln-line.tsx) shows it, with its charts, table and
|
|
357
|
+
[the control room scenario](https://github.com/romanhaendler/umriss-ui/blob/main/packages/core/demo/scenarios/05-watch-a-kiln-line.tsx) shows it, with its charts, table and
|
|
354
358
|
schedule following:
|
|
355
359
|
|
|
356
360
|
```tsx
|
|
@@ -502,8 +506,8 @@ root (ADR-0068), the targets under a finger (ADR-0070), long option lists, a dat
|
|
|
502
506
|
that can be typed and bounded, and a source's quality (ADR-0077).
|
|
503
507
|
|
|
504
508
|
What core will not build at all stands in
|
|
505
|
-
[ADR-0032](
|
|
509
|
+
[ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0032-what-umriss-is-not.md). Validation is the
|
|
506
510
|
caller's, and umriss shows the reader's time unless the application names a zone
|
|
507
|
-
([ADR-0076](
|
|
511
|
+
([ADR-0076](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0076-an-application-names-the-time-zone-its-instants-are-shown-in.md)); a dashboard
|
|
508
512
|
a user arranges is its own package, `@umriss-ui/dashboard`
|
|
509
|
-
([ADR-0064](
|
|
513
|
+
([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
|