@umriss-ui/core 0.9.2 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -19,6 +19,36 @@ import { SVGAttributes } from 'react';
19
19
  import { SVGProps } from 'react';
20
20
  import { TextareaHTMLAttributes } from 'react';
21
21
 
22
+ export declare const Accordion: ForwardRefExoticComponent<AccordionProps & RefAttributes<HTMLDivElement>>;
23
+
24
+ export declare const AccordionItem: ForwardRefExoticComponent<AccordionItemProps & RefAttributes<HTMLDivElement>>;
25
+
26
+ export declare interface AccordionItemProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
27
+ /** What names the section in the accordion's `value`. */
28
+ value: string;
29
+ /** The header's text. It names the section's region too. */
30
+ title: ReactNode;
31
+ /** A section that cannot be opened now; its header stays in the list. */
32
+ disabled?: boolean;
33
+ }
34
+
35
+ export declare interface AccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
36
+ /** `single` keeps at most one section open, `multiple` any number.
37
+ Default: `single` */
38
+ type?: "single" | "multiple";
39
+ /** Controlled: the values of the open sections. A list for both types, so
40
+ that switching the type changes nothing else. */
41
+ value?: readonly string[];
42
+ /** Uncontrolled: the sections open at the start. */
43
+ defaultValue?: readonly string[];
44
+ /** Reports the open sections after a header's click. Controlled, the
45
+ accordion follows once `value` does; uncontrolled it is a message. */
46
+ onChange?: (value: string[]) => void;
47
+ /** The level of the heading each header stands in - the one that fits the
48
+ page's outline. Default: 3 */
49
+ headingLevel?: 2 | 3 | 4 | 5 | 6;
50
+ }
51
+
22
52
  /**
23
53
  * The age of an as-of time at the reference time, in milliseconds.
24
54
  *
@@ -94,7 +124,7 @@ export declare interface Assessment {
94
124
  }
95
125
 
96
126
  /** Compact status label; as a `pill` for counters. */
97
- export declare function Badge({ tone, pill, className, children, ...rest }: BadgeProps): JSX.Element;
127
+ export declare const Badge: ForwardRefExoticComponent<BadgeProps & RefAttributes<HTMLSpanElement>>;
98
128
 
99
129
  export declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
100
130
  /** What the badge stands for. There is always a word beside it: a colour on
@@ -107,6 +137,28 @@ export declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
107
137
 
108
138
  export declare type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
109
139
 
140
+ export declare const Breadcrumb: ForwardRefExoticComponent<BreadcrumbProps & RefAttributes<HTMLElement>>;
141
+
142
+ /** One level of the trail. */
143
+ export declare interface BreadcrumbEntry {
144
+ /** The level's name, as the trail and the menu of folded levels show it. */
145
+ label: ReactNode;
146
+ /** The level's address. Alone, the browser follows it. */
147
+ href?: string;
148
+ /** Routing is the caller's: given, it runs instead of the browser's
149
+ navigation - on the link and in the menu of folded levels. A level with
150
+ `onSelect` and no `href` is a button. In the menu a level is a menu
151
+ entry, not a link: an `href` alone is followed there by
152
+ `location.assign`, without a new tab or a middle click - whoever needs
153
+ those routes through `onSelect`. */
154
+ onSelect?: () => void;
155
+ }
156
+
157
+ export declare interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
158
+ /** The trail from the root to the current page; the last is the page. */
159
+ items: readonly BreadcrumbEntry[];
160
+ }
161
+
110
162
  export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
111
163
 
112
164
  export declare const ButtonGroup: ForwardRefExoticComponent<ButtonGroupProps & RefAttributes<HTMLDivElement>>;
@@ -151,16 +203,16 @@ export declare const CalendarGlyph: ForwardRefExoticComponent<Omit<GlyphProps &
151
203
  range?: boolean;
152
204
  }, "ref"> & RefAttributes<SVGSVGElement>>;
153
205
 
154
- export declare function Card({ collapsible, defaultCollapsed, className, children, ...rest }: CardProps): JSX.Element;
206
+ export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLElement>>;
155
207
 
156
- export declare function CardBody({ flush, className, children, ...rest }: CardBodyProps): JSX.Element;
208
+ export declare const CardBody: ForwardRefExoticComponent<CardBodyProps & RefAttributes<HTMLDivElement>>;
157
209
 
158
210
  export declare interface CardBodyProps extends HTMLAttributes<HTMLDivElement> {
159
211
  /** Removes the inner padding, e.g. for flush tables. */
160
212
  flush?: boolean;
161
213
  }
162
214
 
163
- export declare function CardHeader({ title, eyebrow, actions, divider, className, ...rest }: CardHeaderProps): JSX.Element;
215
+ export declare const CardHeader: ForwardRefExoticComponent<CardHeaderProps & RefAttributes<HTMLDivElement>>;
164
216
 
165
217
  export declare interface CardHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
166
218
  /** The heading of the card. A node and not merely text, so that an
@@ -184,6 +236,13 @@ export declare interface CardProps extends HTMLAttributes<HTMLElement> {
184
236
  /** Initial state of the collapse mechanism; afterwards it belongs to the
185
237
  card. Only effective together with `collapsible`. */
