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.cjs
CHANGED
|
@@ -345,7 +345,6 @@ var SCModal = ({
|
|
|
345
345
|
state = "info",
|
|
346
346
|
open,
|
|
347
347
|
setOpen,
|
|
348
|
-
// ✅ ahora también puedes pasar setOpen desde afuera
|
|
349
348
|
title,
|
|
350
349
|
description,
|
|
351
350
|
action
|
|
@@ -367,7 +366,7 @@ var SCModal = ({
|
|
|
367
366
|
[action, handleClose]
|
|
368
367
|
);
|
|
369
368
|
const { icon, defaultDescription } = modalStateConfig[state];
|
|
370
|
-
return /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement(
|
|
369
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, buttonModal && /* @__PURE__ */ import_react4.default.createElement(
|
|
371
370
|
import_material2.Button,
|
|
372
371
|
{
|
|
373
372
|
"data-testid": "test-buttonModal",
|
|
@@ -548,6 +547,7 @@ var Attachment = ({
|
|
|
548
547
|
type: "error",
|
|
549
548
|
title: "Tipo de archivo no permitido",
|
|
550
549
|
listITems: [`El archivo ${file.name} no es un tipo permitido.`],
|
|
550
|
+
seeMore: true,
|
|
551
551
|
time: 10
|
|
552
552
|
});
|
|
553
553
|
return;
|
|
@@ -628,7 +628,7 @@ var Attachment = ({
|
|
|
628
628
|
whiteSpace: "nowrap",
|
|
629
629
|
overflow: "hidden",
|
|
630
630
|
textOverflow: "ellipsis",
|
|
631
|
-
maxWidth: "
|
|
631
|
+
maxWidth: "450px"
|
|
632
632
|
},
|
|
633
633
|
error ? `${fileAccepted || "DOCX, XML, PNG, JPG"} \u2022 Archivo no soportado` : `${fileAccepted || "DOCX, XML, PNG, JPG"} \u2022 Max. ${maxSize}MB`
|
|
634
634
|
)),
|
|
@@ -673,14 +673,7 @@ var Attachment = ({
|
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
},
|
|
676
|
-
/* @__PURE__ */ import_react5.default.createElement(import_material3.Stack, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ import_react5.default.createElement(import_icons_material5.UploadFileOutlined, { color: file.uploadError ? "error" : "primary", fontSize: "small" }), /* @__PURE__ */ import_react5.default.createElement(import_material3.Stack, { width: "100%" }, /* @__PURE__ */ import_react5.default.createElement(import_material3.Typography, { variant: "body2", color: "text.primary", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", maxWidth: "210px" }, file.name), /* @__PURE__ */ import_react5.default.createElement(import_material3.Typography, { 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}
|
|
677
|
-
import_material3.LinearProgress,
|
|
678
|
-
{
|
|
679
|
-
variant: "determinate",
|
|
680
|
-
color: file.uploadError ? "error" : "primary",
|
|
681
|
-
value: file.progress
|
|
682
|
-
}
|
|
683
|
-
))),
|
|
676
|
+
/* @__PURE__ */ import_react5.default.createElement(import_material3.Stack, { direction: "row", alignItems: "center", gap: 1, width: "100%" }, /* @__PURE__ */ import_react5.default.createElement(import_icons_material5.UploadFileOutlined, { color: file.uploadError ? "error" : "primary", fontSize: "small" }), /* @__PURE__ */ import_react5.default.createElement(import_material3.Stack, { width: "100%" }, /* @__PURE__ */ import_react5.default.createElement(import_material3.Typography, { variant: "body2", color: "text.primary", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", maxWidth: "210px" }, file.name), /* @__PURE__ */ import_react5.default.createElement(import_material3.Typography, { 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}`))),
|
|
684
677
|
/* @__PURE__ */ import_react5.default.createElement(import_material3.Tooltip, { title: "Descargar" }, /* @__PURE__ */ import_react5.default.createElement(import_material3.IconButton, { size: "small", onClick: downloadAction }, /* @__PURE__ */ import_react5.default.createElement(import_icons_material5.FileDownload, { fontSize: "small", color: "action" }))),
|
|
685
678
|
/* @__PURE__ */ import_react5.default.createElement(import_material3.Tooltip, { title: "Eliminar" }, /* @__PURE__ */ import_react5.default.createElement(import_material3.IconButton, { size: "small", onClick: () => {
|
|
686
679
|
setFileToDelete(file);
|