componentes-sinco 1.0.28 → 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.js CHANGED
@@ -722,7 +722,7 @@ var Attachment = ({
722
722
  action: [
723
723
  {
724
724
  text: "Eliminar",
725
- fn: () => __async(void 0, null, function* () {
725
+ fn: () => __async(null, null, function* () {
726
726
  if (fileToDelete) {
727
727
  try {
728
728
  if (deleteAction) {
@@ -757,7 +757,7 @@ var Attachment = ({
757
757
  // src/Components/Drawer/SCDrawer.tsx
758
758
  import React16 from "react";
759
759
  import { Drawer, Stack as Stack6 } from "@mui/material";
760
- import Grid6 from "@mui/material/Grid2";
760
+ import Grid6 from "@mui/material/Grid";
761
761
 
762
762
  // src/Components/Drawer/Helpers/Utils.tsx
763
763
  import * as Muicon from "@mui/icons-material";
@@ -1146,7 +1146,7 @@ import { Box as Box10, Stack as Stack5 } from "@mui/material";
1146
1146
  // src/Components/Textfield/SCTextField.tsx
1147
1147
  import React8, { useEffect as useEffect8, useState as useState8 } from "react";
1148
1148
  import { FormControl, IconButton as IconButton5, InputAdornment, InputLabel, OutlinedInput, FilledInput, Popover, Input, Box as Box5, Typography as Typography4, SvgIcon, Tooltip as Tooltip2 } from "@mui/material";
1149
- import Grid from "@mui/material/Grid2";
1149
+ import Grid from "@mui/material/Grid";
1150
1150
  import { Visibility, VisibilityOff, InfoOutlined } from "@mui/icons-material";
1151
1151
 
1152
1152
  // src/Components/Textfield/Helpers/validateIcon.tsx
@@ -1697,8 +1697,7 @@ function SCSelect({
1697
1697
 
1698
1698
  // src/Components/SCAutocomplete.tsx
1699
1699
  import React11, { useEffect as useEffect11 } from "react";
1700
- import { Autocomplete, Checkbox, InputAdornment as InputAdornment3, MenuItem as MenuItem2, TextField as TextField3, Typography as Typography7, SvgIcon as SvgIcon4, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, Divider as Divider3, FormControlLabel as FormControlLabel2, IconButton as IconButton7, Chip as Chip3, Box as Box8, Button as Button6 } from "@mui/material";
1701
- import Grid3 from "@mui/material/Grid2";
1700
+ import { Autocomplete, Checkbox, InputAdornment as InputAdornment3, MenuItem as MenuItem2, TextField as TextField3, Typography as Typography7, SvgIcon as SvgIcon4, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, Divider as Divider3, FormControlLabel as FormControlLabel2, IconButton as IconButton7, Chip as Chip3, Box as Box8, Button as Button6, Grid as Grid3 } from "@mui/material";
1702
1701
  import { Search, Clear } from "@mui/icons-material";
1703
1702
  import * as Muicon4 from "@mui/icons-material";
1704
1703
  function SCAutocomplete({
@@ -1970,7 +1969,7 @@ import { DateRangePicker } from "@mui/x-date-pickers-pro/DateRangePicker";
1970
1969
  import { MultiInputDateRangeField } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
1971
1970
  import dayjs from "dayjs";
1972
1971
  import "dayjs/locale/es";
1973
- import { LicenseInfo } from "@mui/x-license-pro";
1972
+ import { LicenseInfo } from "@mui/x-license";
1974
1973
  import EventIcon from "@mui/icons-material/Event";
1975
1974
  var SCDateRange = ({
1976
1975
  labelDateInitial = "Fecha inicial",
@@ -2109,7 +2108,7 @@ var DrawerContent = ({ arrayElements }) => {
2109
2108
  label: arrayElement.label,
2110
2109
  data: (_c = arrayElement.data) != null ? _c : [],
2111
2110
  columnGroup: arrayElement.columnGroup,
2112
- getItemValue: (_d = arrayElement.getItemValue) != null ? _d : () => ({ text: "", value: "" }),
2111
+ getItemValue: (_d = arrayElement.getItemValue) != null ? _d : (() => ({ text: "", value: "" })),
2113
2112
  typeFormat: arrayElement.typeFormat,
2114
2113
  checkMassive: arrayElement.checkMassive,
2115
2114
  deleteType: arrayElement.deleteType,
@@ -2128,7 +2127,7 @@ var DrawerContent = ({ arrayElements }) => {
2128
2127
  {
2129
2128
  label: arrayElement.label,
2130
2129
  data: (_e = arrayElement.data) != null ? _e : [],
2131
- getItemValue: (_f = arrayElement.getItemValue) != null ? _f : () => ({ text: "", value: "" }),
2130
+ getItemValue: (_f = arrayElement.getItemValue) != null ? _f : (() => ({ text: "", value: "" })),
2132
2131
  width: arrayElement.width,
2133
2132
  size: arrayElement.size,
2134
2133
  variant: arrayElement.variant,
@@ -2173,7 +2172,7 @@ var DrawerContent = ({ arrayElements }) => {
2173
2172
  // src/Components/Drawer/components/DrawerActions.tsx
2174
2173
  import React14 from "react";
2175
2174
  import { Button as Button7 } from "@mui/material";
2176
- import Grid4 from "@mui/material/Grid2";
2175
+ import Grid4 from "@mui/material/Grid";
2177
2176
  var DrawerActions = ({ actions, anchor }) => {
2178
2177
  if (actions === false || actions === void 0) {
2179
2178
  return null;
@@ -2211,7 +2210,7 @@ var DrawerActions = ({ actions, anchor }) => {
2211
2210
  // src/Components/Drawer/components/DrawerHeader.tsx
2212
2211
  import React15 from "react";
2213
2212
  import { Typography as Typography9, IconButton as IconButton8 } from "@mui/material";
2214
- import Grid5 from "@mui/material/Grid2";
2213
+ import Grid5 from "@mui/material/Grid";
2215
2214
  import CloseIcon from "@mui/icons-material/Close";
2216
2215
  var DrawerHeader = ({
2217
2216
  title,
@@ -2583,7 +2582,7 @@ var PageHeader = ({
2583
2582
  // src/Components/SCCalendarSwipeable.tsx
2584
2583
  import React20, { useState as useState11 } from "react";
2585
2584
  import { Typography as Typography12, IconButton as IconButton9, Box as Box12 } from "@mui/material";
2586
- import Grid7 from "@mui/material/Grid2";
2585
+ import Grid7 from "@mui/material/Grid";
2587
2586
  import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
2588
2587
  import { LocalizationProvider as LocalizationProvider2 } from "@mui/x-date-pickers/LocalizationProvider";
2589
2588
  import { StaticDatePicker } from "@mui/x-date-pickers/StaticDatePicker";
@@ -2659,7 +2658,7 @@ var SCCalendarSwipeable = ({
2659
2658
  // src/Components/SCDataGrid.tsx
2660
2659
  import React21, { useEffect as useEffect14, useState as useState12 } from "react";
2661
2660
  import { DataGridPro, useGridApiRef } from "@mui/x-data-grid-pro";
2662
- import { LicenseInfo as LicenseInfo2 } from "@mui/x-license-pro";
2661
+ import { LicenseInfo as LicenseInfo2 } from "@mui/x-license";
2663
2662
  import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
2664
2663
  import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
2665
2664
  import { useTheme } from "@mui/material/styles";
@@ -3051,7 +3050,7 @@ var EmptyState = ({
3051
3050
  // src/Components/SCDialog.tsx
3052
3051
  import React27, { useEffect as useEffect15, useState as useState13 } from "react";
3053
3052
  import { Button as Button11, Typography as Typography14, Modal as Modal2, Dialog, DialogActions, DialogContent, DialogTitle, IconButton as IconButton10, Tooltip as Tooltip4, Box as Box13, SvgIcon as SvgIcon5 } from "@mui/material";
3054
- import Grid8 from "@mui/material/Grid2";
3053
+ import Grid8 from "@mui/material/Grid";
3055
3054
  import CloseIcon2 from "@mui/icons-material/Close";
3056
3055
  import * as Muicon5 from "@mui/icons-material";
3057
3056
  var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, disableClose, dividers, widthContent, heightContent, background, setShow, show }) => {
@@ -3136,7 +3135,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3136
3135
  padding: "12px 16px 8px 16px",
3137
3136
  background: background ? background : "white",
3138
3137
  height: !heightContent ? { xs: "60vh", sm: "70vh", md: "508px" } : heightContent,
3139
- width: () => {
3138
+ width: (() => {
3140
3139
  switch (widthContent) {
3141
3140
  case "extra-small":
3142
3141
  return { xs: "48vw", md: "33vw" };
@@ -3151,7 +3150,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3151
3150
  default:
3152
3151
  return { xs: "64vw", md: "56vw" };
3153
3152
  }
3154
- }
3153
+ })
3155
3154
  }
3156
3155
  },
3157
3156
  content.url ? /* @__PURE__ */ React27.createElement(
@@ -3210,7 +3209,7 @@ var SCDialog = ({ title, iconTitle, subtitle, content, actions, buttonDialog, di
3210
3209
  // src/Components/SCListContent.tsx
3211
3210
  import React28 from "react";
3212
3211
  import { Divider as Divider4, List, ListItemButton, ListItemIcon as ListItemIcon4, ListItemText as ListItemText3, SvgIcon as SvgIcon6 } from "@mui/material";
3213
- import Grid9 from "@mui/material/Grid2";
3212
+ import Grid9 from "@mui/material/Grid";
3214
3213
  import * as Muicon6 from "@mui/icons-material";
3215
3214
  var SCListContent = ({ options }) => {
3216
3215
  const [selectedIndex, setSelectedIndex] = React28.useState("1");
@@ -3252,7 +3251,7 @@ var SCListContent = ({ options }) => {
3252
3251
  // src/Components/SCMenu.tsx
3253
3252
  import React29 from "react";
3254
3253
  import { Box as Box15, Typography as Typography16, Paper as Paper2, Divider as Divider5, MenuList as MenuList2, MenuItem as MenuItem5, ListItemIcon as ListItemIcon5, SvgIcon as SvgIcon7 } from "@mui/material";
3255
- import Grid10 from "@mui/material/Grid2";
3254
+ import Grid10 from "@mui/material/Grid";
3256
3255
 
3257
3256
  // src/Components/Hooks/useWindowDimensions.ts
3258
3257
  import { useState as useState15, useEffect as useEffect17 } from "react";
@@ -4303,7 +4302,7 @@ import { LocalizationProvider as LocalizationProvider3 } from "@mui/x-date-picke
4303
4302
  import { AdapterDayjs as AdapterDayjs2 } from "@mui/x-date-pickers/AdapterDayjs";
4304
4303
  import dayjs10 from "dayjs";
4305
4304
  import "dayjs/locale/es";
4306
- import { LicenseInfo as LicenseInfo3 } from "@mui/x-license-pro";
4305
+ import { LicenseInfo as LicenseInfo3 } from "@mui/x-license";
4307
4306
  import AccessTimeIcon from "@mui/icons-material/AccessTime";
4308
4307
  import { TimeField } from "@mui/x-date-pickers/TimeField";
4309
4308
  import { DigitalClock } from "@mui/x-date-pickers/DigitalClock";
@@ -4524,7 +4523,7 @@ var SCCard = ({ title, image, iconTitle, actionsTitle, subtitle, content, action
4524
4523
  // src/Components/SCActivityCalendar.tsx
4525
4524
  import React42, { useState as useState22 } from "react";
4526
4525
  import { Typography as Typography26, IconButton as IconButton15, Box as Box26, Badge as Badge2 } from "@mui/material";
4527
- import Grid11 from "@mui/material/Grid2";
4526
+ import Grid11 from "@mui/material/Grid";
4528
4527
  import { AdapterDateFns as AdapterDateFns2 } from "@mui/x-date-pickers/AdapterDateFns";
4529
4528
  import { LocalizationProvider as LocalizationProvider4 } from "@mui/x-date-pickers/LocalizationProvider";
4530
4529
  import { StaticDatePicker as StaticDatePicker2 } from "@mui/x-date-pickers/StaticDatePicker";