@devtron-labs/devtron-fe-common-lib 0.0.45-beta-18 → 0.0.45-beta-19

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, showLink, linkText, link, helperText, handleOnBlur, readOnly, noTrim, ref }: CustomInputProps): JSX.Element;
@@ -0,0 +1,27 @@
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
+ }
@@ -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;
@@ -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 {};
@@ -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';