@umriss-ui/core 0.11.0 → 0.12.1
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 +63 -0
- package/README.md +1 -1
- package/dist/core.css +1 -1
- package/dist/core.js +2204 -2183
- package/dist/de.d.ts +10 -0
- package/dist/index.d.ts +13 -1
- package/dist/wording/de.js +8 -2
- package/docs/llms-full.md +6 -28
- package/package.json +1 -1
package/dist/de.d.ts
CHANGED
|
@@ -234,6 +234,14 @@ declare interface Wording {
|
|
|
234
234
|
pinColumnToStart: (column: string) => string;
|
|
235
235
|
pinColumnToEnd: (column: string) => string;
|
|
236
236
|
unpinColumn: (column: string) => string;
|
|
237
|
+
/** The tooltips over those four keys: short, without the column, which
|
|
238
|
+
stands in the same line. The keys' names above keep it for a screen
|
|
239
|
+
reader. */
|
|
240
|
+
columnForwardHint: string;
|
|
241
|
+
columnBackwardHint: string;
|
|
242
|
+
pinToStartHint: string;
|
|
243
|
+
pinToEndHint: string;
|
|
244
|
+
unpinHint: string;
|
|
237
245
|
/** The export button. */
|
|
238
246
|
exportLabel: string;
|
|
239
247
|
/** The export button of a table in manual mode, which holds and writes one page. */
|
|
@@ -245,6 +253,8 @@ declare interface Wording {
|
|
|
245
253
|
tableSearchLabel: string;
|
|
246
254
|
/** The filter button of a column: "Filter Region". */
|
|
247
255
|
filterColumn: (column: string) => string;
|
|
256
|
+
/** The tooltip over that button. */
|
|
257
|
+
filterHint: string;
|
|
248
258
|
/** The selection of one row, named after its row header. */
|
|
249
259
|
selectRow: (row: string) => string;
|
|
250
260
|
/** The selection of every row in the filtered set. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1867,7 +1867,9 @@ export declare function Tooltip({ content, children, delay }: TooltipProps): JSX
|
|
|
1867
1867
|
export declare interface TooltipProps {
|
|
1868
1868
|
/** Short help text; no interaction, no long content. */
|
|
1869
1869
|
content: ReactNode;
|
|
1870
|
-
/** Exactly one element that triggers the tooltip (must accept refs).
|
|
1870
|
+
/** Exactly one element that triggers the tooltip (must accept refs). Its
|
|
1871
|
+
own ref is replaced by the tooltip's: a trigger that needs its element
|
|
1872
|
+
takes it from its events. */
|
|
1871
1873
|
children: ReactElement<Record<string, unknown>>;
|
|
1872
1874
|
/** Delay in ms before the tooltip appears. */
|
|
1873
1875
|
delay?: number;
|
|
@@ -2409,6 +2411,14 @@ export declare interface Wording {
|
|
|
2409
2411
|
pinColumnToStart: (column: string) => string;
|
|
2410
2412
|
pinColumnToEnd: (column: string) => string;
|
|
2411
2413
|
unpinColumn: (column: string) => string;
|
|
2414
|
+
/** The tooltips over those four keys: short, without the column, which
|
|
2415
|
+
stands in the same line. The keys' names above keep it for a screen
|
|
2416
|
+
reader. */
|
|
2417
|
+
columnForwardHint: string;
|
|
2418
|
+
columnBackwardHint: string;
|
|
2419
|
+
pinToStartHint: string;
|
|
2420
|
+
pinToEndHint: string;
|
|
2421
|
+
unpinHint: string;
|
|
2412
2422
|
/** The export button. */
|
|
2413
2423
|
exportLabel: string;
|
|
2414
2424
|
/** The export button of a table in manual mode, which holds and writes one page. */
|
|
@@ -2420,6 +2430,8 @@ export declare interface Wording {
|
|
|
2420
2430
|
tableSearchLabel: string;
|
|
2421
2431
|
/** The filter button of a column: "Filter Region". */
|
|
2422
2432
|
filterColumn: (column: string) => string;
|
|
2433
|
+
/** The tooltip over that button. */
|
|
2434
|
+
filterHint: string;
|
|
2423
2435
|
/** The selection of one row, named after its row header. */
|
|
2424
2436
|
selectRow: (row: string) => string;
|
|
2425
2437
|
/** The selection of every row in the filtered set. */
|
package/dist/wording/de.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as o } from "../formats-DrB9TuzO.js";
|
|
2
|
-
const c = o("de-DE"),
|
|
2
|
+
const c = o("de-DE"), d = {
|
|
3
3
|
clearInput: "Eingabe leeren",
|
|
4
4
|
clearSelection: "Auswahl leeren",
|
|
5
5
|
decreaseValue: "Wert verringern",
|
|
@@ -116,12 +116,18 @@ const c = o("de-DE"), s = {
|
|
|
116
116
|
pinColumnToStart: (e) => `${e} am Anfang fixieren`,
|
|
117
117
|
pinColumnToEnd: (e) => `${e} am Ende fixieren`,
|
|
118
118
|
unpinColumn: (e) => `Fixierung von ${e} lösen`,
|
|
119
|
+
columnForwardHint: "Nach vorn",
|
|
120
|
+
columnBackwardHint: "Nach hinten",
|
|
121
|
+
pinToStartHint: "Am Anfang fixieren",
|
|
122
|
+
pinToEndHint: "Am Ende fixieren",
|
|
123
|
+
unpinHint: "Fixierung lösen",
|
|
119
124
|
exportLabel: "Exportieren",
|
|
120
125
|
exportPageLabel: "Seite exportieren",
|
|
121
126
|
exportFileName: "tabelle.csv",
|
|
122
127
|
tableSearchPlaceholder: "Suchen …",
|
|
123
128
|
tableSearchLabel: "Tabelle durchsuchen",
|
|
124
129
|
filterColumn: (e) => `${e} filtern`,
|
|
130
|
+
filterHint: "Filtern",
|
|
125
131
|
selectRow: (e) => `${e} auswählen`,
|
|
126
132
|
selectAllRows: "Alle auswählen",
|
|
127
133
|
selectAllOnPage: "Alle auf dieser Seite auswählen",
|
|
@@ -283,5 +289,5 @@ const c = o("de-DE"), s = {
|
|
|
283
289
|
};
|
|
284
290
|
export {
|
|
285
291
|
c as GERMAN_FORMATS,
|
|
286
|
-
|
|
292
|
+
d as GERMAN_WORDING
|
|
287
293
|
};
|
package/docs/llms-full.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @umriss-ui/core 0.
|
|
1
|
+
# @umriss-ui/core 0.12.1
|
|
2
2
|
|
|
3
3
|
> A React component library for data-dense applications - precise, quiet, professional.
|
|
4
4
|
|
|
@@ -7963,7 +7963,7 @@ export default function AnAbbreviation() {
|
|
|
7963
7963
|
| Prop | Type | Default | Description |
|
|
7964
7964
|
|---|---|---|---|
|
|
7965
7965
|
| `content` (required) | `ReactNode` | — | Short help text; no interaction, no long content. |
|
|
7966
|
-
| `children` (required) | `ReactElement<Record<string, unknown>>` | — | Exactly one element that triggers the tooltip (must accept refs). |
|
|
7966
|
+
| `children` (required) | `ReactElement<Record<string, unknown>>` | — | Exactly one element that triggers the tooltip (must accept refs). Its own ref is replaced by the tooltip's: a trigger that needs its element takes it from its events. |
|
|
7967
7967
|
| `delay` | `number` | `300` | Delay in ms before the tooltip appears. |
|
|
7968
7968
|
|
|
7969
7969
|
#### Known limits
|
|
@@ -7999,13 +7999,6 @@ You hold `open`, the popover hangs from `anchorRef` and reports every wish to cl
|
|
|
7999
7999
|
import { useRef, useState } from "react";
|
|
8000
8000
|
import { Button, Popover, Stack, Text } from "@umriss-ui/core";
|
|
8001
8001
|
|
|
8002
|
-
const SURFACE = {
|
|
8003
|
-
padding: "var(--u-space-4)",
|
|
8004
|
-
background: "var(--u-color-surface)",
|
|
8005
|
-
borderRadius: "var(--u-radius-md)",
|
|
8006
|
-
boxShadow: "var(--u-shadow-overlay)",
|
|
8007
|
-
};
|
|
8008
|
-
|
|
8009
8002
|
export default function AnchoredSurface() {
|
|
8010
8003
|
const anchor = useRef<HTMLButtonElement>(null);
|
|
8011
8004
|
const [open, setOpen] = useState(false);
|
|
@@ -8016,7 +8009,7 @@ export default function AnchoredSurface() {
|
|
|
8016
8009
|
Sprint 14
|
|
8017
8010
|
</Button>
|
|
8018
8011
|
<Popover open={open} onOpenChange={setOpen} anchorRef={anchor} role="dialog" ariaLabel="Sprint 14" restoreFocus width={280}>
|
|
8019
|
-
<Stack gap={2} style={
|
|
8012
|
+
<Stack gap={2} style={{ padding: "var(--u-space-4)" }}>
|
|
8020
8013
|
<Text size="sm" weight="medium">
|
|
8021
8014
|
Member portal sign-in and profile
|
|
8022
8015
|
</Text>
|
|
@@ -8038,13 +8031,6 @@ export default function AnchoredSurface() {
|
|
|
8038
8031
|
import { useRef, useState } from "react";
|
|
8039
8032
|
import { Button, Popover, Stack, Text } from "@umriss-ui/core";
|
|
8040
8033
|
|
|
8041
|
-
const SURFACE = {
|
|
8042
|
-
padding: "var(--u-space-3)",
|
|
8043
|
-
background: "var(--u-color-surface)",
|
|
8044
|
-
borderRadius: "var(--u-radius-md)",
|
|
8045
|
-
boxShadow: "var(--u-shadow-overlay)",
|
|
8046
|
-
};
|
|
8047
|
-
|
|
8048
8034
|
export default function WidthFromAnchor() {
|
|
8049
8035
|
const anchor = useRef<HTMLButtonElement>(null);
|
|
8050
8036
|
const [open, setOpen] = useState(false);
|
|
@@ -8064,7 +8050,7 @@ export default function WidthFromAnchor() {
|
|
|
8064
8050
|
minWidth={180}
|
|
8065
8051
|
restoreFocus
|
|
8066
8052
|
>
|
|
8067
|
-
<Stack gap={1} style={
|
|
8053
|
+
<Stack gap={1} style={{ padding: "var(--u-space-3)" }}>
|
|
8068
8054
|
<Text size="sm" mono>FP 402 R · van</Text>
|
|
8069
8055
|
<Text size="sm" mono>FP 455 R · e-van</Text>
|
|
8070
8056
|
</Stack>
|
|
@@ -8113,15 +8099,7 @@ export default function AFilterPanel() {
|
|
|
8113
8099
|
Depots: {applied.length === DEPOTS.length ? "all" : applied.length}
|
|
8114
8100
|
</Button>
|
|
8115
8101
|
<Popover open={open} onOpenChange={setOpen} anchorRef={anchor} role="dialog" ariaLabel="Filter by depot" restoreFocus width={260}>
|
|
8116
|
-
<Stack
|
|
8117
|
-
gap={3}
|
|
8118
|
-
style={{
|
|
8119
|
-
padding: "var(--u-space-4)",
|
|
8120
|
-
background: "var(--u-color-surface)",
|
|
8121
|
-
borderRadius: "var(--u-radius-md)",
|
|
8122
|
-
boxShadow: "var(--u-shadow-overlay)",
|
|
8123
|
-
}}
|
|
8124
|
-
>
|
|
8102
|
+
<Stack gap={3} style={{ padding: "var(--u-space-4)" }}>
|
|
8125
8103
|
{DEPOTS.map((depot) => (
|
|
8126
8104
|
<Checkbox key={depot} label={depot} checked={draft.includes(depot)} onChange={() => toggle(depot)} />
|
|
8127
8105
|
))}
|
|
@@ -8191,7 +8169,7 @@ export default function AFilterPanel() {
|
|
|
8191
8169
|
|
|
8192
8170
|
#### Known limits
|
|
8193
8171
|
|
|
8194
|
-
- No
|
|
8172
|
+
- No padding and no inner layout: it brings the overlay's surface - ground, corners, shadow - and the rest is yours. A `className` restates the surface where one needs another.
|
|
8195
8173
|
- It does not trap focus; a surface the user must answer is a [Modal](#/modal).
|
|
8196
8174
|
|
|
8197
8175
|
What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0032-what-umriss-is-not.md).
|