@mcf/lib-ui 2.4.5 → 2.4.12
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/Collapse/Collapse.d.ts +12 -0
- package/dist/@types/Component/Collapse/index.d.ts +1 -0
- package/dist/@types/Component/Modal/ConfirmationModal.d.ts +12 -0
- package/dist/@types/Component/Modal/Modal.d.ts +15 -0
- package/dist/@types/Component/Modal/NotificationModal.d.ts +10 -0
- package/dist/@types/Component/Modal/index.d.ts +3 -0
- package/dist/@types/Component/Tabs/Tabs.d.ts +13 -0
- package/dist/@types/Component/Tabs/index.d.ts +1 -0
- package/dist/@types/Component/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
type RenderLabelFunction = (isExpanded: boolean) => ReactNode;
|
|
3
|
+
interface CollapseProps {
|
|
4
|
+
expanded?: boolean;
|
|
5
|
+
expandedLabel?: string;
|
|
6
|
+
collapsedLabel?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
renderLabel?: RenderLabelFunction;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const Collapse: FC<CollapseProps>;
|
|
12
|
+
export default Collapse;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Collapse } from './Collapse';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ConfirmationModalProps {
|
|
3
|
+
title: string;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
confirmButtonLabel?: string;
|
|
7
|
+
cancelButtonLabel?: string;
|
|
8
|
+
onConfirm: () => void;
|
|
9
|
+
onCancel: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const ConfirmationModal: React.FC<ConfirmationModalProps>;
|
|
12
|
+
export default ConfirmationModal;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Button from '../Button/Button';
|
|
3
|
+
interface ModalProps {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
title: string;
|
|
7
|
+
content: React.ReactNode;
|
|
8
|
+
actions?: React.ReactElement<typeof Button>[];
|
|
9
|
+
closable?: boolean;
|
|
10
|
+
headerClassName?: string;
|
|
11
|
+
bodyClassName?: string;
|
|
12
|
+
actionsClassName?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const Modal: React.FC<ModalProps>;
|
|
15
|
+
export default Modal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface NotificationModalProps {
|
|
3
|
+
title: string;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
buttonLabel?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const NotificationModal: React.FC<NotificationModalProps>;
|
|
10
|
+
export default NotificationModal;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
export interface ITab {
|
|
3
|
+
title: string;
|
|
4
|
+
content: ReactElement;
|
|
5
|
+
}
|
|
6
|
+
export interface ITabsProps {
|
|
7
|
+
activeTab?: number;
|
|
8
|
+
defaultActiveTab?: number;
|
|
9
|
+
tabs: Array<ITab>;
|
|
10
|
+
onTabChange?: (index: number) => any;
|
|
11
|
+
stickyHeader?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const Tabs: React.FunctionComponent<ITabsProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tabs';
|