From 52f1d94e6cbedfbb8510e6da01f5990d4ffa3a4c Mon Sep 17 00:00:00 2001 From: Dhaval Date: Mon, 28 Oct 2024 14:11:22 +0530 Subject: [PATCH 1/2] fix: onclose method fixed for dialog --- src/components/dialog/dialog.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/dialog/dialog.tsx b/src/components/dialog/dialog.tsx index a31f845..e984ef1 100644 --- a/src/components/dialog/dialog.tsx +++ b/src/components/dialog/dialog.tsx @@ -40,8 +40,10 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName; const DialogContent = React.forwardRef< React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, children, ...props }, ref) => ( + React.ComponentPropsWithoutRef & { + onClose?: () => void; + } +>(({ className, children, onClose = () => null, ...props }, ref) => ( Close From ef9b33e876787e089157b12ec22ad99445d53cf4 Mon Sep 17 00:00:00 2001 From: Dhaval Date: Mon, 28 Oct 2024 14:19:11 +0530 Subject: [PATCH 2/2] chore: upgraded version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 51d6691..34ca562 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@broadlume/willow-ui", "main": "./src/index.ts", - "version": "0.0.5", + "version": "0.0.6", "author": { "name": "dreadhalor", "url": "https://scotthetrick.com"