@mamrp/components 1.0.30 → 1.0.32

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
@@ -825,7 +825,8 @@ function ConfirmationDialog({
825
825
  maxWidth,
826
826
  iconColor,
827
827
  color,
828
- actionTitle
828
+ actionTitle,
829
+ icon = /* @__PURE__ */ React7.createElement(GoTrash, null)
829
830
  }) {
830
831
  const isMobile = useMediaQuery("(max-width:785px)");
831
832
  return /* @__PURE__ */ React7.createElement(Dialog2, { open, onClose: handleClose, fullWidth: true, maxWidth }, /* @__PURE__ */ React7.createElement(Box5, null, /* @__PURE__ */ React7.createElement(
@@ -837,7 +838,11 @@ function ConfirmationDialog({
837
838
  alignItems: "center",
838
839
  gap: 1
839
840
  },
840
- /* @__PURE__ */ React7.createElement(GoTrash, { style: { color: iconColor }, size: isMobile ? 18 : 20 }),
841
+ React7.cloneElement(icon, {
842
+ ...icon.props,
843
+ color: iconColor,
844
+ size: isMobile ? 18 : 20
845
+ }),
841
846
  headerText
842
847
  ), /* @__PURE__ */ React7.createElement(
843
848
  IconButton2,
@@ -892,7 +897,7 @@ function ConfirmationDialog({
892
897
  variant: "contained",
893
898
  color,
894
899
  sx: { minWidth: "120px" },
895
- startIcon: isLoading ? /* @__PURE__ */ React7.createElement(CircularProgress, { sx: { color: "white" }, size: 20 }) : /* @__PURE__ */ React7.createElement(GoTrash, { size: 16 })
900
+ startIcon: isLoading ? /* @__PURE__ */ React7.createElement(CircularProgress, { sx: { color: "white" }, size: 20 }) : React7.cloneElement(icon, { size: 16 })
896
901
  },
897
902
  actionTitle
898
903
  ),