From a26787a0261e898ad4945ed0e14e27060418262d Mon Sep 17 00:00:00 2001 From: Dmytro Stanchiev Date: Wed, 8 Apr 2026 00:56:49 -0400 Subject: [PATCH] feat(event-dialog): redesign with glass-strong styling, icon-decorated inputs, and Cancel button - Apply glass-strong to DialogContent - Add LucideMapPin and CalendarIcon/Clock icons to input fields - Replace native checkbox with Checkbox + Label component - Unify allDay date inputs into single relative-positioned blocks - Add Cancel button to DialogFooter - Rename Save to Create for new events --- src/components/event-dialog.tsx | 178 ++++++++++++++++++++------------ 1 file changed, 111 insertions(+), 67 deletions(-) diff --git a/src/components/event-dialog.tsx b/src/components/event-dialog.tsx index 4126a5c..5f3e3ce 100644 --- a/src/components/event-dialog.tsx +++ b/src/components/event-dialog.tsx @@ -1,5 +1,9 @@ +"use client"; + +import { CalendarIcon, Clock, LucideMapPin } from "lucide-react"; import { RecurrencePicker } from "@/components/recurrence-picker"; import { Button } from "@/components/ui/button"; +import { Checkbox } from "@/components/ui/checkbox"; import { Dialog, DialogContent, @@ -9,6 +13,7 @@ import { DialogTitle, } from "@/components/ui/dialog"; import { Input } from "@/components/ui/input"; +import { Label } from "@/components/ui/label"; interface EventDialogProps { open: boolean; @@ -64,83 +69,122 @@ export const EventDialog = ({ return ( - + - {editingId ? "Edit Event" : "Add Event"} + + {editingId ? "Edit Event" : "New Event"} + Fill in the event details below. Title and start date are required. - setTitle(e.target.value)} - /> -