@umriss-ui/core 0.40.3 → 0.41.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 +14 -3
- package/dist/core.css +1 -1
- package/dist/core.js +3059 -3025
- package/dist/de.d.ts +3 -2
- package/dist/formats-BdlPZDzb.js +63 -0
- package/dist/index.d.ts +14 -11
- package/dist/styles.d.ts +1 -0
- package/dist/wording/de.js +1 -1
- package/docs/llms-full.md +97 -95
- package/package.json +15 -2
- package/dist/formats-D0YRBdnl.js +0 -62
package/CHANGELOG.md
CHANGED
|
@@ -26,6 +26,34 @@ package stood at `0.1.0` the whole time, because it had exactly one caller and t
|
|
|
26
26
|
caller lay in the same repository — and are grouped by unit of delivery, not by
|
|
27
27
|
commit.
|
|
28
28
|
|
|
29
|
+
## 0.41.0 – Colours survive a modern build (Oct. 2026)
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- **A production build with Vite 8 or Next 16 keeps its colours.** Both lower `light-dark()` for their default targets, and Lightning CSS then needs two switches it sets only where the same stylesheet declares `color-scheme` - which core never did, so every token collapsed and the components lost their colours, borders and surfaces in production while the dev server looked right. Core now declares the two switches on `:root` with the light values. A mode set in CSS (an own rule, Bootstrap, DaisyUI) works in every build; a mode set only from JavaScript or a variable (next-themes, MUI, Mantine, an inline `style`) needs one rule such as `[data-theme="dark"] { color-scheme: dark; }` where a build lowers `light-dark()`, or a CSS target at the browser floor - the README says how (ADR-0021, amended).
|
|
34
|
+
- **A press inside a Popover, Menu or DatePicker panel in a Modal or Drawer no longer closes the dialog.** The panels stand in the dialog's top layer beside its surface, and a press on them counted as the backdrop; now only the dialog and its spacers are backdrop.
|
|
35
|
+
- **`ToastProvider` renders on a server.** It told a dialog by the `HTMLDialogElement` global, which a server does not have, so `next build` failed with the provider in the root layout; it now reads the node's name.
|
|
36
|
+
- **A click inside a Popover holds in a shadow root.** The outside click read the event's target, which a shadow root retargets to its host; it now reads the composed path.
|
|
37
|
+
- **Breadcrumb's folded menu follows an `href` only to http, https, mailto and tel.** It followed the address by script and so ran a `javascript:` address that React blocks on an ordinary link; relative addresses resolve against the document and still work.
|
|
38
|
+
- **The built declarations compile for strict consumers.** `RefProp`'s `ref` accepts `undefined`, so a consumer with `exactOptionalPropertyTypes` and `skipLibCheck: false` compiles; `@umriss-ui/core/wording/de` and `@umriss-ui/core/styles.css` resolve their types under `moduleResolution: node10`.
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- **`ToastContextValue`, `FormFieldContextValue` and `FreshnessInstant` are exported**, so a library that wraps `useToast`, `useFormField` or the freshness helpers can emit its own declarations.
|
|
43
|
+
|
|
44
|
+
### Changed
|
|
45
|
+
|
|
46
|
+
- **A dialog-role `Popover` takes the focus when it opens** - its first focusable element, or the panel itself - unless its content placed the focus already. Before, the focus stayed on the trigger and the panel, portalled to the end of the page, was dozens of Tabs away; a switch user could not reach it at all. Escape still returns the focus to the trigger.
|
|
47
|
+
- **A non-zero number without a digit count never reads as 0.** What ten places would round to zero - 1.6e-19, say - is written in scientific notation by the formats' default number; a given `decimals` is kept as it is.
|
|
48
|
+
- **Development warnings fire in a Vite dev server.** The development flag is `process.env.NODE_ENV`, which every bundler replaces; it read `import.meta` before, which no consumer's build replaced, so the documented warnings never showed.
|
|
49
|
+
|
|
50
|
+
## 0.40.4 – A larger font keeps its labels (Oct. 2026)
|
|
51
|
+
|
|
52
|
+
### Fixed
|
|
53
|
+
|
|
54
|
+
- **Badge, Tag and the MultiSelect chips grow with the reader's font size.** Their height was fixed in pixels while their type is in `rem`: with the browser's font size at 200 %, a badge's descenders hung below it and a tag's or a chip's were cut. The heights are now floors - at the default size every label looks exactly as before. The MultiSelect counter and scope buttons follow the same rule.
|
|
55
|
+
- **A Button narrower than its text label ends it in an ellipsis** instead of spilling over its edges; the full label stays its accessible name. A label with an icon beside the text keeps its row.
|
|
56
|
+
|
|
29
57
|
## 0.40.3 – The keys of Tag and Alert are visible at rest (Oct. 2026)
|
|
30
58
|
|
|
31
59
|
### Fixed
|
package/README.md
CHANGED
|
@@ -86,7 +86,16 @@ html.dark { color-scheme: dark; }
|
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
An application that sets nothing stays light. A part of a page can be dark on
|
|
89
|
-
its own (
|
|
89
|
+
its own (`.panel-dark { color-scheme: dark; }`).
|
|
90
|
+
|
|
91
|
+
A mode set in CSS - an own rule, Bootstrap, DaisyUI - works in every build.
|
|
92
|
+
Where a build lowers `light-dark()` (Vite 8 and Next 16 by default), a mode set
|
|
93
|
+
only from JavaScript or through a variable - next-themes, MUI, Mantine, an
|
|
94
|
+
inline `style` - stays light. Then write one rule such as
|
|
95
|
+
`[data-theme="dark"] { color-scheme: dark; }`, or raise the CSS target to the
|
|
96
|
+
browser floor: Vite `build: { cssTarget: ["chrome123", "firefox120", "safari17.5"] }`,
|
|
97
|
+
Next a `browserslist` in `package.json`
|
|
98
|
+
(`"chrome >= 123", "firefox >= 120", "safari >= 17.5"`).
|
|
90
99
|
|
|
91
100
|
**Fonts are the application's.** The tokens name Geist first and end in the
|
|
92
101
|
system fonts; nothing is loaded. Geist is recommended — `@fontsource/geist-sans`
|
|
@@ -244,5 +253,7 @@ announcements, and the fields' widths and sizes (ADR-0041).
|
|
|
244
253
|
|
|
245
254
|
What core will not build at all stands in
|
|
246
255
|
[ADR-0032](../../docs/adr/0032-what-umriss-is-not.md). Validation is the
|
|
247
|
-
caller's, and
|
|
248
|
-
|
|
256
|
+
caller's, and umriss shows the reader's time
|
|
257
|
+
([ADR-0060](../../docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)); a dashboard
|
|
258
|
+
a user arranges is its own package, `@umriss-ui/dashboard`
|
|
259
|
+
([ADR-0064](../../docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
|