@muraldevkit/ui-toolkit 4.47.1 → 4.47.3
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/avatar/MrlAvatarButton/MrlAvatarButton.d.ts +0 -1
- package/dist/components/badge/MrlBadge/MrlBadge.d.ts +0 -1
- package/dist/components/badge/MrlBadgeNotification/MrlBadgeNotification.d.ts +0 -1
- package/dist/components/breadcrumb/MrlBreadcrumbItem/MrlBreadcrumbItem.d.ts +0 -1
- package/dist/components/breadcrumb/MrlBreadcrumbSeparator/MrlBreadcrumbSeparator.d.ts +0 -1
- package/dist/components/breadcrumb/MrlBreadcrumbs/MrlBreadcrumbs.d.ts +0 -1
- package/dist/components/empty/default/MrlEmpty.d.ts +1 -2
- package/dist/components/empty/large/MrlEmptyLarge.d.ts +1 -2
- package/dist/components/focus-trap/MrlFocusTrap/MrlFocusTrap.d.ts +1 -2
- package/dist/components/form/checkbox/MrlCheckbox/MrlCheckbox.d.ts +1 -3
- package/dist/components/form/checkbox/MrlCheckboxStandalone/MrlCheckboxStandalone.d.ts +1 -2
- package/dist/components/form/fieldset/MrlFieldset/MrlFieldset.d.ts +1 -2
- package/dist/components/form/radio/MrlRadioGroup/MrlRadioGroup.d.ts +0 -1
- package/dist/components/form/select/MrlCreatableSelect/MrlCreatableSelect.d.ts +0 -1
- package/dist/components/form/select/MrlMultiSelect/MrlMultiSelect.d.ts +0 -1
- package/dist/components/form/select/MrlSelect/MrlSelect.d.ts +0 -1
- package/dist/components/form/select/styles/default.d.ts +0 -1
- package/dist/components/form/text-input/MrlTextInput/MrlTextInput.d.ts +0 -1
- package/dist/components/form/textarea/MrlTextarea/MrlTextarea.d.ts +1 -2
- package/dist/components/grid/MrlCol/MrlCol.d.ts +0 -1
- package/dist/components/grid/MrlGrid/MrlGrid.d.ts +1 -2
- package/dist/components/grid/MrlRow/MrlRow.d.ts +1 -2
- package/dist/components/layout/MrlMain/MrlMain.d.ts +1 -2
- package/dist/components/layout/MrlPage/MrlPage.d.ts +1 -2
- package/dist/components/layout/MrlSidebar/MrlSidebar.d.ts +0 -1
- package/dist/components/layout/MrlTopbar/MrlTopbar.d.ts +1 -2
- package/dist/components/layout/error-page/MrlBrandColors/MrlBrandColors.d.ts +1 -2
- package/dist/components/loader/MrlProgressBar/MrlProgressBar.d.ts +1 -1
- package/dist/components/loader/MrlSpinner/MrlSpinner.d.ts +1 -1
- package/dist/components/menu/MrlMenuGroup/MrlMenuGroup.d.ts +1 -2
- package/dist/components/menu/MrlMenuItem/MrlMenuItem.d.ts +1 -2
- package/dist/components/menu/MrlMenuItemLink/MrlMenuItemLink.d.ts +1 -2
- package/dist/components/modal/MrlModal/MrlModal.d.ts +0 -1
- package/dist/components/modal/MrlModalContent/MrlModalContent.d.ts +1 -2
- package/dist/components/modal/MrlModalFooter/MrlModalFooter.d.ts +1 -2
- package/dist/components/modal/MrlModalHeader/MrlModalHeader.d.ts +1 -3
- package/dist/components/navigation-sidebar/MrlSidebarNavItem/MrlSidebarNavItem.d.ts +1 -3
- package/dist/components/notification/MrlBlockNotification/MrlBlockNotification.d.ts +0 -3
- package/dist/components/notification/MrlInlineMessage/MrlInlineMessage.d.ts +1 -2
- package/dist/components/notification/MrlToast/MrlToast.d.ts +1 -2
- package/dist/components/pagination/MrlPaginationButton/MrlPaginationButton.d.ts +1 -2
- package/dist/components/pagination/MrlPaginationText/MrlPaginationText.d.ts +1 -2
- package/dist/components/rovingTabindex/MrlRovingTabindex/MrlRovingTabindex.d.ts +0 -13
- package/dist/components/svg/MrlSvgAnimate/MrlSvgAnimate.d.ts +0 -1
- package/dist/components/svg/config.d.ts +1 -1
- package/dist/components/table/MrlTableEmptyState/MrlTableEmptyState.d.ts +1 -2
- package/dist/components/tabs/MrlTab/MrlTab.d.ts +1 -2
- package/dist/components/toolbar/MrlToolbarButton/MrlToolbarButton.d.ts +0 -1
- package/dist/components/tooltip/MrlTooltip/MrlTooltip.d.ts +1 -3
- package/dist/components/tooltip/MrlTooltipContent/MrlTooltipContent.d.ts +0 -2
- package/dist/index.js +1 -1
- package/dist/styles/MrlEditableTextarea/global.scss +0 -1
- package/dist/styles/MrlEditableTextarea/module.scss +1 -0
- package/dist/styles/MrlFilterItem/module.scss +9 -6
- package/dist/styles/MrlTextarea/global.scss +0 -6
- package/dist/styles/MrlTextarea/module.scss +1 -0
- package/dist/styles.css +23 -5
- package/dist/utils/setAttributes/setAttributes.d.ts +1 -1
- package/package.json +2 -1
- package/dist/components/toast/index.d.ts +0 -1
|
@@ -55,7 +55,6 @@ export interface MrlAvatarButtonPropTypes extends MrlAvatarPropTypes, React.HTML
|
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Renders an avatar button
|
|
58
|
-
*
|
|
59
58
|
* @param {MrlAvatarButtonPropTypes} props the props for your MrlAvatarButton
|
|
60
59
|
* @returns {React.ReactElement} an avatar button containing the props you pass
|
|
61
60
|
*/
|
|
@@ -19,7 +19,6 @@ export interface MrlBadgeProps extends Omit<MrlComponentProps, 'style' | 'attrs'
|
|
|
19
19
|
/**
|
|
20
20
|
* Badges are a common user interface element that
|
|
21
21
|
* can be used to draw attention to content.
|
|
22
|
-
*
|
|
23
22
|
* @param props - component props
|
|
24
23
|
* @returns a MrlBadge React component.
|
|
25
24
|
*/
|
|
@@ -18,7 +18,6 @@ export interface MrlBadgeNotificationProps extends Omit<MrlComponentProps, 'styl
|
|
|
18
18
|
/**
|
|
19
19
|
* Badge notifications are a common user interface element that can be used to
|
|
20
20
|
* draw attention to new or unread content, alerts, or updates.
|
|
21
|
-
*
|
|
22
21
|
* @param props - component props
|
|
23
22
|
* @returns a MrlBadgeNotification React component.
|
|
24
23
|
*/
|
|
@@ -7,9 +7,8 @@ interface MrlEmptyProps {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* MrlEmpty for when there is no data to display for a single component.
|
|
10
|
-
*
|
|
11
10
|
* @param MrlEmptyProps props
|
|
12
11
|
* @returns MrlEmpty component
|
|
13
12
|
*/
|
|
14
|
-
export declare const MrlEmpty: ({ graphic, description, action, heading }: MrlEmptyProps) => JSX.Element;
|
|
13
|
+
export declare const MrlEmpty: ({ graphic, description, action, heading, ...rest }: MrlEmptyProps) => JSX.Element;
|
|
15
14
|
export {};
|
|
@@ -7,9 +7,8 @@ interface MrlEmptyLargeProps {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* MrlEmptyLarge for when there is no data to display for an entire page.
|
|
10
|
-
*
|
|
11
10
|
* @param MrlEmptyProps props
|
|
12
11
|
* @returns MrlEmptyLarge
|
|
13
12
|
*/
|
|
14
|
-
export declare const MrlEmptyLarge: ({ graphic, heading, description, action }: MrlEmptyLargeProps) => JSX.Element;
|
|
13
|
+
export declare const MrlEmptyLarge: ({ graphic, heading, description, action, ...rest }: MrlEmptyLargeProps) => JSX.Element;
|
|
15
14
|
export {};
|
|
@@ -19,12 +19,11 @@ interface PropTypes {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Focus Trap React Component
|
|
22
|
-
*
|
|
23
22
|
* @param {object} props - The component props.
|
|
24
23
|
* @param {React.ReactElement} props.children - A function that returns the component's child element and receives a ref to the container.
|
|
25
24
|
* @param {boolean} [props.disabled] - Specifies whether the focus trap should be disabled.
|
|
26
25
|
* @param { React.RefObject<HTMLElement>} props.containerRef - Focus trap container reference
|
|
27
26
|
* @returns {React.ReactElement} - The rendered FocusTrap component.
|
|
28
27
|
*/
|
|
29
|
-
export declare const MrlFocusTrap: ({ children, disabled, disableAutofocus, containerRef }: PropTypes) => JSX.Element;
|
|
28
|
+
export declare const MrlFocusTrap: ({ children, disabled, disableAutofocus, containerRef, ...rest }: PropTypes) => JSX.Element;
|
|
30
29
|
export {};
|
|
@@ -25,7 +25,6 @@ interface MrlCheckboxProps {
|
|
|
25
25
|
* to screen readers.
|
|
26
26
|
* Custom description should also implement the disabled state styles
|
|
27
27
|
* for text when the input is disabled or set color: inherit.
|
|
28
|
-
*
|
|
29
28
|
* @example
|
|
30
29
|
* <MrlCheckbox attrs={{ 'aria-describedby': customId }} description={
|
|
31
30
|
* <p id={customId}>description</p>
|
|
@@ -36,9 +35,8 @@ interface MrlCheckboxProps {
|
|
|
36
35
|
/**
|
|
37
36
|
* Form element with an associated text label that allows the user to select one or more options
|
|
38
37
|
* from a provided list
|
|
39
|
-
*
|
|
40
38
|
* @param {MrlCheckboxProps} props - the component props
|
|
41
39
|
* @returns a checkbox element with an associated label
|
|
42
40
|
*/
|
|
43
|
-
export declare function MrlCheckbox({ attrs, className, description, hasMultilineLabel, state, selected, icon, label }: MrlCheckboxProps): JSX.Element;
|
|
41
|
+
export declare function MrlCheckbox({ attrs, className, description, hasMultilineLabel, state, selected, icon, label, ...rest }: MrlCheckboxProps): JSX.Element;
|
|
44
42
|
export {};
|
|
@@ -14,9 +14,8 @@ interface MrlCheckboxStandaloneProps {
|
|
|
14
14
|
* Input that allows the user to select one or more options from a provided list.
|
|
15
15
|
* Note, this component does not provide out of the box accessibility for ensuring
|
|
16
16
|
* an associated label and must be manually setup during adoption.
|
|
17
|
-
*
|
|
18
17
|
* @param {MrlCheckboxStandaloneProps} props - the component props
|
|
19
18
|
* @returns a checkbox element
|
|
20
19
|
*/
|
|
21
|
-
export declare function MrlCheckboxStandalone({ attrs, state, selected }: MrlCheckboxStandaloneProps): JSX.Element;
|
|
20
|
+
export declare function MrlCheckboxStandalone({ attrs, state, selected, ...rest }: MrlCheckboxStandaloneProps): JSX.Element;
|
|
22
21
|
export {};
|
|
@@ -12,9 +12,8 @@ interface MrlFieldsetProps {
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Groups related form elements
|
|
15
|
-
*
|
|
16
15
|
* @param {MrlFieldsetProps} props - the component props
|
|
17
16
|
* @returns a fieldset element
|
|
18
17
|
*/
|
|
19
|
-
export declare function MrlFieldset({ attrs, children, className, label }: MrlFieldsetProps): JSX.Element;
|
|
18
|
+
export declare function MrlFieldset({ attrs, children, className, label, ...rest }: MrlFieldsetProps): JSX.Element;
|
|
20
19
|
export {};
|
|
@@ -14,7 +14,6 @@ interface MrlRadioGroupProps extends React.ComponentPropsWithoutRef<'fieldset'>
|
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Radio button group that allows the user to select one option from a provided list
|
|
17
|
-
*
|
|
18
17
|
* @param {MrlRadioGroupProps} props - the component props
|
|
19
18
|
* @returns a radio group
|
|
20
19
|
*/
|
|
@@ -20,7 +20,6 @@ export declare const CREATABLE_SELECT_CLASS_NAME_PREFIX = "MrlCreatableSelect";
|
|
|
20
20
|
export declare const CREATABLE_SELECT_MENU_LIST_CLASS_NAME: string;
|
|
21
21
|
/**
|
|
22
22
|
* MrlCreatableSelect component that supports creating extra options with user input. Option creating could be async too.
|
|
23
|
-
*
|
|
24
23
|
* @param props - the component props
|
|
25
24
|
* @returns the select component
|
|
26
25
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GroupBase, StylesConfig } from 'react-select';
|
|
2
2
|
/**
|
|
3
3
|
* MrlSelect styles object for the default kind
|
|
4
|
-
*
|
|
5
4
|
* @returns a styles object
|
|
6
5
|
*/
|
|
7
6
|
export declare function defaultStyles<T, IsMulti extends boolean = false, Group extends GroupBase<T> = GroupBase<T>>(): StylesConfig<T, IsMulti, Group>;
|
|
@@ -31,9 +31,8 @@ interface MrlTextareaProps {
|
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Allows the user to input plain text in a multi-line format
|
|
34
|
-
*
|
|
35
34
|
* @param {MrlTextareaProps} props - the component props
|
|
36
35
|
* @returns a textarea element
|
|
37
36
|
*/
|
|
38
|
-
export declare function MrlTextarea({ attrs, className, inputId, state, maxLength, placeholder, value, autoExpand }: MrlTextareaProps): JSX.Element;
|
|
37
|
+
export declare function MrlTextarea({ attrs, className, inputId, state, maxLength, placeholder, value, autoExpand, ...rest }: MrlTextareaProps): JSX.Element;
|
|
39
38
|
export {};
|
|
@@ -4,8 +4,7 @@ import '../grid.variables.scss';
|
|
|
4
4
|
import '../grid.global.scss';
|
|
5
5
|
/**
|
|
6
6
|
* MrlCol React component.
|
|
7
|
-
*
|
|
8
7
|
* @param props - component props
|
|
9
8
|
* @returns a MrlCol React component.
|
|
10
9
|
*/
|
|
11
|
-
export declare function MrlGrid({ children, className }: LayoutComponent): JSX.Element;
|
|
10
|
+
export declare function MrlGrid({ children, className, ...rest }: LayoutComponent): JSX.Element;
|
|
@@ -17,9 +17,8 @@ interface MrlRow extends LayoutComponent {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* MrlRow React component.
|
|
20
|
-
*
|
|
21
20
|
* @param props - component props
|
|
22
21
|
* @returns a MrlRow React component.
|
|
23
22
|
*/
|
|
24
|
-
export declare function MrlRow({ align, children, className, justify }: MrlRow): JSX.Element;
|
|
23
|
+
export declare function MrlRow({ align, children, className, justify, ...rest }: MrlRow): JSX.Element;
|
|
25
24
|
export {};
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import { LayoutComponent } from '../constants';
|
|
3
3
|
/**
|
|
4
4
|
* MrlMain React component.
|
|
5
|
-
*
|
|
6
5
|
* @param props - component props
|
|
7
6
|
* @returns a MrlMain React component.
|
|
8
7
|
*/
|
|
9
|
-
export declare function MrlMain({ children, className }: LayoutComponent): JSX.Element;
|
|
8
|
+
export declare function MrlMain({ children, className, ...rest }: LayoutComponent): JSX.Element;
|
|
@@ -3,9 +3,8 @@ import { LayoutComponent } from '../constants';
|
|
|
3
3
|
type MrlPage = LayoutComponent;
|
|
4
4
|
/**
|
|
5
5
|
* MrlPage React component.
|
|
6
|
-
*
|
|
7
6
|
* @param props - component props
|
|
8
7
|
* @returns a MrlPage React component.
|
|
9
8
|
*/
|
|
10
|
-
export declare function MrlPage({ children, className }: MrlPage): JSX.Element;
|
|
9
|
+
export declare function MrlPage({ children, className, ...rest }: MrlPage): JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -3,9 +3,8 @@ import { LayoutComponent, LayoutSection } from '../constants';
|
|
|
3
3
|
type MrlTopbar = LayoutComponent & LayoutSection;
|
|
4
4
|
/**
|
|
5
5
|
* MrlTopbar React component.
|
|
6
|
-
*
|
|
7
6
|
* @param props - component props
|
|
8
7
|
* @returns a MrlTopbar React component.
|
|
9
8
|
*/
|
|
10
|
-
export declare function MrlTopbar({ children, className }: MrlTopbar): JSX.Element;
|
|
9
|
+
export declare function MrlTopbar({ children, className, ...rest }: MrlTopbar): JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -6,8 +6,7 @@ export interface MrlBrandColorsProps {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* MrlBrandColors component
|
|
9
|
-
*
|
|
10
9
|
* @param props - MrlBrandColors component props
|
|
11
10
|
* @returns MrlBrandColors component
|
|
12
11
|
*/
|
|
13
|
-
export declare const MrlBrandColors: ({ className }: MrlBrandColorsProps) => JSX.Element;
|
|
12
|
+
export declare const MrlBrandColors: ({ className, ...rest }: MrlBrandColorsProps) => JSX.Element;
|
|
@@ -7,4 +7,4 @@ import '../../../styles/shared/a11y-helpers/a11y.global.scss';
|
|
|
7
7
|
* @param props - component props
|
|
8
8
|
* @returns a MrlProgressBar React component.
|
|
9
9
|
*/
|
|
10
|
-
export declare function MrlProgressBar({ children, className, indeterminate, name, percent, showText, text, time }: ProgressBarComponent): JSX.Element;
|
|
10
|
+
export declare function MrlProgressBar({ children, className, indeterminate, name, percent, showText, text, time, ...rest }: ProgressBarComponent): JSX.Element;
|
|
@@ -7,4 +7,4 @@ import '../../../styles/shared/a11y-helpers/a11y.global.scss';
|
|
|
7
7
|
* @param props - component props
|
|
8
8
|
* @returns a MrlSpinner React component.
|
|
9
9
|
*/
|
|
10
|
-
export declare function MrlSpinner({ className, logo, kind, role, size, text }: SpinnerComponent): JSX.Element;
|
|
10
|
+
export declare function MrlSpinner({ className, logo, kind, role, size, text, ...rest }: SpinnerComponent): JSX.Element;
|
|
@@ -6,8 +6,7 @@ export interface MrlMenuGroupPropTypes {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* MrlMenuGroup
|
|
9
|
-
*
|
|
10
9
|
* @param props - component properties
|
|
11
10
|
* @returns JSX.Element
|
|
12
11
|
*/
|
|
13
|
-
export declare const MrlMenuGroup: ({ children, divider, groupLabel }: MrlMenuGroupPropTypes) => JSX.Element;
|
|
12
|
+
export declare const MrlMenuGroup: ({ children, divider, groupLabel, ...rest }: MrlMenuGroupPropTypes) => JSX.Element;
|
|
@@ -30,8 +30,7 @@ export interface MrlMenuItemProps {
|
|
|
30
30
|
* MrlMenuItem component
|
|
31
31
|
*
|
|
32
32
|
* Renders a menu item to be used within the MrlMenu component
|
|
33
|
-
*
|
|
34
33
|
* @param {MrlMenuItemProps} props - The props for the MrlMenuItem component
|
|
35
34
|
* @returns {Element} - rendered MrlMenuItem component
|
|
36
35
|
*/
|
|
37
|
-
export declare function MrlMenuItem({ ariaDescribedBy, children, className, dataQa, disabled, icon, id, onClick, onMouseOut, onMouseOver, selected }: MrlMenuItemProps): JSX.Element;
|
|
36
|
+
export declare function MrlMenuItem({ ariaDescribedBy, children, className, dataQa, disabled, icon, id, onClick, onMouseOut, onMouseOver, selected, ...rest }: MrlMenuItemProps): JSX.Element;
|
|
@@ -30,8 +30,7 @@ export interface MrlMenuItemLinkProps {
|
|
|
30
30
|
* MrlMenuItem component
|
|
31
31
|
*
|
|
32
32
|
* Renders a menu item to be used within the MrlMenu component
|
|
33
|
-
*
|
|
34
33
|
* @param {MrlMenuItemLinkProps} props - The props for the MrlMenuItem component
|
|
35
34
|
* @returns {Element} - rendered MrlMenuItem component
|
|
36
35
|
*/
|
|
37
|
-
export declare function MrlMenuItemLink({ ariaDescribedBy, children, className, dataQa, disabled, href, icon, id, onClick, selected, target }: MrlMenuItemLinkProps): JSX.Element;
|
|
36
|
+
export declare function MrlMenuItemLink({ ariaDescribedBy, children, className, dataQa, disabled, href, icon, id, onClick, selected, target, ...rest }: MrlMenuItemLinkProps): JSX.Element;
|
|
@@ -11,10 +11,9 @@ interface MrlModalHeaderProps {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Modal Content component for the MrlModal
|
|
14
|
-
*
|
|
15
14
|
* @param {object} props - The props object
|
|
16
15
|
* @param {React.ReactElement} props.children - The children to be rendered within the component
|
|
17
16
|
* @returns {React.ReactElement}} The rendered MrlModalContent component
|
|
18
17
|
*/
|
|
19
|
-
export declare const MrlModalContent: ({ children, className }: MrlModalHeaderProps) => JSX.Element;
|
|
18
|
+
export declare const MrlModalContent: ({ children, className, ...rest }: MrlModalHeaderProps) => JSX.Element;
|
|
20
19
|
export {};
|
|
@@ -13,9 +13,8 @@ interface MrlModalFooterProps extends MrlComponentProps {
|
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Modal Footer component for the MrlModal
|
|
16
|
-
*
|
|
17
16
|
* @param {AttrsObject} attrs - Additional HTML attributes for the `mrl-modal` element
|
|
18
17
|
* @returns {React.ReactElement} The rendered MrlModalFooter component
|
|
19
18
|
*/
|
|
20
|
-
export declare const MrlModalFooter: ({ attrs, children, className }: MrlModalFooterProps) => JSX.Element;
|
|
19
|
+
export declare const MrlModalFooter: ({ attrs, children, className, ...rest }: MrlModalFooterProps) => JSX.Element;
|
|
21
20
|
export {};
|
|
@@ -16,10 +16,8 @@ export interface MrlModalHeaderProps extends MrlComponentProps {
|
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Modal Header component for the MrlModal.
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
19
|
* @param {MrlModalHeaderProps} props - The props for the MrlModalFooter component
|
|
22
20
|
* @param {AttrsObject} props.attrs - Additional HTML attributes for the `mrl-modal` element
|
|
23
21
|
* @returns {React.ReactElement} The rendered MrlModalFooter component
|
|
24
22
|
*/
|
|
25
|
-
export declare const MrlModalHeader: ({ attrs, children, className, text }: MrlModalHeaderProps) => JSX.Element;
|
|
23
|
+
export declare const MrlModalHeader: ({ attrs, children, className, text, ...rest }: MrlModalHeaderProps) => JSX.Element;
|
|
@@ -12,7 +12,6 @@ interface MrlSidebarNavItemProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* Render function used to wrap the sidebar nav item with a link component.
|
|
14
14
|
* It allows users to wrap the sidebar nav item with different link implementations, react-router's link for example.
|
|
15
|
-
*
|
|
16
15
|
* @example
|
|
17
16
|
* <MrlSidebarNavItem renderLink={({linkContent}) => <Link to="/">{linkContent}</Link>}/>
|
|
18
17
|
* <MrlSidebarNavItem renderLink={({linkContent}) => <a href="/">{linkContent}</a>}/>
|
|
@@ -25,9 +24,8 @@ interface MrlSidebarNavItemProps {
|
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
26
|
* Sidebar nav item component
|
|
28
|
-
*
|
|
29
27
|
* @param {MrlSidebarNavItemProps} props - the component props
|
|
30
28
|
* @returns a sidebar nav item
|
|
31
29
|
*/
|
|
32
|
-
export declare function MrlSidebarNavItem({ className, ['data-qa']: qa, icon, isSelected, text, renderLink }: MrlSidebarNavItemProps): JSX.Element;
|
|
30
|
+
export declare function MrlSidebarNavItem({ className, ['data-qa']: qa, icon, isSelected, text, renderLink, ...rest }: MrlSidebarNavItemProps): JSX.Element;
|
|
33
31
|
export {};
|
|
@@ -57,13 +57,11 @@ export interface MrlBlockNotificationProps {
|
|
|
57
57
|
state?: NotificationState;
|
|
58
58
|
/**
|
|
59
59
|
* Open notification callback
|
|
60
|
-
*
|
|
61
60
|
* @returns {void}
|
|
62
61
|
*/
|
|
63
62
|
hookOpen?: () => void;
|
|
64
63
|
/**
|
|
65
64
|
* Close notification callback
|
|
66
|
-
*
|
|
67
65
|
* @returns {void}
|
|
68
66
|
*/
|
|
69
67
|
hookClose?: () => void;
|
|
@@ -93,7 +91,6 @@ export interface MrlBlockNotificationProps {
|
|
|
93
91
|
}
|
|
94
92
|
/**
|
|
95
93
|
* Block Notification Component
|
|
96
|
-
*
|
|
97
94
|
* @param props - Component props
|
|
98
95
|
* @returns {Element} Block Notification
|
|
99
96
|
*/
|
|
@@ -33,8 +33,7 @@ export interface MrlInlineMessageProps {
|
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* MrlInlineMessage is a notification component that can be used to display messages to the user.
|
|
36
|
-
*
|
|
37
36
|
* @param props - The properties of the component.
|
|
38
37
|
* @returns A React component.
|
|
39
38
|
*/
|
|
40
|
-
export declare const MrlInlineMessage: ({ children, customIcon, id, kind, message, ["data-qa"]: qa }: MrlInlineMessageProps) => React.ReactElement;
|
|
39
|
+
export declare const MrlInlineMessage: ({ children, customIcon, id, kind, message, ["data-qa"]: qa, ...rest }: MrlInlineMessageProps) => React.ReactElement;
|
|
@@ -38,8 +38,7 @@ export interface MrlToastProps {
|
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* MrlToast component.
|
|
41
|
-
*
|
|
42
41
|
* @param {MrlToastProps} props - The props for the MrlToast component.
|
|
43
42
|
* @returns {React.ReactElement} The MrlToast component.
|
|
44
43
|
*/
|
|
45
|
-
export declare const MrlToast: ({ ["data-qa"]: qa, autoClose, backgroundColor, className, closeAfterMs, kind, onClose, primaryCTA, primaryMessage, secondaryCTA, secondaryMessage, showCloseButton, showIcon }: MrlToastProps) => React.ReactElement;
|
|
44
|
+
export declare const MrlToast: ({ ["data-qa"]: qa, autoClose, backgroundColor, className, closeAfterMs, kind, onClose, primaryCTA, primaryMessage, secondaryCTA, secondaryMessage, showCloseButton, showIcon, ...rest }: MrlToastProps) => React.ReactElement;
|
|
@@ -22,9 +22,8 @@ interface MrlPaginationButtonProps {
|
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Pagination button component
|
|
25
|
-
*
|
|
26
25
|
* @param {MrlPaginationButtonProps} props - the component props
|
|
27
26
|
* @returns a pagintaion button
|
|
28
27
|
*/
|
|
29
|
-
export declare function MrlPaginationButton({ buttonClass, className, disabled, kind, handleClick, text, tooltipAnchor, tooltipPosition }: MrlPaginationButtonProps): JSX.Element;
|
|
28
|
+
export declare function MrlPaginationButton({ buttonClass, className, disabled, kind, handleClick, text, tooltipAnchor, tooltipPosition, ...rest }: MrlPaginationButtonProps): JSX.Element;
|
|
30
29
|
export {};
|
|
@@ -15,9 +15,8 @@ interface MrlPaginationTextProps {
|
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Pagination text component
|
|
18
|
-
*
|
|
19
18
|
* @param {MrlPaginationTextProps} props - the component props
|
|
20
19
|
* @returns pagination text
|
|
21
20
|
*/
|
|
22
|
-
export declare function MrlPaginationText({ className, isEstimate, rangeStart, rangeEnd, textClass, total }: MrlPaginationTextProps): JSX.Element;
|
|
21
|
+
export declare function MrlPaginationText({ className, isEstimate, rangeStart, rangeEnd, textClass, total, ...rest }: MrlPaginationTextProps): JSX.Element;
|
|
23
22
|
export {};
|
|
@@ -2,7 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
type RefType = HTMLElement | HTMLDivElement | null;
|
|
3
3
|
/**
|
|
4
4
|
* Gets tabbable elements in a given bit of the DOM
|
|
5
|
-
*
|
|
6
5
|
* @param {RefType} ref - the ref of the container
|
|
7
6
|
* @param {string} selector - the selector to query
|
|
8
7
|
* @returns {HTMLElement[]} - an array of tabbable HTML elements
|
|
@@ -34,7 +33,6 @@ type RovingOrientation = 'horizontal' | 'vertical';
|
|
|
34
33
|
type NavigationDirection = 'forward' | 'back';
|
|
35
34
|
/**
|
|
36
35
|
* Component to create a Roving Tabindex in the DOM
|
|
37
|
-
*
|
|
38
36
|
* @returns {HTMLDivElement}
|
|
39
37
|
*/
|
|
40
38
|
declare class MrlRovingTabindex extends React.Component<RovingPropTypes> {
|
|
@@ -44,7 +42,6 @@ declare class MrlRovingTabindex extends React.Component<RovingPropTypes> {
|
|
|
44
42
|
selector: string;
|
|
45
43
|
/**
|
|
46
44
|
* MrlRovingTabindex class constructor
|
|
47
|
-
*
|
|
48
45
|
* @param props - the MrlRovingTabindex props
|
|
49
46
|
* @returns new instance
|
|
50
47
|
*/
|
|
@@ -55,54 +52,46 @@ declare class MrlRovingTabindex extends React.Component<RovingPropTypes> {
|
|
|
55
52
|
componentDidMount(): void;
|
|
56
53
|
/**
|
|
57
54
|
* Runs when the MrlRovingTabindex component updates
|
|
58
|
-
*
|
|
59
55
|
* @param {RovingPropTypes} prevProps - the props before the component updated
|
|
60
56
|
*/
|
|
61
57
|
componentDidUpdate(prevProps: RovingPropTypes): void;
|
|
62
58
|
handleRef: (ref: HTMLDivElement) => HTMLDivElement;
|
|
63
59
|
/**
|
|
64
60
|
* Sets component array of elements
|
|
65
|
-
*
|
|
66
61
|
* @returns {void}
|
|
67
62
|
*/
|
|
68
63
|
setElements: () => void;
|
|
69
64
|
/**
|
|
70
65
|
* Gets the components active element based on priority order.
|
|
71
|
-
*
|
|
72
66
|
* @returns {HTMLElement | undefined} - the active HTML element
|
|
73
67
|
*/
|
|
74
68
|
getActiveElement: () => HTMLElement | undefined;
|
|
75
69
|
/**
|
|
76
70
|
* Sets an element to `tabindex=0` and sets all other elements to `tabindex=-1`
|
|
77
|
-
*
|
|
78
71
|
* @param {HTMLElement | undefined} el - the element to set as active
|
|
79
72
|
* @returns {void}
|
|
80
73
|
*/
|
|
81
74
|
setActiveElement: (el: HTMLElement | undefined) => void;
|
|
82
75
|
/**
|
|
83
76
|
* Sets focus to a specific element
|
|
84
|
-
*
|
|
85
77
|
* @param {HTMLElement | undefined} el - the element to set in focus
|
|
86
78
|
* @returns {void}
|
|
87
79
|
*/
|
|
88
80
|
setElementFocus: (el: HTMLElement | undefined) => void;
|
|
89
81
|
/**
|
|
90
82
|
* Sets focus to an element based on a direction (`forward` or `back`)
|
|
91
|
-
*
|
|
92
83
|
* @param {NavigationDirection} direction 'forward' | 'back'
|
|
93
84
|
* @returns {void}
|
|
94
85
|
*/
|
|
95
86
|
setFocusByDirection: (direction: NavigationDirection) => void;
|
|
96
87
|
/**
|
|
97
88
|
* Sets all tabindex for elements of this component to -1
|
|
98
|
-
*
|
|
99
89
|
* @returns {void}
|
|
100
90
|
*/
|
|
101
91
|
unsetTabbableElements: () => void;
|
|
102
92
|
/**
|
|
103
93
|
* Will return `false` if the orientation param matches the
|
|
104
94
|
* orientation of the component and the actively focused element has a menu or select
|
|
105
|
-
*
|
|
106
95
|
* @param orientation : 'horizontal' | 'vertical'
|
|
107
96
|
* @returns boolean
|
|
108
97
|
*/
|
|
@@ -113,13 +102,11 @@ declare class MrlRovingTabindex extends React.Component<RovingPropTypes> {
|
|
|
113
102
|
handleRefocus: () => void;
|
|
114
103
|
/**
|
|
115
104
|
* Mounts the MrlRovingTabindex component
|
|
116
|
-
*
|
|
117
105
|
* @returns {void}
|
|
118
106
|
*/
|
|
119
107
|
mount(): void;
|
|
120
108
|
/**
|
|
121
109
|
* Renders the MrlRovingTabindex component
|
|
122
|
-
*
|
|
123
110
|
* @returns {HTMLDivElement} - the rendered MrlRovingTabindex component
|
|
124
111
|
*/
|
|
125
112
|
render(): JSX.Element;
|
|
@@ -43,7 +43,6 @@ export interface MrlSvgAnimateProps {
|
|
|
43
43
|
* MrlSvgAnimate
|
|
44
44
|
*
|
|
45
45
|
* This is a React functional component used for SVGs with robust After Effects animations.
|
|
46
|
-
*
|
|
47
46
|
* @param {MrlSvgAnimateProps} props - The properties for the MrlSvgAnimate component.
|
|
48
47
|
* @returns {React.ReactElement} - The rendered MrlSvgAnimate component.
|
|
49
48
|
*/
|
|
@@ -7,9 +7,8 @@ interface MrlTableEmptyStateProps {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* MrlTableEmptyState Component
|
|
10
|
-
*
|
|
11
10
|
* @param {MrlTableEmptyStateProps} props - MrlTableEmptyState component props
|
|
12
11
|
* @returns an empty state element
|
|
13
12
|
*/
|
|
14
|
-
export declare function MrlTableEmptyState({ text }: MrlTableEmptyStateProps): JSX.Element;
|
|
13
|
+
export declare function MrlTableEmptyState({ text, ...rest }: MrlTableEmptyStateProps): JSX.Element;
|
|
15
14
|
export {};
|
|
@@ -14,8 +14,7 @@ export interface MrlTabProps extends React.ComponentProps<'button'> {
|
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Renders a tab component
|
|
17
|
-
*
|
|
18
17
|
* @param {MrlTabProps} props the props for your MrlTab
|
|
19
18
|
* @returns {React.ReactElement} an a element containing the text you pass
|
|
20
19
|
*/
|
|
21
|
-
export declare const MrlTab: ({ className, icon, id, hookClick, text }: MrlTabProps) => React.ReactElement;
|
|
20
|
+
export declare const MrlTab: ({ className, icon, id, hookClick, text, ...rest }: MrlTabProps) => React.ReactElement;
|