@mamrp/components 1.7.61 → 1.7.63

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.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/index.d.mts CHANGED
@@ -756,4 +756,18 @@ interface MapPickerProps {
756
756
  }
757
757
  declare function MapLocationPicker({ control, nameLat, nameLong, nameAddress, isLoading, defaultLat, defaultLng, defaultZoom, minZoom, maxZoom, }: MapPickerProps): React$1.JSX.Element;
758
758
 
759
- export { Page as Accordion, AdvancedSearchButton, ConfirmationDialog$1 as ConfirmationDialog, ConnectToBasculeButton, CustomCheckbox, CustomDateTimePicker, CustomDialog, type CustomDialogProps, CustomTimePicker, DataTable, DateFilter, DateFilterRange, DateMonthPicker, JalaliDatePicker$2 as DatePicker, JalaliDatePicker$1 as DateTimePicker, JalaliDateTimeRangePicker as DateTimeRangePicker, DraggablePaper, UploadImage$1 as EnhancedUploadImage, FormInputNumber, FormInputText, HorizontalStepper, imgViewer as ImgViewer, LicensePlate, MapLocationPicker, JalaliDatePicker as MobileDateTimePicker, ConfirmationDialog as Modal, NestedSelect as NestedSelectort, NoResult, PaginationList, type PaletteColor, PatternTextField, RadioButton, SearchLicensePlate, MultipleSelectChip as Selector, SkeletonCard, SonarSpinner, SwitchButton, Table, UploadImage };
759
+ declare function CheckBoxGroup({ name, label, options, control, align, disabledBoarder, direction, }: {
760
+ name: string;
761
+ label: string | React$1.ReactNode;
762
+ control: Control<any>;
763
+ options: {
764
+ value: any;
765
+ name: string;
766
+ id: any;
767
+ }[];
768
+ align?: "start" | "center" | "end";
769
+ disabledBoarder?: boolean;
770
+ direction?: "row" | "column";
771
+ }): React$1.JSX.Element;
772
+
773
+ export { Page as Accordion, AdvancedSearchButton, CheckBoxGroup, CustomCheckbox as Checkbox, ConfirmationDialog$1 as ConfirmationDialog, ConnectToBasculeButton, CustomCheckbox, CustomDateTimePicker, CustomDialog, type CustomDialogProps, CustomTimePicker, DataTable, DateFilter, DateFilterRange, DateMonthPicker, JalaliDatePicker$2 as DatePicker, JalaliDatePicker$1 as DateTimePicker, JalaliDateTimeRangePicker as DateTimeRangePicker, DraggablePaper, UploadImage$1 as EnhancedUploadImage, FormInputNumber, FormInputText, HorizontalStepper, imgViewer as ImgViewer, LicensePlate, MapLocationPicker, JalaliDatePicker as MobileDateTimePicker, ConfirmationDialog as Modal, NestedSelect as NestedSelectort, NoResult, PaginationList, type PaletteColor, PatternTextField, RadioButton, SearchLicensePlate, MultipleSelectChip as Selector, SkeletonCard, SonarSpinner, SwitchButton, Table, UploadImage };
package/dist/index.d.ts CHANGED
@@ -756,4 +756,18 @@ interface MapPickerProps {
756
756
  }
757
757
  declare function MapLocationPicker({ control, nameLat, nameLong, nameAddress, isLoading, defaultLat, defaultLng, defaultZoom, minZoom, maxZoom, }: MapPickerProps): React$1.JSX.Element;
758
758
 
