@devtron-labs/devtron-fe-common-lib 0.0.52-beta-2 → 0.0.52-beta-3

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 (130) hide show
  1. package/.eslintignore +79 -0
  2. package/.eslintrc.js +84 -16
  3. package/.github/pull_request_template.md +25 -0
  4. package/.github/workflows/ci.yml +31 -0
  5. package/.github/workflows/release-package.yml +2 -3
  6. package/.husky/pre-commit +5 -0
  7. package/.lintstagedrc +3 -0
  8. package/.nvmrc +1 -0
  9. package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -1
  10. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -2
  11. package/dist/Common/Constants.d.ts +1 -5
  12. package/dist/Common/CustomInput/CustomInput.d.ts +1 -1
  13. package/dist/Common/CustomInput/Types.d.ts +2 -2
  14. package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
  15. package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +1 -1
  16. package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +1 -1
  17. package/dist/Common/Dialogs/ConfirmationDialog.d.ts +6 -6
  18. package/dist/Common/Dialogs/DeleteDialog.d.ts +1 -1
  19. package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +1 -1
  20. package/dist/Common/Dialogs/Types.d.ts +1 -1
  21. package/dist/Common/EmptyState/EmptyState.d.ts +20 -17
  22. package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -1
  23. package/dist/Common/Error.d.ts +2 -1
  24. package/dist/Common/ErrorScreenNotFound.d.ts +1 -1
  25. package/dist/Common/Helper.d.ts +1 -1
  26. package/dist/Common/ImageTags.d.ts +1 -1
  27. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
  28. package/dist/Common/Modals/Modal.d.ts +2 -2
  29. package/dist/Common/Modals/OpaqueModal.d.ts +3 -3
  30. package/dist/Common/Modals/VisibleModal.d.ts +3 -3
  31. package/dist/Common/Modals/VisibleModal2.d.ts +3 -3
  32. package/dist/Common/MultiSelectCustomization.d.ts +1 -1
  33. package/dist/Common/Policy.Types.d.ts +2 -2
  34. package/dist/Common/PopupMenu.d.ts +5 -5
  35. package/dist/Common/Progressing.d.ts +2 -2
  36. package/dist/Common/RadioGroup/RadioGroup.d.ts +1 -1
  37. package/dist/Common/ResizableTextarea.d.ts +1 -1
  38. package/dist/Common/TippyCustomized.d.ts +1 -1
  39. package/dist/Common/ToastBody.d.ts +5 -5
  40. package/dist/Common/Types.d.ts +0 -1
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.js +286 -370
  43. package/package.json +19 -2
  44. package/src/Common/AddCDButton/AddCDButton.tsx +1 -2
  45. package/src/Common/Api.ts +20 -25
  46. package/src/Common/AppStatus/AppStatus.tsx +12 -12
  47. package/src/Common/AppStatus/utils.ts +6 -5
  48. package/src/Common/BreadCrumb/BreadCrumb.tsx +32 -28
  49. package/src/Common/BreadCrumb/BreadcrumbStore.tsx +2 -2
  50. package/src/Common/BreadCrumb/Types.ts +11 -12
  51. package/src/Common/ChartVersionAndTypeSelector.tsx +1 -1
  52. package/src/Common/Checkbox.tsx +17 -19
  53. package/src/Common/ClipboardButton/ClipboardButton.tsx +1 -1
  54. package/src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx +0 -1
  55. package/src/Common/Common.service.ts +60 -65
  56. package/src/Common/Constants.ts +9 -13
  57. package/src/Common/CustomInput/CustomInput.tsx +22 -29
  58. package/src/Common/CustomInput/Types.ts +4 -4
  59. package/src/Common/CustomInput/index.ts +1 -1
  60. package/src/Common/CustomTagSelector/PropagateTagInfo.tsx +15 -18
  61. package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +9 -9
  62. package/src/Common/CustomTagSelector/TagDetails.tsx +9 -3
  63. package/src/Common/CustomTagSelector/TagLabelSelect.tsx +7 -9
  64. package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +31 -35
  65. package/src/Common/CustomTagSelector/TagSelector.utils.ts +2 -3
  66. package/src/Common/CustomTagSelector/Types.ts +1 -1
  67. package/src/Common/CustomTagSelector/ValidationRules.ts +18 -22
  68. package/src/Common/CustomTagSelector/index.ts +2 -2
  69. package/src/Common/DebouncedSearch/DebouncedSearch.tsx +2 -1
  70. package/src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx +0 -1
  71. package/src/Common/DeleteComponentModal/DeleteComponent.tsx +27 -32
  72. package/src/Common/DeleteComponentModal/types.ts +1 -1
  73. package/src/Common/DevtronProgressing/DevtronProgressing.tsx +5 -8
  74. package/src/Common/Dialogs/ConfirmationDialog.tsx +24 -24
  75. package/src/Common/Dialogs/DeleteDialog.tsx +3 -5
  76. package/src/Common/Dialogs/DialogForm.tsx +31 -35
  77. package/src/Common/Dialogs/ForceDeleteDialog.tsx +13 -7
  78. package/src/Common/Dialogs/Types.ts +12 -12
  79. package/src/Common/Dialogs/index.ts +1 -1
  80. package/src/Common/Drawer/Drawer.tsx +1 -1
  81. package/src/Common/EmptyState/EmptyState.tsx +13 -17
  82. package/src/Common/EmptyState/GenericEmptyState.tsx +7 -29
  83. package/src/Common/Error.tsx +5 -5
  84. package/src/Common/ErrorScreenNotFound.tsx +9 -12
  85. package/src/Common/Grid/Grid.tsx +1 -2
  86. package/src/Common/Helper.tsx +36 -37
  87. package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +1 -1
  88. package/src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx +1 -1
  89. package/src/Common/Hooks/UseWindowSize/UseWindowSize.tsx +5 -7
  90. package/src/Common/ImageTags.Types.ts +2 -3
  91. package/src/Common/ImageTags.tsx +61 -66
  92. package/src/Common/InfoColorBar/InfoColourbar.tsx +10 -5
  93. package/src/Common/Modals/Modal.tsx +3 -3
  94. package/src/Common/Modals/OpaqueModal.tsx +25 -18
  95. package/src/Common/Modals/VisibleModal.tsx +7 -3
  96. package/src/Common/Modals/VisibleModal2.tsx +20 -15
  97. package/src/Common/MultiSelectCustomization.tsx +9 -13
  98. package/src/Common/Policy.Types.ts +38 -38
  99. package/src/Common/PopupMenu.tsx +10 -9
  100. package/src/Common/Progressing.tsx +15 -18
  101. package/src/Common/RJSF/Form.tsx +0 -1
  102. package/src/Common/RJSF/common/FieldRow.tsx +0 -1
  103. package/src/Common/RJSF/config.ts +0 -1
  104. package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +1 -1
  105. package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +0 -1
  106. package/src/Common/RJSF/templates/BaseInput.tsx +0 -1
  107. package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +0 -1
  108. package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +0 -1
  109. package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +1 -6
  110. package/src/Common/RJSF/templates/Description.tsx +0 -1
  111. package/src/Common/RJSF/templates/Field.tsx +14 -3
  112. package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +6 -9
  113. package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +5 -7
  114. package/src/Common/RJSF/templates/TitleField.tsx +0 -1
  115. package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +0 -1
  116. package/src/Common/RJSF/utils.ts +53 -57
  117. package/src/Common/RJSF/widgets/Checkbox.tsx +2 -2
  118. package/src/Common/RJSF/widgets/Select.tsx +0 -1
  119. package/src/Common/RadioGroup/RadioGroup.tsx +18 -23
  120. package/src/Common/RadioGroup.tsx +24 -23
  121. package/src/Common/Reload.tsx +0 -1
  122. package/src/Common/ResizableTextarea.tsx +18 -17
  123. package/src/Common/Security/ScanVulnerabilitiesTable.tsx +29 -34
  124. package/src/Common/ServerError.ts +5 -1
  125. package/src/Common/TippyCustomized.tsx +41 -38
  126. package/src/Common/ToastBody.tsx +6 -7
  127. package/src/Common/Toggle/Toggle.tsx +3 -3
  128. package/src/Common/Types.ts +19 -20
  129. package/src/custom.d.ts +7 -7
  130. package/src/index.ts +1 -1
