@umriss-ui/core 0.47.1 → 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 CHANGED
@@ -27,6 +27,49 @@ 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
+
58
+ ## 0.48.0 – One size on every device, and a dialog's focus where Tab would put it (Oct. 2026)
59
+
60
+ ### Changed
61
+
62
+ - **`md` controls stay 32 px under a finger** (ADR-0079); the 24 px hit areas and the touch behaviours stay.
63
+ - Migration: to keep the 44 px of 0.43.0 to 0.47.0, `import "@umriss-ui/core/touch-scale.css"`.
64
+
65
+ ### Added
66
+
67
+ - **`@umriss-ui/core/touch-scale.css`**, the opt-in for 44 px `md` controls under a finger: static CSS in the tokens layer, so a server renders one markup and the size is known before the first paint. An application that wants another height writes its own media query.
68
+
69
+ ### Fixed
70
+
71
+ - **A dialog Popover focuses its first tab stop**: in a radio group the chosen option, in a composite its tab stop, never a hidden element.
72
+
30
73
  ## 0.47.1 – Released in step with the table (Oct. 2026)
31
74
 
32
75
  No change of its own; the number moves with the table's repaired exports.
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`](../../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](../../docs/adr/0067-a-server-component-hands-umriss-its-data-and-writes-only-a-calculation.md).
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
 
@@ -105,6 +105,15 @@ a full-window `Modal`, a `Drawer` and the `CommandPalette` keep clear of a notch
105
105
  and a home indicator, each edge's inset added to its room. Without
106
106
  `viewport-fit=cover` nothing moves.
107
107
 
108
+ **Touch.** Under a finger (a coarse primary pointer) hit areas are at least
109
+ 24 × 24 px, a field's text is 16 px and behaviours follow the gesture; a `md`
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.
116
+
108
117
  **They touch nothing else** (ADR-0021). No rule selects `html`, `body`, `*` or a
109
118
  native element of the page, and the only rules on `:root` declare the tokens.
110
119
  Each component carries what it needs itself: its type, `box-sizing` on its own
@@ -345,7 +354,7 @@ plant in Berlin, read from Chicago - names that zone in the formats, an IANA nam
345
354
  ```
346
355
 
347
356
  A switch between the plant's time and the reader's is a provider whose formats name the zone or not;
348
- [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
349
358
  schedule following:
350
359
 
351
360
  ```tsx
@@ -497,8 +506,8 @@ root (ADR-0068), the targets under a finger (ADR-0070), long option lists, a dat
497
506
  that can be typed and bounded, and a source's quality (ADR-0077).
498
507
 
499
508
  What core will not build at all stands in
500
- [ADR-0032](../../docs/adr/0032-what-umriss-is-not.md). Validation is the
509
+ [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0032-what-umriss-is-not.md). Validation is the
501
510
  caller's, and umriss shows the reader's time unless the application names a zone
502
- ([ADR-0076](../../docs/adr/0076-an-application-names-the-time-zone-its-instants-are-shown-in.md)); a dashboard
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
503
512
  a user arranges is its own package, `@umriss-ui/dashboard`
504
- ([ADR-0064](../../docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
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)).