759
- export { Page as Accordion, AdvancedSearchButton, ConfirmationDialog$1 as ConfirmationDialog, ConnectToBasculeButton, CustomCheckbox, CustomDateTimePicker, CustomDialog, type CustomDialogProps, CustomTimePicker, DataTable, DateFilter, DateFilterRange, DateMonthPicker, JalaliDatePicker$2 as DatePicker, JalaliDatePicker$1 as DateTimePicker, JalaliDateTimeRangePicker as DateTimeRangePicker, DraggablePaper, UploadImage$1 as EnhancedUploadImage, FormInputNumber, FormInputText, HorizontalStepper, imgViewer as ImgViewer, LicensePlate, MapLocationPicker, JalaliDatePicker as MobileDateTimePicker, ConfirmationDialog as Modal, NestedSelect as NestedSelectort, NoResult, PaginationList, type PaletteColor, PatternTextField, RadioButton, SearchLicensePlate, MultipleSelectChip as Selector, SkeletonCard, SonarSpinner, SwitchButton, Table, UploadImage };
759
+ declare function CheckBoxGroup({ name, label, options, control, align, disabledBoarder, direction, }: {
760
+ name: string;
761
+ label: string | React$1.ReactNode;
762
+ control: Control<any>;
763
+ options: {
764
+ value: any;
765
+ name: string;
766
+ id: any;
767
+ }[];
768
+ align?: "start" | "center" | "end";
769
+ disabledBoarder?: boolean;
770
+ direction?: "row" | "column";
771
+ }): React$1.JSX.Element;
772
+
773
+ export { Page as Accordion, AdvancedSearchButton, CheckBoxGroup, CustomCheckbox as Checkbox, ConfirmationDialog$1 as ConfirmationDialog, ConnectToBasculeButton, CustomCheckbox, CustomDateTimePicker, CustomDialog, type CustomDialogProps, CustomTimePicker, DataTable, DateFilter, DateFilterRange, DateMonthPicker, JalaliDatePicker$2 as DatePicker, JalaliDatePicker$1 as DateTimePicker, JalaliDateTimeRangePicker as DateTimeRangePicker, DraggablePaper, UploadImage$1 as EnhancedUploadImage, FormInputNumber, FormInputText, HorizontalStepper, imgViewer as ImgViewer, LicensePlate, MapLocationPicker, JalaliDatePicker as MobileDateTimePicker, ConfirmationDialog as Modal, NestedSelect as NestedSelectort, NoResult, PaginationList, type PaletteColor, PatternTextField, RadioButton, SearchLicensePlate, MultipleSelectChip as Selector, SkeletonCard, SonarSpinner, SwitchButton, Table, UploadImage };
package/dist/index.js CHANGED
@@ -32,6 +32,8 @@ var src_exports = {};
32
32
  __export(src_exports, {
33
33
  Accordion: () => Page,
34
34
  AdvancedSearchButton: () => AdvancedSearchButton,
35
+ CheckBoxGroup: () => CheckBoxGroup,
36
+ Checkbox: () => CustomCheckbox,
35
37
  ConfirmationDialog: () => ConfirmationDialog,
36
38
  ConnectToBasculeButton: () => bascule_connection_button_default,
37
39
  CustomCheckbox: () => CustomCheckbox,
@@ -84,8 +86,8 @@ var import_react = require("react");
84
86
  function Page({
85
87
  data
86
88
  }) {
87
- const Accordion = (0, import_styles.styled)((props) => /* @__PURE__ */ React.createElement(import_Accordion.default, { disableGutters: true, elevation: 0, square: true, ...props }))(({ theme: theme3 }) => ({
88
- border: `1px solid ${theme3.palette.divider}`,
89
+ const Accordion = (0, import_styles.styled)((props) => /* @__PURE__ */ React.createElement(import_Accordion.default, { disableGutters: true, elevation: 0, square: true, ...props }))(({ theme: theme4 }) => ({
90
+ border: `1px solid ${theme4.palette.divider}`,
89
91
  "&:not(:last-child)": {
90
92
  borderBottom: 0
91
93
  },
@@ -93,21 +95,21 @@ function Page({
93
95
  display: "none"
94
96
  }
95
97
  }));
96
- const AccordionSummary = (0, import_styles.styled)((props) => /* @__PURE__ */ React.createElement(import_AccordionSummary.default, { expandIcon: /* @__PURE__ */ React.createElement(import_io.IoIosArrowForward, null), ...props }))(({ theme: theme3 }) => ({
98
+ const AccordionSummary = (0, import_styles.styled)((props) => /* @__PURE__ */ React.createElement(import_AccordionSummary.default, { expandIcon: /* @__PURE__ */ React.createElement(import_io.IoIosArrowForward, null), ...props }))(({ theme: theme4 }) => ({
97
99
  backgroundColor: "rgba(0, 0, 0, .03)",
98
100
  flexDirection: "row-reverse",
99
101
  [`& .${import_AccordionSummary.accordionSummaryClasses.expandIconWrapper}.${import_AccordionSummary.accordionSummaryClasses.expanded}`]: {
100
102
  transform: "rotate(90deg)"
101
103
  },
102
104
  [`& .${import_AccordionSummary.accordionSummaryClasses.content}`]: {
103
- marginLeft: theme3.spacing(1)
105
+ marginLeft: theme4.spacing(1)
104
106
  },
105
- ...theme3.applyStyles("dark", {
107
+ ...theme4.applyStyles("dark", {
106
108
  backgroundColor: "rgba(255, 255, 255, .05)"
107
109
  })
108
110
  }));
109
- const AccordionDetails = (0, import_styles.styled)(import_AccordionDetails.default)(({ theme: theme3 }) => ({
110
- padding: theme3.spacing(2),
111
+ const AccordionDetails = (0, import_styles.styled)(import_AccordionDetails.default)(({ theme: theme4 }) => ({
112
+ padding: theme4.spacing(2),
111
113
  borderTop: "1px solid rgba(0, 0, 0, .125)"
112
114
  }));
113
115
  const [expanded, setExpanded] = (0, import_react.useState)("");
@@ -216,7 +218,7 @@ function LicensePlate({
216
218
  readOnly = true,
217
219
  size
218
220
  }) {
219
- const theme3 = (0, import_material2.useTheme)();
221
+ const theme4 = (0, import_material2.useTheme)();
220
222
  const [open, setOpen] = (0, import_react2.useState)(false);
221
223
  const [inputValues, setInputValues] = (0, import_react2.useState)({
222
224
  input1: "",
@@ -268,7 +270,7 @@ function LicensePlate({
268
270
  }
269
271
  };
270
272
  const inputStyle = {
271
- color: theme3.palette.text.primary,
273
+ color: theme4.palette.text.primary,
272
274
  width: "30px",
273
275
  textAlign: "center",
274
276
  backgroundColor: "transparent",
@@ -807,8 +809,8 @@ function AdvancedSearchButton({
807
809
  backgroundColor,
808
810
  border = false
809
811
  }) {
810
- const theme3 = (0, import_material6.useTheme)();
811
- const isDarkMode = theme3.palette.mode === "dark";
812
+ const theme4 = (0, import_material6.useTheme)();
813
+ const isDarkMode = theme4.palette.mode === "dark";
812
814
  return /* @__PURE__ */ import_react5.default.createElement(
813
815
  import_material6.Button,
814
816
  {
@@ -818,7 +820,7 @@ function AdvancedSearchButton({
818
820
  },
819
821
  startIcon: /* @__PURE__ */ import_react5.default.createElement(AnimatedIcon, { isShowFilter }),
820
822
  sx: {
821
- color: theme3.palette.text.primary ?? color,
823
+ color: theme4.palette.text.primary ?? color,
822
824
  borderRadius: borderRadius ?? 2,
823
825
  paddingY,
824
826
  fontSize,
@@ -968,7 +970,7 @@ function ConfirmationDialog({
968
970
  position: "absolute",
969
971
  right: 8,
970
972
  top: 8,
971
- color: (theme3) => theme3.palette.grey[500]
973
+ color: (theme4) => theme4.palette.grey[500]
972
974
  }
973
975
  },
974
976
  /* @__PURE__ */ React8.createElement(import_md.MdClose, null)
@@ -1141,7 +1143,7 @@ var DateTimePickerComponent = ({
1141
1143
  clearable = false,
1142
1144
  variant = "outlined"
1143
1145
  }) => {
1144
- const theme3 = (0, import_material11.useTheme)();
1146
+ const theme4 = (0, import_material11.useTheme)();
1145
1147
  const [isOpen, setIsOpen] = (0, import_react9.useState)(false);
1146
1148
  const [hasUserInteracted, setHasUserInteracted] = (0, import_react9.useState)(false);
1147
1149
  const hourInputRef = (0, import_react9.useRef)(null);
@@ -1714,7 +1716,7 @@ var DateTimePickerComponent = ({
1714
1716
  fontWeight: isSelected(day) ? 700 : 400,
1715
1717
  bgcolor: isSelected(day) ? "primary.main" : isToday(day) ? "primary.lighter" : "transparent",
1716
1718
  color: isSelected(day) ? "primary.contrastText" : isToday(day) ? "primary.main" : index % 7 === 6 ? "error.main" : "text.primary",
1717
- border: isToday(day) && !isSelected(day) ? `2px solid ${theme3.palette.primary.main}` : "none",
1719
+ border: isToday(day) && !isSelected(day) ? `2px solid ${theme4.palette.primary.main}` : "none",
1718
1720
  transition: "all 0.15s ease",
1719
1721
  "&:hover": day ? {
1720
1722
  bgcolor: isSelected(day) ? "primary.dark" : "action.hover"
@@ -1775,7 +1777,7 @@ function CustomDialog({
1775
1777
  {
1776
1778
  alignItems: "center",
1777
1779
  sx: {
1778
- color: iconColor ? (theme3) => {
1780
+ color: iconColor ? (theme4) => {
1779
1781
  const paletteColors = [
1780
1782
  "primary",
1781
1783
  "secondary",
@@ -1794,11 +1796,11 @@ function CustomDialog({
1794
1796
  "customRed"
1795
1797
  ];
1796
1798
  if (paletteColors.includes(iconColor)) {
1797
- const palette = theme3.palette;
1799
+ const palette = theme4.palette;
1798
1800
  return palette[iconColor]?.main || iconColor;
1799
1801
  }
1800
1802
  return iconColor;
1801
- } : (theme3) => theme3.palette.info.main,
1803
+ } : (theme4) => theme4.palette.info.main,
1802
1804
  pr: 0.5
1803
1805
  }
1804
1806
  },
@@ -1814,7 +1816,7 @@ function CustomDialog({
1814
1816
  position: "absolute",
1815
1817
  right: 8,
1816
1818
  top: 8,
1817
- color: (theme3) => theme3.palette.grey[500]
1819
+ color: (theme4) => theme4.palette.grey[500]
1818
1820
  },
1819
1821
  disabled: isSubmiting
1820
1822
  },
@@ -1879,7 +1881,7 @@ var TimePickerComponent = ({
1879
1881
  disabled = false,
1880
1882
  variant = "outlined"
1881
1883
  }) => {
1882
- const theme3 = (0, import_material13.useTheme)();
1884
+ const theme4 = (0, import_material13.useTheme)();
1883
1885
  const initialHour = value ? parseInt(value.split(":")[0]) : null;
1884
1886
  const initialMinute = value ? parseInt(value.split(":")[1]) : null;
1885
1887
  const [isModalOpen, setIsModalOpen] = (0, import_react10.useState)(false);
@@ -1981,7 +1983,7 @@ var TimePickerComponent = ({
1981
1983
  },
1982
1984
  InputProps: {
1983
1985
  ...!disabled && {
1984
- endAdornment: /* @__PURE__ */ React.createElement(import_material13.InputAdornment, { position: "end" }, /* @__PURE__ */ React.createElement(import_material13.Tooltip, { title: "\u0627\u0646\u062A\u062E\u0627\u0628 \u0632\u0645\u0627\u0646" }, /* @__PURE__ */ React.createElement(import_material13.IconButton, { onClick: () => setIsModalOpen(true) }, /* @__PURE__ */ React.createElement(import_common2.Clock, { size: 22, color: theme3.palette.text.primary }))))
1986
+ endAdornment: /* @__PURE__ */ React.createElement(import_material13.InputAdornment, { position: "end" }, /* @__PURE__ */ React.createElement(import_material13.Tooltip, { title: "\u0627\u0646\u062A\u062E\u0627\u0628 \u0632\u0645\u0627\u0646" }, /* @__PURE__ */ React.createElement(import_material13.IconButton, { onClick: () => setIsModalOpen(true) }, /* @__PURE__ */ React.createElement(import_common2.Clock, { size: 22, color: theme4.palette.text.primary }))))
1985
1987
  }
1986
1988
  },
1987
1989
  sx: {
@@ -2048,7 +2050,7 @@ var TimePickerComponent = ({
2048
2050
  position: "absolute",
2049
2051
  right: 8,
2050
2052
  top: 8,
2051
- color: (theme4) => theme4.palette.grey[500]
2053
+ color: (theme5) => theme5.palette.grey[500]
2052
2054
  }
2053
2055
  },
2054
2056
  /* @__PURE__ */ React.createElement(import_md4.MdClose, null)
@@ -4325,7 +4327,7 @@ function SearchLicensePlate({
4325
4327
  readOnly = true,
4326
4328
  size = "small"
4327
4329
  }) {
4328
- const theme3 = (0, import_material22.useTheme)();
4330
+ const theme4 = (0, import_material22.useTheme)();
4329
4331
  const [open, setOpen] = (0, import_react21.useState)(false);
4330
4332
  const [inputValues, setInputValues] = (0, import_react21.useState)({
4331
4333
  input1: "",
@@ -4340,7 +4342,7 @@ function SearchLicensePlate({
4340
4342
  input4: (0, import_react21.useRef)(null)
4341
4343
  };
4342
4344
  const inputStyle = {
4343
- color: theme3.palette.text.primary,
4345
+ color: theme4.palette.text.primary,
4344
4346
  width: "30px",
4345
4347
  textAlign: "center",
4346
4348
  backgroundColor: "transparent",
@@ -4878,7 +4880,7 @@ function ConfirmationDialog2({
4878
4880
  position: "absolute",
4879
4881
  right: 8,
4880
4882
  top: 8,
4881
- color: (theme3) => theme3.palette.grey[500]
4883
+ color: (theme4) => theme4.palette.grey[500]
4882
4884
  }
4883
4885
  },
4884
4886
  /* @__PURE__ */ React15.createElement(import_md10.MdClose, null)
@@ -4931,7 +4933,7 @@ function NoResult({
4931
4933
  description,
4932
4934
  sx = {}
4933
4935
  }) {
4934
- const theme3 = (0, import_material25.useTheme)();
4936
+ const theme4 = (0, import_material25.useTheme)();
4935
4937
  return /* @__PURE__ */ import_react23.default.createElement(
4936
4938
  import_material25.Card,
4937
4939
  {
@@ -4939,7 +4941,7 @@ function NoResult({
4939
4941
  width: "100%",
4940
4942
  minWidth: 300,
4941
4943
  borderRadius: "12px",
4942
- border: `1px solid ${theme3.palette.secondary.light}`
4944
+ border: `1px solid ${theme4.palette.secondary.light}`
4943
4945
  }
4944
4946
  },
4945
4947
  /* @__PURE__ */ import_react23.default.createElement(
@@ -5387,11 +5389,11 @@ var SwitchButton = ({
5387
5389
  iconChecked,
5388
5390
  iconUnchecked
5389
5391
  }) => {
5390
- const theme3 = (0, import_material31.useTheme)();
5391
- const isDarkMode = theme3.palette.mode === "dark";
5392
- const CustomSwitch = (0, import_system8.styled)(import_material30.Switch)(({ theme: theme4 }) => ({
5392
+ const theme4 = (0, import_material31.useTheme)();
5393
+ const isDarkMode = theme4.palette.mode === "dark";
5394
+ const CustomSwitch = (0, import_system8.styled)(import_material30.Switch)(({ theme: theme5 }) => ({
5393
5395
  "& .MuiSwitch-switchBase.Mui-checked": {
5394
- color: theme4.palette.primary.main
5396
+ color: theme5.palette.primary.main
5395
5397
  },
5396
5398
  "& .MuiSwitch-switchBase": {
5397
5399
  color: isDarkMode ? "rgba(220,220,220,1)" : "rgba(188,188,188,1)"
@@ -5402,16 +5404,16 @@ var SwitchButton = ({
5402
5404
  border: isDarkMode ? "2px solid white" : "2px solid rgba(80,80,80, 1)"
5403
5405
  }
5404
5406
  }));
5405
- const BoxContainer = (0, import_system8.styled)(import_material30.Box)(({ theme: theme4 }) => ({
5407
+ const BoxContainer = (0, import_system8.styled)(import_material30.Box)(({ theme: theme5 }) => ({
5406
5408
  display: "flex",
5407
5409
  alignItems: "center",
5408
5410
  backgroundColor: "rgba(188,188,188, 0.1)",
5409
5411
  border: "2px solid rgba(200,200,200, 1)",
5410
5412
  borderRadius: 10,
5411
5413
  transition: "all 0.3s ease",
5412
- paddingTop: theme4.spacing(0.1),
5413
- paddingBottom: theme4.spacing(0.1),
5414
- paddingLeft: theme4.spacing(1)
5414
+ paddingTop: theme5.spacing(0.1),
5415
+ paddingBottom: theme5.spacing(0.1),
5416
+ paddingLeft: theme5.spacing(1)
5415
5417
  }));
5416
5418
  const LabelContainer = (0, import_system8.styled)("div")({
5417
5419
  transition: "all 0.2s ease",
@@ -6157,8 +6159,8 @@ function MapLocationPicker({
6157
6159
  minZoom = 10,
6158
6160
  maxZoom = 19
6159
6161
  }) {
6160
- const theme3 = (0, import_material34.useTheme)();
6161
- const isDarkMode = theme3.palette.mode === "dark";
6162
+ const theme4 = (0, import_material34.useTheme)();
6163
+ const isDarkMode = theme4.palette.mode === "dark";
6162
6164
  const { field: latField, fieldState: latState } = (0, import_react_hook_form18.useController)({
6163
6165
  name: nameLat,
6164
6166
  control
@@ -6507,7 +6509,7 @@ function MapLocationPicker({
6507
6509
  onClick: handleClearLocation,
6508
6510
  sx: {
6509
6511
  backgroundColor: isDarkMode ? "#1e1e1e" : "white",
6510
- color: theme3.palette.error.main,
6512
+ color: theme4.palette.error.main,
6511
6513
  boxShadow: 2,
6512
6514
  "&:hover": {
6513
6515
  backgroundColor: isDarkMode ? "#2a2a2a" : "#f5f5f5"
@@ -6547,10 +6549,119 @@ function MapLocationPicker({
6547
6549
  helperText
6548
6550
  ));
6549
6551
  }
6552
+
6553
+ // src/checkbox-group/index.tsx
6554
+ var React28 = __toESM(require("react"));
6555
+ var import_react_hook_form19 = require("react-hook-form");
6556
+ var import_Checkbox = __toESM(require("@mui/material/Checkbox"));
6557
+ var import_FormControlLabel2 = __toESM(require("@mui/material/FormControlLabel"));
6558
+ var import_FormControl2 = __toESM(require("@mui/material/FormControl"));
6559
+ var import_FormLabel2 = __toESM(require("@mui/material/FormLabel"));
6560
+ var import_material35 = require("@mui/material");
6561
+ var import_system9 = require("@mui/system");
6562
+ var import_theme3 = __toESM(require("@mamrp/layout/theme"));
6563
+ function CheckBoxGroup({
6564
+ name,
6565
+ label,
6566
+ options,
6567
+ control,
6568
+ align = "start",
6569
+ disabledBoarder,
6570
+ direction = "row"
6571
+ }) {
6572
+ const normalize = (v) => typeof v === "string" && !isNaN(Number(v)) ? Number(v) : v;
6573
+ return /* @__PURE__ */ React28.createElement(
6574
+ import_FormControl2.default,
6575
+ {
6576
+ sx: {
6577
+ display: "flex",
6578
+ flexDirection: direction,
6579
+ alignItems: "center",
6580
+ justifyContent: "start"
6581
+ }
6582
+ },
6583
+ /* @__PURE__ */ React28.createElement(
6584
+ import_react_hook_form19.Controller,
6585
+ {
6586
+ name,
6587
+ control,
6588
+ defaultValue: [],
6589
+ render: ({ field, fieldState: { error } }) => /* @__PURE__ */ React28.createElement(import_system9.Box, { display: "flex", width: "100%", flexDirection: "column" }, label && /* @__PURE__ */ React28.createElement(
6590
+ import_FormLabel2.default,
6591
+ {
6592
+ sx: {
6593
+ position: "absolute",
6594
+ top: -10,
6595
+ left: 15,
6596
+ px: 0.5,
6597
+ backgroundColor: "background.paper",
6598
+ color: error?.message ? import_theme3.default.CustomComponents.RadioButton.errorColor : import_theme3.default.CustomComponents.RadioButton.textColor,
6599
+ fontSize: 15,
6600
+ zIndex: 1
6601
+ }
6602
+ },
6603
+ label
6604
+ ), /* @__PURE__ */ React28.createElement(
6605
+ import_system9.Box,
6606
+ {
6607
+ sx: {
6608
+ width: "100%",
6609
+ p: 0.8,
6610
+ px: 1,
6611
+ borderRadius: 3,
6612
+ display: "flex",
6613
+ justifyContent: align,
6614
+ flexDirection: "row",
6615
+ border: disabledBoarder ? "" : `${import_theme3.default.CustomComponents.RadioButton.borderSize}px solid`,
6616
+ borderColor: error?.message ? import_theme3.default.CustomComponents.RadioButton.errorColor : import_theme3.default.CustomComponents.RadioButton.borderColor
6617
+ }
6618
+ },
6619
+ options.map((option) => /* @__PURE__ */ React28.createElement(
6620
+ import_FormControlLabel2.default,
6621
+ {
6622
+ key: option.value,
6623
+ label: option.name,
6624
+ control: /* @__PURE__ */ React28.createElement(
6625
+ import_Checkbox.default,
6626
+ {
6627
+ checked: Array.isArray(field.value) && field.value.includes(normalize(option.value)),
6628
+ onChange: (e) => {
6629
+ const checked = e.target.checked;
6630
+ const value = normalize(option.value);
6631
+ const currentValue = Array.isArray(field.value) ? field.value.map(normalize) : [];
6632
+ if (checked) {
6633
+ if (!currentValue.includes(value)) {
6634
+ field.onChange([...currentValue, value]);
6635
+ }
6636
+ } else {
6637
+ field.onChange(
6638
+ currentValue.filter((v) => v !== value)
6639
+ );
6640
+ }
6641
+ }
6642
+ }
6643
+ )
6644
+ }
6645
+ ))
6646
+ ), error?.message && /* @__PURE__ */ React28.createElement(
6647
+ import_material35.Typography,
6648
+ {
6649
+ color: "error",
6650
+ fontSize: import_theme3.default.CustomComponents.RadioButton.errorFontSize,
6651
+ ml: 2
6652
+ },
6653
+ error?.message
6654
+ ))
6655
+ }
6656
+ )
6657
+ );
6658
+ }
6550
6659
  // Annotate the CommonJS export names for ESM import in node:
6551
6660
  0 && (module.exports = {
6552
6661
  Accordion,
6553
6662
  AdvancedSearchButton,
6663
+ CheckBoxGroup,
6664
+ Checkbox,
6554
6665
  ConfirmationDialog,
6555
6666
  ConnectToBasculeButton,
6556
6667
  CustomCheckbox,