@invoicebox/ui 0.1.0-alpha.78 → 0.1.0-alpha.79
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,6 +1,7 @@
|
|
|
1
1
|
import { TSupportedCountries } from './types';
|
|
2
2
|
declare class ExternalPhoneLogic {
|
|
3
3
|
getIsValidPhone(value: string, countries?: Array<TSupportedCountries>): boolean;
|
|
4
|
+
getIsValidRusPhone(phone?: string): boolean;
|
|
4
5
|
}
|
|
5
6
|
export declare const phoneLogic: ExternalPhoneLogic;
|
|
6
7
|
export {};
|
|
@@ -27,6 +27,11 @@ var ExternalPhoneLogic = /*#__PURE__*/function () {
|
|
|
27
27
|
});
|
|
28
28
|
return _phoneInputLogic.phoneInputLogic.getIsValidPhoneInputByCountry(notFormattedValue, country ? country[1] : _constants.allCountriesPhoneRules.RUS);
|
|
29
29
|
}
|
|
30
|
+
}, {
|
|
31
|
+
key: "getIsValidRusPhone",
|
|
32
|
+
value: function getIsValidRusPhone(phone) {
|
|
33
|
+
return _phoneInputLogic.phoneInputLogic.getIsValidPhoneInputByCountry(phone || '', _constants.allCountriesPhoneRules.RUS);
|
|
34
|
+
}
|
|
30
35
|
}]);
|
|
31
36
|
return ExternalPhoneLogic;
|
|
32
37
|
}();
|