@muraldevkit/ui-toolkit 3.1.3 → 3.2.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.
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { LayoutComponent, LayoutSection } from '../constants';
|
|
3
|
+
export type MrlSidebarHookInfo = {
|
|
4
|
+
source: 'userInteraction' | 'imperativeHandler';
|
|
5
|
+
};
|
|
6
|
+
interface MrlSidebarHook {
|
|
7
|
+
hookClose?: (info: MrlSidebarHookInfo) => void;
|
|
8
|
+
hookOpen?: (info: MrlSidebarHookInfo) => void;
|
|
9
|
+
}
|
|
3
10
|
export interface MrlSidebarHandle {
|
|
4
11
|
close: () => void;
|
|
5
12
|
open: () => void;
|
|
@@ -11,4 +18,5 @@ export interface MrlSidebarHandle {
|
|
|
11
18
|
* @param props - component props
|
|
12
19
|
* @returns a MrlSidebar React component.
|
|
13
20
|
*/
|
|
14
|
-
export declare const MrlSidebar: React.ForwardRefExoticComponent<LayoutComponent & LayoutSection & React.RefAttributes<MrlSidebarHandle>>;
|
|
21
|
+
export declare const MrlSidebar: React.ForwardRefExoticComponent<LayoutComponent & LayoutSection & MrlSidebarHook & React.RefAttributes<MrlSidebarHandle>>;
|
|
22
|
+
export {};
|