@mamrp/components 1.0.49 → 1.2.0

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.
package/dist/index.mjs CHANGED
@@ -3919,6 +3919,29 @@ var ConnectToBasculeButton = ({
3919
3919
  ));
3920
3920
  };
3921
3921
  var bascule_connection_button_default = ConnectToBasculeButton;
3922
+
3923
+ // src/draggable-paper/index.tsx
3924
+ import { Paper } from "@mui/material";
3925
+ import { useRef as useRef5 } from "react";
3926
+ import Draggable from "react-draggable";
3927
+ function DraggablePaper({
3928
+ handle = "#draggable-dialog",
3929
+ cancel = '[class*="MuiDialogContent-root"]',
3930
+ ...props
3931
+ }) {
3932
+ const nodeRef = useRef5(null);
3933
+ return /* @__PURE__ */ React.createElement(
3934
+ Draggable,
3935
+ {
3936
+ nodeRef,
3937
+ handle,
3938
+ cancel,
3939
+ bounds: "parent",
3940
+ defaultPosition: { x: 0, y: 0 }
3941
+ },
3942
+ /* @__PURE__ */ React.createElement(Paper, { ref: nodeRef, ...props })
3943
+ );
3944
+ }
3922
3945
  export {
3923
3946
  Page as Accordion,
3924
3947
  AdvancedSearchButton,
@@ -3931,6 +3954,7 @@ export {
3931
3954
  date_picker_default as DatePicker,
3932
3955
  date_time_picker_default as DateTimePicker,
3933
3956
  date_time_range_picker_default as DateTimeRangePicker,
3957
+ DraggablePaper,
3934
3958
  number_type_default as FormInputNumber,
3935
3959
  text_type_default as FormInputText,
3936
3960
  HorizontalStepper,