@devtron-labs/devtron-fe-common-lib 0.0.7 → 0.0.9-beta-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.
Files changed (86) hide show
  1. package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -29
  2. package/dist/Common/BreadCrumb/Types.d.ts +28 -0
  3. package/dist/Common/CIPipeline.Types.d.ts +263 -0
  4. package/dist/Common/Checkbox.d.ts +1 -14
  5. package/dist/Common/Constants.d.ts +18 -0
  6. package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
  7. package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +1 -1
  8. package/dist/Common/CustomTagSelector/Types.d.ts +11 -3
  9. package/dist/Common/CustomTagSelector/ValidationRules.d.ts +1 -1
  10. package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +4 -0
  11. package/dist/Common/DeleteComponentModal/types.d.ts +15 -0
  12. package/dist/Common/Dialogs/ConfirmationDialog.d.ts +5 -16
  13. package/dist/Common/Dialogs/DialogForm.d.ts +1 -9
  14. package/dist/Common/Dialogs/Types.d.ts +28 -0
  15. package/dist/Common/EmptyState/EmptyState.d.ts +2 -1
  16. package/dist/Common/EmptyState/GenericEmptyState.d.ts +5 -0
  17. package/dist/Common/Error.d.ts +2 -2
  18. package/dist/Common/Helper.d.ts +31 -1
  19. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +2 -15
  20. package/dist/Common/Modals/Modal.d.ts +2 -9
  21. package/dist/Common/MultiSelectCustomization.d.ts +1 -2
  22. package/dist/Common/PopupMenu.d.ts +4 -21
  23. package/dist/Common/Progressing.d.ts +4 -13
  24. package/dist/Common/RadioGroup/RadioGroup.d.ts +17 -0
  25. package/dist/Common/RadioGroup.d.ts +1 -10
  26. package/dist/Common/Reload.d.ts +2 -4
  27. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +4 -0
  28. package/dist/Common/TippyCustomized.d.ts +2 -30
  29. package/dist/Common/Toggle/Toggle.d.ts +12 -0
  30. package/dist/Common/Types.d.ts +293 -0
  31. package/dist/Common/index.d.ts +7 -1
  32. package/dist/index.js +2472 -1948
  33. package/package.json +2 -2
  34. package/rollup.config.js +3 -3
  35. package/src/Assets/Icon/ic-help.svg +3 -0
  36. package/src/Assets/Icon/ic-info-filled.svg +7 -0
  37. package/src/Assets/Icon/ic-warning.svg +7 -0
  38. package/src/Assets/Img/app-not-deployed.png +0 -0
  39. package/src/Common/Api.ts +7 -1
  40. package/src/Common/BreadCrumb/BreadCrumb.tsx +1 -30
  41. package/src/Common/BreadCrumb/Types.ts +30 -0
  42. package/src/Common/CIPipeline.Types.ts +275 -0
  43. package/src/Common/Checkbox.tsx +3 -16
  44. package/src/Common/Constants.ts +21 -0
  45. package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +6 -4
  46. package/src/Common/CustomTagSelector/TagDetails.tsx +15 -2
  47. package/src/Common/CustomTagSelector/TagLabelSelect.tsx +7 -3
  48. package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +66 -26
  49. package/src/Common/CustomTagSelector/Types.ts +11 -3
  50. package/src/Common/CustomTagSelector/ValidationRules.ts +21 -18
  51. package/src/Common/DeleteComponentModal/DeleteComponent.tsx +95 -0
  52. package/src/Common/DeleteComponentModal/types.ts +15 -0
  53. package/src/Common/Dialogs/ConfirmationDialog.tsx +6 -4
  54. package/src/Common/Dialogs/DeleteDialog.tsx +45 -27
  55. package/src/Common/Dialogs/DialogForm.tsx +2 -11
  56. package/src/Common/Dialogs/Types.ts +29 -0
  57. package/src/Common/Drawer/Drawer.scss +12 -11
  58. package/src/Common/EmptyState/EmptyState.tsx +5 -5
  59. package/src/Common/EmptyState/GenericEmptyState.tsx +41 -0
  60. package/src/Common/EmptyState/emptyState.scss +4 -15
  61. package/src/Common/Error.tsx +13 -16
  62. package/src/Common/ErrorScreenNotFound.tsx +23 -30
  63. package/src/Common/Helper.tsx +258 -2
  64. package/src/Common/InfoColorBar/InfoColourbar.tsx +6 -18
  65. package/src/Common/Modals/Modal.tsx +7 -1
  66. package/src/Common/Modals/OpaqueModal.tsx +2 -2
  67. package/src/Common/Modals/VisibleModal.tsx +1 -1
  68. package/src/Common/Modals/VisibleModal2.tsx +1 -1
  69. package/src/Common/MultiSelectCustomization.tsx +3 -3
  70. package/src/Common/PopupMenu.tsx +23 -6
  71. package/src/Common/Progressing.tsx +8 -15
  72. package/src/Common/RadioGroup/RadioGroup.tsx +88 -0
  73. package/src/Common/RadioGroup/radioGroup.scss +46 -0
  74. package/src/Common/RadioGroup.tsx +3 -13
  75. package/src/Common/Reload.tsx +15 -10
  76. package/src/Common/Security/ScanVulnerabilitiesTable.tsx +55 -0
  77. package/src/Common/Security/scanVulnerabilities.css +67 -0
  78. package/src/Common/TippyCustomized.tsx +29 -31
  79. package/src/Common/Toggle/Toggle.scss +70 -0
  80. package/src/Common/Toggle/Toggle.tsx +38 -0
  81. package/src/Common/Types.ts +319 -0
  82. package/src/Common/index.ts +7 -1
  83. package/dist/27bfa7a87d0b7039.png +0 -0
  84. package/dist/b5d52f036bdcd3ed.png +0 -0
  85. package/src/Assets/Icon/ic-close.svg +0 -9
  86. /package/src/Assets/Img/{warning-medium.svg → delete-medium.svg} +0 -0
