From 8083523b01d0690e0dfa39be6a629d764df6233d Mon Sep 17 00:00:00 2001 From: Thinh Trinh Date: Thu, 22 Feb 2024 14:12:22 +0700 Subject: [PATCH] fix(usephoneinput): fix usephoneinput mode value (#82) Co-authored-by: Thinh Trinh --- apps/docs/package.json | 2 +- packages/components/CHANGELOG.md | 7 +++++++ packages/components/package.json | 4 ++-- packages/phone-input/CHANGELOG.md | 6 ++++++ packages/phone-input/package.json | 2 +- packages/phone-input/src/hooks/usePhoneInput.tsx | 2 +- 6 files changed, 18 insertions(+), 5 deletions(-) diff --git a/apps/docs/package.json b/apps/docs/package.json index 171d4ba..4134c6c 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -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", diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index feb9578..ba715ef 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -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 diff --git a/packages/components/package.json b/packages/components/package.json index e7c9232..7bd0fad 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -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", @@ -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", diff --git a/packages/phone-input/CHANGELOG.md b/packages/phone-input/CHANGELOG.md index 48c1270..dacee6e 100644 --- a/packages/phone-input/CHANGELOG.md +++ b/packages/phone-input/CHANGELOG.md @@ -1,5 +1,11 @@ # @react-awesome/phone-input +## 1.1.2 + +### Patch Changes + +- wrong mode value + ## 1.1.1 ### Patch Changes diff --git a/packages/phone-input/package.json b/packages/phone-input/package.json index d4f8ae1..b9afc2f 100644 --- a/packages/phone-input/package.json +++ b/packages/phone-input/package.json @@ -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", diff --git a/packages/phone-input/src/hooks/usePhoneInput.tsx b/packages/phone-input/src/hooks/usePhoneInput.tsx index fe07a72..6a3bb08 100644 --- a/packages/phone-input/src/hooks/usePhoneInput.tsx +++ b/packages/phone-input/src/hooks/usePhoneInput.tsx @@ -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.