package/.eslintignore ADDED
@@ -0,0 +1,79 @@
1
+ .eslintrc.js
2
+
3
+ # Files with ESLint errors/warnings
4
+ src/Common/AddCDButton/AddCDButton.tsx
5
+ src/Common/AddCDButton/utils.tsx
6
+ src/Common/Api.ts
7
+ src/Common/AppStatus/AppStatus.tsx
8
+ src/Common/AppStatus/index.ts
9
+ src/Common/AppStatus/utils.ts
10
+ src/Common/BreadCrumb/BreadCrumb.tsx
11
+ src/Common/BreadCrumb/BreadcrumbStore.tsx
12
+ src/Common/CIPipeline.Types.ts
13
+ src/Common/ChartVersionAndTypeSelector.tsx
14
+ src/Common/Checkbox.tsx
15
+ src/Common/ClipboardButton/ClipboardButton.tsx
16
+ src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx
17
+ src/Common/Common.service.ts
18
+ src/Common/CustomInput/CustomInput.tsx
19
+ src/Common/CustomTagSelector/PropagateTagInfo.tsx
20
+ src/Common/CustomTagSelector/ResizableTagTextArea.tsx
21
+ src/Common/CustomTagSelector/TagDetails.tsx
22
+ src/Common/CustomTagSelector/TagLabelSelect.tsx
23
+ src/Common/CustomTagSelector/TagLabelValueSelector.tsx
24
+ src/Common/CustomTagSelector/TagSelector.utils.ts
25
+ src/Common/CustomTagSelector/ValidationRules.ts
26
+ src/Common/DebouncedSearch/DebouncedSearch.tsx
27
+ src/Common/DebouncedSearch/Utils.ts
28
+ src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx
29
+ src/Common/DeleteComponentModal/DeleteComponent.tsx
30
+ src/Common/DevtronProgressing/DevtronProgressing.tsx
31
+ src/Common/Dialogs/DeleteDialog.tsx
32
+ src/Common/Dialogs/DialogForm.tsx
33
+ src/Common/Dialogs/ForceDeleteDialog.tsx
34
+ src/Common/DraggableWrapper/DraggableButton.tsx
35
+ src/Common/DraggableWrapper/DraggableWrapper.tsx
36
+ src/Common/Drawer/Drawer.tsx
37
+ src/Common/EmptyState/EmptyState.tsx
38
+ src/Common/Error.tsx
39
+ src/Common/ErrorScreenNotFound.tsx
40
+ src/Common/Grid/Grid.tsx
41
+ src/Common/Helper.tsx
42
+ src/Common/Hooks/UseClickOutside/UseClickOutside.tsx
43
+ src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx
44
+ src/Common/Hooks/UseWindowSize/UseWindowSize.tsx
45
+ src/Common/ImageTags.tsx
46
+ src/Common/Modals/Modal.tsx
47
+ src/Common/Modals/OpaqueModal.tsx
48
+ src/Common/Modals/VisibleModal.tsx
49
+ src/Common/Modals/VisibleModal2.tsx
50
+ src/Common/MultiSelectCustomization.tsx
51
+ src/Common/PopupMenu.tsx
52
+ src/Common/Progressing.tsx
53
+ src/Common/RJSF/Form.tsx
54
+ src/Common/RJSF/common/FieldRow.tsx
55
+ src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx
56
+ src/Common/RJSF/templates/ArrayFieldTemplate.tsx
57
+ src/Common/RJSF/templates/BaseInput.tsx
58
+ src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx
59
+ src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx
60
+ src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx
61
+ src/Common/RJSF/templates/Description.tsx
62
+ src/Common/RJSF/templates/Field.tsx
63
+ src/Common/RJSF/templates/FieldErrorTemplate.tsx
64
+ src/Common/RJSF/templates/ObjectFieldTemplate.tsx
65
+ src/Common/RJSF/templates/TitleField.tsx
66
+ src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx
67
+ src/Common/RJSF/utils.ts
68
+ src/Common/RJSF/widgets/Checkbox.tsx
69
+ src/Common/RJSF/widgets/Select.tsx
70
+ src/Common/RadioGroup.tsx
71
+ src/Common/RadioGroup/RadioGroup.tsx
72
+ src/Common/Reload.tsx
73
+ src/Common/ResizableTextarea.tsx
74
+ src/Common/Security/ScanVulnerabilitiesTable.tsx
75
+ src/Common/ServerError.ts
76
+ src/Common/TippyCustomized.tsx
77
+ src/Common/ToastBody.tsx
78
+ src/Common/Toggle/Toggle.tsx
79
+ src/Common/Types.ts
package/.eslintrc.js CHANGED
@@ -1,41 +1,109 @@
1
1
  module.exports = {
2
2
  parser: '@typescript-eslint/parser',
3
- plugins: ['@typescript-eslint'],
3
+ plugins: ['@typescript-eslint', 'react', 'prettier'],
4
4
  env: {
5
- commonjs: true,
6
5
  browser: true,
7
- es6: true,
6
+ es2021: true,
8
7
  },
9
8
  parserOptions: {
10
- ecmaVersion: 2018,
9
+ ecmaVersion: 2021,
11
10
  sourceType: 'module',
12
11
  ecmaFeatures: {
13
12
  jsx: true,
14
13
  },
15
14
  project: ['./tsconfig.json'],
16
15
  },
16
+ globals: {
17
+ JSX: true,
18
+ },
19
+ extends: [
20
+ 'eslint:recommended',
21
+ 'plugin:react/recommended',
22
+ 'plugin:react/jsx-runtime',
23
+ 'plugin:@typescript-eslint/eslint-recommended',
24
+ 'airbnb',
25
+ 'airbnb/hooks',
26
+ 'prettier',
27
+ ],
17
28
  rules: {
29
+ 'prettier/prettier': ['error'],
30
+ 'linebreak-style': ['error', 'unix'],
31
+ 'no-console': 'warn',
18
32
  'no-var': 'error',
19
33
  'no-duplicate-imports': 'error',
34
+ 'no-shadow': 'off',
35
+ '@typescript-eslint/no-shadow': 'warn',
20
36
  '@typescript-eslint/explicit-function-return-type': 'off',
21
- '@typescript-eslint/no-explicit-any': 'off',
22
- '@typescript-eslint/no-use-before-define': 'off',
23
37
  '@typescript-eslint/explicit-member-accessibility': 'off',
24
- curly: [2, 'all'],
25
- 'keyword-spacing': 'error',
26
- 'prettier/prettier': ['error', { semi: false }],
38
+ // Since we are using typescript, we can disable the no-unused-vars rule for enum,etc
39
+ 'no-unused-vars': 'off',
40
+ '@typescript-eslint/no-unused-vars': 'error',
41
+ 'react/jsx-filename-extension': [
42
+ 'error',
43
+ {
44
+ extensions: ['tsx'],
45
+ },
46
+ ],
47
+ 'react/jsx-props-no-spreading': 'off',
48
+ 'react/prefer-stateless-function': 'off',
49
+ 'jsx-a11y/click-events-have-key-events': 'off',
50
+ 'jsx-a11y/no-static-element-interactions': 'off',
51
+ 'jsx-a11y/no-noninteractive-element-interactions': 'off',
52
+ 'no-underscore-dangle': 'off',
53
+ 'import/no-extraneous-dependencies': [
54
+ 'warn',
55
+ {
56
+ devDependencies: true,
57
+ },
58
+ ],
59
+ 'no-plusplus': [
60
+ 'error',
61
+ {
62
+ allowForLoopAfterthoughts: true,
63
+ },
64
+ ],
65
+ // Since we dont use prop-types, we can disable this rule
66
+ 'react/require-default-props': 'off',
67
+ 'react-hooks/exhaustive-deps': 'off',
68
+ 'react/function-component-definition': [
69
+ 'warn',
70
+ {
71
+ namedComponents: 'arrow-function',
72
+ unnamedComponents: 'arrow-function',
73
+ },
74
+ ],
75
+ 'react/jsx-uses-react': 'off',
76
+ 'react/react-in-jsx-scope': 'off',
77
+ // additional rules:
78
+ '@typescript-eslint/no-floating-promises': 'error',
79
+ 'import/extensions': [
80
+ 'warn',
81
+ 'ignorePackages',
82
+ {
83
+ js: 'never',
84
+ jsx: 'never',
85
+ ts: 'never',
86
+ tsx: 'never',
87
+ },
88
+ ],
27
89
  },
28
- extends: [
29
- 'eslint:recommended',
30
- 'plugin:@typescript-eslint/eslint-recommended',
31
- 'plugin:@typescript-eslint/recommended',
32
- 'prettier/@typescript-eslint',
33
- 'plugin:prettier/recommended',
34
- 'plugin:react/recommended',
90
+ overrides: [
91
+ {
92
+ files: ['*.ts', '*.tsx'],
93
+ rules: {
94
+ 'no-undef': 'off',
95
+ },
96
+ },
35
97
  ],
36
98
  settings: {
37
99
  react: {
38
100
  version: 'detect',
39
101
  },
102
+ 'import/resolver': {
103
+ node: {
104
+ moduleDirectory: ['src', 'node_modules'],
105
+ extensions: ['.js', '.jsx', '.ts', '.tsx'],
106
+ },
107
+ },
40
108
  },
41
109
  }
@@ -0,0 +1,25 @@
1
+ # Description
2
+
3
+ Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
4
+
5
+ ## Type of change
6
+
7
+ - [ ] Bug fix (non-breaking change which fixes an issue)
8
+ - [ ] New feature (non-breaking change which adds functionality)
9
+ - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
10
+ - [ ] This change requires a documentation update
11
+
12
+ ## How Has This Been Tested?
13
+
14
+ Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
15
+
16
+ - [ ] Test A
17
+ - [ ] Test B
18
+
19
+ ## Checklist
20
+
21
+ - [ ] The title of the PR states what changed and the related issues number (used for the release note).
22
+ - [ ] Does this PR require documentation updates?
23
+ - [ ] I've updated documentation as required by this PR.
24
+ - [ ] I have performed a self-review of my own code
25
+ - [ ] I have commented my code, particularly in hard-to-understand areas
@@ -0,0 +1,31 @@
1
+ name: Common Lib CI
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - synchronize
8
+ - edited
9
+ - reopened
10
+
11
+ jobs:
12
+ ci:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v3
17
+
18
+ - name: Use Node.js
19
+ uses: actions/setup-node@v3
20
+ with:
21
+ node-version-file: '.nvmrc'
22
+ cache: 'npm'
23
+
24
+ - name: Install dependencies
25
+ run: npm ci
26
+
27
+ - name: Check linting issues
28
+ run: npm run lint
29
+
30
+ - name: Build Lib
31
+ run: npm run build-lib
@@ -11,7 +11,7 @@ jobs:
11
11
  - uses: actions/checkout@v3
12
12
  - uses: actions/setup-node@v3
13
13
  with:
14
- node-version: 16
14
+ node-version-file: '.nvmrc'
15
15
  - run: npm ci
16
16
  - run: npm test
17
17
 
@@ -25,7 +25,7 @@ jobs:
25
25
  - uses: actions/checkout@v3
26
26
  - uses: actions/setup-node@v3
27
27
  with:
28
- node-version: 16
28
+ node-version-file: '.nvmrc'
29
29
  registry-url: https://npm.pkg.github.com/
30
30
  - run: npm ci
31
31
  - run: npm run build-lib
@@ -46,4 +46,3 @@ jobs:
46
46
  - run: npm publish --access public
47
47
  env:
48
48
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49
-
@@ -0,0 +1,5 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ npx tsc --noEmit
5
+ npm run lint-staged
package/.lintstagedrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "*.{js,jsx,ts,tsx}": ["npx eslint "]
3
+ }
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ v16.13.0
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { Breadcrumbs, UseBreadcrumbOptionalProps, UseBreadcrumbState } from './Types';
3
3
  export declare const BreadcrumbContext: React.Context<any>;