@@ -1,33 +1,5 @@
1
1
  import React from 'react';
2
+ import { Breadcrumbs, UseBreadcrumbOptionalProps, UseBreadcrumbState } from './Types';
2
3
  export declare const BreadcrumbContext: React.Context<any>;
3
- interface Breadcrumb {
4
- to: string;
5
- name: string;
6
- className?: string;
7
- }
8
- interface UseBreadcrumbState {
9
- breadcrumbs: Breadcrumb[];
10
- setCrumb: (props: {
11
- [key: string]: any;
12
- }) => void;
13
- resetCrumb: (props: string[]) => void;
14
- }
15
- interface AdvancedAlias {
16
- component: any;
17
- linked: boolean;
18
- }
19
- interface UseBreadcrumbProps {
20
- sep?: string;
21
- alias?: {
22
- [key: string]: AdvancedAlias | any;
23
- };
24
- }
25
- type UseBreadcrumbOptionalProps = UseBreadcrumbProps | null;
26
4
  export declare function useBreadcrumb(props?: UseBreadcrumbOptionalProps, deps?: any[]): UseBreadcrumbState;
27
- interface Breadcrumbs {
28
- breadcrumbs: Breadcrumb[];
29
- sep?: string;
30
- className?: string;
31
- }
32
5
  export declare const BreadCrumb: React.FC<Breadcrumbs>;
