@intl-tel-input/react 28.0.2 → 28.0.3
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/README.md +14 -2
- package/dist/IntlTelInput.js +5 -5
- package/dist/IntlTelInputWithUtils.js +5 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# React component for intl-tel-input
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
For entering, formatting, and validating international telephone numbers.
|
|
4
4
|
|
|
5
5
|
[Explore docs »](https://intl-tel-input.com/docs/react-component)
|
|
6
6
|
|
|
@@ -10,6 +10,10 @@ A React component for the [intl-tel-input](https://github.com/jackocnr/intl-tel-
|
|
|
10
10
|
<img width="271" height="279" alt="intl-tel-input screenshot showing country dropdown open" src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/iti-github-light.png">
|
|
11
11
|
</picture>
|
|
12
12
|
|
|
13
|
+
## Resources
|
|
14
|
+
|
|
15
|
+
Check out the [website](https://intl-tel-input.com), where you can find [a full set of docs](https://intl-tel-input.com/docs/react-component), a [live playground](https://intl-tel-input.com/playground/) where you can try out all of the options, as well as plenty of [examples](https://intl-tel-input.com/examples/react-component/validation) of different setups.
|
|
16
|
+
|
|
13
17
|
## Running the demos locally
|
|
14
18
|
|
|
15
19
|
1. Initialise the submodules: `git submodule update --init --recursive`
|
|
@@ -17,3 +21,11 @@ A React component for the [intl-tel-input](https://github.com/jackocnr/intl-tel-
|
|
|
17
21
|
3. Build: `npm run build`
|
|
18
22
|
|
|
19
23
|
You can then open `packages/react/demo/validation/index.html` in your browser to try the validation demo. View the full list of [available demos](https://github.com/jackocnr/intl-tel-input/tree/master/packages/react/demo).
|
|
24
|
+
|
|
25
|
+
## Issues and contributing
|
|
26
|
+
|
|
27
|
+
Please report issues and open pull requests on the [main repository](https://github.com/jackocnr/intl-tel-input).
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
MIT
|
package/dist/IntlTelInput.js
CHANGED
|
@@ -1965,7 +1965,7 @@ var defaults = {
|
|
|
1965
1965
|
//* A function to load the utils script.
|
|
1966
1966
|
loadUtils: null,
|
|
1967
1967
|
//* National vs international formatting for numbers e.g. placeholders and displaying existing numbers.
|
|
1968
|
-
nationalMode:
|
|
1968
|
+
nationalMode: false,
|
|
1969
1969
|
//* Display only these countries.
|
|
1970
1970
|
onlyCountries: null,
|
|
1971
1971
|
//* Number type to use for placeholders.
|
|
@@ -4633,7 +4633,7 @@ var intlTelInput = Object.assign(
|
|
|
4633
4633
|
attachUtils,
|
|
4634
4634
|
startedLoadingUtils: false,
|
|
4635
4635
|
startedLoadingAutoCountry: false,
|
|
4636
|
-
version: "28.0.
|
|
4636
|
+
version: "28.0.3",
|
|
4637
4637
|
NUMBER_FORMAT,
|
|
4638
4638
|
NUMBER_TYPE,
|
|
4639
4639
|
VALIDATION_ERROR
|
|
@@ -4671,7 +4671,7 @@ var IntlTelInput = forwardRef(function IntlTelInput2({
|
|
|
4671
4671
|
}, ref) {
|
|
4672
4672
|
const inputRef = useRef(null);
|
|
4673
4673
|
const itiRef = useRef(null);
|
|
4674
|
-
const
|
|
4674
|
+
const libraryInputClassesRef = useRef("");
|
|
4675
4675
|
const lastEmittedNumberRef = useRef(void 0);
|
|
4676
4676
|
const lastEmittedCountryRef = useRef(void 0);
|
|
4677
4677
|
const lastEmittedValidityRef = useRef(void 0);
|
|
@@ -4738,7 +4738,7 @@ var IntlTelInput = forwardRef(function IntlTelInput2({
|
|
|
4738
4738
|
return void 0;
|
|
4739
4739
|
}
|
|
4740
4740
|
itiRef.current = intlTelInput_default(inputEl, initOptions);
|
|
4741
|
-
|
|
4741
|
+
libraryInputClassesRef.current = inputEl.className;
|
|
4742
4742
|
const handleOpen = () => onOpenCountryDropdownRef.current?.();
|
|
4743
4743
|
const handleClose = () => onCloseCountryDropdownRef.current?.();
|
|
4744
4744
|
const handleStrictReject = (e) => {
|
|
@@ -4802,7 +4802,7 @@ var IntlTelInput = forwardRef(function IntlTelInput2({
|
|
|
4802
4802
|
if (ignoredInputProps.has(key)) {
|
|
4803
4803
|
warnInputProp(key);
|
|
4804
4804
|
} else if (key === "className") {
|
|
4805
|
-
sanitizedInputProps[key] = `${
|
|
4805
|
+
sanitizedInputProps[key] = `${libraryInputClassesRef.current} ${val}`;
|
|
4806
4806
|
} else {
|
|
4807
4807
|
sanitizedInputProps[key] = val;
|
|
4808
4808
|
}
|
|
@@ -1965,7 +1965,7 @@ var defaults = {
|
|
|
1965
1965
|
//* A function to load the utils script.
|
|
1966
1966
|
loadUtils: null,
|
|
1967
1967
|
//* National vs international formatting for numbers e.g. placeholders and displaying existing numbers.
|
|
1968
|
-
nationalMode:
|
|
1968
|
+
nationalMode: false,
|
|
1969
1969
|
//* Display only these countries.
|
|
1970
1970
|
onlyCountries: null,
|
|
1971
1971
|
//* Number type to use for placeholders.
|
|
@@ -4633,7 +4633,7 @@ var intlTelInput = Object.assign(
|
|
|
4633
4633
|
attachUtils,
|
|
4634
4634
|
startedLoadingUtils: false,
|
|
4635
4635
|
startedLoadingAutoCountry: false,
|
|
4636
|
-
version: "28.0.
|
|
4636
|
+
version: "28.0.3",
|
|
4637
4637
|
NUMBER_FORMAT,
|
|
4638
4638
|
NUMBER_TYPE,
|
|
4639
4639
|
VALIDATION_ERROR
|
|
@@ -11025,7 +11025,7 @@ var IntlTelInput = forwardRef(function IntlTelInput2({
|
|
|
11025
11025
|
}, ref) {
|
|
11026
11026
|
const inputRef = useRef(null);
|
|
11027
11027
|
const itiRef = useRef(null);
|
|
11028
|
-
const
|
|
11028
|
+
const libraryInputClassesRef = useRef("");
|
|
11029
11029
|
const lastEmittedNumberRef = useRef(void 0);
|
|
11030
11030
|
const lastEmittedCountryRef = useRef(void 0);
|
|
11031
11031
|
const lastEmittedValidityRef = useRef(void 0);
|
|
@@ -11092,7 +11092,7 @@ var IntlTelInput = forwardRef(function IntlTelInput2({
|
|
|
11092
11092
|
return void 0;
|
|
11093
11093
|
}
|
|
11094
11094
|
itiRef.current = intlTelInput_default(inputEl, initOptions);
|
|
11095
|
-
|
|
11095
|
+
libraryInputClassesRef.current = inputEl.className;
|
|
11096
11096
|
const handleOpen = () => onOpenCountryDropdownRef.current?.();
|
|
11097
11097
|
const handleClose = () => onCloseCountryDropdownRef.current?.();
|
|
11098
11098
|
const handleStrictReject = (e) => {
|
|
@@ -11156,7 +11156,7 @@ var IntlTelInput = forwardRef(function IntlTelInput2({
|
|
|
11156
11156
|
if (ignoredInputProps.has(key)) {
|
|
11157
11157
|
warnInputProp(key);
|
|
11158
11158
|
} else if (key === "className") {
|
|
11159
|
-
sanitizedInputProps[key] = `${
|
|
11159
|
+
sanitizedInputProps[key] = `${libraryInputClassesRef.current} ${val}`;
|
|
11160
11160
|
} else {
|
|
11161
11161
|
sanitizedInputProps[key] = val;
|
|
11162
11162
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intl-tel-input/react",
|
|
3
|
-
"version": "28.0.
|
|
4
|
-
"description": "A React component for
|
|
3
|
+
"version": "28.0.3",
|
|
4
|
+
"description": "A React component for intl-tel-input, for entering, formatting, and validating international telephone numbers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Jack O'Connor (http://jackocnr.com)",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"intl-tel-input": "^28.0.
|
|
37
|
+
"intl-tel-input": "^28.0.3"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": ">=18",
|