next-recomponents 1.9.96 → 1.9.98

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
@@ -35770,7 +35770,7 @@ function IHTable({
35770
35770
  }) {
35771
35771
  const [open, setOpen] = (0, import_react4.useState)(false);
35772
35772
  if (modal) {
35773
- buttons = { buttons, Modal: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { children: "Editar" }) };
35773
+ buttons = __spreadProps(__spreadValues({}, buttons), { Modal: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Button, { children: "Editar" }) });
35774
35774
  }
35775
35775
  const handleOpen = () => setOpen(true);
35776
35776
  const handleClose = () => {
@@ -36805,12 +36805,12 @@ function Modal({ button, children, ref, title = "" }) {
36805
36805
  }
36806
36806
  return child;
36807
36807
  }),
36808
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material3.Dialog, { open, onClose: hide, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "relative", children: [
36808
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_material3.Dialog, { open, onClose: hide, fullWidth: true, maxWidth: "xl", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "m-auto p-5", children: [
36809
36809
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
36810
36810
  "button",
36811
36811
  {
36812
36812
  onClick: hide,
36813
- className: "absolute top-0 right-0 text-red-500 p-5 ",
36813
+ className: "absolute top-0 right-0 text-red-500 ",
36814
36814
  children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CloseIcon2, {})
36815
36815
  }
36816
36816
  ),
package/dist/index.mjs CHANGED
@@ -35751,7 +35751,7 @@ function IHTable({
35751
35751
  }) {
35752
35752
  const [open, setOpen] = useState4(false);
35753
35753
  if (modal) {
35754
- buttons = { buttons, Modal: /* @__PURE__ */ jsx6(Button, { children: "Editar" }) };
35754
+ buttons = __spreadProps(__spreadValues({}, buttons), { Modal: /* @__PURE__ */ jsx6(Button, { children: "Editar" }) });
35755
35755
  }
35756
35756
  const handleOpen = () => setOpen(true);
35757
35757
  const handleClose = () => {
@@ -36792,12 +36792,12 @@ function Modal({ button, children, ref, title = "" }) {
36792
36792
  }
36793
36793
  return child;
36794
36794
  }),
36795
- /* @__PURE__ */ jsx12(Dialog2, { open, onClose: hide, children: /* @__PURE__ */ jsxs8("div", { className: "relative", children: [
36795
+ /* @__PURE__ */ jsx12(Dialog2, { open, onClose: hide, fullWidth: true, maxWidth: "xl", children: /* @__PURE__ */ jsxs8("div", { className: "m-auto p-5", children: [
36796
36796
  /* @__PURE__ */ jsx12(
36797
36797
  "button",
36798
36798
  {
36799
36799
  onClick: hide,
36800
- className: "absolute top-0 right-0 text-red-500 p-5 ",
36800
+ className: "absolute top-0 right-0 text-red-500 ",
36801
36801
  children: /* @__PURE__ */ jsx12(CloseIcon2, {})
36802
36802
  }
36803
36803
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-recomponents",
3
- "version": "1.9.96",
3
+ "version": "1.9.98",
4
4
  "description": "description nueva",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,12 +33,12 @@ export default function Modal({ button, children, ref, title = "" }: Props) {
33
33
  }
34
34
  return child;
35
35
  })}
36
- <Dialog open={open} onClose={hide}>
37
- <div className="relative">
36
+ <Dialog open={open} onClose={hide} fullWidth maxWidth="xl">
37
+ <div className="m-auto p-5">
38
38
  {/* Botón de cerrar en la esquina superior derecha */}
39
39
  <button
40
40
  onClick={hide}
41
- className="absolute top-0 right-0 text-red-500 p-5 "
41
+ className="absolute top-0 right-0 text-red-500 "
42
42
  >
43
43
  <CloseIcon />
44
44
  </button>
@@ -82,7 +82,7 @@ function IHTable({
82
82
  }: TableProps) {
83
83
  const [open, setOpen] = useState(false);
84
84
  if (modal) {
85
- buttons = { buttons, Modal: <Button>Editar</Button> };
85
+ buttons = { ...buttons, Modal: <Button>Editar</Button> };
86
86
  }
87
87
  const handleOpen = () => setOpen(true);
88
88
  const handleClose = () => {