@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umriss-ui/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "React component library for data-dense dashboards and tools - forms, date pickers, overlays, a tree view and a command palette. Precise, quiet, professional.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Roman Händler",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"build:demo": "vite build --config vite.demo.config.ts",
|
|
103
103
|
"typecheck": "tsc --noEmit",
|
|
104
104
|
"typecheck:demo": "pnpm run props && tsc --noEmit -p tsconfig.demo.json",
|
|
105
|
-
"check:site": "pnpm run props -- --check && pnpm run readme",
|
|
105
|
+
"check:site": "pnpm run props -- --check && pnpm run readme && node --disable-warning=ExperimentalWarning --experimental-strip-types ../../scripts/checkReadmeLinks.ts",
|
|
106
106
|
"preview:demo": "vite preview --config vite.demo.config.ts --port 4173 --strictPort",
|
|
107
107
|
"test:unit": "vitest run",
|
|
108
108
|
"check:dist": "node --disable-warning=ExperimentalWarning --experimental-strip-types ../../scripts/check-dist.ts core.js core.css"
|
package/dist/formats-Bo0qM01D.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
function O(n, e, i) {
|
|
2
|
-
if (i === "percent") return n.percent(e);
|
|
3
|
-
if (i === "count") return n.count(e);
|
|
4
|
-
if (i === void 0) return n.number(e);
|
|
5
|
-
const { decimals: r, ...a } = i;
|
|
6
|
-
return Object.keys(a).length === 0 ? n.number(e, r) : n.numberWith(
|
|
7
|
-
e,
|
|
8
|
-
r === void 0 ? a : { minimumFractionDigits: r, maximumFractionDigits: r, ...a }
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
const w = 10, E = [
|
|
12
|
-
["day", 86400],
|
|
13
|
-
["hour", 3600],
|
|
14
|
-
["minute", 60]
|
|
15
|
-
];
|
|
16
|
-
function A(n, e) {
|
|
17
|
-
const i = `${n}|${e ?? ""}`;
|
|
18
|
-
let r = T.get(i);
|
|
19
|
-
if (!r) {
|
|
20
|
-
r = l(n, e), T.set(i, r);
|
|
21
|
-
for (const a of M) L.add(r[a]);
|
|
22
|
-
}
|
|
23
|
-
return r;
|
|
24
|
-
}
|
|
25
|
-
const T = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new WeakSet(), M = ["date", "dateShort", "month", "dateLong", "time", "dateTime", "offset", "timeZoneName"];
|
|
26
|
-
function l(n, e) {
|
|
27
|
-
const i = new Intl.DateTimeFormat(n, { timeZone: e, day: "2-digit", month: "2-digit", year: "numeric" }), r = new Intl.DateTimeFormat(n, { timeZone: e, day: "2-digit", month: "2-digit" }), a = new Intl.DateTimeFormat(n, { timeZone: e, month: "long", year: "numeric" }), I = new Intl.DateTimeFormat(n, { month: "long" }), D = new Intl.DateTimeFormat(n, {
|
|
28
|
-
timeZone: e,
|
|
29
|
-
weekday: "long",
|
|
30
|
-
day: "numeric",
|
|
31
|
-
month: "long",
|
|
32
|
-
year: "numeric"
|
|
33
|
-
}), c = { timeZone: e, hour: "2-digit", minute: "2-digit", hour12: !1, hourCycle: "h23" }, f = {
|
|
34
|
-
without: new Intl.DateTimeFormat(n, c),
|
|
35
|
-
with: new Intl.DateTimeFormat(n, { ...c, second: "2-digit" })
|
|
36
|
-
}, d = {
|
|
37
|
-
without: new Intl.DateTimeFormat(n, { day: "2-digit", month: "2-digit", year: "numeric", ...c }),
|
|
38
|
-
with: new Intl.DateTimeFormat(n, {
|
|
39
|
-
day: "2-digit",
|
|
40
|
-
month: "2-digit",
|
|
41
|
-
year: "numeric",
|
|
42
|
-
...c,
|
|
43
|
-
second: "2-digit"
|
|
44
|
-
})
|
|
45
|
-
}, y = new Intl.DateTimeFormat(n, { timeZone: e, timeZoneName: "shortOffset" }), N = new Intl.DateTimeFormat(n, { timeZone: e, timeZoneName: "shortGeneric" }), F = /* @__PURE__ */ new Map(), u = { signDisplay: "negative" }, h = /* @__PURE__ */ new Map(), b = new Intl.NumberFormat(n, { ...u, notation: "scientific", maximumSignificantDigits: 10 }), p = new Intl.NumberFormat(n, u), S = new Intl.NumberFormat(n, { ...u, style: "percent", maximumFractionDigits: 0 }), v = new Intl.Collator(n), g = new Intl.RelativeTimeFormat(n, { numeric: "auto" });
|
|
46
|
-
return {
|
|
47
|
-
locale: n,
|
|
48
|
-
timeZone: e,
|
|
49
|
-
timeZoneName: (t) => N.formatToParts(t).find((o) => o.type === "timeZoneName")?.value ?? "",
|
|
50
|
-
date: (t) => i.format(t),
|
|
51
|
-
dateShort: (t) => r.format(t),
|
|
52
|
-
month: (t) => a.format(t),
|
|
53
|
-
monthName: (t) => I.format(t),
|
|
54
|
-
dateLong: (t) => D.format(t),
|
|
55
|
-
time: (t, o) => (o ? f.with : f.without).format(t),
|
|
56
|
-
dateTime: (t, o) => (o ? d.with : d.without).format(t),
|
|
57
|
-
offset: (t) => y.formatToParts(t).find((o) => o.type === "timeZoneName")?.value ?? "",
|
|
58
|
-
number: (t, o) => {
|
|
59
|
-
if (o === void 0 && t !== 0 && Math.abs(t) < 0.5 * 10 ** -w) return b.format(t);
|
|
60
|
-
let m = F.get(o);
|
|
61
|
-
return m || (m = new Intl.NumberFormat(n, {
|
|
62
|
-
...u,
|
|
63
|
-
minimumFractionDigits: o,
|
|
64
|
-
maximumFractionDigits: o ?? w
|
|
65
|
-
}), F.set(o, m)), m.format(t);
|
|
66
|
-
},
|
|
67
|
-
numberWith: (t, o) => {
|
|
68
|
-
const m = JSON.stringify(o);
|
|
69
|
-
let s = h.get(m);
|
|
70
|
-
return s || (s = new Intl.NumberFormat(n, { ...u, ...o }), h.set(m, s)), s.format(t);
|
|
71
|
-
},
|
|
72
|
-
count: (t) => p.format(t),
|
|
73
|
-
percent: (t) => S.format(t),
|
|
74
|
-
compareText: (t, o) => v.compare(t, o),
|
|
75
|
-
relative: (t) => {
|
|
76
|
-
const o = Math.max(0, Math.round(t / 1e3));
|
|
77
|
-
for (const [m, s] of E)
|
|
78
|
-
if (o >= s) return g.format(-Math.floor(o / s), m);
|
|
79
|
-
return g.format(-o, "second");
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
const x = /* @__PURE__ */ A("en-GB");
|
|
84
|
-
function k(n) {
|
|
85
|
-
const e = [...n.number(1234.5, 1).replace(/[\d-]/g, "")], i = e[e.length - 1] ?? ".";
|
|
86
|
-
return { group: e.length > 1 ? e[0] : "", decimal: i };
|
|
87
|
-
}
|
|
88
|
-
const R = /* @__PURE__ */ k(x);
|
|
89
|
-
export {
|
|
90
|
-
x as D,
|
|
91
|
-
M as I,
|
|
92
|
-
R as a,
|
|
93
|
-
L as b,
|
|
94
|
-
A as f,
|
|
95
|
-
k as s,
|
|
96
|
-
O as w
|
|
97
|
-
};
|