@mamrp/components 1.0.46 → 1.0.48
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/charts/index.js.map +1 -1
- package/dist/charts/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +88 -77
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +88 -77
- package/dist/index.mjs.map +1 -1
- package/dist/selectors/index.js.map +1 -1
- package/dist/selectors/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -829,90 +829,100 @@ function ConfirmationDialog({
|
|
|
829
829
|
icon = /* @__PURE__ */ React7.createElement(GoTrash, null)
|
|
830
830
|
}) {
|
|
831
831
|
const isMobile = useMediaQuery("(max-width:785px)");
|
|
832
|
-
return /* @__PURE__ */ React7.createElement(
|
|
833
|
-
|
|
832
|
+
return /* @__PURE__ */ React7.createElement(
|
|
833
|
+
Dialog2,
|
|
834
834
|
{
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
},
|
|
841
|
-
React7.cloneElement(icon, {
|
|
842
|
-
...icon.props,
|
|
843
|
-
color: iconColor,
|
|
844
|
-
size: isMobile ? 18 : 20
|
|
845
|
-
}),
|
|
846
|
-
headerText
|
|
847
|
-
), /* @__PURE__ */ React7.createElement(
|
|
848
|
-
IconButton2,
|
|
849
|
-
{
|
|
850
|
-
"aria-label": "close",
|
|
851
|
-
onClick: handleClose,
|
|
852
|
-
sx: {
|
|
853
|
-
position: "absolute",
|
|
854
|
-
right: 8,
|
|
855
|
-
top: 8,
|
|
856
|
-
color: (theme2) => theme2.palette.grey[500]
|
|
857
|
-
}
|
|
858
|
-
},
|
|
859
|
-
/* @__PURE__ */ React7.createElement(MdClose, null)
|
|
860
|
-
), /* @__PURE__ */ React7.createElement(Divider, null), /* @__PURE__ */ React7.createElement(
|
|
861
|
-
DialogContent2,
|
|
862
|
-
{
|
|
863
|
-
sx: {
|
|
864
|
-
px: isMobile ? 2 : 3,
|
|
865
|
-
py: isMobile ? 1.5 : 2,
|
|
866
|
-
"& .MuiTypography-root": {
|
|
867
|
-
fontSize: isMobile ? "0.875rem" : "1rem",
|
|
868
|
-
lineHeight: isMobile ? 1.5 : 1.6,
|
|
869
|
-
gap: isMobile ? "2px" : "4px",
|
|
870
|
-
flexWrap: "wrap",
|
|
871
|
-
wordBreak: "break-word",
|
|
872
|
-
overflowWrap: "break-word",
|
|
873
|
-
whiteSpace: "normal"
|
|
874
|
-
}
|
|
875
|
-
}
|
|
835
|
+
open,
|
|
836
|
+
onClose: handleClose,
|
|
837
|
+
fullWidth: true,
|
|
838
|
+
maxWidth,
|
|
839
|
+
disableScrollLock: true
|
|
876
840
|
},
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
841
|
+
/* @__PURE__ */ React7.createElement(Box5, null, /* @__PURE__ */ React7.createElement(
|
|
842
|
+
DialogTitle2,
|
|
843
|
+
{
|
|
844
|
+
fontWeight: 700,
|
|
845
|
+
fontSize: "1.2rem",
|
|
882
846
|
display: "flex",
|
|
883
|
-
justifyContent: "flex-end",
|
|
884
|
-
width: "100%",
|
|
885
|
-
gap: "12px",
|
|
886
847
|
alignItems: "center",
|
|
887
|
-
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
848
|
+
gap: 1
|
|
849
|
+
},
|
|
850
|
+
React7.cloneElement(icon, {
|
|
851
|
+
...icon.props,
|
|
852
|
+
color: iconColor,
|
|
853
|
+
size: isMobile ? 18 : 20
|
|
854
|
+
}),
|
|
855
|
+
headerText
|
|
856
|
+
), /* @__PURE__ */ React7.createElement(
|
|
857
|
+
IconButton2,
|
|
892
858
|
{
|
|
859
|
+
"aria-label": "close",
|
|
893
860
|
onClick: handleClose,
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
861
|
+
sx: {
|
|
862
|
+
position: "absolute",
|
|
863
|
+
right: 8,
|
|
864
|
+
top: 8,
|
|
865
|
+
color: (theme2) => theme2.palette.grey[500]
|
|
866
|
+
}
|
|
898
867
|
},
|
|
899
|
-
|
|
900
|
-
),
|
|
901
|
-
|
|
902
|
-
Button3,
|
|
868
|
+
/* @__PURE__ */ React7.createElement(MdClose, null)
|
|
869
|
+
), /* @__PURE__ */ React7.createElement(Divider, null), /* @__PURE__ */ React7.createElement(
|
|
870
|
+
DialogContent2,
|
|
903
871
|
{
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
872
|
+
sx: {
|
|
873
|
+
px: isMobile ? 2 : 3,
|
|
874
|
+
py: isMobile ? 1.5 : 2,
|
|
875
|
+
"& .MuiTypography-root": {
|
|
876
|
+
fontSize: isMobile ? "0.875rem" : "1rem",
|
|
877
|
+
lineHeight: isMobile ? 1.5 : 1.6,
|
|
878
|
+
gap: isMobile ? "2px" : "4px",
|
|
879
|
+
flexWrap: "wrap",
|
|
880
|
+
wordBreak: "break-word",
|
|
881
|
+
overflowWrap: "break-word",
|
|
882
|
+
whiteSpace: "normal"
|
|
883
|
+
}
|
|
884
|
+
}
|
|
912
885
|
},
|
|
913
|
-
|
|
914
|
-
)
|
|
915
|
-
|
|
886
|
+
bodyText
|
|
887
|
+
), /* @__PURE__ */ React7.createElement(
|
|
888
|
+
DialogActions,
|
|
889
|
+
{
|
|
890
|
+
sx: {
|
|
891
|
+
display: "flex",
|
|
892
|
+
justifyContent: "flex-end",
|
|
893
|
+
width: "100%",
|
|
894
|
+
gap: "12px",
|
|
895
|
+
alignItems: "center",
|
|
896
|
+
padding: 3
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
/* @__PURE__ */ React7.createElement(
|
|
900
|
+
Button3,
|
|
901
|
+
{
|
|
902
|
+
onClick: handleClose,
|
|
903
|
+
variant: "outlined",
|
|
904
|
+
color,
|
|
905
|
+
startIcon: /* @__PURE__ */ React7.createElement(MdOutlineCancel, { size: 15 }),
|
|
906
|
+
sx: { minWidth: "120px" }
|
|
907
|
+
},
|
|
908
|
+
"\u0627\u0646\u0635\u0631\u0627\u0641"
|
|
909
|
+
),
|
|
910
|
+
/* @__PURE__ */ React7.createElement(
|
|
911
|
+
Button3,
|
|
912
|
+
{
|
|
913
|
+
disabled: isLoading,
|
|
914
|
+
onClick: () => {
|
|
915
|
+
callback(callbackParams);
|
|
916
|
+
},
|
|
917
|
+
variant: "contained",
|
|
918
|
+
color,
|
|
919
|
+
sx: { minWidth: "120px" },
|
|
920
|
+
startIcon: isLoading ? /* @__PURE__ */ React7.createElement(CircularProgress, { sx: { color: "white" }, size: 20 }) : React7.cloneElement(icon, { size: 16 })
|
|
921
|
+
},
|
|
922
|
+
actionTitle
|
|
923
|
+
)
|
|
924
|
+
))
|
|
925
|
+
);
|
|
916
926
|
}
|
|
917
927
|
|
|
918
928
|
// src/custom-time-picker/index.tsx
|
|
@@ -1206,7 +1216,8 @@ var JalaliDatePicker = ({
|
|
|
1206
1216
|
isLoading,
|
|
1207
1217
|
maxDate,
|
|
1208
1218
|
minDate,
|
|
1209
|
-
clear = true
|
|
1219
|
+
clear = true,
|
|
1220
|
+
views
|
|
1210
1221
|
}) => {
|
|
1211
1222
|
const today = moment();
|
|
1212
1223
|
const [open, setOpen] = useState4(false);
|
|
@@ -1251,7 +1262,7 @@ var JalaliDatePicker = ({
|
|
|
1251
1262
|
disabled: isLoading || disabled,
|
|
1252
1263
|
closeOnSelect: false,
|
|
1253
1264
|
openTo: "day",
|
|
1254
|
-
views: ["year", "month", "day"],
|
|
1265
|
+
views: views ?? ["year", "month", "day"],
|
|
1255
1266
|
label,
|
|
1256
1267
|
value: field.value ? moment(field.value) : null,
|
|
1257
1268
|
slotProps: {
|