@devtron-labs/devtron-fe-common-lib 0.0.7-beta-4 → 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.
@@ -11,6 +11,7 @@ export interface TagType {
11
11
  isInvalidKey?: boolean;
12
12
  isInvalidValue?: boolean;
13
13
  isSuggested?: boolean;
14
+ isPropagateDisabled?: boolean;
14
15
  }
15
16
  export interface TagErrorType {
16
17
  isValid: boolean;
@@ -1,13 +1,5 @@
1
1
  import { Component } from 'react';
2
- export interface DialogFormProps {
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;
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from "react";
1
2
  export interface DeleteDialogProps {
2
3
  title: string;
3
4
  description?: string;
@@ -23,9 +24,18 @@ export interface ConfirmationDialogIconType {
23
24
  }
24
25
  export interface ConfirmationDialogBodyType {
25
26
  title: string;
26
- subtitle?: string;
27
+ subtitle?: ReactNode;
27
28
  children?: any;
28
29
  }
29
30
  export interface ConfirmationDialogButtonGroupType {
30
31
  children: any;
31
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
+ }
@@ -100,7 +100,7 @@ export interface InfoColourBarType {
100
100
  styles?: CSSProperties;
101
101
  }
102
102
  export interface ReloadType {
103
- reload?: () => void;
103
+ reload?: (event?: any) => void;
104
104
  className?: string;
105
105
  }
106
106
  export interface RadioGroupItemProps {
@@ -129,7 +129,7 @@ export interface PopupMenuType {
129
129
  autoPosition?: boolean;
130
130
  }
131
131
  export interface PopupMenuButtonType {
132
- children?: React.ReactElement<any>;
132
+ children?: ReactNode;
133
133
  disabled?: boolean;
134
134
  rootClassName?: string;
135
135
  tabIndex?: number;
@@ -137,15 +137,15 @@ export interface PopupMenuButtonType {
137
137
  isKebab?: boolean;
138
138
  }
139
139
  export interface PopupMenuBodyType {
140
- children?: React.ReactElement<any>;
140
+ children?: ReactNode;
141
141
  rootClassName?: string;
142
142
  style?: React.CSSProperties;
143
143
  autoWidth?: boolean;
144
144
  preventWheelDisable?: boolean;
145
145
  }
146
146
  export interface ModalType {
147
- style: React.CSSProperties;
148
- children?: React.ReactElement<any>;
147
+ style?: React.CSSProperties;
148
+ children?: ReactNode;
149
149
  modal?: boolean;
150
150
  rootClassName?: string;
151
151
  onClick?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.7-beta-4",
3
+ "version": "0.0.7-beta-6",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -11,6 +11,7 @@ export interface TagType {
11
11
  isInvalidKey?: boolean
12
12
  isInvalidValue?: boolean
13
13
  isSuggested?: boolean
14
+ isPropagateDisabled?: boolean
14
15
  }
15
16
 
16
17
  export interface TagErrorType {
@@ -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);
@@ -1,3 +1,5 @@
1
+ import { ReactNode } from "react"
2
+
1
3
  export interface DeleteDialogProps {
2
4
  title: string
3
5
  description?: string
@@ -24,9 +26,18 @@ export interface ConfirmationDialogIconType {
24
26
  }
25
27
  export interface ConfirmationDialogBodyType {
26
28
  title: string
27
- subtitle?: string
29
+ subtitle?: ReactNode
28
30
  children?: any
29
31
  }
30
32
  export interface ConfirmationDialogButtonGroupType {
31
33
  children: any
32
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
+ }
@@ -109,7 +109,7 @@ export interface InfoColourBarType {
109
109
  }
110
110
 
111
111
  export interface ReloadType {
112
- reload?: () => void
112
+ reload?: (event?: any) => void
113
113
  className?: string
114
114
  }
115
115
 
@@ -143,7 +143,7 @@ export interface PopupMenuType {
143
143
  }
144
144
 
145
145
  export interface PopupMenuButtonType {
146
- children?: React.ReactElement<any>
146
+ children?: ReactNode
147
147
  disabled?: boolean
148
148
  rootClassName?: string
149
149
  tabIndex?: number
@@ -152,7 +152,7 @@ export interface PopupMenuButtonType {
152
152
  }
153
153
 
154
154
  export interface PopupMenuBodyType {
155
- children?: React.ReactElement<any>
155
+ children?: ReactNode
156
156
  rootClassName?: string
157
157
  style?: React.CSSProperties
158
158
  autoWidth?: boolean
@@ -160,8 +160,8 @@ export interface PopupMenuBodyType {
160
160
  }
161
161
 
162
162
  export interface ModalType {
163
- style: React.CSSProperties
164
- children?: React.ReactElement<any>
163
+ style?: React.CSSProperties
164
+ children?: ReactNode
165
165
  modal?: boolean
166
166
  rootClassName?: string
167
167
  onClick?: any