componentes-sinco 1.1.41 → 1.1.43

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.d.cts CHANGED
@@ -27,9 +27,10 @@ interface AttachmentProps<T> {
27
27
  deleteAction?: (name: string) => Promise<void> | void;
28
28
  initialFiles?: UploadedFile$1[];
29
29
  iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
30
+ view?: 'file' | 'button';
30
31
  }
31
32
 
32
- declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, iconFileItem, }: AttachmentProps<any>) => React__default.JSX.Element;
33
+ declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, iconFileItem, view, }: AttachmentProps<any>) => React__default.JSX.Element;
33
34
 
34
35
  type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
35
36
  type ReplyTextPalette = "primary" | "secondary" | "disabled";
@@ -516,8 +517,12 @@ interface SCAutocompleteProps<T> {
516
517
  inputChange?: (value: string) => void;
517
518
  maxCheck?: number;
518
519
  width?: string;
520
+ chipOutside?: {
521
+ type: "default" | "avatar";
522
+ textSeccion?: string;
523
+ };
519
524
  }
520
- declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, typeFormat, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, inputChange, maxCheck, width, }: SCAutocompleteProps<T>): React__default.JSX.Element;
525
+ declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, typeFormat, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, inputChange, maxCheck, width, chipOutside, }: SCAutocompleteProps<T>): React__default.JSX.Element;
521
526
 
522
527
  interface SCCalendarSwipeableProps {
523
528
  background?: string;
package/dist/index.d.ts CHANGED
@@ -27,9 +27,10 @@ interface AttachmentProps<T> {
27
27
  deleteAction?: (name: string) => Promise<void> | void;
28
28
  initialFiles?: UploadedFile$1[];
29
29
  iconFileItem?: any | React.ReactNode | React.ReactElement | React.ElementType | null;
30
+ view?: 'file' | 'button';
30
31
  }
31
32
 
32
- declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, iconFileItem, }: AttachmentProps<any>) => React__default.JSX.Element;
33
+ declare const Attachment: ({ sx, compact, error, maxSize, fileAccepted, onLoading, onChange, downloadAction, deleteAction, initialFiles, iconFileItem, view, }: AttachmentProps<any>) => React__default.JSX.Element;
33
34
 
34
35
  type ReplyPalette$1 = "primary" | "secondary" | "warning" | "info" | "success" | "error" | any;
35
36
  type ReplyTextPalette = "primary" | "secondary" | "disabled";
@@ -516,8 +517,12 @@ interface SCAutocompleteProps<T> {
516
517
  inputChange?: (value: string) => void;
517
518
  maxCheck?: number;
518
519
  width?: string;
520
+ chipOutside?: {
521
+ type: "default" | "avatar";
522
+ textSeccion?: string;
523
+ };
519
524
  }
520
- declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, typeFormat, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, inputChange, maxCheck, width, }: SCAutocompleteProps<T>): React__default.JSX.Element;
525
+ declare function SCAutocomplete<T>({ label, data, columnGroup, getItemValue, typeFormat, checkMassive, deleteType, fnAplicar, required, disabled, background, setState, state, inputChange, maxCheck, width, chipOutside, }: SCAutocompleteProps<T>): React__default.JSX.Element;
521
526
 
