@devtron-labs/devtron-fe-common-lib 0.0.51-beta-4 → 0.0.52-beta-1

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 (68) hide show
  1. package/dist/{CodeEditor-a1233daa.js → CodeEditor-68cd2e5b.js} +21 -21
  2. package/dist/Common/Api.js +13 -13
  3. package/dist/Common/BreadCrumb/BreadCrumb.js +1 -1
  4. package/dist/Common/ChartVersionAndTypeSelector.d.ts +3 -0
  5. package/dist/Common/ChartVersionAndTypeSelector.js +61 -0
  6. package/dist/Common/ClipboardButton/ClipboardButton.js +1 -1
  7. package/dist/Common/CodeEditor/CodeEditor.js +2 -2
  8. package/dist/Common/Common.service.d.ts +1 -0
  9. package/dist/Common/Common.service.js +32 -28
  10. package/dist/Common/Constants.d.ts +3 -1
  11. package/dist/Common/Constants.js +9 -6
  12. package/dist/Common/CustomTagSelector/PropagateTagInfo.js +1 -1
  13. package/dist/Common/CustomTagSelector/ResizableTagTextArea.js +1 -1
  14. package/dist/Common/CustomTagSelector/TagDetails.js +1 -1
  15. package/dist/Common/CustomTagSelector/TagLabelValueSelector.js +1 -1
  16. package/dist/Common/DeleteComponentModal/DeleteComponent.js +1 -1
  17. package/dist/Common/DraggableWrapper/DraggableButton.d.ts +3 -0
  18. package/dist/Common/DraggableWrapper/DraggableButton.js +16 -0
  19. package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +9 -0
  20. package/dist/Common/DraggableWrapper/DraggableWrapper.js +1499 -0
  21. package/dist/Common/DraggableWrapper/index.d.ts +3 -0
  22. package/dist/Common/DraggableWrapper/index.js +8 -0
  23. package/dist/Common/DraggableWrapper/types.d.ts +23 -0
  24. package/dist/Common/DraggableWrapper/types.js +4 -0
  25. package/dist/Common/Grid/Grid.d.ts +1 -1
  26. package/dist/Common/Grid/Grid.js +19 -10
  27. package/dist/Common/Grid/types.d.ts +2 -2
  28. package/dist/Common/Helper.d.ts +9 -0
  29. package/dist/Common/Helper.js +24 -20
  30. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.js +1 -1
  31. package/dist/Common/Hooks/UseWindowSize/UseWindowSize.d.ts +4 -0
  32. package/dist/Common/Hooks/UseWindowSize/UseWindowSize.js +17 -0
  33. package/dist/Common/Hooks/index.d.ts +1 -0
  34. package/dist/Common/Hooks/index.js +6 -4
  35. package/dist/Common/ImageTags.js +3 -3
  36. package/dist/Common/MultiSelectCustomization.js +1 -1
  37. package/dist/Common/RJSF/widgets/Select.js +1 -1
  38. package/dist/Common/RadioGroup/RadioGroup.js +1 -1
  39. package/dist/Common/ResizableTextarea.js +1 -1
  40. package/dist/Common/Select/Select.js +1 -1
  41. package/dist/Common/TippyCustomized.js +2 -2
  42. package/dist/Common/ToastBody.js +1 -1
  43. package/dist/Common/Toggle/Toggle.js +1 -1
  44. package/dist/Common/Types.d.ts +64 -0
  45. package/dist/Common/index.d.ts +2 -0
  46. package/dist/Common/index.js +206 -190
  47. package/dist/Helper-1f1cf2ba.js +9824 -0
  48. package/dist/{TippyCustomized-b4379006.js → TippyCustomized-0d0b9a6f.js} +1 -1
  49. package/dist/{cssMode-a1869154.js → cssMode-7289250b.js} +1 -1
  50. package/dist/{freemarker2-51e1c403.js → freemarker2-3b903d5b.js} +1 -1
  51. package/dist/{handlebars-91940b5d.js → handlebars-702717e9.js} +1 -1
  52. package/dist/{html-f466e610.js → html-9a684e15.js} +1 -1
  53. package/dist/{htmlMode-1f121ca6.js → htmlMode-3e336aa8.js} +1 -1
  54. package/dist/index-c855d89c.js +173 -0
  55. package/dist/index.js +206 -190
  56. package/dist/{javascript-c8bf1ba9.js → javascript-101cb9b7.js} +1 -1
  57. package/dist/{jsonMode-d03e0315.js → jsonMode-006d8be9.js} +1 -1
  58. package/dist/{liquid-8f190965.js → liquid-729ea99d.js} +1 -1
  59. package/dist/{python-89c90f80.js → python-c9b92f72.js} +1 -1
  60. package/dist/{razor-3889a56a.js → razor-c48ef378.js} +1 -1
  61. package/dist/{react-select.esm-a99b516e.js → react-select.esm-fa95915b.js} +1111 -1279
  62. package/dist/{react-toastify.esm-f2ac8a63.js → react-toastify.esm-e28f7200.js} +162 -156
  63. package/dist/{tsMode-a6b9a239.js → tsMode-da78a323.js} +1 -1
  64. package/dist/{typescript-f36342d1.js → typescript-bd6d35ce.js} +1 -1
  65. package/dist/{xml-20660057.js → xml-828eca7a.js} +1 -1
  66. package/dist/{yaml-b321e220.js → yaml-89980d67.js} +1 -1
  67. package/package.json +5 -2
  68. package/dist/Helper-e95e2932.js +0 -8839
@@ -0,0 +1,16 @@
1
+ import { jsx as l } from "react/jsx-runtime";
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(
6
+ "button",
7
+ {
8
+ type: "button",
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" })
11
+ }
12
+ );
13
+ }
14
+ export {
15
+ C as default
16
+ };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { DraggableWrapperProps } from './types';
3
+ /**
4
+ * TODO: import it as lazy, after it is supported in common
5
+ * 1. If using react select please use menuPlacement='auto'
6
+ * 2. dragSelector will be used to identify the grabbable button that will grab the div to drag
7
+ * 3. parentRef is the reference point from which we will derive the base top:0 ,left: 0 position
8
+ */
9
+ export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, }: DraggableWrapperProps): JSX.Element;