@devtron-labs/devtron-fe-common-lib 0.0.45-beta-17 → 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,7 +322,6 @@ export interface CommonNodeAttr {
322
322
  };
323
323
  appReleaseTagNames?: string[];
324
324
  tagsEditable?: boolean;
325
- deploymentAppCreated?: boolean;
326
325
  }
327
326
  export declare enum DeploymentAppTypes {
328
327
  HELM = "helm",
@@ -564,30 +563,4 @@ export interface CiPipeline {
564
563
  isOffendingMandatoryPlugin?: boolean;
565
564
  pipelineType?: string;
566
565
  }
567
- export declare enum PipelineType {
568
- CI_PIPELINE = "CI_PIPELINE",
569
- CD_PIPELINE = "CD_PIPELINE",
570
- WEBHOOK = "WEBHOOK",
571
- LINKED_CD = "LINKED_CD"
572
- }
573
- export declare enum WorkflowNodeType {
574
- GIT = "GIT",
575
- CI = "CI",
576
- WEBHOOK = "WEBHOOK",
577
- PRE_CD = "PRECD",
578
- CD = "CD",
579
- POST_CD = "POSTCD"
580
- }
581
- export declare enum AddCDPositions {
582
- LEFT = "left",
583
- RIGHT = "right"
584
- }
585
- export interface SelectedNode {
586
- nodeType: WorkflowNodeType;
587
- id: string;
588
- }
589
- export declare enum AddPipelineType {
590
- SEQUENTIAL = "SEQUENTIAL",
591
- PARALLEL = "PARALLEL"
592
- }
593
566
  export {};
@@ -42,3 +42,4 @@ export * from './Hooks';
42
42
  export { AppStatus } from './AppStatus';
43
43
  export * from './RJSF';
44
44
  export * from './DevtronProgressing';
45
+ export * from './CustomInput';
package/dist/index.js CHANGED
@@ -463,33 +463,7 @@ exports.FilterConditionType = void 0;
463
463
  (function (FilterConditionType) {
464
464
  FilterConditionType[FilterConditionType["PASS"] = 1] = "PASS";
465
465
  FilterConditionType[FilterConditionType["FAIL"] = 0] = "FAIL";
466
- })(exports.FilterConditionType || (exports.FilterConditionType = {}));
467
- exports.PipelineType = void 0;
468
- (function (PipelineType) {
469
- PipelineType["CI_PIPELINE"] = "CI_PIPELINE";
470
- PipelineType["CD_PIPELINE"] = "CD_PIPELINE";
471
- PipelineType["WEBHOOK"] = "WEBHOOK";
472
- PipelineType["LINKED_CD"] = "LINKED_CD";
473
- })(exports.PipelineType || (exports.PipelineType = {}));
474
- exports.WorkflowNodeType = void 0;
475
- (function (WorkflowNodeType) {
476
- WorkflowNodeType["GIT"] = "GIT";
477
- WorkflowNodeType["CI"] = "CI";
478
- WorkflowNodeType["WEBHOOK"] = "WEBHOOK";
479
- WorkflowNodeType["PRE_CD"] = "PRECD";
480
- WorkflowNodeType["CD"] = "CD";
481
- WorkflowNodeType["POST_CD"] = "POSTCD";
482
- })(exports.WorkflowNodeType || (exports.WorkflowNodeType = {}));
483
- exports.AddCDPositions = void 0;
484
- (function (AddCDPositions) {
485
- AddCDPositions["LEFT"] = "left";
486
- AddCDPositions["RIGHT"] = "right";
487
- })(exports.AddCDPositions || (exports.AddCDPositions = {}));
488
- exports.AddPipelineType = void 0;
489
- (function (AddPipelineType) {
490
- AddPipelineType["SEQUENTIAL"] = "SEQUENTIAL";
491
- AddPipelineType["PARALLEL"] = "PARALLEL";
492
- })(exports.AddPipelineType || (exports.AddPipelineType = {}));
466
+ })(exports.FilterConditionType || (exports.FilterConditionType = {}));
493
467
 
