@mamrp/components 1.0.29 → 1.0.31
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.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +72 -72
package/dist/index.d.mts
CHANGED
|
@@ -53,8 +53,12 @@ interface ConfirmationDialogProps$1 {
|
|
|
53
53
|
iconColor: string;
|
|
54
54
|
color: "error" | "info" | "primary" | "success" | "warning" | "secondary";
|
|
55
55
|
actionTitle: string;
|
|
56
|
+
icon: React.ReactElement<{
|
|
57
|
+
color?: string;
|
|
58
|
+
size?: number;
|
|
59
|
+
}>;
|
|
56
60
|
}
|
|
57
|
-
declare function ConfirmationDialog$1({ open, handleClose, callback, callbackParams, headerText, bodyText, isLoading, maxWidth, iconColor, color, actionTitle, }: ConfirmationDialogProps$1): React.JSX.Element;
|
|
61
|
+
declare function ConfirmationDialog$1({ open, handleClose, callback, callbackParams, headerText, bodyText, isLoading, maxWidth, iconColor, color, actionTitle, icon, }: ConfirmationDialogProps$1): React.JSX.Element;
|
|
58
62
|
|
|
59
63
|
interface CustomTimePickerProps {
|
|
60
64
|
name: string;
|
|
@@ -221,7 +225,7 @@ type TapleProps = {
|
|
|
221
225
|
sortFieldMapping?: {
|
|
222
226
|
[key: string]: string;
|
|
223
227
|
};
|
|
224
|
-
setsortQuery?:
|
|
228
|
+
setsortQuery?: Dispatch<SetStateAction<any | null>>;
|
|
225
229
|
sortQuery?: any;
|
|
226
230
|
fontSize?: number | string;
|
|
227
231
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -53,8 +53,12 @@ interface ConfirmationDialogProps$1 {
|
|
|
53
53
|
iconColor: string;
|
|
54
54
|
color: "error" | "info" | "primary" | "success" | "warning" | "secondary";
|
|
55
55
|
actionTitle: string;
|
|
56
|
+
icon: React.ReactElement<{
|
|
57
|
+
color?: string;
|
|
58
|
+
size?: number;
|
|
59
|
+
}>;
|
|
56
60
|
}
|
|
57
|
-
declare function ConfirmationDialog$1({ open, handleClose, callback, callbackParams, headerText, bodyText, isLoading, maxWidth, iconColor, color, actionTitle, }: ConfirmationDialogProps$1): React.JSX.Element;
|
|
61
|
+
declare function ConfirmationDialog$1({ open, handleClose, callback, callbackParams, headerText, bodyText, isLoading, maxWidth, iconColor, color, actionTitle, icon, }: ConfirmationDialogProps$1): React.JSX.Element;
|
|
58
62
|
|
|
59
63
|
interface CustomTimePickerProps {
|
|
60
64
|
name: string;
|
|
@@ -221,7 +225,7 @@ type TapleProps = {
|
|
|
221
225
|
sortFieldMapping?: {
|
|
222
226
|
[key: string]: string;
|
|
223
227
|
};
|
|
224
|
-
setsortQuery?:
|
|
228
|
+
setsortQuery?: Dispatch<SetStateAction<any | null>>;
|
|
225
229
|
sortQuery?: any;
|
|
226
230
|
fontSize?: number | string;
|
|
227
231
|
};
|
package/dist/index.js
CHANGED
|
@@ -881,7 +881,8 @@ function ConfirmationDialog({
|
|
|
881
881
|
maxWidth,
|
|
882
882
|
iconColor,
|
|
883
883
|
color,
|
|
884
|
-
actionTitle
|
|
884
|
+
actionTitle,
|
|
885
|
+
icon = /* @__PURE__ */ React7.createElement(import_go.GoTrash, null)
|
|
885
886
|
}) {
|
|
886
887
|
const isMobile = (0, import_material7.useMediaQuery)("(max-width:785px)");
|
|
887
888
|
return /* @__PURE__ */ React7.createElement(import_Dialog2.default, { open, onClose: handleClose, fullWidth: true, maxWidth }, /* @__PURE__ */ React7.createElement(import_material7.Box, null, /* @__PURE__ */ React7.createElement(
|
|
@@ -893,7 +894,11 @@ function ConfirmationDialog({
|
|
|
893
894
|
alignItems: "center",
|
|
894
895
|
gap: 1
|
|
895
896
|
},
|
|
896
|
-
|
|
897
|
+
React7.cloneElement(icon, {
|
|
898
|
+
...icon.props,
|
|
899
|
+
color: iconColor,
|
|
900
|
+
size: isMobile ? 18 : 20
|
|
901
|
+
}),
|
|
897
902
|
headerText
|
|
898
903
|
), /* @__PURE__ */ React7.createElement(
|
|
899
904
|
import_material7.IconButton,
|
|
@@ -948,7 +953,7 @@ function ConfirmationDialog({
|
|
|
948
953
|
variant: "contained",
|
|
949
954
|
color,
|
|
950
955
|
sx: { minWidth: "120px" },
|
|
951
|
-
startIcon: isLoading ? /* @__PURE__ */ React7.createElement(import_material7.CircularProgress, { sx: { color: "white" }, size: 20 }) :
|
|
956
|
+
startIcon: isLoading ? /* @__PURE__ */ React7.createElement(import_material7.CircularProgress, { sx: { color: "white" }, size: 20 }) : React7.cloneElement(icon, { size: 16 })
|
|
952
957
|
},
|
|
953
958
|
actionTitle
|
|
954
959
|
),
|