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

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 (124) hide show
  1. package/.eslintignore +17 -0
  2. package/.husky/pre-commit +0 -0
  3. package/.lintstagedrc +1 -1
  4. package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -1
  5. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -2
  6. package/dist/Common/Constants.d.ts +1 -1
  7. package/dist/Common/CustomInput/CustomInput.d.ts +1 -1
  8. package/dist/Common/CustomInput/Types.d.ts +1 -2
  9. package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
  10. package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +1 -1
  11. package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +1 -1
  12. package/dist/Common/Dialogs/ConfirmationDialog.d.ts +6 -6
  13. package/dist/Common/Dialogs/DeleteDialog.d.ts +1 -1
  14. package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +1 -1
  15. package/dist/Common/Dialogs/Types.d.ts +1 -1
  16. package/dist/Common/EmptyState/EmptyState.d.ts +17 -20
  17. package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -1
  18. package/dist/Common/Error.d.ts +1 -2
  19. package/dist/Common/ErrorScreenNotFound.d.ts +1 -1
  20. package/dist/Common/Helper.d.ts +1 -1
  21. package/dist/Common/ImageTags.d.ts +1 -1
  22. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
  23. package/dist/Common/Modals/Modal.d.ts +2 -2
  24. package/dist/Common/Modals/OpaqueModal.d.ts +3 -3
  25. package/dist/Common/Modals/VisibleModal.d.ts +3 -3
  26. package/dist/Common/Modals/VisibleModal2.d.ts +3 -3
  27. package/dist/Common/MultiSelectCustomization.d.ts +1 -1
  28. package/dist/Common/Policy.Types.d.ts +2 -2
  29. package/dist/Common/PopupMenu.d.ts +5 -5
  30. package/dist/Common/Progressing.d.ts +2 -2
  31. package/dist/Common/RadioGroup/RadioGroup.d.ts +1 -1
  32. package/dist/Common/ResizableTextarea.d.ts +1 -1
  33. package/dist/Common/TippyCustomized.d.ts +1 -1
  34. package/dist/Common/ToastBody.d.ts +5 -5
  35. package/dist/index.d.ts +1 -1
  36. package/dist/index.js +315 -239
  37. package/package.json +1 -1
  38. package/src/Common/AddCDButton/AddCDButton.tsx +2 -1
  39. package/src/Common/Api.ts +25 -20
  40. package/src/Common/AppStatus/AppStatus.tsx +12 -12
  41. package/src/Common/AppStatus/utils.ts +5 -6
  42. package/src/Common/BreadCrumb/BreadCrumb.tsx +28 -32
  43. package/src/Common/BreadCrumb/BreadcrumbStore.tsx +2 -2
  44. package/src/Common/BreadCrumb/Types.ts +12 -11
  45. package/src/Common/ChartVersionAndTypeSelector.tsx +1 -1
  46. package/src/Common/Checkbox.tsx +19 -17
  47. package/src/Common/ClipboardButton/ClipboardButton.tsx +1 -1
  48. package/src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx +1 -0
  49. package/src/Common/Common.service.ts +65 -60
  50. package/src/Common/Constants.ts +9 -9
  51. package/src/Common/CustomInput/CustomInput.tsx +28 -22
  52. package/src/Common/CustomInput/Types.ts +3 -4
  53. package/src/Common/CustomInput/index.ts +1 -1
  54. package/src/Common/CustomTagSelector/PropagateTagInfo.tsx +18 -15
  55. package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +9 -9
  56. package/src/Common/CustomTagSelector/TagDetails.tsx +3 -9
  57. package/src/Common/CustomTagSelector/TagLabelSelect.tsx +9 -7
  58. package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +35 -31
  59. package/src/Common/CustomTagSelector/TagSelector.utils.ts +3 -2
  60. package/src/Common/CustomTagSelector/Types.ts +1 -1
  61. package/src/Common/CustomTagSelector/ValidationRules.ts +22 -18
  62. package/src/Common/CustomTagSelector/index.ts +2 -2
  63. package/src/Common/DebouncedSearch/DebouncedSearch.tsx +1 -2
  64. package/src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx +1 -0
  65. package/src/Common/DeleteComponentModal/DeleteComponent.tsx +32 -27
  66. package/src/Common/DeleteComponentModal/types.ts +1 -1
  67. package/src/Common/DevtronProgressing/DevtronProgressing.tsx +8 -5
  68. package/src/Common/Dialogs/ConfirmationDialog.tsx +24 -24
  69. package/src/Common/Dialogs/DeleteDialog.tsx +5 -3
  70. package/src/Common/Dialogs/DialogForm.tsx +35 -31
  71. package/src/Common/Dialogs/ForceDeleteDialog.tsx +7 -13
  72. package/src/Common/Dialogs/Types.ts +12 -12
  73. package/src/Common/Dialogs/index.ts +1 -1
  74. package/src/Common/Drawer/Drawer.tsx +1 -1
  75. package/src/Common/EmptyState/EmptyState.tsx +17 -13
  76. package/src/Common/EmptyState/GenericEmptyState.tsx +15 -25
  77. package/src/Common/Error.tsx +5 -5
  78. package/src/Common/ErrorScreenNotFound.tsx +12 -9
  79. package/src/Common/Grid/Grid.tsx +2 -1
  80. package/src/Common/Helper.tsx +37 -36
  81. package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +1 -1
  82. package/src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx +1 -1
  83. package/src/Common/Hooks/UseWindowSize/UseWindowSize.tsx +7 -5
  84. package/src/Common/ImageTags.Types.ts +3 -2
  85. package/src/Common/ImageTags.tsx +66 -61
  86. package/src/Common/InfoColorBar/InfoColourbar.tsx +5 -10
  87. package/src/Common/Modals/Modal.tsx +3 -3
  88. package/src/Common/Modals/OpaqueModal.tsx +18 -25
  89. package/src/Common/Modals/VisibleModal.tsx +3 -7
  90. package/src/Common/Modals/VisibleModal2.tsx +15 -20
  91. package/src/Common/MultiSelectCustomization.tsx +13 -9
  92. package/src/Common/Policy.Types.ts +38 -38
  93. package/src/Common/PopupMenu.tsx +9 -10
  94. package/src/Common/Progressing.tsx +18 -15
  95. package/src/Common/RJSF/Form.tsx +1 -0
  96. package/src/Common/RJSF/common/FieldRow.tsx +1 -0
  97. package/src/Common/RJSF/config.ts +1 -0
  98. package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +1 -1
  99. package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +1 -0
  100. package/src/Common/RJSF/templates/BaseInput.tsx +1 -0
  101. package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +1 -0
  102. package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +1 -0
  103. package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +6 -1
  104. package/src/Common/RJSF/templates/Description.tsx +1 -0
  105. package/src/Common/RJSF/templates/Field.tsx +3 -14
  106. package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +9 -6
  107. package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +7 -5
  108. package/src/Common/RJSF/templates/TitleField.tsx +1 -0
  109. package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +1 -0
  110. package/src/Common/RJSF/utils.ts +57 -53
  111. package/src/Common/RJSF/widgets/Checkbox.tsx +2 -2
  112. package/src/Common/RJSF/widgets/Select.tsx +1 -0
  113. package/src/Common/RadioGroup/RadioGroup.tsx +23 -18
  114. package/src/Common/RadioGroup.tsx +23 -24
  115. package/src/Common/Reload.tsx +1 -0
  116. package/src/Common/ResizableTextarea.tsx +17 -18
  117. package/src/Common/Security/ScanVulnerabilitiesTable.tsx +34 -29
  118. package/src/Common/ServerError.ts +1 -5
  119. package/src/Common/TippyCustomized.tsx +38 -41
  120. package/src/Common/ToastBody.tsx +7 -6
  121. package/src/Common/Toggle/Toggle.tsx +3 -3
  122. package/src/Common/Types.ts +19 -19
  123. package/src/custom.d.ts +7 -7
  124. package/src/index.ts +1 -1
