react-simple-phone-input 1.0.7-beta → 1.0.9-beta
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/cjs/index.js +15 -15
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/PhoneInput/PhoneInput.d.ts +3 -3
- package/dist/esm/index.js +15 -15
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/PhoneInput/PhoneInput.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +6 -1
- package/dist/cjs/types/components/button/Button.d.ts +0 -7
- package/dist/cjs/types/components/button/index.d.ts +0 -1
- package/dist/esm/types/components/button/Button.d.ts +0 -7
- package/dist/esm/types/components/button/index.d.ts +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
placeholder: string;
|
|
4
4
|
country: string;
|
|
5
5
|
onChange: (e: string) => void;
|
|
6
6
|
value?: string;
|
|
7
|
-
iconComponent?: ReactNode;
|
|
7
|
+
iconComponent?: React.ReactNode;
|
|
8
8
|
inputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
9
9
|
onlyCountries?: string[];
|
|
10
10
|
excludeCountries?: string[];
|
|
@@ -14,7 +14,7 @@ interface Props {
|
|
|
14
14
|
search?: boolean;
|
|
15
15
|
searchPlaceholder?: string;
|
|
16
16
|
showSearchIcon?: boolean;
|
|
17
|
-
searchIconComponent?: ReactNode;
|
|
17
|
+
searchIconComponent?: React.ReactNode;
|
|
18
18
|
searchProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
19
19
|
searchNotFound?: string;
|
|
20
20
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
interface Props {
|
|
4
4
|
placeholder: string;
|
|
5
5
|
country: string;
|
|
6
6
|
onChange: (e: string) => void;
|
|
7
7
|
value?: string;
|
|
8
|
-
iconComponent?: ReactNode;
|
|
8
|
+
iconComponent?: React.ReactNode;
|
|
9
9
|
inputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
10
10
|
onlyCountries?: string[];
|
|
11
11
|
excludeCountries?: string[];
|
|
@@ -15,7 +15,7 @@ interface Props {
|
|
|
15
15
|
search?: boolean;
|
|
16
16
|
searchPlaceholder?: string;
|
|
17
17
|
showSearchIcon?: boolean;
|
|
18
|
-
searchIconComponent?: ReactNode;
|
|
18
|
+
searchIconComponent?: React.ReactNode;
|
|
19
19
|
searchProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
20
20
|
searchNotFound?: string;
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-simple-phone-input",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9-beta",
|
|
4
4
|
"description": "A simple react phone input component with calling code dropdown🤷",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,9 +31,14 @@
|
|
|
31
31
|
"@types/react": "^18.0.26",
|
|
32
32
|
"postcss": "^8.4.20",
|
|
33
33
|
"react": "^18.2.0",
|
|
34
|
+
"react-dom": "^18.2.0",
|
|
34
35
|
"rollup-plugin-dts": "^5.0.0",
|
|
35
36
|
"rollup-plugin-postcss": "^4.0.2",
|
|
36
37
|
"tslib": "^2.4.1",
|
|
37
38
|
"typescript": "^4.9.4"
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"react": "^18.2.0",
|
|
42
|
+
"react-dom": "^18.2.0"
|
|
38
43
|
}
|
|
39
44
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import "./Button.css";
|
|
3
|
-
interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
4
|
-
textStyle?: React.CSSProperties;
|
|
5
|
-
}
|
|
6
|
-
declare const Button: React.FunctionComponent<ButtonProps>;
|
|
7
|
-
export default Button;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Button";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import "./Button.css";
|
|
3
|
-
interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
4
|
-
textStyle?: React.CSSProperties;
|
|
5
|
-
}
|
|
6
|
-
declare const Button: React.FunctionComponent<ButtonProps>;
|
|
7
|
-
export default Button;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Button";
|