@xsolla/xui-field-group 0.73.0 → 0.75.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.
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Flowtype definitions for index
3
+ * Generated by Flowgen from a Typescript Definition
4
+ * Flowgen v1.21.0
5
+ * @flow
6
+ */
7
+
8
+ import React, { Node, Element } from "react";
9
+ import { BoxProps } from "@xsolla/xui-primitives-core";
10
+ declare type FieldGroupSize = "sm" | "md" | "lg";
11
+ declare type FieldGroupProps = {
12
+ /**
13
+ * Property to specify the content of the group.
14
+ */
15
+ children: Node,
16
+
17
+ /**
18
+ * Property to specify the label of the group.
19
+ */
20
+ label?: Node,
21
+
22
+ /**
23
+ * Property switch on showing a sign that the fields are required
24
+ */
25
+ required?: boolean,
26
+
27
+ /**
28
+ * Property for show icon ith label
29
+ */
30
+ icon?: Element,
31
+
32
+ /**
33
+ * Property to specify the helping text of the group.
34
+ */
35
+ helper?: Node,
36
+
37
+ /**
38
+ * Property to specify the size of the group.
39
+ */
40
+ size?: FieldGroupSize,
41
+
42
+ /**
43
+ * Property to specify the input (textarea, radio & itc) id of the group.
44
+ */
45
+ htmlFor?: string,
46
+
47
+ /**
48
+ * Property to specify id for tests.
49
+ */
50
+ "data-testid"?: string,
51
+ ...
52
+ } & $Diff<BoxProps, { children: any }>;
53
+ declare var FieldGroup: React.ForwardRefExoticComponent<{
54
+ ...FieldGroupProps,
55
+ ...React.RefAttributes<any>,
56
+ }>;
57
+ export type { FieldGroupProps, FieldGroupSize };
58
+ declare export { FieldGroup };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-field-group",
3
- "version": "0.73.0",
3
+ "version": "0.75.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -10,15 +10,17 @@
10
10
  "build:native": "PLATFORM=native tsup"
11
11
  },
12
12
  "dependencies": {
13
- "@xsolla/xui-core": "0.73.0",
14
- "@xsolla/xui-primitives-core": "0.73.0"
13
+ "@xsolla/xui-core": "0.75.0",
14
+ "@xsolla/xui-primitives-core": "0.75.0"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": ">=16.8.0",
18
18
  "styled-components": ">=4"
19
19
  },
20
20
  "devDependencies": {
21
- "tsup": "^8.0.0"
21
+ "@vitest/coverage-v8": "^4.0.18",
22
+ "tsup": "^8.0.0",
23
+ "vitest": "^4.0.18"
22
24
  },
23
25
  "license": "MIT",
24
26
  "react-native": "./native/index.js",
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Flowtype definitions for index
3
+ * Generated by Flowgen from a Typescript Definition
4
+ * Flowgen v1.21.0
5
+ * @flow
6
+ */
7
+
8
+ import React, { Node, Element } from "react";
9
+ import { BoxProps } from "@xsolla/xui-primitives-core";
10
+ declare type FieldGroupSize = "sm" | "md" | "lg";
11
+ declare type FieldGroupProps = {
12
+ /**
13
+ * Property to specify the content of the group.
14
+ */
15
+ children: Node,
16
+
17
+ /**
18
+ * Property to specify the label of the group.
19
+ */
20
+ label?: Node,
21
+
22
+ /**
23
+ * Property switch on showing a sign that the fields are required
24
+ */
25
+ required?: boolean,
26
+
27
+ /**
28
+ * Property for show icon ith label
29
+ */
30
+ icon?: Element,
31
+
32
+ /**
33
+ * Property to specify the helping text of the group.
34
+ */
35
+ helper?: Node,
36
+
37
+ /**
38
+ * Property to specify the size of the group.
39
+ */
40
+ size?: FieldGroupSize,
41
+
42
+ /**
43
+ * Property to specify the input (textarea, radio & itc) id of the group.
44
+ */
45
+ htmlFor?: string,
46
+
47
+ /**
48
+ * Property to specify id for tests.
49
+ */
50
+ "data-testid"?: string,
51
+ ...
52
+ } & $Diff<BoxProps, { children: any }>;
53
+ declare var FieldGroup: React.ForwardRefExoticComponent<{
54
+ ...FieldGroupProps,
55
+ ...React.RefAttributes<any>,
56
+ }>;
57
+ export type { FieldGroupProps, FieldGroupSize };
58
+ declare export { FieldGroup };