@devtron-labs/devtron-fe-common-lib 0.0.45-beta-4 → 0.0.45-beta-5

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.
@@ -25,6 +25,22 @@ 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;
28
44
  export declare function handleUTCTime(ts: string, isRelativeTime?: boolean): string;
29
45
  export declare function useSearchString(): UseSearchString;
30
46
  export declare const closeOnEscKeyPressed: (e: any, actionClose: () => void) => void;
@@ -322,6 +322,7 @@ export interface CommonNodeAttr {
322
322
  };
323
323
  appReleaseTagNames?: string[];
324
324
  tagsEditable?: boolean;
325
+ isGitOpsRepoNotConfigured?: boolean;
325
326
  }
326
327
  export declare enum DeploymentAppTypes {
327
328
  HELM = "helm",
@@ -42,4 +42,3 @@ 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
@@ -9836,6 +9836,28 @@ var moment$1 = {
9836
9836
 
9837
9837
  var moment = momentExports;
9838
9838
 
9839
+ var _g$5;
9840
+ 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); }
9841
+ var SvgIcWarning = function SvgIcWarning(props) {
9842
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
9843
+ xmlns: "http://www.w3.org/2000/svg",
9844
+ width: "1em",
9845
+ height: "1em",
9846
+ viewBox: "0 0 32 32"
9847
+ }, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
9848
+ fill: "none",
9849
+ fillRule: "evenodd"
9850
+ }, /*#__PURE__*/React__namespace.createElement("path", {
9851
+ d: "M0 0h32v32H0z"
9852
+ }), /*#__PURE__*/React__namespace.createElement("path", {
9853
+ fill: "#FFCB5D",
9854
+ 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"
9855
+ }), /*#__PURE__*/React__namespace.createElement("path", {
9856
+ fill: "#FFF",
9857
+ 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"
9858
+ }))));
9859
+ };
9860
+
9839
9861
  toast.configure({
9840
9862
  autoClose: 3000,
9841
9863
  hideProgressBar: true,
@@ -10064,6 +10086,22 @@ function useForm(stateSchema, validationSchema, callback) {
10064
10086
  };
10065
10087
  return { state: state, disable: disable, handleOnChange: handleOnChange, handleOnSubmit: handleOnSubmit };
10066
10088
  }
10089
+ function handleError(error) {
10090
+ if (!error) {
10091
+ return [];
10092
+ }
10093
+ if (!Array.isArray(error)) {
10094
+ return [error];
10095
+ }
10096
+ return error;
10097
+ }
10098
+ function CustomInput(_a) {
10099
+ 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;
10100
+ 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) {
10101
+ e.persist();
10102
+ onChange(e);
10103
+ }, 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)); })] })));
10104
+ }
10067
10105
  function handleUTCTime(ts, isRelativeTime) {
10068
10106
  if (isRelativeTime === void 0) { isRelativeTime = false; }
10069
10107
  var timestamp = '';
@@ -10361,9 +10399,9 @@ var Modal = function (_a) {
10361
10399
  };
10362
10400
 
10363
10401
  var _path$c;
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); }
10402
+ 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); }
10365
10403
  var SvgIcCross = function SvgIcCross(props) {
10366
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
10404
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
10367
10405
  width: "1em",
10368
10406
  height: "1em",
10369
10407
  viewBox: "0 0 24 24",
@@ -14669,9 +14707,9 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
14669
14707
  var Tippy = index;
14670
14708
 
14671
14709
  var _path$b;
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); }
14710
+ 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); }
14673
14711
  var SvgIcHelp = function SvgIcHelp(props) {
14674
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
14712
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
14675
14713
  xmlns: "http://www.w3.org/2000/svg",
14676
14714
  width: "1em",
14677
14715
  height: "1em",
@@ -14684,9 +14722,9 @@ var SvgIcHelp = function SvgIcHelp(props) {
14684
14722
  };
14685
14723
 
14686
14724
  var _path$a;
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); }
14725
+ 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); }
14688
14726
  var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
14689
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
14727
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
14690
14728
  xmlns: "http://www.w3.org/2000/svg",
14691
14729
  viewBox: "0 0 17 16",
14692
14730
  width: "1em",
@@ -14744,9 +14782,9 @@ function TippyCustomized(props) {
14744
14782
  }
14745
14783
 
14746
14784
  var _path$9, _circle, _path2$1;
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); }
14785
+ 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); }
14748
14786
  var SvgInjectTag = function SvgInjectTag(props) {
14749
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
14787
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
14750
14788
  width: "1em",
14751
14789
  height: "1em",
14752
14790
  viewBox: "0 0 20 20",
@@ -14781,9 +14819,9 @@ function PropagateTagInfo(_a) {
14781
14819
  }
14782
14820
 
14783
14821
  var _path$8;
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); }
14822
+ 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); }
14785
14823
  var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
