@xsolla/xui-textarea 0.119.0 → 0.120.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/package.json +3 -3
- package/native/index.js.flow +0 -79
- package/web/index.js.flow +0 -79
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-textarea",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.120.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"test:coverage": "vitest run --coverage"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xsolla/xui-core": "0.
|
|
17
|
-
"@xsolla/xui-primitives-core": "0.
|
|
16
|
+
"@xsolla/xui-core": "0.120.0",
|
|
17
|
+
"@xsolla/xui-primitives-core": "0.120.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"react": ">=16.8.0",
|
package/native/index.js.flow
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
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 * as react from "react";
|
|
9
|
-
declare interface TextAreaProps {
|
|
10
|
-
/**
|
|
11
|
-
* Current value of the textarea
|
|
12
|
-
*/
|
|
13
|
-
value?: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Placeholder text when empty
|
|
17
|
-
*/
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Event handler when the text changes
|
|
22
|
-
*/
|
|
23
|
-
onChangeText?: (text: string) => void;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Size of the textarea
|
|
27
|
-
*/
|
|
28
|
-
size?: "xl" | "lg" | "md" | "sm" | "xs";
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Whether the textarea is disabled
|
|
32
|
-
*/
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Error message displayed below the textarea
|
|
37
|
-
*/
|
|
38
|
-
errorMessage?: string;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Accessible label for screen readers
|
|
42
|
-
*/
|
|
43
|
-
"aria-label"?: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* ID of element that describes this textarea
|
|
47
|
-
*/
|
|
48
|
-
"aria-describedby"?: string;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Unique identifier for the textarea element
|
|
52
|
-
*/
|
|
53
|
-
id?: string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Test ID for testing frameworks
|
|
57
|
-
*/
|
|
58
|
-
testID?: string;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* TextArea - An accessible multi-line text input component
|
|
62
|
-
*
|
|
63
|
-
* Renders as a semantic `<textarea>` element with full ARIA support.
|
|
64
|
-
* Supports labels, error states, and various sizes.
|
|
65
|
-
*
|
|
66
|
-
* ## Accessibility Features
|
|
67
|
-
*
|
|
68
|
-
* - **Semantic HTML**: Renders as a native `<textarea>` element
|
|
69
|
-
* - **Keyboard Navigation**: Focusable via Tab
|
|
70
|
-
* - **ARIA States**: Properly announces disabled and error states
|
|
71
|
-
* - **Error Announcements**: Error messages use `role="alert"` for immediate announcement
|
|
72
|
-
* - **Focus Indicator**: Visible focus ring for keyboard navigation
|
|
73
|
-
*/
|
|
74
|
-
declare var TextArea: react.ForwardRefExoticComponent<{
|
|
75
|
-
...TextAreaProps,
|
|
76
|
-
...react.RefAttributes<HTMLTextAreaElement>,
|
|
77
|
-
}>;
|
|
78
|
-
export type { TextAreaProps };
|
|
79
|
-
declare export { TextArea };
|
package/web/index.js.flow
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
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 * as react from "react";
|
|
9
|
-
declare interface TextAreaProps {
|
|
10
|
-
/**
|
|
11
|
-
* Current value of the textarea
|
|
12
|
-
*/
|
|
13
|
-
value?: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Placeholder text when empty
|
|
17
|
-
*/
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Event handler when the text changes
|
|
22
|
-
*/
|
|
23
|
-
onChangeText?: (text: string) => void;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Size of the textarea
|
|
27
|
-
*/
|
|
28
|
-
size?: "xl" | "lg" | "md" | "sm" | "xs";
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Whether the textarea is disabled
|
|
32
|
-
*/
|
|
33
|
-
disabled?: boolean;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Error message displayed below the textarea
|
|
37
|
-
*/
|
|
38
|
-
errorMessage?: string;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Accessible label for screen readers
|
|
42
|
-
*/
|
|
43
|
-
"aria-label"?: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* ID of element that describes this textarea
|
|
47
|
-
*/
|
|
48
|
-
"aria-describedby"?: string;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Unique identifier for the textarea element
|
|
52
|
-
*/
|
|
53
|
-
id?: string;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Test ID for testing frameworks
|
|
57
|
-
*/
|
|
58
|
-
testID?: string;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* TextArea - An accessible multi-line text input component
|
|
62
|
-
*
|
|
63
|
-
* Renders as a semantic `<textarea>` element with full ARIA support.
|
|
64
|
-
* Supports labels, error states, and various sizes.
|
|
65
|
-
*
|
|
66
|
-
* ## Accessibility Features
|
|
67
|
-
*
|
|
68
|
-
* - **Semantic HTML**: Renders as a native `<textarea>` element
|
|
69
|
-
* - **Keyboard Navigation**: Focusable via Tab
|
|
70
|
-
* - **ARIA States**: Properly announces disabled and error states
|
|
71
|
-
* - **Error Announcements**: Error messages use `role="alert"` for immediate announcement
|
|
72
|
-
* - **Focus Indicator**: Visible focus ring for keyboard navigation
|
|
73
|
-
*/
|
|
74
|
-
declare var TextArea: react.ForwardRefExoticComponent<{
|
|
75
|
-
...TextAreaProps,
|
|
76
|
-
...react.RefAttributes<HTMLTextAreaElement>,
|
|
77
|
-
}>;
|
|
78
|
-
export type { TextAreaProps };
|
|
79
|
-
declare export { TextArea };
|