@rh-support/components 2.1.6 → 2.1.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/PhoneInput.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAU3B,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACtE,mBAAmB,CAAC,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,OAAO,KAAA,KAAK,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AA2DD,eAAO,MAAM,WAAW,gBAAiB,MAAM;;;CAqB9C,CAAC;AAEF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eAmPvC"}
1
+ {"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/PhoneInput.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAU3B,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACtE,mBAAmB,CAAC,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,OAAO,KAAA,KAAK,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AA2DD,eAAO,MAAM,WAAW,gBAAiB,MAAM;;;CAqB9C,CAAC;AAEF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eAgPvC"}
@@ -135,10 +135,6 @@ function PhoneInput(props) {
135
135
  const exactCountry = initializedCountries.filter((country) => country.dialCode.toString() === localPhone);
136
136
  if (!isEmpty_1.default(isCountryCanada)) {
137
137
  const canadaCountryObj = initializedCountries.filter((country) => country.iso2.toString() === 'ca');
138
- if (isEqual_1.default(canadaCountryObj[0].dialCode.toString(), countryObj.dialCode)) {
139
- setIso2(countryObj.iso2);
140
- return countryObj.format;
141
- }
142
138
  setIso2(canadaCountryObj[0].iso2.toString());
143
139
  localFormat = canadaCountryObj[0].format.toString();
144
140
  onCountryCodeChange && onCountryCodeChange(PREFIX + canadaCountryObj[0].dialCode.toString());
@@ -148,6 +144,7 @@ function PhoneInput(props) {
148
144
  const localExactCountry = exactCountry.filter((country) => isEqual_1.default(country.priority, 0));
149
145
  if (isEqual_1.default(localExactCountry[0].dialCode.toString(), countryObj.dialCode)) {
150
146
  setIso2(countryObj.iso2);
147
+ onCountryCodeChange && onCountryCodeChange(PREFIX + countryObj.countryCode);
151
148
  return countryObj.format;
152
149
  }
153
150
  setIso2(localExactCountry[0].iso2.toString());
@@ -159,6 +156,7 @@ function PhoneInput(props) {
159
156
  const localPossibleCountry = possibleCountries.filter((country) => isEqual_1.default(country.priority, 0));
160
157
  if (isEqual_1.default(localPossibleCountry[0].dialCode.toString(), countryObj.dialCode)) {
161
158
  setIso2(countryObj.iso2);
159
+ onCountryCodeChange && onCountryCodeChange(PREFIX + countryObj.countryCode);
162
160
  return countryObj.format;
163
161
  }
164
162
  setIso2(localPossibleCountry[0].iso2.toString());
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/PhoneInput.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAU3B,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACtE,mBAAmB,CAAC,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,OAAO,KAAA,KAAK,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AA2DD,eAAO,MAAM,WAAW,gBAAiB,MAAM;;;CAqB9C,CAAC;AAEF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eAmPvC"}
1
+ {"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/PhoneInput.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAU3B,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACtE,mBAAmB,CAAC,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,OAAO,KAAA,KAAK,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AA2DD,eAAO,MAAM,WAAW,gBAAiB,MAAM;;;CAqB9C,CAAC;AAEF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eAgPvC"}
@@ -109,10 +109,6 @@ export function PhoneInput(props) {
109
109
  const exactCountry = initializedCountries.filter((country) => country.dialCode.toString() === localPhone);
110
110
  if (!isEmpty(isCountryCanada)) {
111
111
  const canadaCountryObj = initializedCountries.filter((country) => country.iso2.toString() === 'ca');
112
- if (isEqual(canadaCountryObj[0].dialCode.toString(), countryObj.dialCode)) {
113
- setIso2(countryObj.iso2);
114
- return countryObj.format;
115
- }
116
112
  setIso2(canadaCountryObj[0].iso2.toString());
117
113
  localFormat = canadaCountryObj[0].format.toString();
118
114
  onCountryCodeChange && onCountryCodeChange(PREFIX + canadaCountryObj[0].dialCode.toString());
@@ -122,6 +118,7 @@ export function PhoneInput(props) {
122
118
  const localExactCountry = exactCountry.filter((country) => isEqual(country.priority, 0));
123
119
  if (isEqual(localExactCountry[0].dialCode.toString(), countryObj.dialCode)) {
124
120
  setIso2(countryObj.iso2);
121
+ onCountryCodeChange && onCountryCodeChange(PREFIX + countryObj.countryCode);
125
122
  return countryObj.format;
126
123
  }
127
124
  setIso2(localExactCountry[0].iso2.toString());
@@ -133,6 +130,7 @@ export function PhoneInput(props) {
133
130
  const localPossibleCountry = possibleCountries.filter((country) => isEqual(country.priority, 0));
134
131
  if (isEqual(localPossibleCountry[0].dialCode.toString(), countryObj.dialCode)) {
135
132
  setIso2(countryObj.iso2);
133
+ onCountryCodeChange && onCountryCodeChange(PREFIX + countryObj.countryCode);
136
134
  return countryObj.format;
137
135
  }
138
136
  setIso2(localPossibleCountry[0].iso2.toString());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/components",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "Contains all reusabel components for support app",
5
5
  "author": "Vikas Rathee <vrathee@redhat.com>",
6
6
  "license": "ISC",
@@ -117,5 +117,5 @@
117
117
  "defaults and supports es6-module",
118
118
  "maintained node versions"
119
119
  ],
120
- "gitHead": "18d4816c03d679b40b4523e266e375e44344492a"
120
+ "gitHead": "ea9b9ee30bf7f2cbb008a2100da620e69f8214e2"
121
121
  }