@umriss-ui/calculation 0.3.6 → 0.3.7
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 +6 -0
- package/docs/llms-full.md +4 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,12 @@ under a heading "Changed" of its own, no matter which digit rose.
|
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
+
## 0.3.7 – Core 0.16.0 (Sep. 2026)
|
|
15
|
+
|
|
16
|
+
Needs `@umriss-ui/core` 0.16; the peer range moves to `^0.16.0`. Nothing else changes for a caller.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
14
20
|
## 0.3.6 – Core 0.15.0 (Sep. 2026)
|
|
15
21
|
|
|
16
22
|
Needs `@umriss-ui/core` 0.15; the peer range moves to `^0.15.0`. Nothing else changes for a caller.
|
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/calculation 0.3.
|
|
1
|
+
# @umriss-ui/calculation 0.3.7
|
|
2
2
|
|
|
3
3
|
> React calculation view for data-dense applications - a derivation written as it is shown, evaluated by the library, folded and read line by line.
|
|
4
4
|
|
|
@@ -290,7 +290,7 @@ import type { InvoiceLine } from "./controlling";
|
|
|
290
290
|
const WAITING = INVOICES.filter((one) => one.status === "awaiting approval");
|
|
291
291
|
const DECISION_TONE = { approved: "success", rejected: "danger", pending: "neutral" } as const;
|
|
292
292
|
const date = (at: number) => new Date(at).toLocaleDateString("en-GB", { day: "numeric", month: "short", year: "numeric" });
|
|
293
|
-
const percent = (rate: number) => `${Math.round(rate * 100)}
|
|
293
|
+
const percent = (rate: number) => `${Math.round(rate * 100)}\u00a0%`;
|
|
294
294
|
|
|
295
295
|
/** One line's net amount: quantity × unit price, times the share paid after a
|
|
296
296
|
discount. A function and not a component: the calculation reads its
|
|
@@ -408,7 +408,7 @@ export default function CheckAnInvoice() {
|
|
|
408
408
|
))}
|
|
409
409
|
</Stack>
|
|
410
410
|
{decision === undefined ? (
|
|
411
|
-
<Stack direction="row" gap={2} data-callout="5">
|
|
411
|
+
<Stack direction="row" gap={2} wrap data-callout="5">
|
|
412
412
|
<Button variant="primary" onClick={() => setDecided({ ...decided, [invoice.id]: "approved" })}>
|
|
413
413
|
Approve as {next?.approver ?? "approver"}
|
|
414
414
|
</Button>
|
|
@@ -2388,7 +2388,7 @@ export interface AlertType {
|
|
|
2388
2388
|
|
|
2389
2389
|
export const ALERT_TYPES: readonly AlertType[] = [
|
|
2390
2390
|
{ id: "checkout-latency", label: "Checkout · p95 latency above 300 ms", priority: "high" },
|
|
2391
|
-
{ id: "checkout-errors", label: "Checkout · error rate above 2
|
|
2391
|
+
{ id: "checkout-errors", label: "Checkout · error rate above 2\u00a0%", priority: "high" },
|
|
2392
2392
|
{ id: "webhooks-queue", label: "Webhooks · queue older than 5 min", priority: "medium" },
|
|
2393
2393
|
{ id: "search-latency", label: "Search · p95 latency above 250 ms", priority: "medium" },
|
|
2394
2394
|
{ id: "images-disk", label: "Image service · disk 85 % full", priority: "low" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/calculation",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "React calculation view for data-dense applications - a derivation written as it is shown, evaluated by the library, folded and read line by line.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Roman Händler",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": ">=18",
|
|
49
49
|
"react-dom": ">=18",
|
|
50
|
-
"@umriss-ui/core": "^0.
|
|
50
|
+
"@umriss-ui/core": "^0.16.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@fontsource/geist-mono": "^5.3.0",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"typescript": "^5.6.3",
|
|
62
62
|
"vite": "^6.0.0",
|
|
63
63
|
"vite-plugin-dts": "^4.3.0",
|
|
64
|
-
"@umriss-ui/
|
|
65
|
-
"@umriss-ui/
|
|
64
|
+
"@umriss-ui/core": "0.16.0",
|
|
65
|
+
"@umriss-ui/demo": "0.0.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"props": "node --disable-warning=ExperimentalWarning --experimental-strip-types demo/props.ts",
|