courthive-components 7.2.0 → 7.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * A modal opens with focus on the first thing in its body that can be modified or selected, so a dialog
3
+ * that asks for one value (Select provider) can be answered by typing. The footer and the header are not
4
+ * the body: a button there is an answer to the form, not part of it.
5
+ *
6
+ * Runs a frame after the modal opens (content renders before the modal is in the page, when focus cannot
7
+ * land), and leaves focus alone if it is already in the body. A form that names its own field
8
+ * (renderForm's `focus: true`, 200ms later) moves it there afterwards, so that choice stands. Skipped:
9
+ * - a date field: focus opens its calendar over the modal, which is not what opening a dialog asks for;
10
+ * - read-only and disabled controls, which cannot be modified;
11
+ * - controls not rendered (`display: none` here or above).
12
+ */
13
+ export declare function firstControl(body: HTMLElement): HTMLElement | undefined;
14
+ export declare function focusFirstControl(body: HTMLElement): void;