@xsolla/xui-input-copy 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 +24 -0
- package/native/index.d.ts +24 -0
- package/native/index.js +721 -0
- package/native/index.js.map +1 -0
- package/native/index.mjs +688 -0
- package/native/index.mjs.map +1 -0
- package/package.json +59 -0
- package/web/index.d.mts +24 -0
- package/web/index.d.ts +24 -0
- package/web/index.js +693 -0
- package/web/index.js.map +1 -0
- package/web/index.mjs +656 -0
- package/web/index.mjs.map +1 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from '@xsolla/xui-input';
|
|
3
|
+
|
|
4
|
+
interface InputCopyProps extends Omit<InputProps, "onCopy"> {
|
|
5
|
+
/**
|
|
6
|
+
* Callback when value is copied to clipboard
|
|
7
|
+
*/
|
|
8
|
+
onCopy?: (value: string) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to hide the text (like a password field)
|
|
11
|
+
*/
|
|
12
|
+
secureTextEntry?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Initial visibility state when secureTextEntry is true
|
|
15
|
+
*/
|
|
16
|
+
initialVisible?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Test identifier for the component
|
|
19
|
+
*/
|
|
20
|
+
testID?: string;
|
|
21
|
+
}
|
|
22
|
+
declare const InputCopy: React.ForwardRefExoticComponent<InputCopyProps & React.RefAttributes<HTMLInputElement>>;
|
|
23
|
+
|
|
24
|
+
export { InputCopy, type InputCopyProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps } from '@xsolla/xui-input';
|
|
3
|
+
|
|
4
|
+
interface InputCopyProps extends Omit<InputProps, "onCopy"> {
|
|
5
|
+
/**
|
|
6
|
+
* Callback when value is copied to clipboard
|
|
7
|
+
*/
|
|
8
|
+
onCopy?: (value: string) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Whether to hide the text (like a password field)
|
|
11
|
+
*/
|
|
12
|
+
secureTextEntry?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Initial visibility state when secureTextEntry is true
|
|
15
|
+
*/
|
|
16
|
+
initialVisible?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Test identifier for the component
|
|
19
|
+
*/
|
|
20
|
+
testID?: string;
|
|
21
|
+
}
|
|
22
|
+
declare const InputCopy: React.ForwardRefExoticComponent<InputCopyProps & React.RefAttributes<HTMLInputElement>>;
|
|
23
|
+
|
|
24
|
+
export { InputCopy, type InputCopyProps };
|