@muraldevkit/ui-toolkit 2.77.1-dev-7hT9.1 → 2.78.0-dev-G53p.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.
- package/dist/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.d.ts +2 -2
- package/dist/components/button/MrlButton/MrlButton.d.ts +1 -1
- package/dist/components/button/MrlIconButton/MrlIconButton.d.ts +7 -7
- package/dist/components/callout/MrlCallout/MrlCallout.d.ts +1 -1
- package/dist/components/container/MrlContainer/MrlContainer.d.ts +1 -1
- package/dist/components/error-boundary/MrlErrorBoundary.d.ts +1 -1
- package/dist/components/form/checkbox/MrlCheckbox/MrlCheckbox.d.ts +1 -1
- package/dist/components/form/constants.d.ts +1 -1
- package/dist/components/form/fieldset/MrlFieldset/MrlFieldset.d.ts +1 -1
- package/dist/components/form/label/MrlLabel/MrlLabel.d.ts +1 -1
- package/dist/components/form/label/MrlLabelWithDescription/MrlLabelWithDescription.d.ts +1 -1
- package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.d.ts +2 -2
- package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInputRightIcon.d.ts +1 -1
- package/dist/components/form/text-input/MrlTextInput/MrlTextInput.d.ts +1 -1
- package/dist/components/form/text-input/MrlTextInput/MrlTextInputRightIcon.d.ts +1 -1
- package/dist/components/form/textarea/MrlEditableTextarea/MrlEditableTextarea.d.ts +2 -2
- package/dist/components/form/textarea/MrlEditableTextarea/MrlEditableTextareaRightButton.d.ts +1 -1
- package/dist/components/layout/context/LayoutContext.d.ts +2 -2
- package/dist/components/menu/MrlMenu/MrlMenu.d.ts +2 -2
- package/dist/components/menu/MrlMenuItem/MrlMenuItem.d.ts +5 -5
- package/dist/components/menu/MrlMenuItemLink/MrlMenuItemLink.d.ts +1 -1
- package/dist/components/menu/context/MrlMenuContext.d.ts +1 -1
- package/dist/components/modal/MrlModal/MrlModal.d.ts +2 -2
- package/dist/components/modal/MrlModalContent/MrlModalContent.d.ts +1 -1
- package/dist/components/modal/MrlModalFooter/MrlModalFooter.d.ts +1 -1
- package/dist/components/modal/MrlModalHeader/MrlModalHeader.d.ts +1 -1
- package/dist/components/modal/MrlModalHeaderNative/MrlModalHeaderNative.d.ts +1 -1
- package/dist/components/navigation-sidebar/MrlSidebarNavGroup/MrlSidebarNavGroup.d.ts +1 -1
- package/dist/components/navigation-sidebar/MrlSidebarNavItem/MrlSidebarNavItem.d.ts +1 -1
- package/dist/components/notification/MrlBlockNotification/MrlBlockNotification.d.ts +4 -4
- package/dist/components/notification/MrlInlineNotification/MrlInlineNotification.d.ts +22 -0
- package/dist/components/notification/MrlInlineNotification/index.d.ts +1 -0
- package/dist/components/notification/MrlToast/MrlToast.d.ts +1 -1
- package/dist/components/notification/index.d.ts +1 -0
- package/dist/components/pagination/MrlPagination/MrlPagination.d.ts +1 -1
- package/dist/components/pagination/MrlPaginationButton/MrlPaginationButton.d.ts +1 -1
- package/dist/components/panel/MrlPanel/MrlPanel.d.ts +4 -4
- package/dist/components/panel/MrlPanelFooter/MrlPanelFooter.d.ts +3 -3
- package/dist/components/panel/MrlPanelStickyHeader/MrlPanelStickyHeader.d.ts +3 -3
- package/dist/components/popover/MrlPopover/MrlPopover.d.ts +2 -2
- package/dist/components/portal/MrlPortal.d.ts +1 -1
- package/dist/components/skeleton/MrlSkeleton/MrlSkeleton.d.ts +1 -1
- package/dist/components/skeleton/MrlSkeletonText/MrlSkeletonText.d.ts +1 -1
- package/dist/components/svg/MrlSvg/MrlSvg.d.ts +1 -1
- package/dist/components/svg/MrlSvgAnimate/MrlSvgAnimate.d.ts +1 -1
- package/dist/components/tabs/MrlTab/MrlTab.d.ts +1 -1
- package/dist/components/tabs/MrlTabContent/MrlTabContent.d.ts +1 -1
- package/dist/components/tabs/MrlTabGroup/MrlTabGroup.d.ts +1 -1
- package/dist/components/tabs/MrlTabs/MrlTabs.d.ts +1 -1
- package/dist/components/text/MrlText/MrlText.d.ts +1 -1
- package/dist/components/text/MrlTextHeading/MrlTextHeading.d.ts +1 -1
- package/dist/components/toolbar/MrlToolbar/MrlToolbar.d.ts +3 -3
- package/dist/components/toolbar/MrlToolbarButton/MrlToolbarButton.d.ts +3 -3
- package/dist/components/tooltip/MrlTooltip/MrlTooltip.d.ts +2 -2
- package/dist/components/tooltip/MrlTooltip/utilities.d.ts +1 -1
- package/dist/components/tooltip/MrlTooltipContent/MrlTooltipContent.d.ts +2 -2
- package/dist/contexts/MrlDeviceProvider/MrlDeviceProvider.d.ts +1 -1
- package/dist/hooks/useAutoClose/useAutoClose.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/MrlInlineNotification/module.scss +28 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MrlSvgAnimateProps } from '../../svg/MrlSvgAnimate/MrlSvgAnimate';
|
|
1
|
+
import React from 'react';
|
|
3
2
|
import { MrlIconButtonProps } from '../MrlIconButton/MrlIconButton';
|
|
3
|
+
import { MrlSvgAnimateProps } from '../../svg/MrlSvgAnimate/MrlSvgAnimate';
|
|
4
4
|
import './MrlAnimatedIconButton.scss';
|
|
5
5
|
interface MrlAnimatedIconButtonProps extends Omit<MrlIconButtonProps, 'icon'> {
|
|
6
6
|
icon: MrlSvgAnimateProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { allowedButtonValues, MrlButtonKind, MrlButtonSize, ToggleAria, IconPosition } from '../constants';
|
|
3
3
|
import { MrlTooltipAnchor, MrlTooltipPosition } from '../../';
|
|
4
4
|
import { AttrsObject, MrlComponentProps } from '../../../utils';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { ComponentProps, KeyboardEvent, MouseEvent, ReactElement } from 'react';
|
|
2
2
|
import { MrlButtonKind, MrlButtonSize, MrlGhostIconButtonSize, ToggleAria } from '../constants';
|
|
3
3
|
import { AttrsObject, MrlComponentProps } from '../../../utils';
|
|
4
4
|
import { MrlTooltipAnchor, MrlTooltipPosition, MrlTooltipVariant } from '../../tooltip/constants';
|
|
5
5
|
import { MrlButtonState, ToggleStyle } from '../../';
|
|
6
6
|
import { MrlDeviceClient } from '../../../contexts';
|
|
7
7
|
import './MrlIconButton.scss';
|
|
8
|
-
export interface MrlIconButtonProps extends Omit<MrlComponentProps, 'style'>,
|
|
8
|
+
export interface MrlIconButtonProps extends Omit<MrlComponentProps, 'style'>, ComponentProps<'button'> {
|
|
9
9
|
/**
|
|
10
10
|
* Applies additional HTML attributes to the button element.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export interface MrlIconButtonProps extends Omit<MrlComponentProps, 'style'>, Re
|
|
|
15
15
|
/**
|
|
16
16
|
* Allow developers to add badge to buttons.
|
|
17
17
|
*/
|
|
18
|
-
badge?:
|
|
18
|
+
badge?: ReactElement;
|
|
19
19
|
/** Additional class to add to the button */
|
|
20
20
|
className?: string;
|
|
21
21
|
/**
|
|
@@ -27,7 +27,7 @@ export interface MrlIconButtonProps extends Omit<MrlComponentProps, 'style'>, Re
|
|
|
27
27
|
/**
|
|
28
28
|
* The icon that will be rendered.
|
|
29
29
|
*/
|
|
30
|
-
icon:
|
|
30
|
+
icon: ReactElement;
|
|
31
31
|
/**
|
|
32
32
|
* Changes the visual emphasis of the button.
|
|
33
33
|
*
|
|
@@ -45,15 +45,15 @@ export interface MrlIconButtonProps extends Omit<MrlComponentProps, 'style'>, Re
|
|
|
45
45
|
/**
|
|
46
46
|
* onClick event for the button.
|
|
47
47
|
*/
|
|
48
|
-
onClick?: (e:
|
|
48
|
+
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
49
49
|
/**
|
|
50
50
|
* onKeyDown event for the button.
|
|
51
51
|
*/
|
|
52
|
-
onKeyUp?: (e:
|
|
52
|
+
onKeyUp?: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
53
53
|
/**
|
|
54
54
|
* onMouseUp event for the button.
|
|
55
55
|
*/
|
|
56
|
-
onMouseUp?: (e:
|
|
56
|
+
onMouseUp?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
57
57
|
/**
|
|
58
58
|
* The placement of the tooltip in relation to the button.
|
|
59
59
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { InputStates, MrlFormInputError } from '../../constants';
|
|
3
|
-
interface MrlEditableTextInputProps extends
|
|
3
|
+
interface MrlEditableTextInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
4
4
|
/** Id of the text input */
|
|
5
5
|
inputId: string;
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { TextareaHTMLAttributes } from 'react';
|
|
2
2
|
import './MrlEditableTextarea.global.scss';
|
|
3
3
|
import { InputStates, MrlFormInputError } from '../../..';
|
|
4
|
-
interface MrlEditableTextareaProps extends
|
|
4
|
+
interface MrlEditableTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
5
5
|
/** The value of the textarea used to make it a controlled input */
|
|
6
6
|
value: string;
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
type LayoutContextType = {
|
|
3
3
|
isSidebarRendered: boolean;
|
|
4
4
|
isTopbarRendered: boolean;
|
|
@@ -12,7 +12,7 @@ type LayoutProviderProps = {
|
|
|
12
12
|
* @param {LayoutProviderProps} props - The props for the component.
|
|
13
13
|
* @returns A React element that provides the layout context to children.
|
|
14
14
|
*/
|
|
15
|
-
export declare function LayoutProvider({ children }: LayoutProviderProps):
|
|
15
|
+
export declare function LayoutProvider({ children }: LayoutProviderProps): ReactElement;
|
|
16
16
|
/**
|
|
17
17
|
* Custom hook to access layout context values.
|
|
18
18
|
* This hook ensures that the component using it is wrapped within a LayoutProvider.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
2
|
import { PortalProps } from '../../../components';
|
|
3
3
|
import { MenuPosition, MenuAlignment, ActionState, CustomMenuPosition } from '../constants';
|
|
4
4
|
export interface MrlMenuProps {
|
|
@@ -71,7 +71,7 @@ export interface MrlMenuProps {
|
|
|
71
71
|
/**
|
|
72
72
|
* Reference to the DOM element that triggers this menu.
|
|
73
73
|
*/
|
|
74
|
-
triggerRef?:
|
|
74
|
+
triggerRef?: RefObject<HTMLButtonElement>;
|
|
75
75
|
/**
|
|
76
76
|
* Trigger stop propagation on click
|
|
77
77
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { DSIconType } from '../../../';
|
|
3
3
|
export interface MrlMenuItemProps {
|
|
4
4
|
/** ID for associated description */
|
|
@@ -6,7 +6,7 @@ export interface MrlMenuItemProps {
|
|
|
6
6
|
/**
|
|
7
7
|
Children to be rendered within the menu component
|
|
8
8
|
*/
|
|
9
|
-
children:
|
|
9
|
+
children: ReactNode | string;
|
|
10
10
|
/** Classname for the menu item */
|
|
11
11
|
className?: string;
|
|
12
12
|
/** If the menu item is disabled */
|
|
@@ -16,11 +16,11 @@ export interface MrlMenuItemProps {
|
|
|
16
16
|
/** Unique ID for the menu item */
|
|
17
17
|
id?: string;
|
|
18
18
|
/** Callback to be called when the menu item is clicked */
|
|
19
|
-
onClick?: (e?:
|
|
19
|
+
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
20
20
|
/** Callback to be called when the menu item is hovered */
|
|
21
|
-
onMouseOver?: (e?:
|
|
21
|
+
onMouseOver?: (e?: MouseEvent) => void;
|
|
22
22
|
/** Callback to be called when the menu item is hovered out */
|
|
23
|
-
onMouseOut?: (e?:
|
|
23
|
+
onMouseOut?: (e?: MouseEvent) => void;
|
|
24
24
|
/** Data-qa attribute for the menu item */
|
|
25
25
|
dataQa?: string;
|
|
26
26
|
/** If the menu item is selected */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
import { MrlComponentProps } from '../../../utils';
|
|
3
3
|
import { ModalSize, ModalState } from '../constants';
|
|
4
4
|
import { MrlDeviceClient } from '../../../contexts/MrlDeviceProvider';
|
|
@@ -55,5 +55,5 @@ interface ModalProps extends MrlComponentProps {
|
|
|
55
55
|
* @param {React.ReactElement} props.children - Children to be rendered within the modal. The first child is used as the trigger.
|
|
56
56
|
* @returns {React.ReactElement} an instance of the MrlModal
|
|
57
57
|
*/
|
|
58
|
-
export declare const MrlModal: ({ ariaLabel, children, className, client, closable, loading, size, state, hookClose, preventBackgroundScroll, attrs }: ModalProps) =>
|
|
58
|
+
export declare const MrlModal: ({ ariaLabel, children, className, client, closable, loading, size, state, hookClose, preventBackgroundScroll, attrs }: ModalProps) => ReactElement;
|
|
59
59
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { AttrsObject } from '../../../utils';
|
|
3
3
|
import { NotificationKind, NotificationIconConfig, NotificationScope, NotificationState, NotificationLevel } from '../constants';
|
|
4
4
|
import { DSIconType } from '../..';
|
|
@@ -20,11 +20,11 @@ export interface MrlBlockNotificationProps {
|
|
|
20
20
|
* contain interactive elements. Autoclosing interactive elements is an accessibility
|
|
21
21
|
* anti-pattern and should be avoided.
|
|
22
22
|
*/
|
|
23
|
-
children?:
|
|
23
|
+
children?: ReactNode;
|
|
24
24
|
/**
|
|
25
25
|
* Adds CTA button to the notification
|
|
26
26
|
*/
|
|
27
|
-
cta?:
|
|
27
|
+
cta?: ReactElement;
|
|
28
28
|
/**
|
|
29
29
|
* The kind of notification to display.
|
|
30
30
|
*
|
|
@@ -46,7 +46,7 @@ export interface MrlBlockNotificationProps {
|
|
|
46
46
|
/**
|
|
47
47
|
* Sets the primary content for the notification
|
|
48
48
|
*/
|
|
49
|
-
message?:
|
|
49
|
+
message?: ReactNode;
|
|
50
50
|
/**
|
|
51
51
|
* Sets the scope of the notification
|
|
52
52
|
*/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DSIconType } from '../../svg';
|
|
3
|
+
export type InlineNotificationKind = 'error' | 'info' | 'warning' | 'success' | 'general';
|
|
4
|
+
interface PropTypes {
|
|
5
|
+
/** a custom DS icon which is only applied if the alert is not an error, info, or warning type */
|
|
6
|
+
customIcon?: DSIconType;
|
|
7
|
+
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* Accepted values: error, info, warning, success, general
|
|
10
|
+
*/
|
|
11
|
+
kind: InlineNotificationKind;
|
|
12
|
+
message: string;
|
|
13
|
+
['data-qa']?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* MrlInlineNotification is a notification component that can be used to display messages to the user.
|
|
17
|
+
*
|
|
18
|
+
* @param props - The properties of the component.
|
|
19
|
+
* @returns A React component.
|
|
20
|
+
*/
|
|
21
|
+
export declare const MrlInlineNotification: ({ customIcon, id, kind, message, ["data-qa"]: qa }: PropTypes) => React.ReactElement;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MrlInlineNotification } from './MrlInlineNotification';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Props for the MrlPanel component.
|
|
4
4
|
*/
|
|
5
|
-
interface MrlPanelProps extends
|
|
5
|
+
interface MrlPanelProps extends ComponentPropsWithRef<'div'> {
|
|
6
6
|
/**
|
|
7
7
|
* A string value used for data-qa attribute.
|
|
8
8
|
*/
|
|
@@ -15,13 +15,13 @@ interface MrlPanelProps extends React.ComponentPropsWithRef<'div'> {
|
|
|
15
15
|
* The custom header element to be rendered in the panel.
|
|
16
16
|
* When a custom header is used developers need to provide th aria-label and aria-describedby.
|
|
17
17
|
*/
|
|
18
|
-
header?:
|
|
18
|
+
header?: ReactNode;
|
|
19
19
|
/**
|
|
20
20
|
* The custom top actions to be rendered in the panel header.
|
|
21
21
|
* By default top actions are rendered on the right side of the title and include a MrlDivider at the end.
|
|
22
22
|
* The close button should not be included as part of the top actions.
|
|
23
23
|
*/
|
|
24
|
-
topActions?:
|
|
24
|
+
topActions?: ReactNode;
|
|
25
25
|
/**
|
|
26
26
|
* The title of the panel.
|
|
27
27
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Props for the MrlPanelFooter component.
|
|
4
4
|
*/
|
|
5
|
-
interface MrlPanelFooterProps extends
|
|
5
|
+
interface MrlPanelFooterProps extends ComponentPropsWithRef<'footer'> {
|
|
6
6
|
/**
|
|
7
7
|
* The children of the MrlPanelFooter component.
|
|
8
8
|
*/
|
|
9
|
-
children?:
|
|
9
|
+
children?: ReactNode;
|
|
10
10
|
/**
|
|
11
11
|
* Specifies whether to show the divider.
|
|
12
12
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Props for the MrlPanelStickyHeader component.
|
|
4
4
|
*/
|
|
5
|
-
interface MrlPanelStickyHeaderProps extends
|
|
5
|
+
interface MrlPanelStickyHeaderProps extends ComponentPropsWithRef<'div'> {
|
|
6
6
|
/**
|
|
7
7
|
* The children of the MrlPanelStickyHeader component.
|
|
8
8
|
*/
|
|
9
|
-
children?:
|
|
9
|
+
children?: ReactNode;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* MrlPanelStickyHeader component.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
2
|
import { PortalProps } from '../../';
|
|
3
3
|
import { MenuPosition, MenuAlignment, ActionState, CustomMenuPosition } from '../../menu/constants';
|
|
4
4
|
export interface MrlPopoverProps {
|
|
@@ -75,7 +75,7 @@ export interface MrlPopoverProps {
|
|
|
75
75
|
/**
|
|
76
76
|
* Reference to the DOM element that triggers this menu.
|
|
77
77
|
*/
|
|
78
|
-
triggerRef?:
|
|
78
|
+
triggerRef?: RefObject<HTMLElement>;
|
|
79
79
|
/**
|
|
80
80
|
* If the menu should be rendered with the inverse theme
|
|
81
81
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { AttrsObject } from '../../../utils';
|
|
3
3
|
import { LevelType, HeadingHierarchies, HeadingSizes, TextSizes, HeadingKinds } from '../constants';
|
|
4
4
|
interface MrlTextHeadingProps extends React.ComponentPropsWithRef<'h1'> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { MrlIconButtonProps, MrlMenuProps } from '../../../';
|
|
3
3
|
/**
|
|
4
4
|
* Props for the MrlToolbar component.
|
|
5
5
|
*/
|
|
6
|
-
export interface MrlToolbarProps extends
|
|
6
|
+
export interface MrlToolbarProps extends ComponentPropsWithRef<'div'> {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
kind?: 'default' | 'inverse' | 'skeleton';
|
|
9
9
|
/**
|
|
@@ -35,4 +35,4 @@ export interface MrlToolbarProps extends React.ComponentPropsWithRef<'div'> {
|
|
|
35
35
|
* @param props The MrlToolbar component properties.
|
|
36
36
|
* @returns The MrlToolbar component.
|
|
37
37
|
*/
|
|
38
|
-
export declare const MrlToolbar: (props: MrlToolbarProps) =>
|
|
38
|
+
export declare const MrlToolbar: (props: MrlToolbarProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MouseEvent, ReactElement } from 'react';
|
|
2
2
|
import { MrlIconButtonProps, MrlMenuItemProps } from '../../../';
|
|
3
3
|
/**
|
|
4
4
|
* Props for the MrlToolbarButton component.
|
|
@@ -9,7 +9,7 @@ export interface MrlToolbarButtonProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* The icon that will be rendered.
|
|
11
11
|
*/
|
|
12
|
-
icon:
|
|
12
|
+
icon: ReactElement;
|
|
13
13
|
includeInRoving?: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* A prop used to set a toolbar button to never move into the menu.
|
|
@@ -18,7 +18,7 @@ export interface MrlToolbarButtonProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* onClick event for the button.
|
|
20
20
|
*/
|
|
21
|
-
onClick?: (e?:
|
|
21
|
+
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
22
22
|
/**
|
|
23
23
|
* Props used to control the display of the button in the menu.
|
|
24
24
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
import { AttrsObject } from '../../../utils';
|
|
3
3
|
import { MrlTooltipAnchor, MrlTooltipPosition, MrlTooltipVariant } from '../constants';
|
|
4
4
|
import '../../../styles/shared/a11y-helpers/a11y.global.scss';
|
|
@@ -52,5 +52,5 @@ Pointing devices that can hover, but for which doing so is inconvenient and not
|
|
|
52
52
|
* @param {MrlTooltipProps} props - The props of the component
|
|
53
53
|
* @returns {HTMLElement} a configured Tooltip component
|
|
54
54
|
*/
|
|
55
|
-
export declare const MrlTooltip: React.MemoExoticComponent<(props: MrlTooltipProps) =>
|
|
55
|
+
export declare const MrlTooltip: React.MemoExoticComponent<(props: MrlTooltipProps) => ReactElement>;
|
|
56
56
|
export {};
|