@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.
@@ -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 };