From 6a1f0739b0deec398c0ab53aec562d581396733c Mon Sep 17 00:00:00 2001 From: Johnny Bouder Date: Wed, 21 Aug 2024 09:09:16 -0400 Subject: [PATCH 1/4] Update comet-uswds to latest. Update sign in form to use form component props instead of explicit wrapper and label components. --- package-lock.json | 9 +++-- package.json | 2 +- src/pages/sign-in/sign-in.tsx | 67 +++++++++++++++++++---------------- 3 files changed, 41 insertions(+), 37 deletions(-) diff --git a/package-lock.json b/package-lock.json index 20d451e9..6106b6ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,8 +11,7 @@ "dependencies": { "@metrostar/comet-data-viz": "1.1.5", "@metrostar/comet-extras": "1.4.0", - "@metrostar/comet-uswds": "2.4.1", - "@rollup/rollup-linux-x64-gnu": "4.21.0", + "@metrostar/comet-uswds": "3.0.0-beta.0", "@tanstack/react-query": "5.51.24", "@tanstack/react-table": "8.20.1", "@uswds/uswds": "3.8.2", @@ -1334,9 +1333,9 @@ } }, "node_modules/@metrostar/comet-uswds": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@metrostar/comet-uswds/-/comet-uswds-2.4.1.tgz", - "integrity": "sha512-DaQCn/j9YllZThyYGCa7N7wjGKuunICEfOVWp43cnR4WDgeR9lfGxuPeUF6gqkVIq4iyjRZGXOGEihv7S2E2mw==", + "version": "3.0.0-beta.0", + "resolved": "https://registry.npmjs.org/@metrostar/comet-uswds/-/comet-uswds-3.0.0-beta.0.tgz", + "integrity": "sha512-o8bDeXc8kvpPB45UKFHViHP7BNxssx1JjvefMkdk6GbZ83jSgU6k1R5xppE8zrcypqNiHgXNEIdWPp2gfHEscA==", "dependencies": { "@uswds/uswds": "3.8.2", "classnames": "^2.5.1", diff --git a/package.json b/package.json index a15d23f1..2995d5b4 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "dependencies": { "@metrostar/comet-data-viz": "1.1.5", "@metrostar/comet-extras": "1.4.0", - "@metrostar/comet-uswds": "2.4.1", + "@metrostar/comet-uswds": "3.0.0-beta.0", "@tanstack/react-query": "5.51.24", "@tanstack/react-table": "8.20.1", "@uswds/uswds": "3.8.2", diff --git a/src/pages/sign-in/sign-in.tsx b/src/pages/sign-in/sign-in.tsx index a219839e..3d17d470 100644 --- a/src/pages/sign-in/sign-in.tsx +++ b/src/pages/sign-in/sign-in.tsx @@ -2,10 +2,7 @@ import { Alert, Button, ButtonGroup, - ErrorMessages, Form, - FormGroup, - Label, TextInput, } from '@metrostar/comet-uswds'; import { FormInput } from '@src/types/form'; @@ -58,36 +55,44 @@ export const SignIn = (): React.ReactElement => { )}
- - - ( - - )} - /> - {errors.username?.message && ( - + ( + )} - - - - ( - - )} - /> - {errors.password?.message && ( - + /> + ( + )} - + />