@muraldevkit/ui-toolkit 2.36.0 → 2.38.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.
@@ -16,6 +16,10 @@ interface TooltipConfig {
16
16
  * The anchor of the tooltip relative to the button
17
17
  */
18
18
  anchor?: MrlTooltipAnchor;
19
+ /**
20
+ * The data-qa attribute for the tooltip
21
+ */
22
+ dataQa?: string;
19
23
  }
20
24
  export interface MrlButtonProps extends Omit<MrlComponentProps, 'style'>, React.ComponentProps<'button'> {
21
25
  /**
@@ -16,6 +16,8 @@ interface MrlMenuItemProps {
16
16
  id?: string;
17
17
  /** Callback to be called when the menu item is clicked */
18
18
  onClick: (e: React.MouseEvent<HTMLElement>) => void;
19
+ /** Callback to be called when the menu item is hovered */
20
+ onHover?: (e?: React.MouseEvent) => void;
19
21
  /** Data-qa attribute for the menu item */
20
22
  dataQa?: string;
21
23
  /** If the menu item is selected */
@@ -29,5 +31,5 @@ interface MrlMenuItemProps {
29
31
  * @param {MrlMenuItemProps} props - The props for the MrlMenuItem component
30
32
  * @returns {Element} - rendered MrlMenuItem component
31
33
  */
32
- export declare function MrlMenuItem({ ariaDescribedBy, children, className, dataQa, disabled, icon, id, onClick, selected }: MrlMenuItemProps): JSX.Element;
34
+ export declare function MrlMenuItem({ ariaDescribedBy, children, className, dataQa, disabled, icon, id, onClick, onHover, selected }: MrlMenuItemProps): JSX.Element;
33
35
  export {};
@@ -9,6 +9,8 @@ interface MrlTooltipProps {
9
9
  * Attributes that are applied to the component during the initial render.
10
10
  *
11
11
  * Example usage: html attributes, custom data attributes (data-qa), aria
12
+ *
13
+ * @deprecated please use props for component instead
12
14
  */
13
15
  attrs?: AttrsObject;
14
16
  /**
@@ -18,6 +20,8 @@ interface MrlTooltipProps {
18
20
  * are passed in the component will not have event handling for the additional child elements.
19
21
  */
20
22
  children: React.ReactElement;
23
+ /** The data-qa attribute for the tooltip */
24
+ dataQa?: string;
21
25
  /** The kind of tooltip to be rendered */
22
26
  kind?: MrlTooltipVariant;
23
27
  /** The placement of the tooltip in relation to its trigger */
@@ -13,8 +13,12 @@ interface MrlTooltipContentProps {
13
13
  * Attributes that are applied to the component during the initial render.
14
14
  *
15
15
  * Example usage: html attributes, custom data attributes (data-qa), aria
16
+ *
17
+ * @deprecated please use props for component instead
16
18
  */
17
19
  attrs: AttrsObject;
20
+ /** dataQa attribute for tooltip */
21
+ dataQa?: string;
18
22
  /** The kind of tooltip to be rendered */
19
23
  kind: MrlTooltipVariant;
20
24
  /** The id of the tooltip used for aria-describedby in the parent component */