@pdg/react-table 1.0.26 → 1.0.27
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
CHANGED
|
@@ -9633,7 +9633,7 @@ TableButton.defaultProps = TableButtonDefaultProps;var TableMenuButtonDefaultPro
|
|
|
9633
9633
|
placement: 'bottom',
|
|
9634
9634
|
};var TableMenuButton = React__default["default"].forwardRef(function (_a, ref) {
|
|
9635
9635
|
// ID ----------------------------------------------------------------------------------------------------------------
|
|
9636
|
-
var children = _a.children, className = _a.className, initSx = _a.sx, color = _a.color, icon = _a.icon, startIcon = _a.startIcon, endIcon = _a.endIcon, placement = _a.placement, menuList = _a.menuList, props = __rest$1(_a, ["children", "className", "sx", "color", "icon", "startIcon", "endIcon", "placement", "menuList"]);
|
|
9636
|
+
var children = _a.children, className = _a.className, initSx = _a.sx, color = _a.color, icon = _a.icon, startIcon = _a.startIcon, endIcon = _a.endIcon, placement = _a.placement, inModal = _a.inModal, zIndex = _a.zIndex, menuList = _a.menuList, props = __rest$1(_a, ["children", "className", "sx", "color", "icon", "startIcon", "endIcon", "placement", "inModal", "zIndex", "menuList"]);
|
|
9637
9637
|
var buttonId = React.useId();
|
|
9638
9638
|
var menuId = React.useId();
|
|
9639
9639
|
// Use ---------------------------------------------------------------------------------------------------------------
|
|
@@ -9706,7 +9706,7 @@ TableButton.defaultProps = TableButtonDefaultProps;var TableMenuButtonDefaultPro
|
|
|
9706
9706
|
}, id: buttonId, "aria-controls": open ? menuId : undefined, "aria-expanded": open ? 'true' : undefined, "aria-haspopup": 'true', className: classNames(className, 'TableMenuButton'), type: 'button', size: 'small', sx: sx, color: color, onClick: handleClick, startIcon: startIcon ? (React__default["default"].createElement(TableIcon, { fontSize: 'small', sx: { mr: -0.5 } }, startIcon)) : undefined, endIcon: endIcon ? (React__default["default"].createElement(TableIcon, { fontSize: 'small', sx: { ml: -0.5 } }, endIcon)) : undefined }, props),
|
|
9707
9707
|
icon && (React__default["default"].createElement(TableIcon, { fontSize: 'small', color: color }, icon)),
|
|
9708
9708
|
children),
|
|
9709
|
-
React__default["default"].createElement(material.Popper, { open: open, anchorEl: anchorRef.current, role: undefined, placement: placement, transition: true }, function (_a) {
|
|
9709
|
+
React__default["default"].createElement(material.Popper, { open: open, anchorEl: anchorRef.current, role: undefined, placement: placement, transition: true, style: { zIndex: inModal ? (zIndex === undefined ? 1301 : zIndex) : zIndex } }, function (_a) {
|
|
9710
9710
|
var TransitionProps = _a.TransitionProps, placement = _a.placement;
|
|
9711
9711
|
return (React__default["default"].createElement(material.Grow, __assign$1({}, TransitionProps, { style: {
|
|
9712
9712
|
transformOrigin: placement === 'bottom-start' ? 'left top' : 'left bottom',
|