UNPKG

@ebay/ui-core-react

Version:

Skin components build off React

29 lines 1.25 kB
import { ComponentProps, FC } from "react"; import { EbayChangeEventHandler, EbayFocusEventHandler, EbayKeyboardEventHandler } from "../common/event-utils/types"; export interface PhoneInputEvent { value?: string; rawValue?: string; callingCode?: string; countryCode?: string; } export type EbayPhoneInputProps = Omit<ComponentProps<"span">, "onChange"> & { countryCode?: string; value?: string; locale?: string; floatingLabel?: string; disabled?: boolean; readonly?: boolean; invalid?: boolean; onFocus?: EbayFocusEventHandler<HTMLInputElement, PhoneInputEvent>; onBlur?: EbayFocusEventHandler<HTMLInputElement, PhoneInputEvent>; onChange?: EbayChangeEventHandler<HTMLInputElement, PhoneInputEvent>; onInputChange?: EbayChangeEventHandler<HTMLInputElement, PhoneInputEvent>; onKeyDown?: EbayKeyboardEventHandler<HTMLInputElement, PhoneInputEvent>; onKeyPress?: EbayKeyboardEventHandler<HTMLInputElement, PhoneInputEvent>; onKeyUp?: EbayKeyboardEventHandler<HTMLInputElement, PhoneInputEvent>; onExpand?: () => void; onCollapse?: () => void; }; declare const EbayPhoneInput: FC<EbayPhoneInputProps>; export default EbayPhoneInput; //# sourceMappingURL=phone-input.d.ts.map