@xsolla/xui-primitives-core 0.218.1 → 0.220.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 +11 -0
  2. package/index.d.ts +11 -0
  3. package/package.json +1 -1
package/index.d.mts CHANGED
@@ -31,6 +31,17 @@ interface BoxProps {
31
31
  marginBottom?: number | string;
32
32
  marginLeft?: number | string;
33
33
  marginRight?: number | string;
34
+ /**
35
+ * CSS `display` of the box. Defaults to `"flex"`.
36
+ *
37
+ * Use `"inline-flex"` to keep the box in the surrounding inline flow — a
38
+ * `Box` that wraps a word inside a sentence (a link, a badge, a tooltip
39
+ * trigger) must not be laid out as a full-width block.
40
+ *
41
+ * Native supports only `"flex"` and `"none"` (Yoga has no inline axis);
42
+ * every other value is ignored there and the box stays a flex container.
43
+ */
44
+ display?: "flex" | "inline-flex" | "block" | "inline-block" | "inline" | "grid" | "inline-grid" | "contents" | "none";
34
45
  flexDirection?: "row" | "column";
35
46
  flexWrap?: "wrap" | "nowrap" | "wrap-reverse";
36
47
  alignItems?: "center" | "flex-start" | "flex-end" | "stretch";
package/index.d.ts CHANGED
@@ -31,6 +31,17 @@ interface BoxProps {
31
31
  marginBottom?: number | string;
32
32
  marginLeft?: number | string;
33
33
  marginRight?: number | string;
34
+ /**
35
+ * CSS `display` of the box. Defaults to `"flex"`.
36
+ *
37
+ * Use `"inline-flex"` to keep the box in the surrounding inline flow — a
38
+ * `Box` that wraps a word inside a sentence (a link, a badge, a tooltip
39
+ * trigger) must not be laid out as a full-width block.
40
+ *
41
+ * Native supports only `"flex"` and `"none"` (Yoga has no inline axis);
42
+ * every other value is ignored there and the box stays a flex container.
43
+ */
44
+ display?: "flex" | "inline-flex" | "block" | "inline-block" | "inline" | "grid" | "inline-grid" | "contents" | "none";
34
45
  flexDirection?: "row" | "column";
35
46
  flexWrap?: "wrap" | "nowrap" | "wrap-reverse";
36
47
  alignItems?: "center" | "flex-start" | "flex-end" | "stretch";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-primitives-core",
3
- "version": "0.218.1",
3
+ "version": "0.220.0",
4
4
  "description": "Core type definitions for XUI primitives",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",