@umriss-ui/core 0.23.0 → 0.25.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,10 +19,15 @@ import { SVGAttributes } from 'react';
19
19
  import { SVGProps } from 'react';
20
20
  import { TextareaHTMLAttributes } from 'react';
21
21
 
22
+ /** Sections behind headers that open and close: one at a time (`single`) or
23
+ any number (`multiple`). The arrow keys move between the headers. */
22
24
  export declare const Accordion: ForwardRefExoticComponent<AccordionProps & RefAttributes<HTMLDivElement>>;
23
25
 
26
+ /** One section of an `Accordion`: its header and the content it opens. */
24
27
  export declare const AccordionItem: ForwardRefExoticComponent<AccordionItemProps & RefAttributes<HTMLDivElement>>;
25
28
 
29
+ /** The props of `AccordionItem`: a div's attributes, with `title` taking the
30
+ header's node instead of the HTML attribute. */
26
31
  export declare interface AccordionItemProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
27
32
  /** What names the section in the accordion's `value`. */
28
33
  value: string;
@@ -32,9 +37,9 @@ export declare interface AccordionItemProps extends Omit<HTMLAttributes<HTMLDivE
32
37
  disabled?: boolean;
33
38
  }
34
39
 
40
+ /** The props of `Accordion`. */
35
41
  export declare interface AccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
36
- /** `single` keeps at most one section open, `multiple` any number.
37
- Default: `single` */
42
+ /** `single` keeps at most one section open, `multiple` any number. */
38
43
  type?: "single" | "multiple";
39
44
  /** Controlled: the values of the open sections. A list for both types, so
40
45
  that switching the type changes nothing else. */
@@ -45,7 +50,7 @@ export declare interface AccordionProps extends Omit<HTMLAttributes<HTMLDivEleme
45
50
  accordion follows once `value` does; uncontrolled it is a message. */
46
51
  onChange?: (value: string[]) => void;
47
52
  /** The level of the heading each header stands in - the one that fits the
48
- page's outline. Default: 3 */
53
+ page's outline. */
49
54
  headingLevel?: 2 | 3 | 4 | 5 | 6;
50
55
  }
51
56
 
@@ -61,8 +66,13 @@ export declare interface AccordionProps extends Omit<HTMLAttributes<HTMLDivEleme
61
66
  */
62
67
  export declare function age(asOf: Instant, now: Instant): number | null;
63
68
 
69
+ /** A message that stays put in the page - for what a toast would carry away
70
+ too soon. Warning and danger interrupt the screen reader, the other tones
71
+ report politely. */
64
72
  export declare const Alert: ForwardRefExoticComponent<AlertProps & RefAttributes<HTMLDivElement>>;
65
73
 
74
+ /** The props of `Alert`: a div's attributes, with `title` taking a heading
75
+ node instead of the HTML attribute. */
66
76
  export declare interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
67
77
  /** How urgent the message is. Only `warning` and `danger` interrupt the
68
78
  screen reader - the other two report politely. */
@@ -73,19 +83,25 @@ export declare interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>,
73
83
  actions?: ReactNode;
74
84
  /** Shows a dismiss cross and calls this. */
75
85
  onDismiss?: () => void;
76
- /** Label of the dismiss cross; default the wording's "Close message". */
86
+ /** Label of the dismiss cross.
87
+ @default the wording's "Close message" */
77
88
  dismissLabel?: string;
78
89
  }
79
90
 
91
+ /** How urgent an alert is; it also decides whether a screen reader is
92
+ interrupted. */
80
93
  export declare type AlertTone = "neutral" | "accent" | "success" | "warning" | "danger";
81
94
 
82
- declare type Align = "start" | "end" | "center";
95
+ /** Where the panel lines up with its anchor along the side it stands on. */
96
+ export declare type Align = "start" | "end" | "center";
83
97
 
84
98
  /** Every loaded branch with content. Empty ones stay out because expanding
85
99
  them showed nothing; unloaded ones stay out because one click would
86
100
  otherwise trigger a thousand requests (ADR-0005). */
87
101
  export declare function allBranches<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>): S[];
88
102
 
103
+ /** The chevron that expands and collapses a branch. Drawn pointing right;
104
+ rotate it by 90 degrees for an open branch. */
89
105
  export declare const AngleGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
90
106
 
91
107
  /**
@@ -126,6 +142,7 @@ export declare interface Assessment {
126
142
  /** Compact status label; as a `pill` for counters. */
127
143
  export declare const Badge: ForwardRefExoticComponent<BadgeProps & RefAttributes<HTMLSpanElement>>;
128
144
 
145
+ /** The props of `Badge`. */
129
146
  export declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
130
147
  /** What the badge stands for. There is always a word beside it: a colour on
131
148
  its own is not a statement. */
@@ -135,8 +152,12 @@ export declare interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
135
152
  pill?: boolean;
136
153
  }
137
154
 
155
+ /** What a badge stands for - never the only statement, a word stands beside
156
+ it. */
138
157
  export declare type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
139
158
 
159
+ /** Where a page stands: the trail from the root to the current page. Where it
160
+ is wider than its place, the middle levels fold into a menu. */
140
161
  export declare const Breadcrumb: ForwardRefExoticComponent<BreadcrumbProps & RefAttributes<HTMLElement>>;
141
162
 
142
163
  /** One level of the trail. */
@@ -154,30 +175,38 @@ export declare interface BreadcrumbEntry {
154
175
  onSelect?: () => void;
155
176
  }
156
177
 
178
+ /** The props of `Breadcrumb`. */
157
179
  export declare interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
158
180
  /** The trail from the root to the current page; the last is the page. */
159
181
  items: readonly BreadcrumbEntry[];
160
182
  }
161
183
 
184
+ /** A button with a label. `primary` once per surface; `loading` shows a
185
+ spinner and locks it. `type` is `button` unless you say otherwise. */
162
186
  export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
163
187
 
188
+ /** Buttons standing side by side as one control: square inside, rounded
189
+ outside, a hairline between them. `size` sets one height for all. */
164
190
  export declare const ButtonGroup: ForwardRefExoticComponent<ButtonGroupProps & RefAttributes<HTMLDivElement>>;
165
191
 
192
+ /** The props of `ButtonGroup`. */
166
193
  export declare interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
167
194
  /** Label of the group for the screen reader. */
168
195
  "aria-label"?: string;
169
196
  /** The size of the buttons in it that do not say their own - one group,
170
- one height. Default: the size around it, else `md`. */
197
+ one height.
198
+ @default the size around it, else `"md"` */
171
199
  size?: ButtonSize;
172
200
  }
173
201
 
202
+ /** The props of `Button`: a native button's attributes and its look. */
174
203
  export declare interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
175
204
  /** How loud the button is. `primary` exactly once per surface - two main
176
205
  actions side by side are no longer a main action. `ghost` is quiet in the
177
206
  accent, `plain` quiet and neutral. */
178
207
  variant?: ButtonVariant;
179
- /** `sm` for buttons in header bars and table rows, `md` otherwise. Default:
180
- the size of a `ControlSizeProvider` around it, else `md`. */
208
+ /** `sm` for buttons in header bars and table rows, `md` otherwise.
209
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
181
210
  size?: ButtonSize;
182
211
  /** Shows a loading indicator and locks the button. */
183
212
  loading?: boolean;
@@ -186,6 +215,9 @@ export declare interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElem
186
215
  /** A button's two heights - the controls' (`ControlSize`). */
187
216
  export declare type ButtonSize = ControlSize;
188
217
 
218
+ /** How loud a button is: `primary` for the one main action, `secondary` by
219
+ default, `ghost` quiet in the accent, `plain` quiet and neutral, `danger`
220
+ for a destructive action. */
189
221
  export declare type ButtonVariant = "primary" | "secondary" | "ghost" | "plain" | "danger";
190
222
 
191
223
  /**
@@ -209,17 +241,27 @@ export declare const CalendarGlyph: ForwardRefExoticComponent<Omit<GlyphProps &
209
241
  range?: boolean;
210
242
  }, "ref"> & RefAttributes<SVGSVGElement>>;
211
243
 
244
+ /** A surface that groups content under a head: `CardHeader` and `CardBody`
245
+ inside a `section`. With `collapsible` the header gets a key that folds the
246
+ body away. */
212
247
  export declare const Card: ForwardRefExoticComponent<CardProps & RefAttributes<HTMLElement>>;
213
248
 
249
+ /** The content of a `Card`; the part that folds away in a collapsible card.
250
+ `flush` removes the padding for a table or a log. */
214
251
  export declare const CardBody: ForwardRefExoticComponent<CardBodyProps & RefAttributes<HTMLDivElement>>;
215
252
 
253
+ /** The props of `CardBody`. */
216
254
  export declare interface CardBodyProps extends HTMLAttributes<HTMLDivElement> {
217
255
  /** Removes the inner padding, e.g. for flush tables. */
218
256
  flush?: boolean;
219
257
  }
220
258
 
259
+ /** The head of a `Card`: title, an optional eyebrow and actions on the right.
260
+ In a collapsible card it carries the fold key. */
221
261
  export declare const CardHeader: ForwardRefExoticComponent<CardHeaderProps & RefAttributes<HTMLDivElement>>;
222
262
 
263
+ /** The props of `CardHeader`: a div's attributes, with `title` taking a node
264
+ instead of the HTML attribute. */
223
265
  export declare interface CardHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
224
266
  /** The heading of the card. A node and not merely text, so that an
225
267
  identifier with markup can stand in it too. */
@@ -236,6 +278,7 @@ export declare interface CardHeaderProps extends Omit<HTMLAttributes<HTMLDivElem
236
278
  divider?: boolean;
237
279
  }
238
280
 
