@xsolla/xui-context-menu 0.69.0 → 0.71.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-context-menu",
3
- "version": "0.69.0",
3
+ "version": "0.71.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -13,13 +13,13 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-checkbox": "0.69.0",
17
- "@xsolla/xui-core": "0.69.0",
18
- "@xsolla/xui-divider": "0.69.0",
19
- "@xsolla/xui-icons": "0.69.0",
20
- "@xsolla/xui-primitives-core": "0.69.0",
21
- "@xsolla/xui-radio": "0.69.0",
22
- "@xsolla/xui-spinner": "0.69.0"
16
+ "@xsolla/xui-checkbox": "0.71.0",
17
+ "@xsolla/xui-core": "0.71.0",
18
+ "@xsolla/xui-divider": "0.71.0",
19
+ "@xsolla/xui-icons": "0.71.0",
20
+ "@xsolla/xui-primitives-core": "0.71.0",
21
+ "@xsolla/xui-radio": "0.71.0",
22
+ "@xsolla/xui-spinner": "0.71.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": ">=16.8.0",
package/web/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React$1, { ReactNode, RefObject } from 'react';
2
2
 
3
3
  /** Size variants for the context menu */
4
- type ContextMenuSize = "s" | "m" | "l" | "xl";
4
+ type ContextMenuSize = "sm" | "md" | "lg" | "xl";
5
5
  /** Item variant types for data-driven API */
6
6
  type ContextMenuItemVariant = "default" | "checkbox" | "radio";
7
7
  /** Trailing element types */
package/web/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React$1, { ReactNode, RefObject } from 'react';
2
2
 
3
3
  /** Size variants for the context menu */
4
- type ContextMenuSize = "s" | "m" | "l" | "xl";
4
+ type ContextMenuSize = "sm" | "md" | "lg" | "xl";
5
5
  /** Item variant types for data-driven API */
6
6
  type ContextMenuItemVariant = "default" | "checkbox" | "radio";
7
7
  /** Trailing element types */
