@mcf/lib-ui 2.4.30 → 2.4.32
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/@types/Component/DropdownNew/DropdownNew.constants.d.ts +2 -2
- package/dist/@types/Component/DropdownNew/DropdownNew.d.ts +2 -2
- package/dist/@types/Component/DropdownNew/index.d.ts +1 -0
- package/dist/@types/Component/Modal/ConfirmationModal.d.ts +4 -2
- package/dist/@types/Component/Modal/Modal.d.ts +3 -3
- package/dist/@types/Component/Modal/NotificationModal.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export declare enum DropdownVariant {
|
|
|
13
13
|
Multiline = "MULTILINE",
|
|
14
14
|
MultiSelect = "MULTISELECT"
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface DropdownProps extends Props<IOption, boolean, GroupBase<IOption>> {
|
|
17
17
|
width: string;
|
|
18
18
|
primaryLabel?: string;
|
|
19
19
|
secondaryLabel?: string;
|
|
@@ -26,5 +26,5 @@ export interface IDropdownProps extends Props<IOption, boolean, GroupBase<IOptio
|
|
|
26
26
|
};
|
|
27
27
|
errorMsg?: string;
|
|
28
28
|
data: IOption[] | IMultilineOption[];
|
|
29
|
-
variant
|
|
29
|
+
variant?: DropdownVariant;
|
|
30
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
declare const Dropdown: ({ width, isSearchable, isDisabled, primaryLabel, secondaryLabel, additionalInfo, errorMsg, placeholder, data, defaultValue, input, variant, }:
|
|
2
|
+
import { DropdownProps } from './DropdownNew.constants';
|
|
3
|
+
declare const Dropdown: ({ width, isSearchable, isDisabled, primaryLabel, secondaryLabel, additionalInfo, errorMsg, placeholder, data, defaultValue, input, variant, }: DropdownProps) => JSX.Element;
|
|
4
4
|
export default Dropdown;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ButtonColor } from '../Button/ButtonConstants';
|
|
2
3
|
interface ConfirmationModalProps {
|
|
4
|
+
open: boolean;
|
|
3
5
|
title: string;
|
|
4
|
-
|
|
5
|
-
open?: boolean;
|
|
6
|
+
contentSlot: React.ReactNode;
|
|
6
7
|
confirmButtonLabel?: string;
|
|
7
8
|
cancelButtonLabel?: string;
|
|
9
|
+
confirmButtonColour?: ButtonColor;
|
|
8
10
|
onConfirm: () => void;
|
|
9
11
|
onCancel: () => void;
|
|
10
12
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Button from '../Button/Button';
|
|
3
3
|
interface ModalProps {
|
|
4
|
-
open?: boolean;
|
|
5
4
|
onClose?: () => void;
|
|
5
|
+
open: boolean;
|
|
6
6
|
title: string;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
contentSlot: React.ReactNode;
|
|
8
|
+
footerSlot?: React.ReactElement<typeof Button>[];
|
|
9
9
|
closable?: boolean;
|
|
10
10
|
headerClassName?: string;
|
|
11
11
|
bodyClassName?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface NotificationModalProps {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
4
|
+
contentSlot: React.ReactNode;
|
|
5
5
|
onConfirm: () => void;
|
|
6
|
-
open?: boolean;
|
|
7
6
|
buttonLabel?: string;
|
|
7
|
+
open: boolean;
|
|
8
8
|
}
|
|
9
9
|
declare const NotificationModal: React.FC<NotificationModalProps>;
|
|
10
10
|
export default NotificationModal;
|