@muraldevkit/ui-toolkit 4.10.1 → 4.11.0-dev-ryRg.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AttrsObject } from '../../../utils';
|
|
3
|
-
import { MrlTooltipAnchor, MrlTooltipPosition, MrlTooltipVariant } from '../constants';
|
|
3
|
+
import { MrlTooltipAnchor, MrlTooltipPosition, MrlTooltipState, MrlTooltipVariant } from '../constants';
|
|
4
4
|
import '../../../styles/shared/a11y-helpers/a11y.global.scss';
|
|
5
5
|
interface MrlTooltipProps {
|
|
6
6
|
/** The arrow position of the tooltip in relation to its trigger's content */
|
|
@@ -24,6 +24,8 @@ interface MrlTooltipProps {
|
|
|
24
24
|
clickToClose?: boolean;
|
|
25
25
|
/** The data-qa attribute for the tooltip */
|
|
26
26
|
dataQa?: string;
|
|
27
|
+
/** The state value to determine if the tooltip should be displayed */
|
|
28
|
+
display?: MrlTooltipState;
|
|
27
29
|
/**
|
|
28
30
|
* Whether to disable the screen reader text
|
|
29
31
|
*
|
|
@@ -32,8 +34,6 @@ interface MrlTooltipProps {
|
|
|
32
34
|
disableScreenReaderText?: boolean;
|
|
33
35
|
/** Whether to disable the tooltip hover action that keeps it open */
|
|
34
36
|
disableTooltipHover?: boolean;
|
|
35
|
-
/** Whether to force hide the tooltip */
|
|
36
|
-
forceHideTooltip?: boolean;
|
|
37
37
|
/** The kind of tooltip to be rendered */
|
|
38
38
|
kind?: MrlTooltipVariant;
|
|
39
39
|
/** The placement of the tooltip in relation to its trigger */
|