From 6f70df51ee6ba9162813543f6e4c87dcc52712d2 Mon Sep 17 00:00:00 2001 From: Andrew Berg Date: Wed, 3 Jan 2024 10:53:20 -0500 Subject: [PATCH 1/3] feat: updated InputLabel with latest Radix label component --- package-lock.json | 29 ++++++++++++++++++++++++++--- ui/input-label/package.json | 6 +++--- ui/input-label/src/InputLabel.tsx | 2 +- 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index fd46fd7cb..236eb9cae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41199,9 +41199,9 @@ "version": "1.17.0", "license": "MIT", "dependencies": { - "@radix-ui/react-label": "^1.0.0", - "@washingtonpost/wpds-input-shared": "1.17.0", - "@washingtonpost/wpds-theme": "1.17.0" + "@radix-ui/react-label": "^2.0.2", + "@washingtonpost/wpds-input-shared": "*", + "@washingtonpost/wpds-theme": "*" }, "devDependencies": { "tsup": "5.11.13", @@ -41213,6 +41213,29 @@ "react": "^16.8.6 || ^17.0.2 || ^18" } }, + "ui/input-label/node_modules/@radix-ui/react-label": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.0.2.tgz", + "integrity": "sha512-N5ehvlM7qoTLx7nWPodsPYPgMzA5WM8zZChQg8nyFJKnDO5WHdba1vv5/H6IO5LtJMfD2Q3wh1qHFGNtK0w3bQ==", + "dependencies": { + "@babel/runtime": "^7.13.10", + "@radix-ui/react-primitive": "1.0.3" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, "ui/input-password": { "name": "@washingtonpost/wpds-input-password", "version": "1.17.0", diff --git a/ui/input-label/package.json b/ui/input-label/package.json index a38337d8e..8895a1be8 100644 --- a/ui/input-label/package.json +++ b/ui/input-label/package.json @@ -41,9 +41,9 @@ "react": "^16.8.6 || ^17.0.2 || ^18" }, "dependencies": { - "@radix-ui/react-label": "^1.0.0", - "@washingtonpost/wpds-input-shared": "1.17.0", - "@washingtonpost/wpds-theme": "1.17.0" + "@radix-ui/react-label": "^2.0.2", + "@washingtonpost/wpds-input-shared": "*", + "@washingtonpost/wpds-theme": "*" }, "gitHead": "5ba886cfa95b3eed476edf87b1ac36d37ffe3469" } diff --git a/ui/input-label/src/InputLabel.tsx b/ui/input-label/src/InputLabel.tsx index 121f98324..c6292d9e1 100644 --- a/ui/input-label/src/InputLabel.tsx +++ b/ui/input-label/src/InputLabel.tsx @@ -34,7 +34,7 @@ interface InputLabelProps extends LabelProps { required?: boolean; } -export const InputLabel = React.forwardRef( +export const InputLabel = React.forwardRef( ({ children, css, disabled, required, ...props }, ref) => { return ( From d20c315ca6684bb8dbc83cff9685b2514e36634e Mon Sep 17 00:00:00 2001 From: Andrew Berg Date: Wed, 3 Jan 2024 11:13:35 -0500 Subject: [PATCH 2/3] chore: synch dep versions --- ui/input-label/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/input-label/package.json b/ui/input-label/package.json index 8895a1be8..b3a82a614 100644 --- a/ui/input-label/package.json +++ b/ui/input-label/package.json @@ -42,8 +42,8 @@ }, "dependencies": { "@radix-ui/react-label": "^2.0.2", - "@washingtonpost/wpds-input-shared": "*", - "@washingtonpost/wpds-theme": "*" + "@washingtonpost/wpds-input-shared": "1.17.0", + "@washingtonpost/wpds-theme": "1.17.0" }, "gitHead": "5ba886cfa95b3eed476edf87b1ac36d37ffe3469" } From 1515721ce80fe1445e211836a54fd0da6c26af5e Mon Sep 17 00:00:00 2001 From: Andrew Berg Date: Wed, 3 Jan 2024 11:14:39 -0500 Subject: [PATCH 3/3] chore: synch dep versions --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 236eb9cae..9a09e67a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41200,8 +41200,8 @@ "license": "MIT", "dependencies": { "@radix-ui/react-label": "^2.0.2", - "@washingtonpost/wpds-input-shared": "*", - "@washingtonpost/wpds-theme": "*" + "@washingtonpost/wpds-input-shared": "1.17.0", + "@washingtonpost/wpds-theme": "1.17.0" }, "devDependencies": { "tsup": "5.11.13",