33
- export {};
@@ -0,0 +1,28 @@
1
+ export interface Breadcrumb {
2
+ to: string;
3
+ name: string;
4
+ className?: string;
5
+ }
6
+ export interface UseBreadcrumbState {
7
+ breadcrumbs: Breadcrumb[];
8
+ setCrumb: (props: {
9
+ [key: string]: any;
10
+ }) => void;
11
+ resetCrumb: (props: string[]) => void;
12
+ }
13
+ export interface AdvancedAlias {
14
+ component: any;
15
+ linked: boolean;
16
+ }
17
+ export interface UseBreadcrumbProps {
18
+ sep?: string;
19
+ alias?: {
20
+ [key: string]: AdvancedAlias | any;
21
+ };
22
+ }
23
+ export interface Breadcrumbs {
24
+ breadcrumbs: Breadcrumb[];
25
+ sep?: string;
26
+ className?: string;
27
+ }
28
+ export type UseBreadcrumbOptionalProps = UseBreadcrumbProps | null;
@@ -0,0 +1,263 @@
1
+ export interface MaterialType {
2
+ name: string;
3
+ type: string;
4
+ value: string;
5
+ gitMaterialId: number;
6
+ id: number;
7
+ isSelected: boolean;
8
+ gitHostId: number;
9
+ gitProviderId: number;
10
+ regex?: string;
11
+ isRegex: boolean;
12
+ }
13
+ export interface Githost {
14
+ id: number;
15
+ name: string;
16
+ active: boolean;
17
+ webhookSecret: string;
18
+ webhookUrl: string;
19
+ }
20
+ export interface WebhookEvent {
21
+ id: number;
22
+ gitHostId: number;
23
+ name: string;
24
+ isActive: boolean;
25
+ selectors: WebhookEventSelectors[];
26
+ }
27
+ interface WebhookEventSelectors {
28
+ id: number;
29
+ eventId: number;
30
+ name: string;
31
+ selector: string;
32
+ toShowInCiFilter: boolean;
33
+ fixValue: string;
34
+ toShow: boolean;
35
+ possibleValues: string;
36
+ isActive: boolean;
37
+ }
38
+ export interface CiPipelineSourceTypeOption {
39
+ label: string;
40
+ value: string;
41
+ isDisabled: boolean;
42
+ isSelected: boolean;
43
+ isWebhook: boolean;
44
+ }
45
+ export declare enum RefVariableType {
46
+ GLOBAL = "GLOBAL",
47
+ FROM_PREVIOUS_STEP = "FROM_PREVIOUS_STEP",
48
+ NEW = "NEW"
49
+ }
50
+ export declare enum PluginType {
51
+ INLINE = "INLINE",
52
+ PLUGIN_REF = "REF_PLUGIN"
53
+ }
54
+ export declare enum ScriptType {
55
+ SHELL = "SHELL",
56
+ DOCKERFILE = "DOCKERFILE",
57
+ CONTAINERIMAGE = "CONTAINER_IMAGE"
58
+ }
59
+ export declare enum MountPath {
60
+ TRUE = "Yes",
61
+ FALSE = "No"
62
+ }
63
+ export declare enum ConditionType {
64
+ SKIP = "SKIP",
65
+ TRIGGER = "TRIGGER",
66
+ PASS = "PASS",
67
+ FAIL = "FAIL"
68
+ }
69
+ export declare enum RefVariableStageType {
70
+ PRE_CI = "PRE_CI",
71
+ POST_CI = "POST_CI"
72
+ }
73
+ export interface VariableType {
74
+ id: number;
75
+ name: string;
76
+ value: string;
77
+ format: string;
78
+ description: string;
79
+ defaultValue: string;
80
+ variableType: RefVariableType;
81
+ refVariableStepIndex: number;
82
+ refVariableName: string;
83
+ refVariableStage?: RefVariableStageType;
84
+ variableStepIndexInPlugin?: number;
85
+ }
86
+ interface CommandArgsMap {
87
+ command: string;
88
+ args: string[];
89
+ }
90
+ export interface PortMapType {
91
+ portOnLocal: number;
92
+ portOnContainer: number;
93
+ }
94
+ interface ConditionDetails {
95
+ id: number;
96
+ conditionOnVariable: string;
97
+ conditionOperator: string;
98
+ conditionType: ConditionType;
99
+ conditionalValue: string;
100
+ }
101
+ interface InlineStepDetailType {
102
+ scriptType: ScriptType;
103
+ isMountCustomScript?: boolean;
104
+ script?: string;
105
+ dockerFileExists?: boolean;
106
+ mountPath?: string;
107
+ mountCodeToContainer?: boolean;
108
+ mountDirectoryFromHost?: boolean;
109
+ containerImagePath?: string;
110
+ imagePullSecret?: string;
111
+ commandArgsMap?: CommandArgsMap[];
112
+ portMap?: PortMapType[];
113
+ mountPathMap?: {
114
+ filePathOnDisk: string;
115
+ filePathOnContainer: string;
116
+ }[];
117
+ inputVariables?: VariableType[];
118
+ outputVariables?: VariableType[];
119
+ conditionDetails: ConditionDetails[];
120
+ }
121
+ interface PluginRefStepDetailType {
122
+ id: number;
123
+ pluginId: number;
124
+ inputVariables?: VariableType[];
125
+ outputVariables?: VariableType[];
126
+ conditionDetails?: ConditionDetails[];
127
+ }
128
+ export interface StepType {
129
+ id: number;
130
+ index: number;
131
+ name: string;
132
+ description: string;
133
+ stepType: PluginType;
134
+ outputDirectoryPath: string[];
135
+ inlineStepDetail?: InlineStepDetailType;
136
+ pluginRefStepDetail?: PluginRefStepDetailType;
137
+ triggerIfParentStageFail: boolean;
138
+ isMandatory?: boolean;
139
+ }
140
+ export interface BuildStageType {
141
+ id: number;
142
+ steps: StepType[];
143
+ }
144
+ export declare enum CIBuildType {
145
+ SELF_DOCKERFILE_BUILD_TYPE = "self-dockerfile-build",
146
+ MANAGED_DOCKERFILE_BUILD_TYPE = "managed-dockerfile-build",
147
+ BUILDPACK_BUILD_TYPE = "buildpack-build"
148
+ }
149
+ export interface BuildPackConfigType {
150
+ builderId: string;
151
+ language: string;
152
+ languageVersion: string;
153
+ projectPath: string;
154
+ builderLangEnvParam?: string;
155
+ currentBuilderLangEnvParam?: string;
156
+ buildPacks?: any;
157
+ args?: Record<string, string>;
158
+ }
159
+ export interface DockerBuildConfigType {
160
+ dockerfileContent: string;
161
+ dockerfileRelativePath: string;
162
+ buildContext: string;
163
+ dockerfilePath?: string;
164
+ dockerfileRepository?: string;
165
+ args?: Record<string, string>;
166
+ targetPlatform?: any;
167
+ language?: string;
168
+ languageFramework?: string;
169
+ }
170
+ export interface CIBuildConfigType {
171
+ buildPackConfig: BuildPackConfigType;
172
+ ciBuildType: CIBuildType;
173
+ dockerBuildConfig: DockerBuildConfigType;
174
+ gitMaterialId: number;
175
+ buildContextGitMaterialId: number;
176
+ id?: number;
177
+ }
178
+ export interface DockerConfigOverrideType {
179
+ dockerRegistry: string;
180
+ dockerRepository: string;
181
+ ciBuildConfig: CIBuildConfigType;
182
+ }
183
+ export interface FormType {
184
+ name: string;
185
+ args: {
186
+ key: string;
187
+ value: string;
188
+ }[];
189
+ materials: MaterialType[];
190
+ gitHost: Githost;
191
+ webhookEvents: WebhookEvent[];
192
+ ciPipelineSourceTypeOptions: CiPipelineSourceTypeOption[];
193
+ webhookConditionList: {
194
+ selectorId: number;
195
+ value: string;
196
+ }[];
197
+ triggerType: string;
198
+ scanEnabled?: boolean;
199
+ beforeDockerBuildScripts?: {
200
+ id: number;
201
+ name: string;
202
+ outputLocation: string;
203
+ script: string;
204
+ isCollapsed: boolean;
205
+ index: number;
206
+ }[];
207
+ afterDockerBuildScripts?: {
208
+ id: number;
209
+ name: string;
210
+ outputLocation: string;
211
+ script: string;
212
+ isCollapsed: boolean;
213
+ index: number;
214
+ }[];
215
+ ciPipelineEditable: true;
216
+ preBuildStage?: BuildStageType;
217
+ postBuildStage?: BuildStageType;
218
+ isDockerConfigOverridden?: boolean;
219
+ dockerConfigOverride?: DockerConfigOverrideType;
220
+ }
221
+ export interface ErrorObj {
222
+ isValid: boolean;
223
+ message: string | null;
224
+ }
225
+ export interface TaskErrorObj {
226
+ isValid: boolean;
227
+ name: ErrorObj;
228
+ inlineStepDetail?: {
229
+ inputVariables?: ErrorObj[];
230
+ outputVariables?: ErrorObj[];
231
+ };
232
+ pluginRefStepDetail?: {
233
+ inputVariables?: ErrorObj[];
234
+ outputVariables?: ErrorObj[];
235
+ };
236
+ }
237
+ export interface FormErrorObjectType {
238
+ name: ErrorObj;
239
+ materials?: MaterialType[];
240
+ preBuildStage?: {
241
+ isValid: boolean;
242
+ steps: TaskErrorObj[];
243
+ };
244
+ buildStage?: {
245
+ isValid: boolean;
246
+ name: ErrorObj;
247
+ };
248
+ postBuildStage?: {
249
+ isValid: boolean;
250
+ steps: TaskErrorObj[];
251
+ };
252
+ }
253
+ export interface PluginDetailType {
254
+ id: number;
255
+ name: string;
256
+ type: string;
257
+ description: string;
258
+ icon: string;
259
+ tags: string[];
260
+ inputVariables?: VariableType[];
261
+ outputVariables?: VariableType[];
262
+ }
263
+ export {};
@@ -1,18 +1,5 @@
1
1
  import { Component } from 'react';
