componentes-sinco 1.1.16 → 1.1.18

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
@@ -138,7 +138,7 @@ declare const ToastProgress: (timeProgress: number) => {
138
138
  progressToast: number;
139
139
  };
140
140
 
141
- declare function SCDrawer<T>({ title, arrayElements, actions, buttonDrawer, colorTitle, anchor, width, open, setOpen, chipFilters, heightDrawer, filterSideCard, ref, }: DrawerProps<T>): React__default.JSX.Element;
141
+ declare function SCDrawer<T>({ title, arrayElements, actions, buttonDrawer, colorTitle, anchor, width, open, setOpen, chipFilters, heightDrawer, filterSideCard, }: DrawerProps<T>): React__default.JSX.Element;
142
142
 
143
143
  interface FooterActionsProperties {
144
144
  label?: React.ReactNode;
package/dist/index.d.ts CHANGED
@@ -138,7 +138,7 @@ declare const ToastProgress: (timeProgress: number) => {
138
138
  progressToast: number;
139
139
  };
140
140
 
141
- declare function SCDrawer<T>({ title, arrayElements, actions, buttonDrawer, colorTitle, anchor, width, open, setOpen, chipFilters, heightDrawer, filterSideCard, ref, }: DrawerProps<T>): React__default.JSX.Element;
141
+ declare function SCDrawer<T>({ title, arrayElements, actions, buttonDrawer, colorTitle, anchor, width, open, setOpen, chipFilters, heightDrawer, filterSideCard, }: DrawerProps<T>): React__default.JSX.Element;
142
142
 
143
143
  interface FooterActionsProperties {
144
144
  label?: React.ReactNode;
package/dist/index.js CHANGED
@@ -2308,8 +2308,7 @@ function SCDrawer({
2308
2308
  setOpen,
2309
2309
  chipFilters,
2310
2310
  heightDrawer = 456,
2311
- filterSideCard,
2312
- ref
2311
+ filterSideCard
2313
2312
  }) {
2314
2313
  const drawerBleeding = heightDrawer;
2315
2314
  const { drawerOpen, handleDrawerClose, toggleDrawer } = useDrawerState({ open, setOpen });
@@ -2336,7 +2335,6 @@ function SCDrawer({
2336
2335
  );
2337
2336
  }
2338
2337
  };
2339
- const containerRef = React16.useRef(null);
2340
2338
  const handleCleanFilters = () => {
2341
2339
  cleanAllFilters(arrayElements, setTextFilters);
2342
2340
  };
@@ -2383,14 +2381,18 @@ function SCDrawer({
2383
2381
  anchor: anchor != null ? anchor : "left",
2384
2382
  sx: {
2385
2383
  "& .MuiDrawer-paper": {
2386
- width: width != null ? width : "450px",
2384
+ width: filterSideCard ? "100%" : width != null ? width : "450px",
2387
2385
  boxSizing: "border-box",
2388
- borderRadius: anchor !== "right" ? "0px 4px 4px 0px" : "4px 0px 0px 4px"
2386
+ borderRadius: anchor !== "right" ? "0px 4px 4px 0px" : "4px 0px 0px 4px",
2387
+ boxShadow: filterSideCard ? "none !important" : "0px 8px 10px -5px rgba(24, 39, 75, 0.2), 0px 16px 24px 2px rgba(24, 39, 75, 0.14), 0px 6px 30px 5px rgba(24, 39, 75, 0.12)"
2388
+ },
2389
+ "&.MuiDrawer-root": {
2390
+ boxShadow: filterSideCard ? "none !important" : "0px 3px 1px -2px rgba(24, 39, 75, 0.20),0px 2px 2px 0px rgba(24, 39, 75, 0.14),0px 1px 5px 0px rgba(24, 39, 75, 0.12)"
2389
2391
  }
2390
2392
  },
2391
2393
  ModalProps: {
2392
- container: ref == null ? void 0 : ref.current,
2393
2394
  keepMounted: true,
2395
+ disablePortal: filterSideCard ? true : false,
2394
2396
  slotProps: {
2395
2397
  root: {
2396
2398
  style: {
@@ -2402,14 +2404,10 @@ function SCDrawer({
2402
2404
  hideBackdrop: true,
2403
2405
  PaperProps: {
2404
2406
  sx: {
2405
- // El Drawer (Paper) se posiciona relativo al contenedor
2406
2407
  position: "absolute !important",
2407
2408
  height: "100%",
2408
- // para que ocupe toda la altura del contenedor
2409
2409
  width: 300,
2410
- // ajusta el ancho como quieras
2411
2410
  right: 0
2412
- // si usas 'top/bottom/left' cámbialos según tu anchor
2413
2411
  }
2414
2412
  }
2415
2413
  },
@@ -3002,8 +3000,8 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, rowsTable, r
3002
3000
  let validationTreeData = groupColumns ? true : false;
3003
3001
  let validationCheckboxSelection = checkboxSelection || false;
3004
3002
  let styleDensity = density || "compact";
3005
- let styleTopContainerHeight = styleDensity === "compact" ? "26px" : styleDensity === "standard" ? "38px" : styleDensity === "comfortable" ? "60px" : "27px";
3006
- let styleRowHeight = density == "compact" ? 32 : density == "standard" ? 28 : density == "comfortable" ? 36 : 32;
3003
+ let styleTopContainerHeight = styleDensity === "compact" ? "26px" : styleDensity === "standard" ? "32px" : styleDensity === "comfortable" ? "40px" : "26px";
3004
+ let styleRowHeight = density == "compact" ? 32 : density == "standard" ? 28 : density == "comfortable" ? 31 : 32;
3007
3005
  let rows = rowsTable ? rowsTable : validationTreeData != false ? parseInt(data.length.toString()) : data.length < 10 ? parseInt(data.length.toString()) : 10;
3008
3006
  let validationGroupingColDef = groupingColDefs || {};
3009
3007
  const [groupDataLenght, setGroupDataLengh] = useState13(0);
@@ -3147,8 +3145,8 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, rowsTable, r
3147
3145
  noRowsLabel: "No hay filas",
3148
3146
  columnMenuLabel: "Men\xFA de columna",
3149
3147
  footerTotalRows: "Filas Totales:",
3150
- footerRowSelected: (count) => `${count.toLocaleString()} fila(s) seleccionada(s)`,
3151
- // Ejemplo de traducción dinámica
3148
+ footerRowSelected: () => "",
3149
+ // Ejemplo de traducción dinámica para que diga cuantas filas selecciono count => `${count.toLocaleString()} fila(s) seleccionada(s)`
3152
3150
  MuiTablePagination: {
3153
3151
  labelRowsPerPage: "Filas por p\xE1gina:",
3154
3152
  labelDisplayedRows: ({ from, to, count }) => `${from}\u2013${to} de ${count !== -1 ? count : `m\xE1s de ${to}`}`
@@ -3186,7 +3184,7 @@ function SCDataGridInitial({ data, columns, getRowId, groupColumns, rowsTable, r
3186
3184
  "maxHeight": "0px !important"
3187
3185
  },
3188
3186
  "& .MuiDataGrid-cell": {
3189
- padding: "0 !important",
3187
+ //padding: '0 !important', //padding de cada celda
3190
3188
  background: "white"
3191
3189
  },
3192
3190
  // Fila seleccionada (cuando selectionModel selecciona filas)
@@ -5622,8 +5620,7 @@ var SCDatePicker = ({ label, required, disabled, background, state, setState, wi
5622
5620
  width: width || "100%",
5623
5621
  background: background || "transparent",
5624
5622
  "& .MuiPickersInputBase-sectionsContainer": {
5625
- padding: "8px 0px",
5626
- height: "32px"
5623
+ padding: "6px 0px"
5627
5624
  }
5628
5625
  },
5629
5626
  slotProps: {
@@ -5761,25 +5758,25 @@ var components = {
5761
5758
  {
5762
5759
  props: { density: "compact" },
5763
5760
  style: {
5764
- "--height": "24px",
5765
- minHeight: "24px !important",
5766
- maxHeight: "24px !important"
5761
+ "--height": "26px",
5762
+ minHeight: "26px !important",
5763
+ maxHeight: "26px !important"
5767
5764
  }
5768
5765
  },
5769
5766
  {
5770
5767
  props: { density: "standard" },
5771
5768
  style: {
5772
- "--height": "36px",
5773
- minHeight: "36px !important",
5774
- maxHeight: "36px !important"
5769
+ "--height": "32px",
5770
+ minHeight: "32px !important",
5771
+ maxHeight: "32px !important"
5775
5772
  }
5776
5773
  },
5777
5774
  {
5778
5775
  props: { density: "comfortable" },
5779
5776
  style: {
5780
- "--height": "52px",
5781
- minHeight: "52px !important",
5782
- maxHeight: "52px !important"
5777
+ "--height": "40px",
5778
+ minHeight: "40px !important",
5779
+ maxHeight: "40px !important"
5783
5780
  }
5784
5781
  }
5785
5782
  ]
@@ -5789,25 +5786,25 @@ var components = {
5789
5786
  {
5790
5787
  props: { density: "compact" },
5791
5788
  style: {
5792
- "--height": "24px",
5793
- minHeight: "24px !important",
5794
- maxHeight: "24px !important"
5789
+ "--height": "26px",
5790
+ minHeight: "26px !important",
5791
+ maxHeight: "26px !important"
5795
5792
  }
5796
5793
  },
5797
5794
  {
5798
5795
  props: { density: "standard" },
5799
5796
  style: {
5800
- "--height": "36px",
5801
- minHeight: "36px !important",
5802
- maxHeight: "36px !important"
5797
+ "--height": "32px",
5798
+ minHeight: "32px !important",
5799
+ maxHeight: "32px !important"
5803
5800
  }
5804
5801
  },
5805
5802
  {
5806
5803
  props: { density: "comfortable" },
5807
5804
  style: {
5808
- "--height": "52px",
5809
- minHeight: "52px !important",
5810
- maxHeight: "52px !important"
5805
+ "--height": "40px",
5806
+ minHeight: "40px !important",
5807
+ maxHeight: "40px !important"
5811
5808
  }
5812
5809
  }
5813
5810
  ]
@@ -5820,25 +5817,25 @@ var components = {
5820
5817
  {
5821
5818
  props: { density: "compact" },
5822
5819
  style: {
5823
- "--height": "24px",
5824
- minHeight: "24px !important",
5825
- maxHeight: "24px !important"
5820
+ "--height": "26px",
5821
+ minHeight: "26px !important",
5822
+ maxHeight: "26px !important"
5826
5823
  }
5827
5824
  },
5828
5825
  {
5829
5826
  props: { density: "standard" },
5830
5827
  style: {
5831
- "--height": "36px",
5832
- minHeight: "36px !important",
5833
- maxHeight: "36px !important"
5828
+ "--height": "32px",
5829
+ minHeight: "32px !important",
5830
+ maxHeight: "32px !important"
5834
5831
  }
5835
5832
  },
5836
5833
  {
5837
5834
  props: { density: "comfortable" },
5838
5835
  style: {
5839
- "--height": "52px",
5840
- minHeight: "52px !important",
5841
- maxHeight: "52px !important"
5836
+ "--height": "40px",
5837
+ minHeight: "40px !important",
5838
+ maxHeight: "40px !important"
5842
5839
  }
5843
5840
  }
5844
5841
  ]
@@ -5871,9 +5868,9 @@ var components = {
5871
5868
  {
5872
5869
  props: { density: "comfortable" },
5873
5870
  style: {
5874
- "--height": "48px",
5875
- minHeight: "48px !important",
5876
- maxHeight: "48px !important"
5871
+ "--height": "40px",
5872
+ minHeight: "40px !important",
5873
+ maxHeight: "40px !important"
5877
5874
  }
5878
5875
  }
5879
5876
  ]
@@ -5906,9 +5903,9 @@ var components = {
5906
5903
  {
5907
5904
  props: { density: "comfortable" },
5908
5905
  style: {
5909
- "--height": "48px",
5910
- minHeight: "48px !important",
5911
- maxHeight: "48px !important"
5906
+ "--height": "40px",
5907
+ minHeight: "40px !important",
5908
+ maxHeight: "40px !important"
5912
5909
  }
5913
5910
  }
5914
5911
  ],