import React, { ChangeEvent } from "react"; export type PhoneNumberValueType = string | undefined; export interface PhoneNumberProps { /**Component id. */ id?: string; /**Input value. */ value?: PhoneNumberValueType; /**Input 'placeholder' attribute */ placeholder?: string; /**Component custom style. */ style?: React.CSSProperties; /**Component custom CSS class. */ className?: string; /**Set 'disabled' attribute on menu input. */ disabled?: boolean; /**Input 'name' attribute. */ name?: string; /**Maximum length of input number. */ maxLength?: number; /**Executes when input value changes * * @param { SyntheticEvent } event react `SyntheticEvent` * */ onChange?: (event: ChangeEvent) => void; } export interface PhoneNumberInputStyleType { "--inputBgColor"?: string; "--inputColor"?: string; }