Skip to content

Commit

Permalink
Merge pull request #227 from ybrusentsov/development
Browse files Browse the repository at this point in the history
Update country data
  • Loading branch information
ybrusentsov authored Jan 18, 2025
2 parents 1a7a040 + 5f5f833 commit d2084f8
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Checklist before requesting a review

- [ ] I have read the [contributing doc](https://github.com/goveo/react-international-phone/blob/master/CONTRIBUTING.md) before submitting this PR.
- [ ] I have read the [contributing doc](https://github.com/ybrusentsov/react-international-phone/blob/master/CONTRIBUTING.md) before submitting this PR.
- [ ] Commit titles correspond to the [convention](https://www.conventionalcommits.org/en/v1.0.0/).
- [ ] I have performed a self-review of my code.
- [ ] Tests for the changes have been added (for bug fixes/features).
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
🤙 International phone input component for React

![npm-version](https://img.shields.io/npm/v/react-international-phone)
![build-status-badge](https://img.shields.io/github/actions/workflow/status/goveo/react-international-phone/release.yml?branch=master)
![build-status-badge](https://img.shields.io/github/actions/workflow/status/ybrusentsov/react-international-phone/release.yml?branch=master)
![install-size-badge](https://badgen.net/packagephobia/install/react-international-phone)
[![codecov](https://codecov.io/gh/goveo/react-international-phone/branch/master/graph/badge.svg?token=SHEF4U216O)](https://codecov.io/gh/goveo/react-international-phone)
[![codecov](https://codecov.io/gh/ybrusentsov/react-international-phone/branch/master/graph/badge.svg?token=SHEF4U216O)](https://codecov.io/gh/ybrusentsov/react-international-phone)
![downloads](https://img.shields.io/npm/dt/react-international-phone)
![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)
[![stars](https://img.shields.io/github/stars/goveo/react-international-phone?style=social)](https://github.com/goveo/react-international-phone)
[![stars](https://img.shields.io/github/stars/ybrusentsov/react-international-phone?style=social)](https://github.com/ybrusentsov/react-international-phone)

[Live demo: Storybook](https://react-international-phone-storybook.vercel.app)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/goveo/react-international-phone.git"
"url": "git+https://github.com/ybrusentsov/react-international-phone.git"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/docs/04-Advanced Usage/02-useWithUiLibs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

You can build phone input by combination of **input component** (that you want to be a phone input), [**usePhoneInput**](./usePhoneInput) hook and [**CountrySelector**](../Subcomponents%20API/CountrySelector).

**Ant Design** and **Chakra UI** examples can be found [on GitHub](https://github.com/goveo/react-international-phone/tree/master/src/stories/UiLibsExample/components) and demos for these code snippets can be found [on Storybook](https://react-international-phone-storybook.vercel.app/?path=/story/using-with-ui-libs).
**Ant Design** and **Chakra UI** examples can be found [on GitHub](https://github.com/ybrusentsov/react-international-phone/tree/master/src/stories/UiLibsExample/components) and demos for these code snippets can be found [on Storybook](https://react-international-phone-storybook.vercel.app/?path=/story/using-with-ui-libs).

## Material UI Example

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/docs/05-Migrations/02-migrate-to-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Check the [Phone Validation page](/docs/Usage/PhoneValidation) to get basic exam

## Regions and subregions have been removed

If you used it (and really need it), please open an [issue](https://github.com/goveo/react-international-phone/issues) or [discussion](https://github.com/goveo/react-international-phone/discussions) and we will provide a basic solution on how to re-implement it.
If you used it (and really need it), please open an [issue](https://github.com/ybrusentsov/react-international-phone/issues) or [discussion](https://github.com/ybrusentsov/react-international-phone/discussions) and we will provide a basic solution on how to re-implement it.
10 changes: 5 additions & 5 deletions packages/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const config = {
favicon: 'img/favicon.ico',

// GitHub pages deployment config.
organizationName: 'goveo',
organizationName: 'ybrusentsov',
projectName: 'react-international-phone',

i18n: {
Expand All @@ -33,7 +33,7 @@ const config = {
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/goveo/react-international-phone/tree/master/packages/docs/',
'https://github.com/ybrusentsov/react-international-phone/tree/master/packages/docs/',
},
blog: false,
theme: {
Expand Down Expand Up @@ -65,7 +65,7 @@ const config = {
label: 'Docs',
},
{
href: 'https://github.com/goveo/react-international-phone',
href: 'https://github.com/ybrusentsov/react-international-phone',
label: 'GitHub',
position: 'right',
},
Expand Down Expand Up @@ -104,7 +104,7 @@ const config = {
items: [
{
label: 'Github Discussions',
href: 'https://github.com/goveo/react-international-phone/discussions',
href: 'https://github.com/ybrusentsov/react-international-phone/discussions',
},
],
},
Expand All @@ -113,7 +113,7 @@ const config = {
items: [
{
label: 'GitHub',
href: 'https://github.com/goveo/react-international-phone',
href: 'https://github.com/ybrusentsov/react-international-phone',
},
],
},
Expand Down
9 changes: 5 additions & 4 deletions src/data/countryData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const defaultCountries: CountryData[] = [
['Bolivia', 'bo', '591'],
['Bosnia and Herzegovina', 'ba', '387'],
['Botswana', 'bw', '267'],
['Brazil', 'br', '55', '(..) .........'],
['Brazil', 'br', '55', '(..) .....-....'],
['British Indian Ocean Territory', 'io', '246'],
['Brunei', 'bn', '673'],
['Bulgaria', 'bg', '359'],
Expand Down Expand Up @@ -130,7 +130,7 @@ export const defaultCountries: CountryData[] = [
['Cyprus', 'cy', '357', '.. ......'],
['Czech Republic', 'cz', '420', '... ... ...'],
['Denmark', 'dk', '45', '.. .. .. ..'],
['Djibouti', 'dj', '253'],
['Djibouti', 'dj', '253', '.. .. ....'],
['Dominica', 'dm', '1767'],
['Dominican Republic', 'do', '1', '(...) ...-....', 2, ['809', '829', '849']],
['Ecuador', 'ec', '593'],
Expand All @@ -139,7 +139,7 @@ export const defaultCountries: CountryData[] = [
['Equatorial Guinea', 'gq', '240'],
['Eritrea', 'er', '291'],
['Estonia', 'ee', '372', '.... ......'],
['Ethiopia', 'et', '251'],
['Ethiopia', 'et', '251', '.. ... ....'],
['Fiji', 'fj', '679'],
['Finland', 'fi', '358', '.. ... .. ..'],
['France', 'fr', '33', '. .. .. .. ..'],
Expand Down Expand Up @@ -201,6 +201,7 @@ export const defaultCountries: CountryData[] = [
['Martinique', 'mq', '596'],
['Mauritania', 'mr', '222'],
['Mauritius', 'mu', '230'],
['Mayotte', 'yt', '262', '', 1, ['269', '639']],
['Mexico', 'mx', '52', '... ... ....', 0],
['Micronesia', 'fm', '691'],
['Moldova', 'md', '373', '(..) ..-..-..'],
Expand Down Expand Up @@ -248,7 +249,7 @@ export const defaultCountries: CountryData[] = [
['Portugal', 'pt', '351'],
['Puerto Rico', 'pr', '1', '(...) ...-....', 3, ['787', '939']],
['Qatar', 'qa', '974'],
['Réunion', 're', '262'],
['Réunion', 're', '262', '', 0],
['Romania', 'ro', '40'],
['Russia', 'ru', '7', '(...) ...-..-..', 1],
['Rwanda', 'rw', '250'],
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export type CountryIso2 =
| 've'
| 'vn'
| 'ye'
| 'yt'
| 'zm'
| 'zw';

Expand Down

0 comments on commit d2084f8

Please sign in to comment.