@muraldevkit/ui-toolkit 2.79.2 → 2.79.4
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/MrlInlineMessage/MrlInlineMessage.d.ts +3 -4
- package/dist/components/notification/MrlInlineMessage/index.d.ts +1 -1
- package/dist/components/notification/MrlToast/MrlToast.d.ts +1 -1
- 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/svg/config.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/MrlEditableTextInput/module.scss +2 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MrlIconButtonProps } from '../MrlIconButton/MrlIconButton';
|
|
1
|
+
import * as React from 'react';
|
|
3
2
|
import { MrlSvgAnimateProps } from '../../svg/MrlSvgAnimate/MrlSvgAnimate';
|
|
3
|
+
import { MrlIconButtonProps } from '../MrlIconButton/MrlIconButton';
|
|
4
4
|
import './MrlAnimatedIconButton.scss';
|
|
5
5
|
interface MrlAnimatedIconButtonProps extends Omit<MrlIconButtonProps, 'icon'> {
|
|
6
6
|
icon: MrlSvgAnimateProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as 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 * as React 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'>, ComponentProps<'button'> {
|
|
8
|
+
export interface MrlIconButtonProps extends Omit<MrlComponentProps, 'style'>, React.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'>, Co
|
|
|
15
15
|
/**
|
|
16
16
|
* Allow developers to add badge to buttons.
|
|
17
17
|
*/
|
|
18
|
-
badge?: ReactElement;
|
|
18
|
+
badge?: React.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'>, Co
|
|
|
27
27
|
/**
|
|
28
28
|
* The icon that will be rendered.
|
|
29
29
|
*/
|
|
30
|
-
icon: ReactElement;
|
|
30
|
+
icon: React.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'>, Co
|
|
|
45
45
|
/**
|
|
46
46
|
* onClick event for the button.
|
|
47
47
|
*/
|
|
48
|
-
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
48
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
49
49
|
/**
|
|
50
50
|
* onKeyDown event for the button.
|
|
51
51
|
*/
|
|
52
|
-
onKeyUp?: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
52
|
+
onKeyUp?: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
53
53
|
/**
|
|
54
54
|
* onMouseUp event for the button.
|
|
55
55
|
*/
|
|
56
|
-
onMouseUp?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
56
|
+
onMouseUp?: (e: React.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 * as React from 'react';
|
|
2
2
|
import { InputStates, MrlFormInputError } from '../../constants';
|
|
3
|
-
interface MrlEditableTextInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
interface MrlEditableTextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
4
|
/** Id of the text input */
|
|
5
5
|
inputId: string;
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import './MrlEditableTextarea.global.scss';
|
|
3
3
|
import { InputStates, MrlFormInputError } from '../../..';
|
|
4
|
-
interface MrlEditableTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
+
interface MrlEditableTextareaProps extends React.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 * as React 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): ReactElement;
|
|
15
|
+
export declare function LayoutProvider({ children }: LayoutProviderProps): React.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 * as React 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?: RefObject<HTMLButtonElement>;
|
|
74
|
+
triggerRef?: React.RefObject<HTMLButtonElement>;
|
|
75
75
|
/**
|
|
76
76
|
* Trigger stop propagation on click
|
|
77
77
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React 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: ReactNode | string;
|
|
9
|
+
children: React.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?: MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
+
onClick?: (e?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
20
20
|
/** Callback to be called when the menu item is hovered */
|
|
21
|
-
onMouseOver?: (e?: MouseEvent) => void;
|
|
21
|
+
onMouseOver?: (e?: React.MouseEvent) => void;
|
|
22
22
|
/** Callback to be called when the menu item is hovered out */
|
|
23
|
-
onMouseOut?: (e?: MouseEvent) => void;
|
|
23
|
+
onMouseOut?: (e?: React.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 * as React 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) => ReactElement;
|
|
58
|
+
export declare const MrlModal: ({ ariaLabel, children, className, client, closable, loading, size, state, hookClose, preventBackgroundScroll, attrs }: ModalProps) => React.ReactElement;
|
|
59
59
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React 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?: ReactNode;
|
|
23
|
+
children?: React.ReactNode;
|
|
24
24
|
/**
|
|
25
25
|
* Adds CTA button to the notification
|
|
26
26
|
*/
|
|
27
|
-
cta?: ReactElement;
|
|
27
|
+
cta?: React.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?: ReactNode;
|
|
49
|
+
message?: React.ReactNode;
|
|
50
50
|
/**
|
|
51
51
|
* Sets the scope of the notification
|
|
52
52
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { DSIconType } from '../../svg';
|
|
3
3
|
export type InlineMessageKind = 'error' | 'info' | 'warning' | 'success' | 'helper';
|
|
4
|
-
interface
|
|
4
|
+
export interface MrlInlineMessageProps {
|
|
5
5
|
/**
|
|
6
6
|
* A custom DS icon which is only applied if the alert is not an error, info, or warning type
|
|
7
7
|
*/
|
|
@@ -33,5 +33,4 @@ interface PropTypes {
|
|
|
33
33
|
* @param props - The properties of the component.
|
|
34
34
|
* @returns A React component.
|
|
35
35
|
*/
|
|
36
|
-
export declare const MrlInlineMessage: ({ customIcon, id, kind, message, ["data-qa"]: qa }:
|
|
37
|
-
export {};
|
|
36
|
+
export declare const MrlInlineMessage: ({ customIcon, id, kind, message, ["data-qa"]: qa }: MrlInlineMessageProps) => React.ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MrlInlineMessage } from './MrlInlineMessage';
|
|
1
|
+
export { MrlInlineMessage, type MrlInlineMessageProps } from './MrlInlineMessage';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Props for the MrlPanel component.
|
|
4
4
|
*/
|
|
5
|
-
interface MrlPanelProps extends ComponentPropsWithRef<'div'> {
|
|
5
|
+
interface MrlPanelProps extends React.ComponentPropsWithRef<'div'> {
|
|
6
6
|
/**
|
|
7
7
|
* A string value used for data-qa attribute.
|
|
8
8
|
*/
|
|
@@ -15,13 +15,13 @@ interface MrlPanelProps extends 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?: ReactNode;
|
|
18
|
+
header?: React.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?: ReactNode;
|
|
24
|
+
topActions?: React.ReactNode;
|
|
25
25
|
/**
|
|
26
26
|
* The title of the panel.
|
|
27
27
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Props for the MrlPanelFooter component.
|
|
4
4
|
*/
|
|
5
|
-
interface MrlPanelFooterProps extends ComponentPropsWithRef<'footer'> {
|
|
5
|
+
interface MrlPanelFooterProps extends React.ComponentPropsWithRef<'footer'> {
|
|
6
6
|
/**
|
|
7
7
|
* The children of the MrlPanelFooter component.
|
|
8
8
|
*/
|
|
9
|
-
children?: ReactNode;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
10
|
/**
|
|
11
11
|
* Specifies whether to show the divider.
|
|
12
12
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Props for the MrlPanelStickyHeader component.
|
|
4
4
|
*/
|
|
5
|
-
interface MrlPanelStickyHeaderProps extends ComponentPropsWithRef<'div'> {
|
|
5
|
+
interface MrlPanelStickyHeaderProps extends React.ComponentPropsWithRef<'div'> {
|
|
6
6
|
/**
|
|
7
7
|
* The children of the MrlPanelStickyHeader component.
|
|
8
8
|
*/
|
|
9
|
-
children?: ReactNode;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* MrlPanelStickyHeader component.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React 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?: RefObject<HTMLElement>;
|
|
78
|
+
triggerRef?: React.RefObject<HTMLElement>;
|
|
79
79
|
/**
|
|
80
80
|
* If the menu should be rendered with the inverse theme
|
|
81
81
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as 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 * as React from 'react';
|
|
2
2
|
import { MrlIconButtonProps, MrlMenuProps } from '../../../';
|
|
3
3
|
/**
|
|
4
4
|
* Props for the MrlToolbar component.
|
|
5
5
|
*/
|
|
6
|
-
export interface MrlToolbarProps extends ComponentPropsWithRef<'div'> {
|
|
6
|
+
export interface MrlToolbarProps extends React.ComponentPropsWithRef<'div'> {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
kind?: 'default' | 'inverse' | 'skeleton';
|
|
9
9
|
/**
|
|
@@ -35,4 +35,4 @@ export interface MrlToolbarProps extends 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) => React.ReactElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React 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: ReactElement;
|
|
12
|
+
icon: React.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?: MouseEvent<HTMLButtonElement>) => void;
|
|
21
|
+
onClick?: (e?: React.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 * as React 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) => ReactElement>;
|
|
55
|
+
export declare const MrlTooltip: React.MemoExoticComponent<(props: MrlTooltipProps) => React.ReactElement>;
|
|
56
56
|
export {};
|