intl-tel-input 27.3.0 → 28.0.0

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.
Files changed (38) hide show
  1. package/dist/css/intlTelInput-no-assets.css +2 -2
  2. package/dist/css/intlTelInput.css +3 -3
  3. package/dist/js/data.d.ts +1 -4
  4. package/dist/js/data.js +3 -9
  5. package/dist/js/data.min.js +2 -2
  6. package/dist/js/data.mjs +2 -8
  7. package/dist/js/i18n.d.ts +1 -1592
  8. package/dist/js/intlTelInput.d.ts +62 -49
  9. package/dist/js/intlTelInput.js +221 -182
  10. package/dist/js/intlTelInput.min.js +6 -6
  11. package/dist/js/intlTelInput.mjs +219 -180
  12. package/dist/js/intlTelInputWithUtils.js +622 -568
  13. package/dist/js/intlTelInputWithUtils.min.js +6 -6
  14. package/dist/js/intlTelInputWithUtils.mjs +620 -566
  15. package/dist/js/utils.js +56 -55
  16. package/package.json +14 -181
  17. package/CHANGELOG.md +0 -33
  18. package/angular/README.md +0 -13
  19. package/angular/dist/IntlTelInput.d.ts +0 -110
  20. package/angular/dist/IntlTelInput.js +0 -5096
  21. package/angular/dist/IntlTelInputWithUtils.d.ts +0 -3
  22. package/angular/dist/IntlTelInputWithUtils.js +0 -11435
  23. package/react/README.md +0 -13
  24. package/react/dist/IntlTelInput.d.ts +0 -25
  25. package/react/dist/IntlTelInput.js +0 -4788
  26. package/react/dist/IntlTelInputWithUtils.d.ts +0 -4
  27. package/react/dist/IntlTelInputWithUtils.js +0 -11127
  28. package/svelte/README.md +0 -14
  29. package/svelte/src/IntlTelInput.svelte +0 -233
  30. package/svelte/src/IntlTelInput.svelte.d.ts +0 -36
  31. package/svelte/src/IntlTelInputWithUtils.svelte +0 -24
  32. package/vue/README.md +0 -14
  33. package/vue/dist/IntlTelInput-jw1tkqdD.js +0 -2657
  34. package/vue/dist/IntlTelInput.js +0 -5
  35. package/vue/dist/IntlTelInput.vue.d.ts +0 -43
  36. package/vue/dist/IntlTelInputWithUtils.js +0 -49403
  37. package/vue/dist/index.d.ts +0 -4
  38. package/vue/dist/indexWithUtils.d.ts +0 -3
package/react/README.md DELETED
@@ -1,13 +0,0 @@
1
- # IntlTelInput React Component
2
-
3
- A React component for the [intl-tel-input](https://github.com/jackocnr/intl-tel-input) JavaScript plugin. View the [source code](https://github.com/jackocnr/intl-tel-input/blob/master/react/src/IntlTelInput.tsx).
4
-
5
- [Explore docs »](https://intl-tel-input.com/docs/react-component)
6
-
7
- ## Running the demos locally
8
-
9
- 1. Initialise the submodules: `git submodule update --init --recursive`
10
- 2. Install dependencies: `npm install`
11
- 3. Build: `npm run build`
12
-
13
- You can then open `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/react/demo).
@@ -1,25 +0,0 @@
1
- import intlTelInput, { Iti } from "intl-tel-input";
2
- import React from "react";
3
- export { intlTelInput };
4
- type InputProps = Omit<React.ComponentPropsWithoutRef<"input">, "onInput">;
5
- export type StrictRejectSource = "key" | "paste";
6
- export type StrictRejectReason = "invalid" | "max-length";
7
- export type IntlTelInputRef = {
8
- getInstance: () => Iti | null;
9
- getInput: () => HTMLInputElement | null;
10
- };
11
- declare const IntlTelInput: React.ForwardRefExoticComponent<Partial<import("intl-tel-input").AllOptions> & {
12
- onChangeNumber?: (number: string) => void;
13
- onChangeCountry?: (iso2: string) => void;
14
- onChangeValidity?: (isValid: boolean) => void;
15
- onChangeErrorCode?: (errorCode: number | null) => void;
16
- onOpenCountryDropdown?: () => void;
17
- onCloseCountryDropdown?: () => void;
18
- onStrictReject?: (source: StrictRejectSource, rejectedInput: string, reason: StrictRejectReason) => void;
19
- usePreciseValidation?: boolean;
20
- inputProps?: InputProps;
21
- disabled?: boolean | undefined;
22
- readOnly?: boolean | undefined;
23
- value?: string | null;
24
- } & React.RefAttributes<IntlTelInputRef>>;
25
- export default IntlTelInput;