@muraldevkit/ui-toolkit 2.38.2 → 2.39.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.
|
@@ -12,6 +12,8 @@ interface MrlMenuItemLinkProps {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
/** Href for the menu item */
|
|
14
14
|
href: string;
|
|
15
|
+
/** Icon for menu item */
|
|
16
|
+
icon?: Record<string, unknown>;
|
|
15
17
|
/** Target for links */
|
|
16
18
|
target?: string;
|
|
17
19
|
/** Unique ID for the menu item */
|
|
@@ -31,5 +33,5 @@ interface MrlMenuItemLinkProps {
|
|
|
31
33
|
* @param {MrlMenuItemLinkProps} props - The props for the MrlMenuItem component
|
|
32
34
|
* @returns {Element} - rendered MrlMenuItem component
|
|
33
35
|
*/
|
|
34
|
-
export declare function MrlMenuItemLink({ ariaDescribedBy, children, className, dataQa, disabled, href, id, onClick, selected, target }: MrlMenuItemLinkProps): JSX.Element;
|
|
36
|
+
export declare function MrlMenuItemLink({ ariaDescribedBy, children, className, dataQa, disabled, href, icon, id, onClick, selected, target }: MrlMenuItemLinkProps): JSX.Element;
|
|
35
37
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type MrlMenuContext = {
|
|
3
|
+
/**
|
|
4
|
+
* Close menu is shared in context to allow for closing the menu from a child component
|
|
5
|
+
*
|
|
6
|
+
* @returns {void}
|
|
7
|
+
*/
|
|
8
|
+
closeMenu: () => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Adds context for the MrlMenu component
|
|
12
|
+
*/
|
|
13
|
+
export declare const MrlMenuContext: React.Context<MrlMenuContext | undefined>;
|
|
14
|
+
export {};
|