Skip to content

Commit

Permalink
fix(usephoneinput): fix usephoneinput mode value (#82)
Browse files Browse the repository at this point in the history
Co-authored-by: Thinh Trinh <thitri@on.sinch.com>
  • Loading branch information
trinhthinh388 and Thinh Trinh authored Feb 22, 2024
1 parent 09ab4dd commit 8083523
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"clean": "rimraf .turbo && rimraf node_modules && rimraf .next"
},
"dependencies": {
"@react-awesome/components": "1.0.13",
"@react-awesome/components": "1.0.14",
"classnames": "^2.5.1",
"lodash": "^4.17.21",
"lucide-react": "^0.315.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @react-awesome/components

## 1.0.14

### Patch Changes

- Updated dependencies
- @react-awesome/phone-input@1.1.2

## 1.0.13

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-awesome/components",
"version": "1.0.13",
"version": "1.0.14",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -39,7 +39,7 @@
"access": "public"
},
"dependencies": {
"@react-awesome/phone-input": "1.1.1",
"@react-awesome/phone-input": "1.1.2",
"@react-awesome/use-click-outside": "0.0.3",
"@react-awesome/use-preserve-input-caret-position": "0.0.3",
"@react-awesome/use-selection-range": "0.0.3",
Expand Down
6 changes: 6 additions & 0 deletions packages/phone-input/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @react-awesome/phone-input

## 1.1.2

### Patch Changes

- wrong mode value

## 1.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/phone-input/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-awesome/phone-input",
"version": "1.1.1",
"version": "1.1.2",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/phone-input/src/hooks/usePhoneInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export type UsePhoneInput = {
* If mode is `local` then the country code won't be included in the phone value and user must follow the country is currently being selected.
* @default "international"
*/
mode?: 'international' | 'local'
mode?: 'international' | 'national'
/**
* @description - Country code
* If `country` is provided, the auto detect country will be disabled.
Expand Down

0 comments on commit 8083523

Please sign in to comment.