@muraldevkit/ui-toolkit 2.42.0 → 2.43.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/button/MrlIconButton/MrlIconButton.d.ts +2 -0
- package/dist/components/portal/MrlPortal.d.ts +3 -2
- package/dist/components/tooltip/MrlTooltip/MrlTooltip.d.ts +14 -1
- package/dist/index.js +1 -1
- package/dist/styles/MrlTooltipContent/global.scss +4 -9
- package/package.json +1 -1
- package/dist/styles/MrlTooltip/module.scss +0 -3
|
@@ -7,6 +7,8 @@ import './MrlIconButton.scss';
|
|
|
7
7
|
export interface MrlIconButtonProps extends Omit<MrlComponentProps, 'style'>, React.ComponentProps<'button'> {
|
|
8
8
|
/**
|
|
9
9
|
* Applies additional HTML attributes to the button element.
|
|
10
|
+
*
|
|
11
|
+
* @deprecated
|
|
10
12
|
*/
|
|
11
13
|
attrs?: AttrsObject;
|
|
12
14
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export interface PortalProps {
|
|
2
|
+
export interface PortalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
4
5
|
id?: string;
|
|
5
6
|
}
|
|
6
7
|
export declare const MRL_PORTAL_ID = "mrl-root-portal";
|
|
@@ -11,4 +12,4 @@ export declare const MRL_PORTAL_ID = "mrl-root-portal";
|
|
|
11
12
|
* @param PortalProps Portal only takes children. Contact the platform team if you need to extend this.
|
|
12
13
|
* @returns MrlPortal component
|
|
13
14
|
*/
|
|
14
|
-
export declare const MrlPortal: ({ children, id }: PortalProps) => React.ReactElement | null;
|
|
15
|
+
export declare const MrlPortal: ({ children, className, id, ...remainingProps }: PortalProps) => React.ReactElement | null;
|
|
@@ -20,8 +20,18 @@ interface MrlTooltipProps {
|
|
|
20
20
|
* are passed in the component will not have event handling for the additional child elements.
|
|
21
21
|
*/
|
|
22
22
|
children: React.ReactElement;
|
|
23
|
+
/** Whether the tooltip should close when clicked */
|
|
24
|
+
clickToClose?: boolean;
|
|
23
25
|
/** The data-qa attribute for the tooltip */
|
|
24
26
|
dataQa?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to disable the screen reader text
|
|
29
|
+
*
|
|
30
|
+
* !!! only use this prop if you are sure that the tooltip content is not needed for screen reader users !!!
|
|
31
|
+
*/
|
|
32
|
+
disableScreenReaderText?: boolean;
|
|
33
|
+
/** Whether to disable the tooltip hover action that keeps it open */
|
|
34
|
+
disableTooltipHover?: boolean;
|
|
25
35
|
/** The kind of tooltip to be rendered */
|
|
26
36
|
kind?: MrlTooltipVariant;
|
|
27
37
|
/** The placement of the tooltip in relation to its trigger */
|
|
@@ -40,5 +50,8 @@ Pointing devices that can hover, but for which doing so is inconvenient and not
|
|
|
40
50
|
* @param {MrlTooltipProps} props - The props of the component
|
|
41
51
|
* @returns {HTMLElement} a configured Tooltip component
|
|
42
52
|
*/
|
|
43
|
-
export declare const MrlTooltip:
|
|
53
|
+
export declare const MrlTooltip: {
|
|
54
|
+
(props: MrlTooltipProps): ReactElement;
|
|
55
|
+
displayName: string;
|
|
56
|
+
};
|
|
44
57
|
export {};
|