@xsolla/xui-field-group 0.64.0-pr56.1768440195

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,42 @@
1
+ import React, { ReactNode, ReactElement } from 'react';
2
+ import { BoxProps } from '@xsolla/xui-primitives-core';
3
+
4
+ type FieldGroupSize = "sm" | "md" | "lg";
5
+ interface FieldGroupProps extends Omit<BoxProps, "children"> {
6
+ /**
7
+ * Property to specify the content of the group.
8
+ */
9
+ children: ReactNode;
10
+ /**
11
+ * Property to specify the label of the group.
12
+ */
13
+ label?: ReactNode;
14
+ /**
15
+ * Property switch on showing a sign that the fields are required
16
+ */
17
+ required?: boolean;
18
+ /**
19
+ * Property for show icon ith label
20
+ */
21
+ icon?: ReactElement;
22
+ /**
23
+ * Property to specify the helping text of the group.
24
+ */
25
+ helper?: ReactNode;
26
+ /**
27
+ * Property to specify the size of the group.
28
+ */
29
+ size?: FieldGroupSize;
30
+ /**
31
+ * Property to specify the input (textarea, radio & itc) id of the group.
32
+ */
33
+ htmlFor?: string;
34
+ /**
35
+ * Property to specify id for tests.
36
+ */
37
+ "data-testid"?: string;
38
+ }
39
+
40
+ declare const FieldGroup: React.ForwardRefExoticComponent<FieldGroupProps & React.RefAttributes<any>>;
41
+
42
+ export { FieldGroup, type FieldGroupProps, type FieldGroupSize };
@@ -0,0 +1,42 @@
1
+ import React, { ReactNode, ReactElement } from 'react';
2
+ import { BoxProps } from '@xsolla/xui-primitives-core';
3
+
4
+ type FieldGroupSize = "sm" | "md" | "lg";
5
+ interface FieldGroupProps extends Omit<BoxProps, "children"> {
6
+ /**
7
+ * Property to specify the content of the group.
8
+ */
9
+ children: ReactNode;
10
+ /**
11
+ * Property to specify the label of the group.
12
+ */
13
+ label?: ReactNode;
14
+ /**
15
+ * Property switch on showing a sign that the fields are required
16
+ */
17
+ required?: boolean;
18
+ /**
19
+ * Property for show icon ith label
20
+ */
21
+ icon?: ReactElement;
22
+ /**
23
+ * Property to specify the helping text of the group.
24
+ */
25
+ helper?: ReactNode;
26
+ /**
27
+ * Property to specify the size of the group.
28
+ */
29
+ size?: FieldGroupSize;
30
+ /**
31
+ * Property to specify the input (textarea, radio & itc) id of the group.
32
+ */
33
+ htmlFor?: string;
34
+ /**
35
+ * Property to specify id for tests.
36
+ */
37
+ "data-testid"?: string;
38
+ }
39
+
40
+ declare const FieldGroup: React.ForwardRefExoticComponent<FieldGroupProps & React.RefAttributes<any>>;
41
+
42
+ export { FieldGroup, type FieldGroupProps, type FieldGroupSize };