diff --git a/examples/nextjs-server-side-example/package.json b/examples/nextjs-server-side-example/package.json index 8f18279..4565a47 100644 --- a/examples/nextjs-server-side-example/package.json +++ b/examples/nextjs-server-side-example/package.json @@ -8,16 +8,16 @@ "start": "next start" }, "dependencies": { - "react": "^18", - "react-dom": "^18", + "react": "^19", + "react-dom": "^19", "react-international-phone": "workspace:*", "next": "13.5.4" }, "devDependencies": { "typescript": "^5", "@types/node": "^20", - "@types/react": "^18", - "@types/react-dom": "^18", + "@types/react": "^19", + "@types/react-dom": "^19", "autoprefixer": "^10", "postcss": "^8", "tailwindcss": "^3" diff --git a/package.json b/package.json index fd4a551..a5a6316 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "url": "git+https://github.com/goveo/react-international-phone.git" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "devDependencies": { "@chakra-ui/react": "^1.8.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0bd24d1..8e38732 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -260,13 +260,13 @@ importers: dependencies: next: specifier: 13.5.4 - version: 13.5.4(@babel/core@7.23.0)(react-dom@18.2.0)(react@18.2.0)(sass@1.57.1) + version: 13.5.4(@babel/core@7.23.0)(react-dom@19.0.0)(react@19.0.0)(sass@1.57.1) react: - specifier: ^18 - version: 18.2.0 + specifier: ^19 + version: 19.0.0 react-dom: - specifier: ^18 - version: 18.2.0(react@18.2.0) + specifier: ^19 + version: 19.0.0(react@19.0.0) react-international-phone: specifier: workspace:* version: link:../.. @@ -275,11 +275,11 @@ importers: specifier: ^20 version: 20.0.0 '@types/react': - specifier: ^18 - version: 18.2.27 + specifier: ^19 + version: 19.0.0 '@types/react-dom': - specifier: ^18 - version: 18.2.13 + specifier: ^19 + version: 19.0.0 autoprefixer: specifier: ^10 version: 10.4.13(postcss@8.4.21) @@ -7609,6 +7609,7 @@ packages: /@storybook/expect@28.1.3-5: resolution: {integrity: sha512-lS1oJnY1qTAxnH87C765NdfvGhksA6hBcbUVI5CHiSbNsEtr456wtg/z+dT9XlPriq1D5t2SgfNL9dBAoIGyIA==} + deprecated: In Storybook 8, this package functionality has been integrated to a new package called @storybook/test, which uses Vitest APIs for an improved experience. When upgrading to Storybook 8 with 'npx storybook@latest upgrade', you will get prompted and will get an automigration for the new package. Please migrate when you can. dependencies: '@types/jest': 28.1.3 dev: true @@ -8559,6 +8560,12 @@ packages: '@types/react': 18.2.27 dev: true + /@types/react-dom@19.0.0: + resolution: {integrity: sha512-1KfiQKsH1o00p9m5ag12axHQSb3FOU9H20UTrujVSkNhuCrRHiQWFqgEnTNK5ZNfnzZv8UWrnXVqCmCF9fgY3w==} + dependencies: + '@types/react': 18.2.27 + dev: true + /@types/react-is@17.0.3: resolution: {integrity: sha512-aBTIWg1emtu95bLTLx0cpkxwGW3ueZv71nE2YFBpL8k/z5czEW8yYpOo8Dp+UUAFAtKwNaOsh/ioSeQnWlZcfw==} dependencies: @@ -8598,6 +8605,12 @@ packages: '@types/scheduler': 0.16.2 csstype: 3.1.1 + /@types/react@19.0.0: + resolution: {integrity: sha512-MY3oPudxvMYyesqs/kW1Bh8y9VqSmf+tzqw3ae8a9DZW68pUe3zAdHeI1jc6iAysuRdACnVknHP8AhwD4/dxtg==} + dependencies: + csstype: 3.1.1 + dev: true + /@types/responselike@1.0.0: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} dependencies: @@ -16115,7 +16128,7 @@ packages: resolution: {integrity: sha512-EZSPZB70jiVsivaBLYDCyntd5eH8NTSMOn3rB+HxwdmKThGELLdYv8qVIMWvZEFy9w8ZZpW9h9OB32l1rGtj7g==} dev: true - /next@13.5.4(@babel/core@7.23.0)(react-dom@18.2.0)(react@18.2.0)(sass@1.57.1): + /next@13.5.4(@babel/core@7.23.0)(react-dom@19.0.0)(react@19.0.0)(sass@1.57.1): resolution: {integrity: sha512-+93un5S779gho8y9ASQhb/bTkQF17FNQOtXLKAj3lsNgltEcF0C5PMLLncDmH+8X1EnJH1kbqAERa29nRXqhjA==} engines: {node: '>=16.14.0'} hasBin: true @@ -16135,10 +16148,10 @@ packages: busboy: 1.6.0 caniuse-lite: 1.0.30001520 postcss: 8.4.31 - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) + react: 19.0.0 + react-dom: 19.0.0(react@19.0.0) sass: 1.57.1 - styled-jsx: 5.1.1(@babel/core@7.23.0)(react@18.2.0) + styled-jsx: 5.1.1(@babel/core@7.23.0)(react@19.0.0) watchpack: 2.4.0 optionalDependencies: '@next/swc-darwin-arm64': 13.5.4 @@ -18567,6 +18580,15 @@ packages: react: 18.2.0 scheduler: 0.23.0 + /react-dom@19.0.0(react@19.0.0): + resolution: {integrity: sha512-4GV5sHFG0e/0AD4X+ySy6UJd3jVl1iNsNHdpad0qhABJ11twS3TTBnseqsKurKcsNqCEFeGL3uLpVChpIO3QfQ==} + peerDependencies: + react: ^19.0.0 + dependencies: + react: 19.0.0 + scheduler: 0.25.0 + dev: false + /react-element-to-jsx-string@15.0.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-UDg4lXB6BzlobN60P8fHWVPX3Kyw8ORrTeBtClmIlGdkOOE+GYQSFvmEU5iLLpwp/6v42DINwNcwOhOLfQ//FQ==} peerDependencies: @@ -18826,6 +18848,11 @@ packages: dependencies: loose-envify: 1.4.0 + /react@19.0.0: + resolution: {integrity: sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==} + engines: {node: '>=0.10.0'} + dev: false + /read-pkg-up@7.0.1: resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} engines: {node: '>=8'} @@ -19383,6 +19410,10 @@ packages: dependencies: loose-envify: 1.4.0 + /scheduler@0.25.0: + resolution: {integrity: sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==} + dev: false + /schema-utils@2.7.0: resolution: {integrity: sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==} engines: {node: '>= 8.9.0'} @@ -20124,7 +20155,7 @@ packages: tslib: 2.5.0 dev: true - /styled-jsx@5.1.1(@babel/core@7.23.0)(react@18.2.0): + /styled-jsx@5.1.1(@babel/core@7.23.0)(react@19.0.0): resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==} engines: {node: '>= 12.0.0'} peerDependencies: @@ -20139,7 +20170,7 @@ packages: dependencies: '@babel/core': 7.23.0 client-only: 0.0.1 - react: 18.2.0 + react: 19.0.0 dev: false /stylehacks@5.1.1(postcss@8.4.28): diff --git a/src/data/countryData.ts b/src/data/countryData.ts index 2fb92f8..a8ad89e 100644 --- a/src/data/countryData.ts +++ b/src/data/countryData.ts @@ -243,7 +243,7 @@ export const defaultCountries: CountryData[] = [ ['Papua New Guinea', 'pg', '675'], ['Paraguay', 'py', '595'], ['Peru', 'pe', '51'], - ['Philippines', 'ph', '63', '.... .......'], + ['Philippines', 'ph', '63', '... ... ....'], ['Poland', 'pl', '48', '...-...-...'], ['Portugal', 'pt', '351'], ['Puerto Rico', 'pr', '1', '(...) ...-....', 3, ['787', '939']],