@xsolla/xui-input-phone 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 +28 -0
- package/native/index.d.ts +28 -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 +46 -0
- package/web/index.d.mts +28 -0
- package/web/index.d.ts +28 -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,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface Country {
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
dialCode: string;
|
|
7
|
+
flag?: string;
|
|
8
|
+
}
|
|
9
|
+
interface InputPhoneProps {
|
|
10
|
+
value?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
onChangeText?: (text: string) => void;
|
|
13
|
+
size?: "xl" | "l" | "m" | "s" | "xs";
|
|
14
|
+
state?: "default" | "hover" | "focus" | "disable" | "error" | "loading";
|
|
15
|
+
label?: string;
|
|
16
|
+
errorLabel?: string;
|
|
17
|
+
countries?: Country[];
|
|
18
|
+
selectedCountry?: Country;
|
|
19
|
+
onCountrySelect?: (country: Country) => void;
|
|
20
|
+
filled?: boolean;
|
|
21
|
+
showClear?: boolean;
|
|
22
|
+
showCheck?: boolean;
|
|
23
|
+
showSearch?: boolean;
|
|
24
|
+
onClear?: () => void;
|
|
25
|
+
}
|
|
26
|
+
declare const InputPhone: React.FC<InputPhoneProps>;
|
|
27
|
+
|
|
28
|
+
export { type Country, InputPhone, type InputPhoneProps };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface Country {
|
|
4
|
+
code: string;
|
|
5
|
+
name: string;
|
|
6
|
+
dialCode: string;
|
|
7
|
+
flag?: string;
|
|
8
|
+
}
|
|
9
|
+
interface InputPhoneProps {
|
|
10
|
+
value?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
onChangeText?: (text: string) => void;
|
|
13
|
+
size?: "xl" | "l" | "m" | "s" | "xs";
|
|
14
|
+
state?: "default" | "hover" | "focus" | "disable" | "error" | "loading";
|
|
15
|
+
label?: string;
|
|
16
|
+
errorLabel?: string;
|
|
17
|
+
countries?: Country[];
|
|
18
|
+
selectedCountry?: Country;
|
|
19
|
+
onCountrySelect?: (country: Country) => void;
|
|
20
|
+
filled?: boolean;
|
|
21
|
+
showClear?: boolean;
|
|
22
|
+
showCheck?: boolean;
|
|
23
|
+
showSearch?: boolean;
|
|
24
|
+
onClear?: () => void;
|
|
25
|
+
}
|
|
26
|
+
declare const InputPhone: React.FC<InputPhoneProps>;
|
|
27
|
+
|
|
28
|
+
export { type Country, InputPhone, type InputPhoneProps };
|