@ollaid/native-sso 1.0.6 → 1.0.8
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/README.md +185 -13
- package/dist/components/LoginModal.d.ts +3 -1
- package/dist/components/PhoneInput.d.ts +1 -0
- package/dist/components/SignupModal.d.ts +3 -1
- package/dist/components/ui.d.ts +10 -0
- package/dist/hooks/useMobileRegistration.d.ts +1 -1
- package/dist/index.cjs +772 -359
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +772 -359
- package/dist/index.js.map +1 -1
- package/dist/utils/countries.d.ts +19 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Complete world countries list for @ollaid/native-sso
|
|
3
|
+
* Default: Sénégal (+221, SN)
|
|
4
|
+
*/
|
|
5
|
+
export interface Country {
|
|
6
|
+
code: string;
|
|
7
|
+
name: string;
|
|
8
|
+
dialCode: string;
|
|
9
|
+
flag: string;
|
|
10
|
+
digits: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const COUNTRIES: Country[];
|
|
13
|
+
export declare const DEFAULT_COUNTRY_CODE = "SN";
|
|
14
|
+
export declare const DEFAULT_DIAL_CODE = "+221";
|
|
15
|
+
export declare const COUNTRIES_SORTED_BY_CODE: Country[];
|
|
16
|
+
export declare const getCountryByCode: (code: string) => Country | undefined;
|
|
17
|
+
export declare const getCountryByDialCode: (dialCode: string) => Country | undefined;
|
|
18
|
+
export declare const getDefaultCountry: () => Country;
|
|
19
|
+
export declare const searchCountries: (query: string) => Country[];
|