@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/native/index.d.mts +1 -1
- package/native/index.d.ts +1 -1
- package/native/index.js +20 -20
- package/native/index.js.map +1 -1
- package/native/index.mjs +20 -20
- package/native/index.mjs.map +1 -1
- package/package.json +8 -8
- package/web/index.d.mts +1 -1
- package/web/index.d.ts +1 -1
- package/web/index.js +20 -20
- package/web/index.js.map +1 -1
- package/web/index.mjs +20 -20
- package/web/index.mjs.map +1 -1
package/native/index.mjs
CHANGED
|
@@ -534,7 +534,7 @@ var ContextMenuItem = forwardRef3(
|
|
|
534
534
|
}, ref) => {
|
|
535
535
|
const { theme } = useDesignSystem();
|
|
536
536
|
const context = useContextMenu();
|
|
537
|
-
const size = propSize || context?.size || "
|
|
537
|
+
const size = propSize || context?.size || "md";
|
|
538
538
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
539
539
|
const itemRef = useRef(null);
|
|
540
540
|
const brandColors = theme.colors.control.brand.primary;
|
|
@@ -682,15 +682,15 @@ import { useDesignSystem as useDesignSystem2 } from "@xsolla/xui-core";
|
|
|
682
682
|
import { Check, Minus } from "@xsolla/xui-icons";
|
|
683
683
|
import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
684
684
|
var checkboxSizeMap = {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
685
|
+
sm: 14,
|
|
686
|
+
md: 16,
|
|
687
|
+
lg: 18,
|
|
688
688
|
xl: 20
|
|
689
689
|
};
|
|
690
690
|
var checkIconSizeMap = {
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
691
|
+
sm: 10,
|
|
692
|
+
md: 12,
|
|
693
|
+
lg: 14,
|
|
694
694
|
xl: 16
|
|
695
695
|
};
|
|
696
696
|
var CheckboxIndicator = ({
|
|
@@ -766,7 +766,7 @@ var ContextMenuCheckboxItem = forwardRef4(
|
|
|
766
766
|
}, ref) => {
|
|
767
767
|
const { theme } = useDesignSystem2();
|
|
768
768
|
const context = useContextMenu();
|
|
769
|
-
const size = propSize || context?.size || "
|
|
769
|
+
const size = propSize || context?.size || "md";
|
|
770
770
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
771
771
|
const itemRef = useRef2(null);
|
|
772
772
|
const contentColors = theme.colors.content;
|
|
@@ -902,15 +902,15 @@ import { forwardRef as forwardRef6, useEffect as useEffect3, useRef as useRef3 }
|
|
|
902
902
|
import { useDesignSystem as useDesignSystem3 } from "@xsolla/xui-core";
|
|
903
903
|
import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
904
904
|
var radioSizeMap = {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
905
|
+
sm: 14,
|
|
906
|
+
md: 16,
|
|
907
|
+
lg: 18,
|
|
908
908
|
xl: 20
|
|
909
909
|
};
|
|
910
910
|
var radioDotSizeMap = {
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
911
|
+
sm: 6,
|
|
912
|
+
md: 8,
|
|
913
|
+
lg: 8,
|
|
914
914
|
xl: 10
|
|
915
915
|
};
|
|
916
916
|
var RadioIndicator = ({
|
|
@@ -975,7 +975,7 @@ var ContextMenuRadioItem = forwardRef6(
|
|
|
975
975
|
const { theme } = useDesignSystem3();
|
|
976
976
|
const context = useContextMenu();
|
|
977
977
|
const radioGroup = useRadioGroup();
|
|
978
|
-
const size = propSize || context?.size || "
|
|
978
|
+
const size = propSize || context?.size || "md";
|
|
979
979
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
980
980
|
const itemRef = useRef3(null);
|
|
981
981
|
const checked = radioGroup?.value === value;
|
|
@@ -1092,7 +1092,7 @@ var ContextMenuGroup = forwardRef7(
|
|
|
1092
1092
|
}, ref) => {
|
|
1093
1093
|
const { theme } = useDesignSystem4();
|
|
1094
1094
|
const context = useContextMenu();
|
|
1095
|
-
const size = propSize || context?.size || "
|
|
1095
|
+
const size = propSize || context?.size || "md";
|
|
1096
1096
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
1097
1097
|
return /* @__PURE__ */ jsxs4(Box, { ref, role: "group", "aria-label": label, "data-testid": testId, children: [
|
|
1098
1098
|
label && /* @__PURE__ */ jsxs4(
|
|
@@ -1138,7 +1138,7 @@ var ContextMenuSeparator = ({
|
|
|
1138
1138
|
}) => {
|
|
1139
1139
|
const { theme } = useDesignSystem5();
|
|
1140
1140
|
const context = useContextMenu();
|
|
1141
|
-
const size = propSize || context?.size || "
|
|
1141
|
+
const size = propSize || context?.size || "md";
|
|
1142
1142
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
1143
1143
|
return /* @__PURE__ */ jsx13(
|
|
1144
1144
|
Box,
|
|
@@ -1601,7 +1601,7 @@ var ContextMenuSearch = forwardRef8(
|
|
|
1601
1601
|
}, ref) => {
|
|
1602
1602
|
const { theme } = useDesignSystem6();
|
|
1603
1603
|
const context = useContextMenu();
|
|
1604
|
-
const size = propSize || context?.size || "
|
|
1604
|
+
const size = propSize || context?.size || "md";
|
|
1605
1605
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
1606
1606
|
const inputRef = useRef4(null);
|
|
1607
1607
|
const inputColors = theme.colors.control.input;
|
|
@@ -1679,7 +1679,7 @@ var ContextMenuRoot = forwardRef9(
|
|
|
1679
1679
|
children,
|
|
1680
1680
|
list,
|
|
1681
1681
|
groups,
|
|
1682
|
-
size = "
|
|
1682
|
+
size = "md",
|
|
1683
1683
|
isOpen: propIsOpen,
|
|
1684
1684
|
onOpenChange,
|
|
1685
1685
|
position,
|
|
@@ -1914,7 +1914,7 @@ var ContextMenuRoot = forwardRef9(
|
|
|
1914
1914
|
alignItems: "center",
|
|
1915
1915
|
justifyContent: "center",
|
|
1916
1916
|
minHeight: 60,
|
|
1917
|
-
children: /* @__PURE__ */ jsx383(Spinner2, { size: "
|
|
1917
|
+
children: /* @__PURE__ */ jsx383(Spinner2, { size: "md", color: brandColor })
|
|
1918
1918
|
}
|
|
1919
1919
|
);
|
|
1920
1920
|
}
|