@devtron-labs/devtron-fe-common-lib 0.0.45-beta-27 → 0.0.46

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.
@@ -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, helperText, handleOnBlur, readOnly, noTrim, ref, onKeyPress, defaultValue, onKeyDown, required, additionalErrorInfo }: CustomInputProps): JSX.Element;
@@ -0,0 +1,29 @@
1
+ import React, { HTMLInputTypeAttribute } 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?: string | (() => React.ReactNode);
9
+ labelClassName?: string;
10
+ type?: HTMLInputTypeAttribute;
11
+ disabled?: boolean;
12
+ placeholder?: string;
13
+ tabIndex?: number;
14
+ dataTestid?: string;
15
+ isRequiredField?: boolean;
16
+ autoFocus?: boolean;
17
+ rootClassName?: string;
18
+ error?: string[] | string;
19
+ helperText?: string;
20
+ handleOnBlur?: (e: any) => void;
21
+ readOnly?: boolean;
22
+ noTrim?: boolean;
23
+ ref?: React.LegacyRef<HTMLInputElement>;
24
+ onKeyPress?: (e: any) => void;
25
+ defaultValue?: string | number | ReadonlyArray<string> | undefined;
26
+ onKeyDown?: (e: any) => void;
27
+ required?: boolean;
28
+ additionalErrorInfo?: React.ReactNode;
29
+ }
@@ -0,0 +1,2 @@
1
+ export * from './CustomInput';
2
+ export * from './Types';
@@ -10,7 +10,6 @@ export interface DeleteDialogProps {
10
10
  dataTestId?: string;
11
11
  buttonPrimaryText?: string;
12
12
  shouldStopPropagation?: boolean;
13
- disabled?: boolean;
14
13
  }
15
14
  export interface ForceDeleteDialogType {
16
15
  onClickDelete: () => void;
@@ -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;
@@ -261,10 +261,6 @@ export interface CDMaterialServiceQueryParams {
261
261
  resource?: CDMaterialResourceQuery;
262
262
  filter?: CDMaterialFilterQuery;
263
263
  }
264
- export interface DownstreamNodesEnvironmentsType {
265
- environmentId: number;
266
- environmentName: string;
267
- }
268
264
  export interface CommonNodeAttr {
269
265
  connectingCiPipelineId?: number;
270
266
  parents: string | number[] | string[];
@@ -326,9 +322,6 @@ export interface CommonNodeAttr {
326
322
  };
327
323
  appReleaseTagNames?: string[];
328
324
  tagsEditable?: boolean;
329
- deploymentAppCreated?: boolean;
330
- isLast?: boolean;
331
- downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
332
325
  }
333
326
  export declare enum DeploymentAppTypes {
334
327
  HELM = "helm",
@@ -570,44 +563,4 @@ export interface CiPipeline {
570
563
  isOffendingMandatoryPlugin?: boolean;
571
564
  pipelineType?: string;
572
565
  }
573
- export declare enum PipelineType {
574
- CI_PIPELINE = "CI_PIPELINE",
575
- CD_PIPELINE = "CD_PIPELINE",
576
- WEBHOOK = "WEBHOOK",
577
- LINKED_CD = "LINKED_CD"
578
- }
579
- export declare enum WorkflowNodeType {
580
- GIT = "GIT",
581
- CI = "CI",
582
- WEBHOOK = "WEBHOOK",
583
- PRE_CD = "PRECD",
584
- CD = "CD",
585
- POST_CD = "POSTCD"
586
- }
587
- export declare enum AddCDPositions {
588
- LEFT = "left",
589
- RIGHT = "right"
590
- }
591
- export interface SelectedNode {
592
- nodeType: WorkflowNodeType;
593
- id: string;
594
- }
595
- export declare enum AddPipelineType {
596
- SEQUENTIAL = "SEQUENTIAL",
597
- PARALLEL = "PARALLEL"
598
- }
599
- export interface Point {
600
- x: number;
601
- y: number;
602
- }
603
- export interface EdgeNodeType {
604
- height: number;
605
- width: number;
606
- userApprovalConfig?: UserApprovalConfigType;
607
- type?: any;
608
- id?: number | string;
609
- }
610
- export interface EdgeEndNodeType extends EdgeNodeType {
611
- userApprovalConfig?: UserApprovalConfigType;
612
- }
613
566
  export {};
@@ -42,4 +42,4 @@ export * from './Hooks';
42
42
  export { AppStatus } from './AppStatus';
43
43
  export * from './RJSF';
44
44
  export * from './DevtronProgressing';
45
- export * from './AddCDButton';
45
+ export * from './CustomInput';