@mamrp/components 1.4.11 → 1.4.13

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
@@ -638,6 +638,7 @@ function MultipleSelectChip({
638
638
  inputRef: ref,
639
639
  variant,
640
640
  placeholder,
641
+ InputLabelProps: { shrink: true },
641
642
  InputProps: {
642
643
  ...params.InputProps,
643
644
  endAdornment: /* @__PURE__ */ React3.createElement(React3.Fragment, null, isLoading ? /* @__PURE__ */ React3.createElement(CircularProgress, { color: "primary", size: 20 }) : null, params.InputProps.endAdornment)
@@ -1171,6 +1172,7 @@ import { AdapterMomentJalaali } from "@mui/x-date-pickers/AdapterMomentJalaali";
1171
1172
  import dayjs from "dayjs";
1172
1173
  import moment from "moment-jalaali";
1173
1174
  import React8, { useState as useState4 } from "react";
1175
+ import "moment/locale/fa";
1174
1176
  import { Controller as Controller4 } from "react-hook-form";
1175
1177
  import { MdChevronLeft, MdChevronRight } from "react-icons/md";
1176
1178
  moment.locale("fa");
@@ -1965,6 +1967,7 @@ import { AdapterMomentJalaali as AdapterMomentJalaali4 } from "@mui/x-date-picke
1965
1967
  import dayjs2 from "dayjs";
1966
1968
  import moment6 from "moment-jalaali";
1967
1969
  import React12 from "react";
1970
+ import "moment/locale/fa";
1968
1971
  import { Controller as Controller6 } from "react-hook-form";
1969
1972
  moment6.locale("fa");
1970
1973
  moment6.loadPersian({ dialect: "persian-modern", usePersianDigits: true });
@@ -2173,7 +2176,7 @@ import Dialog4 from "@mui/material/Dialog";
2173
2176
  import DialogContent4 from "@mui/material/DialogContent";
2174
2177
  import DialogTitle4 from "@mui/material/DialogTitle";
2175
2178
  import Image2 from "next/image";
2176
- import { useEffect as useEffect6, useRef as useRef3, useState as useState8 } from "react";
2179
+ import { useEffect as useEffect6, useRef as useRef3, useState as useState7 } from "react";
2177
2180
  import { IoClose as IoClose2 } from "react-icons/io5";
2178
2181
  import React13 from "react";
2179
2182
  function SearchLicensePlate({
@@ -2184,9 +2187,9 @@ function SearchLicensePlate({
2184
2187
  readOnly = true,
2185
2188
  size
2186
2189
  }) {
2187
- const [open, setOpen] = useState8(false);
2188
- const [selectedValue, setSelectedValue] = useState8("");
2189
- const [inputValues, setInputValues] = useState8({
2190
+ const [open, setOpen] = useState7(false);
2191
+ const [selectedValue, setSelectedValue] = useState7("");
2192
+ const [inputValues, setInputValues] = useState7({
2190
2193
  input1: "",
2191
2194
  input2: "",
2192
2195
  input3: "",
@@ -2563,7 +2566,7 @@ import {
2563
2566
  import { AdapterMomentJalaali as AdapterMomentJalaali5 } from "@mui/x-date-pickers/AdapterMomentJalaali";
2564
2567
  import dayjs3 from "dayjs";
2565
2568
  import moment7 from "moment-jalaali";
2566
- import React14, { useState as useState9 } from "react";
2569
+ import React14, { useState as useState8 } from "react";
2567
2570
  import { Controller as Controller7 } from "react-hook-form";
2568
2571
  moment7.loadPersian({ dialect: "persian-modern", usePersianDigits: true });
2569
2572
  var JalaliDatePicker3 = ({
@@ -2574,7 +2577,7 @@ var JalaliDatePicker3 = ({
2574
2577
  }) => {
2575
2578
  const today = moment7();
2576
2579
  const isMobile = useMediaQuery5("(max-width:700px)");
2577
- const [open, setOpen] = useState9(false);
2580
+ const [open, setOpen] = useState8(false);
2578
2581
  const customLocaleText = {
2579
2582
  cancelButtonLabel: "\u0644\u063A\u0648",
2580
2583
  okButtonLabel: "\u062A\u0623\u06CC\u06CC\u062F",
@@ -3128,7 +3131,7 @@ import {
3128
3131
  Select,
3129
3132
  Typography as Typography11
3130
3133
  } from "@mui/material";
3131
- import React19, { useState as useState10 } from "react";
3134
+ import React19, { useState as useState9 } from "react";
3132
3135
  var backendResponse = {
3133
3136
  value: {
3134
3137
  data: [
@@ -3181,9 +3184,9 @@ var backendResponse = {
3181
3184
  }
3182
3185
  };
3183
3186
  var NestedSelect = () => {
3184
- const [selectedItem, setSelectedItem] = useState10(null);
3185
- const [openMenus, setOpenMenus] = useState10({});
3186
- const [menuOpen, setMenuOpen] = useState10(false);
3187
+ const [selectedItem, setSelectedItem] = useState9(null);
3188
+ const [openMenus, setOpenMenus] = useState9({});
3189
+ const [menuOpen, setMenuOpen] = useState9(false);
3187
3190
  const handleSelect = (item) => {
3188
3191
  setSelectedItem((prev) => prev?.id === item.id ? null : item);
3189
3192
  };
@@ -4069,7 +4072,7 @@ import {
4069
4072
  useTheme as useTheme6
4070
4073
  } from "@mui/material";
4071
4074
  import Image5 from "next/image";
4072
- import React27, { useState as useState13 } from "react";
4075
+ import React27, { useState as useState12 } from "react";
4073
4076
  import {
4074
4077
  Controller as Controller13
4075
4078
  } from "react-hook-form";
@@ -4085,7 +4088,7 @@ import {
4085
4088
  Typography as Typography14
4086
4089
  } from "@mui/material";
4087
4090
  import Image4 from "next/image";
4088
- import { useCallback, useEffect as useEffect9, useState as useState12 } from "react";
4091
+ import { useCallback, useEffect as useEffect9, useState as useState11 } from "react";
4089
4092
  import {
4090
4093
  MdClose as MdClose4,
4091
4094
  MdRotateLeft,
@@ -4103,15 +4106,15 @@ function ImageViewer({
4103
4106
  noRotate = false,
4104
4107
  noZoom = false
4105
4108
  }) {
4106
- const [zoom, setZoom] = useState12(1);
4107
- const [rotate, setRotate] = useState12(0);
4108
- const [loading, setLoading] = useState12(true);
4109
- const [viewerOpen, setViewerOpen] = useState12(false);
4110
- const [viewerSrc, setViewerSrc] = useState12("");
4111
- const [position, setPosition] = useState12({ x: 0, y: 0 });
4112
- const [dragging, setDragging] = useState12(false);
4113
- const [startMouse, setStartMouse] = useState12({ x: 0, y: 0 });
4114
- const [startOffset, setStartOffset] = useState12({ x: 0, y: 0 });
4109
+ const [zoom, setZoom] = useState11(1);
4110
+ const [rotate, setRotate] = useState11(0);
4111
+ const [loading, setLoading] = useState11(true);
4112
+ const [viewerOpen, setViewerOpen] = useState11(false);
4113
+ const [viewerSrc, setViewerSrc] = useState11("");
4114
+ const [position, setPosition] = useState11({ x: 0, y: 0 });
4115
+ const [dragging, setDragging] = useState11(false);
4116
+ const [startMouse, setStartMouse] = useState11({ x: 0, y: 0 });
4117
+ const [startOffset, setStartOffset] = useState11({ x: 0, y: 0 });
4115
4118
  const reset = () => {
4116
4119
  setZoom(1);
4117
4120
  setRotate(0);
@@ -4278,8 +4281,8 @@ var UploadImage2 = ({
4278
4281
  imageFit = "cover"
4279
4282
  }) => {
4280
4283
  const theme2 = useTheme6();
4281
- const [viewerOpen, setViewerOpen] = useState13(false);
4282
- const [viewerSrc, setViewerSrc] = useState13("");
4284
+ const [viewerOpen, setViewerOpen] = useState12(false);
4285
+ const [viewerSrc, setViewerSrc] = useState12("");
4283
4286
  const compressImage = (file, quality = 0.9, maxWidth = 1600, maxHeight = 1600) => {
4284
4287
  return new Promise((resolve) => {
4285
4288
  const reader = new FileReader();
@@ -4638,7 +4641,7 @@ import MuiAccordionDetails from "@mui/material/AccordionDetails";
4638
4641
  import {
4639
4642
  Typography as Typography16
4640
4643
  } from "@mui/material";
4641
- import { useState as useState14 } from "react";
4644
+ import { useState as useState13 } from "react";
4642
4645
  function Page({
4643
4646
  data
4644
4647
  }) {
@@ -4668,7 +4671,7 @@ function Page({
4668
4671
  padding: theme2.spacing(2),
4669
4672
  borderTop: "1px solid rgba(0, 0, 0, .125)"
4670
4673
  }));
4671
- const [expanded, setExpanded] = useState14("");
4674
+ const [expanded, setExpanded] = useState13("");
4672
4675
  const handleChange = (panel) => (event, newExpanded) => {
4673
4676
  setExpanded(newExpanded ? panel : false);
4674
4677
  };
@@ -4760,7 +4763,7 @@ var switch_button_default = SwitchButton;
4760
4763
 
4761
4764
  // src/bascule-connection-button/index.tsx
4762
4765
  import { Box as Box22, Button as Button13 } from "@mui/material";
4763
- import React29, { useRef as useRef4, useState as useState15 } from "react";
4766
+ import React29, { useRef as useRef4, useState as useState14 } from "react";
4764
4767
  import toast from "react-hot-toast";
4765
4768
  import { PiPlugs, PiPlugsConnected } from "react-icons/pi";
4766
4769
  var ConnectToBasculeButton = ({
@@ -4770,7 +4773,7 @@ var ConnectToBasculeButton = ({
4770
4773
  parity = "none",
4771
4774
  flowControl = "none"
4772
4775
  }) => {
4773
- const [connected, setConnected] = useState15(false);
4776
+ const [connected, setConnected] = useState14(false);
4774
4777
  const portRef = useRef4(null);
4775
4778
  const connectToBascule = async () => {
4776
4779
  if (!("serial" in navigator)) {