@mamrp/components 1.7.7 → 1.7.9

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
@@ -5232,6 +5232,7 @@ var data_table_default = DataTable;
5232
5232
  import {
5233
5233
  Box as Box24,
5234
5234
  Dialog as Dialog7,
5235
+ DialogActions as DialogActions4,
5235
5236
  DialogContent as DialogContent6,
5236
5237
  DialogTitle as DialogTitle6,
5237
5238
  Divider as Divider4,
@@ -5248,7 +5249,9 @@ function CustomDialog({
5248
5249
  onClose,
5249
5250
  maxWidth = "sm",
5250
5251
  fullWidth = true,
5251
- children
5252
+ children,
5253
+ actions,
5254
+ isSubmiting = false
5252
5255
  }) {
5253
5256
  return /* @__PURE__ */ React.createElement(
5254
5257
  Dialog7,
@@ -5316,12 +5319,14 @@ function CustomDialog({
5316
5319
  right: 8,
5317
5320
  top: 8,
5318
5321
  color: (theme3) => theme3.palette.grey[500]
5319
- }
5322
+ },
5323
+ disabled: isSubmiting
5320
5324
  },
5321
5325
  /* @__PURE__ */ React.createElement(MdClose5, null)
5322
5326
  )),
5323
5327
  /* @__PURE__ */ React.createElement(Divider4, null),
5324
- /* @__PURE__ */ React.createElement(DialogContent6, null, children)
5328
+ /* @__PURE__ */ React.createElement(DialogContent6, null, children),
5329
+ actions && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(DialogActions4, null, actions))
5325
5330
  );
5326
5331
  }
5327
5332
  export {