@devtron-labs/devtron-fe-common-lib 0.0.55-beta-1 → 0.0.55-beta-3

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.
Files changed (113) hide show
  1. package/dist/{CodeEditor-0a5bfd53.js → CodeEditor-3c2aaef5.js} +11082 -11082
  2. package/dist/Common/AddCDButton/AddCDButton.js +24 -24
  3. package/dist/Common/AppStatus/AppStatus.js +16 -16
  4. package/dist/Common/BreadCrumb/BreadCrumb.js +43 -43
  5. package/dist/Common/BreadCrumb/BreadcrumbStore.js +9 -9
  6. package/dist/Common/ChartVersionAndTypeSelector.js +42 -42
  7. package/dist/Common/Checkbox.js +8 -8
  8. package/dist/Common/ClipboardButton/ClipboardButton.js +17 -17
  9. package/dist/Common/ClipboardButton/__tests__/ClipboardButton.test.js +10 -10
  10. package/dist/Common/CodeEditor/CodeEditor.js +4 -4
  11. package/dist/Common/Common.service.js +1 -1
  12. package/dist/Common/CustomInput/CustomInput.js +56 -56
  13. package/dist/Common/CustomTagSelector/PropagateTagInfo.js +22 -22
  14. package/dist/Common/CustomTagSelector/ResizableTagTextArea.js +22 -22
  15. package/dist/Common/CustomTagSelector/TagDetails.js +33 -33
  16. package/dist/Common/CustomTagSelector/TagLabelSelect.js +33 -33
  17. package/dist/Common/CustomTagSelector/TagLabelValueSelector.js +83 -83
  18. package/dist/Common/DebouncedSearch/DebouncedSearch.js +24 -24
  19. package/dist/Common/DebouncedSearch/__tests__/DebouncedSearch.test.js +16 -16
  20. package/dist/Common/DeleteComponentModal/DeleteComponent.js +49 -49
  21. package/dist/Common/DevtronProgressing/DevtronProgressing.js +2 -2
  22. package/dist/Common/Dialogs/ConfirmationDialog.js +14 -14
  23. package/dist/Common/Dialogs/DeleteDialog.js +24 -24
  24. package/dist/Common/Dialogs/DialogForm.js +21 -21
  25. package/dist/Common/Dialogs/ForceDeleteDialog.js +12 -12
  26. package/dist/Common/DraggableWrapper/DraggableButton.js +6 -6
  27. package/dist/Common/DraggableWrapper/DraggableWrapper.js +42 -1468
  28. package/dist/Common/Drawer/Drawer.js +6 -6
  29. package/dist/Common/EmptyState/EmptyState.js +19 -19
  30. package/dist/Common/EmptyState/GenericEmptyState.js +25 -25
  31. package/dist/Common/Error.js +6 -6
  32. package/dist/Common/ErrorScreenNotFound.js +3 -3
  33. package/dist/Common/Grid/Grid.js +11 -11
  34. package/dist/Common/Helper.js +3 -3
  35. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.js +1 -1
  36. package/dist/Common/ImageTags.js +224 -221
  37. package/dist/Common/InfoColorBar/InfoColourbar.js +37 -37
  38. package/dist/Common/Modals/Modal.js +8 -8
  39. package/dist/Common/Modals/OpaqueModal.js +13 -13
  40. package/dist/Common/Modals/VisibleModal.js +3 -3
  41. package/dist/Common/Modals/VisibleModal2.js +8 -8
  42. package/dist/Common/MultiSelectCustomization.js +45 -45
  43. package/dist/Common/Pagination/PageSizeSelector.js +37 -34
  44. package/dist/Common/Pagination/Pagination.js +60 -57
  45. package/dist/Common/PopupMenu.js +32 -32
  46. package/dist/Common/Progressing.js +20 -20
  47. package/dist/Common/RJSF/Form.js +14 -9877
  48. package/dist/Common/RJSF/common/FieldRow.js +16 -16
  49. package/dist/Common/RJSF/config.js +3 -3
  50. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.js +13 -13
  51. package/dist/Common/RJSF/templates/ArrayFieldTemplate.js +37 -40
  52. package/dist/Common/RJSF/templates/BaseInput.js +14 -6
  53. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.js +6 -6
  54. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.js +3 -3
  55. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.js +6 -8
  56. package/dist/Common/RJSF/templates/Description.js +6 -6
  57. package/dist/Common/RJSF/templates/Field.js +12 -15
  58. package/dist/Common/RJSF/templates/FieldErrorTemplate.js +8 -10
  59. package/dist/Common/RJSF/templates/ObjectFieldTemplate.js +35 -40
  60. package/dist/Common/RJSF/templates/TitleField.js +5 -5
  61. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.js +23 -24
  62. package/dist/Common/RJSF/templates/index.js +3 -3
  63. package/dist/Common/RJSF/utils.js +9 -12
  64. package/dist/Common/RJSF/widgets/Checkbox.js +20 -20
  65. package/dist/Common/RJSF/widgets/Select.js +609 -40
  66. package/dist/Common/RadioGroup/RadioGroup.js +32 -32
  67. package/dist/Common/RadioGroup.js +17 -17
  68. package/dist/Common/Reload.js +10 -10
  69. package/dist/Common/ResizableTextarea.js +11 -11
  70. package/dist/Common/SearchBar/SearchBar.component.js +26 -26
  71. package/dist/Common/Security/ScanVulnerabilitiesTable.js +20 -20
  72. package/dist/Common/Select/Select.js +93 -93
  73. package/dist/Common/TippyCustomized.js +4 -4
  74. package/dist/Common/ToastBody.js +22 -22
  75. package/dist/Common/Toggle/Toggle.js +15 -15
  76. package/dist/Common/index.js +3 -3
  77. package/dist/{Helper-e1262739.js → Helper-a0caa238.js} +916 -916
  78. package/dist/TippyCustomized-7b9b46b9.js +124 -0
  79. package/dist/{_commonjsHelpers-c5d32002.js → _commonjsHelpers-aeeeeb92.js} +2 -2
  80. package/dist/{cssMode-c259da7f.js → cssMode-c5cae484.js} +1 -1
  81. package/dist/{freemarker2-d852fa33.js → freemarker2-b9a8615c.js} +1 -1
  82. package/dist/{handlebars-7e868cd0.js → handlebars-3803af36.js} +1 -1
  83. package/dist/{html-1faea799.js → html-498f0150.js} +1 -1
  84. package/dist/{htmlMode-175871d9.js → htmlMode-a8ae8cc5.js} +1 -1
  85. package/dist/index.js +3 -3
  86. package/dist/{javascript-46245cbe.js → javascript-4363ced3.js} +1 -1
  87. package/dist/{jsonMode-bbe5176f.js → jsonMode-80290b9e.js} +1 -1
  88. package/dist/jsx-runtime-0dcb030c.js +667 -0
  89. package/dist/{liquid-e6b820e1.js → liquid-1398df0a.js} +1 -1
  90. package/dist/{python-7d292338.js → python-dd2d43e8.js} +1 -1
  91. package/dist/{razor-c6ab49dd.js → razor-20a66096.js} +1 -1
  92. package/dist/{react-select.esm-27b8d563.js → react-select.esm-97f26847.js} +1280 -1112
  93. package/dist/{react-toastify.esm-e28f7200.js → react-toastify.esm-1042de65.js} +149 -155
  94. package/dist/{react.esm-5465a283.js → react.esm-2c92920f.js} +4929 -4393
  95. package/dist/{tippy-react.esm-d5c56a0a.js → tippy-react.esm-8dc66a75.js} +89 -89
  96. package/dist/{tsMode-4d1329d1.js → tsMode-3fa4eb6a.js} +1 -1
  97. package/dist/{typescript-402306e6.js → typescript-1bbaf605.js} +1 -1
  98. package/dist/{xml-8975e1f9.js → xml-a2693dbd.js} +1 -1
  99. package/dist/{yaml-680c02bf.js → yaml-01ce4fdd.js} +1 -1
  100. package/package.json +3 -12
  101. package/dist/BaseInput-8101e714.js +0 -1686
  102. package/dist/Common/UseWindowSize.d.ts +0 -4
  103. package/dist/Common/UseWindowSize.js +0 -20
  104. package/dist/TippyCustomized-c58fd46a.js +0 -124
  105. package/dist/canExpand-ab1f6741.js +0 -10
  106. package/dist/englishStringTranslator-2c9a30fc.js +0 -17
  107. package/dist/enums-d0bd3f97.js +0 -6618
  108. package/dist/getSubmitButtonOptions-a1be9bb0.js +0 -20
  109. package/dist/getTemplate-91d3260d.js +0 -11
  110. package/dist/getUiOptions-844b45a7.js +0 -10
  111. package/dist/idGenerators-0b33693c.js +0 -35
  112. package/dist/index-5a231705.js +0 -17417
  113. package/dist/index-c855d89c.js +0 -173
