@muraldevkit/ui-toolkit 4.52.3 → 4.52.4-dev-65WH.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.
@@ -11,6 +11,8 @@ export interface MrlMenuItemProps {
11
11
  className?: string;
12
12
  /** If the menu item is disabled */
13
13
  disabled?: boolean;
14
+ /** If the menu item has a popup (modal or popover) */
15
+ hasPopup?: boolean;
14
16
  /** Icon for menu item */
15
17
  icon?: DSIconType;
16
18
  /** Unique ID for the menu item */
@@ -44,4 +46,4 @@ export interface MrlMenuItemProps {
44
46
  * @param {MrlMenuItemProps} props - The props for the MrlMenuItem component
45
47
  * @returns {Element} - rendered MrlMenuItem component
46
48
  */
47
- export declare function MrlMenuItem({ ariaDescribedBy, children, className, dataQa, disabled, icon, id, onClick, onMouseOut, onMouseOver, role, selected, ...rest }: MrlMenuItemProps): JSX.Element;
49
+ export declare function MrlMenuItem({ ariaDescribedBy, children, className, dataQa, disabled, hasPopup, icon, id, onClick, onMouseOut, onMouseOver, role, selected, ...rest }: MrlMenuItemProps): JSX.Element;
@@ -12,6 +12,10 @@ type MrlMenuContext = {
12
12
  * @returns {void}
13
13
  */
14
14
  closeParent?: () => void;
15
+ /**
16
+ * Reference to the menu trigger button for focus restoration
17
+ */
18
+ triggerRef?: React.RefObject<HTMLElement>;
15
19
  };
16
20
  /**
17
21
  * Adds context for the MrlMenu component
@@ -80,7 +80,7 @@ export declare const colorPictoStoryData: {
80
80
  export declare const animateStoryData: {
81
81
  args: {
82
82
  delay: number;
83
- state: "play" | "stop";
83
+ state: "stop" | "play";
84
84
  };
85
85
  argTypes: {
86
86
  delay: {