@umriss-ui/core 0.1.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.
@@ -0,0 +1,2261 @@
1
+ import { AnchorHTMLAttributes } from 'react';
2
+ import { ButtonHTMLAttributes } from 'react';
3
+ import { ComponentPropsWithoutRef } from 'react';
4
+ import { CSSProperties } from 'react';
5
+ import { DialogHTMLAttributes } from 'react';
6
+ import { ElementType } from 'react';
7
+ import { ForwardedRef } from 'react';
8
+ import { ForwardRefExoticComponent } from 'react';
9
+ import { HTMLAttributes } from 'react';
10
+ import { InputHTMLAttributes } from 'react';
11
+ import { JSX } from 'react';
12
+ import { ReactElement } from 'react';
13
+ import { ReactNode } from 'react';
14
+ import { ReactPortal } from 'react';
15
+ import { RefAttributes } from 'react';
16
+ import { RefObject } from 'react';
17
+ import { SelectHTMLAttributes } from 'react';
18
+ import { SVGAttributes } from 'react';
19
+ import { SVGProps } from 'react';
20
+ import { TextareaHTMLAttributes } from 'react';
21
+
22
+ /**
23
+ * The age of an as-of time at the reference time, in milliseconds.
24
+ *
25
+ * Never negative: an as-of time in the future is real - the clocks of machine
26
+ * and panel drift apart - and does not mean that a value is about to become
27
+ * true, but that it is true right now. It counts as zero old.
28
+ *
29
+ * `null` where there is no computable age: without an as-of time there is
30
+ * none.
31
+ */
32
+ export declare function age(asOf: Instant, now: Instant): number | null;
33
+
34
+ export declare const Alert: ForwardRefExoticComponent<AlertProps & RefAttributes<HTMLDivElement>>;
35
+
36
+ export declare interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
37
+ /** How urgent the message is. Only `warning` and `danger` interrupt the
38
+ screen reader - the other two report politely. */
39
+ tone?: AlertTone;
40
+ /** Heading; without it the body text carries the message on its own. */
41
+ title?: ReactNode;
42
+ /** Actions below the text, e.g. "Try again". */
43
+ actions?: ReactNode;
44
+ /** Shows a dismiss cross and calls this. */
45
+ onDismiss?: () => void;
46
+ /** Label of the dismiss cross; default "Close". */
47
+ dismissLabel?: string;
48
+ }
49
+
50
+ export declare type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
51
+
52
+ declare type Align = "start" | "end" | "center";
53
+
54
+ /** Every loaded branch with content. Empty ones stay out because expanding
55
+ them showed nothing; unloaded ones stay out because one click would
56
+ otherwise trigger a thousand requests (ADR-0005). */
57
+ export declare function allBranches<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S[];
58
+
59
+ export declare const AngleGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
60
+
61
+ /**
62
+ * What the value is, given the limit set. A pure function of the two.
63
+ *
64
+ * A missing or non-finite value yields `unknown` - and nothing else: nobody
65
+ * knows the deviation of a value nobody has.
66
+ *
67
+ * Where several bounds are violated the most severe wins, and among equally
68
+ * severe ones the one with the greatest excess. A warning must not hide an
69
+ * alarm, even where the value lies further beyond the warning.
70
+ *
71
+ * No hysteresis: that would need the previous state, and a function of a
72
+ * single value has none. Exactly that is what makes this module safe to
73
+ * duplicate; the trailing of an alarm belongs to its lifecycle and not to a
74
+ * bound.
75
+ */
76
+ export declare function assess(value: number | null | undefined, set?: LimitSet): Assessment;
77
+
78
+ /** The verdict and what led to it. */
79
+ export declare interface Assessment {
80
+ verdict: Verdict;
81
+ /** The violated limit - the same object the caller passed in. Absent where
82
+ none is violated. */
83
+ limit?: Limit;
84
+ /** The amount beyond the bound, always positive. Absent where none is
85
+ violated. */
86
+ excess?: number;
87
+ /** The signed distance from the target. Absent where none is set: no target
88
+ means no deviation, not a deviation of zero.
89
+
90
+ Two fields, because they are two numbers. A single one meaning the one
91
+ thing when a bound is violated and the other otherwise reads well and is
92
+ wrong at three in the morning. */
93
+ deviation?: number;
94
+ }
95
+
96
+ /** Compact status label; as a `pill` for counters. */
97
+ export declare function Badge({ tone, pill, className, children, ...rest }: BadgeProps): JSX.Element;
98
+
99
+ export declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
100
+ /** What the badge stands for. There is always a word beside it: a colour on
101
+ its own is not a statement. */
102
+ tone?: BadgeTone;
103
+ /** Fully rounded pill shape - for counters and key figures. The default is
104
+ the slightly rounded badge shape for status labels. */
105
+ pill?: boolean;
106
+ }
107
+
108
+ export declare type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
109
+
110
+ export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
111
+
112
+ export declare const ButtonGroup: ForwardRefExoticComponent<ButtonGroupProps & RefAttributes<HTMLDivElement>>;
113
+
114
+ export declare interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
115
+ /** Label of the group for the screen reader. */
116
+ "aria-label"?: string;
117
+ }
118
+
119
+ export declare interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
120
+ /** How loud the button is. `primary` exactly once per surface - two main
121
+ actions side by side are no longer a main action. */
122
+ variant?: ButtonVariant;
123
+ /** `sm` for buttons in header bars and table rows, `md` otherwise. */
124
+ size?: ButtonSize;
125
+ /** Shows a loading indicator and locks the button. */
126
+ loading?: boolean;
127
+ }
128
+
129
+ export declare type ButtonSize = "sm" | "md";
130
+
131
+ export declare type ButtonVariant = "primary" | "secondary" | "ghost" | "danger";
132
+
133
+ /**
134
+ * The cadence at which a display has to re-judge itself, in milliseconds -
135
+ * derived from the ages, not from a fixed second. A tile that goes stale after
136
+ * five minutes must not look sixty times a minute.
137
+ *
138
+ * A tenth of the smaller age: the change then appears late by at most ten per
139
+ * cent of that age. Clamped to at most once a second and at least once a
140
+ * minute.
141
+ *
142
+ * Where no age ever takes effect - infinite, not a number - or where both took
143
+ * effect at once, the state no longer changes by itself; the slowest cadence
144
+ * is then enough.
145
+ */
146
+ export declare function cadence(ages: FreshnessAges): number;
147
+
148
+ export declare function Card({ collapsible, defaultCollapsed, className, children, ...rest }: CardProps): JSX.Element;
149
+
150
+ export declare function CardBody({ flush, className, children, ...rest }: CardBodyProps): JSX.Element;
151
+
152
+ export declare interface CardBodyProps extends HTMLAttributes<HTMLDivElement> {
153
+ /** Removes the inner padding, e.g. for flush tables. */
154
+ flush?: boolean;
155
+ }
156
+
157
+ export declare function CardHeader({ title, eyebrow, actions, divider, className, ...rest }: CardHeaderProps): JSX.Element;
158
+
159
+ export declare interface CardHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
160
+ /** The heading of the card. A node and not merely text, so that an
161
+ identifier with markup can stand in it too. */
162
+ title: ReactNode;
163
+ /** Small all-caps label above the title, e.g. a category. */
164
+ eyebrow?: ReactNode;
165
+ /** Right-aligned area, e.g. buttons or badges. */
166
+ actions?: ReactNode;
167
+ /**
168
+ * A dividing line below the head. Only set it where the body needs it -
169
+ * typically with flush data (flush tables, logs). With normal content the
170
+ * white space carries the hierarchy on its own.
171
+ */
172
+ divider?: boolean;
173
+ }
174
+
175
+ export declare interface CardProps extends HTMLAttributes<HTMLElement> {
176
+ /** Allows collapsing and expanding the body through the header. */
177
+ collapsible?: boolean;
178
+ /** Initial state of the collapse mechanism; afterwards it belongs to the
179
+ card. Only effective together with `collapsible`. */
180
+ defaultCollapsed?: boolean;
181
+ }
182
+
183
+ export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
184
+
185
+ export declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
186
+ /** Label to the right of the checkbox. */
187
+ label?: ReactNode;
188
+ /** Partially checked (e.g. "select all" with a mixed selection). */
189
+ indeterminate?: boolean;
190
+ }
191
+
192
+ /**
193
+ * The height the field is allowed to take on. Without an upper bound it
194
+ * grows with its content; with one, up to that many rows and then no
195
+ * further.
196
+ *
197
+ * A line height of 0 is treated as "not measurable yet" (the font has not
198
+ * been loaded), because otherwise the field visibly collapsed while
199
+ * loading.
200
+ */
201
+ export declare const clampedHeight: (measured: number, lineHeight: number, maxRows: number | undefined) => number;
202
+
203
+ export declare function collapse<S extends Key>(snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
204
+
205
+ /** A searchable select field (the combobox pattern with a listbox panel). */
206
+ export declare function Combobox<T extends string = string>({ options, value, onChange, placeholder, disabled, invalid, emptyText, clearable, }: ComboboxProps<T>): JSX.Element;
207
+
208
+ export declare interface ComboboxOption<T extends string = string> {
209
+ /** What comes back when this row is chosen. */
210
+ value: T;
211
+ /** What stands there - and what is filtered on. Text and not a node: what
212
+ cannot be searched is something nobody finds in a combobox. */
213
+ label: string;
214
+ /** Shows the row but does not let it be chosen. */
215
+ disabled?: boolean;
216
+ }
217
+
218
+ export declare interface ComboboxProps<T extends string = string> {
219
+ /** The possibilities, in their natural order. Filtered while typing; never
220
+ reordered. */
221
+ options: readonly ComboboxOption<T>[];
222
+ /** The chosen value; `null` means none. Always controlled - the field keeps
223
+ no second state beside the caller's. */
224
+ value: T | null;
225
+ /** Runs on choosing and on clearing (`null`). Not while typing: what is
226
+ typed is a search term and not yet a value. */
227
+ onChange: (value: T | null) => void;
228
+ /** What stands in the empty field. */
229
+ placeholder?: string;
230
+ /** Locks field and panel. */
231
+ disabled?: boolean;
232
+ /** Marks the field as invalid. `FormField` sets it itself as soon as it
233
+ carries an `error` - by hand only necessary without `FormField`. */
234
+ invalid?: boolean;
235
+ /** Text shown for an empty search result. */
236
+ emptyText?: string;
237
+ /** Shows a cross on selection or input that clears field and selection. */
238
+ clearable?: boolean;
239
+ }
240
+
241
+ export declare function CommandPalette({ open, onClose, items, onChoose, restingItems, }: CommandPaletteProps): JSX.Element;
242
+
243
+ /** A candidate the palette can find - the outside of the term CONTEXT.md lists
244
+ under "Finding" as a Candidate. */
245
+ export declare interface CommandPaletteItem {
246
+ /** What is reported on choosing. */
247
+ id: string;
248
+ /** What is searched and displayed. */
249
+ label: string;
250
+ /** The heading the candidate stands under. It is searched as well. */
251
+ group?: string;
252
+ /** Optional glyph on the left of the row. */
253
+ icon?: ReactNode;
254
+ /**
255
+ * Added to the rank. With it frequency or recency can be expressed - the
256
+ * library deliberately keeps no memory for that.
257
+ */
258
+ weight?: number;
259
+ }
260
+
261
+ export declare interface CommandPaletteProps {
262
+ /** Controlled like the modal: opening is the caller's decision. */
263
+ open: boolean;
264
+ /** Reports every wish to close - Escape, an outside click, a choice. */
265
+ onClose: () => void;
266
+ /** The candidates that are searched. They belong to the caller: the palette
267
+ keeps no memory and does not reorder them. */
268
+ items: readonly CommandPaletteItem[];
269
+ /** Reports the `id` of the chosen candidate. What happens next is the
270
+ caller's decision - that is exactly what keeps places and commands
271
+ together. */
272
+ onChoose: (id: string) => void;
273
+ /**
274
+ * What stands there as long as nothing is typed. Without a value: nothing,
275
+ * and the window is only the field.
276
+ *
277
+ * A LIST and not a switch, because the interesting question is not "all or
278
+ * none" but "which". Whoever really wants to show everything passes
279
+ * `restingItems={items}`; whoever wants to show the five most recently used
280
+ * passes those - and a switch cannot do that. With long lists "all" is also
281
+ * exactly the state this component did away with: a list that is already
282
+ * full can only shrink.
283
+ *
284
+ * The rows stand in THIS order and without marks: without a query there is
285
+ * no rank and nothing to mark. Rank and weight therefore play no part here;
286
+ * the order belongs to the caller.
287
+ */
288
+ restingItems?: readonly CommandPaletteItem[];
289
+ }
290
+
291
+ /** Compact confirmation dialog on the basis of Modal. */
292
+ export declare function ConfirmDialog({ open, onClose, onConfirm, title, description, confirmLabel, cancelLabel, tone, loading, }: ConfirmDialogProps): JSX.Element;
293
+
294
+ export declare interface ConfirmDialogProps {
295
+ /** Whether the query stands. */
296
+ open: boolean;
297
+ /** Cancelling: Escape, cross, backdrop or the second button. */
298
+ onClose: () => void;
299
+ /** Agreeing. The dialog does not close itself from that – whoever wants to
300
+ show a confirmation in progress still needs it. */
301
+ onConfirm: () => void;
302
+ /** The question, as a statement: "Delete batch 2041?". */
303
+ title: ReactNode;
304
+ /** What about it cannot be taken back. The most important line of the
305
+ dialog. */
306
+ description?: ReactNode;
307
+ /** Label of the agreeing button; the wording's confirm text by default.
308
+ Better is the verb of the action: "Delete" says what is about to
309
+ happen. */
310
+ confirmLabel?: string;
311
+ /** Label of the cancelling button; the wording's cancel text by default. */
312
+ cancelLabel?: string;
313
+ /** "danger" for destructive actions. */
314
+ tone?: "primary" | "danger";
315
+ /** Locks the actions while the confirmation is running. */
316
+ loading?: boolean;
317
+ }
318
+
319
+ /** The cross that clears a field. Six times in the set, identical. */
320
+ export declare const CrossGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
321
+
322
+ /** A date selection with a calendar panel; weeks begin on Monday. */
323
+ export declare function DatePicker({ value, onChange, placeholder, disabled, invalid, size, clearable, }: DatePickerProps): JSX.Element;
324
+
325
+ /**
326
+ * The value contract: every way - the grid, "Today", clearing - hands out local
327
+ * midnight (resolution "day"). There is no path that delivers a time of day
328
+ * along with it.
329
+ */
330
+ export declare interface DatePickerProps {
331
+ /** The day, as a `Date` on local midnight; `null` means none. */
332
+ value: Date | null;
333
+ /** Runs as soon as a day is settled - on a click in the grid, on "Today", on
334
+ clearing (`null`) and on a valid input. Every one of these ways hands out
335
+ local midnight; there is none that delivers a time along with it. */
336
+ onChange: (date: Date | null) => void;
337
+ /** What stands in the empty field. */
338
+ placeholder?: string;
339
+ /** Locks the field and the panel. */
340
+ disabled?: boolean;
341
+ /** Marks the field as invalid. `FormField` sets it itself as soon as it
342
+ carries an `error` - by hand only necessary without `FormField`. */
343
+ invalid?: boolean;
344
+ /** `sm` for dense forms and table rows, `md` otherwise. */
345
+ size?: "sm" | "md";
346
+ /** Shows a cross where a value is set, which fades in on hover/focus and
347
+ clears the value. */
348
+ clearable?: boolean;
349
+ }
350
+
351
+ export declare interface DateRange {
352
+ from: Date;
353
+ to: Date;
354
+ }
355
+
356
+ /**
357
+ * The time span selection - the convenience component of the library.
358
+ *
359
+ * The interaction logic (designed for a minimal number of clicks and zero
360
+ * mis-operation):
361
+ * - The first click sets the start, the second click the end; the panel applies
362
+ * immediately and closes. No "Apply" click needed.
363
+ * - If the second click lies BEFORE the start, both swap silently - a time span
364
+ * is never "the wrong way round", there is no error state.
365
+ * - After the first click, sweeping shows the arising range as a preview band,
366
+ * and the foot line counts the days along live.
367
+ * - The presets on the left choose common time spans with one click; the preset
368
+ * that currently matches is marked.
369
+ * - Two chained months: paging on the outside, no day appears twice.
370
+ * - The same day clicked twice = a one-day time span.
371
+ */
372
+ export declare function DateRangePicker({ value, onChange, placeholder, disabled, invalid, size, clearable, presets, }: DateRangePickerProps): JSX.Element;
373
+
374
+ /**
375
+ * The value contract: both ends on local midnight (resolution "day"), and `from`
376
+ * never lies after `to` - a range dragged backwards is silently turned around.
377
+ * Both ends count inclusively. There is no error state.
378
+ */
379
+ export declare interface DateRangePickerProps {
380
+ /** The time span, both ends on local midnight and both inclusive; `null`
381
+ means none. */
382
+ value: DateRange | null;
383
+ /** Runs as soon as both ends are settled - after the second click, on a
384
+ preset and on clearing (`null`). Ends dragged backwards swap silently;
385
+ there is no error state to handle. */
386
+ onChange: (range: DateRange | null) => void;
387
+ /** What stands in the empty field. */
388
+ placeholder?: string;
389
+ /** Locks the field and the panel. */
390
+ disabled?: boolean;
391
+ /** Marks the field as invalid. `FormField` sets it itself as soon as it
392
+ carries an `error` - by hand only necessary without `FormField`. */
393
+ invalid?: boolean;
394
+ /** `sm` for dense forms and table rows, `md` otherwise. */
395
+ size?: "sm" | "md";
396
+ /** Shows a cross where a value is set, which fades in on hover/focus and
397
+ clears the value. */
398
+ clearable?: boolean;
399
+ /**
400
+ * The quick-select column in the panel. Without a value the default presets;
401
+ * an empty array hides the column.
402
+ */
403
+ presets?: RangePreset[];
404
+ }
405
+
406
+ export declare function DateTimePicker({ value, onChange, withSeconds, placeholder, disabled, size, invalid, clearable, }: DateTimePickerProps): JSX.Element;
407
+
408
+ /**
409
+ * The value contract: an exact instant (resolution "instant"), with seconds
410
+ * depending on `withSeconds`. If the entered wall-clock time falls into a
411
+ * change of daylight saving time, the instant handed out can deviate from it: a
412
+ * skipped hour is pushed forward, and for a doubled hour the choice made in the
413
+ * panel applies (the default being the earlier one). A value is reported only
414
+ * with "Apply", "Now" or "Clear", not already on the click on a day.
415
+ */
416
+ export declare interface DateTimePickerProps {
417
+ /** The instant; `null` means none. */
418
+ value: Date | null;
419
+ /** Runs only on completion - "Apply", "Now" or "Clear" - and not already on
420
+ the click on a day: a day without a time would be a half-set value here,
421
+ and a half value is no value. */
422
+ onChange: (date: Date | null) => void;
423
+ /** Show the seconds field (Default: false). */
424
+ withSeconds?: boolean;
425
+ /** What stands in the empty field. */
426
+ placeholder?: string;
427
+ /** Locks the field and the panel. */
428
+ disabled?: boolean;
429
+ /** `sm` for dense forms and table rows, `md` otherwise. */
430
+ size?: "sm" | "md";
431
+ /** Marks the field as invalid. `FormField` sets it itself as soon as it
432
+ carries an `error` - by hand only necessary without `FormField`. */
433
+ invalid?: boolean;
434
+ /** Shows a cross where a value is set, which fades in on hover/focus and
435
+ clears the value. */
436
+ clearable?: boolean;
437
+ }
438
+
439
+ /**
440
+ * A time span with times at both ends - the same interaction logic as the
441
+ * DateRangePicker, extended by times, without sacrificing the lightness:
442
+ * - Two clicks set the days (backwards allowed, the ends swap silently), after
443
+ * which the focus jumps straight into the first time field: type 0800, slide
444
+ * on, type 1700, Enter - done.
445
+ * - "All day" (the default with an empty value) sets 00:00-23:59 and turns the
446
+ * whole thing back into the two-click selection: after the second click the
447
+ * focus lies on "Apply", and Enter completes it.
448
+ * - The foot line counts along live: days during the selection of days, the
449
+ * exact duration as soon as both times are settled.
450
+ * - If the end lies in time before the start, both swap on applying - there is
451
+ * no error state.
452
+ * - Missing and doubled hours of the daylight-saving change are recognised per
453
+ * end and treated honestly, as in the DateTimePicker.
454
+ */
455
+ export declare function DateTimeRangePicker({ value, onChange, withSeconds, placeholder, disabled, invalid, size, clearable, presets, }: DateTimeRangePickerProps): JSX.Element;
456
+
457
+ /**
458
+ * The props resemble the union of DateRangePickerProps and DateTimePickerProps -
459
+ * the promises expressly do NOT.
460
+ *
461
+ * The value contract: exact instants (resolution "instant"), not midnight.
462
+ * `from` never lies after `to`. Presets mean the same days as in the
463
+ * DateRangePicker, but express the end as the last representable moment of the
464
+ * day (23:59 or 23:59:59 depending on `withSeconds`) instead of as midnight. For
465
+ * the daylight-saving change the same reservation holds as for the
466
+ * DateTimePicker, separately per end of the range.
467
+ */
468
+ export declare interface DateTimeRangePickerProps {
469
+ /** The time span with times at both ends; `null` means none. */
470
+ value: DateRange | null;
471
+ /** Runs only on "Apply" and on clearing (`null`), never between the two
472
+ clicks. If the end lies before the start, both swap on applying - there is
473
+ no error state. */
474
+ onChange: (range: DateRange | null) => void;
475
+ /** Show the seconds fields (Default: false). */
476
+ withSeconds?: boolean;
477
+ /** What stands in the empty field. */
478
+ placeholder?: string;
479
+ /** Locks the field and the panel. */
480
+ disabled?: boolean;
481
+ /** Marks the field as invalid. `FormField` sets it itself as soon as it
482
+ carries an `error` - by hand only necessary without `FormField`. */
483
+ invalid?: boolean;
484
+ /** `sm` for dense forms and table rows, `md` otherwise. */
485
+ size?: "sm" | "md";
486
+ /** Shows a cross where a value is set, which fades in on hover/focus and
487
+ clears the value. */
488
+ clearable?: boolean;
489
+ /**
490
+ * The quick-select column in the panel; presets apply for the whole day and
491
+ * close immediately. Without a value the default presets; an empty array
492
+ * hides the column.
493
+ */
494
+ presets?: RangePreset[];
495
+ }
496
+
497
+ export declare const DEFAULT_FORMATS: Formats;
498
+
499
+ export declare const DEFAULT_LANGUAGE: Language;
500
+
501
+ /** The same time spans with the preset labels. */
502
+ export declare const DEFAULT_PRESETS: RangePreset[];
503
+
504
+ /** The instance shipped by default. English; German is `GERMAN_WORDING` in
505
+ `@umriss-ui/core/wording/de` (ADR-0019). */
506
+ export declare const DEFAULT_WORDING: Wording;
507
+
508
+ /** How densely the library builds. A component with a density of its own
509
+ takes it through `useDensityFor` as the default for its `density` - in
510
+ @umriss-ui/table the table and the alarm list; a compact set of tokens
511
+ exists only with work package B.13. */
512
+ export declare type Density = "comfortable" | "compact";
513
+
514
+ export declare type Direction = "up" | "down" | "in" | "out" | "start" | "end";
515
+
516
+ export declare const Divider: ForwardRefExoticComponent<DividerProps & RefAttributes<HTMLDivElement>>;
517
+
518
+ export declare interface DividerProps extends HTMLAttributes<HTMLDivElement> {
519
+ /** Horizontally it separates rows, vertically it separates columns. */
520
+ orientation?: "horizontal" | "vertical";
521
+ /** A stronger line - for section boundaries rather than row separation. */
522
+ strong?: boolean;
523
+ /** A label in the middle. It makes the line a named separator. */
524
+ label?: ReactNode;
525
+ }
526
+
527
+ export declare const Dock: ForwardRefExoticComponent<DockProps & RefAttributes<HTMLDivElement>>;
528
+
529
+ /** The outside of the resting place. */
530
+ export declare type DockPlace = Place;
531
+
532
+ export declare interface DockProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect"> {
533
+ /**
534
+ * The tools - a property and expressly not children.
535
+ *
536
+ * Children would read more flexibly and would cost exactly the one number
537
+ * that is needed: the dock must know how many tools it has in order to answer
538
+ * whether it would have room at a side edge at all - and to answer that
539
+ * before it is there.
540
+ */
541
+ tools: readonly DockTool[];
542
+ /** Controlled: the dock reports and waits, it does not move itself. */
543
+ place?: DockPlace;
544
+ /** Uncontrolled: the resting place it starts with. */
545
+ defaultPlace?: DockPlace;
546
+ /** Reports the desired resting place. Controlled, the dock moves only once
547
+ `place` follows; uncontrolled it is merely a message. */
548
+ onPlaceChange?: (place: DockPlace) => void;
549
+ /**
550
+ * The mode - the tool the dock stands in. At most one, and without a value
551
+ * NONE is marked: a dock whose tools simply fire has no mode. None is
552
+ * invented either, and none is preset to the first tool - that would be a
553
+ * statement about the state of the application which this component cannot
554
+ * make.
555
+ */
556
+ mode?: string;
557
+ /**
558
+ * Reported is only what is a CHANGE, and only as long as there is a mode at
559
+ * all: without `mode` there is no change of mode to report, and the taking
560
+ * itself reports `onUse`.
561
+ */
562
+ onModeChange?: (id: string) => void;
563
+ /** A tool was taken. */
564
+ onUse?: (id: string) => void;
565
+ /** The accessible name of the dock. Without a value the wording entry. */
566
+ label?: string;
567
+ }
568
+
569
+ /** A tool: something one TAKES. That distinguishes it from the candidate of the
570
+ command palette, which one FINDS (CONTEXT.md, "Reaching for a tool"). */
571
+ export declare interface DockTool {
572
+ /** What is reported on taking. */
573
+ id: string;
574
+ /** The name. It reaches the eye through the tooltip and the screen reader
575
+ through the accessible name - it never stands written, because a standing
576
+ dock has no room for text. */
577
+ label: string;
578
+ /** The glyph. Drawn according to `packages/core/docs/glyphs.md`: only `currentColor`. */
579
+ icon: ReactNode;
580
+ /** Shows the tool but does not let it be taken. It stays standing in the
581
+ strip: a dock whose tools come and go grows and shrinks under the hand
582
+ reaching for them. */
583
+ disabled?: boolean;
584
+ }
585
+
586
+ /** The first key that occurs twice, otherwise null. Two nodes with the same
587
+ key break the cascade and the active node silently - the companion reports
588
+ that during development. */
589
+ export declare function duplicateKey<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S | null;
590
+
591
+ /** An empty surface as an invitation to act - not as a dead end. */
592
+ export declare function EmptyState({ title, description, action, icon, className, ...rest }: EmptyStateProps): JSX.Element;
593
+
594
+ export declare interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
595
+ /** What is missing here - as a statement, not as an apology. */
596
+ title: ReactNode;
597
+ /** One sentence on why nothing is here and what would put something here. */
598
+ description?: ReactNode;
599
+ /** The way into the next action, e.g. a button. */
600
+ action?: ReactNode;
601
+ /** Optional symbol above the title. */
602
+ icon?: ReactNode;
603
+ }
604
+
605
+ export declare function expand<S extends Key>(snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
606
+
607
+ export declare interface FlatteningEntry<K, S extends Key = string> {
608
+ node: K;
609
+ key: S;
610
+ /** Roots stand at 0. Drives the indentation and what is read out. */
611
+ level: number;
612
+ /** The node's text; here, so that typeahead can be a pure function over
613
+ the flattening and needs no reader. */
614
+ label: string;
615
+ branch: boolean;
616
+ /** Branch without content: expanding it showed nothing. An unloaded branch
617
+ is not empty - it could have children. */
618
+ empty: boolean;
619
+ /** May not be checked (ADR-0005). It stays navigable. */
620
+ disabled: boolean;
621
+ /** Could have children that are not present. For checking exactly the same
622
+ as disabled: whatever has to reach its descendants may not act on it. */
623
+ unloaded: boolean;
624
+ expanded: boolean;
625
+ checked: boolean;
626
+ /** Derived: not checked itself, but at least one descendant is. */
627
+ indeterminate: boolean;
628
+ active: boolean;
629
+ /** Matched the search itself. Without a search text every entry matches, so
630
+ that the surface needs no special case. */
631
+ matches: boolean;
632
+ /** Stands there only because a descendant matches - a signpost. The surface
633
+ dims these and only these. A child under a matching branch is neither a
634
+ match nor a signpost but context: it stays normal. */
635
+ pathOnly: boolean;
636
+ /** 1-based, among the siblings that survive the filter. */
637
+ position: number;
638
+ siblings: number;
639
+ }
640
+
641
+ /** Everything the library knows about formatting. */
642
+ export declare interface Formats {
643
+ /** Date as displayed: 17.03.2026 */
644
+ date: (d: Date) => string;
645
+ /** Short form without the year, in the range footer: 17.03. */
646
+ dateShort: (d: Date) => string;
647
+ /** The calendar's month header: März 2026 */
648
+ month: (d: Date) => string;
649
+ /** Accessible name of a calendar cell: Dienstag, 17. März 2026 */
650
+ dateLong: (d: Date) => string;
651
+ /** Time of day, optionally with seconds: 09:05 or 09:05:03 */
652
+ time: (d: Date, withSeconds: boolean) => string;
653
+ /** Date and time together: 17.03.2026, 09:05 */
654
+ dateTime: (d: Date, withSeconds: boolean) => string;
655
+ /** Short form of the UTC offset: GMT+2 */
656
+ offset: (d: Date) => string;
657
+ /**
658
+ * A number in German notation. Without a digit count the value stands to the
659
+ * tenth decimal place; with one it is padded and rounded to exactly that
660
+ * many places.
661
+ */
662
+ number: (n: number, decimals?: number) => string;
663
+ /**
664
+ * A count. Kept apart from `number` because it makes a different promise: a
665
+ * count is whole, and Intl's default (at most three decimal places) is right
666
+ * for it and wrong for a measurement.
667
+ */
668
+ count: (n: number) => string;
669
+ /** A share from 0 to 1 as whole per cent: 74 % */
670
+ percent: (share: number) => string;
671
+ /** The ordering of two texts by German collation. */
672
+ compareText: (a: string, b: string) => number;
673
+ /** An elapsed duration as a phrase: "vor 3 Minuten".
674
+ The amount comes in milliseconds, counted back from now. */
675
+ relative: (ms: number) => string;
676
+ }
677
+
678
+ export declare function FormField({ label, hint, error, required, fieldId, className, children, ...rest }: FormFieldProps): JSX.Element;
679
+
680
+ /**
681
+ * Resets the FormField context. For the innards of panels (search field,
682
+ * option checkboxes) that are rendered through a portal inside a FormField:
683
+ * without a boundary they inherit its field id - a click on an option label
684
+ * then activates the field's trigger through htmlFor and closes the panel
685
+ * again immediately.
686
+ */
687
+ export declare function FormFieldBoundary({ children }: {
688
+ children: ReactNode;
689
+ }): JSX.Element;
690
+
691
+ declare interface FormFieldContextValue {
692
+ id: string;
693
+ describedBy?: string;
694
+ invalid: boolean;
695
+ /** A required field. Every field whose role carries it turns this into
696
+ `aria-required` - just as it does with `aria-describedby` and
697
+ `aria-invalid`. */
698
+ required: boolean;
699
+ }
700
+
701
+ export declare interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
702
+ /** The label of the field. It is mandatory: a field without a name is a
703
+ field without a question for a screen reader. */
704
+ label: ReactNode;
705
+ /** Help text below the field. Replaced by `error`. */
706
+ hint?: ReactNode;
707
+ /** Error message; it marks the field as invalid at the same time. */
708
+ error?: ReactNode;
709
+ /** Sets the required mark on the label and `aria-required` on the field -
710
+ on Input, Select, Textarea, NumberInput, Combobox, RadioGroup and
711
+ Checkbox. The triggers of the pickers and of the MultiSelect are
712
+ buttons, on which `aria-required` is not a permitted attribute; there
713
+ the mark carries it alone. It validates nothing - validation belongs to
714
+ the caller. */
715
+ required?: boolean;
716
+ /** Optional: a fixed id for the input element (instead of a generated
717
+ one). */
718
+ fieldId?: string;
719
+ }
720
+
721
+ /** How much a value can be relied on right now - independently of how it is judged. */
722
+ export declare type Freshness = "fresh" | "stale" | "lost";
723
+
724
+ /**
725
+ * The freshness of a value: its as-of time, measured against a reference time,
726
+ * placed against the two ages.
727
+ *
728
+ * A missing as-of time yields `lost`, and that is decided rather than
729
+ * computed: `stale` presupposes that we know the age. Where we do not know it,
730
+ * nothing covers the value, and that is the same statement as a broken
731
+ * connection. The check therefore stands before any arithmetic and not inside
732
+ * it.
733
+ *
734
+ * What the value means - good, critical, whatever - is not at issue here and
735
+ * is not touched by this function.
736
+ */
737
+ export declare function freshness(asOf: Instant, now: Instant, ages: FreshnessAges): Freshness;
738
+
739
+ /**
740
+ * The two ages at which a value changes its state, in milliseconds. Both
741
+ * bounds belong to the older state: exactly five minutes old is already
742
+ * `stale`.
743
+ *
744
+ * `alt <= lost` is the sensible order. Stated the other way round, the
745
+ * harder statement still wins - the middle state simply falls away.
746
+ */
747
+ export declare interface FreshnessAges {
748
+ /** From this age on the value counts as stale, but keeps its verdict. */
749
+ stale: number;
750
+ /** From this age on the connection counts as disconnected. */
751
+ lost: number;
752
+ }
753
+
754
+ export declare interface FreshnessReading {
755
+ /** `fresh`, `stale` or `lost` - never a verdict. */
756
+ freshness: Freshness;
757
+ /** Age in milliseconds, never negative; `null` without an as-of time. For the wording. */
758
+ age: number | null;
759
+ /** The reference time of this reading, in milliseconds since the epoch. */
760
+ now: number;
761
+ }
762
+
763
+ export declare interface GlyphProps extends Omit<SVGProps<SVGSVGElement>, "viewBox" | "children"> {
764
+ /**
765
+ * Edge length in pixels. The default is the size the glyph is already drawn
766
+ * at today - whoever changes it changes the picture.
767
+ */
768
+ size?: number;
769
+ }
770
+
771
+ export declare const Grid: ForwardRefExoticComponent<GridProps & RefAttributes<HTMLDivElement>>;
772
+
773
+ /** The grid laid over an area. Two by two lines; the frame is missing on
774
+ purpose, otherwise it would be a window. */
775
+ export declare const GridGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
776
+
777
+ export declare interface GridProps extends HTMLAttributes<HTMLDivElement> {
778
+ /** Fixed column count; overridden by minItemWidth. */
779
+ columns?: number;
780
+ /** Responsive: as many columns as fit at this minimum width. */
781
+ minItemWidth?: string;
782
+ /** Spacing as a step of the 4 px spacing steps (1–8); applies in both
783
+ directions. */
784
+ gap?: SpaceStep;
785
+ }
786
+
787
+ /** The grip a dock is moved by: two grooves, the hand needs no more. Dotted
788
+ would be the obvious form and is wrong here - dots are fill, and point 4 of
789
+ the specification draws with the stroke.
790
+
791
+ The grooves stand the same way in both orientations of the dock. Turning
792
+ them with it would be prettier and would need a `rotate()` in a component
793
+ whose acceptance (ADR-0014, ticket 04) rules exactly that out - a glyph
794
+ that has to be rotated to be right is one that would be rotated along at
795
+ the change. */
796
+ export declare const GripGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
797
+
798
+ export declare const Heading: ForwardRefExoticComponent<HeadingProps & RefAttributes<HTMLHeadingElement>>;
799
+
800
+ export declare interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
801
+ /** The page's outline level (h1–h6). Default 2. */
802
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
803
+ /** Optical size; independent of the level. Default matching the level. */
804
+ size?: TextSize;
805
+ /** Font weight from the token set. Default `semibold`. */
806
+ weight?: TextWeight;
807
+ /** How loud the heading is. */
808
+ tone?: TextTone;
809
+ }
810
+
811
+ export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
812
+
813
+ export declare interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
814
+ /** `sm` for dense forms and table rows, `md` otherwise. */
815
+ size?: "sm" | "md";
816
+ /** Marks the field as invalid. `FormField` sets it itself as soon as it
817
+ carries an `error` - by hand only necessary without `FormField`. */
818
+ invalid?: boolean;
819
+ /** Right-aligned tabular figures in Geist Mono, e.g. for key figures. */
820
+ numeric?: boolean;
821
+ /**
822
+ * Shows a gently appearing cross where there is content, which clears the
823
+ * input. Requires a controlled field (value) and onClear.
824
+ */
825
+ clearable?: boolean;
826
+ /** Called by the cross. Clearing belongs to the caller: only it knows
827
+ whether "empty" here is the empty text or no value at all. */
828
+ onClear?: () => void;
829
+ }
830
+
831
+ /** What may come in as an as-of time or a reference time. */
832
+ declare type Instant = Date | number | null | undefined;
833
+
834
+ export declare type Key = string | number;
835
+
836
+ /** The checkable keys between two visible nodes, both ends included and
837
+ independent of their order. Whatever may not be checked drops out: the
838
+ gesture does what it can instead of nothing. */
839
+ export declare function keysBetween<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], from: S, to: S): S[];
840
+
841
+ export declare interface Language {
842
+ formats: Formats;
843
+ wording: Wording;
844
+ }
845
+
846
+ /** What an application can pass in for formatting and wording. */
847
+ export declare interface LanguageOptions {
848
+ /** How numbers, dates and durations are written. Overridden entry by entry;
849
+ what is left out keeps writing as `DEFAULT_FORMATS` does - in `de-DE`,
850
+ whatever the wording says (ADR-0019). */
851
+ formats?: Partial<Formats>;
852
+ /** The presets are a register of their own and are likewise overridden entry
853
+ by entry. */
854
+ wording?: Partial<Omit<Wording, "presets">> & {
855
+ presets?: Partial<Wording["presets"]>;
856
+ };
857
+ }
858
+
859
+ /**
860
+ * Sets formatting and wording for the subtree below. Used by the root provider,
861
+ * and usable directly for a section as well.
862
+ */
863
+ export declare function LanguageProvider({ formats, wording, children }: LanguageProviderProps): JSX.Element;
864
+
865
+ export declare interface LanguageProviderProps extends LanguageOptions {
866
+ children: ReactNode;
867
+ }
868
+
869
+ /** A bound: a value, a side, a severity.
870
+
871
+ No tolerance band as input. A band is derived - two limits of equal
872
+ severity on opposite sides enclose one - and as an input type it would
873
+ force a `null` on one edge in the one-sided case. One-sided is the common
874
+ case, not the exception. */
875
+ export declare interface Limit {
876
+ value: number;
877
+ side: Side;
878
+ severity: Severity;
879
+ }
880
+
881
+ /** The set a value is read against.
882
+
883
+ The target stands beside the limits and is not one: it is missed, never
884
+ violated, and it is never the edge of a region. Conflating the two is how a
885
+ tile turns red for being above target. */
886
+ export declare interface LimitSet {
887
+ /** In any order; none, one or several. */
888
+ limits?: readonly Limit[];
889
+ target?: number;
890
+ }
891
+
892
+ export declare const Link: ForwardRefExoticComponent<LinkProps & RefAttributes<HTMLAnchorElement>>;
893
+
894
+ export declare interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
895
+ /** Size from the token set – a link has to match its body text. */
896
+ size?: TextSize;
897
+ /** Opens in a new tab and sets the necessary protective attributes. */
898
+ external?: boolean;
899
+ }
900
+
901
+ /** Measuring: a line with two end marks. Not a ruler with a scale - the teeth
902
+ would be a grey stripe at ten nominal units. */
903
+ export declare const MeasureGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
904
+
905
+ export declare function Menu({ trigger, children, align }: MenuProps): JSX.Element;
906
+
907
+ export declare function MenuItem({ onSelect, tone, className, children, ...rest }: MenuItemProps): JSX.Element;
908
+
909
+ export declare interface MenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onSelect"> {
910
+ /** What the entry does. The menu closes afterwards by itself: a menu that
911
+ stays open after something has happened hides the result. */
912
+ onSelect?: () => void;
913
+ /** "danger" for destructive actions. */
914
+ tone?: "default" | "danger";
915
+ }
916
+
917
+ export declare interface MenuProps {
918
+ /** Trigger, e.g. a <Button>; must accept refs. */
919
+ trigger: ReactElement<Record<string, unknown>>;
920
+ /** The entries – typically `MenuItem` and `MenuSeparator`. */
921
+ children: ReactNode;
922
+ /** Alignment of the panel relative to the trigger. */
923
+ align?: "start" | "end";
924
+ }
925
+
926
+ /** Fine dividing line between groups of menu entries. */
927
+ export declare function MenuSeparator(): JSX.Element;
928
+
929
+ /** Builds a complete instance from the default and a partial value. */
930
+ export declare function mergeLanguage(optionen: LanguageOptions | undefined): Language;
931
+
932
+ /** A narrow fill-level bar, e.g. for utilisation in table cells. */
933
+ export declare function Meter({ value, tone, showLabel, label, className, ...rest }: MeterProps): JSX.Element;
934
+
935
+ export declare interface MeterProps extends HTMLAttributes<HTMLSpanElement> {
936
+ /** Fill level from 0 to 1. */
937
+ value: number;
938
+ /** The colour of the bar. It comes from an assessment and not from taste:
939
+ beside the bar there is always the number or a word, so that the colour
940
+ is never the only statement. */
941
+ tone?: MeterTone;
942
+ /** The percentage to the right of the bar (Geist Mono). */
943
+ showLabel?: boolean;
944
+ /**
945
+ * What is being measured, e.g. "Utilisation".
946
+ *
947
+ * A role of `meter` needs a name from the author - the visible percentage
948
+ * inside it does not count for that, and neither does the column heading
949
+ * beside it. Without a value the general term stands here; whoever knows
950
+ * what the bar measures says it better.
951
+ */
952
+ label?: string;
953
+ }
954
+
955
+ export declare type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
956
+
957
+ export declare const MinusGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
958
+
959
+ export declare function Modal({ open, onClose, size, closeOnBackdrop, className, children, ...rest }: ModalProps): JSX.Element;
960
+
961
+ export declare function ModalBody({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>): JSX.Element;
962
+
963
+ export declare function ModalFooter({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>): JSX.Element;
964
+
965
+ export declare function ModalHeader({ title, description, hideClose, className, ...rest }: ModalHeaderProps): JSX.Element;
966
+
967
+ export declare interface ModalHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
968
+ /** The heading of the window. It names it for the screen reader at the same
969
+ time – a dialog without a name says only "dialog". */
970
+ title: ReactNode;
971
+ /** One sentence below the heading: what is to be decided here. */
972
+ description?: ReactNode;
973
+ /** Hides the close button. */
974
+ hideClose?: boolean;
975
+ }
976
+
977
+ export declare interface ModalProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, "onClose"> {
978
+ /** Whether the window stands. Controlled: the opening is the caller's
979
+ decision, and only the caller knows whether something may be open. */
980
+ open: boolean;
981
+ /** Reports every wish to close – Escape, cross, backdrop click. */
982
+ onClose: () => void;
983
+ /** The width of the window. The height comes from the content; only the
984
+ body scrolls, header and footer stand fast. */
985
+ size?: ModalSize;
986
+ /** Closes on a click on the backdrop. Default: true. */
987
+ closeOnBackdrop?: boolean;
988
+ }
989
+
990
+ export declare type ModalSize = "sm" | "md" | "lg";
991
+
992
+ /**
993
+ * Move the active node.
994
+ *
995
+ * `in` and `out` have two meanings each, and that is intended: one key goes
996
+ * deeper, no matter whether something has to be opened for it first. Doing
997
+ * both at once - opening *and* stepping inside - makes the tree impossible to
998
+ * inspect without expanding it.
999
+ */
1000
+ export declare function move<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], snapshot: TreeSnapshot<S>, direction: Direction): TreeSnapshot<S>;
1001
+
1002
+ /**
1003
+ * Multiple selection. The trigger always stays on one line and measures the
1004
+ * room: as many chips as fit, the rest as a "+N" counter. Chips are removed by
1005
+ * click (hover shows the ×), Backspace deletes the most recently chosen,
1006
+ * arrow keys travel across the chips (roving tabindex). The counter opens the
1007
+ * panel directly in the "selected" scope.
1008
+ *
1009
+ * In the panel: search field, scope switch "All | Selected (N)"
1010
+ * (the list always keeps its natural order – no re-sorting),
1011
+ * quality-of-life actions on the filtered set of the active scope. In the
1012
+ * "selected" scope, rows that have been unticked stay visible until the scope
1013
+ * changes, so that nothing jumps away from under the mouse pointer.
1014
+ */
1015
+ export declare function MultiSelect<T extends string = string>({ options, value, onChange, placeholder, searchPlaceholder, emptyText, disabled, invalid, }: MultiSelectProps<T>): JSX.Element;
1016
+
1017
+ export declare interface MultiSelectOption<T extends string = string> {
1018
+ /** What stands in `value` when this row is ticked. */
1019
+ value: T;
1020
+ /** What is shown – in the panel and as a chip in the field. */
1021
+ label: string;
1022
+ /** Shows the row but does not let it be ticked. A value already chosen
1023
+ stays chosen: disabled means "do not change", not "gone". */
1024
+ disabled?: boolean;
1025
+ }
1026
+
1027
+ export declare interface MultiSelectProps<T extends string = string> {
1028
+ /** The possibilities, in their natural order. The list never re-sorts –
1029
+ not even in the "selected" scope. */
1030
+ options: readonly MultiSelectOption<T>[];
1031
+ /** The chosen values. Always controlled. */
1032
+ value: readonly T[];
1033
+ /** Runs on every change of the selection, with the complete new list –
1034
+ not with the one value that moved. */
1035
+ onChange: (value: T[]) => void;
1036
+ /** What stands in the empty field. */
1037
+ placeholder?: string;
1038
+ /** What stands in the panel's search field. */
1039
+ searchPlaceholder?: string;
1040
+ /** Text when the search finds nothing. */
1041
+ emptyText?: string;
1042
+ /** Locks field and panel. */
1043
+ disabled?: boolean;
1044
+ /** Marks the field as invalid. `FormField` sets it itself as soon as it
1045
+ carries an `error` – by hand only necessary without `FormField`. */
1046
+ invalid?: boolean;
1047
+ }
1048
+
1049
+ /** How a node is read - handed over once, not per node. The node's own type
1050
+ thereby stays entirely the caller's. */
1051
+ export declare interface NodeReader<K, S extends Key = string> {
1052
+ key: (node: K) => S;
1053
+ /** `undefined` means leaf, an empty list means empty branch - the
1054
+ difference is visible and intended. */
1055
+ children: (node: K) => readonly K[] | undefined;
1056
+ /** Text the search checks against. */
1057
+ label: (node: K) => string;
1058
+ /** May this node be checked? Without an answer: everyone may.
1059
+ Disabled is a statement about the checkbox, not about the node -
1060
+ it stays navigable (ADR-0005). */
1061
+ disabled?: (node: K) => boolean;
1062
+ /** Can this branch have children that are not present? Without an answer:
1063
+ no. Its own name instead of an overloaded return value: putting `null`
1064
+ against `undefined` would be the kind of distinction that is got wrong
1065
+ more often than right. */
1066
+ unloaded?: (node: K) => boolean;
1067
+ }
1068
+
1069
+ /**
1070
+ * Number input in German notation: the comma as the decimal separator,
1071
+ * dots as thousands separators (set on leaving, tolerated while typing).
1072
+ * The arrow keys count (Shift ×10), min/max clamp on leaving, alignment
1073
+ * right in Geist Mono.
1074
+ *
1075
+ * Stepper: quiet −/+ buttons without dividing lines, damped at rest, fully
1076
+ * present on hover or focus. Holding one down repeats the step (a short
1077
+ * run-up, then briskly); min/max disable the respective button.
1078
+ */
1079
+ export declare const NumberInput: ForwardRefExoticComponent<NumberInputProps & RefAttributes<HTMLInputElement>>;
1080
+
1081
+ export declare interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "size" | "prefix" | "type"> {
1082
+ /** The number, or `null` for "not stated". An empty field is not zero:
1083
+ a quantity that was not measured is not a quantity of zero. */
1084
+ value: number | null;
1085
+ /** Runs on every valid input, with `null` for the emptied field – and
1086
+ always clamped: what goes out lies between `min` and `max`, by every
1087
+ route, while typing included. Only the text in the field may still
1088
+ stand outside while typing; on leaving it is set to the clamped
1089
+ value. */
1090
+ onChange: (value: number | null) => void;
1091
+ /** Lower bound. Every reported value is clamped; the text in the field
1092
+ follows on leaving. */
1093
+ min?: number;
1094
+ /** Upper bound. Every reported value is clamped; the text in the field
1095
+ follows on leaving. */
1096
+ max?: number;
1097
+ /** Step size for the arrow keys; Shift multiplies it by ten. Default: 1. */
1098
+ step?: number;
1099
+ /** Fixed decimal places; 0 = whole numbers, undefined = free. */
1100
+ decimals?: number;
1101
+ /** Adornment before the number, e.g. "±". */
1102
+ prefix?: ReactNode;
1103
+ /** Adornment after the number, e.g. "€" or "%". */
1104
+ suffix?: ReactNode;
1105
+ /** `sm` for dense forms and table rows, `md` otherwise. */
1106
+ size?: "sm" | "md";
1107
+ /** Marks the field as invalid. `FormField` sets it itself as soon as it
1108
+ carries an `error` – by hand only needed without `FormField`. */
1109
+ invalid?: boolean;
1110
+ }
1111
+
1112
+ /** The keys from the root down to the target, the target included; null if
1113
+ the key does not exist in the data. */
1114
+ export declare function pathTo<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, key: S): S[] | null;
1115
+
1116
+ /** One of the four edges of the host. There is no fifth and no corner. */
1117
+ declare type Place = "top" | "right" | "bottom" | "left";
1118
+
1119
+ export declare const PlusGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
1120
+
1121
+ /**
1122
+ * The one closable, anchored surface. It owns: the portal, the position
1123
+ * including clamping and flipping, the outside click, Escape with focus
1124
+ * return, travelling along on scroll, stacking order and entrance.
1125
+ *
1126
+ * Two things it takes off the callers' hands that each of them had to carry
1127
+ * itself before:
1128
+ *
1129
+ * - It portals into the nearest <dialog> ancestor of the anchor, otherwise
1130
+ * into the body. A menu in a modal landed behind the dialog otherwise,
1131
+ * because a portal at the body does not reach the top layer.
1132
+ * - It resets the FormField context inside the panel. Without that, form
1133
+ * elements in the panel inherit the field id of the trigger, and a click on
1134
+ * their label closes the panel (HANDOFF A.5 §1 – happened twice).
1135
+ */
1136
+ export declare function Popover({ open, onOpenChange, anchorRef, focusRef, insideRefs, align, offset, width, minWidth, restoreFocus, hideOnScroll, role, ariaLabel, id, className, children, }: PopoverProps): ReactPortal | null;
1137
+
1138
+ export declare interface PopoverProps {
1139
+ /** Whether the surface stands. Controlled: the popover never opens itself. */
1140
+ open: boolean;
1141
+ /** Reports every wish to change the state – outside click, Escape,
1142
+ scrolling. Whether it closes as a result is the caller's decision. */
1143
+ onOpenChange: (open: boolean) => void;
1144
+ /** Trigger the panel hangs from (the reference for the position). */
1145
+ anchorRef: RefObject<HTMLElement | null>;
1146
+ /**
1147
+ * Element that receives the focus on closing. Default: the anchor.
1148
+ * Needed where the anchor is a non-focusable shell and the actual
1149
+ * trigger sits inside it.
1150
+ */
1151
+ focusRef?: RefObject<HTMLElement | null>;
1152
+ /** Further elements whose click does not count as an outside click (e.g. the clear ×). */
1153
+ insideRefs?: ReadonlyArray<RefObject<HTMLElement | null>>;
1154
+ /** Where the surface points as long as there is room. Where there is none,
1155
+ it flips to the other side and clamps to the edge of the window. */
1156
+ align?: Align;
1157
+ /** Distance between trigger and surface, in pixels. */
1158
+ offset?: number;
1159
+ /** "anchor" takes over the width of the trigger, a number fixes it. */
1160
+ width?: "anchor" | "auto" | number;
1161
+ /** Minimum width when the width comes from the anchor. */
1162
+ minWidth?: number;
1163
+ /** Give the focus back to the trigger on closing. */
1164
+ restoreFocus?: boolean;
1165
+ /** Close on scrolling instead of travelling along – for tooltips. */
1166
+ hideOnScroll?: boolean;
1167
+ /** Role of the surface. Omit where an inner element carries it. */
1168
+ role?: "dialog" | "listbox" | "menu" | "tooltip";
1169
+ /** Accessible name of the surface. Needed as soon as it carries a `role`:
1170
+ a named role without a name is a riddle for a screen reader. */
1171
+ ariaLabel?: string;
1172
+ /** Fixed id of the surface – for `aria-controls` on the trigger. */
1173
+ id?: string;
1174
+ /** Additional class on the surface. */
1175
+ className?: string;
1176
+ /** What stands in the surface. */
1177
+ children: ReactNode;
1178
+ }
1179
+
1180
+ /**
1181
+ * Where overlays portal to.
1182
+ *
1183
+ * A function is evaluated on every opening - a target that only comes into the
1184
+ * tree later cannot be given otherwise. `null`, or a result of `null`, means
1185
+ * "as before".
1186
+ */
1187
+ export declare type PortalTarget = HTMLElement | (() => HTMLElement | null) | null;
1188
+
1189
+ export declare const RadioGroup: <T extends string>(props: RadioGroupProps<T> & {
1190
+ ref?: React.ForwardedRef<HTMLDivElement>;
1191
+ }) => React.ReactElement;
1192
+
1193
+ export declare interface RadioGroupProps<T extends string> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
1194
+ /** The possibilities, in the order in which they are meant to stand. */
1195
+ options: readonly RadioOption<T>[];
1196
+ /** The chosen possibility; `null` means: none yet. Together with
1197
+ `onChange` the group is controlled. */
1198
+ value?: T | null;
1199
+ /** Initial value of an uncontrolled group. Not together with `value`. */
1200
+ defaultValue?: T | null;
1201
+ /** Runs on every choice – on the one made with the arrow keys as well. */
1202
+ onChange?: (value: T) => void;
1203
+ /** Arrangement; Default one below the other. */
1204
+ orientation?: "vertical" | "horizontal";
1205
+ /** `sm` for dense forms, `md` otherwise. */
1206
+ size?: "sm" | "md";
1207
+ /** Disables the whole group. `RadioOption` disables single
1208
+ possibilities. */
1209
+ disabled?: boolean;
1210
+ /** Name of the radio group within the form; otherwise automatic. */
1211
+ name?: string;
1212
+ }
1213
+
1214
+ export declare interface RadioOption<T extends string> {
1215
+ /** What comes back when this possibility is chosen. */
1216
+ value: T;
1217
+ /** What stands beside it. */
1218
+ label: ReactNode;
1219
+ /** Line of explanation under the label; it is read out as well. */
1220
+ description?: ReactNode;
1221
+ /** Takes the possibility out of the choice but leaves it visible: a
1222
+ choice that does not exist is a different statement from one that may
1223
+ not be made. */
1224
+ disabled?: boolean;
1225
+ }
1226
+
1227
+ /**
1228
+ * The number of days in the range, both ends included. It is calculated on day
1229
+ * boundaries and rounded, so that the 23 and 25 hour days of the daylight
1230
+ * saving change do not shift the result.
1231
+ */
1232
+ export declare const rangeDays: (from: Date, to: Date) => number;
1233
+
1234
+ export declare interface RangePreset {
1235
+ label: string;
1236
+ range: () => DateRange;
1237
+ }
1238
+
1239
+ /**
1240
+ * How many characters still fit. Without a limit there is nothing to
1241
+ * report. Counts the way the browser counts (UTF-16 units, an emoji is
1242
+ * two), so that the display and `maxLength` say the same thing.
1243
+ *
1244
+ * Negative is allowed and intended: a value set from outside does not know
1245
+ * `maxLength`, and then the display is meant to show that.
1246
+ */
1247
+ export declare const remainingChars: (value: string, maxLength: number | undefined) => number | undefined;
1248
+
1249
+ /**
1250
+ * Expands along a path as far as the data reaches, and reports the deepest
1251
+ * key it got to.
1252
+ *
1253
+ * The path is handed over and not searched for: a deep link knows it, the
1254
+ * data does not know it yet. If the run gets stuck at an unloaded branch,
1255
+ * that branch's key is the answer - and because it is expanded in the
1256
+ * process, it triggers the loading at the same time. The caller loads and
1257
+ * calls again; the same loop it already has for expanding anyway.
1258
+ *
1259
+ * The target itself is not expanded: it is meant to be shown, not opened.
1260
+ */
1261
+ export declare function revealPath<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>, path: readonly S[]): {
1262
+ snapshot: TreeSnapshot<S>;
1263
+ reached: S | null;
1264
+ };
1265
+
1266
+ export declare interface RowPlacement {
1267
+ rowHeight: number;
1268
+ scrollTop: number;
1269
+ viewportHeight: number;
1270
+ /** Height of the sticky header; it covers the upper edge. */
1271
+ headerHeight?: number;
1272
+ }
1273
+
1274
+ export declare interface RowWindow {
1275
+ /** First rendered index. */
1276
+ from: number;
1277
+ /** First index no longer rendered (exclusive). */
1278
+ to: number;
1279
+ /** Height of the filler row above, in pixels. */
1280
+ before: number;
1281
+ /** Height of the filler row below, in pixels. */
1282
+ after: number;
1283
+ }
1284
+
1285
+ /**
1286
+ * The scroll position at which a row is visible - or null where it already is.
1287
+ *
1288
+ * This is the arithmetic the keyboard handling hangs on. Without it the focus
1289
+ * moves into a row that is not rendered, and the focus ring disappears - a
1290
+ * virtualised table that cannot do this is worse than a paged one.
1291
+ *
1292
+ * The sticky header counts against the upper edge: a row standing exactly at
1293
+ * `scrollTop` lies behind it.
1294
+ */
1295
+ export declare function scrollForRow(index: number, { rowHeight, scrollTop, viewportHeight, headerHeight }: RowPlacement): number | null;
1296
+
1297
+ /**
1298
+ * Native select with the library's looks – maximum accessibility without
1299
+ * building one ourselves. The arrow is drawn in CSS and therefore follows the
1300
+ * theme tokens.
1301
+ */
1302
+ export declare const Select: ForwardRefExoticComponent<SelectProps & RefAttributes<HTMLSelectElement>>;
1303
+
1304
+ export declare interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
1305
+ /** `sm` for dense forms and table rows, `md` otherwise. Not called `size`,
1306
+ because `<select size>` on the native element is the number of visible
1307
+ rows – two meanings, one name, that would go wrong. */
1308
+ selectSize?: "sm" | "md";
1309
+ /** Marks the field as invalid. `FormField` sets it itself as soon as it
1310
+ carries an `error` – by hand only necessary without `FormField`. */
1311
+ invalid?: boolean;
1312
+ /**
1313
+ * Shows a × once a selection has been made, which fades in on hover/focus
1314
+ * and empties the selection. Requires a controlled field (value) and
1315
+ * onClear; sensible for optional selects with a placeholder option.
1316
+ */
1317
+ clearable?: boolean;
1318
+ /** Called by the ×; resets the selection to the placeholder option. */
1319
+ onClear?: () => void;
1320
+ }
1321
+
1322
+ export declare function setActive<S extends Key>(snapshot: TreeSnapshot<S>, key: S | null): TreeSnapshot<S>;
1323
+
1324
+ export declare function setAnchor<S extends Key>(snapshot: TreeSnapshot<S>, key: S | null): TreeSnapshot<S>;
1325
+
1326
+ /**
1327
+ * Sets a set of nodes to checked or unchecked - and does not toggle.
1328
+ *
1329
+ * That is the decision which separates a range from a sequence of single
1330
+ * clicks: if it contains a branch *and* one of its children, a sequence of
1331
+ * toggles would touch the child twice and uncheck it again. Every target is
1332
+ * set together with its descendants; afterwards all ancestors of the targets
1333
+ * are reconciled, from the bottom up - and only those.
1334
+ */
1335
+ export declare function setChecked<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>, targets: readonly S[], on: boolean): TreeSnapshot<S>;
1336
+
1337
+ /** How seriously a violation weighs: one severity that advises and one that
1338
+ calls for action. Exactly two - whoever offers five gets five colours on
1339
+ the screen, and five colours are noise. For a third distinction one sets a
1340
+ second limit. */
1341
+ export declare type Severity = "warning" | "alarm";
1342
+
1343
+ /** Whether a limit is an upper or a lower bound. */
1344
+ export declare type Side = "upper" | "lower";
1345
+
1346
+ /** Loading placeholder with a restrained pulse; respects prefers-reduced-motion. */
1347
+ export declare function Skeleton({ width, height, circle, className, style, ...rest }: SkeletonProps): JSX.Element;
1348
+
1349
+ export declare interface SkeletonProps extends HTMLAttributes<HTMLSpanElement> {
1350
+ /** Width, e.g. "120px" or "60%". Default: 100 %. */
1351
+ width?: string | number;
1352
+ /** Height, default: 12px. */
1353
+ height?: string | number;
1354
+ /** Circular shape, e.g. for an avatar placeholder. */
1355
+ circle?: boolean;
1356
+ }
1357
+
1358
+ export declare type SpaceStep = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
1359
+
1360
+ /** A miniature trend line for table cells; the end point carries the accent. */
1361
+ export declare function Sparkline({ data, width, height, tone, className, ...rest }: SparklineProps): JSX.Element | null;
1362
+
1363
+ export declare interface SparklineProps extends HTMLAttributes<HTMLSpanElement> {
1364
+ /** Values in chronological order; at least two. */
1365
+ data: readonly number[];
1366
+ /** Width in pixels. Default 96 - a row width, not a chart width. */
1367
+ width?: number;
1368
+ /** Height in pixels. Default 28 - as high as a table row. */
1369
+ height?: number;
1370
+ /** The line is ink, not meaning: `accent` only where exactly one line among
1371
+ several is to be emphasised. */
1372
+ tone?: "ink" | "accent";
1373
+ }
1374
+
1375
+ /** Restrained loading indicator; inherits the text colour of its context. */
1376
+ export declare function Spinner({ size, className, ...rest }: SpinnerProps): JSX.Element;
1377
+
1378
+ export declare interface SpinnerProps extends SVGAttributes<SVGSVGElement> {
1379
+ /** Edge length in pixels. */
1380
+ size?: number;
1381
+ }
1382
+
1383
+ export declare const SplitButton: ForwardRefExoticComponent<SplitButtonProps & RefAttributes<HTMLButtonElement>>;
1384
+
1385
+ export declare interface SplitButtonProps extends Omit<ButtonProps, "children" | "size" | "variant"> {
1386
+ /** Label of the main action. */
1387
+ children: ReactNode;
1388
+ /** The main action. */
1389
+ onClick?: ButtonProps["onClick"];
1390
+ /** Entries of the menu - typically `MenuItem`. */
1391
+ menu: ReactNode;
1392
+ /** How loud the main action is; the trigger beside it follows suit. */
1393
+ variant?: ButtonVariant;
1394
+ /** `sm` for buttons in header bars and table rows, `md` otherwise. */
1395
+ size?: ButtonSize;
1396
+ /** Label of the trigger; default "More actions". */
1397
+ menuLabel?: string;
1398
+ /** Alignment of the menu relative to the trigger. */
1399
+ align?: "start" | "end";
1400
+ }
1401
+
1402
+ export declare const Stack: ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>>;
1403
+
1404
+ export declare interface StackProps extends HTMLAttributes<HTMLDivElement> {
1405
+ /** Below one another or beside one another. Default is below one another:
1406
+ that is the direction content stands in anyway, without being asked. */
1407
+ direction?: "row" | "column";
1408
+ /** Spacing as a step of the 4 px spacing steps (1–8). */
1409
+ gap?: SpaceStep;
1410
+ /** Alignment across the direction – `alignItems` unchanged. */
1411
+ align?: CSSProperties["alignItems"];
1412
+ /** Distribution along the direction – `justifyContent` unchanged. */
1413
+ justify?: CSSProperties["justifyContent"];
1414
+ /** Lets the children wrap when the line does not suffice. */
1415
+ wrap?: boolean;
1416
+ }
1417
+
1418
+ /** Metric tile: one value, read against its limits. */
1419
+ export declare function Stat({ label, value, unit, decimals, limits, history, asOf, ages, className, ...rest }: StatProps): JSX.Element;
1420
+
1421
+ export declare interface StatProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
1422
+ /** What is being measured. */
1423
+ label: string;
1424
+ /** The measured value. Absent or non-finite gives the verdict `unknown` –
1425
+ and the tile says so, instead of showing a zero or an empty bar. */
1426
+ value: number | null | undefined;
1427
+ /** The unit as it stands behind the value – „°C", „%", „Stk". */
1428
+ unit?: string;
1429
+ /** Fixed number of decimal places. Without it the notation decides; a metric
1430
+ whose number of digits jumps reads as a jump in the value. */
1431
+ decimals?: number;
1432
+ /** The rule the value is read against. Without it the tile is neutral – the
1433
+ honest display of a number for which nobody has named a rule. */
1434
+ limits?: LimitSet;
1435
+ /** Values in chronological order; yields the history line. */
1436
+ history?: readonly number[];
1437
+ /** When the value was true – not when it was fetched. */
1438
+ asOf?: Date | number | null;
1439
+ /** Without ages there is no freshness display and no cadence. */
1440
+ ages?: FreshnessAges;
1441
+ }
1442
+
1443
+ export declare function Tab({ value, className, children, ...rest }: TabProps): JSX.Element;
1444
+
1445
+ export declare function TabList({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>): JSX.Element;
1446
+
1447
+ export declare function TabPanel({ value, className, children, ...rest }: TabPanelProps): JSX.Element | null;
1448
+
1449
+ export declare interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
1450
+ /** The value of the tab this panel belongs to. Only the matching panel
1451
+ stands in the document – a hidden panel would keep focus, scroll
1452
+ position and live regions that nobody sees. */
1453
+ value: string;
1454
+ }
1455
+
1456
+ export declare interface TabProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1457
+ /** The value this tab reports – and under which its panel stands. */
1458
+ value: string;
1459
+ }
1460
+
1461
+ export declare function Tabs({ value, onChange, className, children, ...rest }: TabsProps): JSX.Element;
1462
+
1463
+ export declare interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
1464
+ /** The value of the visible tab. Controlled: `Tabs` remembers nothing,
1465
+ so that the tab can come out of an address. */
1466
+ value: string;
1467
+ /** Receives the value of the chosen tab. */
1468
+ onChange: (value: string) => void;
1469
+ }
1470
+
1471
+ export declare const Tag: ForwardRefExoticComponent<TagProps & RefAttributes<HTMLSpanElement>>;
1472
+
1473
+ export declare const TagGroup: ForwardRefExoticComponent<TagGroupProps & RefAttributes<HTMLDivElement>>;
1474
+
1475
+ export declare interface TagGroupProps extends HTMLAttributes<HTMLDivElement> {
1476
+ /** Label of the group for the screen reader. */
1477
+ "aria-label": string;
1478
+ }
1479
+
1480
+ export declare interface TagProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onRemove"> {
1481
+ /** What the label stands for. The tone is never the only information: the
1482
+ text beside it says the same thing once more. */
1483
+ tone?: TagTone;
1484
+ /** The text of the label – short enough to stand on one line. */
1485
+ children: ReactNode;
1486
+ /** Makes the tag removable. Without this it is a pure label. */
1487
+ onRemove?: () => void;
1488
+ /**
1489
+ * Label of the remove key. Needed as soon as the content is not text –
1490
+ * no sentence can be formed out of a node.
1491
+ */
1492
+ removeLabel?: string;
1493
+ /** Takes the remove key away from the tag without hiding it: disabled is a
1494
+ statement about the key and not about the label. */
1495
+ disabled?: boolean;
1496
+ }
1497
+
1498
+ export declare type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
1499
+
1500
+ declare const Text_2: ForwardRefExoticComponent<TextProps & RefAttributes<HTMLElement>>;
1501
+ export { Text_2 as Text }
1502
+
1503
+ export declare const Textarea: ForwardRefExoticComponent<TextareaProps & RefAttributes<HTMLTextAreaElement>>;
1504
+
1505
+ export declare interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
1506
+ /** `sm` for dense forms and table rows, `md` otherwise. */
1507
+ size?: "sm" | "md";
1508
+ /** Marks the field as invalid. `FormField` sets it itself as soon as it
1509
+ carries an `error` – by hand only needed without `FormField`. */
1510
+ invalid?: boolean;
1511
+ /** Grows with its content instead of scrolling. */
1512
+ autoGrow?: boolean;
1513
+ /** Upper bound for `autoGrow` in rows; beyond it the field scrolls. */
1514
+ maxRows?: number;
1515
+ /** Shows at the bottom right how many characters still fit.
1516
+ Needs `maxLength`. */
1517
+ showCount?: boolean;
1518
+ /** Whether the browser's handle for dragging is offered. Default: only
1519
+ vertically, and not at all while the field grows by itself. */
1520
+ resize?: "none" | "vertical";
1521
+ }
1522
+
1523
+ declare type TextLeading = "normal" | "tight";
1524
+
1525
+ export declare interface TextProps extends HTMLAttributes<HTMLElement> {
1526
+ /** Element to render as. Default `p`. */
1527
+ as?: ElementType;
1528
+ /** Type size from the token set. It is independent of the element: a `p`
1529
+ may be small without becoming a different element. */
1530
+ size?: TextSize;
1531
+ /** Font weight from the token set. */
1532
+ weight?: TextWeight;
1533
+ /** How loud the text is. `secondary` and `muted` step back without
1534
+ falling below the contrast threshold. */
1535
+ tone?: TextTone;
1536
+ /** Geist Mono with tabular figures – for numbers and identifiers. */
1537
+ mono?: boolean;
1538
+ /** Letter spacing from the token set. `caps` belongs with letterspaced
1539
+ capitals. */
1540
+ tracking?: TextTracking;
1541
+ /** Line spacing. `tight` for multi-line headings and key figures, where
1542
+ the normal spacing lets the lines fall apart. */
1543
+ leading?: TextLeading;
1544
+ }
1545
+
1546
+ export declare type TextSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
1547
+
1548
+ export declare type TextTone = "default" | "secondary" | "muted";
1549
+
1550
+ declare type TextTracking = "normal" | "tight" | "display" | "caps";
1551
+
1552
+ export declare type TextWeight = "regular" | "medium" | "semibold";
1553
+
1554
+ export declare type Theme = "light" | "dark" | "system";
1555
+
1556
+ export declare interface ToastConfig {
1557
+ /** Display duration in ms, where the individual toast names none. */
1558
+ duration?: number;
1559
+ }
1560
+
1561
+ declare interface ToastContextValue {
1562
+ toast: (options: ToastOptions) => number;
1563
+ dismiss: (id: number) => void;
1564
+ }
1565
+
1566
+ export declare interface ToastOptions {
1567
+ /** What has happened – a sentence in the perfect tense, not a request. */
1568
+ title: string;
1569
+ /** One more sentence where the title alone is too little. Nothing the
1570
+ reader MUST read: the toast goes away by itself. */
1571
+ description?: string;
1572
+ /** How the message turns out. The tone is never the only information – the
1573
+ symbol beside it and the text say the same thing once more. */
1574
+ tone?: ToastTone;
1575
+ /** Display duration in ms; 0 = stays until closed by hand. Default: 5000. */
1576
+ duration?: number;
1577
+ }
1578
+
1579
+ export declare function ToastProvider({ children }: {
1580
+ children: ReactNode;
1581
+ }): JSX.Element;
1582
+
1583
+ export declare type ToastTone = "neutral" | "success" | "warning" | "danger";
1584
+
1585
+ /** Everything checkable on - or empty, if everything is on already. */
1586
+ export declare function toggleAll<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>): TreeSnapshot<S>;
1587
+
1588
+ /**
1589
+ * Toggle a check: cascade downwards, reconcile upwards.
1590
+ *
1591
+ * A single check is a range of one target - which is why the arithmetic
1592
+ * stands there only once, and the direction comes from the same definition of
1593
+ * "full" as in toggleAll. If the node is not checkable or does not exist, the
1594
+ * snapshot stays unchanged.
1595
+ */
1596
+ export declare function toggleCheck<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
1597
+
1598
+ /** Appears on hover and keyboard focus; purely descriptive (role="tooltip"). */
1599
+ export declare function Tooltip({ content, children, delay }: TooltipProps): JSX.Element;
1600
+
1601
+ export declare interface TooltipProps {
1602
+ /** Short help text; no interaction, no long content. */
1603
+ content: ReactNode;
1604
+ /** Exactly one element that triggers the tooltip (must accept refs). */
1605
+ children: ReactElement<Record<string, unknown>>;
1606
+ /** Delay in ms before the tooltip appears. */
1607
+ delay?: number;
1608
+ }
1609
+
1610
+ export declare interface Tree<K, S extends Key = string> {
1611
+ /** The visible nodes – complete, even where only a window of them is
1612
+ rendered. Positions and sibling counts come from here and never from
1613
+ what stands in the document (ADR-0004). */
1614
+ flattening: readonly FlatteningEntry<K, S>[];
1615
+ active: S | null;
1616
+ search: string;
1617
+ toggleExpanded: (key: S) => void;
1618
+ toggleCheck: (key: S) => void;
1619
+ activate: (key: S) => void;
1620
+ move: (direction: Direction) => void;
1621
+ setSearch: (text: string) => void;
1622
+ /** Expands the ancestors, brings the row into view and sets the active
1623
+ node. Returns the key, or null if it does not exist in the data. */
1624
+ revealNode: (key: S) => S | null;
1625
+ /** Like revealNode, but with a path the caller knows and the data does not
1626
+ yet - from a deep link, say. Returns the deepest key reached; if the run
1627
+ gets stuck at an unloaded branch, that is its key, and it has been
1628
+ expanded in the process. Loading and calling again is the caller's
1629
+ business. */
1630
+ revealPath: (path: readonly S[]) => S | null;
1631
+ expandAll: () => void;
1632
+ collapseAll: () => void;
1633
+ /** Moves the active node to the next one whose label starts like this.
1634
+ Changes nothing else – not the expanding, not the checks, not the
1635
+ search. */
1636
+ typeahead: (prefix: string) => void;
1637
+ /** Checks the range from the anchor up to this node. */
1638
+ checkTo: (to: S) => void;
1639
+ /** Moves the active node **and** toggles the new one – one gesture, one
1640
+ report. Separate from move(), so that plain movement checks nothing; to
1641
+ be called instead of move(), not in addition to it. */
1642
+ moveAndCheck: (direction: Direction) => void;
1643
+ /** Checks everything checkable – or empties, if everything is on already. */
1644
+ toggleAll: () => void;
1645
+ /**
1646
+ * Counts up every explicit request "show me this node".
1647
+ *
1648
+ * Otherwise the presentation follows the focus to the active node only where
1649
+ * it already lies inside the tree - otherwise a state change from outside
1650
+ * would tear the focus away. An explicit request, however, is exactly the
1651
+ * opposite of an incidental change, and for that it needs a sign.
1652
+ */
1653
+ revealCount: number;
1654
+ /** Set where virtualisation runs; goes to `<TreeView virtual={…}>`. */
1655
+ virtual?: VirtualRows;
1656
+ }
1657
+
1658
+ /**
1659
+ * The visible nodes in reading order.
1660
+ *
1661
+ * While a search runs: a node survives if it matches itself or a descendant
1662
+ * matches - so a match always appears together with the path that leads to it.
1663
+ * A branch that stands there only because of its descendant is treated as if
1664
+ * it were open, **without the expanded state being written**: if the search
1665
+ * text falls away, the tree stands exactly as it did before. A branch that
1666
+ * matches itself brings its whole subtree along, but only visibly so if it is
1667
+ * actually expanded.
1668
+ */
1669
+ export declare function treeModel<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>): readonly FlatteningEntry<K, S>[];
1670
+
1671
+ export declare interface TreeOptions<K, S extends Key = string> {
1672
+ reader: NodeReader<K, S>;
1673
+ /** Initial values, where the tree holds its own state. */
1674
+ defaultExpanded?: Iterable<S>;
1675
+ defaultChecked?: Iterable<S>;
1676
+ defaultActive?: S | null;
1677
+ /** Controlled from outside; where set, it wins over the tree's own state. */
1678
+ expanded?: ReadonlySet<S>;
1679
+ checked?: ReadonlySet<S>;
1680
+ active?: S | null;
1681
+ /** Where a range gesture spans from. Steerable from outside like the other
1682
+ four values, so that a range is repeatable. */
1683
+ anchor?: S | null;
1684
+ search?: string;
1685
+ onExpanded?: (next: ReadonlySet<S>) => void;
1686
+ onChecked?: (next: ReadonlySet<S>) => void;
1687
+ onActive?: (next: S | null) => void;
1688
+ onAnchor?: (next: S | null) => void;
1689
+ onSearch?: (text: string) => void;
1690
+ /** Enter on a node, or a click on its label. */
1691
+ onActivate?: (node: K) => void;
1692
+ /**
1693
+ * An unloaded branch has been expanded: now would be the moment to fetch its
1694
+ * children. The tree fetches nothing – it is driven by nested data, and
1695
+ * whoever adds to them sees it render anew. Concurrency, errors and
1696
+ * cancellation thereby stay outside (ADR-0005).
1697
+ */
1698
+ onLoadChildren?: (node: K) => void;
1699
+ /**
1700
+ * Render only what stands in the scroll area. Deliberately optional: a tree
1701
+ * with thirty nodes should not pay for machinery it does not need, and
1702
+ * whoever has not ordered it should not have to think about row heights.
1703
+ */
1704
+ virtual?: VirtualOptions;
1705
+ }
1706
+
1707
+ export declare function TreeSearch<K, S extends Key = string>({ tree, placeholder, ...rest }: TreeSearchProps<K, S>): JSX.Element;
1708
+
1709
+ export declare interface TreeSearchProps<K, S extends Key = string> extends Omit<InputProps, "value" | "onChange" | "type"> {
1710
+ /** The same tree as the view's. The field does not hold the text itself –
1711
+ it belongs to the tree, because the flattening depends on it. */
1712
+ tree: Tree<K, S>;
1713
+ }
1714
+
1715
+ export declare interface TreeSnapshot<S extends Key = string> {
1716
+ expanded: ReadonlySet<S>;
1717
+ checked: ReadonlySet<S>;
1718
+ active: S | null;
1719
+ /** Where a range selection spans from: the node checked last on its own.
1720
+ Neither the active one nor part of the checked set - it stands in the
1721
+ snapshot so that a range is repeatable and steerable from outside. */
1722
+ anchor: S | null;
1723
+ search: string;
1724
+ }
1725
+
1726
+ export declare function TreeView<K, S extends Key = string>({ tree, ariaLabel, checkable, children, className, onKeyDown, ...rest }: TreeViewProps<K, S>): ReactNode;
1727
+
1728
+ export declare interface TreeViewProps<K, S extends Key = string> extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
1729
+ /** The tree from `useTree`. It is the whole state: flattening, active node,
1730
+ checks, anchor. The view holds nothing beside it. */
1731
+ tree: Tree<K, S>;
1732
+ /** Required: the tree is a structure of its own and needs a name. */
1733
+ ariaLabel: string;
1734
+ /** Show ticks. Without them a tree remains that knows only an active node -
1735
+ and no space is kept free for them. */
1736
+ checkable?: boolean;
1737
+ /** What the node says. */
1738
+ children: (entry: FlatteningEntry<K, S>) => ReactNode;
1739
+ }
1740
+
1741
+ /**
1742
+ * The next visible node whose label starts like this - or null.
1743
+ *
1744
+ * A single letter searches **behind** the active node, so that the same
1745
+ * letter pressed twice jumps onwards instead of finding the same node again.
1746
+ * Several letters search **from** the active node, so that refining does not
1747
+ * jump onwards. Both are intended and are the reason why the length of the
1748
+ * prefix matters here.
1749
+ *
1750
+ * At the end it wraps around. Disabled and unloaded nodes are valid targets:
1751
+ * typeahead moves only the focus, and both are navigable.
1752
+ */
1753
+ export declare function typeaheadTarget<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], prefix: string, active: S | null): S | null;
1754
+
1755
+ export declare interface UmrissConfig {
1756
+ theme?: Theme;
1757
+ density: Density;
1758
+ portalTarget: PortalTarget;
1759
+ toast: ToastConfig;
1760
+ }
1761
+
1762
+ /**
1763
+ * The root provider. Optional: without it everything behaves as it does today.
1764
+ *
1765
+ * It wraps the language provider, so that an application has to set only one
1766
+ * component; whoever needs only wording can still use `LanguageProvider` on its
1767
+ * own.
1768
+ */
1769
+ export declare function UmrissProvider({ theme, density, portalTarget, toast, language, children, }: UmrissProviderProps): JSX.Element;
1770
+
1771
+ export declare interface UmrissProviderProps {
1772
+ /**
1773
+ * Sets `data-theme` at the root - the attribute the token layers already
1774
+ * listen to; nothing changes about the tokens themselves. "system" means
1775
+ * subscribe: a change at runtime is taken along. Without a value the provider
1776
+ * does not touch the attribute, so that an application setting its own theme
1777
+ * is left undisturbed.
1778
+ */
1779
+ theme?: Theme;
1780
+ /**
1781
+ * Sets `data-density` at the root and is the default for the `density` of
1782
+ * every component that reads it with `useDensityFor` - in @umriss-ui/table
1783
+ * `Table` and `AlarmList` ("comfortable" means "regular"). Without a value
1784
+ * the provider touches neither the attribute nor a component: one that is
1785
+ * compact of its own accord stays compact.
1786
+ */
1787
+ density?: Density;
1788
+ /**
1789
+ * Where overlays portal to. A function is evaluated on every opening - a
1790
+ * target that only enters the tree later cannot be given otherwise; `null`
1791
+ * means "as before". The callers' own rules take precedence: the popover
1792
+ * seam portals into the nearest `<dialog>` ancestor, because a portal at the
1793
+ * body does not reach the top layer.
1794
+ */
1795
+ portalTarget?: PortalTarget;
1796
+ /** The setting for toasts: the display duration where the individual toast
1797
+ names none. */
1798
+ toast?: ToastConfig;
1799
+ /** Formats and wording, entry by entry. See `lib/language`. */
1800
+ language?: LanguageOptions;
1801
+ /** The subtree the settings apply to. */
1802
+ children: ReactNode;
1803
+ }
1804
+
1805
+ /**
1806
+ * Binds Cmd+K/Ctrl+K and "/" to the opening of a palette.
1807
+ *
1808
+ * `onOpen` may be new on every render: the hook remembers the current version
1809
+ * rather than unsubscribing and resubscribing the listener each time.
1810
+ */
1811
+ export declare function useCommandPaletteShortcut(onOpen: () => void): void;
1812
+
1813
+ /** The configured density; without a provider, "comfortable". */
1814
+ export declare const useDensity: () => Density;
1815
+
1816
+ /**
1817
+ * A component's `density`: its own value, else the density the provider
1818
+ * explicitly configured, else its own default.
1819
+ *
1820
+ * "comfortable" means "regular" here. A compact set of tokens does not exist -
1821
+ * that is work package B.13; here only what exists is wired up.
1822
+ */
1823
+ export declare function useDensityFor(own: "regular" | "compact" | undefined, fallback: "regular" | "compact"): "regular" | "compact";
1824
+
1825
+ /** Only the formatting. */
1826
+ export declare const useFormats: () => Formats;
1827
+
1828
+ /** Used by Input, Select and Checkbox to wire up id and aria automatically. */
1829
+ export declare function useFormField(): FormFieldContextValue | null;
1830
+
1831
+ /**
1832
+ * Judges a value's as-of time continuously and causes a redraw when it changes
1833
+ * state.
1834
+ *
1835
+ * The caller gives the ages; there is deliberately no default, because "stale"
1836
+ * at a furnace controller means something other than "stale" on a shift
1837
+ * overview.
1838
+ */
1839
+ export declare function useFreshness(asOf: Date | number | null | undefined, ages: FreshnessAges): FreshnessReading;
1840
+
1841
+ /** Formatting and wording together; without a provider, the defaults. */
1842
+ export declare const useLanguage: () => Language;
1843
+
1844
+ /**
1845
+ * Resolves the configured portal target.
1846
+ *
1847
+ * `null` means expressly "no statement" and not "to the body": the callers have
1848
+ * rules of their own that take precedence - the popover seam portals into the
1849
+ * nearest `<dialog>` ancestor, because a portal at the body does not reach the
1850
+ * top layer. That rule beats the setting; otherwise a panel inside a modal
1851
+ * would be invisible.
1852
+ */
1853
+ export declare function usePortalTarget(): () => HTMLElement | null;
1854
+
1855
+ /** Access to `toast()` and `dismiss()`; requires a ToastProvider. */
1856
+ export declare function useToast(): ToastContextValue;
1857
+
1858
+ /** The setting for toasts; without a provider, empty. */
1859
+ export declare const useToastConfig: () => ToastConfig;
1860
+
1861
+ export declare function useTree<K, S extends Key = string>(roots: readonly K[], options: TreeOptions<K, S>): Tree<K, S>;
1862
+
1863
+ /** The whole configuration; without a provider, the defaults. */
1864
+ export declare const useUmriss: () => UmrissConfig;
1865
+
1866
+ /**
1867
+ * Holds the scroll position and the measured heights and derives the window
1868
+ * from them.
1869
+ *
1870
+ * It is measured on the first rendered row rather than taken from the caller's
1871
+ * value: row height depends on density, font size and zoom, and an assumption
1872
+ * two pixels off adds up over twenty thousand rows to a scrollbar that lies by
1873
+ * forty thousand pixels.
1874
+ */
1875
+ export declare function useVirtual(count: number, options: VirtualOptions): VirtualRows;
1876
+
1877
+ /** Only the wording. */
1878
+ export declare const useWording: () => Wording;
1879
+
1880
+ /** What a value is. Four outcomes, ordered by severity, `unknown` between
1881
+ `ok` and `warning`: a value nobody has is a reason to look.
1882
+
1883
+ The fourth outcome is not a `null`. A `null` would invite `?? "ok"` at the
1884
+ call site, and that expression is exactly the defect this module exists
1885
+ against: a dead sensor would look like a healthy machine. */
1886
+ export declare type Verdict = "ok" | "unknown" | "warning" | "alarm";
1887
+
1888
+ /** How heavily a verdict weighs - for sorting and comparing, as when a matrix
1889
+ brings the worst tile to the top. It stands here so that the order is not
1890
+ reinvented at every call site. */
1891
+ export declare function verdictWeight(verdict: Verdict): number;
1892
+
1893
+ export declare interface VirtualOptions {
1894
+ /**
1895
+ * Expected row height in pixels. It is re-measured on a real row after the
1896
+ * first render; the value given is the starting point, so that the first
1897
+ * window is not empty.
1898
+ */
1899
+ rowHeight: number;
1900
+ /** Rows above and below the visible area. Default 4. */
1901
+ overscan?: number;
1902
+ }
1903
+
1904
+ export declare interface VirtualRows {
1905
+ /** Goes on the scroll area - in @umriss-ui/table on the table's frame; hangs
1906
+ the ref and the scroll listener on it. */
1907
+ scrollRef: RefObject<HTMLDivElement | null>;
1908
+ /** Index of the first rendered row within the filtered set. */
1909
+ from: number;
1910
+ to: number;
1911
+ /** Height of the upper filler row, in pixels. */
1912
+ fillerBefore: number;
1913
+ /** Height of the lower filler row, in pixels. */
1914
+ fillerAfter: number;
1915
+ /** Rows in total - the filler rows carry the rest. */
1916
+ count: number;
1917
+ /** Brings a row into view; for the keyboard. */
1918
+ showRow: (index: number) => void;
1919
+ /** Reports a new scroll position to the container. Internal. */
1920
+ onScroll: () => void;
1921
+ }
1922
+
1923
+ /**
1924
+ * The window for the current scroll position.
1925
+ *
1926
+ * `before + rendered + after` always adds up to the full height of all rows.
1927
+ * That is the promise the scrollbar hangs on: it must not jump while scrolling
1928
+ * because the rendered set changed.
1929
+ */
1930
+ export declare function visibleWindow({ count, rowHeight, scrollTop, viewportHeight, overscan, }: WindowInput): RowWindow;
1931
+
1932
+ export declare const VisuallyHidden: <E extends ElementType = "span">(props: VisuallyHiddenProps<E> & {
1933
+ ref?: ForwardedRef<HTMLElement>;
1934
+ }) => React.ReactElement;
1935
+
1936
+ export declare type VisuallyHiddenProps<E extends ElementType = "span"> = {
1937
+ /** Element to render as. Default `span`. */
1938
+ as?: E;
1939
+ /** Becomes visible as soon as the content receives the focus (skip link). */
1940
+ focusable?: boolean;
1941
+ } & Omit<ComponentPropsWithoutRef<E>, "as">;
1942
+
1943
+ export declare interface WindowInput {
1944
+ /** Rows in total, not only the rendered ones. */
1945
+ count: number;
1946
+ /** Measured height of one row, in pixels. */
1947
+ rowHeight: number;
1948
+ /** The container's current scroll position. */
1949
+ scrollTop: number;
1950
+ /** Visible height of the scroll area. */
1951
+ viewportHeight: number;
1952
+ /**
1953
+ * Rows rendered along above and below the visible area.
1954
+ *
1955
+ * Without an overscan a blank area appears briefly during fast scrolling,
1956
+ * because rendering trails the scrolling by a frame.
1957
+ */
1958
+ overscan?: number;
1959
+ }
1960
+
1961
+ /** Everything the library puts out as text. */
1962
+ export declare interface Wording {
1963
+ /** The cross in the text field. */
1964
+ clearInput: string;
1965
+ /** The cross in the select and in the combobox. */
1966
+ clearSelection: string;
1967
+ /** Stepper buttons of the number field. */
1968
+ decreaseValue: string;
1969
+ increaseValue: string;
1970
+ comboboxPlaceholder: string;
1971
+ /** Empty state of both lists. */
1972
+ noMatches: string;
1973
+ multiSelectPlaceholder: string;
1974
+ multiSelectSearchPlaceholder: string;
1975
+ searchOptions: string;
1976
+ /** Group name of the option list. */
1977
+ options: string;
1978
+ /** Group name of the scope switch. */
1979
+ optionScope: string;
1980
+ optionScopeAll: string;
1981
+ /** The second scope, with the count in the text. */
1982
+ optionScopeSelected: (count: number) => string;
1983
+ selectAll: string;
1984
+ selectNone: string;
1985
+ invertSelection: string;
1986
+ nothingSelected: string;
1987
+ /** The cross on a selected value in the trigger. */
1988
+ removeSelectedValue: (beschriftung: string) => string;
1989
+ /** The "+N" counter in the trigger. */
1990
+ manageMoreSelected: (count: number) => string;
1991
+ /** The summary in the panel: "3 / 12". The sentence structure belongs to the
1992
+ language, even where it is only a slash here. */
1993
+ multiSelectSummary: (gewaehlt: number, total: number) => string;
1994
+ /** What stands in the empty field. */
1995
+ palettePlaceholder: string;
1996
+ /** Accessible name of the field. Deliberately kept apart from the
1997
+ placeholder - whoever labels the field differently does not thereby
1998
+ rename the window. */
1999
+ paletteField: string;
2000
+ /** Accessible name of the window. */
2001
+ palettePanel: string;
2002
+ /** Accessible name of the list of finds. */
2003
+ paletteList: string;
2004
+ /** The one line when the query finds nothing. */
2005
+ paletteNoFinds: string;
2006
+ /** What the screen reader hears when the number of finds changes. */
2007
+ paletteFindCount: (count: number) => string;
2008
+ /** The three key hints in the footer, each the text beside the key. */
2009
+ paletteHintMove: string;
2010
+ paletteHintChoose: string;
2011
+ paletteHintClose: string;
2012
+ /** The legend on the Escape key. The arrows and the return key are glyphs and
2013
+ therefore do not stand here; "Esc" is a word and is called something else
2014
+ elsewhere. */
2015
+ paletteKeyEsc: string;
2016
+ /** Accessible name of a dock's tools. */
2017
+ dockTools: string;
2018
+ /** Accessible name of the grip - it says what it does, not what it is. */
2019
+ dockGrip: string;
2020
+ /** The four resting places, named. The keys are the `Place` type's, and a
2021
+ register translates them: the German one answers "oben" where the
2022
+ English one answers "top". */
2023
+ dockPlace: (place: "top" | "right" | "bottom" | "left") => string;
2024
+ /** What the screen reader hears once the dock has taken a place. */
2025
+ dockPlaced: (place: string) => string;
2026
+ /** And what it hears when a place has refused. A refusal is not a fault: a
2027
+ wide, flat host with no room for a standing dock is not a mistake anyone
2028
+ made. */
2029
+ dockNoPlace: (place: string) => string;
2030
+ datePlaceholder: string;
2031
+ /** Accessible name of the panel. Deliberately kept apart from the
2032
+ placeholder: whoever labels the field differently does not thereby rename
2033
+ the dialog. */
2034
+ datePanel: string;
2035
+ dateClear: string;
2036
+ dateTimePlaceholder: string;
2037
+ dateTimePanel: string;
2038
+ dateTimeClear: string;
2039
+ dateRangePlaceholder: string;
2040
+ dateRangePanel: string;
2041
+ dateRangeClear: string;
2042
+ /** Accessible name of the panel in the range with time of day. */
2043
+ dateTimeRangePanel: string;
2044
+ /** The clearing x of the range with time - kept apart from the range without,
2045
+ so that an application can call the two differently. */
2046
+ dateTimeRangeClear: string;
2047
+ previousMonth: string;
2048
+ nextMonth: string;
2049
+ /** Group name of the preset column. */
2050
+ quickSelect: string;
2051
+ today: string;
2052
+ now: string;
2053
+ clear: string;
2054
+ apply: string;
2055
+ allDay: string;
2056
+ timeOfDay: string;
2057
+ hour: string;
2058
+ minute: string;
2059
+ second: string;
2060
+ /** Header of the two time columns in the range with time of day. */
2061
+ sideFrom: string;
2062
+ sideTo: string;
2063
+ /** Accessible name of the time fields, per side. */
2064
+ startHour: string;
2065
+ startMinute: string;
2066
+ startSecond: string;
2067
+ endHour: string;
2068
+ endMinute: string;
2069
+ endSecond: string;
2070
+ /** Stepper buttons of a time field; the label comes from above. */
2071
+ timeFieldIncrease: (feld: string) => string;
2072
+ timeFieldDecrease: (feld: string) => string;
2073
+ /** Footer of the range panels. */
2074
+ chooseStartDate: string;
2075
+ chooseEndDate: string;
2076
+ /** "3 days" or "1 day" - the plural belongs to the language. */
2077
+ days: (count: number) => string;
2078
+ /** "3 days selected" */
2079
+ daysSelected: (count: number) => string;
2080
+ /** "17.03. – 19.03. · 3 days" while dragging; the dates come from the
2081
+ formats. */
2082
+ rangePreview: (from: string, to: string, count: number) => string;
2083
+ /** "3 days (all day)" */
2084
+ daysAllDay: (count: number) => string;
2085
+ /** "Duration: 1 day 2 hrs 30 min" */
2086
+ duration: (teile: readonly string[]) => string;
2087
+ hoursShort: (count: number) => string;
2088
+ minutesShort: (count: number) => string;
2089
+ /** Daylight-saving change: the hour that does not exist. */
2090
+ timeMissingHint: (timeOfDay: string) => string;
2091
+ /** The same, with the side put in front ("From"/"To"). */
2092
+ timeMissingHintSide: (side: string, timeOfDay: string) => string;
2093
+ /** Daylight-saving change: the hour that occurs twice. */
2094
+ timeAmbiguousHint: string;
2095
+ timeAmbiguousHintSide: (side: string) => string;
2096
+ timeEarlier: (versatz: string) => string;
2097
+ timeLater: (versatz: string) => string;
2098
+ /** The calendar's weekday headers, starting at Monday. */
2099
+ weekdays: readonly string[];
2100
+ /** The quick-select ranges, in the order of PRESET_LABELS. */
2101
+ presets: {
2102
+ today: string;
2103
+ yesterday: string;
2104
+ last7Days: string;
2105
+ last30Days: string;
2106
+ thisMonth: string;
2107
+ previousMonth: string;
2108
+ thisQuarter: string;
2109
+ thisYear: string;
2110
+ };
2111
+ pagination: string;
2112
+ rows: string;
2113
+ rowsPerPage: string;
2114
+ /** "Page 2 of 7" */
2115
+ pageOfPages: (page: number, total: number) => string;
2116
+ previousPage: string;
2117
+ nextPage: string;
2118
+ /** The two buttons in the column filter's footer. */
2119
+ filterReset: string;
2120
+ filterDone: string;
2121
+ /** The column menu's button. */
2122
+ columns: string;
2123
+ /** Accessible name of the list in the column menu. */
2124
+ arrangeColumns: string;
2125
+ /** The two buttons that move a column in the column menu. */
2126
+ columnForward: (column: string) => string;
2127
+ columnBackward: (column: string) => string;
2128
+ /** The export button. */
2129
+ exportLabel: string;
2130
+ /** The export's file name, where the application names none. */
2131
+ exportFileName: string;
2132
+ /** Placeholder and accessible name of the search field. */
2133
+ tableSearchPlaceholder: string;
2134
+ tableSearchLabel: string;
2135
+ /** The filter button of a column: "Filter Line". */
2136
+ filterColumn: (column: string) => string;
2137
+ /** The selection of one row, named after its row header. */
2138
+ selectRow: (row: string) => string;
2139
+ /** The selection of every row in the filtered set. */
2140
+ selectAllRows: string;
2141
+ /** The expand button, named after the row header. */
2142
+ expandRowNamed: (row: string) => string;
2143
+ collapseRowNamed: (row: string) => string;
2144
+ /** Header of the actions column - for the screen reader, not visible. */
2145
+ rowActions: string;
2146
+ /** One action on a row: "Open: A-2041". */
2147
+ rowAction: (aktion: string, row: string) => string;
2148
+ /** The menu holding a row's actions. */
2149
+ rowActionsMenu: (row: string) => string;
2150
+ /** What the screen reader hears for an absent value. Visibly a muted dash
2151
+ stands there. */
2152
+ cellAbsentValue: string;
2153
+ /** A boolean without a presentation of its own. */
2154
+ booleanYes: string;
2155
+ booleanNo: string;
2156
+ /** The kind of a footer number, read out before the number. */
2157
+ footerSum: string;
2158
+ footerAverage: string;
2159
+ /** "128 entries" in the pagination bar; the plural belongs to the language. */
2160
+ entries: (count: number, formatted: string) => string;
2161
+ /** "3 selected" in the pagination bar and the table toolbar. */
2162
+ selectedCount: (count: number, formatted: string) => string;
2163
+ /** Empty because there are no rows. */
2164
+ noEntries: string;
2165
+ /** Empty because search and filters leave nothing - something else. */
2166
+ nothingMatchesFilters: string;
2167
+ treeSearchPlaceholder: string;
2168
+ treeNoMatches: string;
2169
+ /** Group name of the conditions in the table toolbar. */
2170
+ conditions: string;
2171
+ /** The button that removes a condition: "Remove Line: Line 1, Line 2". */
2172
+ removeConditionNamed: (label: string, value: string) => string;
2173
+ /** The condition itself, which opens its filter: "Edit Line: Line 1, Line 2". */
2174
+ editConditionNamed: (label: string, value: string) => string;
2175
+ /** The remainder of a long list in a condition: "+1". */
2176
+ moreValues: (count: number, formatted: string) => string;
2177
+ /** The two fields of the range filter. */
2178
+ filterFrom: string;
2179
+ filterTo: string;
2180
+ /** The condition of a range filter: "100–500", "from 100", "to 500". */
2181
+ rangeFromTo: (from: string, to: string) => string;
2182
+ rangeFrom: (from: string) => string;
2183
+ rangeTo: (to: string) => string;
2184
+ /** When "From" lies behind "To". The condition stays the last valid one. */
2185
+ rangeInvalid: string;
2186
+ /** Clears search and conditions - in the table toolbar and in the empty body. */
2187
+ resetAll: string;
2188
+ /** "43 of 1.204" - the numbers come from the formats. */
2189
+ filteredOfTotal: (matches: string, total: string) => string;
2190
+ /** The four outcomes of an assessment, as a word beside the value. Colour
2191
+ alone carries no meaning - the word stands here for that reason. */
2192
+ verdictOk: string;
2193
+ verdictWarning: string;
2194
+ verdictAlarm: string;
2195
+ verdictUnknown: string;
2196
+ /** What stands in the value field when there is no value. No dash, no zero:
2197
+ either could be a value. */
2198
+ statAbsentValue: string;
2199
+ target: string;
2200
+ /** "3,2 above target" or "1,5 below target" - the amount comes from the
2201
+ formats, which is where the comma is from. */
2202
+ deviationAbove: (betrag: string) => string;
2203
+ deviationBelow: (betrag: string) => string;
2204
+ deviationOnTarget: string;
2205
+ /** The three freshness states. They are a DIFFERENT axis from the verdict: a
2206
+ stale value keeps its verdict (ADR-0010). */
2207
+ freshnessFresh: string;
2208
+ freshnessStale: string;
2209
+ freshnessDisconnected: string;
2210
+ /** "As of: 3 minutes ago", where the duration comes from the formats. */
2211
+ asOfAgo: (duration: string) => string;
2212
+ asOfUnknown: string;
2213
+ alarms: string;
2214
+ noAlarms: string;
2215
+ /** Empty, but the line is down - that is something other than quiet. */
2216
+ noAlarmsDisconnected: string;
2217
+ acknowledgeAlarm: string;
2218
+ /** Bulk acknowledgement; the number stands in the text on purpose. */
2219
+ acknowledgeAlarms: (count: number) => string;
2220
+ priorityHigh: string;
2221
+ priorityMedium: string;
2222
+ priorityLow: string;
2223
+ /** The four lifecycle states, written out. */
2224
+ lifecycleStandingUnacknowledged: string;
2225
+ lifecycleStandingAcknowledged: string;
2226
+ lifecycleClearedUnacknowledged: string;
2227
+ lifecycleClearedAcknowledged: string;
2228
+ /** "Alarm flood: 12 in quick succession" - a flood is marked, never
2229
+ suppressed. */
2230
+ floodHint: (count: number) => string;
2231
+ /** "40×" on a chattering alarm type. */
2232
+ chatterHint: (count: number) => string;
2233
+ /** The text of the live region: the number of standing unacknowledged alarms. */
2234
+ standingUnacknowledged: (count: number) => string;
2235
+ columnAlarm: string;
2236
+ columnLifecycleState: string;
2237
+ columnPriority: string;
2238
+ columnRaised: string;
2239
+ columnDuration: string;
2240
+ columnFrequency: string;
2241
+ /** The two columns of the alarm model the list does not show, but which do
2242
+ land in the column menu and the CSV header (`alarmColumns`). */
2243
+ columnAcknowledgement: string;
2244
+ columnAge: string;
2245
+ close: string;
2246
+ closeToast: string;
2247
+ confirm: string;
2248
+ cancel: string;
2249
+ loading: string;
2250
+ /** Generic name of a fill-level bar, where the caller names none. */
2251
+ fillLevel: string;
2252
+ show: string;
2253
+ hide: string;
2254
+ moreActions: string;
2255
+ /** The cross on a tag without text content. */
2256
+ remove: string;
2257
+ /** The cross on a tag with text content. */
2258
+ removeTag: (beschriftung: string) => string;
2259
+ }
2260
+
2261
+ export { }