@muraldevkit/ui-toolkit 2.38.1 → 2.39.0
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,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface MrlMenuItemProps {
|
|
2
|
+
export interface MrlMenuItemProps {
|
|
3
3
|
/** ID for associated description */
|
|
4
4
|
ariaDescribedBy?: string;
|
|
5
5
|
/**
|
|
@@ -15,7 +15,7 @@ interface MrlMenuItemProps {
|
|
|
15
15
|
/** Unique ID for the menu item */
|
|
16
16
|
id?: string;
|
|
17
17
|
/** Callback to be called when the menu item is clicked */
|
|
18
|
-
onClick: (e
|
|
18
|
+
onClick: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
19
19
|
/** Callback to be called when the menu item is hovered */
|
|
20
20
|
onMouseOver?: (e?: React.MouseEvent) => void;
|
|
21
21
|
/** Callback to be called when the menu item is hovered out */
|
|
@@ -34,4 +34,3 @@ interface MrlMenuItemProps {
|
|
|
34
34
|
* @returns {Element} - rendered MrlMenuItem component
|
|
35
35
|
*/
|
|
36
36
|
export declare function MrlMenuItem({ ariaDescribedBy, children, className, dataQa, disabled, icon, id, onClick, onMouseOut, onMouseOver, selected }: MrlMenuItemProps): JSX.Element;
|
|
37
|
-
export {};
|
|
@@ -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 {};
|