186
238
  defaultCollapsed?: boolean;
239
+ /** Controlled: whether the body is folded away - for a card folded from
240
+ outside, or one whose state is kept in an address. Only effective
241
+ together with `collapsible`. */
242
+ collapsed?: boolean;
243
+ /** Reports the wish of the header's button. Controlled, the card folds only
244
+ once `collapsed` follows; uncontrolled it is merely a message. */
245
+ onCollapsedChange?: (collapsed: boolean) => void;
187
246
  }
188
247
 
189
248
  export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
@@ -212,7 +271,9 @@ export declare const ClockGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref
212
271
  export declare function collapse<S extends Key>(snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
213
272
 
214
273
  /** A searchable select field (the combobox pattern with a listbox panel). */
215
- export declare function Combobox<T extends string = string>({ options, value, onChange, placeholder, disabled, invalid, emptyText, clearable, }: ComboboxProps<T>): JSX.Element;
274
+ export declare const Combobox: <T extends string = string>(props: ComboboxProps<T> & {
275
+ ref?: ForwardedRef<HTMLDivElement>;
276
+ }) => ReactElement;
216
277
 
217
278
  export declare interface ComboboxOption<T extends string = string> {
218
279
  /** What comes back when this row is chosen. */
@@ -224,7 +285,7 @@ export declare interface ComboboxOption<T extends string = string> {
224
285
  disabled?: boolean;
225
286
  }
226
287
 
227
- export declare interface ComboboxProps<T extends string = string> {
288
+ export declare interface ComboboxProps<T extends string = string> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
228
289
  /** The possibilities, in their natural order. Filtered while typing; never
229
290
  reordered. */
230
291
  options: readonly ComboboxOption<T>[];
@@ -247,7 +308,7 @@ export declare interface ComboboxProps<T extends string = string> {
247
308
  clearable?: boolean;
248
309
  }
249
310
 
250
- export declare function CommandPalette({ open, onClose, items, onChoose, restingItems, }: CommandPaletteProps): JSX.Element;
311
+ export declare const CommandPalette: ForwardRefExoticComponent<CommandPaletteProps & RefAttributes<HTMLDialogElement>>;
251
312
 
252
313
  /** A candidate the palette can find - the outside of the term CONTEXT.md lists
253
314
  under "Finding" as a Candidate. */
@@ -267,7 +328,7 @@ export declare interface CommandPaletteItem {
267
328
  weight?: number;
268
329
  }
269
330
 
270
- export declare interface CommandPaletteProps {
331
+ export declare interface CommandPaletteProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, "open" | "onClose" | "children"> {
271
332
  /** Controlled like the modal: opening is the caller's decision. */
272
333
  open: boolean;
273
334
  /** Reports every wish to close - Escape, an outside click, a choice. */
@@ -298,9 +359,9 @@ export declare interface CommandPaletteProps {
298
359
  }
299
360
 
300
361
  /** Compact confirmation dialog on the basis of Modal. */
301
- export declare function ConfirmDialog({ open, onClose, onConfirm, title, description, confirmLabel, cancelLabel, tone, loading, }: ConfirmDialogProps): JSX.Element;
362
+ export declare const ConfirmDialog: ForwardRefExoticComponent<ConfirmDialogProps & RefAttributes<HTMLDialogElement>>;
302
363
 
303
- export declare interface ConfirmDialogProps {
364
+ export declare interface ConfirmDialogProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, "open" | "onClose" | "title" | "children"> {
304
365
  /** Whether the query stands. */
305
366
  open: boolean;
306
367
  /** Cancelling: Escape, cross, backdrop or the second button. */
@@ -361,14 +422,14 @@ export declare interface ContextMenuProps {
361
422
  export declare const CrossGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
362
423
 
363
424
  /** A date selection with a calendar panel; weeks begin on Monday. */
364
- export declare function DatePicker({ value, onChange, placeholder, disabled, invalid, size, clearable, }: DatePickerProps): JSX.Element;
425
+ export declare const DatePicker: ForwardRefExoticComponent<DatePickerProps & RefAttributes<HTMLSpanElement>>;
365
426
 
366
427
  /**
367
428
  * The value contract: every way - the grid, "Today", clearing - hands out local
368
429
  * midnight (resolution "day"). There is no path that delivers a time of day
369
430
  * along with it.
370
431
  */
371
- export declare interface DatePickerProps {
432
+ export declare interface DatePickerProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChange" | "defaultValue"> {
372
433
  /** The day, as a `Date` on local midnight; `null` means none. */
373
434
  value: Date | null;
374
435
  /** Runs as soon as a day is settled - on a click in the grid, on "Today", on
@@ -410,14 +471,14 @@ export declare interface DateRange {
410
471
  * - Two chained months: paging on the outside, no day appears twice.
411
472
  * - The same day clicked twice = a one-day time span.
412
473
  */
413
- export declare function DateRangePicker({ value, onChange, placeholder, disabled, invalid, size, clearable, presets, }: DateRangePickerProps): JSX.Element;
474
+ export declare const DateRangePicker: ForwardRefExoticComponent<DateRangePickerProps & RefAttributes<HTMLSpanElement>>;
414
475
 
415
476
  /**
416
477
  * The value contract: both ends on local midnight (resolution "day"), and `from`
417
478
  * never lies after `to` - a range dragged backwards is silently turned around.
418
479
  * Both ends count inclusively. There is no error state.
419
480
  */
420
- export declare interface DateRangePickerProps {
481
+ export declare interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChange" | "defaultValue"> {
421
482
  /** The time span, both ends on local midnight and both inclusive; `null`
422
483
  means none. */
423
484
  value: DateRange | null;
@@ -444,7 +505,7 @@ export declare interface DateRangePickerProps {
444
505
  presets?: RangePreset[];
445
506
  }
446
507
 
447
- export declare function DateTimePicker({ value, onChange, withSeconds, placeholder, disabled, size, invalid, clearable, }: DateTimePickerProps): JSX.Element;
508
+ export declare const DateTimePicker: ForwardRefExoticComponent<DateTimePickerProps & RefAttributes<HTMLSpanElement>>;
448
509
 
449
510
  /**
450
511
  * The value contract: an exact instant (resolution "instant"), with seconds
@@ -454,7 +515,7 @@ export declare function DateTimePicker({ value, onChange, withSeconds, placehold
454
515
  * panel applies (the default being the earlier one). A value is reported only
455
516
  * with "Apply", "Now" or "Clear", not already on the click on a day.
456
517
  */
457
- export declare interface DateTimePickerProps {
518
+ export declare interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChange" | "defaultValue"> {
458
519
  /** The instant; `null` means none. */
459
520
  value: Date | null;
460
521
  /** Runs only on completion - "Apply", "Now" or "Clear" - and not already on
@@ -493,7 +554,7 @@ export declare interface DateTimePickerProps {
493
554
  * - Missing and doubled hours of the daylight-saving change are recognised per
494
555
  * end and treated honestly, as in the DateTimePicker.
495
556
  */
496
- export declare function DateTimeRangePicker({ value, onChange, withSeconds, placeholder, disabled, invalid, size, clearable, presets, }: DateTimeRangePickerProps): JSX.Element;
557
+ export declare const DateTimeRangePicker: ForwardRefExoticComponent<DateTimeRangePickerProps & RefAttributes<HTMLSpanElement>>;
497
558
 
498
559
  /**
499
560
  * The props resemble the union of DateRangePickerProps and DateTimePickerProps -
@@ -506,7 +567,7 @@ export declare function DateTimeRangePicker({ value, onChange, withSeconds, plac
506
567
  * the daylight-saving change the same reservation holds as for the
507
568
  * DateTimePicker, separately per end of the range.
508
569
  */
509
- export declare interface DateTimeRangePickerProps {
570
+ export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onChange" | "defaultValue"> {
510
571
  /** The time span with times at both ends; `null` means none. */
511
572
  value: DateRange | null;
512
573
  /** Runs only on "Apply" and on clearing (`null`), never between the two
@@ -629,13 +690,20 @@ export declare interface DockTool {
629
690
  disabled?: boolean;
630
691
  }
631
692
 
693
+ export declare const Drawer: ForwardRefExoticComponent<DrawerProps & RefAttributes<HTMLDialogElement>>;
694
+
695
+ export declare interface DrawerProps extends Omit<ModalProps, "size"> {
696
+ /** The edge the drawer stands at and enters from. Default: `right` */
697
+ side?: "right" | "left";
698
+ }
699
+
632
700
  /** The first key that occurs twice, otherwise null. Two nodes with the same
633
701
  key break the cascade and the active node silently - the companion reports
634
702
  that during development. */
635
703
  export declare function duplicateKey<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S | null;
636
704
 
637
705
  /** An empty surface as an invitation to act - not as a dead end. */
638
- export declare function EmptyState({ title, description, action, icon, className, ...rest }: EmptyStateProps): JSX.Element;
706
+ export declare const EmptyState: ForwardRefExoticComponent<EmptyStateProps & RefAttributes<HTMLDivElement>>;
639
707
 
640
708
  export declare interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
641
709
  /** What is missing here - as a statement, not as an apology. */
@@ -650,6 +718,20 @@ export declare interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElem
650
718
 
651
719
  export declare function expand<S extends Key>(snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
652
720
 
721
+ export declare const FileInput: ForwardRefExoticComponent<FileInputProps & RefAttributes<HTMLInputElement>>;
722
+
723
+ export declare interface FileInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "defaultValue" | "onChange" | "size"> {
724
+ /** Controlled: the chosen files. Uncontrolled, the input keeps its own and
725
+ starts empty. */
726
+ value?: readonly File[];
727
+ /** Reports the files after a choice, a drop or a removal - only those
728
+ `accept` takes, and one where the input takes one. */
729
+ onChange?: (files: File[]) => void;
730
+ /** Marks the input as invalid. `FormField` sets it itself as soon as it
731
+ carries an `error` - by hand only necessary without `FormField`. */
732
+ invalid?: boolean;
733
+ }
734
+
653
735
  export declare interface FlatteningEntry<K, S extends Key = string> {
654
736
  node: K;
655
737
  key: S;
@@ -721,7 +803,7 @@ export declare interface Formats {
721
803
  relative: (ms: number) => string;
722
804
  }
723
805
 
724
- export declare function FormField({ label, hint, error, required, fieldId, className, children, ...rest }: FormFieldProps): JSX.Element;
806
+ export declare const FormField: ForwardRefExoticComponent<FormFieldProps & RefAttributes<HTMLDivElement>>;
725
807
 
726
808
  /**
727
809
  * Resets the FormField context. For the innards of panels (search field,
@@ -950,7 +1032,7 @@ export declare const MeasureGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "r
950
1032
 
951
1033
  export declare function Menu({ trigger, children, align }: MenuProps): JSX.Element;
952
1034
 
953
- export declare function MenuItem({ onSelect, tone, className, children, onClick, ...rest }: MenuItemProps): JSX.Element;
1035
+ export declare const MenuItem: ForwardRefExoticComponent<MenuItemProps & RefAttributes<HTMLButtonElement>>;
954
1036
 
955
1037
  export declare interface MenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onSelect"> {
956
1038
  /** What the entry does. The menu closes afterwards by itself: a menu that
@@ -970,13 +1052,13 @@ export declare interface MenuProps {
970
1052
  }
971
1053
 
972
1054
  /** Fine dividing line between groups of menu entries. */
973
- export declare function MenuSeparator(): JSX.Element;
1055
+ export declare const MenuSeparator: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
974
1056
 
975
1057
  /** Builds a complete instance from the default and a partial value. */
976
1058
  export declare function mergeLanguage(optionen: LanguageOptions | undefined): Language;
977
1059
 
978
1060
  /** A narrow fill-level bar, e.g. for utilisation in table cells. */
979
- export declare function Meter({ value, tone, showLabel, label, className, ...rest }: MeterProps): JSX.Element;
1061
+ export declare const Meter: ForwardRefExoticComponent<MeterProps & RefAttributes<HTMLSpanElement>>;
980
1062
 
981
1063
  export declare interface MeterProps extends HTMLAttributes<HTMLSpanElement> {
982
1064
  /** Fill level from 0 to 1. */
@@ -1002,13 +1084,13 @@ export declare type MeterTone = "neutral" | "accent" | "success" | "warning" | "
1002
1084
 
1003
1085
  export declare const MinusGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
1004
1086
 
1005
- export declare function Modal({ open, onClose, size, closeOnBackdrop, className, children, ...rest }: ModalProps): JSX.Element;
1087
+ export declare const Modal: ForwardRefExoticComponent<ModalProps & RefAttributes<HTMLDialogElement>>;
1006
1088
 
1007
- export declare function ModalBody({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>): JSX.Element;
1089
+ export declare const ModalBody: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
1008
1090
 
1009
- export declare function ModalFooter({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>): JSX.Element;
1091
+ export declare const ModalFooter: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
1010
1092
 
1011
- export declare function ModalHeader({ title, description, hideClose, className, ...rest }: ModalHeaderProps): JSX.Element;
1093
+ export declare const ModalHeader: ForwardRefExoticComponent<ModalHeaderProps & RefAttributes<HTMLDivElement>>;
1012
1094
 
1013
1095
  export declare interface ModalHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
1014
1096
  /** The heading of the window. It names it for the screen reader at the same
@@ -1058,7 +1140,9 @@ export declare function move<K, S extends Key = string>(flattening: readonly Fla
1058
1140
  * "selected" scope, rows that have been unticked stay visible until the scope
1059
1141
  * changes, so that nothing jumps away from under the mouse pointer.
1060
1142
  */
1061
- export declare function MultiSelect<T extends string = string>({ options, value, onChange, placeholder, searchPlaceholder, emptyText, disabled, invalid, }: MultiSelectProps<T>): JSX.Element;
1143
+ export declare const MultiSelect: <T extends string = string>(props: MultiSelectProps<T> & {
1144
+ ref?: ForwardedRef<HTMLDivElement>;
1145
+ }) => ReactElement;
1062
1146
 
1063
1147
  export declare interface MultiSelectOption<T extends string = string> {
1064
1148
  /** What stands in `value` when this row is ticked. */
@@ -1070,7 +1154,7 @@ export declare interface MultiSelectOption<T extends string = string> {
1070
1154
  disabled?: boolean;
1071
1155
  }
1072
1156
 
1073
- export declare interface MultiSelectProps<T extends string = string> {
1157
+ export declare interface MultiSelectProps<T extends string = string> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
1074
1158
  /** The possibilities, in their natural order. The list never re-sorts –
1075
1159
  not even in the "selected" scope. */
1076
1160
  options: readonly MultiSelectOption<T>[];
@@ -1233,6 +1317,25 @@ export declare interface PopoverProps {
1233
1317
  */
1234
1318
  export declare type PortalTarget = HTMLElement | (() => HTMLElement | null) | null;
1235
1319
 
1320
+ export declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps & RefAttributes<HTMLDivElement>>;
1321
+
1322
+ export declare interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
1323
+ /** How far the task has come, from 0 to 1. Left out, the bar is
1324
+ indeterminate: the task runs, and nobody knows how far it is. */
1325
+ value?: number;
1326
+ /**
1327
+ * What is progressing, e.g. "Import of the batch records". A progress bar
1328
+ * needs a name from the author; without one the general term stands here.
1329
+ */
1330
+ label?: string;
1331
+ /** What a screen reader says instead of the percentage, where a count says
1332
+ it better - "3 of 12 pallets". */
1333
+ valueText?: string;
1334
+ /** The percentage beside the bar (Geist Mono). Never for an indeterminate
1335
+ bar - it has no figure to show. */
1336
+ showLabel?: boolean;
1337
+ }
1338
+
1236
1339
  export declare const RadioGroup: <T extends string>(props: RadioGroupProps<T> & {
1237
1340
  ref?: React.ForwardedRef<HTMLDivElement>;
1238
1341
  }) => React.ReactElement;
@@ -1410,7 +1513,7 @@ export declare type Severity = "warning" | "alarm";
1410
1513
  export declare type Side = "upper" | "lower";
1411
1514
 
1412
1515
  /** Loading placeholder with a restrained pulse; respects prefers-reduced-motion. */
1413
- export declare function Skeleton({ width, height, circle, className, style, ...rest }: SkeletonProps): JSX.Element;
1516
+ export declare const Skeleton: ForwardRefExoticComponent<SkeletonProps & RefAttributes<HTMLSpanElement>>;
1414
1517
 
1415
1518
  export declare interface SkeletonProps extends HTMLAttributes<HTMLSpanElement> {
1416
1519
  /** Width, e.g. "120px" or "60%". Default: 100 %. */
@@ -1421,10 +1524,42 @@ export declare interface SkeletonProps extends HTMLAttributes<HTMLSpanElement> {
1421
1524
  circle?: boolean;
1422
1525
  }
1423
1526
 
1527
+ export declare const Slider: ForwardRefExoticComponent<SliderProps & RefAttributes<HTMLInputElement>>;
1528
+
1529
+ /** A mark on the track: a value, or a value with the word beneath it. */
1530
+ export declare type SliderMark = number | {
1531
+ value: number;
1532
+ label?: ReactNode;
1533
+ };
1534
+
1535
+ export declare interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "defaultValue" | "onChange" | "min" | "max" | "step"> {
1536
+ /** Controlled: the value. */
1537
+ value?: number;
1538
+ /** Uncontrolled: the value to start at. Default: `min`. */
1539
+ defaultValue?: number;
1540
+ /** Reports every change, by pointer or key, as a number on the step. */
1541
+ onChange?: (value: number) => void;
1542
+ /** Default: 0 */
1543
+ min?: number;
1544
+ /** Default: 100 */
1545
+ max?: number;
1546
+ /** Default: 1 */
1547
+ step?: number;
1548
+ /** Values marked on the track; an object with a `label` writes the word
1549
+ beneath its mark. A mark shows a value, it does not catch the thumb. */
1550
+ marks?: readonly SliderMark[];
1551
+ /** The value as text: for the readout and for the screen reader
1552
+ (`aria-valuetext`). Default: the number in the formats' notation, with
1553
+ as many decimals as the step has. */
1554
+ format?: (value: number) => string;
1555
+ /** The value in mono beside the track. Default: true */
1556
+ showValue?: boolean;
1557
+ }
1558
+
1424
1559
  export declare type SpaceStep = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
1425
1560
 
1426
1561
  /** A miniature trend line for table cells; the end point carries the accent. */
1427
- export declare function Sparkline({ data, width, height, tone, className, ...rest }: SparklineProps): JSX.Element | null;
1562
+ export declare const Sparkline: ForwardRefExoticComponent<SparklineProps & RefAttributes<HTMLSpanElement>>;
1428
1563
 
1429
1564
  export declare interface SparklineProps extends HTMLAttributes<HTMLSpanElement> {
1430
1565
  /** Values in chronological order; at least two. */
@@ -1439,7 +1574,7 @@ export declare interface SparklineProps extends HTMLAttributes<HTMLSpanElement>
1439
1574
  }
1440
1575
 
1441
1576
  /** Restrained loading indicator; inherits the text colour of its context. */
1442
- export declare function Spinner({ size, className, ...rest }: SpinnerProps): JSX.Element;
1577
+ export declare const Spinner: ForwardRefExoticComponent<SpinnerProps & RefAttributes<SVGSVGElement>>;
1443
1578
 
1444
1579
  export declare interface SpinnerProps extends SVGAttributes<SVGSVGElement> {
1445
1580
  /** Edge length in pixels. */
@@ -1465,6 +1600,32 @@ export declare interface SplitButtonProps extends Omit<ButtonProps, "children" |
1465
1600
  align?: "start" | "end";
1466
1601
  }
1467
1602
 
1603
+ export declare const Splitter: ForwardRefExoticComponent<SplitterProps & RefAttributes<HTMLDivElement>>;
1604
+
1605
+ export declare interface SplitterProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "children"> {
1606
+ /** How the two panes stand: `horizontal` side by side, `vertical` one
1607
+ above the other - a trend above, its alarms below. Default: `horizontal` */
1608
+ orientation?: "horizontal" | "vertical";
1609
+ /** Controlled: the first pane's share of the room, in per cent. */
1610
+ value?: number;
1611
+ /** Uncontrolled: the share to start at. Default: 50 */
1612
+ defaultValue?: number;
1613
+ /** Reports every move, by pointer or key, as the first pane's share. */
1614
+ onChange?: (value: number) => void;
1615
+ /** The smallest share of the first pane, and where Enter collapses it to.
1616
+ Default: 0 */
1617
+ min?: number;
1618
+ /** The largest share of the first pane. Default: 100 */
1619
+ max?: number;
1620
+ /** How far an arrow key moves the separator, in per cent. Default: 5 */
1621
+ step?: number;
1622
+ /** The separator's name. The APG names it after the first pane ("Trend");
1623
+ without it the general term from the wording stands. */
1624
+ separatorLabel?: string;
1625
+ /** The first pane and the second, in this order. */
1626
+ children: [ReactNode, ReactNode];
1627
+ }
1628
+
1468
1629
  export declare const Stack: ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>>;
1469
1630
 
1470
1631
  export declare interface StackProps extends HTMLAttributes<HTMLDivElement> {
@@ -1482,7 +1643,7 @@ export declare interface StackProps extends HTMLAttributes<HTMLDivElement> {
1482
1643
  }
1483
1644
 
1484
1645
  /** Metric tile: one value, read against its limits. */
1485
- export declare function Stat({ label, value, unit, decimals, limits, history, asOf, ages, className, ...rest }: StatProps): JSX.Element;
1646
+ export declare const Stat: ForwardRefExoticComponent<StatProps & RefAttributes<HTMLDivElement>>;
1486
1647
 
1487
1648
  export declare interface StatProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
1488
1649
  /** What is being measured. */
@@ -1506,11 +1667,48 @@ export declare interface StatProps extends Omit<HTMLAttributes<HTMLDivElement>,
1506
1667
  ages?: FreshnessAges;
1507
1668
  }
1508
1669
 
1509
- export declare function Tab({ value, className, children, onClick, ...rest }: TabProps): JSX.Element;
1670
+ export declare const Stepper: ForwardRefExoticComponent<StepperProps & RefAttributes<HTMLOListElement>>;
1510
1671
 
1511
- export declare function TabList({ className, children, onKeyDown, ...rest }: HTMLAttributes<HTMLDivElement>): JSX.Element;
1672
+ export declare interface StepperProps extends HTMLAttributes<HTMLOListElement> {
1673
+ /** The steps in the order they are walked. */
1674
+ steps: readonly StepperStep[];
1675
+ /** The index of the step being worked on. The steps before it are done,
1676
+ the ones after it upcoming; past the last step, every step is done. */
1677
+ current: number;
1678
+ /** `horizontal` in a row, `vertical` in a column for steps with longer
1679
+ descriptions. Default: `horizontal` */
1680
+ orientation?: "horizontal" | "vertical";
1681
+ }
1682
+
1683
+ /** One step of a procedure. */
1684
+ export declare interface StepperStep {
1685
+ /** What the step is called - a verb for what happens in it. */
1686
+ label: ReactNode;
1687
+ /** A line beneath the label - how long the step takes, what it needs. */
1688
+ description?: ReactNode;
1689
+ /** The step failed. It says so whether it is behind the current step or is
1690
+ the current one: a failed step is not done. */
1691
+ failed?: boolean;
1692
+ }
1693
+
1694
+ export declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLInputElement>>;
1695
+
1696
+ export declare interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "role"> {
1697
+ /** Label to the right of the switch. */
1698
+ label?: ReactNode;
1699
+ /** `sm` for dense forms and table rows, `md` otherwise - the sizes of the
1700
+ fields beside it. */
1701
+ size?: "sm" | "md";
1702
+ /** Marks the switch as invalid. `FormField` sets it itself as soon as it
1703
+ carries an `error` - by hand only necessary without `FormField`. */
1704
+ invalid?: boolean;
1705
+ }
1706
+
1707
+ export declare const Tab: ForwardRefExoticComponent<TabProps & RefAttributes<HTMLButtonElement>>;
1512
1708
 
1513
- export declare function TabPanel({ value, className, children, ...rest }: TabPanelProps): JSX.Element | null;
1709
+ export declare const TabList: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
1710
+
1711
+ export declare const TabPanel: ForwardRefExoticComponent<TabPanelProps & RefAttributes<HTMLDivElement>>;
1514
1712
 
1515
1713
  export declare interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
1516
1714
  /** The value of the tab this panel belongs to. Only the matching panel
@@ -1524,14 +1722,18 @@ export declare interface TabProps extends ButtonHTMLAttributes<HTMLButtonElement
1524
1722
  value: string;
1525
1723
  }
1526
1724
 
1527
- export declare function Tabs({ value, onChange, className, children, ...rest }: TabsProps): JSX.Element;
1725
+ export declare const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<HTMLDivElement>>;
1528
1726
 
1529
- export declare interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
1530
- /** The value of the visible tab. Controlled: `Tabs` remembers nothing,
1531
- so that the tab can come out of an address. */
1532
- value: string;
1533
- /** Receives the value of the chosen tab. */
1534
- onChange: (value: string) => void;
1727
+ export declare interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
1728
+ /** The value of the visible tab. Controlled, `Tabs` remember nothing, so
1729
+ that the tab can come out of an address. */
1730
+ value?: string;
1731
+ /** Uncontrolled: the tab that stands first. Afterwards the choice belongs
1732
+ to the tabs - for a switch no address and no handler needs to know. */
1733
+ defaultValue?: string;
1734
+ /** Receives the value of the chosen tab. Controlled, the tab switches only
1735
+ once `value` follows; uncontrolled it is merely a message. */
1736
+ onChange?: (value: string) => void;
1535
1737
  }
1536
1738
 
1537
1739
  export declare const Tag: ForwardRefExoticComponent<TagProps & RefAttributes<HTMLSpanElement>>;
@@ -1768,7 +1970,9 @@ export declare interface TreeOptions<K, S extends Key = string> {
1768
1970
  virtual?: VirtualOptions;
1769
1971
  }
1770
1972
 
1771
- export declare function TreeSearch<K, S extends Key = string>({ tree, placeholder, ...rest }: TreeSearchProps<K, S>): JSX.Element;
1973
+ export declare const TreeSearch: <K, S extends Key = string>(props: TreeSearchProps<K, S> & {
1974
+ ref?: ForwardedRef<HTMLInputElement>;
1975
+ }) => ReactNode;
1772
1976
 
1773
1977
  export declare interface TreeSearchProps<K, S extends Key = string> extends Omit<InputProps, "value" | "onChange" | "type"> {
1774
1978
  /** The same tree as the view's. The field does not hold the text itself –
@@ -1787,7 +1991,9 @@ export declare interface TreeSnapshot<S extends Key = string> {
1787
1991
  search: string;
1788
1992
  }
1789
1993
 
1790
- export declare function TreeView<K, S extends Key = string>({ tree, ariaLabel, checkable, children, className, onKeyDown, onFocus, onBlur, onScroll, ...rest }: TreeViewProps<K, S>): ReactNode;
1994
+ export declare const TreeView: <K, S extends Key = string>(props: TreeViewProps<K, S> & {
1995
+ ref?: ForwardedRef<HTMLDivElement>;
1996
+ }) => ReactNode;
1791
1997
 
1792
1998
  export declare interface TreeViewProps<K, S extends Key = string> extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
1793
1999
  /** The tree from `useTree`. It is the whole state: flattening, active node,
@@ -2045,6 +2251,21 @@ export declare interface Wording {
2045
2251
  /** The summary in the panel: "3 / 12". The sentence structure belongs to the
2046
2252
  language, even where it is only a slash here. */
2047
2253
  multiSelectSummary: (gewaehlt: number, total: number) => string;
2254
+ /** How many options stand, when a list opens or its filter changes; never
2255
+ zero - an empty list says its own empty text. Named, like the three
2256
+ below, after the moment it is spoken in: an announcement labels no
2257
+ element. */
2258
+ optionCount: (count: number) => string;
2259
+ /** The option the keys moved onto, with what VoiceOver leaves out. */
2260
+ optionActive: (label: string, state: {
2261
+ selected?: boolean;
2262
+ disabled?: boolean;
2263
+ group?: string;
2264
+ }) => string;
2265
+ /** A value the multi-select took or gave away where no checkbox had the
2266
+ focus to say it - Enter in the search, a chip, Backspace. */
2267
+ optionAdded: (label: string) => string;
2268
+ optionRemoved: (label: string) => string;
2048
2269
  /** What stands in the empty field. */
2049
2270
  palettePlaceholder: string;
2050
2271
  /** Accessible name of the field. Deliberately kept apart from the
@@ -2165,8 +2386,13 @@ export declare interface Wording {
2165
2386
  pagination: string;
2166
2387
  rows: string;
2167
2388
  rowsPerPage: string;
2168
- /** "Page 2 of 7" */
2169
- pageOfPages: (page: number, total: number) => string;
2389
+ /** "Page 2 of 7". `formatted` carries both numbers in the provider's
2390
+ formats, where the caller has them - a table over a server has "Page 1 of
2391
+ 100,000". */
2392
+ pageOfPages: (page: number, total: number, formatted?: {
2393
+ page: string;
2394
+ total: string;
2395
+ }) => string;
2170
2396
  previousPage: string;
2171
2397
  nextPage: string;
2172
2398
  /** The two buttons in the column filter's footer. */
@@ -2179,8 +2405,14 @@ export declare interface Wording {
2179
2405
  /** The two buttons that move a column in the column menu. */
2180
2406
  columnForward: (column: string) => string;
2181
2407
  columnBackward: (column: string) => string;
2408
+ /** The column menu's pin keys: to a side, and back when it is pinned there. */
2409
+ pinColumnToStart: (column: string) => string;
2410
+ pinColumnToEnd: (column: string) => string;
2411
+ unpinColumn: (column: string) => string;
2182
2412
  /** The export button. */
2183
2413
  exportLabel: string;
2414
+ /** The export button of a table in manual mode, which holds and writes one page. */
2415
+ exportPageLabel: string;
2184
2416
  /** The export's file name, where the application names none. */
2185
2417
  exportFileName: string;
2186
2418
  /** Placeholder and accessible name of the search field. */
@@ -2192,6 +2424,8 @@ export declare interface Wording {
2192
2424
  selectRow: (row: string) => string;
2193
2425
  /** The selection of every row in the filtered set. */
2194
2426
  selectAllRows: string;
2427
+ /** The same checkbox in manual mode, where the table holds one page of a server's. */
2428
+ selectAllOnPage: string;
2195
2429
  /** The expand button, named after the row header. */
2196
2430
  expandRowNamed: (row: string) => string;
2197
2431
  collapseRowNamed: (row: string) => string;
@@ -2201,6 +2435,9 @@ export declare interface Wording {
2201
2435
  rowAction: (aktion: string, row: string) => string;
2202
2436
  /** The menu holding a row's actions. */
2203
2437
  rowActionsMenu: (row: string) => string;
2438
+ /** The editor of a cell in a table's grid mode, named after its column and
2439
+ its row: "Edit Setpoint: Pump 1". */
2440
+ editCell: (column: string, row: string) => string;
2204
2441
  /** What the screen reader hears for an absent value. Visibly a muted dash
2205
2442
  stands there. */
2206
2443
  cellAbsentValue: string;
@@ -2323,6 +2560,21 @@ export declare interface Wording {
2323
2560
  land in the column menu and the CSV header (`alarmColumns`). */
2324
2561
  columnAcknowledgement: string;
2325
2562
  columnAge: string;
2563
+ /** The availability of an alarm (ISA-18.2's special states), written out.
2564
+ The shelf names its end and who shelved it - a shelf is tracked, not
2565
+ anonymous; the time comes from the formats. */
2566
+ availabilityShelved: (until: string, by: string) => string;
2567
+ /** A shelf as one word - the alarm list's badge; the sentence above stands
2568
+ in its tooltip and in what is spoken. */
2569
+ availabilityShelvedShort: string;
2570
+ availabilitySuppressedByDesign: string;
2571
+ availabilityOutOfService: string;
2572
+ /** "Hidden from operation: 3" - the count of the view, and its name where the
2573
+ list offers the view as a switch. */
2574
+ hiddenFromOperation: (count: number) => string;
2575
+ /** The availability column of the alarm model: the column menu and the CSV
2576
+ header, like the two above. */
2577
+ columnAvailability: string;
2326
2578
  close: string;
2327
2579
  closeToast: string;
2328
2580
  confirm: string;
@@ -2330,6 +2582,34 @@ export declare interface Wording {
2330
2582
  loading: string;
2331
2583
  /** Generic name of a fill-level bar, where the caller names none. */
2332
2584
  fillLevel: string;
2585
+ /** Generic name of a progress bar, where the caller names none. */
2586
+ progress: string;
2587
+ /** The accessible name of a breadcrumb's navigation landmark. */
2588
+ breadcrumb: string;
2589
+ /** The key that opens a breadcrumb's folded middle levels as a menu. */
2590
+ breadcrumbFolded: string;
2591
+ /** The separator between a splitter's panes, where the caller names none -
2592
+ a caller who can should name the first pane instead (APG). */
2593
+ splitter: string;
2594
+ /** A stepper's step that is behind it, said beside its label to a screen
2595
+ reader; the current step is `aria-current` and needs no word. */
2596
+ stepDone: string;
2597
+ /** A step still ahead. */
2598
+ stepUpcoming: string;
2599
+ /** A step that failed - behind the current one or the current one itself. */
2600
+ stepFailed: string;
2601
+ /** The key of a file input that takes one file - and its name where no
2602
+ field names it. */
2603
+ chooseFile: string;
2604
+ /** The same key where it takes several. */
2605
+ chooseFiles: string;
2606
+ /** The words beside the key that say the zone takes a drop. */
2607
+ dropFile: string;
2608
+ dropFiles: string;
2609
+ /** The cross beside a chosen file. */
2610
+ removeFile: (name: string) => string;
2611
+ /** A dropped file the input's `accept` does not take. */
2612
+ fileNotAccepted: (name: string) => string;
2333
2613
  show: string;
2334
2614
  hide: string;
2335
2615
  moreActions: string;
@@ -2362,6 +2642,22 @@ export declare interface Wording {
2362
2642
  scheduleUnfoldGroup: string;
2363
2643
  /** How many lanes a group holds, beside its name in the header. */
2364
2644
  scheduleLaneCount: (count: number) => string;
2645
+ /** What a screen reader calls the plot that takes the keys
2646
+ (`aria-roledescription`, schedule-a11y S1). */
2647
+ scheduleRoleDescription: string;
2648
+ /** The plot's description (S6): the lanes, the subtasks in view, the
2649
+ visible span with both ends formatted, and the findings of the plan by
2650
+ kind. */
2651
+ scheduleSummary: (summary: {
2652
+ lanes: number;
2653
+ subtasks: number;
2654
+ from: string;
2655
+ to: string;
2656
+ overlaps: number;
2657
+ late: number;
2658
+ }) => string;
2659
+ /** The keys that walk the plot, select and edit - read after the summary. */
2660
+ scheduleKeyHelp: string;
2365
2661
  /** The four operators as symbols in a formula line. */
2366
2662
  calculationSumSymbol: string;
2367
2663
  calculationDifferenceSymbol: string;