package/.eslintignore CHANGED
@@ -9,32 +9,43 @@ src/Common/AppStatus/index.ts
9
9
  src/Common/AppStatus/utils.ts
10
10
  src/Common/BreadCrumb/BreadCrumb.tsx
11
11
  src/Common/BreadCrumb/BreadcrumbStore.tsx
12
+ src/Common/BreadCrumb/Types.ts
12
13
  src/Common/CIPipeline.Types.ts
13
14
  src/Common/ChartVersionAndTypeSelector.tsx
14
15
  src/Common/Checkbox.tsx
15
16
  src/Common/ClipboardButton/ClipboardButton.tsx
16
17
  src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx
17
18
  src/Common/Common.service.ts
19
+ src/Common/Constants.ts
18
20
  src/Common/CustomInput/CustomInput.tsx
21
+ src/Common/CustomInput/Types.ts
22
+ src/Common/CustomInput/index.ts
19
23
  src/Common/CustomTagSelector/PropagateTagInfo.tsx
20
24
  src/Common/CustomTagSelector/ResizableTagTextArea.tsx
21
25
  src/Common/CustomTagSelector/TagDetails.tsx
22
26
  src/Common/CustomTagSelector/TagLabelSelect.tsx
23
27
  src/Common/CustomTagSelector/TagLabelValueSelector.tsx
