diff --git a/package-lock.json b/package-lock.json index fd46fd7cb..9a09e67a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41199,7 +41199,7 @@ "version": "1.17.0", "license": "MIT", "dependencies": { - "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-label": "^2.0.2", "@washingtonpost/wpds-input-shared": "1.17.0", "@washingtonpost/wpds-theme": "1.17.0" }, @@ -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..b3a82a614 100644 --- a/ui/input-label/package.json +++ b/ui/input-label/package.json @@ -41,7 +41,7 @@ "react": "^16.8.6 || ^17.0.2 || ^18" }, "dependencies": { - "@radix-ui/react-label": "^1.0.0", + "@radix-ui/react-label": "^2.0.2", "@washingtonpost/wpds-input-shared": "1.17.0", "@washingtonpost/wpds-theme": "1.17.0" }, 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 (