componentes-sinco 1.1.40 → 1.1.42

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
@@ -516,8 +516,12 @@ interface SCAutocompleteProps<T> {
516
516
  inputChange?: (value: string) => void;
517
517
  maxCheck?: number;
518
518
  width?: string;
519
+ chipOutside?: {
520
+ type: "default" | "avatar";
521
+ textSeccion?: string;
522
+ };
519
523
  }
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;
524
+ 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
525
 
522
526
  interface SCCalendarSwipeableProps {
523
527
  background?: string;
package/dist/index.d.ts CHANGED
@@ -516,8 +516,12 @@ interface SCAutocompleteProps<T> {
516
516
  inputChange?: (value: string) => void;
517
517
  maxCheck?: number;
518
518
  width?: string;
519
+ chipOutside?: {
520
+ type: "default" | "avatar";
521
+ textSeccion?: string;
522
+ };
519
523
  }
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;
524
+ 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
525
 
522
526
  interface SCCalendarSwipeableProps {
523
527
  background?: string;
package/dist/index.js CHANGED
@@ -1278,7 +1278,7 @@ var CalendarToolbar = ({
1278
1278
 
1279
1279
  // src/Components/Calendario/Views/MonthView.tsx
1280
1280
  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";
1281
+ 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
1282
  import AddIcon from "@mui/icons-material/Add";
1283
1283
  import dayjs5 from "dayjs";
1284
1284
  import localeData from "dayjs/plugin/localeData";
@@ -1406,7 +1406,7 @@ var CalendarEventCard = ({ event: event2, color, sx, onClick, onHover }) => {
1406
1406
 
1407
1407
  // src/Components/Drawer/SCDrawer.tsx
1408
1408
  import React20 from "react";
1409
- import { Drawer, Stack as Stack9, SwipeableDrawer as SwipeableDrawer2, Box as Box14, Button as Button9, Chip as Chip5 } from "@mui/material";
1409
+ import { Drawer, Stack as Stack9, SwipeableDrawer as SwipeableDrawer2, Box as Box14, Button as Button9 } from "@mui/material";
1410
1410
  import Grid6 from "@mui/material/Grid";
1411
1411
 
1412
1412
  // src/Components/Drawer/Helpers/Utils.tsx
@@ -1548,9 +1548,6 @@ var useDrawerState = ({ open, setOpen }) => {
1548
1548
  // src/Components/Drawer/hooks/useChipFilters.ts
1549
1549
  import { useState as useState8, useEffect as useEffect6 } from "react";
1550
1550
  var useChipFilters = (arrayElements, chipFilters) => {
1551
- debugger;
1552
- console.log("arrayElements en useChipFilters", arrayElements);
1553
- console.log("chipFilters en useChipFilters", chipFilters);
1554
1551
  const [stateChipFilters, setChipFilters] = useState8(false);
1555
1552
  const [textFilters, setTextFilters] = useState8([]);
1556
1553
  useEffect6(() => {
@@ -1560,19 +1557,13 @@ var useChipFilters = (arrayElements, chipFilters) => {
1560
1557
  }
1561
1558
  }, [chipFilters]);
1562
1559
  const processChipFilters = () => {
1563
- debugger;
1564
- console.log("Procesando chip filters. !chipFilters?.length", !(chipFilters == null ? void 0 : chipFilters.length));
1565
1560
  if (!(chipFilters == null ? void 0 : chipFilters.length)) {
1566
1561
  processManualFilters();
1567
1562
  return;
1568
1563
  }
1569
- debugger;
1570
- console.log("arrayElements", arrayElements);
1571
1564
  arrayElements.forEach((arrayElement) => {
1572
1565
  const { validation, element: typeElement } = validateTypeElements(arrayElement);
1573
1566
  const currentValue = getCurrentValue(validation, typeElement);
1574
- console.log("currentValue en useChipFilters", currentValue);
1575
- console.log("chipFilters en useChipFilters", chipFilters);
1576
1567
  chipFilters.forEach((chipFilter) => {
1577
1568
  const chipValue = String(chipFilter).trim();
1578
1569
  if (currentValue === chipValue && currentValue !== "" && currentValue !== ",") {
@@ -1629,27 +1620,19 @@ var useChipFilters = (arrayElements, chipFilters) => {
1629
1620
  if (validation === "time") {
1630
1621
  return ((_h = (_g = typeElement.state) == null ? void 0 : _g.isValid) == null ? void 0 : _h.call(_g)) ? typeElement.state.format("HH:mm") : "";
1631
1622
  }
1632
- console.log("typeElement.state en useChipFilters", typeElement.state);
1633
1623
  return ((_i = typeElement.state) == null ? void 0 : _i.textValue) !== void 0 ? String(typeElement.state.textValue).trim() : String(typeElement.state).trim();
1634
1624
  };
1635
1625
  const updateFilter = (value, typeElement, label) => {
1636
1626
  setTextFilters((prevFilters) => {
1637
- debugger;
1638
- console.log("prevFilters en useChipFilters", prevFilters);
1639
- console.log("Updating filter. value:", value, "label:", label);
1640
1627
  const newFilter = { value, arrayElement: typeElement };
1641
- console.log("newFilter en useChipFilters", newFilter);
1642
1628
  const existingFilterIndex = prevFilters.findIndex(
1643
1629
  (filter) => label !== void 0 ? filter.arrayElement.label === label : filter.value === value
1644
1630
  );
1645
- console.log("existingFilterIndex en useChipFilters", existingFilterIndex);
1646
1631
  if (existingFilterIndex !== -1) {
1647
1632
  const updatedFilters = [...prevFilters];
1648
1633
  updatedFilters[existingFilterIndex] = newFilter;
1649
- console.log("updatedFilters en useChipFilters", updatedFilters);
1650
1634
  return updatedFilters;
1651
1635
  } else {
1652
- console.log("Adding new filter. prevFilters: en useChipFilters", prevFilters, "newFilter:", newFilter);
1653
1636
  return [...prevFilters, newFilter];
1654
1637
  }
1655
1638
  });
@@ -1668,11 +1651,7 @@ var useChipFilters = (arrayElements, chipFilters) => {
1668
1651
  }
1669
1652
  });
1670
1653
  };
1671
- debugger;
1672
- console.log("stateChipFilters", stateChipFilters);
1673
1654
  const shouldShowChips = (chipFilters == null ? void 0 : chipFilters.length) ? true : stateChipFilters && hasActiveFilters();
1674
- console.log("shouldShowChips", shouldShowChips);
1675
- console.log("textFilters", textFilters);
1676
1655
  return {
1677
1656
  stateChipFilters,
1678
1657
  setChipFilters,
@@ -1801,8 +1780,6 @@ var ChipFiltersDisplay = ({
1801
1780
  textFilters,
1802
1781
  onDeleteFilter
1803
1782
  }) => {
1804
- debugger;
1805
- console.log("textFilters en chipfiltersDisplay", textFilters);
1806
1783
  const scrollRef = useRef3(null);
1807
1784
  const scroll = (offset) => {
1808
1785
  if (scrollRef.current) {
@@ -2416,7 +2393,7 @@ function SCSelect({
2416
2393
 
2417
2394
  // src/Components/SCAutocomplete.tsx
2418
2395
  import React15, { useEffect as useEffect10, useMemo as useMemo3 } from "react";
2419
- 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";
2396
+ 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";
2420
2397
  import { Search, Clear } from "@mui/icons-material";
2421
2398
  import * as Muicon6 from "@mui/icons-material";
2422
2399
  var StopEvent = ({ children }) => {
@@ -2453,7 +2430,8 @@ function SCAutocomplete({
2453
2430
  state,
2454
2431
  inputChange,
2455
2432
  maxCheck,
2456
- width = "100%"
2433
+ width = "100%",
2434
+ chipOutside
2457
2435
  }) {
2458
2436
  const labelContent = `<span style="color: red;">* </span>` + label;
2459
2437
  let group = "";
@@ -2489,6 +2467,16 @@ function SCAutocomplete({
2489
2467
  setIsUserTyping(false);
2490
2468
  }
2491
2469
  }, [inputValue]);
2470
+ const handleDeleteChip = (optionToDelete) => {
2471
+ const newSelected = selectedOptions.filter(
2472
+ (opt) => getItemValue(opt).value !== getItemValue(optionToDelete).value
2473
+ );
2474
+ setSelectedOptions(newSelected);
2475
+ setState({
2476
+ hiddenValue: newSelected.length > 0 ? newSelected.map((item) => getItemValue(item).value) : "-1",
2477
+ textValue: newSelected.length > 0 ? newSelected.map((item) => getItemValue(item).text) : ""
2478
+ });
2479
+ };
2492
2480
  const normalizedData = useMemo3(() => {
2493
2481
  return data.map((option) => {
2494
2482
  if ((option == null ? void 0 : option.icon) && option.icon.type === void 0) {
@@ -2547,6 +2535,10 @@ function SCAutocomplete({
2547
2535
  const componentClickActiveRef = React15.useRef(false);
2548
2536
  const containerRef = React15.useRef(null);
2549
2537
  const [chipLimit, setChipLimit] = React15.useState(2);
2538
+ const outsideChipsMeasureRef = React15.useRef(null);
2539
+ const [visibleChipCount, setVisibleChipCount] = React15.useState(Number.MAX_SAFE_INTEGER);
2540
+ const [popoverAnchor, setPopoverAnchor] = React15.useState(null);
2541
+ const popoverTimerRef = React15.useRef(null);
2550
2542
  useEffect10(() => {
2551
2543
  const el = containerRef.current;
2552
2544
  if (!el) return;
@@ -2558,6 +2550,50 @@ function SCAutocomplete({
2558
2550
  observer.observe(el);
2559
2551
  return () => observer.disconnect();
2560
2552
  }, []);
2553
+ useEffect10(() => {
2554
+ if (!chipOutside || typeFormat !== "multiselect") return;
2555
+ const box = outsideChipsMeasureRef.current;
2556
+ if (!box) return;
2557
+ const measure = () => {
2558
+ const chips = Array.from(box.querySelectorAll("[data-outside-chip]"));
2559
+ let count = selectedOptions.length;
2560
+ for (let i = 0; i < chips.length; i++) {
2561
+ if (chips[i].offsetTop + chips[i].offsetHeight > 36) {
2562
+ count = i;
2563
+ break;
2564
+ }
2565
+ }
2566
+ setVisibleChipCount(count);
2567
+ };
2568
+ measure();
2569
+ const observer = new ResizeObserver(measure);
2570
+ observer.observe(box);
2571
+ return () => observer.disconnect();
2572
+ }, [selectedOptions, chipOutside, typeFormat]);
2573
+ useEffect10(() => {
2574
+ const displayCount = Math.min(visibleChipCount, selectedOptions.length);
2575
+ if (selectedOptions.length - displayCount === 0) {
2576
+ setPopoverAnchor(null);
2577
+ }
2578
+ }, [selectedOptions, visibleChipCount]);
2579
+ const handlePlusEnter = (event2) => {
2580
+ if (popoverTimerRef.current) clearTimeout(popoverTimerRef.current);
2581
+ setPopoverAnchor(event2.currentTarget);
2582
+ };
2583
+ const handlePlusLeave = () => {
2584
+ popoverTimerRef.current = setTimeout(() => setPopoverAnchor(null), 150);
2585
+ };
2586
+ const handlePopperEnter = () => {
2587
+ if (popoverTimerRef.current) clearTimeout(popoverTimerRef.current);
2588
+ };
2589
+ const handlePopperLeave = () => {
2590
+ popoverTimerRef.current = setTimeout(() => setPopoverAnchor(null), 150);
2591
+ };
2592
+ const resolveAvatarText = (option) => {
2593
+ const optionText = getItemValue(option).text;
2594
+ if (!(chipOutside == null ? void 0 : chipOutside.textSeccion)) return optionText.charAt(0).toUpperCase();
2595
+ return chipOutside.textSeccion.split(",").map((p) => optionText.charAt(Number(p.trim())).toUpperCase()).join("");
2596
+ };
2561
2597
  const hayOnComponentClickGlobal = useMemo3(() => {
2562
2598
  return data.some((opt) => {
2563
2599
  const item = getItemValue(opt);
@@ -2595,7 +2631,7 @@ function SCAutocomplete({
2595
2631
  maxWidth: "100%"
2596
2632
  },
2597
2633
  limitTags: chipLimit,
2598
- renderTags: (value, getTagProps) => {
2634
+ renderTags: chipOutside ? () => null : (value, getTagProps) => {
2599
2635
  const limit = chipLimit;
2600
2636
  return /* @__PURE__ */ React15.createElement(React15.Fragment, null, value.slice(0, limit).map((option, index) => {
2601
2637
  const _a = getTagProps({ index }), { key } = _a, chipProps = __objRest(_a, ["key"]);
@@ -2680,12 +2716,14 @@ function SCAutocomplete({
2680
2716
  renderInput: (params) => /* @__PURE__ */ React15.createElement(React15.Fragment, null, /* @__PURE__ */ React15.createElement(
2681
2717
  TextField3,
2682
2718
  __spreadProps(__spreadValues({
2683
- sx: { "& .MuiOutlinedInput-input": {
2684
- padding: "2.5px 2px 2.5px 2px !important",
2685
- // ajusta aquí
2686
- width: "10px !important",
2687
- minWidth: "10px !important"
2688
- } }
2719
+ sx: {
2720
+ "& .MuiOutlinedInput-input": {
2721
+ padding: "2.5px 2px 2.5px 2px !important",
2722
+ // ajusta aquí
2723
+ width: "10px !important",
2724
+ minWidth: "10px !important"
2725
+ }
2726
+ }
2689
2727
  }, params), {
2690
2728
  label: required ? /* @__PURE__ */ React15.createElement("span", { dangerouslySetInnerHTML: { __html: labelContent } }) : label,
2691
2729
  placeholder: selectedOptions.length == 0 ? "B\xFAsqueda" : "",
@@ -2761,7 +2799,90 @@ function SCAutocomplete({
2761
2799
  }
2762
2800
  }
2763
2801
  })
2764
- )));
2802
+ ), chipOutside && typeFormat === "multiselect" && selectedOptions.length > 0 && (() => {
2803
+ const displayCount = Math.min(visibleChipCount, selectedOptions.length);
2804
+ const hiddenCount = selectedOptions.length - displayCount;
2805
+ return /* @__PURE__ */ React15.createElement(Box11, { sx: { position: "relative", mt: 0.5 } }, /* @__PURE__ */ React15.createElement(
2806
+ Box11,
2807
+ {
2808
+ ref: outsideChipsMeasureRef,
2809
+ "aria-hidden": "true",
2810
+ sx: {
2811
+ display: "flex",
2812
+ flexWrap: "wrap",
2813
+ gap: 0.5,
2814
+ position: "absolute",
2815
+ top: 0,
2816
+ left: 0,
2817
+ right: 0,
2818
+ visibility: "hidden",
2819
+ pointerEvents: "none"
2820
+ }
2821
+ },
2822
+ selectedOptions.map((option) => {
2823
+ const avatarText = resolveAvatarText(option);
2824
+ return /* @__PURE__ */ React15.createElement("div", { key: getItemValue(option).value, "data-outside-chip": true, style: { display: "inline-flex" } }, /* @__PURE__ */ React15.createElement(
2825
+ Chip4,
2826
+ __spreadValues({
2827
+ size: "small",
2828
+ label: getItemValue(option).text
2829
+ }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React15.createElement(Avatar, null, avatarText) } : {})
2830
+ ));
2831
+ })
2832
+ ), /* @__PURE__ */ React15.createElement(Box11, { sx: { display: "flex", flexWrap: "wrap", gap: 0.5, maxHeight: 36, overflow: "hidden" } }, selectedOptions.slice(0, displayCount).map((option) => {
2833
+ const avatarText = resolveAvatarText(option);
2834
+ return /* @__PURE__ */ React15.createElement(
2835
+ Chip4,
2836
+ __spreadValues({
2837
+ key: getItemValue(option).value,
2838
+ color: "default",
2839
+ size: "small",
2840
+ variant: "filled",
2841
+ label: getItemValue(option).text,
2842
+ onDelete: () => handleDeleteChip(option)
2843
+ }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React15.createElement(Avatar, null, avatarText) } : {})
2844
+ );
2845
+ }), hiddenCount > 0 && /* @__PURE__ */ React15.createElement(
2846
+ Box11,
2847
+ {
2848
+ onMouseEnter: handlePlusEnter,
2849
+ onMouseLeave: handlePlusLeave,
2850
+ sx: { ml: 0.5, fontSize: 13, color: "#666", display: "flex", alignItems: "center", cursor: "default" }
2851
+ },
2852
+ `+${hiddenCount}`
2853
+ )), /* @__PURE__ */ React15.createElement(
2854
+ Popper,
2855
+ {
2856
+ open: Boolean(popoverAnchor),
2857
+ anchorEl: popoverAnchor,
2858
+ placement: "bottom-start",
2859
+ sx: { zIndex: 1500 }
2860
+ },
2861
+ /* @__PURE__ */ React15.createElement(
2862
+ Paper,
2863
+ {
2864
+ elevation: 3,
2865
+ onMouseEnter: handlePopperEnter,
2866
+ onMouseLeave: handlePopperLeave,
2867
+ sx: { p: 1, display: "flex", flexWrap: "wrap", gap: 0.5, maxWidth: 300 }
2868
+ },
2869
+ selectedOptions.slice(displayCount).map((option) => {
2870
+ const avatarText = resolveAvatarText(option);
2871
+ return /* @__PURE__ */ React15.createElement(
2872
+ Chip4,
2873
+ __spreadValues({
2874
+ key: getItemValue(option).value,
2875
+ color: "default",
2876
+ size: "small",
2877
+ variant: "filled",
2878
+ label: getItemValue(option).text,
2879
+ onDelete: () => handleDeleteChip(option)
2880
+ }, chipOutside.type === "avatar" ? { avatar: /* @__PURE__ */ React15.createElement(Avatar, { sx: { fontSize: avatarText.length > 1 ? "0.55rem" : "0.75rem" } }, avatarText) } : {})
2881
+ );
2882
+ })
2883
+ )
2884
+ ));
2885
+ })()));
2765
2886
  }
2766
2887
 
2767
2888
  // src/Components/SCDateRange.tsx
@@ -3139,9 +3260,6 @@ function SCDrawer({
3139
3260
  ];
3140
3261
  };
3141
3262
  const drawerActions = getActions();
3142
- debugger;
3143
- console.log("shouldShowChips en scDrawer", shouldShowChips);
3144
- console.log("textFilters en scDrawer", textFilters);
3145
3263
  return /* @__PURE__ */ React20.createElement(React20.Fragment, null, toast && /* @__PURE__ */ React20.createElement(SCToastNotification, __spreadValues({}, toast)), /* @__PURE__ */ React20.createElement(
3146
3264
  Grid6,
3147
3265
  {
@@ -3158,13 +3276,13 @@ function SCDrawer({
3158
3276
  onDeleteFilter: handleDeleteFilter
3159
3277
  }
3160
3278
  ),
3161
- buttonDrawer && /* @__PURE__ */ React20.createElement(React20.Fragment, null, /* @__PURE__ */ React20.createElement(
3279
+ buttonDrawer && /* @__PURE__ */ React20.createElement(
3162
3280
  DrawerButton,
3163
3281
  {
3164
3282
  buttonDrawer,
3165
3283
  onToggle: toggleDrawer(true)
3166
3284
  }
3167
- ), /* @__PURE__ */ React20.createElement(Chip5, { label: "Filtro 1" }))
3285
+ )
3168
3286
  ), anchor != "bottom" ? /* @__PURE__ */ React20.createElement(
3169
3287
  Drawer,
3170
3288
  {
@@ -3538,7 +3656,7 @@ var MonthView = ({ events, isLoading, onDayClick, onMoreClick, currentDate, onEv
3538
3656
  const dayEvents = filterEventsForDay(events, day);
3539
3657
  const isCurrentMonth = day.month() === currentDate.month();
3540
3658
  return /* @__PURE__ */ React28.createElement(
3541
- Paper,
3659
+ Paper2,
3542
3660
  {
3543
3661
  key: day.toString(),
3544
3662
  onClick: () => onDayClick == null ? void 0 : onDayClick(day),
@@ -4324,7 +4442,7 @@ import { format, startOfWeek, addDays, isSameDay } from "date-fns";
4324
4442
  import React36 from "react";
4325
4443
  import { Divider as Divider6, List, ListItemButton, ListItemIcon as ListItemIcon4, ListItemText as ListItemText3, SvgIcon as SvgIcon7 } from "@mui/material";
4326
4444
  import Grid7 from "@mui/material/Grid";
4327
- import Avatar from "@mui/material/Avatar";
4445
+ import Avatar2 from "@mui/material/Avatar";
4328
4446
  import * as Muicon7 from "@mui/icons-material";
4329
4447
  var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" }) => {
4330
4448
  const [selectedIndex, setSelectedIndex] = React36.useState("1");
@@ -4356,7 +4474,7 @@ var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" })
4356
4474
  onClick: option.fn,
4357
4475
  sx: { gap: 1, padding: iconLeftType == "Icon" ? "8px 8px" : "8px 8px 8px 0px" }
4358
4476
  },
4359
- 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) : "",
4477
+ 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) : "",
4360
4478
  /* @__PURE__ */ React36.createElement(
4361
4479
  ListItemText3,
4362
4480
  {
@@ -4365,7 +4483,7 @@ var SCListContent = ({ options, iconLeftType = "Icon", iconRightType = "Icon" })
4365
4483
  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))
4366
4484
  }
4367
4485
  ),
4368
- 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) : ""
4486
+ 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) : ""
4369
4487
  ), option.divider == true ? /* @__PURE__ */ React36.createElement(Divider6, null) : "");
4370
4488
  })));
4371
4489
  };
@@ -5522,7 +5640,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
5522
5640
 
5523
5641
  // src/Components/SCMenu.tsx
5524
5642
  import React45 from "react";
5525
- 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";
5643
+ 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";
5526
5644
  import Grid12 from "@mui/material/Grid";
5527
5645
 
5528
5646
  // src/Components/Hooks/useWindowDimensions.ts
@@ -5589,7 +5707,7 @@ var SCMenu = ({ header, options, defaultOption, disable, widthMenu, heightMenu,
5589
5707
  setValue(String(index + 1));
5590
5708
  }
5591
5709
  };
5592
- 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(
5710
+ 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(
5593
5711
  MenuItem9,
5594
5712
  {
5595
5713
  disabled: disable == true ? true : false,