@xsolla/xui-context-menu 0.233.0 → 0.235.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/native/index.d.mts +2 -0
- package/native/index.d.ts +2 -0
- package/native/index.js +2 -2
- package/native/index.js.map +1 -1
- package/native/index.mjs +2 -2
- package/native/index.mjs.map +1 -1
- package/package.json +10 -10
- package/web/index.d.mts +2 -0
- package/web/index.d.ts +2 -0
- package/web/index.js +2 -2
- package/web/index.js.map +1 -1
- package/web/index.mjs +2 -2
- package/web/index.mjs.map +1 -1
package/web/index.mjs
CHANGED
|
@@ -1117,7 +1117,7 @@ var ContextMenuSubmenu = ({
|
|
|
1117
1117
|
const context = useContextMenu();
|
|
1118
1118
|
const size = propSize || context?.size || "md";
|
|
1119
1119
|
const sizeStyles = xuiTheme.sizing.contextMenu(size);
|
|
1120
|
-
const borderRadius = xuiTheme.shape?.contextMenu?.[size]?.borderRadius ??
|
|
1120
|
+
const borderRadius = xuiTheme.shape?.contextMenu?.[size]?.borderRadius ?? sizeStyles.borderRadius;
|
|
1121
1121
|
const submenuIdRef = useRef(null);
|
|
1122
1122
|
if (submenuIdRef.current === null) {
|
|
1123
1123
|
submenuIdRef.current = `xui-cm-submenu-${_submenuIdCounter += 1}`;
|
|
@@ -1607,7 +1607,7 @@ var ContextMenuRoot = forwardRef(
|
|
|
1607
1607
|
const cellsRef = useRef3([]);
|
|
1608
1608
|
const isOpen = propIsOpen !== void 0 ? propIsOpen : internalIsOpen;
|
|
1609
1609
|
const sizeStyles = xuiTheme.sizing.contextMenu(size);
|
|
1610
|
-
const borderRadius = xuiTheme.shape?.contextMenu?.[size]?.borderRadius ??
|
|
1610
|
+
const borderRadius = xuiTheme.shape?.contextMenu?.[size]?.borderRadius ?? sizeStyles.borderRadius;
|
|
1611
1611
|
const panelPaddingVertical = noPadding ? 0 : sizeStyles.paddingVertical;
|
|
1612
1612
|
const panelPaddingHorizontal = noPadding ? 0 : sizeStyles.paddingHorizontal;
|
|
1613
1613
|
const shouldCloseOnSelect = closeOnSelect ?? (type === "checkbox" ? false : true);
|