mui-tel-input 3.1.3 → 3.2.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.
- package/dist/index.d.ts +1 -1
- package/dist/index.types.d.ts +3 -3
- package/dist/mui-tel-input.es.js +1750 -1518
- package/dist/mui-tel-input.umd.js +16 -18
- package/dist/shared/constants/continents.d.ts +2 -2
- package/dist/shared/constants/countries.d.ts +1 -1
- package/dist/shared/constants/flags.d.ts +1 -1
- package/dist/shared/helpers/country.d.ts +1 -1
- package/dist/shared/hooks/usePhoneDigits.d.ts +3 -3
- package/package.json +39 -37
- package/dist/vite-env.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import type { MuiTelInputContinent, MuiTelInputCountry, MuiTelInputInfo, MuiTelInputProps, MuiTelInputReason } from './index.types';
|
|
3
3
|
export { isValidPhoneNumber as matchIsValidTel, AsYouType, getNumberType } from 'libphonenumber-js';
|
|
4
4
|
export type { MuiTelInputProps, MuiTelInputReason, MuiTelInputInfo, MuiTelInputCountry, MuiTelInputContinent };
|
|
5
|
-
declare const MuiTelInput: React.ForwardRefExoticComponent<
|
|
5
|
+
declare const MuiTelInput: React.ForwardRefExoticComponent<Omit<MuiTelInputProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export { MuiTelInput };
|
package/dist/index.types.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import type { MenuProps } from '@mui/material/Menu';
|
|
|
3
3
|
import type { TextFieldProps } from '@mui/material/TextField';
|
|
4
4
|
import type { MuiTelInputContinent } from './shared/constants/continents';
|
|
5
5
|
import type { MuiTelInputCountry } from './shared/constants/countries';
|
|
6
|
-
|
|
6
|
+
type BaseTextFieldProps = Omit<TextFieldProps, 'onChange' | 'select' | 'type' | 'multiline' | 'defaultValue'>;
|
|
7
7
|
export type { MuiTelInputContinent, MuiTelInputCountry };
|
|
8
|
-
export
|
|
9
|
-
export
|
|
8
|
+
export type FlagSize = `small` | 'medium';
|
|
9
|
+
export type MuiTelInputReason = 'country' | 'input';
|
|
10
10
|
export interface MuiTelInputInfo {
|
|
11
11
|
countryCode: MuiTelInputCountry | null;
|
|
12
12
|
countryCallingCode: string | null;
|