@wulperstudio/cms
Version:
Wulper Studio Library Components CMS
29 lines (28 loc) • 1.17 kB
TypeScript
import { MenuProps } from '@mui/material';
import { TextFieldV5LabelOutPropsModel } from '../TextFieldV5LabelOut';
import { InputPhoneContinentType, InputPhoneCountry } from './constants';
type BaseTextFieldProps = Omit<TextFieldV5LabelOutPropsModel, 'onChange' | 'select' | 'type' | 'multiline' | 'defaultValue'>;
export type InputPhoneReasonType = 'country' | 'input';
export type InputPhoneInfo = {
countryCode: InputPhoneCountry | null;
countryCallingCode: string | null;
nationalNumber: string | null;
numberValue: string | null;
reason: InputPhoneReasonType;
};
export interface InputPhoneProps extends BaseTextFieldProps {
excludedCountries?: InputPhoneCountry[];
onlyCountries?: InputPhoneCountry[];
preferredCountries?: InputPhoneCountry[];
defaultCountry?: InputPhoneCountry;
forceCallingCode?: boolean;
focusOnSelectCountry?: boolean;
disableDropdown?: boolean;
langOfCountryName?: string;
disableFormatting?: boolean;
continents?: InputPhoneContinentType[];
onChange?: (value: string, info: InputPhoneInfo) => void;
value?: string | undefined;
MenuProps?: Partial<MenuProps>;
}
export {};