14786
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
14824
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
14787
14825
  xmlns: "http://www.w3.org/2000/svg",
14788
14826
  width: "1em",
14789
14827
  height: "1em",
@@ -15023,9 +15061,9 @@ var TagDetails = function (_a) {
15023
15061
  };
15024
15062
 
15025
15063
  var _path$7;
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); }
15064
+ 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); }
15027
15065
  var SvgIcAdd = function SvgIcAdd(props) {
15028
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
15066
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
15029
15067
  xmlns: "http://www.w3.org/2000/svg",
15030
15068
  width: "1em",
15031
15069
  height: "1em",
@@ -15160,8 +15198,8 @@ function ForceDeleteDialog(_a) {
15160
15198
  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?" })] }) })) }));
15161
15199
  }
15162
15200
 
15163
- function _extends$e() {
15164
- _extends$e = Object.assign ? Object.assign.bind() : function (target) {
15201
+ function _extends$d() {
15202
+ _extends$d = Object.assign ? Object.assign.bind() : function (target) {
15165
15203
  for (var i = 1; i < arguments.length; i++) {
15166
15204
  var source = arguments[i];
15167
15205
  for (var key in source) {
@@ -15172,7 +15210,7 @@ function _extends$e() {
15172
15210
  }
15173
15211
  return target;
15174
15212
  };
15175
- return _extends$e.apply(this, arguments);
15213
+ return _extends$d.apply(this, arguments);
15176
15214
  }
15177
15215
 
15178
15216
  /*
@@ -18713,7 +18751,7 @@ var Menu = function Menu(props) {
18713
18751
  getStyles = props.getStyles,
18714
18752
  innerRef = props.innerRef,
18715
18753
  innerProps = props.innerProps;
18716
- return jsx("div", _extends$e({
18754
+ return jsx("div", _extends$d({
18717
18755
  css: getStyles('menu', props),
18718
18756
  className: cx({
18719
18757
  menu: true
@@ -18745,7 +18783,7 @@ var MenuList$1 = function MenuList(props) {
18745
18783
  innerProps = props.innerProps,
18746
18784
  innerRef = props.innerRef,
18747
18785
  isMulti = props.isMulti;
18748
- return jsx("div", _extends$e({
18786
+ return jsx("div", _extends$d({
18749
18787
  css: getStyles('menuList', props),
18750
18788
  className: cx({
18751
18789
  'menu-list': true,
@@ -18776,7 +18814,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
18776
18814
  cx = props.cx,
18777
18815
  getStyles = props.getStyles,
18778
18816
  innerProps = props.innerProps;
18779
- return jsx("div", _extends$e({
18817
+ return jsx("div", _extends$d({
18780
18818
  css: getStyles('noOptionsMessage', props),
18781
18819
  className: cx({
18782
18820
  'menu-notice': true,
@@ -18793,7 +18831,7 @@ var LoadingMessage = function LoadingMessage(props) {
18793
18831
  cx = props.cx,
18794
18832
  getStyles = props.getStyles,
18795
18833
  innerProps = props.innerProps;
18796
- return jsx("div", _extends$e({
18834
+ return jsx("div", _extends$d({
18797
18835
  css: getStyles('loadingMessage', props),
18798
18836
  className: cx({
18799
18837
  'menu-notice': true,
@@ -18881,7 +18919,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
18881
18919
  rect: rect
18882
18920
  }; // same wrapper element whether fixed or portalled
18883
18921
 
18884
- var menuWrapper = jsx("div", _extends$e({
18922
+ var menuWrapper = jsx("div", _extends$d({
18885
18923
  css: getStyles('menuPortal', state),
18886
18924
  className: cx({
18887
18925
  'menu-portal': true
@@ -18917,7 +18955,7 @@ var SelectContainer = function SelectContainer(props) {
18917
18955
  innerProps = props.innerProps,
18918
18956
  isDisabled = props.isDisabled,
18919
18957
  isRtl = props.isRtl;
18920
- return jsx("div", _extends$e({
18958
+ return jsx("div", _extends$d({
18921
18959
  css: getStyles('container', props),
18922
18960
  className: cx({
18923
18961
  '--is-disabled': isDisabled,
@@ -18952,7 +18990,7 @@ var ValueContainer = function ValueContainer(props) {
18952
18990
  isMulti = props.isMulti,
18953
18991
  getStyles = props.getStyles,
18954
18992
  hasValue = props.hasValue;
18955
- return jsx("div", _extends$e({
18993
+ return jsx("div", _extends$d({
18956
18994
  css: getStyles('valueContainer', props),
18957
18995
  className: cx({
18958
18996
  'value-container': true,
@@ -18978,7 +19016,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
18978
19016
  cx = props.cx,
18979
19017
  innerProps = props.innerProps,
18980
19018
  getStyles = props.getStyles;
18981
- return jsx("div", _extends$e({
19019
+ return jsx("div", _extends$d({
18982
19020
  css: getStyles('indicatorsContainer', props),
18983
19021
  className: cx({
18984
19022
  indicators: true
@@ -19009,7 +19047,7 @@ var Svg = function Svg(_ref) {
19009
19047
  var size = _ref.size,
19010
19048
  props = _objectWithoutProperties(_ref, _excluded$2);
19011
19049
 
19012
- return jsx("svg", _extends$e({
19050
+ return jsx("svg", _extends$d({
19013
19051
  height: size,
19014
19052
  width: size,
19015
19053
  viewBox: "0 0 20 20",
@@ -19020,14 +19058,14 @@ var Svg = function Svg(_ref) {
19020
19058
  };
19021
19059
 
19022
19060
  var CrossIcon = function CrossIcon(props) {
19023
- return jsx(Svg, _extends$e({
19061
+ return jsx(Svg, _extends$d({
19024
19062
  size: 20
19025
19063
  }, props), jsx("path", {
19026
19064
  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"
19027
19065
  }));
19028
19066
  };
19029
19067
  var DownChevron = function DownChevron(props) {
19030
- return jsx(Svg, _extends$e({
19068
+ return jsx(Svg, _extends$d({
19031
19069
  size: 20
19032
19070
  }, props), jsx("path", {
19033
19071
  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"
@@ -19060,7 +19098,7 @@ var DropdownIndicator$1 = function DropdownIndicator(props) {
19060
19098
  cx = props.cx,
19061
19099
  getStyles = props.getStyles,
19062
19100
  innerProps = props.innerProps;
19063
- return jsx("div", _extends$e({
19101
+ return jsx("div", _extends$d({
19064
19102
  css: getStyles('dropdownIndicator', props),
19065
19103
  className: cx({
19066
19104
  indicator: true,
@@ -19075,7 +19113,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
19075
19113
  cx = props.cx,
19076
19114
  getStyles = props.getStyles,
19077
19115
  innerProps = props.innerProps;
19078
- return jsx("div", _extends$e({
19116
+ return jsx("div", _extends$d({
19079
19117
  css: getStyles('clearIndicator', props),
19080
19118
  className: cx({
19081
19119
  indicator: true,
@@ -19105,7 +19143,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
19105
19143
  cx = props.cx,
19106
19144
  getStyles = props.getStyles,
19107
19145
  innerProps = props.innerProps;
19108
- return jsx("span", _extends$e({}, innerProps, {
19146
+ return jsx("span", _extends$d({}, innerProps, {
19109
19147
  css: getStyles('indicatorSeparator', props),
19110
19148
  className: cx({
19111
19149
  'indicator-separator': true
@@ -19160,7 +19198,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
19160
19198
  getStyles = props.getStyles,
19161
19199
  innerProps = props.innerProps,
19162
19200
  isRtl = props.isRtl;
19163
- return jsx("div", _extends$e({
19201
+ return jsx("div", _extends$d({
19164
19202
  css: getStyles('loadingIndicator', props),
19165
19203
  className: cx({
19166
19204
  indicator: true,
@@ -19221,7 +19259,7 @@ var Control = function Control(props) {
19221
19259
  innerRef = props.innerRef,
19222
19260
  innerProps = props.innerProps,
19223
19261
  menuIsOpen = props.menuIsOpen;
19224
- return jsx("div", _extends$e({
19262
+ return jsx("div", _extends$d({
19225
19263
  ref: innerRef,
19226
19264
  css: getStyles('control', props),
19227
19265
  className: cx({
@@ -19253,12 +19291,12 @@ var Group = function Group(props) {
19253
19291
  label = props.label,
19254
19292
  theme = props.theme,
19255
19293
  selectProps = props.selectProps;
19256
- return jsx("div", _extends$e({
19294
+ return jsx("div", _extends$d({
19257
19295
  css: getStyles('group', props),
19258
19296
  className: cx({
19259
19297
  group: true
19260
19298
  }, className)
19261
- }, innerProps), jsx(Heading, _extends$e({}, headingProps, {
19299
+ }, innerProps), jsx(Heading, _extends$d({}, headingProps, {
19262
19300
  selectProps: selectProps,
19263
19301
  theme: theme,
19264
19302
  getStyles: getStyles,
@@ -19290,7 +19328,7 @@ var GroupHeading = function GroupHeading(props) {
19290
19328
  _cleanCommonProps.data;
19291
19329
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
19292
19330
 
19293
- return jsx("div", _extends$e({
19331
+ return jsx("div", _extends$d({
19294
19332
  css: getStyles('groupHeading', props),
19295
19333
  className: cx({
19296
19334
  'group-heading': true
@@ -19366,7 +19404,7 @@ var Input = function Input(props) {
19366
19404
  }, className),
19367
19405
  css: getStyles('input', props),
19368
19406
  "data-value": value || ''
19369
- }, jsx("input", _extends$e({
19407
+ }, jsx("input", _extends$d({
19370
19408
  className: cx({
19371
19409
  input: true
19372
19410
  }, inputClassName),
@@ -19436,7 +19474,7 @@ var MultiValueLabel = MultiValueGeneric;
19436
19474
  function MultiValueRemove$1(_ref5) {
19437
19475
  var children = _ref5.children,
19438
19476
  innerProps = _ref5.innerProps;
19439
- return jsx("div", _extends$e({
19477
+ return jsx("div", _extends$d({
19440
19478
  role: "button"
19441
19479
  }, innerProps), children || jsx(CrossIcon, {
19442
19480
  size: 14
@@ -19525,7 +19563,7 @@ var Option$1 = function Option(props) {
19525
19563
  isSelected = props.isSelected,
19526
19564
  innerRef = props.innerRef,
19527
19565
  innerProps = props.innerProps;
19528
- return jsx("div", _extends$e({
19566
+ return jsx("div", _extends$d({
19529
19567
  css: getStyles('option', props),
19530
19568
  className: cx({
19531
19569
  option: true,
@@ -19557,7 +19595,7 @@ var Placeholder = function Placeholder(props) {
19557
19595
  cx = props.cx,
19558
19596
  getStyles = props.getStyles,
19559
19597
  innerProps = props.innerProps;
19560
- return jsx("div", _extends$e({
19598
+ return jsx("div", _extends$d({
19561
19599
  css: getStyles('placeholder', props),
19562
19600
  className: cx({
19563
19601
  placeholder: true
@@ -19590,7 +19628,7 @@ var SingleValue = function SingleValue(props) {
19590
19628
  getStyles = props.getStyles,
19591
19629
  isDisabled = props.isDisabled,
19592
19630
  innerProps = props.innerProps;
19593
- return jsx("div", _extends$e({
19631
+ return jsx("div", _extends$d({
19594
19632
  css: getStyles('singleValue', props),
19595
19633
  className: cx({
19596
19634
  'single-value': true,
@@ -19838,7 +19876,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
19838
19876
  };
19839
19877
 
19840
19878
  var A11yText = function A11yText(props) {
19841
- return jsx("span", _extends$e({
19879
+ return jsx("span", _extends$d({
19842
19880
  css: _ref
19843
19881
  }, props));
19844
19882
  };
@@ -20374,7 +20412,7 @@ function DummyInput(_ref) {
20374
20412
  var innerRef = _ref.innerRef,
20375
20413
  props = _objectWithoutProperties(_ref, _excluded);
20376
20414
 
20377
- return jsx("input", _extends$e({
20415
+ return jsx("input", _extends$d({
20378
20416
  ref: innerRef
20379
20417
  }, props, {
20380
20418
  css: /*#__PURE__*/css$2({
@@ -22009,7 +22047,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22009
22047
 
22010
22048
  if (!isSearchable) {
22011
22049
  // use a dummy input to maintain focus/blur functionality
22012
- return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$e({
22050
+ return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$d({
22013
22051
  id: id,
22014
22052
  innerRef: this.getInputRef,
22015
22053
  onBlur: this.onInputBlur,
@@ -22023,7 +22061,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22023
22061
  }, ariaAttributes));
22024
22062
  }
22025
22063
 
22026
- return /*#__PURE__*/React__namespace.createElement(Input, _extends$e({}, commonProps, {
22064
+ return /*#__PURE__*/React__namespace.createElement(Input, _extends$d({}, commonProps, {
22027
22065
  autoCapitalize: "none",
22028
22066
  autoComplete: "off",
22029
22067
  autoCorrect: "off",
@@ -22067,7 +22105,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22067
22105
  isFocused = _this$state5.isFocused;
22068
22106
 
22069
22107
  if (!this.hasValue() || !controlShouldRenderValue) {
22070
- return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$e({}, commonProps, {
22108
+ return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$d({}, commonProps, {
22071
22109
  key: "placeholder",
22072
22110
  isDisabled: isDisabled,
22073
22111
  isFocused: isFocused,
@@ -22081,7 +22119,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22081
22119
  return selectValue.map(function (opt, index) {
22082
22120
  var isOptionFocused = opt === focusedValue;
22083
22121
  var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
22084
- return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$e({}, commonProps, {
22122
+ return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$d({}, commonProps, {
22085
22123
  components: {
22086
22124
  Container: MultiValueContainer,
22087
22125
  Label: MultiValueLabel,
@@ -22113,7 +22151,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22113
22151
  }
22114
22152
 
22115
22153
  var singleValue = selectValue[0];
22116
- return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$e({}, commonProps, {
22154
+ return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$d({}, commonProps, {
22117
22155
  data: singleValue,
22118
22156
  isDisabled: isDisabled
22119
22157
  }), this.formatOptionLabel(singleValue, 'value'));
@@ -22139,7 +22177,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22139
22177
  onTouchEnd: this.onClearIndicatorTouchEnd,
22140
22178
  'aria-hidden': 'true'
22141
22179
  };
22142
- return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$e({}, commonProps, {
22180
+ return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$d({}, commonProps, {
22143
22181
  innerProps: innerProps,
22144
22182
  isFocused: isFocused
22145
22183
  }));
@@ -22159,7 +22197,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22159
22197
  var innerProps = {
22160
22198
  'aria-hidden': 'true'
22161
22199
  };
22162
- return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$e({}, commonProps, {
22200
+ return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$d({}, commonProps, {
22163
22201
  innerProps: innerProps,
22164
22202
  isDisabled: isDisabled,
22165
22203
  isFocused: isFocused
@@ -22177,7 +22215,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22177
22215
  var commonProps = this.commonProps;
22178
22216
  var isDisabled = this.props.isDisabled;
22179
22217
  var isFocused = this.state.isFocused;
22180
- return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$e({}, commonProps, {
22218
+ return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$d({}, commonProps, {
22181
22219
  isDisabled: isDisabled,
22182
22220
  isFocused: isFocused
22183
22221
  }));
@@ -22197,7 +22235,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22197
22235
  onTouchEnd: this.onDropdownIndicatorTouchEnd,
22198
22236
  'aria-hidden': 'true'
22199
22237
  };
22200
- return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$e({}, commonProps, {
22238
+ return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$d({}, commonProps, {
22201
22239
  innerProps: innerProps,
22202
22240
  isDisabled: isDisabled,
22203
22241
  isFocused: isFocused
@@ -22260,7 +22298,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22260
22298
  onMouseOver: onHover,
22261
22299
  tabIndex: -1
22262
22300
  };
22263
- return /*#__PURE__*/React__namespace.createElement(Option, _extends$e({}, commonProps, {
22301
+ return /*#__PURE__*/React__namespace.createElement(Option, _extends$d({}, commonProps, {
22264
22302
  innerProps: innerProps,
22265
22303
  data: data,
22266
22304
  isDisabled: isDisabled,
@@ -22284,7 +22322,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22284
22322
  groupIndex = item.index;
22285
22323
  var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
22286
22324
  var headingId = "".concat(groupId, "-heading");
22287
- return /*#__PURE__*/React__namespace.createElement(Group, _extends$e({}, commonProps, {
22325
+ return /*#__PURE__*/React__namespace.createElement(Group, _extends$d({}, commonProps, {
22288
22326
  key: groupId,
22289
22327
  data: _data,
22290
22328
  options: options,
@@ -22323,12 +22361,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22323
22361
  menuPosition: menuPosition,
22324
22362
  menuShouldScrollIntoView: menuShouldScrollIntoView
22325
22363
  };
22326
- var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$e({}, commonProps, menuPlacementProps), function (_ref4) {
22364
+ var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$d({}, commonProps, menuPlacementProps), function (_ref4) {
22327
22365
  var ref = _ref4.ref,
22328
22366
  _ref4$placerProps = _ref4.placerProps,
22329
22367
  placement = _ref4$placerProps.placement,
22330
22368
  maxHeight = _ref4$placerProps.maxHeight;
22331
- return /*#__PURE__*/React__namespace.createElement(Menu, _extends$e({}, commonProps, menuPlacementProps, {
22369
+ return /*#__PURE__*/React__namespace.createElement(Menu, _extends$d({}, commonProps, menuPlacementProps, {
22332
22370
  innerRef: ref,
22333
22371
  innerProps: {
22334
22372
  onMouseDown: _this4.onMenuMouseDown,
@@ -22343,7 +22381,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22343
22381
  onBottomArrive: onMenuScrollToBottom,
22344
22382
  lockEnabled: menuShouldBlockScroll
22345
22383
  }, function (scrollTargetRef) {
22346
- return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$e({}, commonProps, {
22384
+ return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$d({}, commonProps, {
22347
22385
  innerRef: function innerRef(instance) {
22348
22386
  _this4.getMenuListRef(instance);
22349
22387
 
@@ -22358,7 +22396,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22358
22396
  // so we use the same component. the actual portalling logic is forked
22359
22397
  // within the component based on `menuPosition`
22360
22398
 
22361
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$e({}, commonProps, {
22399
+ return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$d({}, commonProps, {
22362
22400
  appendTo: menuPortalTarget,
22363
22401
  controlElement: this.controlRef,
22364
22402
  menuPlacement: menuPlacement,
@@ -22423,7 +22461,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22423
22461
  isFocused = _this$state6.isFocused,
22424
22462
  selectValue = _this$state6.selectValue;
22425
22463
  var focusableOptions = this.getFocusableOptions();
22426
- return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$e({}, commonProps, {
22464
+ return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$d({}, commonProps, {
22427
22465
  id: this.getElementId('live-region'),
22428
22466
  ariaSelection: ariaSelection,
22429
22467
  focusedOption: focusedOption,
@@ -22449,7 +22487,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22449
22487
  menuIsOpen = _this$props14.menuIsOpen;
22450
22488
  var isFocused = this.state.isFocused;
22451
22489
  var commonProps = this.commonProps = this.getCommonProps();
22452
- return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$e({}, commonProps, {
22490
+ return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$d({}, commonProps, {
22453
22491
  className: className,
22454
22492
  innerProps: {
22455
22493
  id: id,
@@ -22457,7 +22495,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22457
22495
  },
22458
22496
  isDisabled: isDisabled,
22459
22497
  isFocused: isFocused
22460
- }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$e({}, commonProps, {
22498
+ }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$d({}, commonProps, {
22461
22499
  innerRef: this.getControlRef,
22462
22500
  innerProps: {
22463
22501
  onMouseDown: this.onControlMouseDown,
@@ -22466,9 +22504,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22466
22504
  isDisabled: isDisabled,
22467
22505
  isFocused: isFocused,
22468
22506
  menuIsOpen: menuIsOpen
22469
- }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$e({}, commonProps, {
22507
+ }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$d({}, commonProps, {
22470
22508
  isDisabled: isDisabled
22471
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$e({}, commonProps, {
22509
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$d({}, commonProps, {
22472
22510
  isDisabled: isDisabled
22473
22511
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
22474
22512
  }
@@ -22541,22 +22579,22 @@ Select$1.defaultProps = defaultProps;
22541
22579
 
22542
22580
  var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
22543
22581
  var baseSelectProps = useStateManager(props);
22544
- return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$e({
22582
+ return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$d({
22545
22583
  ref: ref
22546
22584
  }, baseSelectProps));
22547
22585
  });
22548
22586
 
22549
22587
  var ReactSelect = StateManagedSelect;
22550
22588
 
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); }
22589
+ var _g$4;
22590
+ 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); }
22553
22591
  var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22554
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
22592
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
22555
22593
  xmlns: "http://www.w3.org/2000/svg",
22556
22594
  viewBox: "0 0 28 28",
22557
22595
  width: "1em",
22558
22596
  height: "1em"
22559
- }, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
22597
+ }, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
22560
22598
  fill: "none",
22561
22599
  fillRule: "evenodd",
22562
22600
  transform: "translate(2 2)"
@@ -22573,9 +22611,9 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22573
22611
  };
22574
22612
 
22575
22613
  var _path$6;
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); }
22614
+ 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); }
22577
22615
  var SvgIcCheck = function SvgIcCheck(props) {
22578
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
22616
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
22579
22617
  xmlns: "http://www.w3.org/2000/svg",
22580
22618
  width: "1em",
22581
22619
  height: "1em",
@@ -22591,15 +22629,15 @@ var SvgIcCheck = function SvgIcCheck(props) {
22591
22629
  })));
22592
22630
  };
22593
22631
 
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); }
22632
+ var _g$3;
22633
+ 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); }
22596
22634
  var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
22597
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
22635
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
22598
22636
  xmlns: "http://www.w3.org/2000/svg",
22599
22637
  width: "1em",
22600
22638
  height: "1em",
22601
22639
  viewBox: "0 0 20 21"
22602
- }, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
22640
+ }, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
22603
22641
  fill: "none",
22604
22642
  fillRule: "evenodd"
22605
22643
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -23068,15 +23106,15 @@ exports.ConsequenceAction = void 0;
23068
23106
  ConsequenceAction["ALLOW_FOREVER"] = "ALLOW_FOREVER";
23069
23107
  })(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
23070
23108
 
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); }
23109
+ var _g$2;
23110
+ 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); }
23073
23111
  var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
23074
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
23112
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
23075
23113
  xmlns: "http://www.w3.org/2000/svg",
23076
23114
  width: "1em",
23077
23115
  height: "1em",
23078
23116
  viewBox: "0 0 32 32"
23079
- }, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
23117
+ }, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
23080
23118
  fill: "none",
23081
23119
  fillRule: "evenodd"
23082
23120
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -23151,9 +23189,9 @@ function DeleteComponent(_a) {
23151
23189
  }
23152
23190
 
23153
23191
  var _path$5;
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); }
23192
+ 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); }
23155
23193
  var SvgIcPencil = function SvgIcPencil(props) {
23156
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
23194
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
23157
23195
  width: "1em",
23158
23196
  height: "1em",
23159
23197
  viewBox: "0 0 20 20",
@@ -23169,9 +23207,9 @@ var SvgIcPencil = function SvgIcPencil(props) {
23169
23207
  };
23170
23208
 
23171
23209
  var _path$4, _path2, _path3;
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); }
23210
+ 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); }
23173
23211
  var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
23174
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
23212
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
23175
23213
  width: "1em",
23176
23214
  height: "1em",
23177
23215
  viewBox: "0 0 12 12",
@@ -23196,9 +23234,9 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
23196
23234
  };
23197
23235
 
23198
23236
  var _path$3;
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); }
23237
+ 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); }
23200
23238
  var SvgIcMinus = function SvgIcMinus(props) {
23201
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
23239
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
23202
23240
  xmlns: "http://www.w3.org/2000/svg",
23203
23241
  width: "1em",
23204
23242
  height: "1em",
@@ -23211,28 +23249,6 @@ var SvgIcMinus = function SvgIcMinus(props) {
23211
23249
  })));
23212
23250
  };
23213
23251
 
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
-
23236
23252
  var _g$1;
23237
23253
  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); }
23238
23254
  var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
@@ -26623,26 +26639,6 @@ function DevtronProgressing(_a) {
26623
26639
  return (jsxRuntime.jsx("div", __assign({ className: parentClasses ? parentClasses : '' }, { children: jsxRuntime.jsx(SvgIcRotateDevtron, { className: classes ? classes : '' }) })));
26624
26640
  }
26625
26641
 
26626
- function CustomInput(_a) {
26627
- 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, _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 ? true : _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;
26628
- var renderLabelHelperText = function () {
26629
- return (jsxRuntime.jsx("span", { children: jsxRuntime.jsx("a", __assign({ target: "_blank", href: link, className: "cursor fs-13 onlink" }, { 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
- return (jsxRuntime.jsxs("div", __assign({ className: "flex column left top" }, { children: [label && (jsxRuntime.jsxs("label", __assign({ className: "form__label ".concat(labelClassName, " ").concat(isRequiredField ? 'dc__required-field' : ''), "data-testid": "label-".concat(dataTestid) }, { children: [label, " ", showLink && renderLabelHelperText()] }))), jsxRuntime.jsx("input", { "data-testid": dataTestid, type: type, name: name, autoComplete: autoComplete, className: "form__input ".concat(rootClassName), onChange: function (e) {
26641
- e.persist();
26642
- onChange(e);
26643
- }, onBlur: onBlur, onFocus: onFocus, placeholder: placeholder, value: value, disabled: disabled, tabIndex: tabIndex, autoFocus: autoFocus }), 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)); }), helperText ? (jsxRuntime.jsx(jsxRuntime.Fragment, { children: 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 }))] })) })) : null] })));
26644
- }
26645
-
26646
26642
  exports.AppStatus = AppStatus;
26647
26643
  exports.BreadCrumb = BreadCrumb;
26648
26644
  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-4",
3
+ "version": "0.0.45-beta-5",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -3,6 +3,7 @@ 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'
6
7
  import { ERROR_EMPTY_SCREEN, TOKEN_COOKIE_NAME } from './Constants'
7
8
  import { ServerErrors } from './ServerError'
8
9
  import { toastAccessDenied } from './ToastBody'
@@ -276,6 +277,64 @@ export function useForm(stateSchema, validationSchema = {}, callback) {
276
277
  return { state, disable, handleOnChange, handleOnSubmit }
277
278
  }
278
279
 
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
+
279
338
  export function handleUTCTime(ts: string, isRelativeTime = false) {
280
339
  let timestamp = ''
281
340
  try {
@@ -354,6 +354,7 @@ export interface CommonNodeAttr {
354
354
  }
355
355
  appReleaseTagNames?: string[]
356
356
  tagsEditable?: boolean
357
+ isGitOpsRepoNotConfigured?: boolean
357
358
  }
358
359
 
359
360
  export enum DeploymentAppTypes {
@@ -622,4 +623,4 @@ export interface CiPipeline {
622
623
  }
623
624
  isOffendingMandatoryPlugin?: boolean
624
625
  pipelineType?: string
625
- }
626
+ }
@@ -42,4 +42,3 @@ export * from './Hooks'
42
42
  export { AppStatus } from './AppStatus'
43
43
  export * from './RJSF'
44
44
  export * from './DevtronProgressing'
45
- export * from './CustomInput'
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomInputProps } from "./Types";
3
- export declare function CustomInput({ name, value, error, onChange, onBlur, onFocus, label, type, disabled, labelClassName, placeholder, tabIndex, dataTestid, isRequiredField, autoFocus, rootClassName, autoComplete, showLink, linkText, link, helperText, }: CustomInputProps): JSX.Element;
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- export interface CustomInputProps {
3
- name: string;
4
- value: string | number;
5
- onChange: (e: any) => void;
6
- onBlur?: (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?: React.ReactNode;
23
- helperText?: string;
24
- }
@@ -1,2 +0,0 @@
1
- export * from './CustomInput';
2
- export * from './Types';
@@ -1,92 +0,0 @@
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
- onBlur = (e) => {},
11
- onFocus = (e) => {},
12
- label,
13
- type = 'text',
14
- disabled = false,
15
- labelClassName = '',
16
- placeholder = '',
17
- tabIndex = 1,
18
- dataTestid = '',
19
- isRequiredField = false,
20
- autoFocus = true,
21
- rootClassName = '',
22
- autoComplete = 'off',
23
- showLink= false,
24
- linkText= '',
25
- link= '',
26
- helperText= '',
27
- }: CustomInputProps) {
28
-
29
- const renderLabelHelperText = () => {
30
- return (
31
- <span>
32
- <a target="_blank" href={link} className="cursor fs-13 onlink">
33
- {linkText}
34
- </a>
35
- </span>
36
- )
37
- }
38
-
39
- function handleError(error: any): any[] {
40
- if (!error) {
41
- return []
42
- }
43
-
44
- if (!Array.isArray(error)) {
45
- return [error]
46
- }
47
-
48
- return error
49
- }
50
-
51
- return (
52
- <div className="flex column left top">
53
- {label && (
54
- <label className={`form__label ${labelClassName} ${isRequiredField ? 'dc__required-field' : ''}`} data-testid={`label-${dataTestid}`}>
55
- {label} {showLink && renderLabelHelperText()}
56
- </label>
57
- )}
58
- <input
59
- data-testid={dataTestid}
60
- type={type}
61
- name={name}
62
- autoComplete={autoComplete}
63
- className={`form__input ${rootClassName}`}
64
- onChange={(e) => {
65
- e.persist()
66
- onChange(e)
67
- }}
68
- onBlur={onBlur}
69
- onFocus={onFocus}
70
- placeholder={placeholder}
71
- value={value}
72
- disabled={disabled}
73
- tabIndex={tabIndex}
74
- autoFocus={autoFocus}
75
- />
76
- {handleError(error).map((err) => (
77
- <div className="form__error" key={err}>
78
- <FormError className="form__icon form__icon--error" />
79
- {err}
80
- </div>
81
- ))}
82
- {helperText ? (
83
- <>
84
- <div className="form__text-field-info">
85
- <Info className="form__icon form__icon--info" />
86
- <p className="sentence-case">{helperText}</p>
87
- </div>
88
- </>
89
- ) : null}
90
- </div>
91
- )
92
- }
@@ -1,23 +0,0 @@
1
- export interface CustomInputProps {
2
- name: string
3
- value: string | number
4
- onChange: (e: any) => void
5
- onBlur?: (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?: React.ReactNode
22
- helperText?: string;
23
- }
@@ -1,2 +0,0 @@
1
- export * from './CustomInput'
2
- export * from './Types'