next-recomponents 1.9.99 → 2.0.0
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 +15 -11
- package/dist/index.mjs +15 -11
- package/package.json +1 -1
- package/src/table/index.tsx +3 -2
package/dist/index.js
CHANGED
|
@@ -35785,7 +35785,7 @@ function IHTable({
|
|
|
35785
35785
|
}) {
|
|
35786
35786
|
const [open, setOpen] = (0, import_react4.useState)(false);
|
|
35787
35787
|
if (modal) {
|
|
35788
|
-
buttons = __spreadProps(__spreadValues({}, buttons), { Modal:
|
|
35788
|
+
buttons = __spreadProps(__spreadValues({}, buttons), { Modal: "" });
|
|
35789
35789
|
}
|
|
35790
35790
|
const handleOpen = () => setOpen(true);
|
|
35791
35791
|
const handleClose = () => {
|
|
@@ -35831,16 +35831,20 @@ function IHTable({
|
|
|
35831
35831
|
flex,
|
|
35832
35832
|
editable: false,
|
|
35833
35833
|
type: "string",
|
|
35834
|
-
renderCell: (params) =>
|
|
35835
|
-
|
|
35836
|
-
|
|
35837
|
-
|
|
35838
|
-
|
|
35839
|
-
|
|
35840
|
-
|
|
35841
|
-
|
|
35842
|
-
|
|
35843
|
-
|
|
35834
|
+
renderCell: (params) => {
|
|
35835
|
+
var _a;
|
|
35836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
35837
|
+
Button,
|
|
35838
|
+
{
|
|
35839
|
+
className: "text-xs",
|
|
35840
|
+
onClick: () => {
|
|
35841
|
+
handleOpen();
|
|
35842
|
+
},
|
|
35843
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(EditIcon, {}),
|
|
35844
|
+
children: (_a = params == null ? void 0 : params.row) == null ? void 0 : _a["Modal"]
|
|
35845
|
+
}
|
|
35846
|
+
);
|
|
35847
|
+
}
|
|
35844
35848
|
});
|
|
35845
35849
|
}
|
|
35846
35850
|
return arr;
|
package/dist/index.mjs
CHANGED
|
@@ -35766,7 +35766,7 @@ function IHTable({
|
|
|
35766
35766
|
}) {
|
|
35767
35767
|
const [open, setOpen] = useState4(false);
|
|
35768
35768
|
if (modal) {
|
|
35769
|
-
buttons = __spreadProps(__spreadValues({}, buttons), { Modal:
|
|
35769
|
+
buttons = __spreadProps(__spreadValues({}, buttons), { Modal: "" });
|
|
35770
35770
|
}
|
|
35771
35771
|
const handleOpen = () => setOpen(true);
|
|
35772
35772
|
const handleClose = () => {
|
|
@@ -35812,16 +35812,20 @@ function IHTable({
|
|
|
35812
35812
|
flex,
|
|
35813
35813
|
editable: false,
|
|
35814
35814
|
type: "string",
|
|
35815
|
-
renderCell: (params) =>
|
|
35816
|
-
|
|
35817
|
-
|
|
35818
|
-
|
|
35819
|
-
|
|
35820
|
-
|
|
35821
|
-
|
|
35822
|
-
|
|
35823
|
-
|
|
35824
|
-
|
|
35815
|
+
renderCell: (params) => {
|
|
35816
|
+
var _a;
|
|
35817
|
+
return /* @__PURE__ */ jsx6(
|
|
35818
|
+
Button,
|
|
35819
|
+
{
|
|
35820
|
+
className: "text-xs",
|
|
35821
|
+
onClick: () => {
|
|
35822
|
+
handleOpen();
|
|
35823
|
+
},
|
|
35824
|
+
icon: /* @__PURE__ */ jsx6(EditIcon, {}),
|
|
35825
|
+
children: (_a = params == null ? void 0 : params.row) == null ? void 0 : _a["Modal"]
|
|
35826
|
+
}
|
|
35827
|
+
);
|
|
35828
|
+
}
|
|
35825
35829
|
});
|
|
35826
35830
|
}
|
|
35827
35831
|
return arr;
|
package/package.json
CHANGED
package/src/table/index.tsx
CHANGED
|
@@ -96,7 +96,7 @@ function IHTable({
|
|
|
96
96
|
}: TableProps) {
|
|
97
97
|
const [open, setOpen] = useState(false);
|
|
98
98
|
if (modal) {
|
|
99
|
-
buttons = { ...buttons, Modal:
|
|
99
|
+
buttons = { ...buttons, Modal: "" };
|
|
100
100
|
}
|
|
101
101
|
const handleOpen = () => setOpen(true);
|
|
102
102
|
const handleClose = () => {
|
|
@@ -154,8 +154,9 @@ function IHTable({
|
|
|
154
154
|
onClick={() => {
|
|
155
155
|
handleOpen();
|
|
156
156
|
}}
|
|
157
|
+
icon={<EditIcon />}
|
|
157
158
|
>
|
|
158
|
-
|
|
159
|
+
{params?.row?.["Modal"]}
|
|
159
160
|
</Button>
|
|
160
161
|
) as any,
|
|
161
162
|
});
|