From 8a3952f88664cc72fdab2c566b439972af3de2c5 Mon Sep 17 00:00:00 2001 From: MikaelNordberg Date: Tue, 27 Feb 2024 10:55:29 +0100 Subject: [PATCH 1/5] Tag component with nx migrations --- apps/pxweb2/public/theme/variables.css | 2 +- apps/pxweb2/src/app/app.tsx | 3 + libs/pxweb2-ui/src/index.ts | 3 +- .../src/lib/components/Tag/Tag.module.scss | 73 +++++++++++ .../src/lib/components/Tag/Tag.spec.tsx | 10 ++ .../src/lib/components/Tag/Tag.stories.tsx | 93 ++++++++++++++ libs/pxweb2-ui/src/lib/components/Tag/Tag.tsx | 32 +++++ package-lock.json | 113 ++++++------------ 8 files changed, 250 insertions(+), 79 deletions(-) create mode 100644 libs/pxweb2-ui/src/lib/components/Tag/Tag.module.scss create mode 100644 libs/pxweb2-ui/src/lib/components/Tag/Tag.spec.tsx create mode 100644 libs/pxweb2-ui/src/lib/components/Tag/Tag.stories.tsx create mode 100644 libs/pxweb2-ui/src/lib/components/Tag/Tag.tsx diff --git a/apps/pxweb2/public/theme/variables.css b/apps/pxweb2/public/theme/variables.css index 386e2407..04c8d88c 100644 --- a/apps/pxweb2/public/theme/variables.css +++ b/apps/pxweb2/public/theme/variables.css @@ -1,6 +1,6 @@ /** * Do not edit directly - * Generated on Tue, 06 Feb 2024 11:35:57 GMT + * Generated on Tue, 27 Feb 2024 09:42:03 GMT */ :root { diff --git a/apps/pxweb2/src/app/app.tsx b/apps/pxweb2/src/app/app.tsx index 7a7c8759..5ceff022 100644 --- a/apps/pxweb2/src/app/app.tsx +++ b/apps/pxweb2/src/app/app.tsx @@ -8,6 +8,7 @@ import { BodyLong, Ingress, Label, + Tag } from '@pxweb2/pxweb2-ui'; function test(event: React.MouseEvent) { @@ -38,6 +39,8 @@ export function App() { her every day, every week, every month, every year. She never saw a wolf, no even a little fox. + Mandatory  +