@muraldevkit/ui-toolkit 2.38.0 → 2.38.2
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,9 +15,11 @@ 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
|
+
/** Callback to be called when the menu item is hovered out */
|
|
22
|
+
onMouseOut?: (e?: React.MouseEvent) => void;
|
|
21
23
|
/** Data-qa attribute for the menu item */
|
|
22
24
|
dataQa?: string;
|
|
23
25
|
/** If the menu item is selected */
|
|
@@ -31,5 +33,4 @@ interface MrlMenuItemProps {
|
|
|
31
33
|
* @param {MrlMenuItemProps} props - The props for the MrlMenuItem component
|
|
32
34
|
* @returns {Element} - rendered MrlMenuItem component
|
|
33
35
|
*/
|
|
34
|
-
export declare function MrlMenuItem({ ariaDescribedBy, children, className, dataQa, disabled, icon, id, onClick,
|
|
35
|
-
export {};
|
|
36
|
+
export declare function MrlMenuItem({ ariaDescribedBy, children, className, dataQa, disabled, icon, id, onClick, onMouseOut, onMouseOver, selected }: MrlMenuItemProps): JSX.Element;
|