4
4
  export declare function useBreadcrumb(props?: UseBreadcrumbOptionalProps, deps?: any[]): UseBreadcrumbState;
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  declare const Store: ({ children }: {
3
3
  children: any;
4
4
  }) => JSX.Element;
5
- export declare const BreadcrumbContext: React.Context<{
5
+ export declare const BreadcrumbContext: import("react").Context<{
6
6
  state: {
7
7
  alias: {};
8
8
  };
@@ -1,4 +1,4 @@
1
- import { RegistryTypeDetailType } from "./Types";
1
+ import { RegistryTypeDetailType } from './Types';
2
2
  export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
3
3
  export declare const Host: string;
4
4
  export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
@@ -64,8 +64,4 @@ export declare const RepositoryAction: {
64
64
  CHART_PULL: string;
65
65
  CHART_PUSH: string;
66
66
  };
67
- export declare enum APPROVAL_MODAL_TYPE {
68
- CONFIG = "CONFIG",
69
- DEPLOYMENT = "DEPLOYMENT"
70
- }
71
67
  export declare const MAX_Z_INDEX = 2147483647;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { CustomInputProps } from './Types';
3
- export declare function CustomInput({ name, value, error, onChange, onFocus, label, type, disabled, labelClassName, placeholder, tabIndex, dataTestid, isRequiredField, autoFocus, rootClassName, autoComplete, helperText, handleOnBlur, readOnly, noTrim, ref, onKeyPress, defaultValue, onKeyDown, required, additionalErrorInfo, inputWrapClassName, }: CustomInputProps): JSX.Element;
3
+ export declare const CustomInput: ({ name, value, error, onChange, onFocus, label, type, disabled, labelClassName, placeholder, tabIndex, dataTestid, isRequiredField, autoFocus, rootClassName, autoComplete, helperText, handleOnBlur, readOnly, noTrim, ref, onKeyPress, defaultValue, onKeyDown, required, additionalErrorInfo, }: CustomInputProps) => JSX.Element;
@@ -1,4 +1,5 @@
1
- import React, { HTMLInputTypeAttribute } from 'react';
1
+ import { HTMLInputTypeAttribute } from 'react';
2
+ import * as React from 'react';
2
3
  export interface CustomInputProps {
3
4
  name: string;
4
5
  value: string | number;
@@ -26,5 +27,4 @@ export interface CustomInputProps {
26
27
  onKeyDown?: (e: any) => void;
27
28
  required?: boolean;
28
29
  additionalErrorInfo?: React.ReactNode;
29
- inputWrapClassName?: string;
30
30
  }
@@ -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, dataTestId, handleKeyDown, }: ResizableTagTextAreaProps): JSX.Element;
3
+ export declare const ResizableTagTextArea: ({ className, minHeight, maxHeight, value, onChange, onBlur, onFocus, placeholder, tabIndex, refVar, dependentRef, dataTestId, handleKeyDown, }: ResizableTagTextAreaProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { DeleteComponentProps } from './types';
3
- declare function DeleteComponent({ setDeleting, toggleConfirmation, deleteComponent, title, component, payload, confirmationDialogDescription, redirectTo, url, reload, configuration, closeCustomComponent, }: DeleteComponentProps): JSX.Element;
3
+ declare const DeleteComponent: ({ setDeleting, toggleConfirmation, deleteComponent, title, component, payload, confirmationDialogDescription, redirectTo, url, reload, configuration, closeCustomComponent, }: DeleteComponentProps) => JSX.Element;
4
4
  export default DeleteComponent;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { DevtronProgressingProps } from './types';
3
- export declare function DevtronProgressing({ classes, parentClasses }: DevtronProgressingProps): JSX.Element;
3
+ export declare const DevtronProgressing: ({ classes, parentClasses }: DevtronProgressingProps) => JSX.Element;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { ConfirmationDialogBodyType, ConfirmationDialogButtonGroupType, ConfirmationDialogIconType, ConfirmationDialogType } from './Types';
3
- declare function ConfirmationDialog({ className, children }: ConfirmationDialogType): JSX.Element;
4
- declare namespace ConfirmationDialog {
5
- var Icon: ({ src, className }: ConfirmationDialogIconType) => JSX.Element;
6
- var Body: ({ title, subtitle, children }: ConfirmationDialogBodyType) => JSX.Element;
7
- var ButtonGroup: ({ children }: ConfirmationDialogButtonGroupType) => JSX.Element;
8
- }
3
+ declare const ConfirmationDialog: {
4
+ ({ className, children }: ConfirmationDialogType): JSX.Element;
5
+ Icon: ({ src, className }: ConfirmationDialogIconType) => JSX.Element;
6
+ Body: ({ title, subtitle, children }: ConfirmationDialogBodyType) => JSX.Element;
7
+ ButtonGroup: ({ children }: ConfirmationDialogButtonGroupType) => JSX.Element;
8
+ };
9
9
  export default ConfirmationDialog;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { DeleteDialogProps } from './Types';
3
3
  export declare const DeleteDialog: React.FC<DeleteDialogProps> & {
4
4
  Description?: React.FC<any>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { ForceDeleteDialogType } from './Types';
3
- export default function ForceDeleteDialog({ onClickDelete, closeDeleteModal, forceDeleteDialogTitle, forceDeleteDialogMessage }: ForceDeleteDialogType): JSX.Element;
3
+ export default function ForceDeleteDialog({ onClickDelete, closeDeleteModal, forceDeleteDialogTitle, forceDeleteDialogMessage, }: ForceDeleteDialogType): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  export interface DeleteDialogProps {
3
3
  title: string;
4
4
  description?: string;
@@ -1,25 +1,28 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import './emptyState.scss';
3
- declare function EmptyState({ children, className }: {
4
- children: any;
5
- className?: string;
6
- }): JSX.Element;
7
- declare namespace EmptyState {
8
- var Image: ({ children }: {
9
- children: any;
10
- }) => any;
11
- var Title: ({ children }: {
3
+ declare const EmptyState: {
4
+ ({ children, className }: {
12
5
  children: any;
13
- }) => any;
14
- var Subtitle: ({ children, className }: {
6
+ className?: string;
7
+ }): JSX.Element;
8
+ Image: typeof Image;
9
+ Title: typeof Title;
10
+ Subtitle: ({ children, className }: {
15
11
  children: any;
16
12
  className?: string;
17
13
  }) => JSX.Element;
18
- var Button: ({ children }: {
19
- children: any;
20
- }) => any;
21
- var Loading: React.FC<{
14
+ Button: typeof Button;
15
+ Loading: React.FC<{
22
16
  text: string;
23
17
  }>;
24
- }
18
+ };
19
+ declare function Image({ children }: {
20
+ children: any;
21
+ }): any;
22
+ declare function Title({ children }: {
23
+ children: any;
24
+ }): any;
25
+ declare function Button({ children }: {
26
+ children: any;
27
+ }): any;
25
28
  export default EmptyState;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { GenericEmptyStateType } from '../Types';
3
3
  import './emptyState.scss';
4
- declare function GenericEmptyState({ title, image, subTitle, isButtonAvailable, classname, styles, heightToDeduct, imageType, renderButton, imageClassName, children, SvgImage, noImage, layout, contentClassName, imageStyles, }: GenericEmptyStateType): JSX.Element;
4
+ declare const GenericEmptyState: ({ title, image, subTitle, isButtonAvailable, classname, styles, heightToDeduct, imageType, renderButton, imageClassName, children, SvgImage, noImage, layout, contentClassName, }: GenericEmptyStateType) => JSX.Element;
5
5
  export default GenericEmptyState;
@@ -1,4 +1,5 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
+ import * as React from 'react';
2
3
  export declare class ErrorScreenManager extends Component<{
3
4
  code?: number;
4
5
  reload?: (...args: any[]) => any;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare function ErrorScreenNotFound(): JSX.Element;
2
+ declare const ErrorScreenNotFound: () => JSX.Element;
3
3
  export default ErrorScreenNotFound;
@@ -1,5 +1,5 @@
1
1
  import * as Sentry from '@sentry/browser';
2
- import React from 'react';
2
+ import * as React from 'react';
3
3
  import { AsyncOptions, UseSearchString } from './Types';
4
4
  export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
5
5
  interface ConditionalWrapper<T> {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ImageButtonType, ImageTaggingContainerType } from './ImageTags.Types';
3
- export declare const ImageTagsContainer: ({ ciPipelineId, artifactId, imageComment, imageReleaseTags, updateCurrentAppMaterial, appReleaseTagNames, setAppReleaseTagNames, tagsEditable, setTagsEditable, toggleCardMode, hideHardDelete, forceReInit, isSuperAdmin }: ImageTaggingContainerType) => JSX.Element;
3
+ export declare const ImageTagsContainer: ({ ciPipelineId, artifactId, imageComment, imageReleaseTags, updateCurrentAppMaterial, appReleaseTagNames, setAppReleaseTagNames, tagsEditable, setTagsEditable, toggleCardMode, hideHardDelete, forceReInit, isSuperAdmin, }: ImageTaggingContainerType) => JSX.Element;
4
4
  export declare const ImageTagButton: ({ text, isSoftDeleted, isEditing, onSoftDeleteClick, onHardDeleteClick, tagId, softDeleteTags, isSuperAdmin, duplicateTag, hideHardDelete, }: ImageButtonType) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { InfoColourBarType } from '../Types';
3
3
  import './infoColourBar.scss';
4
- declare function InfoColourBar({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, }: InfoColourBarType): JSX.Element;
4
+ declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, }: InfoColourBarType) => JSX.Element;
5
5
  export default InfoColourBar;
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ModalType } from '../Types';
3
- export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
3
+ export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => import("react").ReactPortal;
@@ -1,12 +1,12 @@
1
- import React from 'react';
1
+ import { Component } from 'react';
2
2
  export interface OpaqueModalProps {
3
3
  className?: string;
4
4
  onHide?: any;
5
5
  noBackground?: boolean;
6
6
  }
7
- export declare class OpaqueModal extends React.Component<OpaqueModalProps> {
7
+ export declare class OpaqueModal extends Component<OpaqueModalProps> {
8
8
  modalRef: HTMLElement;
9
9
  componentDidMount(): void;
10
10
  componentWillUnmount(): void;
11
- render(): React.ReactPortal;
11
+ render(): import("react").ReactPortal;
12
12
  }
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- export declare class VisibleModal extends React.Component<{
1
+ import { Component } from 'react';
2
+ export declare class VisibleModal extends Component<{
3
3
  className: string;
4
4
  parentClassName?: string;
5
5
  noBackground?: boolean;
@@ -11,5 +11,5 @@ export declare class VisibleModal extends React.Component<{
11
11
  escFunction(event: any): void;
12
12
  componentDidMount(): void;
13
13
  componentWillUnmount(): void;
14
- render(): React.ReactPortal;
14
+ render(): import("react").ReactPortal;
15
15
  }
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- export declare class VisibleModal2 extends React.Component<{
1
+ import { Component } from 'react';
2
+ export declare class VisibleModal2 extends Component<{
3
3
  className: string;
4
4
  close?: (e: any) => void;
5
5
  }> {
@@ -8,5 +8,5 @@ export declare class VisibleModal2 extends React.Component<{
8
8
  escFunction(event: any): void;
9
9
  componentDidMount(): void;
10
10
  componentWillUnmount(): void;
11
- render(): React.ReactPortal;
11
+ render(): import("react").ReactPortal;
12
12
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  export declare const Option: (props: any) => JSX.Element;
3
3
  export declare const SingleSelectOption: (props: any) => JSX.Element;
4
4
  export declare const MultiValueContainer: (props: any) => JSX.Element;
@@ -1,5 +1,5 @@
1
- import { VariableType } from "./CIPipeline.Types";
2
- import { ResponseType } from "./Types";
1
+ import { VariableType } from './CIPipeline.Types';
2
+ import { ResponseType } from './Types';
3
3
  export declare enum ApplyPolicyToStage {
4
4
  PRE_CI = "PRE_CI",
5
5
  POST_CI = "POST_CI",
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
3
- declare function PopupMenu({ children, onToggleCallback, autoClose, autoPosition, }: PopupMenuType): any;
4
- declare namespace PopupMenu {
5
- var Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
6
- var Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
7
- }
3
+ declare const PopupMenu: {
4
+ ({ children, onToggleCallback, autoClose, autoPosition, }: PopupMenuType): any;
5
+ Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
6
+ Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
7
+ };
8
8
  export default PopupMenu;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ProgressingProps } from './Types';
3
- export declare function Progressing({ pageLoader, size, theme, styles, fillColor }: ProgressingProps): JSX.Element;
4
- export declare function DetailsProgressing({ loadingText, size, fullHeight, styles, fillColor, children, }: ProgressingProps): JSX.Element;
3
+ export declare const Progressing: ({ pageLoader, size, theme, styles, fillColor }: ProgressingProps) => JSX.Element;
4
+ export declare const DetailsProgressing: ({ loadingText, size, fullHeight, styles, fillColor, children, }: ProgressingProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import './radioGroup.scss';
3
3
  interface RadioGroupInterface {
4
4
  name: string;
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import { ResizableTextareaProps } from './Types';
3
3
  export declare const ResizableTextarea: React.FC<ResizableTextareaProps>;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import 'tippy.js/animations/shift-toward-subtle.css';
3
3
  import { TippyCustomizedProps } from './Types';
4
- export declare function TippyCustomized(props: TippyCustomizedProps): JSX.Element;
4
+ export declare const TippyCustomized: (props: TippyCustomizedProps) => JSX.Element;