mui-tel-input 2.0.4 → 2.1.0
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 @@
|
|
|
1
|
+
export declare function removeOccurrence(text: string, part: string | RegExp): string;
|
|
@@ -7,6 +7,7 @@ declare type UsePhoneDigitsParams = {
|
|
|
7
7
|
onChange?: (value: string, info: MuiTelInputInfo) => void;
|
|
8
8
|
defaultCountry?: MuiTelInputCountry;
|
|
9
9
|
forceCallingCode?: boolean;
|
|
10
|
+
splitCallingCode?: boolean;
|
|
10
11
|
disableFormatting?: boolean;
|
|
11
12
|
excludedCountries?: MuiTelInputCountry[];
|
|
12
13
|
onlyCountries?: MuiTelInputCountry[];
|
|
@@ -20,9 +21,10 @@ declare type GetInitialStateParams = {
|
|
|
20
21
|
defaultCountry?: MuiTelInputCountry;
|
|
21
22
|
initialValue: string;
|
|
22
23
|
disableFormatting?: boolean;
|
|
24
|
+
splitCallingCode?: boolean;
|
|
23
25
|
};
|
|
24
26
|
export declare function getInitialState(params: GetInitialStateParams): State;
|
|
25
|
-
export default function usePhoneDigits({ value, onChange, defaultCountry, forceCallingCode, onlyCountries, excludedCountries, continents, disableFormatting }: UsePhoneDigitsParams): {
|
|
27
|
+
export default function usePhoneDigits({ value, onChange, defaultCountry, forceCallingCode, splitCallingCode, onlyCountries, excludedCountries, continents, disableFormatting }: UsePhoneDigitsParams): {
|
|
26
28
|
inputValue: string;
|
|
27
29
|
isoCode: import("libphonenumber-js").CountryCode | null;
|
|
28
30
|
onInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|