@muraldevkit/ui-toolkit 2.77.1-dev-7hT9.1 → 2.78.0-dev-b0Ku.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.
Files changed (64) hide show
  1. package/dist/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.d.ts +2 -2
  2. package/dist/components/button/MrlButton/MrlButton.d.ts +1 -1
  3. package/dist/components/button/MrlIconButton/MrlIconButton.d.ts +7 -7
  4. package/dist/components/callout/MrlCallout/MrlCallout.d.ts +1 -1
  5. package/dist/components/container/MrlContainer/MrlContainer.d.ts +1 -1
  6. package/dist/components/error-boundary/MrlErrorBoundary.d.ts +1 -1
  7. package/dist/components/form/checkbox/MrlCheckbox/MrlCheckbox.d.ts +1 -1
  8. package/dist/components/form/constants.d.ts +1 -1
  9. package/dist/components/form/fieldset/MrlFieldset/MrlFieldset.d.ts +1 -1
  10. package/dist/components/form/label/MrlLabel/MrlLabel.d.ts +1 -1
  11. package/dist/components/form/label/MrlLabelWithDescription/MrlLabelWithDescription.d.ts +1 -1
  12. package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.d.ts +2 -2
  13. package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInputRightIcon.d.ts +1 -1
  14. package/dist/components/form/text-input/MrlTextInput/MrlTextInput.d.ts +1 -1
  15. package/dist/components/form/text-input/MrlTextInput/MrlTextInputRightIcon.d.ts +1 -1
  16. package/dist/components/form/textarea/MrlEditableTextarea/MrlEditableTextarea.d.ts +2 -2
  17. package/dist/components/form/textarea/MrlEditableTextarea/MrlEditableTextareaRightButton.d.ts +1 -1
  18. package/dist/components/form/textarea/MrlTextarea/MrlTextarea.d.ts +3 -1
  19. package/dist/components/layout/context/LayoutContext.d.ts +2 -2
  20. package/dist/components/menu/MrlMenu/MrlMenu.d.ts +2 -2
  21. package/dist/components/menu/MrlMenuItem/MrlMenuItem.d.ts +5 -5
  22. package/dist/components/menu/MrlMenuItemLink/MrlMenuItemLink.d.ts +1 -1
  23. package/dist/components/menu/context/MrlMenuContext.d.ts +1 -1
  24. package/dist/components/modal/MrlModal/MrlModal.d.ts +2 -2
  25. package/dist/components/modal/MrlModalContent/MrlModalContent.d.ts +1 -1
  26. package/dist/components/modal/MrlModalFooter/MrlModalFooter.d.ts +1 -1
  27. package/dist/components/modal/MrlModalHeader/MrlModalHeader.d.ts +1 -1
  28. package/dist/components/modal/MrlModalHeaderNative/MrlModalHeaderNative.d.ts +1 -1
  29. package/dist/components/navigation-sidebar/MrlSidebarNavGroup/MrlSidebarNavGroup.d.ts +1 -1
  30. package/dist/components/navigation-sidebar/MrlSidebarNavItem/MrlSidebarNavItem.d.ts +1 -1
  31. package/dist/components/notification/MrlBlockNotification/MrlBlockNotification.d.ts +4 -4
  32. package/dist/components/notification/MrlInlineNotification/MrlInlineNotification.d.ts +37 -0
  33. package/dist/components/notification/MrlInlineNotification/index.d.ts +1 -0
  34. package/dist/components/notification/MrlToast/MrlToast.d.ts +1 -1
  35. package/dist/components/notification/index.d.ts +1 -0
  36. package/dist/components/pagination/MrlPagination/MrlPagination.d.ts +1 -1
  37. package/dist/components/pagination/MrlPaginationButton/MrlPaginationButton.d.ts +1 -1
  38. package/dist/components/panel/MrlPanel/MrlPanel.d.ts +4 -4
  39. package/dist/components/panel/MrlPanelFooter/MrlPanelFooter.d.ts +3 -3
  40. package/dist/components/panel/MrlPanelStickyHeader/MrlPanelStickyHeader.d.ts +3 -3
  41. package/dist/components/popover/MrlPopover/MrlPopover.d.ts +2 -2
  42. package/dist/components/portal/MrlPortal.d.ts +1 -1
  43. package/dist/components/skeleton/MrlSkeleton/MrlSkeleton.d.ts +1 -1
  44. package/dist/components/skeleton/MrlSkeletonText/MrlSkeletonText.d.ts +1 -1
  45. package/dist/components/svg/MrlSvg/MrlSvg.d.ts +1 -1
  46. package/dist/components/svg/MrlSvgAnimate/MrlSvgAnimate.d.ts +1 -1
  47. package/dist/components/svg/config.d.ts +1 -1
  48. package/dist/components/tabs/MrlTab/MrlTab.d.ts +1 -1
  49. package/dist/components/tabs/MrlTabContent/MrlTabContent.d.ts +1 -1
  50. package/dist/components/tabs/MrlTabGroup/MrlTabGroup.d.ts +1 -1
  51. package/dist/components/tabs/MrlTabs/MrlTabs.d.ts +1 -1
  52. package/dist/components/text/MrlText/MrlText.d.ts +1 -1
  53. package/dist/components/text/MrlTextHeading/MrlTextHeading.d.ts +1 -1
  54. package/dist/components/toolbar/MrlToolbar/MrlToolbar.d.ts +3 -3
  55. package/dist/components/toolbar/MrlToolbarButton/MrlToolbarButton.d.ts +3 -3
  56. package/dist/components/tooltip/MrlTooltip/MrlTooltip.d.ts +2 -2
  57. package/dist/components/tooltip/MrlTooltip/utilities.d.ts +1 -1
  58. package/dist/components/tooltip/MrlTooltipContent/MrlTooltipContent.d.ts +2 -2
  59. package/dist/contexts/MrlDeviceProvider/MrlDeviceProvider.d.ts +1 -1
  60. package/dist/hooks/useAutoClose/useAutoClose.d.ts +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/styles/MrlInlineNotification/module.scss +34 -0
  63. package/dist/styles/MrlTextarea/module.scss +6 -0
  64. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
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 * as React from 'react';
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 * as React from 'react';
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'>, React.ComponentProps<'button'> {
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?: React.ReactElement;
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: React.ReactElement;
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: React.MouseEvent<HTMLButtonElement>) => void;
48
+ onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
49
49
  /**
50
50
  * onKeyDown event for the button.
51
51
  */