package/web/index.js CHANGED
@@ -543,7 +543,7 @@ var ContextMenuItem = (0, import_react5.forwardRef)(
543
543
  }, ref) => {
544
544
  const { theme } = (0, import_xui_core.useDesignSystem)();
545
545
  const context = useContextMenu();
546
- const size = propSize || context?.size || "m";
546
+ const size = propSize || context?.size || "md";
547
547
  const sizeStyles = theme.sizing.contextMenu(size);
548
548
  const itemRef = (0, import_react5.useRef)(null);
549
549
  const brandColors = theme.colors.control.brand.primary;
@@ -691,15 +691,15 @@ var import_xui_core2 = require("@xsolla/xui-core");
691
691
  var import_xui_icons2 = require("@xsolla/xui-icons");
692
692
  var import_jsx_runtime9 = require("react/jsx-runtime");
693
693
  var checkboxSizeMap = {
694
- s: 14,
695
- m: 16,
696
- l: 18,
694
+ sm: 14,
695
+ md: 16,
696
+ lg: 18,
697
697
  xl: 20
698
698
  };
699
699
  var checkIconSizeMap = {
700
- s: 10,
701
- m: 12,
702
- l: 14,
700
+ sm: 10,
701
+ md: 12,
702
+ lg: 14,
703
703
  xl: 16
704
704
  };
705
705
  var CheckboxIndicator = ({
@@ -775,7 +775,7 @@ var ContextMenuCheckboxItem = (0, import_react6.forwardRef)(
775
775
  }, ref) => {
776
776
  const { theme } = (0, import_xui_core2.useDesignSystem)();
777
777
  const context = useContextMenu();
778
- const size = propSize || context?.size || "m";
778
+ const size = propSize || context?.size || "md";
779
779
  const sizeStyles = theme.sizing.contextMenu(size);
780
780
  const itemRef = (0, import_react6.useRef)(null);
781
781
  const contentColors = theme.colors.content;
@@ -911,15 +911,15 @@ var import_react8 = require("react");
911
911
  var import_xui_core3 = require("@xsolla/xui-core");
912
912
  var import_jsx_runtime11 = require("react/jsx-runtime");
913
913
  var radioSizeMap = {
914
- s: 14,
915
- m: 16,
916
- l: 18,
914
+ sm: 14,
915
+ md: 16,
916
+ lg: 18,
917
917
  xl: 20
918
918
  };
919
919
  var radioDotSizeMap = {
920
- s: 6,
921
- m: 8,
922
- l: 8,
920
+ sm: 6,
921
+ md: 8,
922
+ lg: 8,
923
923
  xl: 10
924
924
  };
925
925
  var RadioIndicator = ({
@@ -984,7 +984,7 @@ var ContextMenuRadioItem = (0, import_react8.forwardRef)(
984
984
  const { theme } = (0, import_xui_core3.useDesignSystem)();
985
985
  const context = useContextMenu();
986
986
  const radioGroup = useRadioGroup();
987
- const size = propSize || context?.size || "m";
987
+ const size = propSize || context?.size || "md";
988
988
  const sizeStyles = theme.sizing.contextMenu(size);
989
989
  const itemRef = (0, import_react8.useRef)(null);
990
990
  const checked = radioGroup?.value === value;
@@ -1101,7 +1101,7 @@ var ContextMenuGroup = (0, import_react9.forwardRef)(
1101
1101
  }, ref) => {
1102
1102
  const { theme } = (0, import_xui_core4.useDesignSystem)();
1103
1103
  const context = useContextMenu();
1104
- const size = propSize || context?.size || "m";
1104
+ const size = propSize || context?.size || "md";
1105
1105
  const sizeStyles = theme.sizing.contextMenu(size);
1106
1106
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box, { ref, role: "group", "aria-label": label, "data-testid": testId, children: [
1107
1107
  label && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
@@ -1147,7 +1147,7 @@ var ContextMenuSeparator = ({
1147
1147
  }) => {
1148
1148
  const { theme } = (0, import_xui_core5.useDesignSystem)();
1149
1149
  const context = useContextMenu();
1150
- const size = propSize || context?.size || "m";
1150
+ const size = propSize || context?.size || "md";
1151
1151
  const sizeStyles = theme.sizing.contextMenu(size);
1152
1152
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1153
1153
  Box,
@@ -1610,7 +1610,7 @@ var ContextMenuSearch = (0, import_react10.forwardRef)(
1610
1610
  }, ref) => {
1611
1611
  const { theme } = (0, import_xui_core6.useDesignSystem)();
1612
1612
  const context = useContextMenu();
1613
- const size = propSize || context?.size || "m";
1613
+ const size = propSize || context?.size || "md";
1614
1614
  const sizeStyles = theme.sizing.contextMenu(size);
1615
1615
  const inputRef = (0, import_react10.useRef)(null);
1616
1616
  const inputColors = theme.colors.control.input;
@@ -1688,7 +1688,7 @@ var ContextMenuRoot = (0, import_react11.forwardRef)(
1688
1688
  children,
1689
1689
  list,
1690
1690
  groups,
1691
- size = "m",
1691
+ size = "md",
1692
1692
  isOpen: propIsOpen,
1693
1693
  onOpenChange,
1694
1694
  position,
@@ -1923,7 +1923,7 @@ var ContextMenuRoot = (0, import_react11.forwardRef)(
1923
1923
  alignItems: "center",
1924
1924
  justifyContent: "center",
1925
1925
  minHeight: 60,
1926
- children: /* @__PURE__ */ (0, import_jsx_runtime396.jsx)(import_xui_spinner.Spinner, { size: "m", color: brandColor })
1926
+ children: /* @__PURE__ */ (0, import_jsx_runtime396.jsx)(import_xui_spinner.Spinner, { size: "md", color: brandColor })
1927
1927
  }
1928
1928
  );
1929
1929
  }