@popmenu/table 0.54.0 → 0.55.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/build/index.es.js CHANGED
@@ -3345,9 +3345,12 @@ var RowActions = function (props) {
3345
3345
  overflowActions = restActions;
3346
3346
  }
3347
3347
  return (React__default.createElement(Box, { display: "flex" },
3348
- mainActions.map(function (action) { return (React__default.createElement(Tooltip$1, { title: action.label, key: action.label },
3349
- React__default.createElement(IconButton$1, { size: "small", onClick: function () { return action.onClick(context); } },
3350
- React__default.createElement(Icon$1, { icon: action.icon })))); }),
3348
+ mainActions.map(function (_a) {
3349
+ var label = _a.label, onClick = _a.onClick, icon = _a.icon, restProps = __rest$3(_a, ["label", "onClick", "icon"]);
3350
+ return (React__default.createElement(Tooltip$1, { title: label, key: label },
3351
+ React__default.createElement(IconButton$1, __assign$3({ size: "small", onClick: function () { return onClick(context); } }, restProps),
3352
+ React__default.createElement(Icon$1, { icon: icon }))));
3353
+ }),
3351
3354
  overflowActions && (React__default.createElement(React__default.Fragment, null,
3352
3355
  React__default.createElement(IconButton$1, { size: "small", onClick: openMenu },
3353
3356
  React__default.createElement(Icon$1, { icon: SvgMore })),