@kenlo/kdls-design-system 2.10.0 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Modal dialog focus, for Drawer and Modal: on open, focus moves inside (the first control of
3
+ * the body, else the first control of the panel, else the panel itself); Tab and Shift+Tab wrap
4
+ * inside the panel, and come back to it from a floating list the dialog opened; on close, focus
5
+ * returns to the element that had it when the dialog opened, when it is still on the page.
6
+ */
7
+ export declare function useDialogFocus(open: boolean, panelRef: React.RefObject<HTMLElement | null>, bodySelector: string): void;