@mamrp/components 1.7.57 → 1.7.59

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
@@ -970,29 +970,6 @@ function ConfirmationDialog({
970
970
  );
971
971
  }
972
972
 
973
- // src/draggable-paper/index.tsx
974
- import { Paper } from "@mui/material";
975
- import { useRef as useRef3 } from "react";
976
- import Draggable from "react-draggable";
977
- function DraggablePaper({
978
- handle = "#draggable-dialog",
979
- cancel = '[class*="MuiDialogContent-root"]',
980
- ...props
981
- }) {
982
- const nodeRef = useRef3(null);
983
- return /* @__PURE__ */ React.createElement(
984
- Draggable,
985
- {
986
- nodeRef,
987
- handle,
988
- cancel,
989
- bounds: "parent",
990
- defaultPosition: { x: 0, y: 0 }
991
- },
992
- /* @__PURE__ */ React.createElement(Paper, { ref: nodeRef, ...props })
993
- );
994
- }
995
-
996
973
  // src/custom-date-time-picker/index.tsx
997
974
  import { Calendar } from "@mamrp/icons/common";
998
975
  import {
@@ -1018,6 +995,31 @@ import {
1018
995
  MdClose as MdClose2,
1019
996
  MdOutlineClear
1020
997
  } from "react-icons/md";
998
+
999
+ // src/draggable-paper/index.tsx
1000
+ import { Paper } from "@mui/material";
1001
+ import { useRef as useRef3 } from "react";
1002
+ import Draggable from "react-draggable";
1003
+ function DraggablePaper({
1004
+ handle = "#draggable-dialog",
1005
+ cancel = '[class*="MuiDialogContent-root"]',
1006
+ ...props
1007
+ }) {
1008
+ const nodeRef = useRef3(null);
1009
+ return /* @__PURE__ */ React.createElement(
1010
+ Draggable,
1011
+ {
1012
+ nodeRef,
1013
+ handle,
1014
+ cancel,
1015
+ bounds: "parent",
1016
+ defaultPosition: { x: 0, y: 0 }
1017
+ },
1018
+ /* @__PURE__ */ React.createElement(Paper, { ref: nodeRef, ...props })
1019
+ );
1020
+ }
1021
+
1022
+ // src/custom-date-time-picker/index.tsx
1021
1023
  moment.loadPersian({ usePersianDigits: false, dialect: "persian-modern" });
1022
1024
  var PERSIAN_MONTHS = [
1023
1025
  "\u0641\u0631\u0648\u0631\u062F\u06CC\u0646",
@@ -1328,9 +1330,9 @@ var DateTimePickerComponent = ({
1328
1330
  const m = moment(value);
1329
1331
  if (!m.isValid()) return "";
1330
1332
  if (showTime) {
1331
- return toPersianDigits(m.format("jYY/jM/jD - HH:mm"));
1333
+ return toPersianDigits(m.format("jYYYY/jM/jD - HH:mm"));
1332
1334
  }
1333
- return toPersianDigits(m.format("jYY/jM/jD"));
1335
+ return toPersianDigits(m.format("jYYYY/jM/jD"));
1334
1336
  }, [value, showTime]);
1335
1337
  const isSelected = (day) => {
1336
1338
  return selectedDate.day === day && selectedDate.month === viewMonth && selectedDate.year === viewYear;