@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.
@@ -1,11 +1,14 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { LayoutComponent, LayoutSection } from '../constants';
3
- type MrlSidebar = LayoutComponent & LayoutSection;
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 function MrlSidebar({ children, className }: MrlSidebar): JSX.Element;
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;
@@ -115,7 +115,7 @@ export declare const colorPictoStoryData: {
115
115
  export declare const animateStoryData: {
116
116
  args: {
117
117
  delay: number;
118
- state: "play" | "stop";
118
+ state: "stop" | "play";
119
119
  };
120
120
  argTypes: {
121
121
  delay: {