From 62e965645a67e9bed124586277eacdf2a5dbe08a Mon Sep 17 00:00:00 2001 From: Samuel Nitzsche Date: Wed, 17 Apr 2024 14:15:50 +0200 Subject: [PATCH 1/3] feat(components): add button variant options to props of alert-dialog --- apps/www/registry/default/ui/alert-dialog.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/apps/www/registry/default/ui/alert-dialog.tsx b/apps/www/registry/default/ui/alert-dialog.tsx index 1b6f99493c..f6878576c7 100644 --- a/apps/www/registry/default/ui/alert-dialog.tsx +++ b/apps/www/registry/default/ui/alert-dialog.tsx @@ -2,6 +2,7 @@ import * as React from "react" import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog" +import { VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" import { buttonVariants } from "@/registry/default/ui/button" @@ -100,11 +101,12 @@ AlertDialogDescription.displayName = const AlertDialogAction = React.forwardRef< React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( + React.ComponentPropsWithoutRef & + VariantProps +>(({ className, variant, size, ...props }, ref) => ( )) @@ -112,15 +114,12 @@ AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName const AlertDialogCancel = React.forwardRef< React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( + React.ComponentPropsWithoutRef & + VariantProps +>(({ className, variant = "outline", size, ...props }, ref) => ( )) From 7686d72e3fd26b0ef8829d65e8ecc9cfbbbc4234 Mon Sep 17 00:00:00 2001 From: Samuel Nitzsche Date: Wed, 17 Apr 2024 14:20:17 +0200 Subject: [PATCH 2/3] feat(components): add button variant options to props of alert-dialog for new--york --- apps/www/registry/new-york/ui/alert-dialog.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/www/registry/new-york/ui/alert-dialog.tsx b/apps/www/registry/new-york/ui/alert-dialog.tsx index 13a807d5f1..258fe6e1af 100644 --- a/apps/www/registry/new-york/ui/alert-dialog.tsx +++ b/apps/www/registry/new-york/ui/alert-dialog.tsx @@ -5,6 +5,7 @@ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog" import { cn } from "@/lib/utils" import { buttonVariants } from "@/registry/new-york/ui/button" +import { VariantProps } from "class-variance-authority" const AlertDialog = AlertDialogPrimitive.Root @@ -98,13 +99,14 @@ const AlertDialogDescription = React.forwardRef< AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName -const AlertDialogAction = React.forwardRef< + const AlertDialogAction = React.forwardRef< React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( + React.ComponentPropsWithoutRef + & VariantProps +>(({ className, variant, size, ...props }, ref) => ( )) @@ -113,11 +115,12 @@ AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName const AlertDialogCancel = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( + & VariantProps +>(({ className, variant = "outline", size, ...props }, ref) => ( Date: Wed, 17 Apr 2024 14:21:24 +0200 Subject: [PATCH 3/3] build(registry): run `pnpm build:registry` command --- .../default/block/dashboard-01.tsx | 4 +- .../default/block/dashboard-02.tsx | 3 +- .../default/block/dashboard-03.tsx | 6 +- .../default/block/dashboard-04.tsx | 3 +- .../default/block/dashboard-05.tsx | 8 +- .../default/block/dashboard-07.tsx | 3 +- apps/www/__registry__/index.tsx | 10 +- .../new-york/block/dashboard-01.tsx | 4 +- .../new-york/block/dashboard-02.tsx | 3 +- .../new-york/block/dashboard-03.tsx | 6 +- .../new-york/block/dashboard-04.tsx | 3 +- .../new-york/block/dashboard-05.tsx | 8 +- .../new-york/block/dashboard-06.tsx | 4 +- .../new-york/block/dashboard-07.tsx | 3 +- .../registry/styles/default/alert-dialog.json | 2 +- .../styles/new-york/alert-dialog.json | 2 +- .../new-york/block/dashboard-06-chunk-0.tsx | 307 ++++++++++++++++-- .../www/registry/new-york/ui/alert-dialog.tsx | 18 +- 18 files changed, 320 insertions(+), 77 deletions(-) diff --git a/apps/www/__registry__/default/block/dashboard-01.tsx b/apps/www/__registry__/default/block/dashboard-01.tsx index 74bc72a8cd..f503c767f8 100644 --- a/apps/www/__registry__/default/block/dashboard-01.tsx +++ b/apps/www/__registry__/default/block/dashboard-01.tsx @@ -229,7 +229,9 @@ export default function Dashboard() {
- +
Transactions diff --git a/apps/www/__registry__/default/block/dashboard-02.tsx b/apps/www/__registry__/default/block/dashboard-02.tsx index 10e217352a..7da1285d98 100644 --- a/apps/www/__registry__/default/block/dashboard-02.tsx +++ b/apps/www/__registry__/default/block/dashboard-02.tsx @@ -227,8 +227,7 @@ export default function Dashboard() {

Inventory

diff --git a/apps/www/__registry__/default/block/dashboard-03.tsx b/apps/www/__registry__/default/block/dashboard-03.tsx index ea89e0e67a..bb71b92b2f 100644 --- a/apps/www/__registry__/default/block/dashboard-03.tsx +++ b/apps/www/__registry__/default/block/dashboard-03.tsx @@ -302,8 +302,7 @@ export default function Dashboard() {
@@ -420,8 +419,7 @@ export default function Dashboard() {