@xsolla/xui-primitives-core 0.209.1 → 0.211.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.
Files changed (3) hide show
  1. package/index.d.mts +10 -0
  2. package/index.d.ts +10 -0
  3. package/package.json +1 -1
package/index.d.mts CHANGED
@@ -54,10 +54,20 @@ interface BoxProps {
54
54
  cursor?: "pointer" | "default" | "not-allowed" | "wait" | "text" | "move" | "grab" | "grabbing" | "inherit";
55
55
  onPress?: () => void;
56
56
  hoverStyle?: {
57
+ /**
58
+ * CSS `background` shorthand. Use instead of `backgroundColor` when the
59
+ * hover fill is LAYERED — e.g. an overlay token composited over the
60
+ * resting surface colour, which a single `background-color` cannot
61
+ * express. Emitted before `backgroundColor`, so passing both leaves
62
+ * `backgroundColor` as the winner. Web only — native has no hover.
63
+ */
64
+ background?: string;
57
65
  backgroundColor?: string;
58
66
  borderColor?: string;
59
67
  };
60
68
  pressStyle?: {
69
+ /** CSS `background` shorthand — see `hoverStyle.background`. */
70
+ background?: string;
61
71
  backgroundColor?: string;
62
72
  };
63
73
  focusStyle?: {
package/index.d.ts CHANGED
@@ -54,10 +54,20 @@ interface BoxProps {
54
54
  cursor?: "pointer" | "default" | "not-allowed" | "wait" | "text" | "move" | "grab" | "grabbing" | "inherit";
55
55
  onPress?: () => void;
56
56
  hoverStyle?: {
57
+ /**
58
+ * CSS `background` shorthand. Use instead of `backgroundColor` when the
59
+ * hover fill is LAYERED — e.g. an overlay token composited over the
60
+ * resting surface colour, which a single `background-color` cannot
61
+ * express. Emitted before `backgroundColor`, so passing both leaves
62
+ * `backgroundColor` as the winner. Web only — native has no hover.
63
+ */
64
+ background?: string;
57
65
  backgroundColor?: string;
58
66
  borderColor?: string;
59
67
  };
60
68
  pressStyle?: {
69
+ /** CSS `background` shorthand — see `hoverStyle.background`. */
70
+ background?: string;
61
71
  backgroundColor?: string;
62
72
  };
63
73
  focusStyle?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-primitives-core",
3
- "version": "0.209.1",
3
+ "version": "0.211.0",
4
4
  "description": "Core type definitions for XUI primitives",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",