24
28
  src/Common/CustomTagSelector/TagSelector.utils.ts
29
+ src/Common/CustomTagSelector/Types.ts
25
30
  src/Common/CustomTagSelector/ValidationRules.ts
31
+ src/Common/CustomTagSelector/index.ts
26
32
  src/Common/DebouncedSearch/DebouncedSearch.tsx
27
33
  src/Common/DebouncedSearch/Utils.ts
28
34
  src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx
29
35
  src/Common/DeleteComponentModal/DeleteComponent.tsx
36
+ src/Common/DeleteComponentModal/types.ts
30
37
  src/Common/DevtronProgressing/DevtronProgressing.tsx
38
+ src/Common/Dialogs/ConfirmationDialog.tsx
31
39
  src/Common/Dialogs/DeleteDialog.tsx
32
40
  src/Common/Dialogs/DialogForm.tsx
33
41
  src/Common/Dialogs/ForceDeleteDialog.tsx
42
+ src/Common/Dialogs/Types.ts
43
+ src/Common/Dialogs/index.ts
34
44
  src/Common/DraggableWrapper/DraggableButton.tsx
35
45
  src/Common/DraggableWrapper/DraggableWrapper.tsx
36
46
  src/Common/Drawer/Drawer.tsx
37
47
  src/Common/EmptyState/EmptyState.tsx
48
+ src/Common/EmptyState/GenericEmptyState.tsx
38
49
  src/Common/Error.tsx
39
50
  src/Common/ErrorScreenNotFound.tsx
40
51
  src/Common/Grid/Grid.tsx
@@ -42,16 +53,20 @@ src/Common/Helper.tsx
42
53
  src/Common/Hooks/UseClickOutside/UseClickOutside.tsx
43
54
  src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx
44
55
  src/Common/Hooks/UseWindowSize/UseWindowSize.tsx
56
+ src/Common/ImageTags.Types.ts
45
57
  src/Common/ImageTags.tsx
58
+ src/Common/InfoColorBar/InfoColourbar.tsx
46
59
  src/Common/Modals/Modal.tsx
47
60
  src/Common/Modals/OpaqueModal.tsx
48
61
  src/Common/Modals/VisibleModal.tsx
49
62
  src/Common/Modals/VisibleModal2.tsx
50
63
  src/Common/MultiSelectCustomization.tsx
64
+ src/Common/Policy.Types.ts
51
65
  src/Common/PopupMenu.tsx
52
66
  src/Common/Progressing.tsx
53
67
  src/Common/RJSF/Form.tsx
