@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.
- package/.eslintignore +17 -0
- package/.husky/pre-commit +0 -0
- package/.lintstagedrc +1 -1
- package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -2
- package/dist/Common/Constants.d.ts +1 -1
- package/dist/Common/CustomInput/CustomInput.d.ts +1 -1
- package/dist/Common/CustomInput/Types.d.ts +1 -2
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
- package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +1 -1
- package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +1 -1
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +6 -6
- package/dist/Common/Dialogs/DeleteDialog.d.ts +1 -1
- package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +1 -1
- package/dist/Common/Dialogs/Types.d.ts +1 -1
- package/dist/Common/EmptyState/EmptyState.d.ts +17 -20
- package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -1
- package/dist/Common/Error.d.ts +1 -2
- package/dist/Common/ErrorScreenNotFound.d.ts +1 -1
- package/dist/Common/Helper.d.ts +1 -1
- package/dist/Common/ImageTags.d.ts +1 -1
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
- package/dist/Common/Modals/Modal.d.ts +2 -2
- package/dist/Common/Modals/OpaqueModal.d.ts +3 -3
- package/dist/Common/Modals/VisibleModal.d.ts +3 -3
- package/dist/Common/Modals/VisibleModal2.d.ts +3 -3
- package/dist/Common/MultiSelectCustomization.d.ts +1 -1
- package/dist/Common/Policy.Types.d.ts +2 -2
- package/dist/Common/PopupMenu.d.ts +5 -5
- package/dist/Common/Progressing.d.ts +2 -2
- package/dist/Common/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/Common/ResizableTextarea.d.ts +1 -1
- package/dist/Common/TippyCustomized.d.ts +1 -1
- package/dist/Common/ToastBody.d.ts +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +315 -239
- package/package.json +1 -1
- package/src/Common/AddCDButton/AddCDButton.tsx +2 -1
- package/src/Common/Api.ts +25 -20
- package/src/Common/AppStatus/AppStatus.tsx +12 -12
- package/src/Common/AppStatus/utils.ts +5 -6
- package/src/Common/BreadCrumb/BreadCrumb.tsx +28 -32
- package/src/Common/BreadCrumb/BreadcrumbStore.tsx +2 -2
- package/src/Common/BreadCrumb/Types.ts +12 -11
- package/src/Common/ChartVersionAndTypeSelector.tsx +1 -1
- package/src/Common/Checkbox.tsx +19 -17
- package/src/Common/ClipboardButton/ClipboardButton.tsx +1 -1
- package/src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx +1 -0
- package/src/Common/Common.service.ts +65 -60
- package/src/Common/Constants.ts +9 -9
- package/src/Common/CustomInput/CustomInput.tsx +28 -22
- package/src/Common/CustomInput/Types.ts +3 -4
- package/src/Common/CustomInput/index.ts +1 -1
- package/src/Common/CustomTagSelector/PropagateTagInfo.tsx +18 -15
- package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +9 -9
- package/src/Common/CustomTagSelector/TagDetails.tsx +3 -9
- package/src/Common/CustomTagSelector/TagLabelSelect.tsx +9 -7
- package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +35 -31
- package/src/Common/CustomTagSelector/TagSelector.utils.ts +3 -2
- package/src/Common/CustomTagSelector/Types.ts +1 -1
- package/src/Common/CustomTagSelector/ValidationRules.ts +22 -18
- package/src/Common/CustomTagSelector/index.ts +2 -2
- package/src/Common/DebouncedSearch/DebouncedSearch.tsx +1 -2
- package/src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx +1 -0
- package/src/Common/DeleteComponentModal/DeleteComponent.tsx +32 -27
- package/src/Common/DeleteComponentModal/types.ts +1 -1
- package/src/Common/DevtronProgressing/DevtronProgressing.tsx +8 -5
- package/src/Common/Dialogs/ConfirmationDialog.tsx +24 -24
- package/src/Common/Dialogs/DeleteDialog.tsx +5 -3
- package/src/Common/Dialogs/DialogForm.tsx +35 -31
- package/src/Common/Dialogs/ForceDeleteDialog.tsx +7 -13
- package/src/Common/Dialogs/Types.ts +12 -12
- package/src/Common/Dialogs/index.ts +1 -1
- package/src/Common/Drawer/Drawer.tsx +1 -1
- package/src/Common/EmptyState/EmptyState.tsx +17 -13
- package/src/Common/EmptyState/GenericEmptyState.tsx +15 -25
- package/src/Common/Error.tsx +5 -5
- package/src/Common/ErrorScreenNotFound.tsx +12 -9
- package/src/Common/Grid/Grid.tsx +2 -1
- package/src/Common/Helper.tsx +37 -36
- package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +1 -1
- package/src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx +1 -1
- package/src/Common/Hooks/UseWindowSize/UseWindowSize.tsx +7 -5
- package/src/Common/ImageTags.Types.ts +3 -2
- package/src/Common/ImageTags.tsx +66 -61
- package/src/Common/InfoColorBar/InfoColourbar.tsx +5 -10
- package/src/Common/Modals/Modal.tsx +3 -3
- package/src/Common/Modals/OpaqueModal.tsx +18 -25
- package/src/Common/Modals/VisibleModal.tsx +3 -7
- package/src/Common/Modals/VisibleModal2.tsx +15 -20
- package/src/Common/MultiSelectCustomization.tsx +13 -9
- package/src/Common/Policy.Types.ts +38 -38
- package/src/Common/PopupMenu.tsx +9 -10
- package/src/Common/Progressing.tsx +18 -15
- package/src/Common/RJSF/Form.tsx +1 -0
- package/src/Common/RJSF/common/FieldRow.tsx +1 -0
- package/src/Common/RJSF/config.ts +1 -0
- package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +1 -1
- package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +1 -0
- package/src/Common/RJSF/templates/BaseInput.tsx +1 -0
- package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +1 -0
- package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +1 -0
- package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +6 -1
- package/src/Common/RJSF/templates/Description.tsx +1 -0
- package/src/Common/RJSF/templates/Field.tsx +3 -14
- package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +9 -6
- package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +7 -5
- package/src/Common/RJSF/templates/TitleField.tsx +1 -0
- package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +1 -0
- package/src/Common/RJSF/utils.ts +57 -53
- package/src/Common/RJSF/widgets/Checkbox.tsx +2 -2
- package/src/Common/RJSF/widgets/Select.tsx +1 -0
- package/src/Common/RadioGroup/RadioGroup.tsx +23 -18
- package/src/Common/RadioGroup.tsx +23 -24
- package/src/Common/Reload.tsx +1 -0
- package/src/Common/ResizableTextarea.tsx +17 -18
- package/src/Common/Security/ScanVulnerabilitiesTable.tsx +34 -29
- package/src/Common/ServerError.ts +1 -5
- package/src/Common/TippyCustomized.tsx +38 -41
- package/src/Common/ToastBody.tsx +7 -6
- package/src/Common/Toggle/Toggle.tsx +3 -3
- package/src/Common/Types.ts +19 -19
- package/src/custom.d.ts +7 -7
- 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,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const Store: ({ children }: {
|
|
3
3
|
children: any;
|
|
4
4
|
}) => JSX.Element;
|
|
5
|
-
export declare const BreadcrumbContext:
|
|
5
|
+
export declare const BreadcrumbContext: React.Context<{
|
|
6
6
|
state: {
|
|
7
7
|
alias: {};
|
|
8
8
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CustomInputProps } from './Types';
|
|
3
|
-
export declare
|
|
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,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ResizableTagTextAreaProps } from './Types';
|
|
3
|
-
export declare
|
|
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
|
|
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
|
|
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
|
|
4
|
-
|
|
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,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ForceDeleteDialogType } from './Types';
|
|
3
|
-
export default function ForceDeleteDialog({ onClickDelete, closeDeleteModal, forceDeleteDialogTitle, forceDeleteDialogMessage
|
|
3
|
+
export default function ForceDeleteDialog({ onClickDelete, closeDeleteModal, forceDeleteDialogTitle, forceDeleteDialogMessage }: ForceDeleteDialogType): JSX.Element;
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './emptyState.scss';
|
|
3
|
-
declare
|
|
4
|
-
|
|
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
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
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:
|
|
15
|
-
|
|
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
|
|
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;
|
package/dist/Common/Error.d.ts
CHANGED
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Sentry from '@sentry/browser';
|
|
2
|
-
import
|
|
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
|
|
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
|
|
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
|
-
|
|
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) =>
|
|
3
|
+
export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
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():
|
|
11
|
+
render(): React.ReactPortal;
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
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():
|
|
14
|
+
render(): React.ReactPortal;
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
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():
|
|
11
|
+
render(): React.ReactPortal;
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariableType } from
|
|
2
|
-
import { ResponseType } from
|
|
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
|
|
4
|
-
|
|
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
|
|
4
|
-
export declare
|
|
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
1
|
/// <reference types="react" />
|
|
2
2
|
import 'tippy.js/animations/shift-toward-subtle.css';
|
|
3
3
|
import { TippyCustomizedProps } from './Types';
|
|
4
|
-
export declare
|
|
4
|
+
export declare function TippyCustomized(props: TippyCustomizedProps): JSX.Element;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
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) =>
|
|
23
|
+
export declare const toastAccessDenied: (title?: string, subtitle?: string) => React.ReactText;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./Common";
|