@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.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1031,6 +1031,14 @@ function ConfirmationDialog({
|
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
1033
|
|
|
1034
|
+
// src/custom-date-time-picker/index.tsx
|
|
1035
|
+
var import_common = require("@mamrp/icons/common");
|
|
1036
|
+
var import_material11 = require("@mui/material");
|
|
1037
|
+
var import_moment_jalaali = __toESM(require("moment-jalaali"));
|
|
1038
|
+
var import_react9 = require("react");
|
|
1039
|
+
var import_react_hook_form3 = require("react-hook-form");
|
|
1040
|
+
var import_md2 = require("react-icons/md");
|
|
1041
|
+
|
|
1034
1042
|
// src/draggable-paper/index.tsx
|
|
1035
1043
|
var import_material10 = require("@mui/material");
|
|
1036
1044
|
var import_react8 = require("react");
|
|
@@ -1055,12 +1063,6 @@ function DraggablePaper({
|
|
|
1055
1063
|
}
|
|
1056
1064
|
|
|
1057
1065
|
// src/custom-date-time-picker/index.tsx
|
|
1058
|
-
var import_common = require("@mamrp/icons/common");
|
|
1059
|
-
var import_material11 = require("@mui/material");
|
|
1060
|
-
var import_moment_jalaali = __toESM(require("moment-jalaali"));
|
|
1061
|
-
var import_react9 = require("react");
|
|
1062
|
-
var import_react_hook_form3 = require("react-hook-form");
|
|
1063
|
-
var import_md2 = require("react-icons/md");
|
|
1064
1066
|
import_moment_jalaali.default.loadPersian({ usePersianDigits: false, dialect: "persian-modern" });
|
|
1065
1067
|
var PERSIAN_MONTHS = [
|
|
1066
1068
|
"\u0641\u0631\u0648\u0631\u062F\u06CC\u0646",
|
|
@@ -1371,9 +1373,9 @@ var DateTimePickerComponent = ({
|
|
|
1371
1373
|
const m = (0, import_moment_jalaali.default)(value);
|
|
1372
1374
|
if (!m.isValid()) return "";
|
|
1373
1375
|
if (showTime) {
|
|
1374
|
-
return toPersianDigits(m.format("
|
|
1376
|
+
return toPersianDigits(m.format("jYYYY/jM/jD - HH:mm"));
|
|
1375
1377
|
}
|
|
1376
|
-
return toPersianDigits(m.format("
|
|
1378
|
+
return toPersianDigits(m.format("jYYYY/jM/jD"));
|
|
1377
1379
|
}, [value, showTime]);
|
|
1378
1380
|
const isSelected = (day) => {
|
|
1379
1381
|
return selectedDate.day === day && selectedDate.month === viewMonth && selectedDate.year === viewYear;
|