@mamrp/components 1.7.10 → 1.7.12

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
@@ -1469,7 +1469,7 @@ var JalaliDatePicker = ({
1469
1469
  IconButton4,
1470
1470
  {
1471
1471
  onClick: () => props.onMonthChange(
1472
- props.currentMonth.clone().subtract(1, "month"),
1472
+ props.currentMonth.clone().subtract(1, "jmonth"),
1473
1473
  "left"
1474
1474
  ),
1475
1475
  title: "\u0645\u0627\u0647 \u0642\u0628\u0644"
@@ -1492,7 +1492,7 @@ var JalaliDatePicker = ({
1492
1492
  IconButton4,
1493
1493
  {
1494
1494
  onClick: () => props.onMonthChange(
1495
- props.currentMonth.clone().add(1, "month"),
1495
+ props.currentMonth.clone().add(1, "jmonth"),
1496
1496
  "right"
1497
1497
  ),
1498
1498
  title: "\u0645\u0627\u0647 \u0628\u0639\u062F"
@@ -5253,11 +5253,17 @@ function CustomDialog({
5253
5253
  actions,
5254
5254
  isSubmiting = false
5255
5255
  }) {
5256
+ const handleClose = (event, reason) => {
5257
+ if (isSubmiting) {
5258
+ return;
5259
+ }
5260
+ onClose();
5261
+ };
5256
5262
  return /* @__PURE__ */ React.createElement(
5257
5263
  Dialog7,
5258
5264
  {
5259
5265
  open,
5260
- onClose,
5266
+ onClose: handleClose,
5261
5267
  maxWidth,
5262
5268
  fullWidth,
5263
5269
  PaperComponent: DraggablePaper,