@mamrp/components 1.0.26 → 1.0.30

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
@@ -76,7 +76,7 @@ function LicensePlate({
76
76
  readOnly = true,
77
77
  size
78
78
  }) {
79
- const theme = useTheme();
79
+ const theme2 = useTheme();
80
80
  const [open, setOpen] = useState(false);
81
81
  const [selectedValue, setSelectedValue] = useState("");
82
82
  const [inputValues, setInputValues] = useState({
@@ -203,7 +203,7 @@ function LicensePlate({
203
203
  maxLength: 2,
204
204
  placeholder: "- -",
205
205
  style: {
206
- color: theme.palette.text.primary,
206
+ color: theme2.palette.text.primary,
207
207
  width: "24px",
208
208
  textAlign: "center",
209
209
  backgroundColor: "transparent",
@@ -253,7 +253,7 @@ function LicensePlate({
253
253
  maxLength: 3,
254
254
  placeholder: "-",
255
255
  style: {
256
- color: theme.palette.text.primary,
256
+ color: theme2.palette.text.primary,
257
257
  width: "28px",
258
258
  textAlign: "center",
259
259
  backgroundColor: "transparent",
@@ -355,7 +355,7 @@ function LicensePlate({
355
355
  maxLength: 3,
356
356
  placeholder: "- - -",
357
357
  style: {
358
- color: theme.palette.text.primary,
358
+ color: theme2.palette.text.primary,
359
359
  width: "40px",
360
360
  // w-10
361
361
  textAlign: "center",
@@ -402,7 +402,7 @@ function LicensePlate({
402
402
  maxLength: 2,
403
403
  placeholder: "- -",
404
404
  style: {
405
- color: theme.palette.text.primary,
405
+ color: theme2.palette.text.primary,
406
406
  width: "24px",
407
407
  textAlign: "center",
408
408
  backgroundColor: "transparent",
@@ -702,7 +702,7 @@ function AdvancedSearchButton({
702
702
  paddingY,
703
703
  fontSize
704
704
  }) {
705
- const theme = useTheme2();
705
+ const theme2 = useTheme2();
706
706
  return /* @__PURE__ */ React4.createElement(
707
707
  Button2,
708
708
  {
@@ -712,7 +712,7 @@ function AdvancedSearchButton({
712
712
  },
713
713
  startIcon: /* @__PURE__ */ React4.createElement(AnimatedIcon, { isShowFilter }),
714
714
  sx: {
715
- color: theme.palette.text.primary ?? color,
715
+ color: theme2.palette.text.primary ?? color,
716
716
  borderRadius,
717
717
  paddingY,
718
718
  fontSize
@@ -848,7 +848,7 @@ function ConfirmationDialog({
848
848
  position: "absolute",
849
849
  right: 8,
850
850
  top: 8,
851
- color: (theme) => theme.palette.grey[500]
851
+ color: (theme2) => theme2.palette.grey[500]
852
852
  }
853
853
  },
854
854
  /* @__PURE__ */ React7.createElement(MdClose, null)
@@ -970,7 +970,7 @@ var TimePickerComponent = ({
970
970
  autoRefresh,
971
971
  disabled = false
972
972
  }) => {
973
- const theme = useTheme3();
973
+ const theme2 = useTheme3();
974
974
  const initialHour = value ? parseInt(value.split(":")[0]) : null;
975
975
  const initialMinute = value ? parseInt(value.split(":")[1]) : null;
976
976
  const [isModalOpen, setIsModalOpen] = useState3(false);
@@ -1067,7 +1067,7 @@ var TimePickerComponent = ({
1067
1067
  },
1068
1068
  InputProps: {
1069
1069
  ...!disabled && {
1070
- endAdornment: /* @__PURE__ */ React.createElement(InputAdornment, { position: "end" }, /* @__PURE__ */ React.createElement(Tooltip, { title: "\u0627\u0646\u062A\u062E\u0627\u0628 \u0632\u0645\u0627\u0646" }, /* @__PURE__ */ React.createElement(IconButton3, { onClick: () => setIsModalOpen(true) }, /* @__PURE__ */ React.createElement(Clock, { size: 22, color: theme.palette.text.primary }))))
1070
+ endAdornment: /* @__PURE__ */ React.createElement(InputAdornment, { position: "end" }, /* @__PURE__ */ React.createElement(Tooltip, { title: "\u0627\u0646\u062A\u062E\u0627\u0628 \u0632\u0645\u0627\u0646" }, /* @__PURE__ */ React.createElement(IconButton3, { onClick: () => setIsModalOpen(true) }, /* @__PURE__ */ React.createElement(Clock, { size: 22, color: theme2.palette.text.primary }))))
1071
1071
  }
1072
1072
  },
1073
1073
  sx: { width: fullwidth ? "100%" : "8rem" },
@@ -1101,7 +1101,7 @@ var TimePickerComponent = ({
1101
1101
  position: "absolute",
1102
1102
  right: 8,
1103
1103
  top: 8,
1104
- color: (theme2) => theme2.palette.grey[500]
1104
+ color: (theme3) => theme3.palette.grey[500]
1105
1105
  }
1106
1106
  },
1107
1107
  /* @__PURE__ */ React.createElement(MdClose2, null)
@@ -2569,7 +2569,7 @@ function ConfirmationDialog2({
2569
2569
  position: "absolute",
2570
2570
  right: 8,
2571
2571
  top: 8,
2572
- color: (theme) => theme.palette.grey[500]
2572
+ color: (theme2) => theme2.palette.grey[500]
2573
2573
  }
2574
2574
  },
2575
2575
  /* @__PURE__ */ React14.createElement(MdClose3, null)
@@ -2627,7 +2627,7 @@ function NoResult({
2627
2627
  description,
2628
2628
  sx = {}
2629
2629
  }) {
2630
- const theme = useTheme4();
2630
+ const theme2 = useTheme4();
2631
2631
  return /* @__PURE__ */ React15.createElement(
2632
2632
  Card2,
2633
2633
  {
@@ -2635,7 +2635,7 @@ function NoResult({
2635
2635
  width: "100%",
2636
2636
  minWidth: 300,
2637
2637
  borderRadius: "12px",
2638
- border: `1px solid ${theme.palette.secondary.light}`
2638
+ border: `1px solid ${theme2.palette.secondary.light}`
2639
2639
  }
2640
2640
  },
2641
2641
  /* @__PURE__ */ React15.createElement(
@@ -2769,41 +2769,82 @@ import RadioGroup from "@mui/material/RadioGroup";
2769
2769
  import FormControlLabel2 from "@mui/material/FormControlLabel";
2770
2770
  import FormControl from "@mui/material/FormControl";
2771
2771
  import FormLabel from "@mui/material/FormLabel";
2772
- function RadioButton({ name, label, options, control }) {
2773
- return /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(FormControl, { sx: {
2774
- display: "flex",
2775
- flexDirection: "row",
2776
- alignItems: "center",
2777
- justifyContent: "start"
2778
- } }, /* @__PURE__ */ React17.createElement(FormLabel, { id: `${name}-label` }, label), /* @__PURE__ */ React17.createElement(
2779
- Controller7,
2772
+ import { Typography as Typography10 } from "@mui/material";
2773
+ import theme from "@mamrp/layout/theme";
2774
+ import { Box as Box14 } from "@mui/system";
2775
+ function RadioButton({
2776
+ name,
2777
+ label,
2778
+ options,
2779
+ control,
2780
+ align = "start",
2781
+ disabledBoarder,
2782
+ direction = "row"
2783
+ }) {
2784
+ return /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(
2785
+ FormControl,
2780
2786
  {
2781
- name,
2782
- control,
2783
- render: ({ field }) => /* @__PURE__ */ React17.createElement(
2784
- RadioGroup,
2785
- {
2786
- ...field,
2787
- "aria-labelledby": `${name}-label`,
2788
- value: field.value,
2789
- sx: {
2790
- display: "flex",
2791
- flexDirection: "row",
2792
- marginLeft: 5
2793
- }
2794
- },
2795
- options.map((option) => /* @__PURE__ */ React17.createElement(
2796
- FormControlLabel2,
2787
+ sx: {
2788
+ display: "flex",
2789
+ flexDirection: direction,
2790
+ alignItems: "center",
2791
+ justifyContent: "start"
2792
+ }
2793
+ },
2794
+ /* @__PURE__ */ React17.createElement(
2795
+ Controller7,
2796
+ {
2797
+ name,
2798
+ control,
2799
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ React17.createElement(Box14, { display: "flex", width: "100%", flexDirection: "column" }, label && /* @__PURE__ */ React17.createElement(
2800
+ FormLabel,
2797
2801
  {
2798
- key: option.value,
2799
- value: option.value,
2800
- control: /* @__PURE__ */ React17.createElement(Radio, { id: option.id }),
2801
- label: option.name
2802
- }
2803
- ))
2804
- )
2805
- }
2806
- )));
2802
+ id: `${name}-label`,
2803
+ sx: {
2804
+ position: "absolute",
2805
+ top: -10,
2806
+ left: 15,
2807
+ px: 0.5,
2808
+ // به‌جای background رنگی، این باعث میشه کمی فضا بدیم
2809
+ backgroundColor: "background.paper",
2810
+ // استفاده از theme برای همخوانی با زمینه
2811
+ color: error?.message ? theme.CustomComponents.RadioButton.errorColor : theme.CustomComponents.RadioButton.textColor,
2812
+ fontSize: 15,
2813
+ zIndex: 1
2814
+ }
2815
+ },
2816
+ label
2817
+ ), /* @__PURE__ */ React17.createElement(
2818
+ RadioGroup,
2819
+ {
2820
+ ...field,
2821
+ "aria-labelledby": `${name}-label`,
2822
+ value: field.value,
2823
+ sx: {
2824
+ width: "100%",
2825
+ p: 0.8,
2826
+ px: 1,
2827
+ borderRadius: 3,
2828
+ display: "flex",
2829
+ justifyContent: align,
2830
+ flexDirection: "row",
2831
+ border: disabledBoarder ? "" : `${theme.CustomComponents.RadioButton.borderSize}px solid`,
2832
+ borderColor: error?.message ? theme.CustomComponents.RadioButton.errorColor : theme.CustomComponents.RadioButton.borderColor
2833
+ }
2834
+ },
2835
+ options.map((option) => /* @__PURE__ */ React17.createElement(
2836
+ FormControlLabel2,
2837
+ {
2838
+ key: option.value,
2839
+ value: option.value,
2840
+ control: /* @__PURE__ */ React17.createElement(Radio, { id: option.id }),
2841
+ label: option.name
2842
+ }
2843
+ ))
2844
+ ), error?.message && /* @__PURE__ */ React17.createElement(Typography10, { color: "error", fontSize: theme.CustomComponents.RadioButton.errorFontSize, ml: 2 }, error?.message))
2845
+ }
2846
+ )
2847
+ ));
2807
2848
  }
2808
2849
 
2809
2850
  // src/selector/index.tsx
@@ -2818,7 +2859,7 @@ import {
2818
2859
  ListItemText,
2819
2860
  MenuItem,
2820
2861
  Select,
2821
- Typography as Typography10
2862
+ Typography as Typography11
2822
2863
  } from "@mui/material";
2823
2864
  import React18, { useState as useState9 } from "react";
2824
2865
  var backendResponse = {
@@ -2923,7 +2964,7 @@ var NestedSelect = () => {
2923
2964
  open: menuOpen,
2924
2965
  onOpen: () => setMenuOpen(true),
2925
2966
  onClose: () => setMenuOpen(false),
2926
- renderValue: (selected) => selectedItem ? /* @__PURE__ */ React18.createElement(Typography10, null, selectedItem.title) : " "
2967
+ renderValue: (selected) => selectedItem ? /* @__PURE__ */ React18.createElement(Typography11, null, selectedItem.title) : " "
2927
2968
  },
2928
2969
  renderMenuItems(backendResponse.value.data)
2929
2970
  ));
@@ -2931,7 +2972,7 @@ var NestedSelect = () => {
2931
2972
  var selector_default = NestedSelect;
2932
2973
 
2933
2974
  // src/spinner/sonar/index.tsx
2934
- import { Box as Box14 } from "@mui/material";
2975
+ import { Box as Box15 } from "@mui/material";
2935
2976
  import { keyframes } from "@mui/system";
2936
2977
  import React19 from "react";
2937
2978
  var radarAnimation = keyframes`
@@ -2946,8 +2987,8 @@ var radarAnimation = keyframes`
2946
2987
  }
2947
2988
  `;
2948
2989
  function SonarSpinner({ children }) {
2949
- return /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement(Box14, { className: "absolute w-[30px] h-[30px] rounded-full bg-white z-10 flex items-center justify-center" }, children), /* @__PURE__ */ React19.createElement(
2950
- Box14,
2990
+ return /* @__PURE__ */ React19.createElement(React19.Fragment, null, /* @__PURE__ */ React19.createElement(Box15, { className: "absolute w-[30px] h-[30px] rounded-full bg-white z-10 flex items-center justify-center" }, children), /* @__PURE__ */ React19.createElement(
2991
+ Box15,
2951
2992
  {
2952
2993
  className: "root",
2953
2994
  sx: {
@@ -2960,7 +3001,7 @@ function SonarSpinner({ children }) {
2960
3001
  }
2961
3002
  },
2962
3003
  /* @__PURE__ */ React19.createElement(
2963
- Box14,
3004
+ Box15,
2964
3005
  {
2965
3006
  className: "radar",
2966
3007
  sx: {
@@ -2978,7 +3019,7 @@ function SonarSpinner({ children }) {
2978
3019
  }
2979
3020
  },
2980
3021
  /* @__PURE__ */ React19.createElement(
2981
- Box14,
3022
+ Box15,
2982
3023
  {
2983
3024
  className: "sonar",
2984
3025
  sx: {
@@ -2992,7 +3033,7 @@ function SonarSpinner({ children }) {
2992
3033
  }
2993
3034
  ),
2994
3035
  /* @__PURE__ */ React19.createElement(
2995
- Box14,
3036
+ Box15,
2996
3037
  {
2997
3038
  className: "sonar delayed",
2998
3039
  sx: {
@@ -3015,7 +3056,7 @@ function SonarSpinner({ children }) {
3015
3056
  }
3016
3057
 
3017
3058
  // src/stepper/index.tsx
3018
- import Box15 from "@mui/material/Box";
3059
+ import Box16 from "@mui/material/Box";
3019
3060
  import Step from "@mui/material/Step";
3020
3061
  import StepButton from "@mui/material/StepButton";
3021
3062
  import Stepper from "@mui/material/Stepper";
@@ -3026,7 +3067,7 @@ function HorizontalStepper({
3026
3067
  setCurrentStep
3027
3068
  }) {
3028
3069
  const [completed, setCompleted] = React20.useState({});
3029
- return /* @__PURE__ */ React20.createElement(Box15, { sx: { width: "100%" } }, /* @__PURE__ */ React20.createElement(Stepper, { nonLinear: true, activeStep: currentStep }, steps.map((label, index) => /* @__PURE__ */ React20.createElement(Step, { key: index, completed: completed[index] }, /* @__PURE__ */ React20.createElement(
3070
+ return /* @__PURE__ */ React20.createElement(Box16, { sx: { width: "100%" } }, /* @__PURE__ */ React20.createElement(Stepper, { nonLinear: true, activeStep: currentStep }, steps.map((label, index) => /* @__PURE__ */ React20.createElement(Step, { key: index, completed: completed[index] }, /* @__PURE__ */ React20.createElement(
3030
3071
  StepButton,
3031
3072
  {
3032
3073
  color: "inherit",
@@ -3042,7 +3083,7 @@ function HorizontalStepper({
3042
3083
  }
3043
3084
 
3044
3085
  // src/table/index.tsx
3045
- import { Typography as Typography11 } from "@mui/material";
3086
+ import { Typography as Typography12 } from "@mui/material";
3046
3087
  import Skeleton2 from "@mui/material/Skeleton";
3047
3088
  import { styled as styled2 } from "@mui/material/styles";
3048
3089
  import {
@@ -3213,7 +3254,7 @@ var Table = ({
3213
3254
  }
3214
3255
  )) : `${from} - ${!isNaN(to) ? to : "..."} \u0627\u0632 ${count !== void 0 ? count : "..."}`
3215
3256
  },
3216
- footerRowSelected: (count) => /* @__PURE__ */ React21.createElement(Typography11, null, "\u0633\u0637\u0631 \u0647\u0627\u06CC \u0627\u0646\u062A\u062E\u0627\u0628 \u0634\u062F\u0647 : ", count)
3257
+ footerRowSelected: (count) => /* @__PURE__ */ React21.createElement(Typography12, null, "\u0633\u0637\u0631 \u0647\u0627\u06CC \u0627\u0646\u062A\u062E\u0627\u0628 \u0634\u062F\u0647 : ", count)
3217
3258
  },
3218
3259
  ...rest
3219
3260
  }
@@ -3420,7 +3461,7 @@ import React24 from "react";
3420
3461
  import {
3421
3462
  Controller as Controller10
3422
3463
  } from "react-hook-form";
3423
- import { Box as Box16, Button as Button11, Stack as Stack5, Typography as Typography12 } from "@mui/material";
3464
+ import { Box as Box17, Button as Button11, Stack as Stack5, Typography as Typography13 } from "@mui/material";
3424
3465
  import { GrUpload, GrGallery } from "react-icons/gr";
3425
3466
  import { MdOutlineCameraAlt } from "react-icons/md";
3426
3467
  import Image3 from "next/image";
@@ -3533,7 +3574,7 @@ var UploadImage = ({
3533
3574
  sx: { pt: allowGallery ? 2 : 0 }
3534
3575
  },
3535
3576
  /* @__PURE__ */ React24.createElement(
3536
- Box16,
3577
+ Box17,
3537
3578
  {
3538
3579
  sx: {
3539
3580
  display: "flex",
@@ -3542,7 +3583,7 @@ var UploadImage = ({
3542
3583
  gap: 1.5
3543
3584
  }
3544
3585
  },
3545
- /* @__PURE__ */ React24.createElement(Box16, { sx: { paddingBottom: "0.5rem" } }, /* @__PURE__ */ React24.createElement(GrUpload, null)),
3586
+ /* @__PURE__ */ React24.createElement(Box17, { sx: { paddingBottom: "0.5rem" } }, /* @__PURE__ */ React24.createElement(GrUpload, null)),
3546
3587
  placeholder
3547
3588
  ),
3548
3589
  allowGallery && /* @__PURE__ */ React24.createElement(Stack5, { spacing: 1.5 }, /* @__PURE__ */ React24.createElement(
@@ -3607,7 +3648,7 @@ var UploadImage = ({
3607
3648
  style: { display: "none" }
3608
3649
  }
3609
3650
  ), selectedImage && /* @__PURE__ */ React24.createElement(
3610
- Box16,
3651
+ Box17,
3611
3652
  {
3612
3653
  sx: { display: "flex", justifyContent: "center", marginTop: 2 }
3613
3654
  },
@@ -3631,7 +3672,7 @@ var UploadImage = ({
3631
3672
  },
3632
3673
  "\u062D\u0630\u0641 \u062A\u0635\u0648\u06CC\u0631"
3633
3674
  )
3634
- ), errors[name] && /* @__PURE__ */ React24.createElement(Typography12, { color: "error", variant: "body2", sx: { mt: 1.5, ml: 1 } }, String(errors[name]?.message || "")))
3675
+ ), errors[name] && /* @__PURE__ */ React24.createElement(Typography13, { color: "error", variant: "body2", sx: { mt: 1.5, ml: 1 } }, String(errors[name]?.message || "")))
3635
3676
  }
3636
3677
  );
3637
3678
  };
@@ -3646,14 +3687,14 @@ import MuiAccordionSummary, {
3646
3687
  } from "@mui/material/AccordionSummary";
3647
3688
  import MuiAccordionDetails from "@mui/material/AccordionDetails";
3648
3689
  import {
3649
- Typography as Typography13
3690
+ Typography as Typography14
3650
3691
  } from "@mui/material";
3651
3692
  import { useState as useState11 } from "react";
3652
3693
  function Page({
3653
3694
  data
3654
3695
  }) {
3655
- const Accordion = styled3((props) => /* @__PURE__ */ React.createElement(MuiAccordion, { disableGutters: true, elevation: 0, square: true, ...props }))(({ theme }) => ({
3656
- border: `1px solid ${theme.palette.divider}`,
3696
+ const Accordion = styled3((props) => /* @__PURE__ */ React.createElement(MuiAccordion, { disableGutters: true, elevation: 0, square: true, ...props }))(({ theme: theme2 }) => ({
3697
+ border: `1px solid ${theme2.palette.divider}`,
3657
3698
  "&:not(:last-child)": {
3658
3699
  borderBottom: 0
3659
3700
  },
@@ -3661,21 +3702,21 @@ function Page({
3661
3702
  display: "none"
3662
3703
  }
3663
3704
  }));
3664
- const AccordionSummary = styled3((props) => /* @__PURE__ */ React.createElement(MuiAccordionSummary, { expandIcon: /* @__PURE__ */ React.createElement(IoIosArrowForward, null), ...props }))(({ theme }) => ({
3705
+ const AccordionSummary = styled3((props) => /* @__PURE__ */ React.createElement(MuiAccordionSummary, { expandIcon: /* @__PURE__ */ React.createElement(IoIosArrowForward, null), ...props }))(({ theme: theme2 }) => ({
3665
3706
  backgroundColor: "rgba(0, 0, 0, .03)",
3666
3707
  flexDirection: "row-reverse",
3667
3708
  [`& .${accordionSummaryClasses.expandIconWrapper}.${accordionSummaryClasses.expanded}`]: {
3668
3709
  transform: "rotate(90deg)"
3669
3710
  },
3670
3711
  [`& .${accordionSummaryClasses.content}`]: {
3671
- marginLeft: theme.spacing(1)
3712
+ marginLeft: theme2.spacing(1)
3672
3713
  },
3673
- ...theme.applyStyles("dark", {
3714
+ ...theme2.applyStyles("dark", {
3674
3715
  backgroundColor: "rgba(255, 255, 255, .05)"
3675
3716
  })
3676
3717
  }));
3677
- const AccordionDetails = styled3(MuiAccordionDetails)(({ theme }) => ({
3678
- padding: theme.spacing(2),
3718
+ const AccordionDetails = styled3(MuiAccordionDetails)(({ theme: theme2 }) => ({
3719
+ padding: theme2.spacing(2),
3679
3720
  borderTop: "1px solid rgba(0, 0, 0, .125)"
3680
3721
  }));
3681
3722
  const [expanded, setExpanded] = useState11("");
@@ -3702,7 +3743,7 @@ function Page({
3702
3743
  }
3703
3744
  }
3704
3745
  },
3705
- /* @__PURE__ */ React.createElement(Typography13, { component: "span" }, item.title)
3746
+ /* @__PURE__ */ React.createElement(Typography14, { component: "span" }, item.title)
3706
3747
  ),
3707
3748
  /* @__PURE__ */ React.createElement(AccordionDetails, null, item.body)
3708
3749
  );
@@ -3710,22 +3751,22 @@ function Page({
3710
3751
  }
3711
3752
 
3712
3753
  // src/switch-button/index.tsx
3713
- import { Box as Box17, FormControlLabel as FormControlLabel3, Switch } from "@mui/material";
3754
+ import { Box as Box18, FormControlLabel as FormControlLabel3, Switch } from "@mui/material";
3714
3755
  import { styled as styled4 } from "@mui/system";
3715
3756
  import React25 from "react";
3716
3757
  import { PiCardsDuotone, PiTableDuotone } from "react-icons/pi";
3717
- import { useTheme as useTheme5 } from "@mui/material";
3758
+ import { useTheme as useTheme6 } from "@mui/material";
3718
3759
  var SwitchButton = ({
3719
3760
  checked,
3720
3761
  handleChange,
3721
3762
  iconChecked,
3722
3763
  iconUnchecked
3723
3764
  }) => {
3724
- const theme = useTheme5();
3725
- const isDarkMode = theme.palette.mode === "dark";
3726
- const CustomSwitch = styled4(Switch)(({ theme: theme2 }) => ({
3765
+ const theme2 = useTheme6();
3766
+ const isDarkMode = theme2.palette.mode === "dark";
3767
+ const CustomSwitch = styled4(Switch)(({ theme: theme3 }) => ({
3727
3768
  "& .MuiSwitch-switchBase.Mui-checked": {
3728
- color: theme2.palette.primary.main
3769
+ color: theme3.palette.primary.main
3729
3770
  },
3730
3771
  "& .MuiSwitch-switchBase": {
3731
3772
  color: isDarkMode ? "rgba(220,220,220,1)" : "rgba(188,188,188,1)"
@@ -3736,16 +3777,16 @@ var SwitchButton = ({
3736
3777
  border: isDarkMode ? "2px solid white" : "2px solid rgba(80,80,80, 1)"
3737
3778
  }
3738
3779
  }));
3739
- const BoxContainer = styled4(Box17)(({ theme: theme2 }) => ({
3780
+ const BoxContainer = styled4(Box18)(({ theme: theme3 }) => ({
3740
3781
  display: "flex",
3741
3782
  alignItems: "center",
3742
3783
  backgroundColor: "rgba(188,188,188, 0.1)",
3743
3784
  border: "2px solid rgba(200,200,200, 1)",
3744
3785
  borderRadius: 10,
3745
3786
  transition: "all 0.3s ease",
3746
- paddingTop: theme2.spacing(0.1),
3747
- paddingBottom: theme2.spacing(0.1),
3748
- paddingLeft: theme2.spacing(1)
3787
+ paddingTop: theme3.spacing(0.1),
3788
+ paddingBottom: theme3.spacing(0.1),
3789
+ paddingLeft: theme3.spacing(1)
3749
3790
  }));
3750
3791
  const LabelContainer = styled4("div")({
3751
3792
  transition: "all 0.2s ease",
@@ -3769,7 +3810,7 @@ var SwitchButton = ({
3769
3810
  var switch_button_default = SwitchButton;
3770
3811
 
3771
3812
  // src/bascule-connection-button/index.tsx
3772
- import { Box as Box18, Button as Button12 } from "@mui/material";
3813
+ import { Box as Box19, Button as Button12 } from "@mui/material";
3773
3814
  import React26, { useRef as useRef4, useState as useState12 } from "react";
3774
3815
  import toast from "react-hot-toast";
3775
3816
  import { PiPlugs, PiPlugsConnected } from "react-icons/pi";
@@ -3817,7 +3858,7 @@ var ConnectToBasculeButton = ({
3817
3858
  sx: { minWidth: "11rem" }
3818
3859
  },
3819
3860
  /* @__PURE__ */ React26.createElement(
3820
- Box18,
3861
+ Box19,
3821
3862
  {
3822
3863
  sx: {
3823
3864
  display: "flex",