52
- onKeyUp?: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
52
+ onKeyUp?: (e: KeyboardEvent<HTMLButtonElement>) => void;
53
53
  /**
54
54
  * onMouseUp event for the button.
55
55
  */
56
- onMouseUp?: (e: React.MouseEvent<HTMLButtonElement>) => void;
56
+ onMouseUp?: (e: MouseEvent<HTMLButtonElement>) => void;
57
57
  /**
58
58
  * The placement of the tooltip in relation to the button.
59
59
  */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { MrlPopoverProps } from '../../popover';
3
3
  export type MrlCalloutPopoverProps = Omit<MrlPopoverProps, 'children' | 'actionState' | 'isSubMenu' | 'triggerRef' | 'kind'>;
4
4
  interface MrlCalloutCTA {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { Kind } from '../constants';
3
3
  import { MrlComponentProps } from '../../../utils';
4
4
  export interface MrlContainerProps extends Omit<MrlComponentProps, 'style'>, React.ComponentProps<'div'> {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  interface ErrorProps {
3
3
  children?: React.ReactNode;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { AttrsObject } from '../../../../utils';
3
3
  import { CheckboxSelected, CheckboxStates, StaticIconConfig } from '../../constants';
4
4
  import './MrlCheckbox.global.scss';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { DSIconType } from '../svg';
3
3
  /**
4
4
  * This should be used to communciate error information for a specific input
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { AttrsObject } from '../../../../utils';
3
3
  interface MrlFieldsetProps {
4
4
  /** Applies additional HTML attributes to the fieldset element */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { AttrsObject } from '../../../../utils';
3
3
  import { LabelKind, LabelStates, StaticIconConfig } from '../../constants';
4
4
  interface MrlLabelProps extends React.HTMLAttributes<HTMLLabelElement> {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { StaticIconConfig } from '../../constants';
3
3
  interface MrlLabelWithDescriptionProps {
4
4
  /** Additional class to add to the container of the label and description */
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
1
+ import React, { InputHTMLAttributes } from 'react';
2
2
  import { InputStates, MrlFormInputError } from '../../constants';
3
- interface MrlEditableTextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ interface MrlEditableTextInputProps extends InputHTMLAttributes<HTMLInputElement> {
4
4
  /** Id of the text input */
5
5
  inputId: string;
6
6
  /**
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { DSIconType } from '../../..';
3
3
  export interface MrlEditableInputRightButtonProps {
4
4
  /** the action that should be executed when interacting with the icon */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { DSIconType } from '../../../';
3
3
  import { AttrsObject } from '../../../../utils';
4
4
  import { RightActionConfig, InputStates } from '../../constants';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { DSIconType } from '../../../';
3
3
  export interface MrlTextInputRightIconProps {
4
4
  /** the action that should be executed when interacting with the icon */
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ import React, { TextareaHTMLAttributes } from 'react';
2
2
  import './MrlEditableTextarea.global.scss';
3
3
  import { InputStates, MrlFormInputError } from '../../..';
4
- interface MrlEditableTextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
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 * as React from 'react';
1
+ import React from 'react';
2
2
  import { DSIconType } from '../../..';
3
3
  export interface MrlEditableTextareaRightButtonProps {
4
4
  /** the action that should be executed when interacting with the icon */
@@ -25,6 +25,8 @@ interface MrlTextareaProps {
25
25
  state?: 'disabled' | 'error';
26
26
  /** Additional class to add to the textarea */
27
27
  className?: string;
28
+ /** Autoexpand will automatically adjust the height of the textarea based on the amount of text within it */
29
+ autoExpand?: boolean;
28
30
  }
29
31
  /**
30
32
  * Allows the user to input plain text in a multi-line format
@@ -32,5 +34,5 @@ interface MrlTextareaProps {
32
34
  * @param {MrlTextareaProps} props - the component props
33
35
  * @returns a textarea element
34
36
  */
35
- export declare function MrlTextarea({ attrs, className, inputId, state, maxLength, placeholder, value }: MrlTextareaProps): JSX.Element;
37
+ export declare function MrlTextarea({ attrs, className, inputId, state, maxLength, placeholder, value, autoExpand }: MrlTextareaProps): JSX.Element;
36
38
  export {};
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
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): React.ReactElement;
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 * as React from 'react';
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?: React.RefObject<HTMLButtonElement>;
74
+ triggerRef?: RefObject<HTMLButtonElement>;
75
75
  /**
76
76
  * Trigger stop propagation on click
77
77
  *
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
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: React.ReactNode | string;
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?: React.MouseEvent<HTMLButtonElement>) => void;
19
+ onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
20
20
  /** Callback to be called when the menu item is hovered */
21
- onMouseOver?: (e?: React.MouseEvent) => void;
21
+ onMouseOver?: (e?: MouseEvent) => void;
22
22
  /** Callback to be called when the menu item is hovered out */
23
- onMouseOut?: (e?: React.MouseEvent) => void;
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 * as React from 'react';
1
+ import React from 'react';
2
2
  import { DSIconType } from '../../../';
3
3
  export interface MrlMenuItemLinkProps {
4
4
  /** ID for associated description */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  type MrlMenuContext = {
3
3
  /**
4
4
  * Close menu is shared in context to allow for closing the menu from a child component
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
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) => React.ReactElement;
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 * as React from 'react';
1
+ import React from 'react';
2
2
  interface MrlModalHeaderProps {
3
3
  /**
4
4
  * Children to be rendered within the component.
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { MrlComponentProps } from '../../../utils';
3
3
  import './MrlModalFooter.global.scss';
4
4
  interface MrlModalFooterProps extends MrlComponentProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { MrlComponentProps } from '../../../utils';
3
3
  export interface MrlModalHeaderProps extends MrlComponentProps {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface MrlModalHeaderDeviceProps {
3
3
  primaryButton?: React.ReactElement;
4
4
  secondaryButton?: React.ReactElement;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { LevelType } from '../../text/constants';
3
3
  interface MrlSidebarNavGroupProps extends React.ComponentPropsWithoutRef<'nav'> {
4
4
  /** Additional class to add to the nav element */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { DSIconType } from '../../';
3
3
  interface MrlSidebarNavItemProps {
4
4
  /** Additional class to add to the li element */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
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?: React.ReactNode;
23
+ children?: ReactNode;
24
24
  /**
25
25
  * Adds CTA button to the notification
26
26
  */
27
- cta?: React.ReactElement;
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?: React.ReactNode;
49
+ message?: ReactNode;
50
50
  /**
51
51
  * Sets the scope of the notification
52
52
  */
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { DSIconType } from '../../svg';
3
+ export type InlineNotificationKind = 'error' | 'info' | 'warning' | 'success' | 'helper';
4
+ interface PropTypes {
5
+ /**
6
+ * A custom DS icon which is only applied if the alert is not an error, info, or warning type
7
+ */
8
+ customIcon?: DSIconType;
9
+ /**
10
+ * The id of the notification.
11
+ *
12
+ * Used to link the notification to a form field using aria-describedby.
13
+ */
14
+ id: string;
15
+ /**
16
+ * Choose the kind of notification to display.
17
+ *
18
+ * Accepted values: error, info, warning, success, helper
19
+ */
20
+ kind: InlineNotificationKind;
21
+ /**
22
+ * The text to be displayed in the notification.
23
+ */
24
+ message: string;
25
+ /**
26
+ * The data-qa attribute for testing purposes.
27
+ */
28
+ ['data-qa']?: string;
29
+ }
30
+ /**
31
+ * MrlInlineNotification is a notification component that can be used to display messages to the user.
32
+ *
33
+ * @param props - The properties of the component.
34
+ * @returns A React component.
35
+ */
36
+ export declare const MrlInlineNotification: ({ customIcon, id, kind, message, ["data-qa"]: qa }: PropTypes) => React.ReactElement;
37
+ export {};
@@ -0,0 +1 @@
1
+ export { MrlInlineNotification } from './MrlInlineNotification';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { NotificationKind } from '../constants';
3
3
  export type MrlToastKind = NotificationKind | 'collaborator' | 'general';
4
4
  export type MrlToastPosition = 'bottom' | 'top';
@@ -1,2 +1,3 @@
1
1
  export * from './MrlBlockNotification';
2
2
  export * from './MrlToast';
3
+ export * from './MrlInlineNotification';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  interface MrlPaginationProps extends React.ComponentPropsWithoutRef<'nav'> {
3
3
  /** Elements to be rendered by MrlPagination */
4
4
  children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { MrlTooltipAnchor, MrlTooltipPosition } from '../..';
3
3
  import { PaginationButtonType } from '../constants';
4
4
  interface MrlPaginationButtonProps {
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  /**
3
3
  * Props for the MrlPanel component.
4
4
  */
5
- interface MrlPanelProps extends React.ComponentPropsWithRef<'div'> {
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?: React.ReactNode;
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?: React.ReactNode;
24
+ topActions?: ReactNode;
25
25
  /**
26
26
  * The title of the panel.
27
27
  */
@@ -1,12 +1,12 @@
1
- import * as React from 'react';
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  /**
3
3
  * Props for the MrlPanelFooter component.
4
4
  */
5
- interface MrlPanelFooterProps extends React.ComponentPropsWithRef<'footer'> {
5
+ interface MrlPanelFooterProps extends ComponentPropsWithRef<'footer'> {
6
6
  /**
7
7
  * The children of the MrlPanelFooter component.
8
8
  */
9
- children?: React.ReactNode;
9
+ children?: ReactNode;
10
10
  /**
11
11
  * Specifies whether to show the divider.
12
12
  */
@@ -1,12 +1,12 @@
1
- import * as React from 'react';
1
+ import { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  /**
3
3
  * Props for the MrlPanelStickyHeader component.
4
4
  */
5
- interface MrlPanelStickyHeaderProps extends React.ComponentPropsWithRef<'div'> {
5
+ interface MrlPanelStickyHeaderProps extends ComponentPropsWithRef<'div'> {
6
6
  /**
7
7
  * The children of the MrlPanelStickyHeader component.
8
8
  */
9
- children?: React.ReactNode;
9
+ children?: ReactNode;
10
10
  }
11
11
  /**
12
12
  * MrlPanelStickyHeader component.
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
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?: React.RefObject<HTMLElement>;
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 * as React from 'react';
1
+ import React from 'react';
2
2
  import { PORTAL_LAYERS } from '../../utils/layers';
3
3
  type PortalLayer = (typeof PORTAL_LAYERS)[keyof typeof PORTAL_LAYERS];
4
4
  export interface PortalProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface MrlSkeletonProps extends React.ComponentProps<'div'> {
3
3
  /** An object with CSS properties */
4
4
  style?: React.CSSProperties;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { TextSizes } from '../../text/constants';
3
3
  export interface MrlSkeletonTextProps extends React.ComponentProps<'div'> {
4
4
  /** An object of CSS properties */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { MrlComponentProps } from '../../../utils';
3
3
  import { SVGSize } from '../constants';
4
4
  export type DSIcons = typeof import('@muraldevkit/ds-icons');
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { AnimatedState } from '../constants';
3
3
  /**
4
4
  * Props for MrlSvgAnimate component
@@ -115,7 +115,7 @@ export declare const colorPictoStoryData: {
115
115
  export declare const animateStoryData: {
116
116
  args: {
117
117
  delay: number;
118
- state: "stop" | "play";
118
+ state: "play" | "stop";
119
119
  };
120
120
  argTypes: {
121
121
  delay: {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface MrlTabProps extends React.ComponentProps<'button'> {
3
3
  /** Class to be applied to the button element of the MrlTab */
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface MrlTabContentPropTypes {
3
3
  children: React.ReactNode;
4
4
  /** Class to be applied to the container element of the MrlTabContent */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface MrlTabGroupPropTypes {
3
3
  children: React.ReactNode;
4
4
  /** Class to be applied to the container element of the MrlTabGroup */
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { MrlTabContextProps } from '../../../';
3
3
  export type MrlTabSize = 'small' | 'large';
4
4
  export interface MrlTabsPropTypes {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { AttrsObject } from '../../../utils';
3
3
  import { TextSizes } from '../constants';
4
4
  interface MrlTextProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
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 * as React from 'react';
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 React.ComponentPropsWithRef<'div'> {
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) => React.ReactElement;
38
+ export declare const MrlToolbar: (props: MrlToolbarProps) => JSX.Element;