522
527
  interface SCCalendarSwipeableProps {
523
528
  background?: string;
package/dist/index.js CHANGED
@@ -400,7 +400,8 @@ var Attachment = ({
400
400
  downloadAction,
401
401
  deleteAction,
402
402
  initialFiles = [],
403
- iconFileItem
403
+ iconFileItem,
404
+ view = "button"
404
405
  }) => {
405
406
  const [files, setFiles] = useState4([]);
406
407
  const [fileToDelete, setFileToDelete] = useState4(null);
@@ -524,7 +525,7 @@ var Attachment = ({
524
525
  return filteredFiles;
525
526
  });
526
527
  };
527
- return /* @__PURE__ */ React4.createElement(Stack3, { spacing: 2 }, toast && /* @__PURE__ */ React4.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ React4.createElement(
528
+ return /* @__PURE__ */ React4.createElement(Stack3, { spacing: 2, display: "flex", flexDirection: "column", gap: 1 }, toast && /* @__PURE__ */ React4.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ React4.createElement(
528
529
  "input",
529
530
  {
530
531
  type: "file",
@@ -533,7 +534,7 @@ var Attachment = ({
533
534
  ref: inputRef,
534
535
  onChange: handleUpload
535
536
  }
536
- ), /* @__PURE__ */ React4.createElement(
537
+ ), view === "button" && /* @__PURE__ */ React4.createElement(
537
538
  Stack3,
538
539
  {
539
540
  "data-testid": "ZonaAdjuntos",
@@ -642,6 +643,7 @@ var Attachment = ({
642
643
  id: "ContenedorArchivosAdjuntos",
643
644
  width: "100%",
644
645
  sx: __spreadValues({
646
+ marginTop: "0px !important",
645
647
  overflowY: "auto"
646
648
  }, files.length > 5 && {
647
649
  maxHeight: 250
@@ -701,7 +703,7 @@ var Attachment = ({
701
703
  },
702
704
  /* @__PURE__ */ React4.createElement(FileDownload, { fontSize: "small", color: "action" })
703
705
  )),
704
- /* @__PURE__ */ React4.createElement(Tooltip, { title: "Eliminar" }, /* @__PURE__ */ React4.createElement(
706
+ view === "button" && /* @__PURE__ */ React4.createElement(Tooltip, { title: "Eliminar" }, /* @__PURE__ */ React4.createElement(
705
707
  IconButton3,
706
708
  {
707
709
  size: "small",
@@ -1278,7 +1280,7 @@ var CalendarToolbar = ({
1278
1280
 
1279
1281
  // src/Components/Calendario/Views/MonthView.tsx
1280
1282
  import React28 from "react";
1281
- import { Box as Box16, Typography as Typography14, IconButton as IconButton11, Paper, Tooltip as Tooltip6, Stack as Stack11, CircularProgress as CircularProgress2, Button as Button11 } from "@mui/material";
1283
+ import { Box as Box16, Typography as Typography14, IconButton as IconButton11, Paper as Paper2, Tooltip as Tooltip6, Stack as Stack11, CircularProgress as CircularProgress2, Button as Button11 } from "@mui/material";
1282
1284
  import AddIcon from "@mui/icons-material/Add";
1283
1285
  import dayjs5 from "dayjs";
1284
1286
  import localeData from "dayjs/plugin/localeData";
@@ -2393,7 +2395,7 @@ function SCSelect({
2393
2395
 
2394
2396
  // src/Components/SCAutocomplete.tsx
2395
2397
  import React15, { useEffect as useEffect10, useMemo as useMemo3 } from "react";
2396
- import { Autocomplete, Checkbox, InputAdornment as InputAdornment3, MenuItem as MenuItem3, TextField as TextField3, Typography as Typography10, SvgIcon as SvgIcon6, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, Divider as Divider4, FormControlLabel as FormControlLabel2, IconButton as IconButton9, Chip as Chip4, Box as Box11, Button as Button7, Grid as Grid3 } from "@mui/material";
2398
+ import { Autocomplete, Checkbox, InputAdornment as InputAdornment3, MenuItem as MenuItem3, TextField as TextField3, Avatar, Typography as Typography10, SvgIcon as SvgIcon6, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, Divider as Divider4, FormControlLabel as FormControlLabel2, IconButton as IconButton9, Chip as Chip4, Box as Box11, Button as Button7, Grid as Grid3, Popper, Paper } from "@mui/material";
2397
2399
  import { Search, Clear } from "@mui/icons-material";
2398
2400
  import * as Muicon6 from "@mui/icons-material";
2399
2401
  var StopEvent = ({ children }) => {
@@ -2430,7 +2432,8 @@ function SCAutocomplete({
2430
2432
  state,
2431
2433
  inputChange,
2432
2434
  maxCheck,
2433
- width = "100%"
2435
+ width = "100%",
2436
+ chipOutside
2434
2437
  }) {
2435
2438
  const labelContent = `<span style="color: red;">* </span>` + label;
2436
2439
  let group = "";
@@ -2466,6 +2469,16 @@ function SCAutocomplete({
2466
2469
  setIsUserTyping(false);
2467
2470
  }
2468
2471
  }, [inputValue]);
2472
+ const handleDeleteChip = (optionToDelete) => {
2473
+ const newSelected = selectedOptions.filter(
2474
+ (opt) => getItemValue(opt).value !== getItemValue(optionToDelete).value
2475
+ );
2476
+ setSelectedOptions(newSelected);
2477
+ setState({
2478
+ hiddenValue: newSelected.length > 0 ? newSelected.map((item) => getItemValue(item).value) : "-1",
2479
+ textValue: newSelected.length > 0 ? newSelected.map((item) => getItemValue(item).text) : ""
2480
+ });
2481
+ };
2469
2482
  const normalizedData = useMemo3(() => {
2470
2483
  return data.map((option) => {
2471
2484
  if ((option == null ? void 0 : option.icon) && option.icon.type === void 0) {
@@ -2524,6 +2537,10 @@ function SCAutocomplete({
2524
2537
  const componentClickActiveRef = React15.useRef(false);
2525
2538
  const containerRef = React15.useRef(null);
2526
2539
  const [chipLimit, setChipLimit] = React15.useState(2);
2540
+ const outsideChipsMeasureRef = React15.useRef(null);
2541
+ const [visibleChipCount, setVisibleChipCount] = React15.useState(Number.MAX_SAFE_INTEGER);
2542
+ const [popoverAnchor, setPopoverAnchor] = React15.useState(null);
2543
+ const popoverTimerRef = React15.useRef(null);
2527
2544
  useEffect10(() => {
2528
2545
  const el = containerRef.current;
2529
2546
  if (!el) return;
@@ -2535,6 +2552,50 @@ function SCAutocomplete({
2535
2552
  observer.observe(el);
2536
2553
  return () => observer.disconnect();
2537
2554
  }, []);
2555
+ useEffect10(() => {
2556
+ if (!chipOutside || typeFormat !== "multiselect") return;
2557
+ const box = outsideChipsMeasureRef.current;
2558
+ if (!box) return;
2559
+ const measure = () => {
2560
+ const chips = Array.from(box.querySelectorAll("[data-outside-chip]"));
2561
+ let count = selectedOptions.length;
2562
+ for (let i = 0; i < chips.length; i++) {
2563
+ if (chips[i].offsetTop + chips[i].offsetHeight > 36) {
2564
+ count = i;
2565
+ break;
2566
+ }
2567
+ }
2568
+ setVisibleChipCount(count);
2569
+ };
2570
+ measure();
2571
+ const observer = new ResizeObserver(measure);
2572
+ observer.observe(box);
2573
+ return () => observer.disconnect();
2574
+ }, [selectedOptions, chipOutside, typeFormat]);
2575
+ useEffect10(() => {
2576
+ const displayCount = Math.min(visibleChipCount, selectedOptions.length);
2577
+ if (selectedOptions.length - displayCount === 0) {
2578
+ setPopoverAnchor(null);
2579
+ }
2580
+ }, [selectedOptions, visibleChipCount]);
2581
+ const handlePlusEnter = (event2) => {
2582
+ if (popoverTimerRef.current) clearTimeout(popoverTimerRef.current);
2583
+ setPopoverAnchor(event2.currentTarget);
2584
+ };
2585
+ const handlePlusLeave = () => {
2586
+ popoverTimerRef.current = setTimeout(() => setPopoverAnchor(null), 150);
2587
+ };
2588
+ const handlePopperEnter = () => {
2589
+ if (popoverTimerRef.current) clearTimeout(popoverTimerRef.current);
2590
+ };
2591
+ const handlePopperLeave = () => {
2592
+ popoverTimerRef.current = setTimeout(() => setPopoverAnchor(null), 150);
2593
+ };
2594
+ const resolveAvatarText = (option) => {
2595
+ const optionText = getItemValue(option).text;
2596
+ if (!(chipOutside == null ? void 0 : chipOutside.textSeccion)) return optionText.charAt(0).toUpperCase();
2597
+ return chipOutside.textSeccion.split(",").map((p) => optionText.charAt(Number(p.trim())).toUpperCase()).join("");
2598
+ };
2538
2599
  const hayOnComponentClickGlobal = useMemo3(() => {
2539
2600
  return data.some((opt) => {
2540
2601
  const item = getItemValue(opt);
@@ -2572,7 +2633,7 @@ function SCAutocomplete({
2572
2633
  maxWidth: "100%"
2573
2634
  },
2574
2635
  limitTags: chipLimit,
2575
- renderTags: (value, getTagProps) => {
2636
+ renderTags: chipOutside ? () => null : (value, getTagProps) => {
2576
2637
  const limit = chipLimit;
2577
2638
  return /* @__PURE__ */ React15.createElement(React15.Fragment, null, value.slice(0, limit).map((option, index) => {
2578
2639
  const _a = getTagProps({ index }), { key } = _a, chipProps = __objRest(_a, ["key"]);
@@ -2657,12 +2718,14 @@ function SCAutocomplete({
2657
2718
  renderInput: (params) => /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(
2658
2719
  TextField3,
2659
2720
  __spreadProps(__spreadValues({
2660
- sx: { "& .MuiOutlinedInput-input": {
2661
- padding: "2.5px 2px 2.5px 2px !important",
2662
- // ajusta aquí
2663
- width: "10px !important",
2664
- minWidth: "10px !important"
2665
- } }
2721
+ sx: {
2722
+ "& .MuiOutlinedInput-input": {
2723
+ padding: "2.5px 2px 2.5px 2px !important",
2724
+ // ajusta aquí
2725
+ width: "10px !important",
2726
+ minWidth: "10px !important"
2727
+ }
2728
+ }
2666
2729
  }, params), {
2667
2730
  label: required ? /* @__PURE__ */ React15.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
2668
2731
  placeholder: selectedOptions.length == 0 ? "B\xFAsqueda" : "",
@@ -2738,7 +2801,90 @@ function SCAutocomplete({
2738
2801
  }
2739
2802
  }
2740
2803
  })
2741
- )));
2804
+ ), chipOutside && typeFormat === "multiselect" && selectedOptions.length > 0 && (() => {
2805
+ const displayCount = Math.min(visibleChipCount, selectedOptions.length);
2806
+ const hiddenCount = selectedOptions.length - displayCount;
2807
+ return /* @__PURE__ */ React15.createElement(Box11, { sx: { position: "relative", mt: 0.5 } }, /* @__PURE__ */ React15.createElement(
2808
+ Box11,
2809
+ {
2810
+ ref: outsideChipsMeasureRef,
2811
+ "aria-hidden": "true",
2812
+ sx: {
2813
+ display: "flex",
2814
+ flexWrap: "wrap",
2815
+ gap: 0.5,
2816
+ position: "absolute",
2817
+ top: 0,
2818
+ left: 0,
2819
+ right: 0,
2820
+ visibility: "hidden",
2821
+ pointerEvents: "none"
2822
+ }
2823
+ },
2824
+ selectedOptions.map((option) => {
2825
+ const avatarText = resolveAvatarText(option);
2826
+ return /* @__PURE__ */ React15.createElement("div", { key: getItemValue(option).value, "data-outside-chip": true, style: { display: "inline-flex" } }, /* @__PURE__ */ React15.createElement(
2827
+ Chip4,
2828
+ __spreadValues({
2829
+ size: "small",
2830
+ label: getItemValue(option).text
2831
+ }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React15.createElement(Avatar, { sx: { height: "15px !important", width: "15px !important" } }, avatarText) } : {})
2832
+ ));
2833
+ })
2834
+ ), /* @__PURE__ */ React15.createElement(Box11, { sx: { display: "flex", flexWrap: "wrap", gap: 0.5, maxHeight: 36, overflow: "hidden" } }, selectedOptions.slice(0, displayCount).map((option) => {
2835
+ const avatarText = resolveAvatarText(option);
2836
+ return /* @__PURE__ */ React15.createElement(
2837
+ Chip4,
2838
+ __spreadValues({
2839
+ key: getItemValue(option).value,
2840
+ color: "default",
2841
+ size: "small",
2842
+ variant: "filled",
2843
+ label: getItemValue(option).text,
2844
+ onDelete: () => handleDeleteChip(option)
2845
+ }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React15.createElement(Avatar, { sx: { height: "15px !important", width: "15px !important" } }, avatarText) } : {})
2846
+ );
2847
+ }), hiddenCount > 0 && /* @__PURE__ */ React15.createElement(
2848
+ Box11,
2849
+ {
2850
+ onMouseEnter: handlePlusEnter,
2851
+ onMouseLeave: handlePlusLeave,
2852
+ sx: { ml: 0.5, fontSize: 13, color: "#666", display: "flex", alignItems: "center", cursor: "default" }
2853
+ },
2854
+ `+${hiddenCount}`
2855
+ )), /* @__PURE__ */ React15.createElement(
2856
+ Popper,
2857
+ {
2858
+ open: Boolean(popoverAnchor),
2859
+ anchorEl: popoverAnchor,
2860
+ placement: "bottom-start",
2861
+ sx: { zIndex: 1500 }
2862
+ },
2863
+ /* @__PURE__ */ React15.createElement(
2864
+ Paper,
2865
+ {
2866
+ elevation: 3,
2867
+ onMouseEnter: handlePopperEnter,
2868
+ onMouseLeave: handlePopperLeave,
2869
+ sx: { p: 1, display: "flex", flexWrap: "wrap", gap: 0.5, maxWidth: 300 }
2870
+ },
2871
+ selectedOptions.slice(displayCount).map((option) => {
2872
+ const avatarText = resolveAvatarText(option);
2873
+ return /* @__PURE__ */ React15.createElement(
2874
+ Chip4,
2875
+ __spreadValues({
2876
+ key: getItemValue(option).value,
2877
+ color: "default",
2878
+ size: "small",
2879
+ variant: "filled",
2880
+ label: getItemValue(option).text,
2881
+ onDelete: () => handleDeleteChip(option)
2882
+ }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React15.createElement(Avatar, { sx: { fontSize: avatarText.length > 1 ? "0.55rem" : "0.75rem" } }, avatarText) } : {})
2883
+ );
2884
+ })
2885
+ )
2886
+ ));
2887
+ })()));
2742
2888
  }
2743
2889
 
2744
2890
  // src/Components/SCDateRange.tsx
@@ -3512,7 +3658,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3512
3658
  const dayEvents = filterEventsForDay(events, day);
3513
3659
  const isCurrentMonth = day.month() === currentDate.month();
3514
3660
  return /* @__PURE__ */ React28.createElement(
3515
- Paper,
3661
+ Paper2,
3516
3662
  {
3517
3663
  key: day.toString(),
3518
3664
  onClick: () => onDayClick == null ? void 0 : onDayClick(day),
@@ -4268,7 +4414,7 @@ var PageHeader = ({
4268
4414
  fixed,
4269
4415
  shadow = true
4270
4416
  }) => {
4271
- return /* @__PURE__ */ React35.createElement(
4417
+ return /* @__PURE__ */ React35.createElement(React35.Fragment, null, /* @__PURE__ */ React35.createElement(
4272
4418
  Stack13,
4273
4419
  {
4274
4420
  "data-testid": "main-container",
@@ -4281,7 +4427,7 @@ var PageHeader = ({
4281
4427
  sx: { boxShadow: shadow ? (theme) => theme.shadows[1] : "none" }
4282
4428
  },
4283
4429
  /* @__PURE__ */ React35.createElement(Stack13, { "data-testid": "page-header-content", height: 40, px: 3, pl: buttonBack ? 1 : 3, direction: "row", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React35.createElement(Stack13, { id: "left-section", direction: "row", alignItems: "center", gap: 1 }, buttonBack, /* @__PURE__ */ React35.createElement(Stack13, { id: "text-section", gap: 0.5 }, /* @__PURE__ */ React35.createElement(Typography18, { "data-testid": "page-header-title", variant: "h6", color: "text.primary" }, title), subtitle && /* @__PURE__ */ React35.createElement(Typography18, { "data-testid": "page-header-subtitle", variant: "caption", color: "text.secondary" }, subtitle))), actions && /* @__PURE__ */ React35.createElement(Stack13, { id: "right-actions", direction: "row", alignItems: "center", gap: 1 }, actions))
4284
- );
4430
+ ), fixed && /* @__PURE__ */ React35.createElement(Stack13, { sx: { height: 48 } }));
4285
4431
  };
4286
4432
 
4287
4433
  // src/Components/SCActivityCalendar.tsx
@@ -4298,7 +4444,7 @@ import { format, startOfWeek, addDays, isSameDay } from "date-fns";
4298
4444
  import React36 from "react";
4299
4445
  import { Divider as Divider6, List, ListItemButton, ListItemIcon as ListItemIcon4, ListItemText as ListItemText3, SvgIcon as SvgIcon7 } from "@mui/material";
4300
4446
  import Grid7 from "@mui/material/Grid";
4301
- import Avatar from "@mui/material/Avatar";
4447
+ import Avatar2 from "@mui/material/Avatar";
4302
4448
  import * as Muicon7 from "@mui/icons-material";
4303
4449
  var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" }) => {
4304
4450
  const [selectedIndex, setSelectedIndex] = React36.useState("1");
@@ -4330,7 +4476,7 @@ var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" })
4330
4476
  onClick: option.fn,
4331
4477
  sx: { gap: 1, padding: iconLeftType == "Icon" ? "8px 8px" : "8px 8px 8px 0px" }
4332
4478
  },
4333
- option.iconLeft ? iconLeftType == "Icon" ? /* @__PURE__ */ React36.createElement(ListItemIcon4, { sx: { minWidth: "0px !important" } }, /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", sx: { color: option.iconLeftColor || "action" }, component: option.iconLeft })) : /* @__PURE__ */ React36.createElement(Avatar, { sx: { width: 25, height: 25, fontSize: "11px", bgcolor: option.iconLeftColor ? `${option.iconLeftColor}.main` : "default" } }, ((_a = option.iconLeft) == null ? void 0 : _a.type) != void 0 ? /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", component: option.iconLeft }) : option.iconLeft) : "",
4479
+ option.iconLeft ? iconLeftType == "Icon" ? /* @__PURE__ */ React36.createElement(ListItemIcon4, { sx: { minWidth: "0px !important" } }, /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", sx: { color: option.iconLeftColor || "action" }, component: option.iconLeft })) : /* @__PURE__ */ React36.createElement(Avatar2, { sx: { width: 25, height: 25, fontSize: "11px", bgcolor: option.iconLeftColor ? `${option.iconLeftColor}.main` : "default" } }, ((_a = option.iconLeft) == null ? void 0 : _a.type) != void 0 ? /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", component: option.iconLeft }) : option.iconLeft) : "",
4334
4480
  /* @__PURE__ */ React36.createElement(
4335
4481
  ListItemText3,
4336
4482
  {
@@ -4339,7 +4485,7 @@ var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" })
4339
4485
  secondary: /* @__PURE__ */ React36.createElement(Grid7, { gap: 0.5 }, /* @__PURE__ */ React36.createElement(Grid7, { container: true, gap: 0.5, sx: { color: option.colorDisabled == true ? "text.disabled" : "default" } }, option.subtitle), /* @__PURE__ */ React36.createElement(Grid7, { container: true, gap: 0.5, sx: { color: option.colorDisabled == true ? "text.disabled" : "default" } }, option.description))
4340
4486
  }
4341
4487
  ),
4342
- option.iconRight ? iconRightType == "Icon" ? /* @__PURE__ */ React36.createElement(ListItemIcon4, { sx: { minWidth: "0px !important", marginRight: "8px" } }, /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", sx: { color: option.iconRightColor || "action" }, component: option.iconRight })) : /* @__PURE__ */ React36.createElement(Avatar, { variant: "circular", sx: { width: 20, height: 20 } }, ((_b = option.iconRight) == null ? void 0 : _b.type) != void 0 ? /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", color: option.iconRightColor || "action", component: option.iconRight }) : option.iconRight) : ""
4488
+ option.iconRight ? iconRightType == "Icon" ? /* @__PURE__ */ React36.createElement(ListItemIcon4, { sx: { minWidth: "0px !important", marginRight: "8px" } }, /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", sx: { color: option.iconRightColor || "action" }, component: option.iconRight })) : /* @__PURE__ */ React36.createElement(Avatar2, { variant: "circular", sx: { width: 20, height: 20 } }, ((_b = option.iconRight) == null ? void 0 : _b.type) != void 0 ? /* @__PURE__ */ React36.createElement(SvgIcon7, { fontSize: "small", color: option.iconRightColor || "action", component: option.iconRight }) : option.iconRight) : ""
4343
4489
  ), option.divider == true ? /* @__PURE__ */ React36.createElement(Divider6, null) : "");
4344
4490
  })));
4345
4491
  };
@@ -5496,7 +5642,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5496
5642
 
5497
5643
  // src/Components/SCMenu.tsx
5498
5644
  import React45 from "react";
5499
- import { Box as Box27, Typography as Typography26, Paper as Paper4, Divider as Divider8, MenuList as MenuList3, MenuItem as MenuItem9, ListItemIcon as ListItemIcon7, SvgIcon as SvgIcon11 } from "@mui/material";
5645
+ import { Box as Box27, Typography as Typography26, Paper as Paper5, Divider as Divider8, MenuList as MenuList3, MenuItem as MenuItem9, ListItemIcon as ListItemIcon7, SvgIcon as SvgIcon11 } from "@mui/material";
5500
5646
  import Grid12 from "@mui/material/Grid";
5501
5647
 
5502
5648
  // src/Components/Hooks/useWindowDimensions.ts
@@ -5563,7 +5709,7 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
5563
5709
  setValue(String(index + 1));
5564
5710
  }
5565
5711
  };
5566
- return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(Grid12, { container: true, sx: { height: heightContainer, width: widthContainer, flexDirection: "column" } }, /* @__PURE__ */ React45.createElement(Paper4, { "data-testid": "menu-content", sx: { width: menuSize, height: heightContainer, overflow: "auto" } }, header && header.component, /* @__PURE__ */ React45.createElement(MenuList3, { sx: { height: options.length * 45, padding: "8px 0px" } }, options.map((option, index) => /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
5712
+ return /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(Grid12, { container: true, sx: { height: heightContainer, width: widthContainer, flexDirection: "column" } }, /* @__PURE__ */ React45.createElement(Paper5, { "data-testid": "menu-content", sx: { width: menuSize, height: heightContainer, overflow: "auto" } }, header && header.component, /* @__PURE__ */ React45.createElement(MenuList3, { sx: { height: options.length * 45, padding: "8px 0px" } }, options.map((option, index) => /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement(
5567
5713
  MenuItem9,
5568
5714
  {
5569
5715
  disabled: disable == true ? true : false,