@tap-payments/os-micro-frontend-shared 0.1.181-test.1 → 0.1.181-test.2-test.3-test.4
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.
|
@@ -21,6 +21,7 @@ function Menu(_a) {
|
|
|
21
21
|
// Count only children with className "menu-item"
|
|
22
22
|
const menuItemCount = Children.toArray(children).filter((child) => { var _a, _b; return isValidElement(child) && ((_b = (_a = child.props) === null || _a === void 0 ? void 0 : _a.className) === null || _b === void 0 ? void 0 : _b.includes('menu-item')); }).length;
|
|
23
23
|
const shouldShowShadow = menuItemCount > 12 && showShadow;
|
|
24
|
-
|
|
24
|
+
console.log({ children, menuItemCount, showShadow, shouldShowShadow });
|
|
25
|
+
return (_jsx(Popper, Object.assign({ open: open, anchorEl: anchorEl, placement: placement || 'bottom-start', sx: popperSx }, props, { children: _jsxs(StyledDropdown, Object.assign({ onScroll: onScrollHandler, className: "MuiPopper-dropdown", sx: sx }, { children: [children, shouldShowShadow && _jsx(ShadowBackground, { bgcolor: "red", component: "img", src: listShadowBg })] })) }), "menu"));
|
|
25
26
|
}
|
|
26
27
|
export default memo(Menu);
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.181-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.181-test.2-test.3-test.4",
|
|
5
|
+
"testVersion": 4,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|