@xsolla/xui-context-menu 0.202.3 → 0.202.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.
@@ -141,6 +141,7 @@ interface ContextMenuContextValue {
141
141
  }
142
142
  interface ContextMenuSizing {
143
143
  paddingVertical: number;
144
+ paddingHorizontal: number;
144
145
  itemPaddingHorizontal: number;
145
146
  itemPaddingVertical: number;
146
147
  fontSize: number;
package/native/index.d.ts CHANGED
@@ -141,6 +141,7 @@ interface ContextMenuContextValue {
141
141
  }
142
142
  interface ContextMenuSizing {
143
143
  paddingVertical: number;
144
+ paddingHorizontal: number;
144
145
  itemPaddingHorizontal: number;
145
146
  itemPaddingVertical: number;
146
147
  fontSize: number;
package/native/index.js CHANGED
@@ -595,7 +595,7 @@ var OptionCell = ({
595
595
  if (hasSubmenu) scheduleClose();
596
596
  };
597
597
  const labelColor = disabled ? theme.colors.control.input.textDisable : destructive ? theme.colors.content.alert.primary : theme.colors.content.primary;
598
- const bg = inHoverState ? theme.colors.control.input.bgHover : "transparent";
598
+ const bg = checked ? theme.colors.overlay.brand : inHoverState ? theme.colors.overlay.mono : "transparent";
599
599
  const role = !hasSubmenu && checked !== void 0 ? leadingControl === "radio" ? "menuitemradio" : "menuitemcheckbox" : "menuitem";
600
600
  const ariaChecked = !hasSubmenu && checked !== void 0 ? checked ? "true" : "false" : void 0;
601
601
  const handleClick = () => {
@@ -1210,6 +1210,7 @@ var ContextMenuSubmenu = ({
1210
1210
  borderWidth: 1,
1211
1211
  borderRadius,
1212
1212
  paddingVertical: sizeStyles.paddingVertical,
1213
+ paddingHorizontal: sizeStyles.paddingHorizontal,
1213
1214
  style: {
1214
1215
  boxShadow: "0 4px 12px rgba(0,0,0,0.15)",
1215
1216
  minWidth: sizeStyles.minWidth
@@ -1929,6 +1930,7 @@ var ContextMenuRoot = (0, import_react6.forwardRef)(
1929
1930
  borderWidth: 1,
1930
1931
  borderRadius,
1931
1932
  paddingVertical: sizeStyles.paddingVertical,
1933
+ paddingHorizontal: sizeStyles.paddingHorizontal,
1932
1934
  width,
1933
1935
  minWidth: sizeStyles.minWidth,
1934
1936
  tabIndex: -1,
@@ -1943,7 +1945,9 @@ var ContextMenuRoot = (0, import_react6.forwardRef)(
1943
1945
  overflow: "visible"
1944
1946
  } : {
1945
1947
  maxHeight,
1946
- overflowY: "auto"
1948
+ overflowY: "auto",
1949
+ // Panel still scrolls; the bar itself is hidden.
1950
+ scrollbarWidth: "none"
1947
1951
  },
1948
1952
  outline: "none"
1949
1953
  },
@@ -1959,7 +1963,12 @@ var ContextMenuRoot = (0, import_react6.forwardRef)(
1959
1963
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1960
1964
  "div",
1961
1965
  {
1962
- style: { maxHeight, overflowY: "auto", borderRadius },
1966
+ style: {
1967
+ maxHeight,
1968
+ overflowY: "auto",
1969
+ scrollbarWidth: "none",
1970
+ borderRadius
1971
+ },
1963
1972
  children: renderContent()
1964
1973
  }
1965
1974
  )