494
468
  var responseMessages = {
495
469
  100: 'Continue',
@@ -9862,28 +9836,6 @@ var moment$1 = {
9862
9836
 
9863
9837
  var moment = momentExports;
9864
9838
 
9865
- var _g$5;
9866
- function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
9867
- var SvgIcWarning = function SvgIcWarning(props) {
9868
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
9869
- xmlns: "http://www.w3.org/2000/svg",
9870
- width: "1em",
9871
- height: "1em",
9872
- viewBox: "0 0 32 32"
9873
- }, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
9874
- fill: "none",
9875
- fillRule: "evenodd"
9876
- }, /*#__PURE__*/React__namespace.createElement("path", {
9877
- d: "M0 0h32v32H0z"
9878
- }), /*#__PURE__*/React__namespace.createElement("path", {
9879
- fill: "#FFCB5D",
9880
- d: "M18.315 5.052 29.72 25.01A2.667 2.667 0 0 1 27.405 29H4.595a2.667 2.667 0 0 1-2.315-3.99L13.685 5.052a2.667 2.667 0 0 1 4.63 0z"
9881
- }), /*#__PURE__*/React__namespace.createElement("path", {
9882
- fill: "#FFF",
9883
- d: "M16 22.667a1.333 1.333 0 1 1 0 2.666 1.333 1.333 0 0 1 0-2.666zM16 12c.736 0 1.333.597 1.333 1.333v6.334a1.333 1.333 0 1 1-2.666 0v-6.334c0-.736.597-1.333 1.333-1.333z"
9884
- }))));
9885
- };
9886
-
9887
9839
  toast.configure({
9888
9840
  autoClose: 3000,
9889
9841
  hideProgressBar: true,
@@ -10112,22 +10064,6 @@ function useForm(stateSchema, validationSchema, callback) {
10112
10064
  };
10113
10065
  return { state: state, disable: disable, handleOnChange: handleOnChange, handleOnSubmit: handleOnSubmit };
10114
10066
  }
10115
- function handleError(error) {
10116
- if (!error) {
10117
- return [];
10118
- }
10119
- if (!Array.isArray(error)) {
10120
- return [error];
10121
- }
10122
- return error;
10123
- }
10124
- function CustomInput(_a) {
10125
- var name = _a.name, value = _a.value, error = _a.error, onChange = _a.onChange, _b = _a.onBlur, onBlur = _b === void 0 ? function (e) { } : _b, _c = _a.onFocus, onFocus = _c === void 0 ? function (e) { } : _c, label = _a.label, _d = _a.type, type = _d === void 0 ? 'text' : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e; _a.autoComplete; var _g = _a.labelClassName, labelClassName = _g === void 0 ? '' : _g, _h = _a.placeholder, placeholder = _h === void 0 ? '' : _h, _j = _a.tabIndex, tabIndex = _j === void 0 ? 1 : _j, _k = _a.dataTestid, dataTestid = _k === void 0 ? '' : _k;
10126
- return (jsxRuntime.jsxs("div", __assign({ className: "flex column left top" }, { children: [jsxRuntime.jsx("label", __assign({ className: "form__label ".concat(labelClassName) }, { children: label })), jsxRuntime.jsx("input", { "data-testid": dataTestid, type: type, name: name, autoComplete: "off", className: "form__input", onChange: function (e) {
10127
- e.persist();
10128
- onChange(e);
10129
- }, onBlur: onBlur, onFocus: onFocus, placeholder: placeholder, value: value, disabled: disabled, tabIndex: tabIndex }), handleError(error).map(function (err) { return (jsxRuntime.jsxs("div", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), err] }), err)); })] })));
10130
- }
10131
10067
  function handleUTCTime(ts, isRelativeTime) {
10132
10068
  if (isRelativeTime === void 0) { isRelativeTime = false; }
10133
10069
  var timestamp = '';
@@ -10425,9 +10361,9 @@ var Modal = function (_a) {
10425
10361
  };
10426
10362
 
10427
10363
  var _path$c;
10428
- function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
10364
+ function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
10429
10365
  var SvgIcCross = function SvgIcCross(props) {
10430
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
10366
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
10431
10367
  width: "1em",
10432
10368
  height: "1em",
10433
10369
  viewBox: "0 0 24 24",
@@ -14733,9 +14669,9 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
14733
14669
  var Tippy = index;
14734
14670
 
14735
14671
  var _path$b;
14736
- function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
14672
+ function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
14737
14673
  var SvgIcHelp = function SvgIcHelp(props) {
14738
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
14674
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
14739
14675
  xmlns: "http://www.w3.org/2000/svg",
14740
14676
  width: "1em",
14741
14677
  height: "1em",
@@ -14748,9 +14684,9 @@ var SvgIcHelp = function SvgIcHelp(props) {
14748
14684
  };
14749
14685
 
14750
14686
  var _path$a;
14751
- function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
14687
+ function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
14752
14688
  var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
14753
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
14689
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
14754
14690
  xmlns: "http://www.w3.org/2000/svg",
14755
14691
  viewBox: "0 0 17 16",
14756
14692
  width: "1em",
@@ -14808,9 +14744,9 @@ function TippyCustomized(props) {
14808
14744
  }
14809
14745
 
14810
14746
  var _path$9, _circle, _path2$1;
14811
- function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
14747
+ function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
14812
14748
  var SvgInjectTag = function SvgInjectTag(props) {
14813
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
14749
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
14814
14750
  width: "1em",
14815
14751
  height: "1em",
14816
14752
  viewBox: "0 0 20 20",
@@ -14845,9 +14781,9 @@ function PropagateTagInfo(_a) {
14845
14781
  }
14846
14782
 
14847
14783
  var _path$8;
14848
- function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
14784
+ function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
14849
14785
  var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
14850
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
14786
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
14851
14787
  xmlns: "http://www.w3.org/2000/svg",
14852
14788
  width: "1em",
14853
14789
  height: "1em",
@@ -15087,9 +15023,9 @@ var TagDetails = function (_a) {
15087
15023
  };
15088
15024
 
15089
15025
  var _path$7;
15090
- function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
15026
+ function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
15091
15027
  var SvgIcAdd = function SvgIcAdd(props) {
15092
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
15028
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
15093
15029
  xmlns: "http://www.w3.org/2000/svg",
15094
15030
  width: "1em",
15095
15031
  height: "1em",
@@ -15160,7 +15096,7 @@ var DeleteDialog = function (props) {
15160
15096
  }
15161
15097
  props.closeDelete();
15162
15098
  };
15163
- return (jsxRuntime.jsxs(ConfirmationDialog, __assign({ className: "confirmation-dialog__body--w-400" }, { children: [jsxRuntime.jsx(ConfirmationDialog.Icon, { src: warn }), jsxRuntime.jsx(ConfirmationDialog.Body, __assign({ title: props.title }, { children: jsxRuntime.jsxs("div", __assign({ className: "fs-13 cn-7 lh-1-54 w-100" }, { children: [props.description ? props.description : null, props.children] })) })), jsxRuntime.jsx(ConfirmationDialog.ButtonGroup, { children: jsxRuntime.jsxs("div", __assign({ className: "flex right" }, { children: [jsxRuntime.jsx("button", __assign({ type: "button", className: "cta cancel cta-cd-delete-modal ml-16", onClick: handleModalClose, disabled: props.apiCallInProgress, "data-testid": "dialog-cancel" }, { children: "Cancel" })), jsxRuntime.jsx("button", __assign({ type: "button", className: "cta delete cta-cd-delete-modal ml-16", onClick: handleDelete, disabled: props.apiCallInProgress || props.disabled, "data-testid": "dialog-delete" }, { children: props.apiCallInProgress ? (jsxRuntime.jsx(Progressing, {})) : ("".concat(props.deletePrefix || '').concat(props.buttonPrimaryText ? props.buttonPrimaryText : 'Delete').concat(props.deletePostfix || '')) }))] })) })] })));
15099
+ return (jsxRuntime.jsxs(ConfirmationDialog, __assign({ className: "confirmation-dialog__body--w-400" }, { children: [jsxRuntime.jsx(ConfirmationDialog.Icon, { src: warn }), jsxRuntime.jsx(ConfirmationDialog.Body, __assign({ title: props.title }, { children: jsxRuntime.jsxs("div", __assign({ className: "fs-13 cn-7 lh-1-54 w-100" }, { children: [props.description ? props.description : null, props.children] })) })), jsxRuntime.jsx(ConfirmationDialog.ButtonGroup, { children: jsxRuntime.jsxs("div", __assign({ className: "flex right" }, { children: [jsxRuntime.jsx("button", __assign({ type: "button", className: "cta cancel cta-cd-delete-modal ml-16", onClick: handleModalClose, disabled: props.apiCallInProgress, "data-testid": "dialog-cancel" }, { children: "Cancel" })), jsxRuntime.jsx("button", __assign({ type: "button", className: "cta delete cta-cd-delete-modal ml-16", onClick: handleDelete, disabled: props.apiCallInProgress, "data-testid": "dialog-delete" }, { children: props.apiCallInProgress ? (jsxRuntime.jsx(Progressing, {})) : ("".concat(props.deletePrefix || '').concat(props.buttonPrimaryText ? props.buttonPrimaryText : 'Delete').concat(props.deletePostfix || '')) }))] })) })] })));
15164
15100
  };
15165
15101
  function DeleteDialogDescription(props) {
15166
15102
  return jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.children });
@@ -15224,8 +15160,8 @@ function ForceDeleteDialog(_a) {
15224
15160
  return (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(DeleteDialog, __assign({ title: forceDeleteDialogTitle, delete: onClickDelete, closeDelete: closeDeleteModal, deletePrefix: "Force " }, { children: jsxRuntime.jsxs(DeleteDialog.Description, { children: [jsxRuntime.jsxs("p", __assign({ className: "mt-12 mb-12 p-8 dc__break-word dc__window-bg" }, { children: ["Error: ", forceDeleteDialogMessage] })), jsxRuntime.jsx("p", { children: "Do you want to force delete?" })] }) })) }));
15225
15161
  }