54
68
  src/Common/RJSF/common/FieldRow.tsx
69
+ src/Common/RJSF/config.ts
55
70
  src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx
56
71
  src/Common/RJSF/templates/ArrayFieldTemplate.tsx
57
72
  src/Common/RJSF/templates/BaseInput.tsx
@@ -77,3 +92,5 @@ src/Common/TippyCustomized.tsx
77
92
  src/Common/ToastBody.tsx
78
93
  src/Common/Toggle/Toggle.tsx
79
94
  src/Common/Types.ts
95
+ src/custom.d.ts
96
+ src/index.ts
package/.husky/pre-commit CHANGED
File without changes
package/.lintstagedrc CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "*.{js,jsx,ts,tsx}": ["npx eslint "]
2
+ "*.{js,jsx,ts,tsx}": ["npx eslint"]
3
3
  }
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import 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
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare const Store: ({ children }: {
3
3
  children: any;
4
4
  }) => JSX.Element;
5
- export declare const BreadcrumbContext: import("react").Context<{
5
+ export declare const BreadcrumbContext: 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";
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { CustomInputProps } from './Types';
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;
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 }: CustomInputProps): JSX.Element;
@@ -1,5 +1,4 @@
1
- import { HTMLInputTypeAttribute } from 'react';
2
- import * as React from 'react';
1
+ import React, { HTMLInputTypeAttribute } from 'react';
3
2
  export interface CustomInputProps {
4
3
  name: string;
5
4
  value: string | number;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { ResizableTagTextAreaProps } from './Types';
3
- export declare const ResizableTagTextArea: ({ className, minHeight, maxHeight, value, onChange, onBlur, onFocus, placeholder, tabIndex, refVar, dependentRef, dataTestId, handleKeyDown, }: ResizableTagTextAreaProps) => JSX.Element;
3
+ export declare function 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 const DeleteComponent: ({ setDeleting, toggleConfirmation, deleteComponent, title, component, payload, confirmationDialogDescription, redirectTo, url, reload, configuration, closeCustomComponent, }: DeleteComponentProps) => JSX.Element;
3
+ declare function 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 const DevtronProgressing: ({ classes, parentClasses }: DevtronProgressingProps) => JSX.Element;
3
+ export declare function 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 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
- };
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
+ }
9
9
  export default ConfirmationDialog;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import 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,28 +1,25 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import './emptyState.scss';