2
- export declare enum CHECKBOX_VALUE {
3
- CHECKED = "CHECKED",
4
- INTERMEDIATE = "INTERMEDIATE"
5
- }
6
- export interface CheckboxProps {
7
- onChange: (event: any) => void;
8
- isChecked: boolean;
9
- value: 'CHECKED' | 'INTERMEDIATE';
10
- disabled?: boolean;
11
- tabIndex?: number;
12
- rootClassName?: string;
13
- onClick?: (event: any) => void;
14
- id?: string;
15
- }
2
+ import { CheckboxProps } from './Types';
16
3
  export declare class Checkbox extends Component<CheckboxProps> {
17
4
  render(): JSX.Element;
18
5
  }
@@ -11,6 +11,9 @@ export declare const PATTERNS: {
11
11
  START_END_ALPHANUMERIC: RegExp;
12
12
  ALPHANUMERIC_WITH_SPECIAL_CHAR: RegExp;
13
13
  };
14
+ export declare const URLS: {
15
+ LOGIN_SSO: string;
16
+ };
14
17
  export declare const ROUTES: {
15
18
  PROJECT_LIST_MIN: string;
16
19
  };
@@ -34,4 +37,19 @@ export declare const ERROR_EMPTY_SCREEN: {
34
37
  PAGE_NOT_FOUND: string;
35
38
  PAGE_NOT_EXIST: string;
36
39
  TAKE_BACK_HOME: string;
40
+ ONLY_FOR_SUPERADMIN: string;
41
+ NOT_AUTHORIZED: string;
42
+ UNAUTHORIZED: string;
43
+ FORBIDDEN: string;
44
+ REQUIRED_MANAGER_ACCESS: string;
45
+ };
46
+ export declare const TOKEN_COOKIE_NAME = "argocd.token";
47
+ export declare const TriggerTypeMap: {
48
+ automatic: string;
49
+ manual: string;
50
+ };
51
+ export declare const BuildStageVariable: {
52
+ PreBuild: string;
53
+ Build: string;
54
+ PostBuild: string;
37
55
  };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { ResizableTagTextAreaProps } from './Types';
