@devtron-labs/devtron-fe-common-lib 0.0.45-beta-18 → 0.0.45-beta-21
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/CustomInput/CustomInput.d.ts +3 -0
- package/dist/Common/CustomInput/Types.d.ts +28 -0
- package/dist/Common/CustomInput/index.d.ts +2 -0
- package/dist/Common/Dialogs/Types.d.ts +0 -1
- package/dist/Common/Helper.d.ts +0 -16
- package/dist/Common/Types.d.ts +0 -42
- package/dist/Common/index.d.ts +1 -1
- package/dist/index.js +142 -181
- package/package.json +1 -1
- package/src/Common/CustomInput/CustomInput.tsx +124 -0
- package/src/Common/CustomInput/Types.ts +29 -0
- package/src/Common/CustomInput/index.ts +2 -0
- package/src/Common/Dialogs/DeleteDialog.tsx +1 -1
- package/src/Common/Dialogs/Types.ts +0 -1
- package/src/Common/Helper.tsx +0 -59
- package/src/Common/Types.ts +1 -51
- package/src/Common/index.ts +1 -1
- package/dist/Common/AddCDButton/AddCDButton.d.ts +0 -3
- package/dist/Common/AddCDButton/index.d.ts +0 -2
- package/dist/Common/AddCDButton/types.d.ts +0 -22
- package/dist/Common/AddCDButton/utils.d.ts +0 -2
- package/src/Common/AddCDButton/AddCDButton.tsx +0 -44
- package/src/Common/AddCDButton/index.ts +0 -2
- package/src/Common/AddCDButton/types.ts +0 -33
- package/src/Common/AddCDButton/utils.tsx +0 -35
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
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, showLink, linkText, link, helperText, handleOnBlur, readOnly, noTrim, ref, onKeyPress }: CustomInputProps): JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LegacyRef } from "react";
|
|
2
|
+
export interface CustomInputProps {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
onChange: (e: any) => void;
|
|
6
|
+
onFocus?: (e: any) => void;
|
|
7
|
+
autoComplete?: string;
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
labelClassName?: string;
|
|
10
|
+
type?: 'text' | 'number';
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
tabIndex?: number;
|
|
14
|
+
dataTestid?: string;
|
|
15
|
+
isRequiredField?: boolean;
|
|
16
|
+
autoFocus?: boolean;
|
|
17
|
+
rootClassName?: string;
|
|
18
|
+
showLink?: boolean;
|
|
19
|
+
link?: string;
|
|
20
|
+
linkText?: string;
|
|
21
|
+
error?: string[] | string;
|
|
22
|
+
helperText?: string;
|
|
23
|
+
handleOnBlur?: (e: any) => void;
|
|
24
|
+
readOnly?: boolean;
|
|
25
|
+
noTrim?: boolean;
|
|
26
|
+
ref?: LegacyRef<HTMLInputElement>;
|
|
27
|
+
onKeyPress?: (e: any) => void;
|
|
28
|
+
}
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -25,22 +25,6 @@ export declare function useForm(stateSchema: any, validationSchema: {}, callback
|
|
|
25
25
|
handleOnChange: (event: any) => void;
|
|
26
26
|
handleOnSubmit: (event: any) => void;
|
|
27
27
|
};
|
|
28
|
-
export declare function CustomInput({ name, value, error, onChange, onBlur, onFocus, label, type, disabled, autoComplete, labelClassName, placeholder, tabIndex, dataTestid, }: {
|
|
29
|
-
name: any;
|
|
30
|
-
value: any;
|
|
31
|
-
error: any;
|
|
32
|
-
onChange: any;
|
|
33
|
-
onBlur?: (e: any) => void;
|
|
34
|
-
onFocus?: (e: any) => void;
|
|
35
|
-
label: any;
|
|
36
|
-
type?: string;
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
autoComplete?: string;
|
|
39
|
-
labelClassName?: string;
|
|
40
|
-
placeholder?: string;
|
|
41
|
-
tabIndex?: number;
|
|
42
|
-
dataTestid?: string;
|
|
43
|
-
}): JSX.Element;
|
|
44
28
|
export declare function handleUTCTime(ts: string, isRelativeTime?: boolean): string;
|
|
45
29
|
export declare function useSearchString(): UseSearchString;
|
|
46
30
|
export declare const closeOnEscKeyPressed: (e: any, actionClose: () => void) => void;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -322,8 +322,6 @@ export interface CommonNodeAttr {
|
|
|
322
322
|
};
|
|
323
323
|
appReleaseTagNames?: string[];
|
|
324
324
|
tagsEditable?: boolean;
|
|
325
|
-
deploymentAppCreated?: boolean;
|
|
326
|
-
isLast?: boolean;
|
|
327
325
|
}
|
|
328
326
|
export declare enum DeploymentAppTypes {
|
|
329
327
|
HELM = "helm",
|
|
@@ -565,44 +563,4 @@ export interface CiPipeline {
|
|
|
565
563
|
isOffendingMandatoryPlugin?: boolean;
|
|
566
564
|
pipelineType?: string;
|
|
567
565
|
}
|
|
568
|
-
export declare enum PipelineType {
|
|
569
|
-
CI_PIPELINE = "CI_PIPELINE",
|
|
570
|
-
CD_PIPELINE = "CD_PIPELINE",
|
|
571
|
-
WEBHOOK = "WEBHOOK",
|
|
572
|
-
LINKED_CD = "LINKED_CD"
|
|
573
|
-
}
|
|
574
|
-
export declare enum WorkflowNodeType {
|
|
575
|
-
GIT = "GIT",
|
|
576
|
-
CI = "CI",
|
|
577
|
-
WEBHOOK = "WEBHOOK",
|
|
578
|
-
PRE_CD = "PRECD",
|
|
579
|
-
CD = "CD",
|
|
580
|
-
POST_CD = "POSTCD"
|
|
581
|
-
}
|
|
582
|
-
export declare enum AddCDPositions {
|
|
583
|
-
LEFT = "left",
|
|
584
|
-
RIGHT = "right"
|
|
585
|
-
}
|
|
586
|
-
export interface SelectedNode {
|
|
587
|
-
nodeType: WorkflowNodeType;
|
|
588
|
-
id: string;
|
|
589
|
-
}
|
|
590
|
-
export declare enum AddPipelineType {
|
|
591
|
-
SEQUENTIAL = "SEQUENTIAL",
|
|
592
|
-
PARALLEL = "PARALLEL"
|
|
593
|
-
}
|
|
594
|
-
export interface Point {
|
|
595
|
-
x: number;
|
|
596
|
-
y: number;
|
|
597
|
-
}
|
|
598
|
-
export interface EdgeNodeType {
|
|
599
|
-
height: number;
|
|
600
|
-
width: number;
|
|
601
|
-
userApprovalConfig?: UserApprovalConfigType;
|
|
602
|
-
type?: any;
|
|
603
|
-
id?: number | string;
|
|
604
|
-
}
|
|
605
|
-
export interface EdgeEndNodeType extends EdgeNodeType {
|
|
606
|
-
userApprovalConfig?: UserApprovalConfigType;
|
|
607
|
-
}
|
|
608
566
|
export {};
|
package/dist/Common/index.d.ts
CHANGED