@monolith-forensics/monolith-ui 1.3.20 → 1.3.21
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.
|
@@ -63,7 +63,7 @@ const TableMenu = () => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
const renderCustomMenuItems = (args) => {
|
|
66
|
-
return customMenuItems === null || customMenuItems === void 0 ? void 0 : customMenuItems.filter((item) => (item.
|
|
66
|
+
return customMenuItems === null || customMenuItems === void 0 ? void 0 : customMenuItems.filter((item) => (item.position || "left") === args.position).map((item, index) => {
|
|
67
67
|
if (item.type === "button") {
|
|
68
68
|
return _jsx(Button, Object.assign({ size: "xxs" }, item.options), index);
|
|
69
69
|
}
|
package/dist/Table/types.d.ts
CHANGED
|
@@ -213,15 +213,15 @@ export type TableFilterOptions = {
|
|
|
213
213
|
};
|
|
214
214
|
export type CustomTableMenuItem = {
|
|
215
215
|
type: "button";
|
|
216
|
-
|
|
216
|
+
position?: "left" | "right";
|
|
217
217
|
options: ButtonProps;
|
|
218
218
|
} | {
|
|
219
219
|
type: "menu";
|
|
220
|
-
|
|
220
|
+
position?: "left" | "right";
|
|
221
221
|
options: DropDownMenuProps;
|
|
222
222
|
} | {
|
|
223
223
|
type: "switch";
|
|
224
|
-
|
|
224
|
+
position?: "left" | "right";
|
|
225
225
|
options: SwitchProps;
|
|
226
226
|
};
|
|
227
227
|
export type TableMenuOptions = {
|