react-simple-phone-input
Advanced tools
Comparing version 1.0.6-beta to 1.0.7-beta
@@ -1,3 +0,22 @@ | ||
/// <reference types="react" /> | ||
declare const PhoneInput: () => JSX.Element; | ||
import React, { ReactNode } from "react"; | ||
interface Props { | ||
placeholder: string; | ||
country: string; | ||
onChange: (e: string) => void; | ||
value?: string; | ||
iconComponent?: ReactNode; | ||
inputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>; | ||
onlyCountries?: string[]; | ||
excludeCountries?: string[]; | ||
preferredCountries?: string[]; | ||
showDropdownIcon?: boolean; | ||
dialCodeInputField?: boolean; | ||
search?: boolean; | ||
searchPlaceholder?: string; | ||
showSearchIcon?: boolean; | ||
searchIconComponent?: ReactNode; | ||
searchProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>; | ||
searchNotFound?: string; | ||
} | ||
declare const PhoneInput: ({ placeholder, country, onChange, value, iconComponent, inputProps, onlyCountries, excludeCountries, preferredCountries, showDropdownIcon, dialCodeInputField, search, searchPlaceholder, showSearchIcon, searchIconComponent, searchProps, searchNotFound }: Props) => JSX.Element; | ||
export default PhoneInput; |
@@ -1,3 +0,22 @@ | ||
/// <reference types="react" /> | ||
declare const PhoneInput: () => JSX.Element; | ||
import React, { ReactNode } from "react"; | ||
interface Props { | ||
placeholder: string; | ||
country: string; | ||
onChange: (e: string) => void; | ||
value?: string; | ||
iconComponent?: ReactNode; | ||
inputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>; | ||
onlyCountries?: string[]; | ||
excludeCountries?: string[]; | ||
preferredCountries?: string[]; | ||
showDropdownIcon?: boolean; | ||
dialCodeInputField?: boolean; | ||
search?: boolean; | ||
searchPlaceholder?: string; | ||
showSearchIcon?: boolean; | ||
searchIconComponent?: ReactNode; | ||
searchProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>; | ||
searchNotFound?: string; | ||
} | ||
declare const PhoneInput: ({ placeholder, country, onChange, value, iconComponent, inputProps, onlyCountries, excludeCountries, preferredCountries, showDropdownIcon, dialCodeInputField, search, searchPlaceholder, showSearchIcon, searchIconComponent, searchProps, searchNotFound }: Props) => JSX.Element; | ||
export default PhoneInput; |
@@ -1,4 +0,24 @@ | ||
/// <reference types="react" /> | ||
declare const PhoneInput: () => JSX.Element; | ||
import React, { ReactNode } from 'react'; | ||
interface Props { | ||
placeholder: string; | ||
country: string; | ||
onChange: (e: string) => void; | ||
value?: string; | ||
iconComponent?: ReactNode; | ||
inputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>; | ||
onlyCountries?: string[]; | ||
excludeCountries?: string[]; | ||
preferredCountries?: string[]; | ||
showDropdownIcon?: boolean; | ||
dialCodeInputField?: boolean; | ||
search?: boolean; | ||
searchPlaceholder?: string; | ||
showSearchIcon?: boolean; | ||
searchIconComponent?: ReactNode; | ||
searchProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>; | ||
searchNotFound?: string; | ||
} | ||
declare const PhoneInput: ({ placeholder, country, onChange, value, iconComponent, inputProps, onlyCountries, excludeCountries, preferredCountries, showDropdownIcon, dialCodeInputField, search, searchPlaceholder, showSearchIcon, searchIconComponent, searchProps, searchNotFound }: Props) => JSX.Element; | ||
export { PhoneInput }; |
{ | ||
"name": "react-simple-phone-input", | ||
"version": "1.0.6-beta", | ||
"version": "1.0.7-beta", | ||
"description": "A simple react phone input component with calling code dropdown🤷", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
684079
26
7528