@superdispatch/ui 0.17.1 → 0.18.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-node/index.js
CHANGED
|
@@ -420,19 +420,17 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
420
420
|
onClose: () => {
|
|
421
421
|
setMenuButtonRef(undefined);
|
|
422
422
|
},
|
|
423
|
-
children: menuItems.
|
|
423
|
+
children: menuItems.flatMap((item, index, arr) => {
|
|
424
424
|
var next = arr[index + 1];
|
|
425
|
-
return /*#__PURE__*/jsxRuntime.
|
|
426
|
-
|
|
427
|
-
onClick
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
}, item.key), next && next.menuGroupKey !== item.menuGroupKey && /*#__PURE__*/jsxRuntime.jsx(core.Divider, {})]
|
|
435
|
-
});
|
|
425
|
+
return [/*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
|
|
426
|
+
onClick: event => {
|
|
427
|
+
var _item$onClick;
|
|
428
|
+
|
|
429
|
+
(_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
|
|
430
|
+
setMenuButtonRef(undefined);
|
|
431
|
+
},
|
|
432
|
+
children: renderMenuItem(item)
|
|
433
|
+
}, item.key), next && next.menuGroupKey !== item.menuGroupKey && /*#__PURE__*/jsxRuntime.jsx(core.Divider, {}, "".concat(item.key, "-divider"))];
|
|
436
434
|
})
|
|
437
435
|
})]
|
|
438
436
|
})]
|