@@ -1,12 +1,12 @@
1
- import { jsx as s, jsxs as t } from "react/jsx-runtime";
2
- import { createContext as c, Component as r } from "react";
3
- import { VisibleModal as l } from "../Modals/VisibleModal.js";
4
- import { c as a } from "../../ic-cross-0e71861d.js";
5
- import { Progressing as d } from "../Progressing.js";
6
- const i = c({ title: "", isLoading: !1, close: (o) => {
1
+ import { j as s } from "../../jsx-runtime-0dcb030c.js";
2
+ import { createContext as r, Component as n } from "react";
3
+ import { VisibleModal as a } from "../Modals/VisibleModal.js";
4
+ import { c } from "../../ic-cross-0e71861d.js";
5
+ import { Progressing as l } from "../Progressing.js";
6
+ const t = r({ title: "", isLoading: !1, close: (o) => {
7
7
  }, onSave: (o) => {
8
8
  } });
9
- class v extends r {
9
+ class x extends n {
10
10
  constructor(e) {
11
11
  super(e), this.escFunction = this.escFunction.bind(this);
12
12
  }
@@ -20,8 +20,8 @@ class v extends r {
20
20
  e.keyCode === 27 && this.props.closeOnESC && this.props.close(e);
21
21
  }
22
22
  render() {
23
- return /* @__PURE__ */ s(
24
- i.Provider,
23
+ return /* @__PURE__ */ s.jsx(
24
+ t.Provider,
25
25
  {
26
26
  value: {
27
27
  title: this.props.title,
@@ -29,20 +29,20 @@ class v extends r {
29
29
  close: this.props.close,
30
30
  onSave: this.props.onSave
31
31
  },
32
- children: /* @__PURE__ */ s(l, { className: "", children: /* @__PURE__ */ t("div", { className: `modal__body ${this.props.className || ""}`, children: [
33
- /* @__PURE__ */ t("div", { className: `modal__header ${this.props.headerClassName || ""}`, children: [
34
- /* @__PURE__ */ s("h1", { className: "modal__title", children: this.props.title }),
35
- /* @__PURE__ */ t("button", { type: "button", className: "dc__transparent", onClick: this.props.close, children: [
32
+ children: /* @__PURE__ */ s.jsx(a, { className: "", children: /* @__PURE__ */ s.jsxs("div", { className: `modal__body ${this.props.className || ""}`, children: [
33
+ /* @__PURE__ */ s.jsxs("div", { className: `modal__header ${this.props.headerClassName || ""}`, children: [
34
+ /* @__PURE__ */ s.jsx("h1", { className: "modal__title", children: this.props.title }),
35
+ /* @__PURE__ */ s.jsxs("button", { type: "button", className: "dc__transparent", onClick: this.props.close, children: [
36
36
  " ",
37
- /* @__PURE__ */ s("img", { src: a, alt: "close" })
37
+ /* @__PURE__ */ s.jsx("img", { src: c, alt: "close" })
38
38
  ] })
39
39
  ] }),
40
- /* @__PURE__ */ s(i.Consumer, { children: (e) => /* @__PURE__ */ s(
40
+ /* @__PURE__ */ s.jsx(t.Consumer, { children: (e) => /* @__PURE__ */ s.jsx(
41
41
  "form",
42
42
  {
43
43
  noValidate: !0,
44
- onSubmit: (n) => {
45
- n.preventDefault(), e.isLoading || e.onSave(n);
44
+ onSubmit: (i) => {
45
+ i.preventDefault(), e.isLoading || e.onSave(i);
46
46
  },
47
47
  children: this.props.children
48
48
  }
@@ -52,12 +52,12 @@ class v extends r {
52
52
  );
53
53
  }
54
54
  }
55
- class b extends r {
55
+ class j extends n {
56
56
  render() {
57
- return /* @__PURE__ */ s(i.Consumer, { children: (e) => /* @__PURE__ */ s("button", { type: "submit", className: "cta dc__align-right", tabIndex: this.props.tabIndex, children: e.isLoading ? /* @__PURE__ */ s(d, {}) : this.props.children }) });
57
+ return /* @__PURE__ */ s.jsx(t.Consumer, { children: (e) => /* @__PURE__ */ s.jsx("button", { type: "submit", className: "cta dc__align-right", tabIndex: this.props.tabIndex, children: e.isLoading ? /* @__PURE__ */ s.jsx(l, {}) : this.props.children }) });
58
58
  }
59
59
  }
60
60
  export {
61
- v as DialogForm,
62
- b as DialogFormSubmit
61
+ x as DialogForm,
62
+ j as DialogFormSubmit
63
63
  };
@@ -1,23 +1,23 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import { DeleteDialog as o } from "./DeleteDialog.js";
3
- function a({ onClickDelete: t, closeDeleteModal: l, forceDeleteDialogTitle: i, forceDeleteDialogMessage: c }) {
4
- return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
5
- o,
1
+ import { j as e } from "../../jsx-runtime-0dcb030c.js";
2
+ import { DeleteDialog as r } from "./DeleteDialog.js";
3
+ function d({ onClickDelete: o, closeDeleteModal: t, forceDeleteDialogTitle: i, forceDeleteDialogMessage: l }) {
4
+ return /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(
5
+ r,
6
6
  {
7
7
  title: i,
8
- delete: t,
9
- closeDelete: l,
8
+ delete: o,
9
+ closeDelete: t,
10
10
  deletePrefix: "Force ",
11
- children: /* @__PURE__ */ r(o.Description, { children: [
12
- /* @__PURE__ */ r("p", { className: "mt-12 mb-12 p-8 dc__break-word dc__window-bg", children: [
11
+ children: /* @__PURE__ */ e.jsxs(r.Description, { children: [
12
+ /* @__PURE__ */ e.jsxs("p", { className: "mt-12 mb-12 p-8 dc__break-word dc__window-bg", children: [
13
13
  "Error: ",
14
- c
14
+ l
15
15
  ] }),
16
- /* @__PURE__ */ e("p", { children: "Do you want to force delete?" })
16
+ /* @__PURE__ */ e.jsx("p", { children: "Do you want to force delete?" })
17
17
  ] })
18
18
  }
19
19
  ) });
20
20
  }
21
21
  export {
22
- a as default
22
+ d as default
23
23
  };
@@ -1,16 +1,16 @@
1
- import { jsx as l } from "react/jsx-runtime";
1
+ import { j as a } from "../../jsx-runtime-0dcb030c.js";
2
2
  import * as e from "react";
3
- const a = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M10.3335 9.33325C10.8858 9.33325 11.3335 8.88554 11.3335 8.33325C11.3335 7.78097 10.8858 7.33325 10.3335 7.33325C9.78121 7.33325 9.3335 7.78097 9.3335 8.33325C9.3335 8.88554 9.78121 9.33325 10.3335 9.33325Z", fill: "#596168" }), /* @__PURE__ */ e.createElement("path", { d: "M5.66675 9.33325C6.21903 9.33325 6.66675 8.88554 6.66675 8.33325C6.66675 7.78097 6.21903 7.33325 5.66675 7.33325C5.11446 7.33325 4.66675 7.78097 4.66675 8.33325C4.66675 8.88554 5.11446 9.33325 5.66675 9.33325Z", fill: "#596168" }), /* @__PURE__ */ e.createElement("path", { d: "M10.3335 5.33325C10.8858 5.33325 11.3335 4.88554 11.3335 4.33325C11.3335 3.78097 10.8858 3.33325 10.3335 3.33325C9.78121 3.33325 9.3335 3.78097 9.3335 4.33325C9.3335 4.88554 9.78121 5.33325 10.3335 5.33325Z", fill: "#596168" }), /* @__PURE__ */ e.createElement("path", { d: "M5.66675 5.33325C6.21903 5.33325 6.66675 4.88554 6.66675 4.33325C6.66675 3.78097 6.21903 3.33325 5.66675 3.33325C5.11446 3.33325 4.66675 3.78097 4.66675 4.33325C4.66675 4.88554 5.11446 5.33325 5.66675 5.33325Z", fill: "#596168" }), /* @__PURE__ */ e.createElement("path", { d: "M10.3335 13.3333C10.8858 13.3333 11.3335 12.8855 11.3335 12.3333C11.3335 11.781 10.8858 11.3333 10.3335 11.3333C9.78121 11.3333 9.3335 11.781 9.3335 12.3333C9.3335 12.8855 9.78121 13.3333 10.3335 13.3333Z", fill: "#596168" }), /* @__PURE__ */ e.createElement("path", { d: "M5.66675 13.3333C6.21903 13.3333 6.66675 12.8855 6.66675 12.3333C6.66675 11.781 6.21903 11.3333 5.66675 11.3333C5.11446 11.3333 4.66675 11.781 4.66675 12.3333C4.66675 12.8855 5.11446 13.3333 5.66675 13.3333Z", fill: "#596168" }));
4
- function C({ dragClassName: t }) {
5
- return /* @__PURE__ */ l(
3
+ const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M10.3335 9.33325C10.8858 9.33325 11.3335 8.88554 11.3335 8.33325C11.3335 7.78097 10.8858 7.33325 10.3335 7.33325C9.78121 7.33325 9.3335 7.78097 9.3335 8.33325C9.3335 8.88554 9.78121 9.33325 10.3335 9.33325Z", fill: "#596168" }), /* @__PURE__ */ e.createElement("path", { d: "M5.66675 9.33325C6.21903 9.33325 6.66675 8.88554 6.66675 8.33325C6.66675 7.78097 6.21903 7.33325 5.66675 7.33325C5.11446 7.33325 4.66675 7.78097 4.66675 8.33325C4.66675 8.88554 5.11446 9.33325 5.66675 9.33325Z", fill: "#596168" }), /* @__PURE__ */ e.createElement("path", { d: "M10.3335 5.33325C10.8858 5.33325 11.3335 4.88554 11.3335 4.33325C11.3335 3.78097 10.8858 3.33325 10.3335 3.33325C9.78121 3.33325 9.3335 3.78097 9.3335 4.33325C9.3335 4.88554 9.78121 5.33325 10.3335 5.33325Z", fill: "#596168" }), /* @__PURE__ */ e.createElement("path", { d: "M5.66675 5.33325C6.21903 5.33325 6.66675 4.88554 6.66675 4.33325C6.66675 3.78097 6.21903 3.33325 5.66675 3.33325C5.11446 3.33325 4.66675 3.78097 4.66675 4.33325C4.66675 4.88554 5.11446 5.33325 5.66675 5.33325Z", fill: "#596168" }), /* @__PURE__ */ e.createElement("path", { d: "M10.3335 13.3333C10.8858 13.3333 11.3335 12.8855 11.3335 12.3333C11.3335 11.781 10.8858 11.3333 10.3335 11.3333C9.78121 11.3333 9.3335 11.781 9.3335 12.3333C9.3335 12.8855 9.78121 13.3333 10.3335 13.3333Z", fill: "#596168" }), /* @__PURE__ */ e.createElement("path", { d: "M5.66675 13.3333C6.21903 13.3333 6.66675 12.8855 6.66675 12.3333C6.66675 11.781 6.21903 11.3333 5.66675 11.3333C5.11446 11.3333 4.66675 11.781 4.66675 12.3333C4.66675 12.8855 5.11446 13.3333 5.66675 13.3333Z", fill: "#596168" }));
4
+ function r({ dragClassName: t }) {
5
+ return /* @__PURE__ */ a.jsx(
6
6
  "button",
7
7
  {
8
8
  type: "button",
9
9
  className: `${t} dc__outline-none-imp dc__no-border p-0 dc__transparent h-20`,
10
- children: /* @__PURE__ */ l(a, { className: "dc__grabbable icon-dim-20 fcn-6" })
10
+ children: /* @__PURE__ */ a.jsx(l, { className: "dc__grabbable icon-dim-20 fcn-6" })
11
11
  }
12
12
  );
13
13
  }
14
14
  export {
15
- C as default
15
+ r as default
16
16
  };