mui-tel-input 5.0.0 → 5.0.1

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 CHANGED
@@ -8,7 +8,6 @@ import { getNumberType } from 'libphonenumber-js';
8
8
  import { InputBaseComponentProps } from '@mui/material';
9
9
  import { InputLabelProps } from '@mui/material';
10
10
  import { InputProps } from '@mui/material';
11
- import { isValidPhoneNumber as matchIsValidTel } from 'libphonenumber-js';
12
11
  import type { MenuProps } from '@mui/material/Menu';
13
12
  import { MenuProps as MenuProps_2 } from '@mui/material';
14
13
  import { NumberType } from 'libphonenumber-js';
@@ -45,7 +44,11 @@ export { getNumberType }
45
44
 
46
45
  declare const ISO_CODES: CountryCode[];
47
46
 
48
- export { matchIsValidTel }
47
+ export declare function matchIsValidTel(text: string, options?: {
48
+ excludedCountries?: MuiTelInputCountry[];
49
+ onlyCountries?: MuiTelInputCountry[];
50
+ continents?: MuiTelInputContinent_2[];
51
+ }): boolean;
49
52
 
50
53
  export declare const MuiTelInput: React_2.ForwardRefExoticComponent<(Omit<{
51
54
  label?: React_2.ReactNode;
@@ -75,7 +78,7 @@ export declare const MuiTelInput: React_2.ForwardRefExoticComponent<(Omit<{
75
78
  suppressHydrationWarning?: boolean | undefined;
76
79
  accessKey?: string | undefined;
77
80
  autoFocus?: boolean | undefined;
78
- contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
81
+ contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
79
82
  contextMenu?: string | undefined;
80
83
  dir?: string | undefined;
81
84
  draggable?: (boolean | "false" | "true") | undefined;
@@ -83,7 +86,6 @@ export declare const MuiTelInput: React_2.ForwardRefExoticComponent<(Omit<{
83
86
  id?: string | undefined;
84
87
  lang?: string | undefined;
85
88
  nonce?: string | undefined;
86
- placeholder?: string | undefined;
87
89
  spellCheck?: (boolean | "false" | "true") | undefined;
88
90
  tabIndex?: number | undefined;
89
91
  radioGroup?: string | undefined;
@@ -328,7 +330,7 @@ export declare const MuiTelInput: React_2.ForwardRefExoticComponent<(Omit<{
328
330
  onAnimationIterationCapture?: React_2.AnimationEventHandler<HTMLDivElement> | undefined;
329
331
  onTransitionEnd?: React_2.TransitionEventHandler<HTMLDivElement> | undefined;
330
332
  onTransitionEndCapture?: React_2.TransitionEventHandler<HTMLDivElement> | undefined;
331
- component?: React_2.ElementType<any> | undefined;
333
+ component?: React_2.ElementType<any, keyof React_2.JSX.IntrinsicElements> | undefined;
332
334
  InputProps?: Partial<FilledInputProps> | Partial<OutlinedInputProps> | Partial<InputProps> | undefined;
333
335
  autoComplete?: string | undefined;
334
336
  FormHelperTextProps?: Partial<FormHelperTextProps> | undefined;
@@ -337,6 +339,7 @@ export declare const MuiTelInput: React_2.ForwardRefExoticComponent<(Omit<{
337
339
  inputProps?: InputBaseComponentProps | undefined;
338
340
  inputRef?: React_2.Ref<any> | undefined;
339
341
  name?: string | undefined;
342
+ placeholder?: string | undefined;
340
343
  rows?: string | number | undefined;
341
344
  maxRows?: string | number | undefined;
342
345
  minRows?: string | number | undefined;
@@ -387,7 +390,7 @@ export declare const MuiTelInput: React_2.ForwardRefExoticComponent<(Omit<{
387
390
  suppressHydrationWarning?: boolean | undefined;
388
391
  accessKey?: string | undefined;
389
392
  autoFocus?: boolean | undefined;
390
- contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
393
+ contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
391
394
  contextMenu?: string | undefined;
392
395
  dir?: string | undefined;
393
396
  draggable?: (boolean | "false" | "true") | undefined;
@@ -395,7 +398,6 @@ export declare const MuiTelInput: React_2.ForwardRefExoticComponent<(Omit<{
395
398
  id?: string | undefined;
396
399
  lang?: string | undefined;
397
400
  nonce?: string | undefined;
398
- placeholder?: string | undefined;
399
401
  spellCheck?: (boolean | "false" | "true") | undefined;
400
402
  tabIndex?: number | undefined;
401
403
  radioGroup?: string | undefined;
@@ -640,7 +642,7 @@ export declare const MuiTelInput: React_2.ForwardRefExoticComponent<(Omit<{
640
642
  onAnimationIterationCapture?: React_2.AnimationEventHandler<HTMLDivElement> | undefined;
641
643
  onTransitionEnd?: React_2.TransitionEventHandler<HTMLDivElement> | undefined;
642
644
  onTransitionEndCapture?: React_2.TransitionEventHandler<HTMLDivElement> | undefined;
643
- component?: React_2.ElementType<any> | undefined;
645
+ component?: React_2.ElementType<any, keyof React_2.JSX.IntrinsicElements> | undefined;
644
646
  InputProps?: Partial<FilledInputProps> | Partial<OutlinedInputProps> | Partial<InputProps> | undefined;
645
647
  autoComplete?: string | undefined;
646
648
  FormHelperTextProps?: Partial<FormHelperTextProps> | undefined;
@@ -649,6 +651,7 @@ export declare const MuiTelInput: React_2.ForwardRefExoticComponent<(Omit<{
649
651
  inputProps?: InputBaseComponentProps | undefined;
650
652
  inputRef?: React_2.Ref<any> | undefined;
651
653
  name?: string | undefined;
654
+ placeholder?: string | undefined;
652
655
  rows?: string | number | undefined;
653
656
  maxRows?: string | number | undefined;
654
657
  minRows?: string | number | undefined;
@@ -675,6 +678,8 @@ export declare const MuiTelInput: React_2.ForwardRefExoticComponent<(Omit<{
675
678
 
676
679
  export declare type MuiTelInputContinent = 'EU' | 'AS' | 'NA' | 'SA' | 'OC' | 'AF';
677
680
 
681
+ declare type MuiTelInputContinent_2 = 'EU' | 'AS' | 'NA' | 'SA' | 'OC' | 'AF'
682
+
678
683
  export declare type MuiTelInputCountry = (typeof ISO_CODES)[number];
679
684
 
680
685
  export declare type MuiTelInputFlagElement = React.ReactNode;