3
- export declare function ResizableTagTextArea({ className, minHeight, maxHeight, value, onChange, onBlur, onFocus, placeholder, tabIndex, refVar, dependentRef, }: ResizableTagTextAreaProps): JSX.Element;
3
+ export declare function ResizableTagTextArea({ className, minHeight, maxHeight, value, onChange, onBlur, onFocus, placeholder, tabIndex, refVar, dependentRef, dataTestId, }: ResizableTagTextAreaProps): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { TagLabelValueSelectorType } from './Types';
3
- export declare const TagLabelValueSelector: ({ selectedTagIndex, tagData, setTagData, tagOptions, isRequired, tagInputType, placeholder, tabIndex, refVar, dependentRef, }: TagLabelValueSelectorType) => JSX.Element;
3
+ export declare const TagLabelValueSelector: ({ selectedTagIndex, tagData, setTagData, tagOptions, isRequired, tagInputType, placeholder, tabIndex, refVar, dependentRef, noBackDrop, }: TagLabelValueSelectorType) => JSX.Element;
@@ -1,6 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { KEY_VALUE } from '../Constants';
3
3
  import { OptionType } from '../Types';
4
+ export interface SuggestedTagOptionType extends OptionType {
5
+ description: string;
6
+ propagate: boolean;
7
+ }
4
8
  export interface TagType {
5
9
  id?: number;
6
10
  key: string;
@@ -11,6 +15,7 @@ export interface TagType {
11
15
  isInvalidKey?: boolean;
12
16
  isInvalidValue?: boolean;
13
17
  isSuggested?: boolean;
18
+ isPropagateDisabled?: boolean;
14
19
  }
15
20
  export interface TagErrorType {
16
21
  isValid: boolean;
@@ -22,7 +27,8 @@ export interface TagLabelSelectType {
22
27
  setLabelTags: (tagList: TagType[]) => void;
23
28
  tabIndex?: number;
24
29
  selectedProjectId?: number;
25
- suggestedTagsOptions?: OptionType[];
30
+ suggestedTagsOptions?: SuggestedTagOptionType[];
31
+ reloadProjectTags?: boolean;
26
32
  }
27
33
  export interface TagDetailType {
28
34
  index: number;
@@ -30,19 +36,20 @@ export interface TagDetailType {
30
36
  setTagData: (index: number, tagData: TagType) => void;
31
37
  removeTag?: (index: number) => void;
32
38
  tabIndex?: number;
33
- suggestedTagsOptions?: OptionType[];
39
+ suggestedTagsOptions?: SuggestedTagOptionType[];
34
40
  }
35
41
  export interface TagLabelValueSelectorType {
36
42
  selectedTagIndex: number;
37
43
  tagData: TagType;
38
44
  setTagData: (index: number, tagData: TagType) => void;
39
- tagOptions?: OptionType[];
45
+ tagOptions?: SuggestedTagOptionType[];
40
46
  isRequired?: boolean;
41
47
  tagInputType?: KEY_VALUE;
42
48
  placeholder?: string;
43
49
  tabIndex?: number;
44
50
  refVar?: React.MutableRefObject<HTMLTextAreaElement>;
45
51
  dependentRef?: React.MutableRefObject<HTMLTextAreaElement>;
52
+ noBackDrop?: boolean;
46
53
  }
47
54
  export interface ResizableTagTextAreaProps {
48
55
  className?: string;
@@ -56,4 +63,5 @@ export interface ResizableTagTextAreaProps {
56
63
  tabIndex?: number;
57
64
  refVar?: React.MutableRefObject<HTMLTextAreaElement>;
58
65
  dependentRef?: React.MutableRefObject<HTMLTextAreaElement>;
66
+ dataTestId?: string;
59
67
  }
@@ -3,7 +3,7 @@ export declare class ValidationRules {
3
3
  isValid: boolean;
4
4
  messages: string[];
5
5
  };
6
- propagateTagValue: (value: string) => {
6
+ propagateTagValue: (value: string, key: string) => {
7
7
  isValid: boolean;
8
8
  messages: string[];
9
9
  };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DeleteComponentProps } from './types';
3
+ declare function DeleteComponent({ setDeleting, toggleConfirmation, deleteComponent, title, component, payload, confirmationDialogDescription, redirectTo, url, reload, configuration, closeCustomComponent, }: DeleteComponentProps): JSX.Element;
4
+ export default DeleteComponent;
@@ -0,0 +1,15 @@
1
+ export interface DeleteComponentProps {
2
+ setDeleting: (boolean: any) => void;
3
+ toggleConfirmation: any;
4
+ deleteComponent: (any: any) => Promise<any>;
5
+ title: string;
6
+ component: string;
7
+ payload: any;
8
+ confirmationDialogDescription?: string;
9
+ redirectTo?: boolean;
10
+ url?: string;
11
+ reload?: () => void;
12
+ configuration?: string;
13
+ dataTestid?: string;
14
+ closeCustomComponent?: () => void;
15
+ }
@@ -1,20 +1,9 @@
1
1
  /// <reference types="react" />
2
- declare function ConfirmationDialog({ className, children }: {
3
- className?: string;
4
- children: any;
5
- }): JSX.Element;
2
+ import { ConfirmationDialogBodyType, ConfirmationDialogButtonGroupType, ConfirmationDialogIconType, ConfirmationDialogType } from './Types';
3
+ declare function ConfirmationDialog({ className, children }: ConfirmationDialogType): JSX.Element;
6
4
  declare namespace ConfirmationDialog {
7
- var Icon: ({ src, className }: {
8
- src: any;
9
- className?: string;
10
- }) => JSX.Element;
11
- var Body: ({ title, subtitle, children }: {
12
- title: any;
13
- subtitle?: any;
14
- children?: any;
15
- }) => JSX.Element;
16
- var ButtonGroup: ({ children }: {
17
- children: any;
18
- }) => JSX.Element;
5
+ var Icon: ({ src, className }: ConfirmationDialogIconType) => JSX.Element;
6
+ var Body: ({ title, subtitle, children }: ConfirmationDialogBodyType) => JSX.Element;
7
+ var ButtonGroup: ({ children }: ConfirmationDialogButtonGroupType) => JSX.Element;
19
8
  }
20
9
  export default ConfirmationDialog;
@@ -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;
@@ -6,6 +7,8 @@ export interface DeleteDialogProps {
6
7
  deletePrefix?: string;
7
8
  deletePostfix?: string;
8
9
  apiCallInProgress?: boolean;
10
+ dataTestId?: string;
11
+ buttonPrimaryText?: string;
9
12
  }
10
13
  export interface ForceDeleteDialogType {
11
14
  onClickDelete: () => void;
@@ -13,3 +16,28 @@ export interface ForceDeleteDialogType {
13
16
  forceDeleteDialogTitle: string;
14
17
  forceDeleteDialogMessage: string;
15
18
  }
19
+ export interface ConfirmationDialogType {
20
+ className?: string;
21
+ children: any;
22
+ }
23
+ export interface ConfirmationDialogIconType {
24
+ src: string;
25
+ className?: string;
26
+ }
27
+ export interface ConfirmationDialogBodyType {
28
+ title: string;
29
+ subtitle?: ReactNode;
30
+ children?: any;
31
+ }
32
+ export interface ConfirmationDialogButtonGroupType {
33
+ children: any;
34
+ }
35
+ export interface DialogFormProps {
36
+ className: string;
37
+ title: string;
38
+ isLoading: boolean;
39
+ closeOnESC?: boolean;
40
+ close: (event: any) => void;
41
+ onSave: (event: any) => void;
42
+ headerClassName?: string;
43
+ }
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import './emptyState.scss';
3
- declare function EmptyState({ children }: {
3
+ declare function EmptyState({ children, className }: {
4
4
  children: any;
5
+ className?: string;
5
6
  }): JSX.Element;
6
7
  declare namespace EmptyState {
7
8
  var Image: ({ children }: {
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { GenericEmptyStateType } from '../Types';
3
+ import './emptyState.scss';
4
+ declare function GenericEmptyState({ title, image, subTitle, isButtonAvailable, classname, styles, heightToDeduct, imageType, renderButton, imageClassName, children, noImage }: GenericEmptyStateType): JSX.Element;
5
+ export default GenericEmptyState;
@@ -10,8 +10,8 @@ export declare class ErrorScreenManager extends Component<{
10
10
  render(): JSX.Element;
11
11
  }
12
12
  export declare class ErrorScreenNotAuthorized extends Component<{
13
- subtitle: React.ReactChild;
14
- subtitleClass?: string;
13
+ subtitle?: React.ReactChild;
14
+ title?: string;
15
15
  }> {
16
16
  render(): JSX.Element;
17
17
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
3
3
  interface ConditionalWrapper<T> {
4
4
  condition: boolean;
@@ -9,4 +9,34 @@ export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
9
9
  export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 1 | -1 | 0;
10
10
  export declare const stopPropagation: (event: any) => void;
11
11
  export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
12
+ export declare function getRandomColor(email: string): string;
13
+ export declare const getAlphabetIcon: (str: string) => JSX.Element;
14
+ export declare const getEmptyArrayOfLength: (length: number) => unknown[];
15
+ export declare function noop(...args: any[]): any;
16
+ export declare function not(e: any): boolean;
17
+ export declare function useEffectAfterMount(cb: any, dependencies: any): void;
18
+ export declare function getCookie(sKey: any): string;
19
+ export declare function getLoginInfo(): any;
20
+ export declare function useForm(stateSchema: any, validationSchema: {}, callback: any): {
21
+ state: any;
22
+ disable: boolean;
23
+ handleOnChange: (event: any) => void;
24
+ handleOnSubmit: (event: any) => void;
25
+ };
26
+ export declare function CustomInput({ name, value, error, onChange, onBlur, onFocus, label, type, disabled, autoComplete, labelClassName, placeholder, tabIndex, dataTestid, }: {
27
+ name: any;
28
+ value: any;
29
+ error: any;
30
+ onChange: any;
31
+ onBlur?: (e: any) => void;
32
+ onFocus?: (e: any) => void;
33
+ label: any;
34
+ type?: string;
35
+ disabled?: boolean;
36
+ autoComplete?: string;
37
+ labelClassName?: string;
38
+ placeholder?: string;
39
+ tabIndex?: number;
40
+ dataTestid?: string;
41
+ }): JSX.Element;
12
42
  export {};
@@ -1,18 +1,5 @@
1
- import React, { CSSProperties } from 'react';
1
+ /// <reference types="react" />
2
+ import { InfoColourBarType } from '../Types';
2
3
  import './infoColourBar.scss';
3
- interface InfoColourBarType {
4
- message: React.ReactNode;
5
- classname: string;
6
- Icon: any;
7
- iconClass?: string;
8
- iconSize?: number;
9
- renderActionButton?: () => JSX.Element;
10
- linkText?: React.ReactNode;
11
- redirectLink?: string;
12
- linkOnClick?: () => void;
13
- linkClass?: string;
14
- internalLink?: boolean;
15
- styles?: CSSProperties;
16
- }
17
4
  declare function InfoColourBar({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, }: InfoColourBarType): JSX.Element;
18
5
  export default InfoColourBar;
@@ -1,10 +1,3 @@
1
1
  import React from 'react';
2
- export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, }: {
3
- style?: {};
4
- children: any;
5
- modal?: boolean;
6
- rootClassName?: string;
7
- onClick?: any;
8
- callbackRef?: any;
9
- preventWheelDisable?: boolean;
10
- }) => React.ReactPortal;
2
+ import { ModalType } from '../Types';
3
+ export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
@@ -16,7 +16,7 @@ export declare const multiSelectStyles: {
16
16
  container: (base: any, state: any) => any;
17
17
  valueContainer: (base: any, state: any) => any;
18
18
  };
19
- interface CustomSelect {
19
+ export interface CustomSelect {
20
20
  sortSelected?: boolean;
21
21
  options: any[];
22
22
  onChange: (...args: any[]) => void;
@@ -35,4 +35,3 @@ interface CustomSelect {
35
35
  formatOptionLabel?: (...args: any[]) => any;
36
36
  }
37
37
  export declare const CustomSelect: React.FC<CustomSelect>;
38
- export {};