Add global animation system and entrance effects to UI

This commit is contained in:
2025-08-01 14:21:10 -04:00
parent eaf185d89e
commit 93ffdf3c86
18 changed files with 1363 additions and 124 deletions
+8 -3
View File
@@ -493,7 +493,7 @@ export default function InvoiceForm({ invoiceId }: InvoiceFormProps) {
return (
<>
<div className="space-y-6 pb-32">
<div className="page-enter space-y-6 pb-32">
<PageHeader
title={
invoiceId && invoiceId !== "new" ? "Edit Invoice" : "Create Invoice"
@@ -510,13 +510,18 @@ export default function InvoiceForm({ invoiceId }: InvoiceFormProps) {
variant="outline"
onClick={handleDelete}
disabled={loading || deleteInvoice.isPending}
className="text-destructive hover:bg-destructive/10 shadow-sm"
className="hover-lift text-destructive hover:bg-destructive/10 shadow-sm"
>
<Trash2 className="h-4 w-4 sm:mr-2" />
<span className="hidden sm:inline">Delete Invoice</span>
</Button>
)}
<Button onClick={handleSubmit} disabled={loading} variant="default">
<Button
onClick={handleSubmit}
disabled={loading}
variant="default"
className="hover-lift"
>
{loading ? (
<>
<Clock className="h-4 w-4 animate-spin sm:mr-2" />