@muraldevkit/ui-toolkit 4.49.2-dev-4Pmc.1 → 4.49.2-dev-5BFf.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.
@@ -50,12 +50,22 @@ declare class MrlRovingTabindex extends React.Component<RovingPropTypes> {
50
50
  * Runs when the MrlRovingTabindex component mounts
51
51
  */
52
52
  componentDidMount(): void;
53
+ /**
54
+ * Runs when the MrlRovingTabindex component unmounts
55
+ */
56
+ componentWillUnmount(): void;
53
57
  /**
54
58
  * Runs when the MrlRovingTabindex component updates
55
59
  * @param {RovingPropTypes} prevProps - the props before the component updated
56
60
  */
57
61
  componentDidUpdate(prevProps: RovingPropTypes): void;
58
62
  handleRef: (ref: HTMLDivElement) => HTMLDivElement;
63
+ /**
64
+ * Handles focus changes to detect when focus leaves the roving tabindex container
65
+ * @param {FocusEvent} event - the focus event
66
+ * @returns {void}
67
+ */
68
+ handleFocusChange: (event: FocusEvent) => void;
59
69
  /**
60
70
  * Sets component array of elements
61
71
  * @returns {void}
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { MrlIconButtonProps, MrlMenuProps } from '../../../';
3
- import { RovingPropTypes } from '../../rovingTabindex/MrlRovingTabindex/MrlRovingTabindex';
4
3
  /**
5
4
  * Props for the MrlToolbar component.
6
5
  */
@@ -24,11 +23,6 @@ export interface MrlToolbarProps extends React.ComponentPropsWithRef<'div'> {
24
23
  * A boolean prop that sets RovingTabindex in the MrlToolbar
25
24
  */
26
25
  shouldUseRti?: boolean;
27
- /**
28
- * Props to pass to MrlRovingTabindex when shouldUseRti is true.
29
- * Only used when shouldUseRti is enabled.
30
- */
31
- rovingTabindexProps?: Omit<RovingPropTypes, 'children'>;
32
26
  /**
33
27
  * Sets the size of the toolbar - defaults to 'small'
34
28
  */