@devtron-labs/devtron-fe-common-lib 0.0.7-beta-5 → 0.0.7-beta-6
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/Common/CustomTagSelector/Types.d.ts +1 -0
- package/dist/Common/Dialogs/DialogForm.d.ts +1 -9
- package/dist/Common/Dialogs/Types.d.ts +9 -0
- package/package.json +1 -1
- package/src/Common/CustomTagSelector/Types.ts +1 -0
- package/src/Common/Dialogs/DialogForm.tsx +1 -10
- package/src/Common/Dialogs/Types.ts +9 -0
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
|
|
3
|
-
className: string;
|
|
4
|
-
title: string;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
closeOnESC?: boolean;
|
|
7
|
-
close: (event: any) => void;
|
|
8
|
-
onSave: (event: any) => void;
|
|
9
|
-
headerClassName?: string;
|
|
10
|
-
}
|
|
2
|
+
import { DialogFormProps } from './Types';
|
|
11
3
|
export declare class DialogForm extends Component<DialogFormProps> {
|
|
12
4
|
constructor(props: any);
|
|
13
5
|
componentDidMount(): void;
|
|
@@ -30,3 +30,12 @@ export interface ConfirmationDialogBodyType {
|
|
|
30
30
|
export interface ConfirmationDialogButtonGroupType {
|
|
31
31
|
children: any;
|
|
32
32
|
}
|
|
33
|
+
export interface DialogFormProps {
|
|
34
|
+
className: string;
|
|
35
|
+
title: string;
|
|
36
|
+
isLoading: boolean;
|
|
37
|
+
closeOnESC?: boolean;
|
|
38
|
+
close: (event: any) => void;
|
|
39
|
+
onSave: (event: any) => void;
|
|
40
|
+
headerClassName?: string;
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -2,19 +2,10 @@ import React, { Component, createContext } from 'react';
|
|
|
2
2
|
import { VisibleModal } from '../Modals/VisibleModal';
|
|
3
3
|
import close from '../../Assets/Icon/ic-cross.svg';
|
|
4
4
|
import { Progressing } from '../Progressing'
|
|
5
|
+
import { DialogFormProps } from './Types';
|
|
5
6
|
//TODO: may not need context
|
|
6
7
|
const DialogFormContext = createContext({ title: '', isLoading: false, close: (event) => {}, onSave: (event) => {} });
|
|
7
8
|
|
|
8
|
-
export interface DialogFormProps {
|
|
9
|
-
className: string;
|
|
10
|
-
title: string;
|
|
11
|
-
isLoading: boolean;
|
|
12
|
-
closeOnESC?: boolean;
|
|
13
|
-
close: (event) => void;
|
|
14
|
-
onSave: (event) => void;
|
|
15
|
-
headerClassName?: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
9
|
export class DialogForm extends Component<DialogFormProps> {
|
|
19
10
|
constructor(props) {
|
|
20
11
|
super(props);
|
|
@@ -32,3 +32,12 @@ export interface ConfirmationDialogBodyType {
|
|
|
32
32
|
export interface ConfirmationDialogButtonGroupType {
|
|
33
33
|
children: any
|
|
34
34
|
}
|
|
35
|
+
export interface DialogFormProps {
|
|
36
|
+
className: string;
|
|
37
|
+
title: string;
|
|
38
|
+
isLoading: boolean;
|
|
39
|
+
closeOnESC?: boolean;
|
|
40
|
+
close: (event) => void;
|
|
41
|
+
onSave: (event) => void;
|
|
42
|
+
headerClassName?: string;
|
|
43
|
+
}
|