@muraldevkit/ui-toolkit 4.41.5 → 4.42.0-dev-k3q1.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.
@@ -3,7 +3,7 @@ interface PropTypes {
3
3
  /**
4
4
  * Elements to be rendered within the focus trap
5
5
  */
6
- children: React.ReactNode;
6
+ children: React.ReactNode | ((focusTrapRef: React.RefObject<HTMLDivElement>) => JSX.Element);
7
7
  /**
8
8
  * Specifies whether the focus trap should be disabled
9
9
  */
@@ -5,7 +5,7 @@ type MrlMenuContext = {
5
5
  *
6
6
  * @returns {void}
7
7
  */
8
- closeMenu: () => void;
8
+ closeMenu: (shouldCloseParent?: boolean) => void;
9
9
  /**
10
10
  * Close parent is shared in context to allow for closing the parent menu from a submenu
11
11
  *
@@ -43,13 +43,8 @@ interface ModalProps extends MrlComponentProps {
43
43
  /**
44
44
  * Modal Component.
45
45
  *
46
- * @param {object} props - Modal props
47
- * @param {ModalSize} props.size - The size of the modal container. Defaults to 'defaults.size'
48
- * @param {ModalState} props.state - Current state of the modal. Defaults to 'close'
49
- * @param {Function} props.hookClose - Callback function to be run when the modal closes
50
- * @param {AttrsObject} props.attrs - Additional HTML attributes to be passed in
51
- * @param {React.ReactElement} props.children - Children to be rendered within the modal. The first child is used as the trigger.
52
- * @returns {React.ReactElement} an instance of the MrlModal
46
+ * @param props - Modal props
47
+ * @returns an instance of the MrlModal
53
48
  */
54
49
  export declare const MrlModal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
55
50
  export {};
@@ -17,7 +17,7 @@ type UseMrlPopoverEventHandlersReturn = {
17
17
  handleClose: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
18
18
  handleMenuKey: (e: React.KeyboardEvent) => void;
19
19
  handleTriggerSiblingKey: (e: KeyboardEvent) => void;
20
- hideMenuHover: (e: Event) => void;
20
+ hideMenuHover: (e: MouseEvent) => void;
21
21
  showMenuHover: () => void;
22
22
  toggleMenuKey: (e: KeyboardEvent) => void;
23
23
  toggleMenuMouse: () => void;
@@ -11,7 +11,7 @@ export declare const getTabbableElements: (ref: RefType, selector: string) => HT
11
11
  export type FocusOnInitPosition = 'first' | 'last';
12
12
  export interface RovingPropTypes {
13
13
  activeSelector?: string;
14
- children: unknown;
14
+ children: React.ReactNode;
15
15
  /**
16
16
  * delayMount is used to apply a delay to the mounting
17
17
  * of the RovingTabindex component. This can be helpful in
@@ -45,8 +45,8 @@ declare class MrlRovingTabindex extends React.Component<RovingPropTypes> {
45
45
  /**
46
46
  * MrlRovingTabindex class constructor
47
47
  *
48
- * @param {RovingPropTypes} props - the MrlRovingTabindex props
49
- * @returns {void}
48
+ * @param props - the MrlRovingTabindex props
49
+ * @returns new instance
50
50
  */
51
51
  constructor(props: RovingPropTypes);
52
52
  /**