@secondstaxorg/sscomp 2.0.53 → 2.0.55
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/index.es.js +1012 -1012
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1294 -53
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1012 -1013
- package/dist/index.min.js.map +1 -1
- package/package.json +3 -1
- package/types/components/PhoneInput/type.d.ts +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secondstaxorg/sscomp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.55",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"@storybook/react-webpack5": "^8.1.10",
|
|
52
52
|
"@storybook/storybook-deployer": "^2.8.16",
|
|
53
53
|
"@storybook/test": "8.1.10",
|
|
54
|
+
"@types/google-libphonenumber": "^7.4.30",
|
|
54
55
|
"@types/react": "^18.0.22",
|
|
55
56
|
"@types/styled-components": "^5.1.26",
|
|
56
57
|
"babel-loader": "^8.2.5",
|
|
@@ -80,6 +81,7 @@
|
|
|
80
81
|
"chart.js": "^3.9.1",
|
|
81
82
|
"dayjs": "^1.11.10",
|
|
82
83
|
"gh-pages": "^4.0.0",
|
|
84
|
+
"google-libphonenumber": "^3.2.38",
|
|
83
85
|
"heroicons": "^2.0.12",
|
|
84
86
|
"password-meter": "^3.10.2",
|
|
85
87
|
"postcss": "^8.4.21",
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export interface PhoneInputProps {
|
|
2
2
|
/**
|
|
3
|
-
* Country code to be displayed on page load
|
|
3
|
+
* Country code to be displayed on page load. Not relevant is if `initialCountry` is already provided
|
|
4
4
|
*/
|
|
5
5
|
initialCountryCode?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Specify country whose country code is to be displayed. Not relevant is if `initialCountryCode` is already provided
|
|
8
|
+
*/
|
|
9
|
+
initialCountry?: string;
|
|
6
10
|
/**
|
|
7
11
|
* Phone number to be displayed on page load
|
|
8
12
|
*/
|
|
@@ -40,7 +44,8 @@ export interface PhoneInputProps {
|
|
|
40
44
|
* */
|
|
41
45
|
onChange: (value: {
|
|
42
46
|
countryCode: string;
|
|
43
|
-
phoneNumber:
|
|
47
|
+
phoneNumber: string;
|
|
48
|
+
country?: string;
|
|
44
49
|
}) => void;
|
|
45
50
|
/**
|
|
46
51
|
* Specify whether the component is a readonly field
|