15226
15162
 
15227
- function _extends$d() {
15228
- _extends$d = Object.assign ? Object.assign.bind() : function (target) {
15163
+ function _extends$e() {
15164
+ _extends$e = Object.assign ? Object.assign.bind() : function (target) {
15229
15165
  for (var i = 1; i < arguments.length; i++) {
15230
15166
  var source = arguments[i];
15231
15167
  for (var key in source) {
@@ -15236,7 +15172,7 @@ function _extends$d() {
15236
15172
  }
15237
15173
  return target;
15238
15174
  };
15239
- return _extends$d.apply(this, arguments);
15175
+ return _extends$e.apply(this, arguments);
15240
15176
  }
15241
15177
 
15242
15178
  /*
@@ -18777,7 +18713,7 @@ var Menu = function Menu(props) {
18777
18713
  getStyles = props.getStyles,
18778
18714
  innerRef = props.innerRef,
18779
18715
  innerProps = props.innerProps;
18780
- return jsx("div", _extends$d({
18716
+ return jsx("div", _extends$e({
18781
18717
  css: getStyles('menu', props),
18782
18718
  className: cx({
18783
18719
  menu: true
@@ -18809,7 +18745,7 @@ var MenuList$1 = function MenuList(props) {
18809
18745
  innerProps = props.innerProps,
18810
18746
  innerRef = props.innerRef,
18811
18747
  isMulti = props.isMulti;
18812
- return jsx("div", _extends$d({
18748
+ return jsx("div", _extends$e({
18813
18749
  css: getStyles('menuList', props),
18814
18750
  className: cx({
18815
18751
  'menu-list': true,
@@ -18840,7 +18776,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
18840
18776
  cx = props.cx,
18841
18777
  getStyles = props.getStyles,
18842
18778
  innerProps = props.innerProps;
18843
- return jsx("div", _extends$d({
18779
+ return jsx("div", _extends$e({
18844
18780
  css: getStyles('noOptionsMessage', props),
18845
18781
  className: cx({
18846
18782
  'menu-notice': true,
@@ -18857,7 +18793,7 @@ var LoadingMessage = function LoadingMessage(props) {
18857
18793
  cx = props.cx,
18858
18794
  getStyles = props.getStyles,
18859
18795
  innerProps = props.innerProps;
18860
- return jsx("div", _extends$d({
18796
+ return jsx("div", _extends$e({
18861
18797
  css: getStyles('loadingMessage', props),
18862
18798
  className: cx({
18863
18799
  'menu-notice': true,
@@ -18945,7 +18881,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
18945
18881
  rect: rect
18946
18882
  }; // same wrapper element whether fixed or portalled
18947
18883
 
18948
- var menuWrapper = jsx("div", _extends$d({
18884
+ var menuWrapper = jsx("div", _extends$e({
18949
18885
  css: getStyles('menuPortal', state),
18950
18886
  className: cx({
18951
18887
  'menu-portal': true
@@ -18981,7 +18917,7 @@ var SelectContainer = function SelectContainer(props) {
18981
18917
  innerProps = props.innerProps,
18982
18918
  isDisabled = props.isDisabled,
18983
18919
  isRtl = props.isRtl;
18984
- return jsx("div", _extends$d({
18920
+ return jsx("div", _extends$e({
18985
18921
  css: getStyles('container', props),
18986
18922
  className: cx({
18987
18923
  '--is-disabled': isDisabled,
@@ -19016,7 +18952,7 @@ var ValueContainer = function ValueContainer(props) {
19016
18952
  isMulti = props.isMulti,
19017
18953
  getStyles = props.getStyles,
19018
18954
  hasValue = props.hasValue;
19019
- return jsx("div", _extends$d({
18955
+ return jsx("div", _extends$e({
19020
18956
  css: getStyles('valueContainer', props),
19021
18957
  className: cx({
19022
18958
  'value-container': true,
@@ -19042,7 +18978,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
19042
18978
  cx = props.cx,
19043
18979
  innerProps = props.innerProps,
19044
18980
  getStyles = props.getStyles;
19045
- return jsx("div", _extends$d({
18981
+ return jsx("div", _extends$e({
19046
18982
  css: getStyles('indicatorsContainer', props),
19047
18983
  className: cx({
19048
18984
  indicators: true
@@ -19073,7 +19009,7 @@ var Svg = function Svg(_ref) {
19073
19009
  var size = _ref.size,
19074
19010
  props = _objectWithoutProperties(_ref, _excluded$2);
19075
19011
 
19076
- return jsx("svg", _extends$d({
19012
+ return jsx("svg", _extends$e({
19077
19013
  height: size,
19078
19014
  width: size,
19079
19015
  viewBox: "0 0 20 20",
@@ -19084,14 +19020,14 @@ var Svg = function Svg(_ref) {
19084
19020
  };
19085
19021
 
19086
19022
  var CrossIcon = function CrossIcon(props) {
19087
- return jsx(Svg, _extends$d({
19023
+ return jsx(Svg, _extends$e({
19088
19024
  size: 20
19089
19025
  }, props), jsx("path", {
19090
19026
  d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
19091
19027
  }));
19092
19028
  };
19093
19029
  var DownChevron = function DownChevron(props) {
19094
- return jsx(Svg, _extends$d({
19030
+ return jsx(Svg, _extends$e({
19095
19031
  size: 20
19096
19032
  }, props), jsx("path", {
19097
19033
  d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
@@ -19124,7 +19060,7 @@ var DropdownIndicator$1 = function DropdownIndicator(props) {
19124
19060
  cx = props.cx,
19125
19061
  getStyles = props.getStyles,
19126
19062
  innerProps = props.innerProps;
19127
- return jsx("div", _extends$d({
19063
+ return jsx("div", _extends$e({
19128
19064
  css: getStyles('dropdownIndicator', props),
19129
19065
  className: cx({
19130
19066
  indicator: true,
@@ -19139,7 +19075,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
19139
19075
  cx = props.cx,
19140
19076
  getStyles = props.getStyles,
19141
19077
  innerProps = props.innerProps;
19142
- return jsx("div", _extends$d({
19078
+ return jsx("div", _extends$e({
19143
19079
  css: getStyles('clearIndicator', props),
19144
19080
  className: cx({
19145
19081
  indicator: true,
@@ -19169,7 +19105,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
19169
19105
  cx = props.cx,
19170
19106
  getStyles = props.getStyles,
19171
19107
  innerProps = props.innerProps;
19172
- return jsx("span", _extends$d({}, innerProps, {
19108
+ return jsx("span", _extends$e({}, innerProps, {
19173
19109
  css: getStyles('indicatorSeparator', props),
19174
19110
  className: cx({
19175
19111
  'indicator-separator': true
@@ -19224,7 +19160,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
19224
19160
  getStyles = props.getStyles,
19225
19161
  innerProps = props.innerProps,
19226
19162
  isRtl = props.isRtl;
19227
- return jsx("div", _extends$d({
19163
+ return jsx("div", _extends$e({
19228
19164
  css: getStyles('loadingIndicator', props),
19229
19165
  className: cx({
19230
19166
  indicator: true,
@@ -19285,7 +19221,7 @@ var Control = function Control(props) {
19285
19221
  innerRef = props.innerRef,
19286
19222
  innerProps = props.innerProps,
19287
19223
  menuIsOpen = props.menuIsOpen;
19288
- return jsx("div", _extends$d({
19224
+ return jsx("div", _extends$e({
19289
19225
  ref: innerRef,
19290
19226
  css: getStyles('control', props),
19291
19227
  className: cx({
@@ -19317,12 +19253,12 @@ var Group = function Group(props) {
19317
19253
  label = props.label,
19318
19254
  theme = props.theme,
19319
19255
  selectProps = props.selectProps;
19320
- return jsx("div", _extends$d({
19256
+ return jsx("div", _extends$e({
19321
19257
  css: getStyles('group', props),
19322
19258
  className: cx({
19323
19259
  group: true
19324
19260
  }, className)
19325
- }, innerProps), jsx(Heading, _extends$d({}, headingProps, {
19261
+ }, innerProps), jsx(Heading, _extends$e({}, headingProps, {
19326
19262
  selectProps: selectProps,
19327
19263
  theme: theme,
19328
19264
  getStyles: getStyles,
@@ -19354,7 +19290,7 @@ var GroupHeading = function GroupHeading(props) {
19354
19290
  _cleanCommonProps.data;
19355
19291
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
19356
19292
 
19357
- return jsx("div", _extends$d({
19293
+ return jsx("div", _extends$e({
19358
19294
  css: getStyles('groupHeading', props),
19359
19295
  className: cx({
19360
19296
  'group-heading': true
@@ -19430,7 +19366,7 @@ var Input = function Input(props) {
19430
19366
  }, className),
19431
19367
  css: getStyles('input', props),
19432
19368
  "data-value": value || ''
19433
- }, jsx("input", _extends$d({
19369
+ }, jsx("input", _extends$e({
19434
19370
  className: cx({
19435
19371
  input: true
19436
19372
  }, inputClassName),
@@ -19500,7 +19436,7 @@ var MultiValueLabel = MultiValueGeneric;
19500
19436
  function MultiValueRemove$1(_ref5) {
19501
19437
  var children = _ref5.children,
19502
19438
  innerProps = _ref5.innerProps;
19503
- return jsx("div", _extends$d({
19439
+ return jsx("div", _extends$e({
19504
19440
  role: "button"
19505
19441
  }, innerProps), children || jsx(CrossIcon, {
19506
19442
  size: 14
@@ -19589,7 +19525,7 @@ var Option$1 = function Option(props) {
19589
19525
  isSelected = props.isSelected,
19590
19526
  innerRef = props.innerRef,
19591
19527
  innerProps = props.innerProps;
19592
- return jsx("div", _extends$d({
19528
+ return jsx("div", _extends$e({
19593
19529
  css: getStyles('option', props),
19594
19530
  className: cx({
19595
19531
  option: true,
@@ -19621,7 +19557,7 @@ var Placeholder = function Placeholder(props) {
19621
19557
  cx = props.cx,
19622
19558
  getStyles = props.getStyles,
19623
19559
  innerProps = props.innerProps;
19624
- return jsx("div", _extends$d({
19560
+ return jsx("div", _extends$e({
19625
19561
  css: getStyles('placeholder', props),
19626
19562
  className: cx({
19627
19563
  placeholder: true
@@ -19654,7 +19590,7 @@ var SingleValue = function SingleValue(props) {
19654
19590
  getStyles = props.getStyles,
19655
19591
  isDisabled = props.isDisabled,
19656
19592
  innerProps = props.innerProps;
19657
- return jsx("div", _extends$d({
19593
+ return jsx("div", _extends$e({
19658
19594
  css: getStyles('singleValue', props),
19659
19595
  className: cx({
19660
19596
  'single-value': true,
@@ -19902,7 +19838,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
19902
19838
  };
19903
19839
 
19904
19840
  var A11yText = function A11yText(props) {
19905
- return jsx("span", _extends$d({
19841
+ return jsx("span", _extends$e({
19906
19842
  css: _ref
19907
19843
  }, props));
19908
19844
  };
@@ -20438,7 +20374,7 @@ function DummyInput(_ref) {
20438
20374
  var innerRef = _ref.innerRef,
20439
20375
  props = _objectWithoutProperties(_ref, _excluded);
20440
20376
 
20441
- return jsx("input", _extends$d({
20377
+ return jsx("input", _extends$e({
20442
20378
  ref: innerRef
20443
20379
  }, props, {
20444
20380
  css: /*#__PURE__*/css$2({
@@ -22073,7 +22009,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22073
22009
 
22074
22010
  if (!isSearchable) {
22075
22011
  // use a dummy input to maintain focus/blur functionality
22076
- return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$d({
22012
+ return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$e({
22077
22013
  id: id,
22078
22014
  innerRef: this.getInputRef,
22079
22015
  onBlur: this.onInputBlur,
@@ -22087,7 +22023,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22087
22023
  }, ariaAttributes));
22088
22024
  }
22089
22025
 
22090
- return /*#__PURE__*/React__namespace.createElement(Input, _extends$d({}, commonProps, {
22026
+ return /*#__PURE__*/React__namespace.createElement(Input, _extends$e({}, commonProps, {
22091
22027
  autoCapitalize: "none",
22092
22028
  autoComplete: "off",
22093
22029
  autoCorrect: "off",
@@ -22131,7 +22067,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22131
22067
  isFocused = _this$state5.isFocused;
22132
22068
 
22133
22069
  if (!this.hasValue() || !controlShouldRenderValue) {
22134
- return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$d({}, commonProps, {
22070
+ return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$e({}, commonProps, {
22135
22071
  key: "placeholder",
22136
22072
  isDisabled: isDisabled,
22137
22073
  isFocused: isFocused,
@@ -22145,7 +22081,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22145
22081
  return selectValue.map(function (opt, index) {
22146
22082
  var isOptionFocused = opt === focusedValue;
22147
22083
  var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
22148
- return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$d({}, commonProps, {
22084
+ return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$e({}, commonProps, {
22149
22085
  components: {
22150
22086
  Container: MultiValueContainer,
22151
22087
  Label: MultiValueLabel,
@@ -22177,7 +22113,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22177
22113
  }
22178
22114
 
22179
22115
  var singleValue = selectValue[0];
22180
- return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$d({}, commonProps, {
22116
+ return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$e({}, commonProps, {
22181
22117
  data: singleValue,
22182
22118
  isDisabled: isDisabled
22183
22119
  }), this.formatOptionLabel(singleValue, 'value'));
@@ -22203,7 +22139,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22203
22139
  onTouchEnd: this.onClearIndicatorTouchEnd,
22204
22140
  'aria-hidden': 'true'
22205
22141
  };
22206
- return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$d({}, commonProps, {
22142
+ return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$e({}, commonProps, {
22207
22143
  innerProps: innerProps,
22208
22144
  isFocused: isFocused
22209
22145
  }));
@@ -22223,7 +22159,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22223
22159
  var innerProps = {
22224
22160
  'aria-hidden': 'true'
22225
22161
  };
22226
- return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$d({}, commonProps, {
22162
+ return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$e({}, commonProps, {
22227
22163
  innerProps: innerProps,
22228
22164
  isDisabled: isDisabled,
22229
22165
  isFocused: isFocused
@@ -22241,7 +22177,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22241
22177
  var commonProps = this.commonProps;
22242
22178
  var isDisabled = this.props.isDisabled;
22243
22179
  var isFocused = this.state.isFocused;
22244
- return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$d({}, commonProps, {
22180
+ return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$e({}, commonProps, {
22245
22181
  isDisabled: isDisabled,
22246
22182
  isFocused: isFocused
22247
22183
  }));
@@ -22261,7 +22197,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22261
22197
  onTouchEnd: this.onDropdownIndicatorTouchEnd,
22262
22198
  'aria-hidden': 'true'
22263
22199
  };
22264
- return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$d({}, commonProps, {
22200
+ return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$e({}, commonProps, {
22265
22201
  innerProps: innerProps,
22266
22202
  isDisabled: isDisabled,
22267
22203
  isFocused: isFocused
@@ -22324,7 +22260,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22324
22260
  onMouseOver: onHover,
22325
22261
  tabIndex: -1
22326
22262
  };
22327
- return /*#__PURE__*/React__namespace.createElement(Option, _extends$d({}, commonProps, {
22263
+ return /*#__PURE__*/React__namespace.createElement(Option, _extends$e({}, commonProps, {
22328
22264
  innerProps: innerProps,
22329
22265
  data: data,
22330
22266
  isDisabled: isDisabled,
@@ -22348,7 +22284,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22348
22284
  groupIndex = item.index;
22349
22285
  var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
22350
22286
  var headingId = "".concat(groupId, "-heading");
22351
- return /*#__PURE__*/React__namespace.createElement(Group, _extends$d({}, commonProps, {
22287
+ return /*#__PURE__*/React__namespace.createElement(Group, _extends$e({}, commonProps, {
22352
22288
  key: groupId,
22353
22289
  data: _data,
22354
22290
  options: options,
@@ -22387,12 +22323,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22387
22323
  menuPosition: menuPosition,
22388
22324
  menuShouldScrollIntoView: menuShouldScrollIntoView
22389
22325
  };
22390
- var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$d({}, commonProps, menuPlacementProps), function (_ref4) {
22326
+ var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$e({}, commonProps, menuPlacementProps), function (_ref4) {
22391
22327
  var ref = _ref4.ref,
22392
22328
  _ref4$placerProps = _ref4.placerProps,
22393
22329
  placement = _ref4$placerProps.placement,
22394
22330
  maxHeight = _ref4$placerProps.maxHeight;
22395
- return /*#__PURE__*/React__namespace.createElement(Menu, _extends$d({}, commonProps, menuPlacementProps, {
22331
+ return /*#__PURE__*/React__namespace.createElement(Menu, _extends$e({}, commonProps, menuPlacementProps, {
22396
22332
  innerRef: ref,
22397
22333
  innerProps: {
22398
22334
  onMouseDown: _this4.onMenuMouseDown,
@@ -22407,7 +22343,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22407
22343
  onBottomArrive: onMenuScrollToBottom,
22408
22344
  lockEnabled: menuShouldBlockScroll
22409
22345
  }, function (scrollTargetRef) {
22410
- return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$d({}, commonProps, {
22346
+ return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$e({}, commonProps, {
22411
22347
  innerRef: function innerRef(instance) {
22412
22348
  _this4.getMenuListRef(instance);
22413
22349
 
@@ -22422,7 +22358,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22422
22358
  // so we use the same component. the actual portalling logic is forked
22423
22359
  // within the component based on `menuPosition`
22424
22360
 
22425
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$d({}, commonProps, {
22361
+ return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$e({}, commonProps, {
22426
22362
  appendTo: menuPortalTarget,
22427
22363
  controlElement: this.controlRef,
22428
22364
  menuPlacement: menuPlacement,
@@ -22487,7 +22423,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22487
22423
  isFocused = _this$state6.isFocused,
22488
22424
  selectValue = _this$state6.selectValue;
22489
22425
  var focusableOptions = this.getFocusableOptions();
22490
- return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$d({}, commonProps, {
22426
+ return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$e({}, commonProps, {
22491
22427
  id: this.getElementId('live-region'),
22492
22428
  ariaSelection: ariaSelection,
22493
22429
  focusedOption: focusedOption,
@@ -22513,7 +22449,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22513
22449
  menuIsOpen = _this$props14.menuIsOpen;
22514
22450
  var isFocused = this.state.isFocused;
22515
22451
  var commonProps = this.commonProps = this.getCommonProps();
22516
- return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$d({}, commonProps, {
22452
+ return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$e({}, commonProps, {
22517
22453
  className: className,
22518
22454
  innerProps: {
22519
22455
  id: id,
@@ -22521,7 +22457,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22521
22457
  },
22522
22458
  isDisabled: isDisabled,
22523
22459
  isFocused: isFocused
22524
- }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$d({}, commonProps, {
22460
+ }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$e({}, commonProps, {
22525
22461
  innerRef: this.getControlRef,
22526
22462
  innerProps: {
22527
22463
  onMouseDown: this.onControlMouseDown,
@@ -22530,9 +22466,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22530
22466
  isDisabled: isDisabled,
22531
22467
  isFocused: isFocused,
22532
22468
  menuIsOpen: menuIsOpen
22533
- }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$d({}, commonProps, {
22469
+ }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$e({}, commonProps, {
22534
22470
  isDisabled: isDisabled
22535
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$d({}, commonProps, {
22471
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$e({}, commonProps, {
22536
22472
  isDisabled: isDisabled
22537
22473
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
22538
22474
  }
@@ -22605,22 +22541,22 @@ Select$1.defaultProps = defaultProps;
22605
22541
 
22606
22542
  var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
22607
22543
  var baseSelectProps = useStateManager(props);
22608
- return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$d({
22544
+ return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$e({
22609
22545
  ref: ref
22610
22546
  }, baseSelectProps));
22611
22547
  });
22612
22548
 
22613
22549
  var ReactSelect = StateManagedSelect;
22614
22550
 
22615
- var _g$4;
22616
- function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
22551
+ var _g$5;
22552
+ function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
22617
22553
  var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22618
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
22554
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
22619
22555
  xmlns: "http://www.w3.org/2000/svg",
22620
22556
  viewBox: "0 0 28 28",
22621
22557
  width: "1em",
22622
22558
  height: "1em"
22623
- }, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
22559
+ }, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
22624
22560
  fill: "none",
22625
22561
  fillRule: "evenodd",
22626
22562
  transform: "translate(2 2)"
@@ -22637,9 +22573,9 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22637
22573
  };
22638
22574
 
22639
22575
  var _path$6;
22640
- function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
22576
+ function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
22641
22577
  var SvgIcCheck = function SvgIcCheck(props) {
22642
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
22578
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
22643
22579
  xmlns: "http://www.w3.org/2000/svg",
22644
22580
  width: "1em",
22645
22581
  height: "1em",
@@ -22655,15 +22591,15 @@ var SvgIcCheck = function SvgIcCheck(props) {
22655
22591
  })));
22656
22592
  };
22657
22593
 
22658
- var _g$3;
22659
- function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
22594
+ var _g$4;
22595
+ function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
22660
22596
  var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
22661
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
22597
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
22662
22598
  xmlns: "http://www.w3.org/2000/svg",
22663
22599
  width: "1em",
22664
22600
  height: "1em",
22665
22601
  viewBox: "0 0 20 21"
22666
- }, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
22602
+ }, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
22667
22603
  fill: "none",
22668
22604
  fillRule: "evenodd"
22669
22605
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -23132,15 +23068,15 @@ exports.ConsequenceAction = void 0;
23132
23068
  ConsequenceAction["ALLOW_FOREVER"] = "ALLOW_FOREVER";
23133
23069
  })(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
23134
23070
 
23135
- var _g$2;
23136
- function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
23071
+ var _g$3;
23072
+ function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
23137
23073
  var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
23138
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
23074
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
23139
23075
  xmlns: "http://www.w3.org/2000/svg",
23140
23076
  width: "1em",
23141
23077
  height: "1em",
23142
23078
  viewBox: "0 0 32 32"
23143
- }, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
23079
+ }, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
23144
23080
  fill: "none",
23145
23081
  fillRule: "evenodd"
23146
23082
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -23215,9 +23151,9 @@ function DeleteComponent(_a) {
23215
23151
  }
23216
23152
 
23217
23153
  var _path$5;
23218
- function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
23154
+ function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
23219
23155
  var SvgIcPencil = function SvgIcPencil(props) {
23220
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
23156
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
23221
23157
  width: "1em",
23222
23158
  height: "1em",
23223
23159
  viewBox: "0 0 20 20",
@@ -23233,9 +23169,9 @@ var SvgIcPencil = function SvgIcPencil(props) {
23233
23169
  };
23234
23170
 
23235
23171
  var _path$4, _path2, _path3;
23236
- function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
23172
+ function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
23237
23173
  var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
23238
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
23174
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
23239
23175
  width: "1em",
23240
23176
  height: "1em",
23241
23177
  viewBox: "0 0 12 12",
@@ -23260,9 +23196,9 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
23260
23196
  };
23261
23197
 
23262
23198
  var _path$3;
23263
- function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
23199
+ function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
23264
23200
  var SvgIcMinus = function SvgIcMinus(props) {
23265
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
23201
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
23266
23202
  xmlns: "http://www.w3.org/2000/svg",
23267
23203
  width: "1em",
23268
23204
  height: "1em",
@@ -23275,6 +23211,28 @@ var SvgIcMinus = function SvgIcMinus(props) {
23275
23211
  })));
23276
23212
  };
23277
23213
 
23214
+ var _g$2;
23215
+ function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
23216
+ var SvgIcWarning = function SvgIcWarning(props) {
23217
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
23218
+ xmlns: "http://www.w3.org/2000/svg",
23219
+ width: "1em",
23220
+ height: "1em",
23221
+ viewBox: "0 0 32 32"
23222
+ }, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
23223
+ fill: "none",
23224
+ fillRule: "evenodd"
23225
+ }, /*#__PURE__*/React__namespace.createElement("path", {
23226
+ d: "M0 0h32v32H0z"
23227
+ }), /*#__PURE__*/React__namespace.createElement("path", {
23228
+ fill: "#FFCB5D",
23229
+ d: "M18.315 5.052 29.72 25.01A2.667 2.667 0 0 1 27.405 29H4.595a2.667 2.667 0 0 1-2.315-3.99L13.685 5.052a2.667 2.667 0 0 1 4.63 0z"
23230
+ }), /*#__PURE__*/React__namespace.createElement("path", {
23231
+ fill: "#FFF",
23232
+ d: "M16 22.667a1.333 1.333 0 1 1 0 2.666 1.333 1.333 0 0 1 0-2.666zM16 12c.736 0 1.333.597 1.333 1.333v6.334a1.333 1.333 0 1 1-2.666 0v-6.334c0-.736.597-1.333 1.333-1.333z"
23233
+ }))));
23234
+ };
23235
+
23278
23236
  var _g$1;
23279
23237
  function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
23280
23238
  var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
@@ -26665,6 +26623,46 @@ function DevtronProgressing(_a) {
26665
26623
  return (jsxRuntime.jsx("div", __assign({ className: parentClasses ? parentClasses : '' }, { children: jsxRuntime.jsx(SvgIcRotateDevtron, { className: classes ? classes : '' }) })));
26666
26624
  }
26667
26625
 
26626
+ function CustomInput(_a) {
26627
+ var name = _a.name, value = _a.value, error = _a.error, onChange = _a.onChange, _b = _a.onFocus, onFocus = _b === void 0 ? function (e) { } : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.type, type = _d === void 0 ? 'text' : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.labelClassName, labelClassName = _f === void 0 ? '' : _f, _g = _a.placeholder, placeholder = _g === void 0 ? '' : _g, _h = _a.tabIndex, tabIndex = _h === void 0 ? 1 : _h, _j = _a.dataTestid, dataTestid = _j === void 0 ? '' : _j, _k = _a.isRequiredField, isRequiredField = _k === void 0 ? false : _k, _l = _a.autoFocus, autoFocus = _l === void 0 ? false : _l, _m = _a.rootClassName, rootClassName = _m === void 0 ? '' : _m, _o = _a.autoComplete, autoComplete = _o === void 0 ? 'off' : _o, _p = _a.showLink, showLink = _p === void 0 ? false : _p, _q = _a.linkText, linkText = _q === void 0 ? '' : _q, _r = _a.link, link = _r === void 0 ? '' : _r, _s = _a.helperText, helperText = _s === void 0 ? '' : _s, handleOnBlur = _a.handleOnBlur, _t = _a.readOnly, readOnly = _t === void 0 ? false : _t, _u = _a.noTrim, noTrim = _u === void 0 ? false : _u, ref = _a.ref;
26628
+ var renderLabelHelperText = function () {
26629
+ return (jsxRuntime.jsx("span", { children: jsxRuntime.jsx("a", __assign({ target: "_blank", href: link, className: "cursor fs-13 onlink ml-4" }, { children: linkText })) }));
26630
+ };
26631
+ function handleError(error) {
26632
+ if (!error) {
26633
+ return [];
26634
+ }
26635
+ if (!Array.isArray(error)) {
26636
+ return [error];
26637
+ }
26638
+ return error;
26639
+ }
26640
+ var onBlur = function (event) {
26641
+ var _a;
26642
+ //NOTE: This is to prevent the input from being trimmed when the user do not want to trim the input
26643
+ if (!noTrim) {
26644
+ event.stopPropagation();
26645
+ event.target.value = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
26646
+ onChange(event);
26647
+ }
26648
+ if (typeof handleOnBlur === 'function') {
26649
+ handleOnBlur(event);
26650
+ }
26651
+ };
26652
+ var renderFormError = function () {
26653
+ if ((error === null || error === void 0 ? void 0 : error.length) > 0) {
26654
+ if (typeof error === 'object') {
26655
+ return handleError(error).map(function (err) { return (jsxRuntime.jsxs("div", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), err] }), err)); });
26656
+ }
26657
+ return (jsxRuntime.jsxs("div", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), error] })));
26658
+ }
26659
+ };
26660
+ return (jsxRuntime.jsxs("div", __assign({ className: "flex column left top" }, { children: [label && (jsxRuntime.jsxs("label", __assign({ className: "form__label ".concat(labelClassName), "data-testid": "label-".concat(dataTestid) }, { children: [jsxRuntime.jsx("span", __assign({ className: "".concat(isRequiredField ? 'dc__required-field' : '') }, { children: label })), showLink && renderLabelHelperText()] }))), jsxRuntime.jsx("input", { "data-testid": dataTestid, type: type, name: name, autoComplete: autoComplete, className: "form__input ".concat(rootClassName), onChange: function (e) {
26661
+ e.persist();
26662
+ onChange(e);
26663
+ }, onBlur: onBlur, onFocus: onFocus, placeholder: placeholder, value: value, disabled: disabled, tabIndex: tabIndex, autoFocus: autoFocus, readOnly: readOnly, ref: ref }), renderFormError(), helperText && (jsxRuntime.jsxs("div", __assign({ className: "form__text-field-info" }, { children: [jsxRuntime.jsx(SvgIcInfoFilled, { className: "form__icon form__icon--info" }), jsxRuntime.jsx("p", __assign({ className: "sentence-case" }, { children: helperText }))] })))] })));
26664
+ }
26665
+
26668
26666
  exports.AppStatus = AppStatus;
26669
26667
  exports.BreadCrumb = BreadCrumb;
26670
26668
  exports.BreadcrumbStore = Store;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.45-beta-17",
3
+ "version": "0.0.45-beta-19",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -0,0 +1,122 @@
1
+ import { CustomInputProps } from './Types'
2
+ import { ReactComponent as Info } from '../../Assets/Icon/ic-info-filled.svg'
3
+ import { ReactComponent as FormError } from '../../Assets/Icon/ic-warning.svg'
4
+
5
+ export function CustomInput({
6
+ name,
7
+ value,
8
+ error,
9
+ onChange,
10
+ onFocus = (e) => {},
11
+ label = '',
12
+ type = 'text',
13
+ disabled = false,
14
+ labelClassName = '',
15
+ placeholder = '',
16
+ tabIndex = 1,
17
+ dataTestid = '',
18
+ isRequiredField = false,
19
+ autoFocus = false,
20
+ rootClassName = '',
21
+ autoComplete = 'off',
22
+ showLink = false,
23
+ linkText = '',
24
+ link = '',
25
+ helperText = '',
26
+ handleOnBlur,
27
+ readOnly = false,
28
+ noTrim = false,
29
+ ref
30
+ }: CustomInputProps) {
31
+ const renderLabelHelperText = () => {
32
+ return (
33
+ <span>
34
+ <a target="_blank" href={link} className="cursor fs-13 onlink ml-4">
35
+ {linkText}
36
+ </a>
37
+ </span>
38
+ )
39
+ }
40
+
41
+ function handleError(error: any): any[] {
42
+ if (!error) {
43
+ return []
44
+ }
45
+
46
+ if (!Array.isArray(error)) {
47
+ return [error]
48
+ }
49
+
50
+ return error
51
+ }
52
+
53
+ const onBlur = (event) => {
54
+ //NOTE: This is to prevent the input from being trimmed when the user do not want to trim the input
55
+ if (!noTrim) {
56
+ event.stopPropagation()
57
+ event.target.value = event.target.value?.trim()
58
+ onChange(event)
59
+ }
60
+ if (typeof handleOnBlur === 'function') {
61
+ handleOnBlur(event)
62
+ }
63
+ }
64
+
65
+ const renderFormError = () => {
66
+ if (error?.length > 0) {
67
+ if (typeof error === 'object') {
68
+ return handleError(error).map((err: string) => (
69
+ <div className="form__error" key={err}>
70
+ <FormError className="form__icon form__icon--error" />
71
+ {err}
72
+ </div>
73
+ ))
74
+ }
75
+ return (
76
+ <div className="form__error">
77
+ <FormError className="form__icon form__icon--error" />
78
+ {error}
79
+ </div>
80
+ )
81
+ }
82
+ }
83
+
84
+ return (
85
+ <div className="flex column left top">
86
+ {label && (
87
+ <label className={`form__label ${labelClassName}`} data-testid={`label-${dataTestid}`}>
88
+ <span className={`${isRequiredField ? 'dc__required-field' : ''}`}>{label}</span>
89
+ {showLink && renderLabelHelperText()}
90
+ </label>
91
+ )}
92
+ <input
93
+ data-testid={dataTestid}
94
+ type={type}
95
+ name={name}
96
+ autoComplete={autoComplete}
97
+ className={`form__input ${rootClassName}`}
98
+ onChange={(e) => {
99
+ e.persist()
100
+ onChange(e)
101
+ }}
102
+ onBlur={onBlur}
103
+ onFocus={onFocus}
104
+ placeholder={placeholder}
105
+ value={value}
106
+ disabled={disabled}
107
+ tabIndex={tabIndex}
108
+ autoFocus={autoFocus}
109
+ readOnly={readOnly}
110
+ ref={ref}
111
+ />
112
+
113
+ {renderFormError()}
114
+ {helperText && (
115
+ <div className="form__text-field-info">
116
+ <Info className="form__icon form__icon--info" />
117
+ <p className="sentence-case">{helperText}</p>
118
+ </div>
119
+ )}
120
+ </div>
121
+ )
122
+ }
@@ -0,0 +1,28 @@
1
+ import { LegacyRef } from "react"
2
+
3
+ export interface CustomInputProps {
4
+ name: string
5
+ value: string | number
6
+ onChange: (e: any) => void
7
+ onFocus?: (e: any) => void
8
+ autoComplete?: string
9
+ label?: React.ReactNode
10
+ labelClassName?: string
11
+ type?: 'text' | 'number'
12
+ disabled?: boolean
13
+ placeholder?: string
14
+ tabIndex?: number
15
+ dataTestid?: string
16
+ isRequiredField?: boolean
17
+ autoFocus?: boolean
18
+ rootClassName?: string
19
+ showLink?: boolean
20
+ link?: string
21
+ linkText?: string
22
+ error?: string[] | string
23
+ helperText?: string;
24
+ handleOnBlur?: (e) => void
25
+ readOnly?: boolean
26
+ noTrim?: boolean
27
+ ref?: LegacyRef<HTMLInputElement>
28
+ }
@@ -0,0 +1,2 @@
1
+ export * from './CustomInput'
2
+ export * from './Types'
@@ -45,7 +45,7 @@ export const DeleteDialog: React.FC<DeleteDialogProps> & { Description?: React.F
45
45
  type="button"
46
46
  className="cta delete cta-cd-delete-modal ml-16"
47
47
  onClick={handleDelete}
48
- disabled={props.apiCallInProgress || props.disabled}
48
+ disabled={props.apiCallInProgress}
49
49
  data-testid="dialog-delete"
50
50
  >
51
51
  {props.apiCallInProgress ? (
@@ -11,7 +11,6 @@ export interface DeleteDialogProps {
11
11
  dataTestId?: string
12
12
  buttonPrimaryText?: string
13
13
  shouldStopPropagation?: boolean
14
- disabled?: boolean
15
14
  }
16
15
 
17
16
  export interface ForceDeleteDialogType {
@@ -3,7 +3,6 @@ import moment from 'moment'
3
3
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
4
4
  import { useLocation } from 'react-router-dom'
5
5
  import { toast } from 'react-toastify'
6
- import { ReactComponent as FormError } from '../Assets/Icon/ic-warning.svg'
7
6
  import { ERROR_EMPTY_SCREEN, TOKEN_COOKIE_NAME } from './Constants'
8
7
  import { ServerErrors } from './ServerError'
9
8
  import { toastAccessDenied } from './ToastBody'
@@ -277,64 +276,6 @@ export function useForm(stateSchema, validationSchema = {}, callback) {
277
276
  return { state, disable, handleOnChange, handleOnSubmit }
278
277
  }
279
278
 
280
- function handleError(error: any): any[] {
281
- if (!error) {
282
- return []
283
- }
284
-
285
- if (!Array.isArray(error)) {
286
- return [error]
287
- }
288
-
289
- return error
290
- }
291
-
292
- export function CustomInput({
293
- name,
294
- value,
295
- error,
296
- onChange,
297
- onBlur = (e) => {},
298
- onFocus = (e) => {},
299
- label,
300
- type = 'text',
301
- disabled = false,
302
- autoComplete = 'off',
303
- labelClassName = '',
304
- placeholder = '',
305
- tabIndex = 1,
306
- dataTestid = '',
307
- }) {
308
- return (
309
- <div className="flex column left top">
310
- <label className={`form__label ${labelClassName}`}>{label}</label>
311
- <input
312
- data-testid={dataTestid}
313
- type={type}
314
- name={name}
315
- autoComplete="off"
316
- className="form__input"
317
- onChange={(e) => {
318
- e.persist()
319
- onChange(e)
320
- }}
321
- onBlur={onBlur}
322
- onFocus={onFocus}
323
- placeholder={placeholder}
324
- value={value}
325
- disabled={disabled}
326
- tabIndex={tabIndex}
327
- />
328
- {handleError(error).map((err) => (
329
- <div className="form__error" key={err}>
330
- <FormError className="form__icon form__icon--error" />
331
- {err}
332
- </div>
333
- ))}
334
- </div>
335
- )
336
- }
337
-
338
279
  export function handleUTCTime(ts: string, isRelativeTime = false) {
339
280
  let timestamp = ''
340
281
  try {
@@ -354,7 +354,6 @@ export interface CommonNodeAttr {
354
354
  }
355
355
  appReleaseTagNames?: string[]
356
356
  tagsEditable?: boolean
357
- deploymentAppCreated?: boolean
358
357
  }
359
358
 
360
359
  export enum DeploymentAppTypes {
@@ -623,35 +622,4 @@ export interface CiPipeline {
623
622
  }
624
623
  isOffendingMandatoryPlugin?: boolean
625
624
  pipelineType?: string
626
- }
627
-
628
- export enum PipelineType {
629
- CI_PIPELINE = 'CI_PIPELINE',
630
- CD_PIPELINE = 'CD_PIPELINE',
631
- WEBHOOK = 'WEBHOOK',
632
- LINKED_CD = 'LINKED_CD',
633
- }
634
-
635
- export enum WorkflowNodeType {
636
- GIT = 'GIT',
637
- CI = 'CI',
638
- WEBHOOK = 'WEBHOOK',
639
- PRE_CD = 'PRECD',
640
- CD = 'CD',
641
- POST_CD = 'POSTCD',
642
- }
643
-
644
- export enum AddCDPositions {
645
- LEFT = 'left',
646
- RIGHT = 'right',
647
- }
648
-
649
- export interface SelectedNode {
650
- nodeType: WorkflowNodeType
651
- id: string
652
- }
653
-
654
- export enum AddPipelineType {
655
- SEQUENTIAL = 'SEQUENTIAL',
656
- PARALLEL = 'PARALLEL',
657
- }
625
+ }
@@ -42,3 +42,4 @@ export * from './Hooks'
42
42
  export { AppStatus } from './AppStatus'
43
43
  export * from './RJSF'
44
44
  export * from './DevtronProgressing'
45
+ export * from './CustomInput'