@xsolla/xui-input-password 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.
- package/native/index.d.mts +83 -0
- package/native/index.d.ts +83 -0
- package/native/index.js +861 -0
- package/native/index.js.map +1 -0
- package/native/index.mjs +828 -0
- package/native/index.mjs.map +1 -0
- package/package.json +57 -0
- package/web/index.d.mts +83 -0
- package/web/index.d.ts +83 -0
- package/web/index.js +833 -0
- package/web/index.js.map +1 -0
- package/web/index.mjs +796 -0
- package/web/index.mjs.map +1 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React, { InputHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
interface InputPasswordProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
|
|
4
|
+
/**
|
|
5
|
+
* Add eye in input with see password function.
|
|
6
|
+
*/
|
|
7
|
+
extraSee?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Add function clear for input.
|
|
10
|
+
*/
|
|
11
|
+
extraClear?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Property for specifying the name of the control.
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Property for displaying an error and highlighting the control as invalid.
|
|
18
|
+
*/
|
|
19
|
+
error?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Visible password in the field.
|
|
22
|
+
*/
|
|
23
|
+
initialVisible?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Add checkup function for input. Can use after change input value.
|
|
26
|
+
*/
|
|
27
|
+
extraCheckup?: (pass: string) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Property for specifying the value of the control.
|
|
30
|
+
*/
|
|
31
|
+
value?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Property for displaying an error message and highlighting the control as invalid.
|
|
34
|
+
*/
|
|
35
|
+
errorMessage?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Property for specifying the placeholder of the control.
|
|
38
|
+
*/
|
|
39
|
+
placeholder?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Property for changing the size of the input.
|
|
42
|
+
*/
|
|
43
|
+
size?: "xl" | "l" | "m" | "s" | "xs";
|
|
44
|
+
/**
|
|
45
|
+
* Property for disabling the control and highlighting it as an inactive state.
|
|
46
|
+
*/
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Property for displaying a label above the input.
|
|
50
|
+
*/
|
|
51
|
+
label?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Property for displaying helper text below the input.
|
|
54
|
+
*/
|
|
55
|
+
helperText?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Event handler when the value changes (for controlled mode).
|
|
58
|
+
*/
|
|
59
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Event handler when the text changes (alternative to onChange).
|
|
62
|
+
*/
|
|
63
|
+
onChangeText?: (text: string) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Function triggered when user clicks on extraClear button.
|
|
66
|
+
*/
|
|
67
|
+
onRemove?: () => void;
|
|
68
|
+
/**
|
|
69
|
+
* Unique identifier for the input element. Used for accessibility linking.
|
|
70
|
+
*/
|
|
71
|
+
id?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Accessible label for screen readers when no visible label is present.
|
|
74
|
+
*/
|
|
75
|
+
"aria-label"?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Test identifier for the component.
|
|
78
|
+
*/
|
|
79
|
+
testID?: string;
|
|
80
|
+
}
|
|
81
|
+
declare const InputPassword: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<HTMLInputElement>>;
|
|
82
|
+
|
|
83
|
+
export { InputPassword, type InputPasswordProps };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React, { InputHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
interface InputPasswordProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
|
|
4
|
+
/**
|
|
5
|
+
* Add eye in input with see password function.
|
|
6
|
+
*/
|
|
7
|
+
extraSee?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Add function clear for input.
|
|
10
|
+
*/
|
|
11
|
+
extraClear?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Property for specifying the name of the control.
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Property for displaying an error and highlighting the control as invalid.
|
|
18
|
+
*/
|
|
19
|
+
error?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Visible password in the field.
|
|
22
|
+
*/
|
|
23
|
+
initialVisible?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Add checkup function for input. Can use after change input value.
|
|
26
|
+
*/
|
|
27
|
+
extraCheckup?: (pass: string) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Property for specifying the value of the control.
|
|
30
|
+
*/
|
|
31
|
+
value?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Property for displaying an error message and highlighting the control as invalid.
|
|
34
|
+
*/
|
|
35
|
+
errorMessage?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Property for specifying the placeholder of the control.
|
|
38
|
+
*/
|
|
39
|
+
placeholder?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Property for changing the size of the input.
|
|
42
|
+
*/
|
|
43
|
+
size?: "xl" | "l" | "m" | "s" | "xs";
|
|
44
|
+
/**
|
|
45
|
+
* Property for disabling the control and highlighting it as an inactive state.
|
|
46
|
+
*/
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Property for displaying a label above the input.
|
|
50
|
+
*/
|
|
51
|
+
label?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Property for displaying helper text below the input.
|
|
54
|
+
*/
|
|
55
|
+
helperText?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Event handler when the value changes (for controlled mode).
|
|
58
|
+
*/
|
|
59
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Event handler when the text changes (alternative to onChange).
|
|
62
|
+
*/
|
|
63
|
+
onChangeText?: (text: string) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Function triggered when user clicks on extraClear button.
|
|
66
|
+
*/
|
|
67
|
+
onRemove?: () => void;
|
|
68
|
+
/**
|
|
69
|
+
* Unique identifier for the input element. Used for accessibility linking.
|
|
70
|
+
*/
|
|
71
|
+
id?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Accessible label for screen readers when no visible label is present.
|
|
74
|
+
*/
|
|
75
|
+
"aria-label"?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Test identifier for the component.
|
|
78
|
+
*/
|
|
79
|
+
testID?: string;
|
|
80
|
+
}
|
|
81
|
+
declare const InputPassword: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<HTMLInputElement>>;
|
|
82
|
+
|
|
83
|
+
export { InputPassword, type InputPasswordProps };
|