@devtron-labs/devtron-fe-common-lib 0.0.7 → 0.0.9
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/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -29
- package/dist/Common/BreadCrumb/Types.d.ts +28 -0
- package/dist/Common/Checkbox.d.ts +1 -14
- package/dist/Common/Constants.d.ts +13 -0
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +1 -1
- package/dist/Common/CustomTagSelector/Types.d.ts +11 -3
- package/dist/Common/CustomTagSelector/ValidationRules.d.ts +1 -1
- package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +4 -0
- package/dist/Common/DeleteComponentModal/types.d.ts +15 -0
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +5 -16
- package/dist/Common/Dialogs/DialogForm.d.ts +1 -9
- package/dist/Common/Dialogs/Types.d.ts +27 -0
- package/dist/Common/EmptyState/EmptyState.d.ts +2 -1
- package/dist/Common/EmptyState/GenericEmptyState.d.ts +5 -0
- package/dist/Common/Error.d.ts +2 -2
- package/dist/Common/Helper.d.ts +31 -1
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +2 -15
- package/dist/Common/Modals/Modal.d.ts +2 -9
- package/dist/Common/MultiSelectCustomization.d.ts +1 -2
- package/dist/Common/PopupMenu.d.ts +4 -21
- package/dist/Common/Progressing.d.ts +4 -13
- package/dist/Common/RadioGroup/RadioGroup.d.ts +17 -0
- package/dist/Common/RadioGroup.d.ts +1 -10
- package/dist/Common/Reload.d.ts +2 -4
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +4 -0
- package/dist/Common/TippyCustomized.d.ts +2 -30
- package/dist/Common/Toggle/Toggle.d.ts +12 -0
- package/dist/Common/Types.d.ts +266 -0
- package/dist/Common/index.d.ts +6 -1
- package/dist/index.js +2388 -1943
- package/package.json +2 -2
- package/rollup.config.js +3 -3
- package/src/Assets/Icon/ic-info-filled.svg +7 -0
- package/src/Assets/Icon/ic-warning.svg +7 -0
- package/src/Assets/Img/app-not-deployed.png +0 -0
- package/src/Common/Api.ts +7 -1
- package/src/Common/BreadCrumb/BreadCrumb.tsx +1 -30
- package/src/Common/BreadCrumb/Types.ts +30 -0
- package/src/Common/Checkbox.tsx +3 -16
- package/src/Common/Constants.ts +15 -0
- package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +6 -4
- package/src/Common/CustomTagSelector/TagDetails.tsx +15 -2
- package/src/Common/CustomTagSelector/TagLabelSelect.tsx +7 -3
- package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +66 -26
- package/src/Common/CustomTagSelector/Types.ts +11 -3
- package/src/Common/CustomTagSelector/ValidationRules.ts +21 -18
- package/src/Common/DeleteComponentModal/DeleteComponent.tsx +95 -0
- package/src/Common/DeleteComponentModal/types.ts +15 -0
- package/src/Common/Dialogs/ConfirmationDialog.tsx +6 -4
- package/src/Common/Dialogs/DeleteDialog.tsx +2 -2
- package/src/Common/Dialogs/DialogForm.tsx +2 -11
- package/src/Common/Dialogs/Types.ts +28 -0
- package/src/Common/Drawer/Drawer.scss +12 -11
- package/src/Common/EmptyState/EmptyState.tsx +5 -5
- package/src/Common/EmptyState/GenericEmptyState.tsx +41 -0
- package/src/Common/EmptyState/emptyState.scss +4 -15
- package/src/Common/Error.tsx +13 -16
- package/src/Common/ErrorScreenNotFound.tsx +23 -30
- package/src/Common/Helper.tsx +258 -2
- package/src/Common/InfoColorBar/InfoColourbar.tsx +6 -18
- package/src/Common/Modals/Modal.tsx +7 -1
- package/src/Common/Modals/OpaqueModal.tsx +2 -2
- package/src/Common/Modals/VisibleModal.tsx +1 -1
- package/src/Common/Modals/VisibleModal2.tsx +1 -1
- package/src/Common/MultiSelectCustomization.tsx +3 -3
- package/src/Common/PopupMenu.tsx +23 -6
- package/src/Common/Progressing.tsx +8 -15
- package/src/Common/RadioGroup/RadioGroup.tsx +88 -0
- package/src/Common/RadioGroup/radioGroup.scss +46 -0
- package/src/Common/RadioGroup.tsx +3 -13
- package/src/Common/Reload.tsx +15 -10
- package/src/Common/Security/ScanVulnerabilitiesTable.tsx +55 -0
- package/src/Common/Security/scanVulnerabilities.css +67 -0
- package/src/Common/TippyCustomized.tsx +3 -31
- package/src/Common/Toggle/Toggle.scss +70 -0
- package/src/Common/Toggle/Toggle.tsx +38 -0
- package/src/Common/Types.ts +290 -0
- package/src/Common/index.ts +6 -1
- package/dist/27bfa7a87d0b7039.png +0 -0
- package/dist/b5d52f036bdcd3ed.png +0 -0
- package/src/Assets/Icon/ic-close.svg +0 -9
|
@@ -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;
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
|
|
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,14 @@ 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;
|
|
37
50
|
};
|
|
@@ -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?:
|
|
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?:
|
|
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?:
|
|
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
|
}
|
|
@@ -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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
9
|
-
|
|
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
|
-
|
|
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,7 @@ export interface DeleteDialogProps {
|
|
|
6
7
|
deletePrefix?: string;
|
|
7
8
|
deletePostfix?: string;
|
|
8
9
|
apiCallInProgress?: boolean;
|
|
10
|
+
dataTestId?: string;
|
|
9
11
|
}
|
|
10
12
|
export interface ForceDeleteDialogType {
|
|
11
13
|
onClickDelete: () => void;
|
|
@@ -13,3 +15,28 @@ export interface ForceDeleteDialogType {
|
|
|
13
15
|
forceDeleteDialogTitle: string;
|
|
14
16
|
forceDeleteDialogMessage: string;
|
|
15
17
|
}
|
|
18
|
+
export interface ConfirmationDialogType {
|
|
19
|
+
className?: string;
|
|
20
|
+
children: any;
|
|
21
|
+
}
|
|
22
|
+
export interface ConfirmationDialogIconType {
|
|
23
|
+
src: string;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ConfirmationDialogBodyType {
|
|
27
|
+
title: string;
|
|
28
|
+
subtitle?: ReactNode;
|
|
29
|
+
children?: any;
|
|
30
|
+
}
|
|
31
|
+
export interface ConfirmationDialogButtonGroupType {
|
|
32
|
+
children: any;
|
|
33
|
+
}
|
|
34
|
+
export interface DialogFormProps {
|
|
35
|
+
className: string;
|
|
36
|
+
title: string;
|
|
37
|
+
isLoading: boolean;
|
|
38
|
+
closeOnESC?: boolean;
|
|
39
|
+
close: (event: any) => void;
|
|
40
|
+
onSave: (event: any) => void;
|
|
41
|
+
headerClassName?: string;
|
|
42
|
+
}
|
|
@@ -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;
|
package/dist/Common/Error.d.ts
CHANGED
|
@@ -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
|
|
14
|
-
|
|
13
|
+
subtitle?: React.ReactChild;
|
|
14
|
+
title?: string;
|
|
15
15
|
}> {
|
|
16
16
|
render(): JSX.Element;
|
|
17
17
|
}
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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 {};
|
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
onToggleCallback?: any;
|
|
5
|
-
autoClose?: boolean;
|
|
6
|
-
autoPosition?: boolean;
|
|
7
|
-
}): any;
|
|
2
|
+
import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
|
|
3
|
+
declare function PopupMenu({ children, onToggleCallback, autoClose, autoPosition, }: PopupMenuType): any;
|
|
8
4
|
declare namespace PopupMenu {
|
|
9
|
-
var Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, }:
|
|
10
|
-
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
rootClassName?: string;
|
|
13
|
-
tabIndex?: number;
|
|
14
|
-
onHover?: boolean;
|
|
15
|
-
isKebab?: boolean;
|
|
16
|
-
}) => JSX.Element;
|
|
17
|
-
var Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable }: {
|
|
18
|
-
children?: any;
|
|
19
|
-
rootClassName?: string;
|
|
20
|
-
style?: {};
|
|
21
|
-
autoWidth?: boolean;
|
|
22
|
-
preventWheelDisable?: boolean;
|
|
23
|
-
}) => JSX.Element;
|
|
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;
|
|
24
7
|
}
|
|
25
8
|
export default PopupMenu;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
size?: number;
|
|
6
|
-
fullHeight?: boolean;
|
|
7
|
-
theme?: 'white' | 'default';
|
|
8
|
-
styles?: React.CSSProperties;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare function Progressing({ pageLoader, size, theme, styles }: ProgressingProps): JSX.Element;
|
|
12
|
-
export declare function DetailsProgressing({ loadingText, size, fullHeight, children, styles, }: ProgressingProps): JSX.Element;
|
|
13
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
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;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './radioGroup.scss';
|
|
3
|
+
interface RadioGroupInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
onChange: any;
|
|
6
|
+
className?: string;
|
|
7
|
+
initialTab: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
showTippy?: boolean;
|
|
10
|
+
tippyContent?: any;
|
|
11
|
+
dataTestId?: string;
|
|
12
|
+
}
|
|
13
|
+
interface RadioGroupComposition {
|
|
14
|
+
Radio?: React.FC<any>;
|
|
15
|
+
}
|
|
16
|
+
declare const RadioGroup: React.FC<RadioGroupInterface> & RadioGroupComposition;
|
|
17
|
+
export default RadioGroup;
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
2
|
+
import { RadioGroupItemProps, RadioGroupProps } from './Types';
|
|
5
3
|
export declare class RadioGroupItem extends Component<RadioGroupItemProps> {
|
|
6
4
|
render(): JSX.Element;
|
|
7
5
|
}
|
|
8
|
-
export interface RadioGroupProps {
|
|
9
|
-
value: string;
|
|
10
|
-
name: string;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
onChange: (event: any) => void;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
6
|
export declare class RadioGroup extends Component<RadioGroupProps> {
|
|
16
7
|
render(): JSX.Element;
|
|
17
8
|
}
|
package/dist/Common/Reload.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className?: string;
|
|
5
|
-
}): JSX.Element;
|
|
2
|
+
import { ReloadType } from './Types';
|
|
3
|
+
export default function Reload({ reload, className }: ReloadType): JSX.Element;
|
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Placement } from 'tippy.js';
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
import 'tippy.js/animations/shift-toward-subtle.css';
|
|
4
|
-
import {
|
|
5
|
-
interface TippyCustomizedProps {
|
|
6
|
-
theme: TippyTheme;
|
|
7
|
-
visible?: boolean;
|
|
8
|
-
heading?: string;
|
|
9
|
-
infoTextHeading?: string;
|
|
10
|
-
placement: Placement;
|
|
11
|
-
className?: string;
|
|
12
|
-
Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
13
|
-
iconPath?: string;
|
|
14
|
-
iconClass?: string;
|
|
15
|
-
iconSize?: number;
|
|
16
|
-
onImageLoadError?: (e: any) => void;
|
|
17
|
-
onClose?: () => void;
|
|
18
|
-
infoText?: string;
|
|
19
|
-
showCloseButton?: boolean;
|
|
20
|
-
arrow?: boolean;
|
|
21
|
-
interactive?: boolean;
|
|
22
|
-
showOnCreate?: boolean;
|
|
23
|
-
trigger?: string;
|
|
24
|
-
animation?: string;
|
|
25
|
-
duration?: number;
|
|
26
|
-
additionalContent?: ReactNode;
|
|
27
|
-
documentationLink?: string;
|
|
28
|
-
documentationLinkText?: string;
|
|
29
|
-
children: React.ReactElement<any>;
|
|
30
|
-
}
|
|
3
|
+
import { TippyCustomizedProps } from './Types';
|
|
31
4
|
export declare function TippyCustomized(props: TippyCustomizedProps): JSX.Element;
|
|
32
|
-
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './Toggle.scss';
|
|
3
|
+
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, ...props }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
onSelect?: any;
|
|
7
|
+
color?: string;
|
|
8
|
+
rootClassName?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export default Toggle;
|