From b870ad17753a13c8c50aca867bd60942635d1622 Mon Sep 17 00:00:00 2001 From: Andrea Vanini Date: Tue, 28 May 2024 10:42:29 +0200 Subject: [PATCH] Fix react-hook-form package version --- docs/package.json | 2 +- .../components/forms/calendar/package.json | 2 +- .../components/forms/checkbox/package.json | 2 +- packages/components/forms/form/package.json | 2 +- packages/components/forms/input/package.json | 2 +- .../components/forms/multiselect/package.json | 2 +- .../components/forms/pin-code/package.json | 2 +- .../components/forms/radio-group/package.json | 2 +- packages/components/forms/select/package.json | 2 +- packages/components/forms/slider/package.json | 2 +- packages/components/forms/switch/package.json | 2 +- .../components/forms/textarea/package.json | 2 +- packages/components/forms/toggle/package.json | 2 +- .../components/forms/toggle/src/RHFToggle.tsx | 66 +++++++++++-------- packages/package.json | 2 +- packages/src/core/package.json | 2 +- packages/src/forms/package.json | 2 +- yarn.lock | 40 +++++------ 18 files changed, 75 insertions(+), 63 deletions(-) diff --git a/docs/package.json b/docs/package.json index c4cb524b..c53f58cc 100644 --- a/docs/package.json +++ b/docs/package.json @@ -53,7 +53,7 @@ "next-docs-ui": "^7.1.2", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-hook-form": "^7.51.4", + "react-hook-form": "^7.51.5", "react-router-dom": "^6.23.1", "react-use": "^17.5.0", "recharts": "^2.12.7", diff --git a/packages/components/forms/calendar/package.json b/packages/components/forms/calendar/package.json index 13b91a04..3d32d498 100644 --- a/packages/components/forms/calendar/package.json +++ b/packages/components/forms/calendar/package.json @@ -19,7 +19,7 @@ "react": "^18.3.1", "react-datepicker": "^6.9.0", "react-day-picker": "^8.10.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/components/forms/checkbox/package.json b/packages/components/forms/checkbox/package.json index 319d8f58..92e8d4ad 100644 --- a/packages/components/forms/checkbox/package.json +++ b/packages/components/forms/checkbox/package.json @@ -15,7 +15,7 @@ "@uidu/lib": "workspace:^", "class-variance-authority": "^0.7.0", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/components/forms/form/package.json b/packages/components/forms/form/package.json index 5c3c1ac6..7312271d 100644 --- a/packages/components/forms/form/package.json +++ b/packages/components/forms/form/package.json @@ -16,7 +16,7 @@ "@uidu/lib": "workspace:^", "class-variance-authority": "^0.7.0", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/components/forms/input/package.json b/packages/components/forms/input/package.json index e069f1ca..e7d1bd7f 100644 --- a/packages/components/forms/input/package.json +++ b/packages/components/forms/input/package.json @@ -15,7 +15,7 @@ "@uidu/lib": "workspace:^", "class-variance-authority": "^0.7.0", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/components/forms/multiselect/package.json b/packages/components/forms/multiselect/package.json index d0b7f27e..f512a63b 100644 --- a/packages/components/forms/multiselect/package.json +++ b/packages/components/forms/multiselect/package.json @@ -15,7 +15,7 @@ "@uidu/lib": "workspace:^", "class-variance-authority": "^0.7.0", "react": "^18.3.1", - "react-hook-form": "^7.51.4", + "react-hook-form": "^7.51.5", "react-use": "^17.5.0" }, "devDependencies": { diff --git a/packages/components/forms/pin-code/package.json b/packages/components/forms/pin-code/package.json index 02e4872e..c0ad7943 100644 --- a/packages/components/forms/pin-code/package.json +++ b/packages/components/forms/pin-code/package.json @@ -14,7 +14,7 @@ "@uidu/lib": "workspace:^", "class-variance-authority": "^0.7.0", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/components/forms/radio-group/package.json b/packages/components/forms/radio-group/package.json index e5b5ed2d..d53cbc96 100644 --- a/packages/components/forms/radio-group/package.json +++ b/packages/components/forms/radio-group/package.json @@ -12,7 +12,7 @@ "@uidu/form-ui": "workspace:^", "@uidu/lib": "workspace:^", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/components/forms/select/package.json b/packages/components/forms/select/package.json index ef5f43ee..6815771b 100644 --- a/packages/components/forms/select/package.json +++ b/packages/components/forms/select/package.json @@ -13,7 +13,7 @@ "@uidu/lib": "workspace:^", "class-variance-authority": "^0.7.0", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/components/forms/slider/package.json b/packages/components/forms/slider/package.json index 61b334fa..5b10fd9b 100644 --- a/packages/components/forms/slider/package.json +++ b/packages/components/forms/slider/package.json @@ -11,7 +11,7 @@ "@radix-ui/react-slider": "^1.1.2", "@uidu/lib": "workspace:^", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/components/forms/switch/package.json b/packages/components/forms/switch/package.json index 91cc8414..d8050d36 100644 --- a/packages/components/forms/switch/package.json +++ b/packages/components/forms/switch/package.json @@ -11,7 +11,7 @@ "@radix-ui/react-switch": "^1.0.3", "@uidu/lib": "workspace:^", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/components/forms/textarea/package.json b/packages/components/forms/textarea/package.json index 43fa8796..dbd35f95 100644 --- a/packages/components/forms/textarea/package.json +++ b/packages/components/forms/textarea/package.json @@ -12,7 +12,7 @@ "@uidu/lib": "workspace:^", "class-variance-authority": "^0.7.0", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/components/forms/toggle/package.json b/packages/components/forms/toggle/package.json index c83313e4..711d2882 100644 --- a/packages/components/forms/toggle/package.json +++ b/packages/components/forms/toggle/package.json @@ -13,7 +13,7 @@ "@uidu/lib": "workspace:^", "class-variance-authority": "^0.7.0", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/components/forms/toggle/src/RHFToggle.tsx b/packages/components/forms/toggle/src/RHFToggle.tsx index 2217ff9b..c60c3b86 100644 --- a/packages/components/forms/toggle/src/RHFToggle.tsx +++ b/packages/components/forms/toggle/src/RHFToggle.tsx @@ -1,30 +1,42 @@ -import { Control, Controller, FieldValues, RegisterOptions } from "react-hook-form"; -import { Toggle } from "./toggle"; +import { + Control, + Controller, + FieldValues, + RegisterOptions, +} from 'react-hook-form'; +import { Toggle } from './toggle'; - -export function RHFToggle({ name, control, rules, ...rest }: { - name: string - control: Control; - rules: Omit< - RegisterOptions, - 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled' - > +export function RHFToggle({ + name, + control, + rules, + ...rest +}: { + name: string; + control: Control; + rules: Omit< + RegisterOptions, + 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled' + >; }) { - return ( - ( - - )} /> - ) + return ( + ( + + )} + /> + ); } diff --git a/packages/package.json b/packages/package.json index e88a1de3..27309e99 100644 --- a/packages/package.json +++ b/packages/package.json @@ -29,7 +29,7 @@ "date-fns": "^3.6.0", "embla-carousel-react": "8.0.4", "next-themes": "^0.3.0", - "react-hook-form": "^7.51.4", + "react-hook-form": "^7.51.5", "react-resizable-panels": "^2.0.19", "tailwind-merge": "^2.3.0", "tailwindcss": "^3.4.3", diff --git a/packages/src/core/package.json b/packages/src/core/package.json index 10a762b0..b023a847 100644 --- a/packages/src/core/package.json +++ b/packages/src/core/package.json @@ -38,7 +38,7 @@ "@uidu/toast-ui": "workspace:^", "@uidu/tooltip-ui": "workspace:^", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/packages/src/forms/package.json b/packages/src/forms/package.json index 10e05537..9c866d49 100644 --- a/packages/src/forms/package.json +++ b/packages/src/forms/package.json @@ -27,7 +27,7 @@ "@uidu/toggle-ui": "workspace:^", "class-variance-authority": "^0.7.0", "react": "^18.3.1", - "react-hook-form": "^7.51.4" + "react-hook-form": "^7.51.5" }, "devDependencies": { "@types/react": "^18.3.2", diff --git a/yarn.lock b/yarn.lock index 41c4cbed..ecfd7fdd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7589,7 +7589,7 @@ __metadata: react: "npm:^18.3.1" react-datepicker: "npm:^6.9.0" react-day-picker: "npm:^8.10.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -7630,7 +7630,7 @@ __metadata: "@uidu/lib": "workspace:^" class-variance-authority: "npm:^0.7.0" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -7719,7 +7719,7 @@ __metadata: "@uidu/toast-ui": "workspace:^" "@uidu/tooltip-ui": "workspace:^" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -7800,7 +7800,7 @@ __metadata: "@uidu/lib": "workspace:^" class-variance-authority: "npm:^0.7.0" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -7829,7 +7829,7 @@ __metadata: "@uidu/toggle-ui": "workspace:^" class-variance-authority: "npm:^0.7.0" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -7892,7 +7892,7 @@ __metadata: prettier-plugin-tailwindcss: "npm:^0.5.14" react: "npm:^18.3.1" react-dom: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" react-router-dom: "npm:^6.23.1" react-use: "npm:^17.5.0" recharts: "npm:^2.12.7" @@ -7934,7 +7934,7 @@ __metadata: "@uidu/lib": "workspace:^" class-variance-authority: "npm:^0.7.0" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -8004,7 +8004,7 @@ __metadata: "@uidu/lib": "workspace:^" class-variance-authority: "npm:^0.7.0" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" react-use: "npm:^17.5.0" tsup: "npm:^8.0.2" languageName: unknown @@ -8046,7 +8046,7 @@ __metadata: "@uidu/lib": "workspace:^" class-variance-authority: "npm:^0.7.0" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -8085,7 +8085,7 @@ __metadata: "@uidu/form-ui": "workspace:^" "@uidu/lib": "workspace:^" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -8124,7 +8124,7 @@ __metadata: "@uidu/lib": "workspace:^" class-variance-authority: "npm:^0.7.0" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -8173,7 +8173,7 @@ __metadata: "@types/react": "npm:^18.3.2" "@uidu/lib": "workspace:^" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -8223,7 +8223,7 @@ __metadata: "@types/react": "npm:^18.3.2" "@uidu/lib": "workspace:^" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -8261,7 +8261,7 @@ __metadata: "@uidu/lib": "workspace:^" class-variance-authority: "npm:^0.7.0" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -8302,7 +8302,7 @@ __metadata: "@uidu/lib": "workspace:^" class-variance-authority: "npm:^0.7.0" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" tsup: "npm:^8.0.2" languageName: unknown linkType: soft @@ -8342,7 +8342,7 @@ __metadata: embla-carousel-react: "npm:8.0.4" next-themes: "npm:^0.3.0" react: "npm:^18.3.1" - react-hook-form: "npm:^7.51.4" + react-hook-form: "npm:^7.51.5" react-resizable-panels: "npm:^2.0.19" tailwind-merge: "npm:^2.3.0" tailwindcss: "npm:^3.4.3" @@ -19557,12 +19557,12 @@ __metadata: languageName: node linkType: hard -"react-hook-form@npm:^7.51.4": - version: 7.51.4 - resolution: "react-hook-form@npm:7.51.4" +"react-hook-form@npm:^7.51.5": + version: 7.51.5 + resolution: "react-hook-form@npm:7.51.5" peerDependencies: react: ^16.8.0 || ^17 || ^18 - checksum: 10/1edb032284c127756ad4b99be5da55407dac311afa05f534ad882971088efef6c1debd339f2d9783a572fe17f97d206dbeb9b5b0cdd4e7599cd86a3485e45ad0 + checksum: 10/f4ff77989202b1faf2dede7a7730210635a6225189dcaeaeb191cea12422bcb97d2adfef0712c50d13bf5c5e14b8debc00fbba16491f86a6d24945a52cacfa59 languageName: node linkType: hard