@umriss-ui/core 0.2.0 → 0.3.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
@@ -50,6 +50,71 @@ module on the caller's side that carries `"use client"` and imports from there.
50
50
 
51
51
  ---
52
52
 
53
+ ## 0.3.0 – English formats, and the context menu (Sep. 2026)
54
+
55
+ ### Changed
56
+
57
+ - **The formats are English.** `DEFAULT_FORMATS` writes `en-GB` on a 24-hour
58
+ clock: `17/03/2026`, `09:05`, `1,234.5`, `74%`, "3 minutes ago", and English
59
+ collation. Until now it wrote `de-DE` whatever the wording said (ADR-0024;
60
+ ADR-0019 left this decision open on purpose).
61
+ - **German ships as a pair.** `GERMAN_FORMATS` stands beside `GERMAN_WORDING`
62
+ behind `@umriss-ui/core/wording/de`, so a German application takes both
63
+ halves of its language in one import:
64
+ `language={{ wording: GERMAN_WORDING, formats: GERMAN_FORMATS }}`. An
65
+ application that hands in the wording alone now gets German words over
66
+ English notation - which is what the library shipped before, and why the
67
+ decision was made.
68
+ - **`NumberInput` reads the notation it writes.** Its parser no longer assumes
69
+ a German dot and comma; the separators are measured off the formats
70
+ (`separatorsOf`), so a field under any notation - including one an
71
+ application replaced - reads its own output back. `parseNumber` and
72
+ `filterInput` take the separators as a last argument, defaulting to the
73
+ default notation.
74
+ - **What did not move:** the CSV export of `@umriss-ui/table` keeps its decimal
75
+ comma and its semicolon (a machine format for a spreadsheet, argued at its
76
+ site), and the German test fixtures that measure a property *of* German stay
77
+ German.
78
+
79
+ ### Added
80
+
81
+ - **`formatsFor(locale)`** builds a complete `Formats` for a locale - the
82
+ product's options (day first, two digits, 24-hour clock, per cent without
83
+ decimals) over the locale's separators and words.
84
+ - **`separatorsOf(formats)`** and `DEFAULT_SEPARATORS`: the group and decimal
85
+ separator a notation writes, measured rather than declared.
86
+ - **Three wording entries for `@umriss-ui/schedule`'s lane groups**:
87
+ `scheduleFoldGroup`, `scheduleUnfoldGroup` and `scheduleLaneCount(count)`,
88
+ in English and in `GERMAN_WORDING`. An application that supplies a complete
89
+ `Wording` of its own gains three required entries — which the type says, at
90
+ compile time, as it is meant to (ADR-0019).
91
+
92
+ ### The first release that is not a candidate
93
+
94
+ `@umriss-ui/core` was already on `latest`; `@umriss-ui/charts` and
95
+ `@umriss-ui/schedule` join it with this delivery, and the three are released
96
+ together because the schedule stands on both.
97
+
98
+ ## The context menu (Sep. 2026)
99
+
100
+ From `.scratch/schedule/spec.md`, ticket 01, and
101
+ `.scratch/schedule-refinement/spec.md`, ticket 03.
102
+
103
+ ### Added
104
+
105
+ - **`ContextMenu`** — the menu opened at a point instead of under a trigger, for
106
+ a right-click on a surface that is not a button. Controlled (`open`,
107
+ `onOpenChange`, `position` in client coordinates, `ariaLabel`), built on
108
+ `Popover`, with `MenuItem`, `MenuSeparator` and the menu's keyboard. The focus
109
+ returns to where it stood when the menu opened.
110
+ - **Wording:** `scheduleLaneRefused`, `scheduleOverlap`, `scheduleLateTransport`,
111
+ `scheduleGhostTimes`, `scheduleSetup`, `scheduleTeardown`,
112
+ `scheduleTransport`, `scheduleRoute`, `scheduleOverlapWith` and
113
+ `scheduleLateBy`, for `@umriss-ui/schedule`, in both shipped wordings. An
114
+ application that hands in a whole `Wording` object of its own adds the nine.
115
+
116
+ ---
117
+
53
118
  ## 0.2.0 – Styles that load themselves, and touch nothing else (Sep. 2026)
54
119
 
55
120
  Delivery report for `.scratch/styles-without-side-effects/spec.md` (ADR-0021).
package/README.md CHANGED
@@ -110,6 +110,7 @@ The table and the alarm list are not part of this package. They live in
110
110
  | `ConfirmDialog` | a compact confirmation dialog, `tone="danger"` for destructive actions, loading state |
111
111
  | `ToastProvider` / `useToast` | stacked status messages at the bottom right, four tones, auto-dismiss, `aria-live` |
112
112
  | `Menu` / `MenuItem` / `MenuSeparator` | a dropdown menu with a portal panel, arrow-key navigation, `tone="danger"` |
113
+ | `ContextMenu` | the same menu opened at a point in the viewport - for a right-click on a surface that is not a button; controlled, focus returns to where it was |
113
114
  | `Tooltip` | help text on hover and keyboard focus, inverted (ink surface), portal |
114
115
  | `Tabs` / `TabList` / `Tab` / `TabPanel` | controlled tabs with an ink underline and arrow-key control |
115
116
  | `Skeleton` | a loading placeholder (bar or circle) with a discreet pulse |