@mamrp/components 1.0.5 → 1.0.6
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.js +3 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -536,7 +536,6 @@ function MultipleSelectChip({
|
|
|
536
536
|
].filter(Boolean);
|
|
537
537
|
const [selectedValues, setSelectedValues] = React3.useState([]);
|
|
538
538
|
const handleChange = (event, value, onChange) => {
|
|
539
|
-
console.log(value);
|
|
540
539
|
if (multipleitems) {
|
|
541
540
|
if (value.some((item) => item.title === "\u0627\u0646\u062A\u062E\u0627\u0628 \u0647\u0645\u0647")) {
|
|
542
541
|
const allItems = [...dataOptions];
|
|
@@ -1223,7 +1222,9 @@ var JalaliDatePicker = ({
|
|
|
1223
1222
|
style: { color: error ? "#D32F2F" : "inherit" }
|
|
1224
1223
|
},
|
|
1225
1224
|
InputProps: {
|
|
1226
|
-
...isLoading && {
|
|
1225
|
+
...isLoading && {
|
|
1226
|
+
endAdornment: /* @__PURE__ */ React8.createElement(CircularProgress, { color: "secondary", size: 20 })
|
|
1227
|
+
} || disabled && { endAdornment: false },
|
|
1227
1228
|
...field.value && {
|
|
1228
1229
|
value: persian ? `${moment(field.value).format("dddd - jDD/jMMMM/jYYYY")}` : `${moment(field.value).format("jYYYY/jMM/jDD")}`
|
|
1229
1230
|
},
|
|
@@ -1253,10 +1254,6 @@ var JalaliDatePicker = ({
|
|
|
1253
1254
|
let iranHour = nowUTC3.getUTCHours();
|
|
1254
1255
|
let iranMinute = nowUTC3.getUTCMinutes();
|
|
1255
1256
|
const dateTimeWithIranTime4 = currentDate.hour(iranHour).minute(iranMinute).second(nowUTC3.getUTCSeconds());
|
|
1256
|
-
console.log(
|
|
1257
|
-
currentDate.format("YYYY-MM-DDTHH:mm:ss"),
|
|
1258
|
-
dateTimeWithIranTime4.format("YYYY-MM-DDTHH:mm:ss")
|
|
1259
|
-
);
|
|
1260
1257
|
field.onChange(
|
|
1261
1258
|
dateTimeWithIranTime4.format("YYYY-MM-DDTHH:mm:ss")
|
|
1262
1259
|
);
|
|
@@ -3460,12 +3457,8 @@ var UploadImage = ({
|
|
|
3460
3457
|
const handleImageChange = async (event, source) => {
|
|
3461
3458
|
const file = event.target.files?.[0];
|
|
3462
3459
|
if (file) {
|
|
3463
|
-
console.log(`Original File Size: ${(file.size / 1024).toFixed(2)} KB`);
|
|
3464
3460
|
const compressedFile = await compressImage(file);
|
|
3465
3461
|
if (compressedFile) {
|
|
3466
|
-
console.log(
|
|
3467
|
-
`Compressed File Size: ${(compressedFile.size / 1024).toFixed(2)} KB`
|
|
3468
|
-
);
|
|
3469
3462
|
const objectURL = URL.createObjectURL(compressedFile);
|
|
3470
3463
|
setSelectedImage(objectURL);
|
|
3471
3464
|
setValue(name, compressedFile);
|