@muraldevkit/ui-toolkit 4.41.7 → 4.42.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.
- package/dist/components/focus-trap/MrlFocusTrap/MrlFocusTrap.d.ts +1 -1
- package/dist/components/modal/MrlModal/MrlModal.d.ts +2 -7
- package/dist/components/popover/MrlPopover/hooks/use-mrl-popover-event-handlers.d.ts +1 -1
- package/dist/components/rovingTabindex/MrlRovingTabindex/MrlRovingTabindex.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +7 -10
- package/dist/components/menu/demo/MenuGroupWithTrigger.d.ts +0 -9
- package/dist/components/menu/demo/MenuWithActionState.d.ts +0 -19
- package/dist/components/menu/demo/MenuWithIconButtonTrigger.d.ts +0 -19
- package/dist/components/menu/demo/MenuWithLink.d.ts +0 -18
- package/dist/components/menu/demo/MenuWithRTI.d.ts +0 -19
|
@@ -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
|
*/
|
|
@@ -43,13 +43,8 @@ interface ModalProps extends MrlComponentProps {
|
|
|
43
43
|
/**
|
|
44
44
|
* Modal Component.
|
|
45
45
|
*
|
|
46
|
-
* @param
|
|
47
|
-
* @
|
|
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:
|
|
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:
|
|
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
|
|
49
|
-
* @returns
|
|
48
|
+
* @param props - the MrlRovingTabindex props
|
|
49
|
+
* @returns new instance
|
|
50
50
|
*/
|
|
51
51
|
constructor(props: RovingPropTypes);
|
|
52
52
|
/**
|