componentes-sinco 1.0.13 → 1.0.14
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.cjs +4 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
|
|
33
33
|
// src/Components/Adjuntar/Adjuntar.tsx
|
|
34
34
|
import React4, { useEffect as useEffect4, useRef, useState as useState4 } from "react";
|
|
35
|
-
import { Box as Box3, Button as Button3, CircularProgress, IconButton as IconButton3,
|
|
35
|
+
import { Box as Box3, Button as Button3, CircularProgress, IconButton as IconButton3, Stack as Stack3, Tooltip, Typography as Typography3 } from "@mui/material";
|
|
36
36
|
import { CloudUploadOutlined, AttachFileOutlined, DeleteOutline, UploadFileOutlined, FileDownload } from "@mui/icons-material";
|
|
37
37
|
|
|
38
38
|
// src/Components/ToastNotification/SCToastNotification.tsx
|
|
@@ -277,7 +277,6 @@ var SCModal = ({
|
|
|
277
277
|
state = "info",
|
|
278
278
|
open,
|
|
279
279
|
setOpen,
|
|
280
|
-
// ✅ ahora también puedes pasar setOpen desde afuera
|
|
281
280
|
title,
|
|
282
281
|
description,
|
|
283
282
|
action
|
|
@@ -299,7 +298,7 @@ var SCModal = ({
|
|
|
299
298
|
[action, handleClose]
|
|
300
299
|
);
|
|
301
300
|
const { icon, defaultDescription } = modalStateConfig[state];
|
|
302
|
-
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(
|
|
301
|
+
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, buttonModal && /* @__PURE__ */ React3.createElement(
|
|
303
302
|
Button2,
|
|
304
303
|
{
|
|
305
304
|
"data-testid": "test-buttonModal",
|
|
@@ -480,6 +479,7 @@ var Attachment = ({
|
|
|
480
479
|
type: "error",
|
|
481
480
|
title: "Tipo de archivo no permitido",
|
|
482
481
|
listITems: [`El archivo ${file.name} no es un tipo permitido.`],
|
|
482
|
+
seeMore: true,
|
|
483
483
|
time: 10
|
|
484
484
|
});
|
|
485
485
|
return;
|
|
@@ -560,7 +560,7 @@ var Attachment = ({
|
|
|
560
560
|
whiteSpace: "nowrap",
|
|
561
561
|
overflow: "hidden",
|
|
562
562
|
textOverflow: "ellipsis",
|
|
563
|
-
maxWidth: "
|
|
563
|
+
maxWidth: "450px"
|
|
564
564
|
},
|
|
565
565
|
error ? `${fileAccepted || "DOCX, XML, PNG, JPG"} \u2022 Archivo no soportado` : `${fileAccepted || "DOCX, XML, PNG, JPG"} \u2022 Max. ${maxSize}MB`
|
|
566
566
|
)),
|
|
@@ -605,14 +605,7 @@ var Attachment = ({
|
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
},
|
|
608
|
-
/* @__PURE__ */ React4.createElement(Stack3, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ React4.createElement(UploadFileOutlined, { color: file.uploadError ? "error" : "primary", fontSize: "small" }), /* @__PURE__ */ React4.createElement(Stack3, { width: "100%" }, /* @__PURE__ */ React4.createElement(Typography3, { variant: "body2", color: "text.primary", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", maxWidth: "210px" }, file.name), /* @__PURE__ */ React4.createElement(Typography3, { variant: "caption", color: file.uploadError ? "error" : "text.secondary" }, file.uploadError && file.size / (1024 * 1024) > maxSize ? "Archivo super\xF3 el l\xEDmite \u2022 Carga fallida" : file.uploadError ? "Archivo duplicado o inv\xE1lido \u2022 Carga fallida" : `${(file.size / (1024 * 1024)).toFixed(2)}MB \u2022 ${file.type}
|
|
609
|
-
LinearProgress2,
|
|
610
|
-
{
|
|
611
|
-
variant: "determinate",
|
|
612
|
-
color: file.uploadError ? "error" : "primary",
|
|
613
|
-
value: file.progress
|
|
614
|
-
}
|
|
615
|
-
))),
|
|
608
|
+
/* @__PURE__ */ React4.createElement(Stack3, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ React4.createElement(UploadFileOutlined, { color: file.uploadError ? "error" : "primary", fontSize: "small" }), /* @__PURE__ */ React4.createElement(Stack3, { width: "100%" }, /* @__PURE__ */ React4.createElement(Typography3, { variant: "body2", color: "text.primary", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", maxWidth: "210px" }, file.name), /* @__PURE__ */ React4.createElement(Typography3, { variant: "caption", color: file.uploadError ? "error" : "text.secondary" }, file.uploadError && file.size / (1024 * 1024) > maxSize ? "Archivo super\xF3 el l\xEDmite \u2022 Carga fallida" : file.uploadError ? "Archivo duplicado o inv\xE1lido \u2022 Carga fallida" : `${(file.size / (1024 * 1024)).toFixed(2)}MB \u2022 ${file.type}`))),
|
|
616
609
|
/* @__PURE__ */ React4.createElement(Tooltip, { title: "Descargar" }, /* @__PURE__ */ React4.createElement(IconButton3, { size: "small", onClick: downloadAction }, /* @__PURE__ */ React4.createElement(FileDownload, { fontSize: "small", color: "action" }))),
|
|
617
610
|
/* @__PURE__ */ React4.createElement(Tooltip, { title: "Eliminar" }, /* @__PURE__ */ React4.createElement(IconButton3, { size: "small", onClick: () => {
|
|
618
611
|
setFileToDelete(file);
|