3
- declare const EmptyState: {
4
- ({ children, className }: {
3
+ declare function EmptyState({ children, className }: {
4
+ children: any;
5
+ className?: string;
6
+ }): JSX.Element;
7
+ declare namespace EmptyState {
8
+ var Image: ({ children }: {
5
9
  children: any;
6
- className?: string;
7
- }): JSX.Element;
8
- Image: typeof Image;
9
- Title: typeof Title;
10
- Subtitle: ({ children, className }: {
10
+ }) => any;
11
+ var Title: ({ children }: {
12
+ children: any;
13
+ }) => any;
14
+ var Subtitle: ({ children, className }: {
11
15
  children: any;
12
16
  className?: string;
13
17
  }) => JSX.Element;
14
- Button: typeof Button;
15
- Loading: React.FC<{
18
+ var Button: ({ children }: {
19
+ children: any;
20
+ }) => any;
21
+ var Loading: React.FC<{
16
22
  text: string;
17
23
  }>;
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;
24
+ }
28
25
  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 const GenericEmptyState: ({ title, image, subTitle, isButtonAvailable, classname, styles, heightToDeduct, imageType, renderButton, imageClassName, children, SvgImage, noImage, layout, contentClassName, }: GenericEmptyStateType) => JSX.Element;
4
+ declare function 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,5 +1,4 @@
1
- import { Component } from 'react';
2
- import * as React from 'react';
1
+ import React, { Component } from 'react';
3
2
  export declare class ErrorScreenManager extends Component<{
4
3
  code?: number;
5
4
  reload?: (...args: any[]) => any;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const ErrorScreenNotFound: () => JSX.Element;
2
+ declare function ErrorScreenNotFound(): JSX.Element;
3
3
  export default ErrorScreenNotFound;
@@ -1,5 +1,5 @@
1
1
  import * as Sentry from '@sentry/browser';
2
- import * as React from 'react';
2
+ import 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 const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, }: InfoColourBarType) => JSX.Element;
4
+ declare function 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
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ModalType } from '../Types';
3
- export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => import("react").ReactPortal;
3
+ export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
@@ -1,12 +1,12 @@
1
- import { Component } from 'react';
1
+ import React 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 Component<OpaqueModalProps> {
7
+ export declare class OpaqueModal extends React.Component<OpaqueModalProps> {
8
8
  modalRef: HTMLElement;
9
9
  componentDidMount(): void;
10
10
  componentWillUnmount(): void;
11
- render(): import("react").ReactPortal;
11
+ render(): React.ReactPortal;
12
12
  }
@@ -1,5 +1,5 @@
1
- import { Component } from 'react';
2
- export declare class VisibleModal extends Component<{
1
+ import React from 'react';
2
+ export declare class VisibleModal extends React.Component<{
3
3
  className: string;
4
4
  parentClassName?: string;
5
5
  noBackground?: boolean;
@@ -11,5 +11,5 @@ export declare class VisibleModal extends Component<{
11
11
  escFunction(event: any): void;
12
12
  componentDidMount(): void;
13
13
  componentWillUnmount(): void;
14
- render(): import("react").ReactPortal;
14
+ render(): React.ReactPortal;
15
15
  }
@@ -1,5 +1,5 @@
1
- import { Component } from 'react';
2
- export declare class VisibleModal2 extends Component<{
1
+ import React from 'react';
2
+ export declare class VisibleModal2 extends React.Component<{
3
3
  className: string;
4
4
  close?: (e: any) => void;
5
5
  }> {
@@ -8,5 +8,5 @@ export declare class VisibleModal2 extends Component<{
8
8
  escFunction(event: any): void;
9
9
  componentDidMount(): void;
10
10
  componentWillUnmount(): void;
11
- render(): import("react").ReactPortal;
11
+ render(): React.ReactPortal;
12
12
  }
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import 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 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
- };
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
+ }
8
8
  export default PopupMenu;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ProgressingProps } from './Types';
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;
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;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import './radioGroup.scss';
3
3
  interface RadioGroupInterface {
4
4
  name: string;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
1
+ import 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 const TippyCustomized: (props: TippyCustomizedProps) => JSX.Element;
4
+ export declare function TippyCustomized(props: TippyCustomizedProps): JSX.Element;
@@ -1,18 +1,18 @@
1
- import { Component } from 'react';
2
- export declare class ToastBody extends Component<{
1
+ import React from 'react';
2
+ export declare class ToastBody extends React.Component<{
3
3
  title: string;
4
4
  subtitle?: string;
5
5
  }> {
6
6
  render(): JSX.Element;
7
7
  }
8
- export declare class ToastBody3 extends Component<{
8
+ export declare class ToastBody3 extends React.Component<{
9
9
  text: string;
10
10
  onClick: (...args: any[]) => void;
11
11
  buttonText: string;
12
12
  }> {
13
13
  render(): JSX.Element;
14
14
  }
15
- export declare class ToastBodyWithButton extends Component<{
15
+ export declare class ToastBodyWithButton extends React.Component<{
16
16
  title: string;
17
17
  subtitle?: string;
18
18
  onClick: (...args: any[]) => void;
@@ -20,4 +20,4 @@ export declare class ToastBodyWithButton extends Component<{
20
20
  }> {
21
21
  render(): JSX.Element;
22
22
  }
23
- export declare const toastAccessDenied: (title?: string, subtitle?: string) => import("react").ReactText;
23
+ export declare const toastAccessDenied: (title?: string, subtitle?: string) => React.ReactText;
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './Common';
1
+ export * from "./Common";