281
+ /** The props of `Card`. */
239
282
  export declare interface CardProps extends HTMLAttributes<HTMLElement> {
240
283
  /** Allows collapsing and expanding the body through the header. */
241
284
  collapsible?: boolean;
@@ -251,8 +294,11 @@ export declare interface CardProps extends HTMLAttributes<HTMLElement> {
251
294
  onCollapsedChange?: (collapsed: boolean) => void;
252
295
  }
253
296
 
297
+ /** A native checkbox with its label beside it; `indeterminate` shows the mixed
298
+ state. Inside a `FormField` it takes the field's id and description. */
254
299
  export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
255
300
 
301
+ /** The props of `Checkbox`: a native checkbox's attributes and its label. */
256
302
  export declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
257
303
  /** Label to the right of the checkbox. */
258
304
  label?: ReactNode;
@@ -274,6 +320,7 @@ export declare const clampedHeight: (measured: number, lineHeight: number, maxRo
274
320
  /** A clock face at a quarter past - the time pickers' character. */
275
321
  export declare const ClockGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
276
322
 
323
+ /** Closes a branch. Returns the same snapshot where it is closed already. */
277
324
  export declare function collapse<S extends Key>(snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
278
325
 
279
326
  /** A searchable select field (the combobox pattern with a listbox panel). */
@@ -281,6 +328,8 @@ export declare const Combobox: <T extends string = string>(props: ComboboxProps<
281
328
  ref?: ForwardedRef<HTMLDivElement>;
282
329
  }) => ReactElement;
283
330
 
331
+ /** One possibility of a `Combobox`: the value it stands for and the label it
332
+ is found by. */
284
333
  export declare interface ComboboxOption<T extends string = string> {
285
334
  /** What comes back when this row is chosen. */
286
335
  value: T;
@@ -291,6 +340,7 @@ export declare interface ComboboxOption<T extends string = string> {
291
340
  disabled?: boolean;
292
341
  }
293
342
 
343
+ /** The props of `Combobox`. */
294
344
  export declare interface ComboboxProps<T extends string = string> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
295
345
  /** The possibilities, in their natural order. Filtered while typing; never
296
346
  reordered. */
@@ -303,8 +353,8 @@ export declare interface ComboboxProps<T extends string = string> extends Omit<H
303
353
  onChange: (value: T | null) => void;
304
354
  /** What stands in the empty field. */
305
355
  placeholder?: string;
306
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
307
- `ControlSizeProvider` around it, else `md`. */
356
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
357
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
308
358
  size?: "sm" | "md";
309
359
  /** The width in characters - room for the typed text and the chosen
310
360
  option; the field adds its own padding, chevron and cross. Given, the
@@ -324,6 +374,9 @@ export declare interface ComboboxProps<T extends string = string> extends Omit<H
324
374
  clearable?: boolean;
325
375
  }
326
376
 
377
+ /** A window above the application in which one types and finds: it searches
378
+ `items` by subsequence, ranks and marks the matches, and reports the chosen
379
+ candidate's `id` to `onChoose`. Controlled through `open` and `onClose`. */
327
380
  export declare const CommandPalette: ForwardRefExoticComponent<CommandPaletteProps & RefAttributes<HTMLDialogElement>>;
328
381
 
329
382
  /** A candidate the palette can find - the outside of the term CONTEXT.md lists
@@ -335,6 +388,14 @@ export declare interface CommandPaletteItem {
335
388
  label: string;
336
389
  /** The heading the candidate stands under. It is searched as well. */
337
390
  group?: string;
391
+ /**
392
+ * The part of `group` that is searched, where not all of it should be: a
393
+ * prefix every candidate of a set shares - `core · ` before `core · Inputs` -
394
+ * would otherwise let its few letters find the whole set.
395
+ *
396
+ * @default the whole `group`
397
+ */
398
+ searchedGroup?: string;
338
399
  /** Optional glyph on the left of the row. */
339
400
  icon?: ReactNode;
340
401
  /**
@@ -342,8 +403,17 @@ export declare interface CommandPaletteItem {
342
403
  * library deliberately keeps no memory for that.
343
404
  */
344
405
  weight?: number;
406
+ /**
407
+ * More words the candidate is found by, such as synonyms - searched but never
408
+ * shown. Only when neither `label` nor `group` matched, only for a query of
409
+ * three characters or more, and as a contiguous run, not as a subsequence. A
410
+ * find through them stands behind every find in a label or a group and marks
411
+ * nothing.
412
+ */
413
+ keywords?: readonly string[];
345
414
  }
346
415
 
416
+ /** The props of `CommandPalette`. */
347
417
  export declare interface CommandPaletteProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, "open" | "onClose" | "children"> {
348
418
  /** Controlled like the modal: opening is the caller's decision. */
349
419
  open: boolean;
@@ -372,11 +442,21 @@ export declare interface CommandPaletteProps extends Omit<DialogHTMLAttributes<H
372
442
  * the order belongs to the caller.
373
443
  */
374
444
  restingItems?: readonly CommandPaletteItem[];
445
+ /**
446
+ * The most finds that stand at once - the best by rank. A last line says how
447
+ * many more there are, and typing on narrows them. For a long list of
448
+ * candidates, where a single letter finds hundreds and drawing them all
449
+ * would make every keystroke wait.
450
+ *
451
+ * @default every find
452
+ */
453
+ maxFinds?: number;
375
454
  }
376
455
 
377
456
  /** Compact confirmation dialog on the basis of Modal. */
378
457
  export declare const ConfirmDialog: ForwardRefExoticComponent<ConfirmDialogProps & RefAttributes<HTMLDialogElement>>;
379
458
 
459
+ /** The props of `ConfirmDialog`. */
380
460
  export declare interface ConfirmDialogProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, "open" | "onClose" | "title" | "children"> {
381
461
  /** Whether the query stands. */
382
462
  open: boolean;
@@ -390,11 +470,12 @@ export declare interface ConfirmDialogProps extends Omit<DialogHTMLAttributes<HT
390
470
  /** What about it cannot be taken back. The most important line of the
391
471
  dialog. */
392
472
  description?: ReactNode;
393
- /** Label of the agreeing button; the wording's confirm text by default.
394
- Better is the verb of the action: "Delete" says what is about to
395
- happen. */
473
+ /** Label of the agreeing button. Better is the verb of the action:
474
+ "Delete" says what is about to happen.
475
+ @default the wording's "Confirm" */
396
476
  confirmLabel?: string;
397
- /** Label of the cancelling button; the wording's cancel text by default. */
477
+ /** Label of the cancelling button.
478
+ @default the wording's "Cancel" */
398
479
  cancelLabel?: string;
399
480
  /** "danger" for destructive actions. */
400
481
  tone?: "primary" | "danger";
@@ -412,6 +493,7 @@ export declare interface ConfirmDialogProps extends Omit<DialogHTMLAttributes<HT
412
493
  */
413
494
  export declare function ContextMenu({ open, onOpenChange, position, ariaLabel, children }: ContextMenuProps): JSX.Element;
414
495
 
496
+ /** The props of `ContextMenu`. */
415
497
  export declare interface ContextMenuProps {
416
498
  /** Whether the menu stands. Controlled, like `Popover`: a right-click
417
499
  opens it only because the caller says so. */
@@ -442,6 +524,7 @@ export declare type ControlSize = "sm" | "md";
442
524
  starts without it. */
443
525
  export declare function ControlSizeProvider({ size, children }: ControlSizeProviderProps): JSX.Element;
444
526
 
527
+ /** The props of `ControlSizeProvider`. */
445
528
  export declare interface ControlSizeProviderProps {
446
529
  /** The size of every control inside that does not say its own. */
447
530
  size: ControlSize;
@@ -475,8 +558,8 @@ export declare interface DatePickerProps extends Omit<HTMLAttributes<HTMLSpanEle
475
558
  /** Marks the field as invalid. `FormField` sets it itself as soon as it
476
559
  carries an `error` - by hand only necessary without `FormField`. */
477
560
  invalid?: boolean;
478
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
479
- `ControlSizeProvider` around it, else `md`. */
561
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
562
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
480
563
  size?: "sm" | "md";
481
564
  /** The width in characters - room for the value; the field adds its own
482
565
  padding, glyph and cross. Given, the field is that wide wherever it
@@ -489,6 +572,8 @@ export declare interface DatePickerProps extends Omit<HTMLAttributes<HTMLSpanEle
489
572
  clearable?: boolean;
490
573
  }
491
574
 
575
+ /** A span between two dates, both ends included - the value of
576
+ `DateRangePicker` and `DateTimeRangePicker`. */
492
577
  export declare interface DateRange {
493
578
  from: Date;
494
579
  to: Date;
@@ -532,8 +617,8 @@ export declare interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLSp
532
617
  /** Marks the field as invalid. `FormField` sets it itself as soon as it
533
618
  carries an `error` - by hand only necessary without `FormField`. */
534
619
  invalid?: boolean;
535
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
536
- `ControlSizeProvider` around it, else `md`. */
620
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
621
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
537
622
  size?: "sm" | "md";
538
623
  /** The width in characters - room for the value; the field adds its own
539
624
  padding, glyph and cross. Given, the field is that wide wherever it
@@ -545,12 +630,17 @@ export declare interface DateRangePickerProps extends Omit<HTMLAttributes<HTMLSp
545
630
  clears the value. */
546
631
  clearable?: boolean;
547
632
  /**
548
- * The quick-select column in the panel. Without a value the default presets;
549
- * an empty array hides the column.
633
+ * The quick-select column in the panel. An empty array hides the column.
634
+ *
635
+ * @default `DEFAULT_PRESETS`, in the wording's labels
550
636
  */
551
637
  presets?: RangePreset[];
552
638
  }
553
639
 
640
+ /** A date and a time of day in one field, with a calendar panel. The value is
641
+ an exact instant and is reported only on "Apply", "Now" or "Clear"; the
642
+ missing and doubled hours of a daylight-saving change are asked about, not
643
+ guessed. */
554
644
  export declare const DateTimePicker: ForwardRefExoticComponent<DateTimePickerProps & RefAttributes<HTMLSpanElement>>;
555
645
 
556
646
  /**
@@ -568,14 +658,14 @@ export declare interface DateTimePickerProps extends Omit<HTMLAttributes<HTMLSpa
568
658
  the click on a day: a day without a time would be a half-set value here,
569
659
  and a half value is no value. */
570
660
  onChange: (date: Date | null) => void;
571
- /** Show the seconds field (Default: false). */
661
+ /** Show the seconds field. */
572
662
  withSeconds?: boolean;
573
663
  /** What stands in the empty field. */
574
664
  placeholder?: string;
575
665
  /** Locks the field and the panel. */
576
666
  disabled?: boolean;
577
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
578
- `ControlSizeProvider` around it, else `md`. */
667
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
668
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
579
669
  size?: "sm" | "md";
580
670
  /** The width in characters - room for the value; the field adds its own
581
671
  padding, glyph and cross. Given, the field is that wide wherever it
@@ -627,7 +717,7 @@ export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HT
627
717
  clicks. If the end lies before the start, both swap on applying - there is
628
718
  no error state. */
629
719
  onChange: (range: DateRange | null) => void;
630
- /** Show the seconds fields (Default: false). */
720
+ /** Show the seconds fields. */
631
721
  withSeconds?: boolean;
632
722
  /** What stands in the empty field. */
633
723
  placeholder?: string;
@@ -636,8 +726,8 @@ export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HT
636
726
  /** Marks the field as invalid. `FormField` sets it itself as soon as it
637
727
  carries an `error` - by hand only necessary without `FormField`. */
638
728
  invalid?: boolean;
639
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
640
- `ControlSizeProvider` around it, else `md`. */
729
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
730
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
641
731
  size?: "sm" | "md";
642
732
  /** The width in characters - room for the value; the field adds its own
643
733
  padding, glyph and cross. Given, the field is that wide wherever it
@@ -650,8 +740,9 @@ export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HT
650
740
  clearable?: boolean;
651
741
  /**
652
742
  * The quick-select column in the panel; presets apply for the whole day and
653
- * close immediately. Without a value the default presets; an empty array
654
- * hides the column.
743
+ * close immediately. An empty array hides the column.
744
+ *
745
+ * @default `DEFAULT_PRESETS`, in the wording's labels
655
746
  */
656
747
  presets?: RangePreset[];
657
748
  }
@@ -660,6 +751,8 @@ export declare interface DateTimeRangePickerProps extends Omit<HTMLAttributes<HT
660
751
  (ADR-0024). German is `GERMAN_FORMATS` in `@umriss-ui/core/wording/de`. */
661
752
  export declare const DEFAULT_FORMATS: Formats;
662
753
 
754
+ /** English formats and English wording - what every component uses without a
755
+ `LanguageProvider`. */
663
756
  export declare const DEFAULT_LANGUAGE: Language;
664
757
 
665
758
  /** The same time spans with the preset labels. */
@@ -678,10 +771,14 @@ export declare const DEFAULT_WORDING: Wording;
678
771
  exists only with work package B.13. */
679
772
  export declare type Density = "comfortable" | "compact";
680
773
 
774
+ /** Where the active node moves: up and down the visible rows, in and out of a
775
+ branch, to the first or the last row. */
681
776
  export declare type Direction = "up" | "down" | "in" | "out" | "start" | "end";
682
777
 
778
+ /** A line between rows or columns; with `label` a named separator. */
683
779
  export declare const Divider: ForwardRefExoticComponent<DividerProps & RefAttributes<HTMLDivElement>>;
684
780
 
781
+ /** The props of `Divider`. */
685
782
  export declare interface DividerProps extends HTMLAttributes<HTMLDivElement> {
686
783
  /** Horizontally it separates rows, vertically it separates columns. */
687
784
  orientation?: "horizontal" | "vertical";
@@ -691,11 +788,17 @@ export declare interface DividerProps extends HTMLAttributes<HTMLDivElement> {
691
788
  label?: ReactNode;
692
789
  }
693
790
 
791
+ /** A strip of tools that lies at an edge of one surface and carries the
792
+ actions for it. It moves to another edge by pointer or keyboard and reports
793
+ the place through `onPlaceChange`; at a side edge it stands upright, where
794
+ there is room. */
694
795
  export declare const Dock: ForwardRefExoticComponent<DockProps & RefAttributes<HTMLDivElement>>;
695
796
 
696
- /** The outside of the resting place. */
697
- export declare type DockPlace = Place;
797
+ /** The outside of the resting place: one of the four edges of the host.
798
+ There is no fifth and no corner. */
799
+ export declare type DockPlace = "top" | "right" | "bottom" | "left";
698
800
 
801
+ /** The props of `Dock`. */
699
802
  export declare interface DockProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect"> {
700
803
  /**
701
804
  * The tools - a property and expressly not children.
@@ -729,7 +832,8 @@ export declare interface DockProps extends Omit<HTMLAttributes<HTMLDivElement>,
729
832
  onModeChange?: (id: string) => void;
730
833
  /** A tool was taken. */
731
834
  onUse?: (id: string) => void;
732
- /** The accessible name of the dock. Without a value the wording entry. */
835
+ /** The accessible name of the dock.
836
+ @default the wording's "Tools" */
733
837
  label?: string;
734
838
  }
735
839
 
@@ -750,10 +854,14 @@ export declare interface DockTool {
750
854
  disabled?: boolean;
751
855
  }
752
856
 
857
+ /** A `Modal` that stands at an edge of the window and enters from it - the
858
+ same dialog with the same head, body and foot. Its width is the token
859
+ `--u-drawer-width`. */
753
860
  export declare const Drawer: ForwardRefExoticComponent<DrawerProps & RefAttributes<HTMLDialogElement>>;
754
861
 
862
+ /** The props of `Drawer`: a `Modal`'s, with `side` in place of `size`. */
755
863
  export declare interface DrawerProps extends Omit<ModalProps, "size"> {
756
- /** The edge the drawer stands at and enters from. Default: `right` */
864
+ /** The edge the drawer stands at and enters from. */
757
865
  side?: "right" | "left";
758
866
  }
759
867
 
@@ -765,6 +873,8 @@ export declare function duplicateKey<K, S extends Key = string>(roots: readonly
765
873
  /** An empty surface as an invitation to act - not as a dead end. */
766
874
  export declare const EmptyState: ForwardRefExoticComponent<EmptyStateProps & RefAttributes<HTMLDivElement>>;
767
875
 
876
+ /** The props of `EmptyState`: a div's attributes, with `title` taking a node
877
+ instead of the HTML attribute. */
768
878
  export declare interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
769
879
  /** What is missing here - as a statement, not as an apology. */
770
880
  title: ReactNode;
@@ -776,10 +886,15 @@ export declare interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElem
776
886
  icon?: ReactNode;
777
887
  }
778
888
 
889
+ /** Opens a branch. Returns the same snapshot where it is open already. */
779
890
  export declare function expand<S extends Key>(snapshot: TreeSnapshot<S>, key: S): TreeSnapshot<S>;
780
891
 
892
+ /** A file field with a drop zone: choose or drop files, and remove them from
893
+ the list again. Nothing is uploaded - that is the application's. */
781
894
  export declare const FileInput: ForwardRefExoticComponent<FileInputProps & RefAttributes<HTMLInputElement>>;
782
895
 
896
+ /** The props of `FileInput`: a native file input's attributes, with the files
897
+ as the value. */
783
898
  export declare interface FileInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "defaultValue" | "onChange" | "size"> {
784
899
  /** Controlled: the chosen files. Uncontrolled, the input keeps its own and
785
900
  starts empty. */
@@ -792,6 +907,9 @@ export declare interface FileInputProps extends Omit<InputHTMLAttributes<HTMLInp
792
907
  invalid?: boolean;
793
908
  }
794
909
 
910
+ /** One visible node of a tree, with everything a row needs to be drawn and
911
+ read out: level, branch or leaf, check state, search state and position
912
+ among its siblings. */
795
913
  export declare interface FlatteningEntry<K, S extends Key = string> {
796
914
  node: K;
797
915
  key: S;
@@ -850,8 +968,8 @@ export declare interface Formats {
850
968
  number: (n: number, decimals?: number) => string;
851
969
  /**
852
970
  * A count. Kept apart from `number` because it makes a different promise: a
853
- * count is whole, and Intl's default (at most three decimal places) is right
854
- * for it and wrong for a measurement.
971
+ * count is whole, and Intl's own rounding (at most three decimal places) is
972
+ * right for it and wrong for a measurement.
855
973
  */
856
974
  count: (n: number) => string;
857
975
  /** A share from 0 to 1 as whole per cent: 74 % */
@@ -863,6 +981,9 @@ export declare interface Formats {
863
981
  relative: (ms: number) => string;
864
982
  }
865
983
 
984
+ /** A label, a hint or error and the control they belong to. The control
985
+ inside takes the field's id, description, required and invalid state by
986
+ itself - no wiring by hand. */
866
987
  export declare const FormField: ForwardRefExoticComponent<FormFieldProps & RefAttributes<HTMLDivElement>>;
867
988
 
868
989
  /**
@@ -886,6 +1007,7 @@ declare interface FormFieldContextValue {
886
1007
  required: boolean;
887
1008
  }
888
1009
 
1010
+ /** The props of `FormField`. */
889
1011
  export declare interface FormFieldProps extends HTMLAttributes<HTMLDivElement> {
890
1012
  /** The label of the field. It is mandatory: a field without a name is a
891
1013
  field without a question for a screen reader. */
@@ -939,6 +1061,8 @@ export declare interface FreshnessAges {
939
1061
  lost: number;
940
1062
  }
941
1063
 
1064
+ /** What `useFreshness` returns: how fresh the value is, how old, and the time
1065
+ the reading was taken at. */
942
1066
  export declare interface FreshnessReading {
943
1067
  /** `fresh`, `stale` or `lost` - never a verdict. */
944
1068
  freshness: Freshness;
@@ -948,6 +1072,7 @@ export declare interface FreshnessReading {
948
1072
  now: number;
949
1073
  }
950
1074
 
1075
+ /** The props of a glyph: an SVG's attributes and its edge length. */
951
1076
  export declare interface GlyphProps extends Omit<SVGProps<SVGSVGElement>, "viewBox" | "children"> {
952
1077
  /**
953
1078
  * Edge length in pixels. The default is the size the glyph is already drawn
@@ -956,12 +1081,15 @@ export declare interface GlyphProps extends Omit<SVGProps<SVGSVGElement>, "viewB
956
1081
  size?: number;
957
1082
  }
958
1083
 
1084
+ /** Children in a grid: a fixed number of columns, or as many as fit at
1085
+ `minItemWidth`. */
959
1086
  export declare const Grid: ForwardRefExoticComponent<GridProps & RefAttributes<HTMLDivElement>>;
960
1087
 
961
1088
  /** The grid laid over an area. Two by two lines; the frame is missing on
962
1089
  purpose, otherwise it would be a window. */
963
1090
  export declare const GridGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
964
1091
 
1092
+ /** The props of `Grid`. */
965
1093
  export declare interface GridProps extends HTMLAttributes<HTMLDivElement> {
966
1094
  /** Fixed column count; overridden by minItemWidth. */
967
1095
  columns?: number;
@@ -983,14 +1111,18 @@ export declare interface GridProps extends HTMLAttributes<HTMLDivElement> {
983
1111
  the change. */
984
1112
  export declare const GripGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
985
1113
 
1114
+ /** A heading whose level and size are independent: a small heading can still
1115
+ be the second level of the page. */
986
1116
  export declare const Heading: ForwardRefExoticComponent<HeadingProps & RefAttributes<HTMLHeadingElement>>;
987
1117
 
1118
+ /** The props of `Heading`. */
988
1119
  export declare interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
989
- /** The page's outline level (h1–h6). Default 2. */
1120
+ /** The page's outline level (h1–h6). */
990
1121
  level?: 1 | 2 | 3 | 4 | 5 | 6;
991
- /** Optical size; independent of the level. Default matching the level. */
1122
+ /** Optical size; independent of the level.
1123
+ @default the size matching the level */
992
1124
  size?: TextSize;
993
- /** Font weight from the token set. Default `semibold`. */
1125
+ /** Font weight from the token set. */
994
1126
  weight?: TextWeight;
995
1127
  /** How loud the heading is. */
996
1128
  tone?: TextTone;
@@ -1000,6 +1132,8 @@ export declare interface HeadingProps extends HTMLAttributes<HTMLHeadingElement>
1000
1132
  that name shown as a tooltip. Everything else is a `Button`'s. */
1001
1133
  export declare const IconButton: ForwardRefExoticComponent<IconButtonProps & RefAttributes<HTMLButtonElement>>;
1002
1134
 
1135
+ /** The props of `IconButton`: a `Button`'s, with a required `aria-label` and
1136
+ the icon as its only child. */
1003
1137
  export declare interface IconButtonProps extends Omit<ButtonProps, "aria-label" | "aria-labelledby" | "title" | "children"> {
1004
1138
  /** The name: what a screen reader announces and the tooltip shows. Required -
1005
1139
  an icon alone names nothing. */
@@ -1008,15 +1142,20 @@ export declare interface IconButtonProps extends Omit<ButtonProps, "aria-label"
1008
1142
  button sets its size - `--u-icon-size`, `--u-icon-size-sm` at `sm`. */
1009
1143
  children: ReactNode;
1010
1144
  /** How loud the button is; `plain` is quiet and neutral, and the rest mean
1011
- what they mean on a `Button`. Default: `plain` */
1145
+ what they mean on a `Button`. */
1012
1146
  variant?: ButtonVariant;
1013
1147
  }
1014
1148
 
1149
+ /** A one-line text field. `chars` sets its width in characters, `numeric`
1150
+ sets figures right-aligned and tabular, `clearable` offers a cross. Inside
1151
+ a `FormField` it takes the field's id, description and invalid state. */
1015
1152
  export declare const Input: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
1016
1153
 
1154
+ /** The props of `Input`: a native input's attributes, with `size` meaning the
1155
+ control's height. */
1017
1156
  export declare interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
1018
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
1019
- `ControlSizeProvider` around it, else `md`. */
1157
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
1158
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
1020
1159
  size?: "sm" | "md";
1021
1160
  /** The width in characters - room for the value; the field adds its own
1022
1161
  padding and cross. Given, the field is that wide wherever it stands, and
@@ -1041,6 +1180,7 @@ export declare interface InputProps extends Omit<InputHTMLAttributes<HTMLInputEl
1041
1180
  /** What may come in as an as-of time or a reference time. */
1042
1181
  declare type Instant = Date | number | null | undefined;
1043
1182
 
1183
+ /** A node's key, as `reader.key` returns it. */
1044
1184
  export declare type Key = string | number;
1045
1185
 
1046
1186
  /** The checkable keys between two visible nodes, both ends included and
@@ -1048,6 +1188,7 @@ export declare type Key = string | number;
1048
1188
  gesture does what it can instead of nothing. */
1049
1189
  export declare function keysBetween<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], from: S, to: S): S[];
1050
1190
 
1191
+ /** A complete language: the formats for numbers and dates, and the wording. */
1051
1192
  export declare interface Language {
1052
1193
  formats: Formats;
1053
1194
  wording: Wording;
@@ -1072,6 +1213,8 @@ export declare interface LanguageOptions {
1072
1213
  */
1073
1214
  export declare function LanguageProvider({ formats, wording, children }: LanguageProviderProps): JSX.Element;
1074
1215
 
1216
+ /** The props of `LanguageProvider`: the parts of the formats and the wording
1217
+ that differ from the default. */
1075
1218
  export declare interface LanguageProviderProps extends LanguageOptions {
1076
1219
  children: ReactNode;
1077
1220
  }
@@ -1099,8 +1242,11 @@ export declare interface LimitSet {
1099
1242
  target?: number;
1100
1243
  }
1101
1244
 
1245
+ /** A link in the size of its text; `external` opens it in a new tab with the
1246
+ protective attributes set. */
1102
1247
  export declare const Link: ForwardRefExoticComponent<LinkProps & RefAttributes<HTMLAnchorElement>>;
1103
1248
 
1249
+ /** The props of `Link`. */
1104
1250
  export declare interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
1105
1251
  /** Size from the token set – a link has to match its body text. */
1106
1252
  size?: TextSize;
@@ -1112,10 +1258,17 @@ export declare interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElemen
1112
1258
  would be a grey stripe at ten nominal units. */
1113
1259
  export declare const MeasureGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
1114
1260
 
1261
+ /** A dropdown menu: `trigger` opens a panel of `MenuItem`s below it. The arrow
1262
+ keys, Home and End move between the entries; Escape and an outside click
1263
+ close it. */
1115
1264
  export declare function Menu({ trigger, children, align }: MenuProps): JSX.Element;
1116
1265
 
1266
+ /** An entry of a `Menu` or a `ContextMenu`. It runs `onSelect` and closes the
1267
+ menu. */
1117
1268
  export declare const MenuItem: ForwardRefExoticComponent<MenuItemProps & RefAttributes<HTMLButtonElement>>;
1118
1269
 
1270
+ /** The props of `MenuItem`: a button's attributes, with `onSelect` for what
1271
+ the entry does. */
1119
1272
  export declare interface MenuItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onSelect"> {
1120
1273
  /** What the entry does. The menu closes afterwards by itself: a menu that
1121
1274
  stays open after something has happened hides the result. */
@@ -1124,6 +1277,7 @@ export declare interface MenuItemProps extends Omit<ButtonHTMLAttributes<HTMLBut
1124
1277
  tone?: "default" | "danger";
1125
1278
  }
1126
1279
 
1280
+ /** The props of `Menu`. */
1127
1281
  export declare interface MenuProps {
1128
1282
  /** Trigger, e.g. a <Button>; must accept refs. Its own ref keeps its
1129
1283
  element: the menu holds the same one beside it. */
@@ -1143,6 +1297,7 @@ export declare function mergeLanguage(optionen: LanguageOptions | undefined): La
1143
1297
  /** A narrow fill-level bar, e.g. for utilisation in table cells. */
1144
1298
  export declare const Meter: ForwardRefExoticComponent<MeterProps & RefAttributes<HTMLSpanElement>>;
1145
1299
 
1300
+ /** The props of `Meter`. */
1146
1301
  export declare interface MeterProps extends HTMLAttributes<HTMLSpanElement> {
1147
1302
  /** Fill level from 0 to 1. */
1148
1303
  value: number;
@@ -1157,24 +1312,39 @@ export declare interface MeterProps extends HTMLAttributes<HTMLSpanElement> {
1157
1312
  *
1158
1313
  * A role of `meter` needs a name from the author - the visible percentage
1159
1314
  * inside it does not count for that, and neither does the column heading
1160
- * beside it. Without a value the general term stands here; whoever knows
1161
- * what the bar measures says it better.
1315
+ * beside it. Whoever knows what the bar measures says it better than the
1316
+ * general term.
1317
+ *
1318
+ * @default the wording's "Fill level"
1162
1319
  */
1163
1320
  label?: string;
1164
1321
  }
1165
1322
 
1323
+ /** The colour of a meter's bar - an assessment, never the only statement. */
1166
1324
  export declare type MeterTone = "neutral" | "accent" | "success" | "warning" | "danger";
1167
1325
 
1326
+ /** The minus of `NumberInput`'s step buttons. */
1168
1327
  export declare const MinusGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
1169
1328
 
1329
+ /** A dialog window in the middle of the screen, on the native `<dialog>`:
1330
+ focus trap, Escape and scroll lock come from the browser. Controlled through
1331
+ `open` and `onClose`; inside it stand `ModalHeader`, `ModalBody` and
1332
+ `ModalFooter`. */
1170
1333
  export declare const Modal: ForwardRefExoticComponent<ModalProps & RefAttributes<HTMLDialogElement>>;
1171
1334
 
1335
+ /** The content of a `Modal` or `Drawer` - the part that scrolls while head and
1336
+ foot stand fast. */
1172
1337
  export declare const ModalBody: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
1173
1338
 
1339
+ /** The foot of a `Modal` or `Drawer`, for its buttons; they stand at the end. */
1174
1340
  export declare const ModalFooter: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
1175
1341
 
1342
+ /** The head of a `Modal` or `Drawer`: its title, which names the dialog for a
1343
+ screen reader, an optional sentence below it, and the close cross. */
1176
1344
  export declare const ModalHeader: ForwardRefExoticComponent<ModalHeaderProps & RefAttributes<HTMLDivElement>>;
1177
1345
 
1346
+ /** The props of `ModalHeader`: a div's attributes, with `title` taking a node
1347
+ instead of the HTML attribute. */
1178
1348
  export declare interface ModalHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
1179
1349
  /** The heading of the window. It names it for the screen reader at the same
1180
1350
  time – a dialog without a name says only "dialog". */
@@ -1185,6 +1355,8 @@ export declare interface ModalHeaderProps extends Omit<HTMLAttributes<HTMLDivEle
1185
1355
  hideClose?: boolean;
1186
1356
  }
1187
1357
 
1358
+ /** The props of `Modal`: a native dialog's attributes, controlled through
1359
+ `open` and `onClose`. */
1188
1360
  export declare interface ModalProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, "onClose"> {
1189
1361
  /** Whether the window stands. Controlled: the opening is the caller's
1190
1362
  decision, and only the caller knows whether something may be open. */
@@ -1194,10 +1366,11 @@ export declare interface ModalProps extends Omit<DialogHTMLAttributes<HTMLDialog
1194
1366
  /** The width of the window. The height comes from the content; only the
1195
1367
  body scrolls, header and footer stand fast. */
1196
1368
  size?: ModalSize;
1197
- /** Closes on a click on the backdrop. Default: true. */
1369
+ /** Closes on a click on the backdrop. */
1198
1370
  closeOnBackdrop?: boolean;
1199
1371
  }
1200
1372
 
1373
+ /** The width of a `Modal`. */
1201
1374
  export declare type ModalSize = "sm" | "md" | "lg";
1202
1375
 
1203
1376
  /**
@@ -1227,6 +1400,7 @@ export declare const MultiSelect: <T extends string = string>(props: MultiSelect
1227
1400
  ref?: ForwardedRef<HTMLDivElement>;
1228
1401
  }) => ReactElement;
1229
1402
 
1403
+ /** One possibility of a `MultiSelect`: the value it stands for and its label. */
1230
1404
  export declare interface MultiSelectOption<T extends string = string> {
1231
1405
  /** What stands in `value` when this row is ticked. */
1232
1406
  value: T;
@@ -1237,6 +1411,7 @@ export declare interface MultiSelectOption<T extends string = string> {
1237
1411
  disabled?: boolean;
1238
1412
  }
1239
1413
 
1414
+ /** The props of `MultiSelect`. */
1240
1415
  export declare interface MultiSelectProps<T extends string = string> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
1241
1416
  /** The possibilities, in their natural order. The list never re-sorts –
1242
1417
  not even in the "selected" scope. */
@@ -1252,8 +1427,8 @@ export declare interface MultiSelectProps<T extends string = string> extends Omi
1252
1427
  searchPlaceholder?: string;
1253
1428
  /** Text when the search finds nothing. */
1254
1429
  emptyText?: string;
1255
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
1256
- `ControlSizeProvider` around it, else `md`. */
1430
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
1431
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
1257
1432
  size?: "sm" | "md";
1258
1433
  /** The width in characters - room for the chips; the field adds its own
1259
1434
  padding and chevron. Given, the field is that wide wherever it stands,
@@ -1309,6 +1484,8 @@ export declare interface NodeReader<K, S extends Key = string> {
1309
1484
  */
1310
1485
  export declare const NumberInput: ForwardRefExoticComponent<NumberInputProps & RefAttributes<HTMLInputElement>>;
1311
1486
 
1487
+ /** The props of `NumberInput`: a native input's attributes, with the value a
1488
+ number or `null`. */
1312
1489
  export declare interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "size" | "prefix" | "type"> {
1313
1490
  /** The number, or `null` for "not stated". An empty field is not zero:
1314
1491
  a quantity that was not measured is not a quantity of zero. */
@@ -1325,7 +1502,7 @@ export declare interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLI
1325
1502
  /** Upper bound. Every reported value is clamped; the text in the field
1326
1503
  follows on leaving. */
1327
1504
  max?: number;
1328
- /** Step size for the arrow keys; Shift multiplies it by ten. Default: 1. */
1505
+ /** Step size for the arrow keys; Shift multiplies it by ten. */
1329
1506
  step?: number;
1330
1507
  /** Fixed decimal places; 0 = whole numbers, undefined = free. */
1331
1508
  decimals?: number;
@@ -1333,8 +1510,8 @@ export declare interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLI
1333
1510
  prefix?: ReactNode;
1334
1511
  /** Adornment after the number, e.g. "€" or "%". */
1335
1512
  suffix?: ReactNode;
1336
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
1337
- `ControlSizeProvider` around it, else `md`. */
1513
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
1514
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
1338
1515
  size?: "sm" | "md";
1339
1516
  /** The width in characters - room for the number; the field adds its own
1340
1517
  padding and steppers, and the room for a `prefix` and `suffix` given as
@@ -1351,9 +1528,7 @@ export declare interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLI
1351
1528
  the key does not exist in the data. */
1352
1529
  export declare function pathTo<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, key: S): S[] | null;
1353
1530
 
1354
- /** One of the four edges of the host. There is no fifth and no corner. */
1355
- declare type Place = "top" | "right" | "bottom" | "left";
1356
-
1531
+ /** The plus of `NumberInput`'s step buttons. */
1357
1532
  export declare const PlusGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"> & RefAttributes<SVGSVGElement>>;
1358
1533
 
1359
1534
  /**
@@ -1374,6 +1549,7 @@ export declare const PlusGlyph: ForwardRefExoticComponent<Omit<GlyphProps, "ref"
1374
1549
  */
1375
1550
  export declare function Popover({ open, onOpenChange, anchorRef, focusRef, insideRefs, align, offset, width, minWidth, restoreFocus, hideOnScroll, role, ariaLabel, id, className, children, }: PopoverProps): ReactPortal | null;
1376
1551
 
1552
+ /** The props of `Popover`. */
1377
1553
  export declare interface PopoverProps {
1378
1554
  /** Whether the surface stands. Controlled: the popover never opens itself. */
1379
1555
  open: boolean;
@@ -1383,9 +1559,10 @@ export declare interface PopoverProps {
1383
1559
  /** Trigger the panel hangs from (the reference for the position). */
1384
1560
  anchorRef: RefObject<HTMLElement | null>;
1385
1561
  /**
1386
- * Element that receives the focus on closing. Default: the anchor.
1387
- * Needed where the anchor is a non-focusable shell and the actual
1388
- * trigger sits inside it.
1562
+ * Element that receives the focus on closing. Needed where the anchor is
1563
+ * a non-focusable shell and the actual trigger sits inside it.
1564
+ *
1565
+ * @default anchorRef
1389
1566
  */
1390
1567
  focusRef?: RefObject<HTMLElement | null>;
1391
1568
  /** Further elements whose click does not count as an outside click (e.g. the clear ×). */
@@ -1425,15 +1602,20 @@ export declare interface PopoverProps {
1425
1602
  */
1426
1603
  export declare type PortalTarget = HTMLElement | (() => HTMLElement | null) | null;
1427
1604
 
1605
+ /** How far a task has come, from 0 to 1 - or, without a value, that it runs.
1606
+ It has no tone: a measured value judged against limits is a `Meter`. */
1428
1607
  export declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps & RefAttributes<HTMLDivElement>>;
1429
1608
 
1609
+ /** The props of `ProgressBar`. */
1430
1610
  export declare interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
1431
1611
  /** How far the task has come, from 0 to 1. Left out, the bar is
1432
1612
  indeterminate: the task runs, and nobody knows how far it is. */
1433
1613
  value?: number;
1434
1614
  /**
1435
1615
  * What is progressing, e.g. "Import of the invoice records". A progress bar
1436
- * needs a name from the author; without one the general term stands here.
1616
+ * needs a name from the author.
1617
+ *
1618
+ * @default the wording's "Progress"
1437
1619
  */
1438
1620
  label?: string;
1439
1621
  /** What a screen reader says instead of the percentage, where a count says
@@ -1444,10 +1626,14 @@ export declare interface ProgressBarProps extends HTMLAttributes<HTMLDivElement>
1444
1626
  showLabel?: boolean;
1445
1627
  }
1446
1628
 
1629
+ /** One choice out of a few possibilities, all of them visible. Controlled
1630
+ through `value` and `onChange`, or uncontrolled from `defaultValue`; the
1631
+ arrow keys move between the possibilities. */
1447
1632
  export declare const RadioGroup: <T extends string>(props: RadioGroupProps<T> & {
1448
1633
  ref?: React.ForwardedRef<HTMLDivElement>;
1449
1634
  }) => React.ReactElement;
1450
1635
 
1636
+ /** The props of `RadioGroup`. */
1451
1637
  export declare interface RadioGroupProps<T extends string> extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
1452
1638
  /** The possibilities, in the order in which they are meant to stand. */
1453
1639
  options: readonly RadioOption<T>[];
@@ -1458,18 +1644,21 @@ export declare interface RadioGroupProps<T extends string> extends Omit<HTMLAttr
1458
1644
  defaultValue?: T | null;
1459
1645
  /** Runs on every choice – on the one made with the arrow keys as well. */
1460
1646
  onChange?: (value: T) => void;
1461
- /** Arrangement; Default one below the other. */
1647
+ /** Arrangement: one below the other, or side by side. */
1462
1648
  orientation?: "vertical" | "horizontal";
1463
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
1464
- `ControlSizeProvider` around it, else `md`. */
1649
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
1650
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
1465
1651
  size?: "sm" | "md";
1466
1652
  /** Disables the whole group. `RadioOption` disables single
1467
1653
  possibilities. */
1468
1654
  disabled?: boolean;
1469
- /** Name of the radio group within the form; otherwise automatic. */
1655
+ /** Name of the radio group within the form.
1656
+ @default a generated one */
1470
1657
  name?: string;
1471
1658
  }
1472
1659
 
1660
+ /** One possibility of a `RadioGroup`: its value, its label and an optional
1661
+ line of explanation. */
1473
1662
  export declare interface RadioOption<T extends string> {
1474
1663
  /** What comes back when this possibility is chosen. */
1475
1664
  value: T;
@@ -1490,6 +1679,9 @@ export declare interface RadioOption<T extends string> {
1490
1679
  */
1491
1680
  export declare const rangeDays: (from: Date, to: Date) => number;
1492
1681
 
1682
+ /** A shortcut in a range picker's panel: its label, and a function that
1683
+ computes the range when it is chosen - so that "Last 7 days" is counted from
1684
+ the moment of the click. */
1493
1685
  export declare interface RangePreset {
1494
1686
  label: string;
1495
1687
  range: () => DateRange;
@@ -1522,6 +1714,7 @@ export declare function revealPath<K, S extends Key = string>(roots: readonly K[
1522
1714
  reached: S | null;
1523
1715
  };
1524
1716
 
1717
+ /** What `scrollForRow` needs to know about a scroll area. */
1525
1718
  export declare interface RowPlacement {
1526
1719
  rowHeight: number;
1527
1720
  scrollTop: number;
@@ -1530,6 +1723,8 @@ export declare interface RowPlacement {
1530
1723
  headerHeight?: number;
1531
1724
  }
1532
1725
 
1726
+ /** The rows to render - `from` up to, not including, `to` - and the heights
1727
+ of the filler rows that stand for the rest. */
1533
1728
  export declare interface RowWindow {
1534
1729
  /** First rendered index. */
1535
1730
  from: number;
@@ -1554,15 +1749,18 @@ export declare interface RowWindow {
1554
1749
  export declare function scrollForRow(index: number, { rowHeight, scrollTop, viewportHeight, headerHeight }: RowPlacement): number | null;
1555
1750
 
1556
1751
  /**
1557
- * Native select with the library's looks – maximum accessibility without
1558
- * building one ourselves. The arrow is drawn in CSS and therefore follows the
1559
- * theme tokens.
1752
+ * The select field. The `<select>` holds the value, the form and the keys;
1753
+ * under a mouse, a pen and the keyboard it opens the library's own list - the
1754
+ * Combobox's - and under a finger the system's picker (ADR-0043). The arrow is
1755
+ * drawn in CSS and therefore follows the theme tokens.
1560
1756
  */
1561
1757
  export declare const Select: ForwardRefExoticComponent<SelectProps & RefAttributes<HTMLSelectElement>>;
1562
1758
 
1759
+ /** The props of `Select`: a native select's attributes, with `size` meaning
1760
+ the control's height. */
1563
1761
  export declare interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "size"> {
1564
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
1565
- `ControlSizeProvider` around it, else `md`. */
1762
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
1763
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
1566
1764
  size?: "sm" | "md";
1567
1765
  /** The width in characters - room for the chosen option; the field adds
1568
1766
  its own padding, chevron and cross. Given, the field is that wide
@@ -1602,8 +1800,12 @@ export declare interface Separators {
1602
1800
  punctuation. */
1603
1801
  export declare function separatorsOf(formats: Formats): Separators;
1604
1802
 
1803
+ /** Sets the active node; `null` for none. Returns the same snapshot where
1804
+ nothing changes. */
1605
1805
  export declare function setActive<S extends Key>(snapshot: TreeSnapshot<S>, key: S | null): TreeSnapshot<S>;
1606
1806
 
1807
+ /** Sets the node a range selection spans from; `null` for none. Returns the
1808
+ same snapshot where nothing changes. */
1607
1809
  export declare function setAnchor<S extends Key>(snapshot: TreeSnapshot<S>, key: S | null): TreeSnapshot<S>;
1608
1810
 
1609
1811
  /**
@@ -1629,15 +1831,20 @@ export declare type Side = "upper" | "lower";
1629
1831
  /** Loading placeholder with a restrained pulse; respects prefers-reduced-motion. */
1630
1832
  export declare const Skeleton: ForwardRefExoticComponent<SkeletonProps & RefAttributes<HTMLSpanElement>>;
1631
1833
 
1834
+ /** The props of `Skeleton`. */
1632
1835
  export declare interface SkeletonProps extends HTMLAttributes<HTMLSpanElement> {
1633
- /** Width, e.g. "120px" or "60%". Default: 100 %. */
1836
+ /** Width, e.g. "120px" or "60%".
1837
+ @default "100%" */
1634
1838
  width?: string | number;
1635
- /** Height, default: 12px. */
1839
+ /** Height, e.g. "12px" or 16.
1840
+ @default "12px" */
1636
1841
  height?: string | number;
1637
1842
  /** Circular shape, e.g. for an avatar placeholder. */
1638
1843
  circle?: boolean;
1639
1844
  }
1640
1845
 
1846
+ /** One value on a track between `min` and `max`, on the native range input;
1847
+ `marks` set labelled points on the track. */
1641
1848
  export declare const Slider: ForwardRefExoticComponent<SliderProps & RefAttributes<HTMLInputElement>>;
1642
1849
 
1643
1850
  /** A mark on the track: a value, or a value with the word beneath it. */
@@ -1646,43 +1853,49 @@ export declare type SliderMark = number | {
1646
1853
  label?: ReactNode;
1647
1854
  };
1648
1855
 
1856
+ /** The props of `Slider`. */
1649
1857
  export declare interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "defaultValue" | "onChange" | "min" | "max" | "step"> {
1650
1858
  /** Controlled: the value. */
1651
1859
  value?: number;
1652
- /** Uncontrolled: the value to start at. Default: `min`. */
1860
+ /** Uncontrolled: the value to start at.
1861
+ @default min */
1653
1862
  defaultValue?: number;
1654
1863
  /** Reports every change, by pointer or key, as a number on the step. */
1655
1864
  onChange?: (value: number) => void;
1656
- /** Default: 0 */
1865
+ /** The smallest value. */
1657
1866
  min?: number;
1658
- /** Default: 100 */
1867
+ /** The largest value. */
1659
1868
  max?: number;
1660
- /** Default: 1 */
1869
+ /** The step the value moves by, by pointer or key. */
1661
1870
  step?: number;
1662
1871
  /** Values marked on the track; an object with a `label` writes the word
1663
1872
  beneath its mark. A mark shows a value, it does not catch the thumb. */
1664
1873
  marks?: readonly SliderMark[];
1665
1874
  /** The value as text: for the readout and for the screen reader
1666
- (`aria-valuetext`). Default: the number in the formats' notation, with
1667
- as many decimals as the step has. */
1875
+ (`aria-valuetext`).
1876
+ @default the number in the formats' notation, with as many decimals as
1877
+ the step has */
1668
1878
  format?: (value: number) => string;
1669
- /** The value in mono beside the track. Default: true */
1879
+ /** The value in mono beside the track. */
1670
1880
  showValue?: boolean;
1671
1881
  }
1672
1882
 
1883
+ /** A step of the spacing scale, from 1 (4 px) to 8 (40 px) - the tokens
1884
+ `--u-space-1` to `--u-space-8`. */
1673
1885
  export declare type SpaceStep = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
1674
1886
 
1675
1887
  /** A miniature trend line for table cells; the end point carries the accent. */
1676
1888
  export declare const Sparkline: ForwardRefExoticComponent<SparklineProps & RefAttributes<HTMLSpanElement>>;
1677
1889
 
1890
+ /** The props of `Sparkline`. */
1678
1891
  export declare interface SparklineProps extends HTMLAttributes<HTMLSpanElement> {
1679
1892
  /** Values in chronological order; at least two. */
1680
1893
  data: readonly number[];
1681
- /** Width in pixels. Default 96 - a row width, not a chart width. `"fill"`
1894
+ /** Width in pixels; the default is a row width, not a chart width. `"fill"`
1682
1895
  takes the width of its container, as a tile's history does; the line
1683
1896
  keeps its stroke and the end point stays round. */
1684
1897
  width?: number | "fill";
1685
- /** Height in pixels. Default 28 - as high as a table row. With `width`
1898
+ /** Height in pixels; the default is as high as a table row. With `width`
1686
1899
  `"fill"` a stylesheet may set the height instead: the drawing follows
1687
1900
  its box. */
1688
1901
  height?: number;
@@ -1694,13 +1907,19 @@ export declare interface SparklineProps extends HTMLAttributes<HTMLSpanElement>
1694
1907
  /** Restrained loading indicator; inherits the text colour of its context. */
1695
1908
  export declare const Spinner: ForwardRefExoticComponent<SpinnerProps & RefAttributes<SVGSVGElement>>;
1696
1909
 
1910
+ /** The props of `Spinner`. */
1697
1911
  export declare interface SpinnerProps extends SVGAttributes<SVGSVGElement> {
1698
1912
  /** Edge length in pixels. */
1699
1913
  size?: number;
1700
1914
  }
1701
1915
 
1916
+ /** A main action with a menu of its variants: the button on the left runs
1917
+ `onClick`, the arrow on the right opens `menu`. The ref goes to the main
1918
+ button. */
1702
1919
  export declare const SplitButton: ForwardRefExoticComponent<SplitButtonProps & RefAttributes<HTMLButtonElement>>;
1703
1920
 
1921
+ /** The props of `SplitButton`: a `Button`'s for the main action, plus the
1922
+ menu's entries. */
1704
1923
  export declare interface SplitButtonProps extends Omit<ButtonProps, "children" | "size" | "variant"> {
1705
1924
  /** Label of the main action. */
1706
1925
  children: ReactNode;
@@ -1710,46 +1929,52 @@ export declare interface SplitButtonProps extends Omit<ButtonProps, "children" |
1710
1929
  menu: ReactNode;
1711
1930
  /** How loud the main action is; the trigger beside it follows suit. */
1712
1931
  variant?: ButtonVariant;
1713
- /** `sm` for buttons in header bars and table rows, `md` otherwise. Default:
1714
- the size around it, else `md`. */
1932
+ /** `sm` for buttons in header bars and table rows, `md` otherwise.
1933
+ @default the size around it, else `"md"` */
1715
1934
  size?: ButtonSize;
1716
- /** Label of the trigger; default "More actions". */
1935
+ /** Label of the trigger.
1936
+ @default the wording's "More actions" */
1717
1937
  menuLabel?: string;
1718
1938
  /** Alignment of the menu relative to the trigger. */
1719
1939
  align?: "start" | "end";
1720
1940
  }
1721
1941
 
1942
+ /** Two panes and the line between them. The line can be dragged, moved with
1943
+ the arrow keys, and Enter collapses the first pane and brings it back. */
1722
1944
  export declare const Splitter: ForwardRefExoticComponent<SplitterProps & RefAttributes<HTMLDivElement>>;
1723
1945
 
1946
+ /** The props of `Splitter`. */
1724
1947
  export declare interface SplitterProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | "children"> {
1725
1948
  /** How the two panes stand: `horizontal` side by side, `vertical` one
1726
- above the other - a trend above, its alarms below. Default: `horizontal` */
1949
+ above the other - a trend above, its alarms below. */
1727
1950
  orientation?: "horizontal" | "vertical";
1728
1951
  /** Controlled: the first pane's share of the room, in per cent. */
1729
1952
  value?: number;
1730
- /** Uncontrolled: the share to start at. Default: 50 */
1953
+ /** Uncontrolled: the share to start at. */
1731
1954
  defaultValue?: number;
1732
1955
  /** Reports every move, by pointer or key, as the first pane's share. */
1733
1956
  onChange?: (value: number) => void;
1734
- /** The smallest share of the first pane, and where Enter collapses it to.
1735
- Default: 0 */
1957
+ /** The smallest share of the first pane, and where Enter collapses it to. */
1736
1958
  min?: number;
1737
- /** The largest share of the first pane. Default: 100 */
1959
+ /** The largest share of the first pane. */
1738
1960
  max?: number;
1739
- /** How far an arrow key moves the separator, in per cent. Default: 5 */
1961
+ /** How far an arrow key moves the separator, in per cent. */
1740
1962
  step?: number;
1741
- /** The separator's name. The APG names it after the first pane ("Trend");
1742
- without it the general term from the wording stands. */
1963
+ /** The separator's name. The APG names it after the first pane ("Trend").
1964
+ @default the wording's "Resize the panes" */
1743
1965
  separatorLabel?: string;
1744
1966
  /** The first pane and the second, in this order. */
1745
1967
  children: [ReactNode, ReactNode];
1746
1968
  }
1747
1969
 
1970
+ /** Children below or beside one another, spaced by a step of the spacing
1971
+ scale. */
1748
1972
  export declare const Stack: ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>>;
1749
1973
 
1974
+ /** The props of `Stack`. */
1750
1975
  export declare interface StackProps extends HTMLAttributes<HTMLDivElement> {
1751
- /** Below one another or beside one another. Default is below one another:
1752
- that is the direction content stands in anyway, without being asked. */
1976
+ /** Below one another or beside one another. Below is the direction content
1977
+ stands in anyway, without being asked. */
1753
1978
  direction?: "row" | "column";
1754
1979
  /** Spacing as a step of the 4 px spacing steps (1–8). */
1755
1980
  gap?: SpaceStep;
@@ -1764,6 +1989,7 @@ export declare interface StackProps extends HTMLAttributes<HTMLDivElement> {
1764
1989
  /** Metric tile: one value, read against its limits. */
1765
1990
  export declare const Stat: ForwardRefExoticComponent<StatProps & RefAttributes<HTMLDivElement>>;
1766
1991
 
1992
+ /** The props of `Stat`. */
1767
1993
  export declare interface StatProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
1768
1994
  /** What is being measured. */
1769
1995
  label: string;
@@ -1787,8 +2013,11 @@ export declare interface StatProps extends Omit<HTMLAttributes<HTMLDivElement>,
1787
2013
  ages?: FreshnessAges;
1788
2014
  }
1789
2015
 
2016
+ /** Where a procedure stands: its steps in order, done, current, upcoming or
2017
+ failed. Moving on is yours - `current` is a prop. */
1790
2018
  export declare const Stepper: ForwardRefExoticComponent<StepperProps & RefAttributes<HTMLOListElement>>;
1791
2019
 
2020
+ /** The props of `Stepper`. */
1792
2021
  export declare interface StepperProps extends HTMLAttributes<HTMLOListElement> {
1793
2022
  /** The steps in the order they are walked. */
1794
2023
  steps: readonly StepperStep[];
@@ -1796,7 +2025,7 @@ export declare interface StepperProps extends HTMLAttributes<HTMLOListElement> {
1796
2025
  the ones after it upcoming; past the last step, every step is done. */
1797
2026
  current: number;
1798
2027
  /** `horizontal` in a row, `vertical` in a column for steps with longer
1799
- descriptions. Default: `horizontal` */
2028
+ descriptions. */
1800
2029
  orientation?: "horizontal" | "vertical";
1801
2030
  }
1802
2031
 
@@ -1811,25 +2040,35 @@ export declare interface StepperStep {
1811
2040
  failed?: boolean;
1812
2041
  }
1813
2042
 
2043
+ /** An on/off switch that takes effect at once - a native checkbox with
2044
+ `role="switch"`. Where the choice waits for a Save button, use `Checkbox`. */
1814
2045
  export declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLInputElement>>;
1815
2046
 
2047
+ /** The props of `Switch`: a native checkbox's attributes and its label. */
1816
2048
  export declare interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "role"> {
1817
2049
  /** Label to the right of the switch. */
1818
2050
  label?: ReactNode;
1819
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
1820
- `ControlSizeProvider` around it, else `md`. */
2051
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
2052
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
1821
2053
  size?: "sm" | "md";
1822
2054
  /** Marks the switch as invalid. `FormField` sets it itself as soon as it
1823
2055
  carries an `error` - by hand only necessary without `FormField`. */
1824
2056
  invalid?: boolean;
1825
2057
  }
1826
2058
 
2059
+ /** One tab of a `TabList`; choosing it shows the `TabPanel` of the same
2060
+ `value`. */
1827
2061
  export declare const Tab: ForwardRefExoticComponent<TabProps & RefAttributes<HTMLButtonElement>>;
1828
2062
 
2063
+ /** The row of `Tab`s inside `Tabs`. The arrow keys, Home and End move
2064
+ between the tabs and choose them. */
1829
2065
  export declare const TabList: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>>;
1830
2066
 
2067
+ /** The content of one tab. Only the panel whose `value` is chosen stands in
2068
+ the document. */
1831
2069
  export declare const TabPanel: ForwardRefExoticComponent<TabPanelProps & RefAttributes<HTMLDivElement>>;
1832
2070
 
2071
+ /** The props of `TabPanel`. */
1833
2072
  export declare interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
1834
2073
  /** The value of the tab this panel belongs to. Only the matching panel
1835
2074
  stands in the document – a hidden panel would keep focus, scroll
@@ -1837,13 +2076,17 @@ export declare interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
1837
2076
  value: string;
1838
2077
  }
1839
2078
 
2079
+ /** The props of `Tab`. */
1840
2080
  export declare interface TabProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1841
2081
  /** The value this tab reports – and under which its panel stands. */
1842
2082
  value: string;
1843
2083
  }
1844
2084
 
2085
+ /** Tabs: a `TabList` of `Tab`s and one `TabPanel` per value. Controlled
2086
+ through `value` and `onChange`, or uncontrolled from `defaultValue`. */
1845
2087
  export declare const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<HTMLDivElement>>;
1846
2088
 
2089
+ /** The props of `Tabs`. */
1847
2090
  export declare interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
1848
2091
  /** The value of the visible tab. Controlled, `Tabs` remember nothing, so
1849
2092
  that the tab can come out of an address. */
@@ -1856,15 +2099,22 @@ export declare interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>,
1856
2099
  onChange?: (value: string) => void;
1857
2100
  }
1858
2101
 
2102
+ /** A short label with a tone; with `onRemove` it carries a cross that removes
2103
+ it. Inside a `TagGroup` it is a list entry, and Delete or Backspace remove
2104
+ it too. */
1859
2105
  export declare const Tag: ForwardRefExoticComponent<TagProps & RefAttributes<HTMLSpanElement>>;
1860
2106
 
2107
+ /** A list of `Tag`s with one tab stop: the arrow keys move between them, and
2108
+ the focus stays in the group when one is removed. */
1861
2109
  export declare const TagGroup: ForwardRefExoticComponent<TagGroupProps & RefAttributes<HTMLDivElement>>;
1862
2110
 
2111
+ /** The props of `TagGroup`: a div's attributes, with a required name. */
1863
2112
  export declare interface TagGroupProps extends HTMLAttributes<HTMLDivElement> {
1864
2113
  /** Label of the group for the screen reader. */
1865
2114
  "aria-label": string;
1866
2115
  }
1867
2116
 
2117
+ /** The props of `Tag`. */
1868
2118
  export declare interface TagProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onRemove"> {
1869
2119
  /** What the label stands for. The tone is never the only information: the
1870
2120
  text beside it says the same thing once more. */
@@ -1883,16 +2133,25 @@ export declare interface TagProps extends Omit<HTMLAttributes<HTMLSpanElement>,
1883
2133
  disabled?: boolean;
1884
2134
  }
1885
2135
 
2136
+ /** What a tag stands for - never the only statement, its text says it too. */
1886
2137
  export declare type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
1887
2138
 
2139
+ /** Body text from the token set; `as` chooses the element, independent of the
2140
+ size. */
1888
2141
  declare const Text_2: ForwardRefExoticComponent<TextProps & RefAttributes<HTMLElement>>;
1889
2142
  export { Text_2 as Text }
1890
2143
 
2144
+ /** A text field for several lines. `chars` sets the length of a line,
2145
+ `autoGrow` lets it grow with its content up to `maxRows`, `showCount` counts
2146
+ against `maxLength`. Inside a `FormField` it takes the field's id,
2147
+ description and invalid state. */
1891
2148
  export declare const Textarea: ForwardRefExoticComponent<TextareaProps & RefAttributes<HTMLTextAreaElement>>;
1892
2149
 
2150
+ /** The props of `Textarea`: a native textarea's attributes, with `chars` in
2151
+ place of `cols`. */
1893
2152
  export declare interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "cols"> {
1894
- /** `sm` for a toolbar and dense forms, `md` otherwise. Default: the size of a
1895
- `ControlSizeProvider` around it, else `md`. */
2153
+ /** `sm` for a toolbar and dense forms, `md` otherwise.
2154
+ @default the size of a `ControlSizeProvider` around it, else `"md"` */
1896
2155
  size?: "sm" | "md";
1897
2156
  /** The width in characters - the length of a line; the field adds its own
1898
2157
  padding. Given, the field is that wide wherever it stands, and never
@@ -1909,15 +2168,17 @@ export declare interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLT
1909
2168
  /** Shows at the bottom right how many characters still fit.
1910
2169
  Needs `maxLength`. */
1911
2170
  showCount?: boolean;
1912
- /** Whether the browser's handle for dragging is offered. Default: only
1913
- vertically, and not at all while the field grows by itself. */
2171
+ /** Whether the browser's handle for dragging is offered.
2172
+ @default `"none"` while the field grows by itself, else `"vertical"` */
1914
2173
  resize?: "none" | "vertical";
1915
2174
  }
1916
2175
 
1917
- declare type TextLeading = "normal" | "tight";
2176
+ /** The line height of the token set. */
2177
+ export declare type TextLeading = "normal" | "tight";
1918
2178
 
2179
+ /** The props of `Text`. */
1919
2180
  export declare interface TextProps extends HTMLAttributes<HTMLElement> {
1920
- /** Element to render as. Default `p`. */
2181
+ /** Element to render as. */
1921
2182
  as?: ElementType;
1922
2183
  /** Type size from the token set. It is independent of the element: a `p`
1923
2184
  may be small without becoming a different element. */
@@ -1937,14 +2198,20 @@ export declare interface TextProps extends HTMLAttributes<HTMLElement> {
1937
2198
  leading?: TextLeading;
1938
2199
  }
1939
2200
 
2201
+ /** A type size of the token set. */
1940
2202
  export declare type TextSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
1941
2203
 
2204
+ /** How loud a text is; `secondary` and `muted` step back without falling below
2205
+ the contrast threshold. */
1942
2206
  export declare type TextTone = "default" | "secondary" | "muted";
1943
2207
 
1944
- declare type TextTracking = "normal" | "tight" | "display" | "caps";
2208
+ /** The letter spacing of the token set. */
2209
+ export declare type TextTracking = "normal" | "tight" | "display" | "caps";
1945
2210
 
2211
+ /** A font weight of the token set. */
1946
2212
  export declare type TextWeight = "regular" | "medium" | "semibold";
1947
2213
 
2214
+ /** The one action a toast may carry, e.g. "Undo". */
1948
2215
  export declare interface ToastAction {
1949
2216
  /** A verb for what it does - "Undo", "Show". */
1950
2217
  label: string;
@@ -1956,14 +2223,18 @@ export declare interface ToastAction {
1956
2223
  one), or its action was taken. */
1957
2224
  export declare type ToastCloseReason = "timeout" | "dismiss" | "action";
1958
2225
 
2226
+ /** The defaults for every toast, set on `UmrissProvider`'s `toast`. */
1959
2227
  export declare interface ToastConfig {
1960
- /** Display duration in ms, where the individual toast names none. */
2228
+ /** Display duration in ms, where the individual toast names none.
2229
+ @default 5000 */
1961
2230
  duration?: number;
1962
- /** Where the toasts stand. Default: `bottom-end`. There is no position per
1963
- toast - toasts that stand in different places are not read as one. */
2231
+ /** Where the toasts stand. There is no position per toast - toasts that
2232
+ stand in different places are not read as one.
2233
+ @default "bottom-end" */
1964
2234
  position?: ToastPosition;
1965
2235
  /** How many toasts stand at once; the oldest gives way to a new one, as if
1966
- it had been closed. Default: 3. */
2236
+ it had been closed.
2237
+ @default 3 */
1967
2238
  limit?: number;
1968
2239
  }
1969
2240
 
@@ -1979,6 +2250,8 @@ declare interface ToastContextValue {
1979
2250
  dismiss: (id: number) => void;
1980
2251
  }
1981
2252
 
2253
+ /** What a toast says and how - what `toast()` and `update()` from `useToast`
2254
+ take. */
1982
2255
  export declare interface ToastOptions {
1983
2256
  /** What has happened – short, about one line (some 45 characters), in the
1984
2257
  perfect tense and not a request: "Invoice not sent". Why, and
@@ -1993,7 +2266,8 @@ export declare interface ToastOptions {
1993
2266
  shows a spinner, has no close button and does not leave by itself: turn
1994
2267
  it into its outcome with `update`. */
1995
2268
  tone?: ToastTone;
1996
- /** Display duration in ms; 0 = stays until closed by hand. Default: 5000. */
2269
+ /** Display duration in ms; 0 = stays until closed by hand.
2270
+ @default the provider's `duration`, else `5000` */
1997
2271
  duration?: number;
1998
2272
  /** One action - "Undo". Never the only way to do what it offers: the toast
1999
2273
  leaves by itself, and not everybody reaches it in time. More than one
@@ -2007,6 +2281,9 @@ export declare interface ToastOptions {
2007
2281
  phone they take the width of the window, and only the edge counts. */
2008
2282
  export declare type ToastPosition = "top-start" | "top-center" | "top-end" | "bottom-start" | "bottom-center" | "bottom-end";
2009
2283
 
2284
+ /** Holds the toasts and draws them; `useToast` works only below it. Put it
2285
+ once at the root of the application. Duration, position and limit come from
2286
+ `UmrissProvider`'s `toast` where one stands around it. */
2010
2287
  export declare function ToastProvider({ children }: {
2011
2288
  children: ReactNode;
2012
2289
  }): JSX.Element;
@@ -2030,6 +2307,7 @@ export declare function toggleCheck<K, S extends Key = string>(roots: readonly K
2030
2307
  /** Appears on hover and keyboard focus; purely descriptive (role="tooltip"). */
2031
2308
  export declare function Tooltip({ content, children, delay }: TooltipProps): JSX.Element;
2032
2309
 
2310
+ /** The props of `Tooltip`. */
2033
2311
  export declare interface TooltipProps {
2034
2312
  /** Short help text; no interaction, no long content. */
2035
2313
  content: ReactNode;
@@ -2040,6 +2318,8 @@ export declare interface TooltipProps {
2040
2318
  delay?: number;
2041
2319
  }
2042
2320
 
2321
+ /** What `useTree` returns: the visible nodes and the gestures on them. Hand it
2322
+ to `TreeView` and `TreeSearch`. */
2043
2323
  export declare interface Tree<K, S extends Key = string> {
2044
2324
  /** The visible nodes – complete, even where only a window of them is
2045
2325
  rendered. Positions and sibling counts come from here and never from
@@ -2101,6 +2381,8 @@ export declare interface Tree<K, S extends Key = string> {
2101
2381
  */
2102
2382
  export declare function treeModel<K, S extends Key = string>(roots: readonly K[], reader: NodeReader<K, S>, snapshot: TreeSnapshot<S>): readonly FlatteningEntry<K, S>[];
2103
2383
 
2384
+ /** The options of `useTree`: how a node is read, and each of its values
2385
+ either uncontrolled (`default…`) or controlled with its `on…` handler. */
2104
2386
  export declare interface TreeOptions<K, S extends Key = string> {
2105
2387
  reader: NodeReader<K, S>;
2106
2388
  /** Initial values, where the tree holds its own state. */
@@ -2137,16 +2419,23 @@ export declare interface TreeOptions<K, S extends Key = string> {
2137
2419
  virtual?: VirtualOptions;
2138
2420
  }
2139
2421
 
2422
+ /** The search field of a tree: an `Input` that writes into the tree's search
2423
+ text, so that the `TreeView` filters on it. */
2140
2424
  export declare const TreeSearch: <K, S extends Key = string>(props: TreeSearchProps<K, S> & {
2141
2425
  ref?: ForwardedRef<HTMLInputElement>;
2142
2426
  }) => ReactNode;
2143
2427
 
2428
+ /** The props of `TreeSearch`: an `Input`'s, with the tree in place of `value`
2429
+ and `onChange`. */
2144
2430
  export declare interface TreeSearchProps<K, S extends Key = string> extends Omit<InputProps, "value" | "onChange" | "type"> {
2145
2431
  /** The same tree as the view's. The field does not hold the text itself –
2146
2432
  it belongs to the tree, because the flattening depends on it. */
2147
2433
  tree: Tree<K, S>;
2148
2434
  }
2149
2435
 
2436
+ /** The whole state of a tree, as plain values: the open branches, the checked
2437
+ nodes, the active node, the anchor and the search text. The transitions take
2438
+ one and return the next. */
2150
2439
  export declare interface TreeSnapshot<S extends Key = string> {
2151
2440
  expanded: ReadonlySet<S>;
2152
2441
  checked: ReadonlySet<S>;
@@ -2158,10 +2447,14 @@ export declare interface TreeSnapshot<S extends Key = string> {
2158
2447
  search: string;
2159
2448
  }
2160
2449
 
2450
+ /** The tree as a control: draws the nodes of a `Tree` from `useTree` as a
2451
+ `tree` with keyboard navigation, typeahead and, with `checkable`, ticks.
2452
+ What a node says is yours - `children` renders it. */
2161
2453
  export declare const TreeView: <K, S extends Key = string>(props: TreeViewProps<K, S> & {
2162
2454
  ref?: ForwardedRef<HTMLDivElement>;
2163
2455
  }) => ReactNode;
2164
2456
 
2457
+ /** The props of `TreeView`. */
2165
2458
  export declare interface TreeViewProps<K, S extends Key = string> extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
2166
2459
  /** The tree from `useTree`. It is the whole state: flattening, active node,
2167
2460
  checks, anchor. The view holds nothing beside it. */
@@ -2189,6 +2482,8 @@ export declare interface TreeViewProps<K, S extends Key = string> extends Omit<H
2189
2482
  */
2190
2483
  export declare function typeaheadTarget<K, S extends Key = string>(flattening: readonly FlatteningEntry<K, S>[], prefix: string, active: S | null): S | null;
2191
2484
 
2485
+ /** The settings of `UmrissProvider` as the components read them, every value
2486
+ filled in. */
2192
2487
  export declare interface UmrissConfig {
2193
2488
  density: Density;
2194
2489
  portalTarget: PortalTarget;
@@ -2204,12 +2499,14 @@ export declare interface UmrissConfig {
2204
2499
  */
2205
2500
  export declare function UmrissProvider({ density, portalTarget, toast, language, children, }: UmrissProviderProps): JSX.Element;
2206
2501
 
2502
+ /** The props of `UmrissProvider`. */
2207
2503
  export declare interface UmrissProviderProps {
2208
2504
  /**
2209
2505
  * The default for the `density` of every component that reads it with
2210
2506
  * `useDensityFor` - in `@umriss-ui/table` `Table` and `AlarmList`
2211
- * ("comfortable" means "regular"). Without a value the provider touches no
2212
- * component: one that is compact of its own accord stays compact.
2507
+ * ("comfortable" means "regular").
2508
+ *
2509
+ * @default none - a component keeps its own density
2213
2510
  */
2214
2511
  density?: Density;
2215
2512
  /**
@@ -2223,7 +2520,11 @@ export declare interface UmrissProviderProps {
2223
2520
  /** The setting for toasts: the display duration where the individual toast
2224
2521
  names none, where they stand, and how many stand at once. */
2225
2522
  toast?: ToastConfig;
2226
- /** Formats and wording, entry by entry. See `lib/language`. */
2523
+ /**
2524
+ * Formats and wording, entry by entry - see [Language](#/language).
2525
+ *
2526
+ * @default none - the surrounding language holds, English at the root
2527
+ */
2227
2528
  language?: LanguageOptions;
2228
2529
  /** The subtree the settings apply to. */
2229
2530
  children: ReactNode;
@@ -2285,6 +2586,14 @@ export declare function useToast(): ToastContextValue;
2285
2586
  /** The setting for toasts; without a provider, empty. */
2286
2587
  export declare const useToastConfig: () => ToastConfig;
2287
2588
 
2589
+ /** The state of a tree - which branches are open, which nodes are checked,
2590
+ the active node, the anchor and the search text - and the gestures on it.
2591
+ Each of these can be controlled from outside, so that a tree can be
2592
+ restored from a link.
2593
+ @param roots The top-level nodes, in your own type.
2594
+ @param options How a node is read, and the initial or controlled state with
2595
+ its change handlers.
2596
+ @returns The tree to hand to `TreeView` and `TreeSearch`. */
2288
2597
  export declare function useTree<K, S extends Key = string>(roots: readonly K[], options: TreeOptions<K, S>): Tree<K, S>;
2289
2598
 
2290
2599
  /** The whole configuration; without a provider, the defaults. */
@@ -2317,6 +2626,7 @@ export declare type Verdict = "ok" | "unknown" | "warning" | "alarm";
2317
2626
  reinvented at every call site. */
2318
2627
  export declare function verdictWeight(verdict: Verdict): number;
2319
2628
 
2629
+ /** The options of `useVirtual`. */
2320
2630
  export declare interface VirtualOptions {
2321
2631
  /**
2322
2632
  * Expected row height in pixels. It is re-measured on a real row after the
@@ -2324,10 +2634,13 @@ export declare interface VirtualOptions {
2324
2634
  * window is not empty.
2325
2635
  */
2326
2636
  rowHeight: number;
2327
- /** Rows above and below the visible area. Default 4. */
2637
+ /** Rows above and below the visible area.
2638
+ @default 4 */
2328
2639
  overscan?: number;
2329
2640
  }
2330
2641
 
2642
+ /** What `useVirtual` returns: the ref for the scroll area, the window of rows
2643
+ to render and the heights of the filler rows around it. */
2331
2644
  export declare interface VirtualRows {
2332
2645
  /** Goes on the scroll area - in @umriss-ui/table on the table's frame; hangs
2333
2646
  the ref and the scroll listener on it. */
@@ -2356,17 +2669,23 @@ export declare interface VirtualRows {
2356
2669
  */
2357
2670
  export declare function visibleWindow({ count, rowHeight, scrollTop, viewportHeight, overscan, }: WindowInput): RowWindow;
2358
2671
 
2672
+ /** Content for the screen reader only: out of sight, but read out. With
2673
+ `focusable` it shows once it has the focus - a skip link. */
2359
2674
  export declare const VisuallyHidden: <E extends ElementType = "span">(props: VisuallyHiddenProps<E> & {
2360
2675
  ref?: ForwardedRef<HTMLElement>;
2361
2676
  }) => React.ReactElement;
2362
2677
 
2678
+ /** The props of `VisuallyHidden`: those of the element `as` names, `span` by
2679
+ default. */
2363
2680
  export declare type VisuallyHiddenProps<E extends ElementType = "span"> = {
2364
- /** Element to render as. Default `span`. */
2681
+ /** Element to render as.
2682
+ @default "span" */
2365
2683
  as?: E;
2366
2684
  /** Becomes visible as soon as the content receives the focus (skip link). */
2367
2685
  focusable?: boolean;
2368
2686
  } & Omit<ComponentPropsWithoutRef<E>, "as">;
2369
2687
 
2688
+ /** What `visibleWindow` needs to know about a scroll area and its rows. */
2370
2689
  export declare interface WindowInput {
2371
2690
  /** Rows in total, not only the rendered ones. */
2372
2691
  count: number;
@@ -2447,6 +2766,8 @@ export declare interface Wording {
2447
2766
  paletteNoFinds: string;
2448
2767
  /** What the screen reader hears when the number of finds changes. */
2449
2768
  paletteFindCount: (count: number) => string;
2769
+ /** The last line when more finds exist than `maxFinds` lets stand. */
2770
+ paletteMoreFinds: (count: number) => string;
2450
2771
  /** The three key hints in the footer, each the text beside the key. */
2451
2772
  paletteHintMove: string;
2452
2773
  paletteHintChoose: string;
@@ -2459,7 +2780,7 @@ export declare interface Wording {
2459
2780
  dockTools: string;
2460
2781
  /** Accessible name of the grip - it says what it does, not what it is. */
2461
2782
  dockGrip: string;
2462
- /** The four resting places, named. The keys are the `Place` type's, and a
2783
+ /** The four resting places, named. The keys are the `DockPlace` type's, and a
2463
2784
  register translates them: the German one answers "oben" where the
2464
2785
  English one answers "top". */
2465
2786
  dockPlace: (place: "top" | "right" | "bottom" | "left") => string;