@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/web/index.mjs CHANGED
@@ -502,7 +502,7 @@ var ContextMenuItem = forwardRef3(
502
502
  }, ref) => {
503
503
  const { theme } = useDesignSystem();
504
504
  const context = useContextMenu();
505
- const size = propSize || context?.size || "m";
505
+ const size = propSize || context?.size || "md";
506
506
  const sizeStyles = theme.sizing.contextMenu(size);
507
507
  const itemRef = useRef(null);
508
508
  const brandColors = theme.colors.control.brand.primary;
@@ -650,15 +650,15 @@ import { useDesignSystem as useDesignSystem2 } from "@xsolla/xui-core";
650
650
  import { Check, Minus } from "@xsolla/xui-icons";
651
651
  import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
652
652
  var checkboxSizeMap = {
653
- s: 14,
654
- m: 16,
655
- l: 18,
653
+ sm: 14,
654
+ md: 16,
655
+ lg: 18,
656
656
  xl: 20
657
657
  };
658
658
  var checkIconSizeMap = {
659
- s: 10,
660
- m: 12,
661
- l: 14,
659
+ sm: 10,
660
+ md: 12,
661
+ lg: 14,
662
662
  xl: 16
663
663
  };
664
664
  var CheckboxIndicator = ({
@@ -734,7 +734,7 @@ var ContextMenuCheckboxItem = forwardRef4(
734
734
  }, ref) => {
735
735
  const { theme } = useDesignSystem2();
736
736
  const context = useContextMenu();
737
- const size = propSize || context?.size || "m";
737
+ const size = propSize || context?.size || "md";
738
738
  const sizeStyles = theme.sizing.contextMenu(size);
739
739
  const itemRef = useRef2(null);
740
740
  const contentColors = theme.colors.content;
@@ -870,15 +870,15 @@ import { forwardRef as forwardRef6, useEffect as useEffect3, useRef as useRef3 }
870
870
  import { useDesignSystem as useDesignSystem3 } from "@xsolla/xui-core";
871
871
  import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
872
872
  var radioSizeMap = {
873
- s: 14,
874
- m: 16,
875
- l: 18,
873
+ sm: 14,
874
+ md: 16,
875
+ lg: 18,
876
876
  xl: 20
877
877
  };
878
878
  var radioDotSizeMap = {
879
- s: 6,
880
- m: 8,
881
- l: 8,
879
+ sm: 6,
880
+ md: 8,
881
+ lg: 8,
882
882
  xl: 10
883
883
  };
884
884
  var RadioIndicator = ({
@@ -943,7 +943,7 @@ var ContextMenuRadioItem = forwardRef6(
943
943
  const { theme } = useDesignSystem3();
944
944
  const context = useContextMenu();
945
945
  const radioGroup = useRadioGroup();
946
- const size = propSize || context?.size || "m";
946
+ const size = propSize || context?.size || "md";
947
947
  const sizeStyles = theme.sizing.contextMenu(size);
948
948
  const itemRef = useRef3(null);
949
949
  const checked = radioGroup?.value === value;
@@ -1060,7 +1060,7 @@ var ContextMenuGroup = forwardRef7(
1060
1060
  }, ref) => {
1061
1061
  const { theme } = useDesignSystem4();
1062
1062
  const context = useContextMenu();
1063
- const size = propSize || context?.size || "m";
1063
+ const size = propSize || context?.size || "md";
1064
1064
  const sizeStyles = theme.sizing.contextMenu(size);
1065
1065
  return /* @__PURE__ */ jsxs4(Box, { ref, role: "group", "aria-label": label, "data-testid": testId, children: [
1066
1066
  label && /* @__PURE__ */ jsxs4(
@@ -1106,7 +1106,7 @@ var ContextMenuSeparator = ({
1106
1106
  }) => {
1107
1107
  const { theme } = useDesignSystem5();
1108
1108
  const context = useContextMenu();
1109
- const size = propSize || context?.size || "m";
1109
+ const size = propSize || context?.size || "md";
1110
1110
  const sizeStyles = theme.sizing.contextMenu(size);
1111
1111
  return /* @__PURE__ */ jsx13(
1112
1112
  Box,
@@ -1569,7 +1569,7 @@ var ContextMenuSearch = forwardRef8(
1569
1569
  }, ref) => {
1570
1570
  const { theme } = useDesignSystem6();
1571
1571
  const context = useContextMenu();
1572
- const size = propSize || context?.size || "m";
1572
+ const size = propSize || context?.size || "md";
1573
1573
  const sizeStyles = theme.sizing.contextMenu(size);
1574
1574
  const inputRef = useRef4(null);
1575
1575
  const inputColors = theme.colors.control.input;
@@ -1647,7 +1647,7 @@ var ContextMenuRoot = forwardRef9(
1647
1647
  children,
1648
1648
  list,
1649
1649
  groups,
1650
- size = "m",
1650
+ size = "md",
1651
1651
  isOpen: propIsOpen,
1652
1652
  onOpenChange,
1653
1653
  position,
@@ -1882,7 +1882,7 @@ var ContextMenuRoot = forwardRef9(
1882
1882
  alignItems: "center",
1883
1883
  justifyContent: "center",
1884
1884
  minHeight: 60,
1885
- children: /* @__PURE__ */ jsx383(Spinner2, { size: "m", color: brandColor })
1885
+ children: /* @__PURE__ */ jsx383(Spinner2, { size: "md", color: brandColor })
1886
1886
  }
1887
1887
  );
1888
1888
  }