@muraldevkit/ui-toolkit 4.27.0 → 4.29.0-dev-Qa0Y.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/MrlIconButton/MrlIconButton.d.ts +0 -2
- package/dist/components/form/select/MrlMultiSelect/MrlMultiSelect.d.ts +8 -0
- package/dist/components/form/select/MrlSelect/MrlSelect.d.ts +8 -0
- package/dist/components/form/select/components/MrlSelectContainer.d.ts +9 -0
- package/dist/components/form/select/components/MrlSelectValueContainer.d.ts +9 -0
- package/dist/components/form/select/components/index.d.ts +2 -0
- package/dist/components/modal/MrlModal/MrlModal.d.ts +0 -4
- package/dist/components/modal/constants.d.ts +0 -2
- package/dist/components/modal/index.d.ts +0 -1
- package/dist/components/svg/config.d.ts +1 -1
- package/dist/components/toolbar/MrlToolbarButton/MrlToolbarButton.d.ts +0 -1
- package/dist/contexts/index.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/components/modal/MrlModalHeaderNative/MrlModalHeaderNative.d.ts +0 -13
- package/dist/components/modal/MrlModalHeaderNative/index.d.ts +0 -1
- package/dist/components/modal/demo/ModalWithDevices.d.ts +0 -16
- package/dist/contexts/MrlDeviceProvider/MrlDeviceProvider.d.ts +0 -28
- package/dist/contexts/MrlDeviceProvider/index.d.ts +0 -1
- package/dist/hooks/useVirtualKeyboard/index.d.ts +0 -1
- package/dist/hooks/useVirtualKeyboard/useVirtualKeyboard.d.ts +0 -24
- package/dist/styles/MrlModalHeaderNative/module.scss +0 -41
- package/dist/styles/MrlModalHeaderNative/variables.scss +0 -4
- package/dist/utils/scrollToElementWithLabel/index.d.ts +0 -1
- package/dist/utils/scrollToElementWithLabel/scrollToElementWithLabel.d.ts +0 -6
- package/dist/utils/scrollToElementWithLabel/scrollToElementWithLabel.test.d.ts +0 -1
- package/dist/utils/test-utils/patchGetBoundingRect.d.ts +0 -7
|
@@ -3,7 +3,6 @@ import { MrlButtonKind, MrlButtonSize, MrlGhostIconButtonSize, ToggleAria } from
|
|
|
3
3
|
import { AttrsObject, MrlComponentProps } from '../../../utils';
|
|
4
4
|
import { MrlTooltipAnchor, MrlTooltipPosition, MrlTooltipVariant } from '../../tooltip/constants';
|
|
5
5
|
import { MrlButtonState, ToggleStyle } from '../../';
|
|
6
|
-
import { MrlDeviceClient } from '../../../contexts';
|
|
7
6
|
import './MrlIconButton.scss';
|
|
8
7
|
export interface MrlIconButtonProps extends Omit<MrlComponentProps, 'style'>, React.ComponentProps<'button'> {
|
|
9
8
|
/**
|
|
@@ -22,7 +21,6 @@ export interface MrlIconButtonProps extends Omit<MrlComponentProps, 'style'>, Re
|
|
|
22
21
|
* Allows developers the ability to disable built in event listeners so they can manage user
|
|
23
22
|
* interactions from the application.
|
|
24
23
|
*/
|
|
25
|
-
client?: MrlDeviceClient;
|
|
26
24
|
disableEvents?: boolean;
|
|
27
25
|
/** Whether to disable the tooltip hover action that keeps it open */
|
|
28
26
|
disableTooltipHover?: boolean;
|
|
@@ -4,6 +4,14 @@ import { DefaultOption } from '../types';
|
|
|
4
4
|
export interface MrlMultiSelectProps<T, IsMulti extends boolean = false, Group extends GroupBase<T> = GroupBase<T>> extends Omit<Props<T, IsMulti, Group>, 'isMulti' | 'hideSelectedOptions'> {
|
|
5
5
|
hasError?: boolean;
|
|
6
6
|
isReadOnly?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The data-qa prefix, it will be used to add data-qa attributes to different sub components of the MrlMultiSelect component.
|
|
9
|
+
*
|
|
10
|
+
* Available subcomponents:
|
|
11
|
+
* - container, <data-qa-prefix>-container
|
|
12
|
+
* - value-container, <data-qa-prefix>-value-container
|
|
13
|
+
*/
|
|
14
|
+
['data-qa']?: string;
|
|
7
15
|
}
|
|
8
16
|
export declare const MULTI_SELECT_CLASS_NAME_PREFIX = "MrlMultiSelect";
|
|
9
17
|
export declare const MULTI_SELECT_MENU_LIST_CLASS_NAME: string;
|
|
@@ -5,6 +5,14 @@ export interface MrlSelectProps<Option, IsMulti extends boolean = false, Group e
|
|
|
5
5
|
hasError?: boolean;
|
|
6
6
|
isReadOnly?: boolean;
|
|
7
7
|
kind?: SelectKind;
|
|
8
|
+
/**
|
|
9
|
+
* The data-qa prefix, it will be used to add data-qa attributes to different sub components of the MrlSelect component.
|
|
10
|
+
*
|
|
11
|
+
* Available subcomponents:
|
|
12
|
+
* - container, <data-qa-prefix>-container
|
|
13
|
+
* - value-container, <data-qa-prefix>-value-container
|
|
14
|
+
*/
|
|
15
|
+
['data-qa']?: string;
|
|
8
16
|
}
|
|
9
17
|
export declare const SELECT_CLASS_NAME_PREFIX = "MrlSelect";
|
|
10
18
|
export declare const SELECT_MENU_LIST_CLASS_NAME: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GroupBase, ContainerProps } from 'react-select';
|
|
3
|
+
/**
|
|
4
|
+
* MrlSelectContainer component
|
|
5
|
+
*
|
|
6
|
+
* @param props - the react-select container props
|
|
7
|
+
* @returns a select container
|
|
8
|
+
*/
|
|
9
|
+
export declare function MrlSelectContainer<T, IsMulti extends boolean = false, Group extends GroupBase<T> = GroupBase<T>>(props: ContainerProps<T, IsMulti, Group>): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GroupBase, ValueContainerProps } from 'react-select';
|
|
3
|
+
/**
|
|
4
|
+
* MrlSelectValueContainer component
|
|
5
|
+
*
|
|
6
|
+
* @param props - the react-select value container props
|
|
7
|
+
* @returns a value container component
|
|
8
|
+
*/
|
|
9
|
+
export declare function MrlSelectValueContainer<T, IsMulti extends boolean = false, Group extends GroupBase<T> = GroupBase<T>>(props: ValueContainerProps<T, IsMulti, Group>): JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MrlComponentProps } from '../../../utils';
|
|
3
3
|
import { ModalSize, ModalState } from '../constants';
|
|
4
|
-
import { MrlDeviceClient } from '../../../contexts/MrlDeviceProvider';
|
|
5
4
|
import './MrlModal.global.scss';
|
|
6
5
|
interface ModalProps extends MrlComponentProps {
|
|
7
6
|
/**
|
|
@@ -16,7 +15,6 @@ interface ModalProps extends MrlComponentProps {
|
|
|
16
15
|
* Modal Wrapper Class
|
|
17
16
|
*/
|
|
18
17
|
className?: string;
|
|
19
|
-
client?: MrlDeviceClient;
|
|
20
18
|
/**
|
|
21
19
|
* !!!!! WARNING: do not use this prop without an explicit requirement from the design team !!!!!
|
|
22
20
|
*
|
|
@@ -45,8 +43,6 @@ interface ModalProps extends MrlComponentProps {
|
|
|
45
43
|
/**
|
|
46
44
|
* Modal Component.
|
|
47
45
|
*
|
|
48
|
-
* This component has support for native devices through the `client` prop.
|
|
49
|
-
*
|
|
50
46
|
* @param {object} props - Modal props
|
|
51
47
|
* @param {ModalSize} props.size - The size of the modal container. Defaults to 'defaults.size'
|
|
52
48
|
* @param {ModalState} props.state - Current state of the modal. Defaults to 'close'
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { MrlDeviceClient } from '../../contexts';
|
|
2
1
|
import { AttrsObject } from '../../utils';
|
|
3
2
|
export declare const allowedValues: {
|
|
4
3
|
sizes: readonly ["small", "medium", "large"];
|
|
@@ -8,7 +7,6 @@ export type ModalSize = (typeof allowedValues.sizes)[number];
|
|
|
8
7
|
export type ModalState = (typeof allowedValues.states)[number];
|
|
9
8
|
export interface ModalDefaults {
|
|
10
9
|
attrs: AttrsObject;
|
|
11
|
-
client: MrlDeviceClient;
|
|
12
10
|
size: ModalSize;
|
|
13
11
|
state: ModalState;
|
|
14
12
|
}
|
|
@@ -34,7 +34,6 @@ export interface MrlToolbarButtonProps {
|
|
|
34
34
|
*/
|
|
35
35
|
toolbarButtonProps?: {
|
|
36
36
|
badge?: MrlIconButtonProps['badge'];
|
|
37
|
-
client?: MrlIconButtonProps['client'];
|
|
38
37
|
disableEvents?: MrlIconButtonProps['disableEvents'];
|
|
39
38
|
kind?: MrlIconButtonProps['kind'];
|
|
40
39
|
loading?: MrlIconButtonProps['loading'];
|
package/dist/contexts/index.d.ts
CHANGED
package/dist/hooks/index.d.ts
CHANGED