mui-tel-input 6.0.1 → 7.0.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 +10 -7
- package/dist/mui-tel-input.es.js +493 -495
- package/package.json +28 -26
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { FilledInputProps } from '@mui/material';
|
|
|
6
6
|
import { FormControlProps } from '@mui/material';
|
|
7
7
|
import { FormHelperTextProps } from '@mui/material';
|
|
8
8
|
import { getNumberType } from 'libphonenumber-js';
|
|
9
|
+
import { IconButtonProps } from '@mui/material/IconButton';
|
|
10
|
+
import { IconButtonProps as IconButtonProps_2 } from '@mui/material';
|
|
9
11
|
import { InputBaseComponentProps } from '@mui/material';
|
|
10
12
|
import { InputBaseProps } from '@mui/material';
|
|
11
13
|
import { InputLabelProps } from '@mui/material';
|
|
@@ -27,7 +29,7 @@ import { Theme } from '@mui/material';
|
|
|
27
29
|
|
|
28
30
|
export { AsYouType }
|
|
29
31
|
|
|
30
|
-
declare type BaseTextFieldProps = Omit<TextFieldProps, 'onChange' | 'select' | 'type' | 'multiline' | 'defaultValue'>;
|
|
32
|
+
declare type BaseTextFieldProps = Omit<TextFieldProps, 'onChange' | 'select' | 'type' | 'multiline' | 'defaultValue' | 'inputProps' | 'InputProps'>;
|
|
31
33
|
|
|
32
34
|
export declare const classes: {
|
|
33
35
|
readonly textField: "MuiTelInput-TextField";
|
|
@@ -92,11 +94,13 @@ export declare const MuiTelInput: default_2.ForwardRefExoticComponent<(Omit<{
|
|
|
92
94
|
suppressContentEditableWarning?: boolean | undefined;
|
|
93
95
|
suppressHydrationWarning?: boolean | undefined;
|
|
94
96
|
accessKey?: string | undefined;
|
|
97
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
95
98
|
autoFocus?: boolean | undefined;
|
|
96
99
|
contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
|
|
97
100
|
contextMenu?: string | undefined;
|
|
98
101
|
dir?: string | undefined;
|
|
99
102
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
103
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
100
104
|
hidden?: boolean | undefined;
|
|
101
105
|
id?: string | undefined;
|
|
102
106
|
lang?: string | undefined;
|
|
@@ -115,7 +119,6 @@ export declare const MuiTelInput: default_2.ForwardRefExoticComponent<(Omit<{
|
|
|
115
119
|
rev?: string | undefined;
|
|
116
120
|
typeof?: string | undefined;
|
|
117
121
|
vocab?: string | undefined;
|
|
118
|
-
autoCapitalize?: string | undefined;
|
|
119
122
|
autoCorrect?: string | undefined;
|
|
120
123
|
autoSave?: string | undefined;
|
|
121
124
|
itemProp?: string | undefined;
|
|
@@ -344,12 +347,10 @@ export declare const MuiTelInput: default_2.ForwardRefExoticComponent<(Omit<{
|
|
|
344
347
|
onTransitionEnd?: default_2.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
345
348
|
onTransitionEndCapture?: default_2.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
346
349
|
component?: default_2.ElementType | undefined;
|
|
347
|
-
InputProps?: Partial<FilledInputProps> | Partial<OutlinedInputProps> | Partial<InputProps> | undefined;
|
|
348
350
|
autoComplete?: string | undefined;
|
|
349
351
|
FormHelperTextProps?: Partial<FormHelperTextProps> | undefined;
|
|
350
352
|
helperText?: default_2.ReactNode;
|
|
351
353
|
InputLabelProps?: Partial<InputLabelProps> | undefined;
|
|
352
|
-
inputProps?: InputBaseProps["inputProps"];
|
|
353
354
|
inputRef?: default_2.Ref<any> | undefined;
|
|
354
355
|
name?: string | undefined;
|
|
355
356
|
placeholder?: string | undefined;
|
|
@@ -395,6 +396,7 @@ export declare const MuiTelInput: default_2.ForwardRefExoticComponent<(Omit<{
|
|
|
395
396
|
MenuProps?: Partial<MenuProps_2>;
|
|
396
397
|
getFlagElement?: GetFlagElement;
|
|
397
398
|
unknownFlagElement?: MuiTelInputFlagElement;
|
|
399
|
+
FlagIconButtonProps?: Partial<IconButtonProps_2>;
|
|
398
400
|
}, "ref"> | Omit<{
|
|
399
401
|
label?: default_2.ReactNode;
|
|
400
402
|
slot?: string | undefined;
|
|
@@ -422,11 +424,13 @@ export declare const MuiTelInput: default_2.ForwardRefExoticComponent<(Omit<{
|
|
|
422
424
|
suppressContentEditableWarning?: boolean | undefined;
|
|
423
425
|
suppressHydrationWarning?: boolean | undefined;
|
|
424
426
|
accessKey?: string | undefined;
|
|
427
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
425
428
|
autoFocus?: boolean | undefined;
|
|
426
429
|
contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
|
|
427
430
|
contextMenu?: string | undefined;
|
|
428
431
|
dir?: string | undefined;
|
|
429
432
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
433
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
430
434
|
hidden?: boolean | undefined;
|
|
431
435
|
id?: string | undefined;
|
|
432
436
|
lang?: string | undefined;
|
|
@@ -445,7 +449,6 @@ export declare const MuiTelInput: default_2.ForwardRefExoticComponent<(Omit<{
|
|
|
445
449
|
rev?: string | undefined;
|
|
446
450
|
typeof?: string | undefined;
|
|
447
451
|
vocab?: string | undefined;
|
|
448
|
-
autoCapitalize?: string | undefined;
|
|
449
452
|
autoCorrect?: string | undefined;
|
|
450
453
|
autoSave?: string | undefined;
|
|
451
454
|
itemProp?: string | undefined;
|
|
@@ -674,12 +677,10 @@ export declare const MuiTelInput: default_2.ForwardRefExoticComponent<(Omit<{
|
|
|
674
677
|
onTransitionEnd?: default_2.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
675
678
|
onTransitionEndCapture?: default_2.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
676
679
|
component?: default_2.ElementType | undefined;
|
|
677
|
-
InputProps?: Partial<FilledInputProps> | Partial<OutlinedInputProps> | Partial<InputProps> | undefined;
|
|
678
680
|
autoComplete?: string | undefined;
|
|
679
681
|
FormHelperTextProps?: Partial<FormHelperTextProps> | undefined;
|
|
680
682
|
helperText?: default_2.ReactNode;
|
|
681
683
|
InputLabelProps?: Partial<InputLabelProps> | undefined;
|
|
682
|
-
inputProps?: InputBaseProps["inputProps"];
|
|
683
684
|
inputRef?: default_2.Ref<any> | undefined;
|
|
684
685
|
name?: string | undefined;
|
|
685
686
|
placeholder?: string | undefined;
|
|
@@ -725,6 +726,7 @@ export declare const MuiTelInput: default_2.ForwardRefExoticComponent<(Omit<{
|
|
|
725
726
|
MenuProps?: Partial<MenuProps_2>;
|
|
726
727
|
getFlagElement?: GetFlagElement;
|
|
727
728
|
unknownFlagElement?: MuiTelInputFlagElement;
|
|
729
|
+
FlagIconButtonProps?: Partial<IconButtonProps_2>;
|
|
728
730
|
}, "ref">) & default_2.RefAttributes<HTMLDivElement>>;
|
|
729
731
|
|
|
730
732
|
export declare type MuiTelInputContinent = 'EU' | 'AS' | 'NA' | 'SA' | 'OC' | 'AF';
|
|
@@ -758,6 +760,7 @@ export declare type MuiTelInputProps = BaseTextFieldProps & ForceCallingCodeWith
|
|
|
758
760
|
MenuProps?: Partial<MenuProps>;
|
|
759
761
|
getFlagElement?: GetFlagElement;
|
|
760
762
|
unknownFlagElement?: MuiTelInputFlagElement;
|
|
763
|
+
FlagIconButtonProps?: Partial<IconButtonProps>;
|
|
761
764
|
};
|
|
762
765
|
|
|
763
766
|
export declare type MuiTelInputReason = 'country' | 'input';
|