componentes-sinco 1.1.1 → 1.1.3

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 CHANGED
@@ -4995,7 +4995,6 @@ var AttachmentMobile = ({
4995
4995
  maxSize = 400,
4996
4996
  fileAccepted = "",
4997
4997
  initialFiles,
4998
- setAttachedFiles,
4999
4998
  deleteAction,
5000
4999
  children,
5001
5000
  onChange,
@@ -5113,7 +5112,6 @@ var AttachmentMobile = ({
5113
5112
  if (nuevosArchivos.length > 0) {
5114
5113
  setFiles((prevFiles) => {
5115
5114
  const updatedFiles = [...prevFiles, ...nuevosArchivos];
5116
- setAttachedFiles(updatedFiles);
5117
5115
  if (archivosValidos.length > 0) {
5118
5116
  onChange == null ? void 0 : onChange([
5119
5117
  ...archivosValidos,
@@ -5135,7 +5133,6 @@ var AttachmentMobile = ({
5135
5133
  (file) => !(file.name === fileToRemove.name && file.size === fileToRemove.size)
5136
5134
  );
5137
5135
  setFiles(updatedFiles);
5138
- setAttachedFiles(updatedFiles);
5139
5136
  if (onChange) {
5140
5137
  const remainingValidFiles = updatedFiles.filter((f) => !f.uploadError).map((f) => new File([], f.name, { type: f.type }));
5141
5138
  onChange(remainingValidFiles);
@@ -5171,7 +5168,6 @@ var AttachmentMobile = ({
5171
5168
  (0, import_react52.useEffect)(() => {
5172
5169
  if (initialFiles && initialFiles.length > 0) {
5173
5170
  setFiles(initialFiles);
5174
- setAttachedFiles(initialFiles);
5175
5171
  }
5176
5172
  }, []);
5177
5173
  return /* @__PURE__ */ import_react52.default.createElement(import_system.Box, { display: "flex", flexDirection: "column", gap: 1 }, /* @__PURE__ */ import_react52.default.createElement(import_system.Box, { display: "flex", width: "100%", justifyContent: "space-between", alignItems: "center", sx }, children, /* @__PURE__ */ import_react52.default.createElement(
@@ -5352,7 +5348,7 @@ var AttachmentMobile = ({
5352
5348
  ));
5353
5349
  };
5354
5350
 
5355
- // src/Components/SCSnackbar.tsx
5351
+ // src/Components/SCSnackBar.tsx
5356
5352
  var import_react53 = __toESM(require("react"), 1);
5357
5353
  var import_Alert = __toESM(require("@mui/material/Alert"), 1);
5358
5354
  var import_es4 = require("dayjs/locale/es");