@muraldevkit/ui-toolkit 2.84.7 → 2.85.1-dev-fd9x.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.
- package/dist/components/layout/MrlSidebar/MrlSidebar.d.ts +7 -4
- package/dist/components/layout/MrlSidebar/demo/MrlSidebarDemo.d.ts +8 -0
- package/dist/components/svg/config.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/MrlAvatar/module.scss +2 -2
- package/dist/styles.css +89 -0
- package/package.json +2 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { LayoutComponent, LayoutSection } from '../constants';
|
|
3
|
-
|
|
3
|
+
export interface MrlSidebarHandle {
|
|
4
|
+
close: () => void;
|
|
5
|
+
open: () => void;
|
|
6
|
+
toggle: () => void;
|
|
7
|
+
}
|
|
4
8
|
/**
|
|
5
9
|
* MrlSidebar React component.
|
|
6
10
|
*
|
|
7
11
|
* @param props - component props
|
|
8
12
|
* @returns a MrlSidebar React component.
|
|
9
13
|
*/
|
|
10
|
-
export declare
|
|
11
|
-
export {};
|
|
14
|
+
export declare const MrlSidebar: React.ForwardRefExoticComponent<LayoutComponent & LayoutSection & React.RefAttributes<MrlSidebarHandle>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* MrlSidebar demo with the use of the forward ref to make open/close/toggle the sidebar
|
|
4
|
+
* through buttons as children and outside of the sidebar.
|
|
5
|
+
*
|
|
6
|
+
* @returns a MrlSidebarDemo React component.
|
|
7
|
+
*/
|
|
8
|
+
export declare const MrlSidebarDemo: () => JSX.Element;
|